@@ -105,10 +105,10 @@ def test_create_zone_example(self):
105
105
}
106
106
107
107
zone = context_based_restrictions_service .create_zone (
108
- name = 'SDK TEST - an example of zone' ,
108
+ name = 'an example of zone' ,
109
109
account_id = account_id ,
110
110
addresses = [address_model ],
111
- description = 'SDK TEST - this is an example of zone' ,
111
+ description = 'this is an example of zone' ,
112
112
).get_result ()
113
113
114
114
print (json .dumps (zone , indent = 2 ))
@@ -180,10 +180,10 @@ def test_replace_zone_example(self):
180
180
zone = context_based_restrictions_service .replace_zone (
181
181
zone_id = zone_id ,
182
182
if_match = zone_rev ,
183
- name = 'SDK TEST - an example of updated zone' ,
183
+ name = 'an example of updated zone' ,
184
184
account_id = account_id ,
185
185
addresses = [address_model ],
186
- description = 'SDK TEST - this is an example of updated zone' ,
186
+ description = 'this is an example of updated zone' ,
187
187
).get_result ()
188
188
189
189
print (json .dumps (zone , indent = 2 ))
@@ -246,7 +246,7 @@ def test_create_rule_example(self):
246
246
rule = context_based_restrictions_service .create_rule (
247
247
contexts = [rule_context_model ],
248
248
resources = [resource_model ],
249
- description = 'SDK TEST - this is an example of rule' ,
249
+ description = 'this is an example of rule' ,
250
250
enforcement_mode = 'enabled'
251
251
).get_result ()
252
252
@@ -345,7 +345,7 @@ def test_replace_rule_example(self):
345
345
if_match = rule_rev ,
346
346
contexts = [rule_context_model ],
347
347
resources = [resource_model ],
348
- description = 'SDK TEST - this is an example of updated rule' ,
348
+ description = 'this is an example of updated rule' ,
349
349
enforcement_mode = 'disabled'
350
350
).get_result ()
351
351
@@ -376,6 +376,26 @@ def test_get_account_settings_example(self):
376
376
except ApiException as e :
377
377
pytest .fail (str (e ))
378
378
379
+ @needscredentials
380
+ def test_list_available_service_operations_example (self ):
381
+ """
382
+ list_available_service_operations request example
383
+ """
384
+ try :
385
+ print ('\n list_available_service_operations() result:' )
386
+ # begin-list_available_service_operations
387
+
388
+ operations_list = context_based_restrictions_service .list_available_service_operations (
389
+ service_name = 'containers-kubernetes'
390
+ ).get_result ()
391
+
392
+ print (json .dumps (operations_list , indent = 2 ))
393
+
394
+ # end-list_available_service_operations
395
+
396
+ except ApiException as e :
397
+ pytest .fail (str (e ))
398
+
379
399
@needscredentials
380
400
def test_delete_rule_example (self ):
381
401
"""
0 commit comments