@@ -1009,6 +1009,7 @@ def test_list_images_example(self):
1009
1009
client = vpc_service ,
1010
1010
limit = 10 ,
1011
1011
visibility = 'private' ,
1012
+ user_data_format = 'cloud_init' ,
1012
1013
)
1013
1014
while pager .has_next ():
1014
1015
next_page = pager .get_next ()
@@ -3596,6 +3597,7 @@ def test_create_share_example(self):
3596
3597
# end-create_share
3597
3598
print (json .dumps (share , indent = 2 ))
3598
3599
data ['shareId' ]= share ['id' ]
3600
+ data ['shareCRN' ]= share ['crn' ]
3599
3601
data ['shareReplicaId' ]= share_replica ['id' ]
3600
3602
data ['shareReplicaETag' ]= response_replica .get_headers ()['ETag' ]
3601
3603
assert share is not None
@@ -3605,6 +3607,36 @@ def test_create_share_example(self):
3605
3607
except ApiException as e :
3606
3608
pytest .fail (str (e ))
3607
3609
3610
+ @needscredentials
3611
+ def test_create_accessor_share_example (self ):
3612
+ """
3613
+ create_share request example
3614
+ """
3615
+ try :
3616
+ print ('\n create_share() result:' )
3617
+ # begin-create_share
3618
+
3619
+ share_identity = {
3620
+ 'crn' : data ["shareCRN" ]
3621
+ }
3622
+ share_prototype_model = {
3623
+ 'origin_share' : share_identity ,
3624
+ 'name' : 'my-accessor-share' ,
3625
+ }
3626
+
3627
+ response = vpc_service .create_share (
3628
+ share_prototype = share_prototype_model ,
3629
+ )
3630
+ share = response .get_result ()
3631
+
3632
+ # end-create_share
3633
+ data ['shareAccessorId' ]= share ['id' ]
3634
+ assert share is not None
3635
+
3636
+
3637
+ except ApiException as e :
3638
+ pytest .fail (str (e ))
3639
+
3608
3640
@needscredentials
3609
3641
def test_get_share_example (self ):
3610
3642
"""
@@ -3658,6 +3690,74 @@ def test_update_share_example(self):
3658
3690
pytest .fail (str (e ))
3659
3691
3660
3692
@needscredentials
3693
+ def test_list_share_accessor_bindings_example (self ):
3694
+ """
3695
+ list_share_accessor_bindings request example
3696
+ """
3697
+ try :
3698
+ print ('\n list_share_accessor_bindings() result:' )
3699
+
3700
+ # begin-list_share_accessor_bindings
3701
+
3702
+ all_results = []
3703
+ pager = ShareAccessorBindingsPager (
3704
+ client = vpc_service ,
3705
+ id = data ['shareId' ],
3706
+ limit = 10 ,
3707
+ )
3708
+ while pager .has_next ():
3709
+ next_page = pager .get_next ()
3710
+ assert next_page is not None
3711
+ all_results .extend (next_page )
3712
+
3713
+ # end-list_share_accessor_bindings
3714
+ data ['shareAccessorBindingId' ] = all_results [0 ]['id' ]
3715
+ except ApiException as e :
3716
+ pytest .fail (str (e ))
3717
+
3718
+ @needscredentials
3719
+ def test_get_share_accessor_binding_example (self ):
3720
+ """
3721
+ get_share_accessor_binding request example
3722
+ """
3723
+ try :
3724
+ print ('\n get_share_accessor_binding() result:' )
3725
+
3726
+ # begin-get_share_accessor_binding
3727
+
3728
+ response = vpc_service .get_share_accessor_binding (
3729
+ share_id = data ['shareId' ],
3730
+ id = data ['shareAccessorBindingId' ],
3731
+ )
3732
+ share_accessor_binding = response .get_result ()
3733
+
3734
+ print (json .dumps (share_accessor_binding , indent = 2 ))
3735
+
3736
+ # end-get_share_accessor_binding
3737
+ assert share_accessor_binding is not None
3738
+ except ApiException as e :
3739
+ pytest .fail (str (e ))
3740
+
3741
+ @needscredentials
3742
+ def test_delete_share_accessor_binding_example (self ):
3743
+ """
3744
+ delete_share_accessor_binding request example
3745
+ """
3746
+ try :
3747
+ # begin-delete_share_accessor_binding
3748
+
3749
+ response = vpc_service .delete_share_accessor_binding (
3750
+ share_id = data ['shareId' ],
3751
+ id = data ['shareAccessorBindingId' ],
3752
+ )
3753
+
3754
+ # end-delete_share_accessor_binding
3755
+ print ('\n delete_share_accessor_binding() response status code: ' ,
3756
+ response .get_status_code ())
3757
+
3758
+ except ApiException as e :
3759
+ pytest .fail (str (e ))
3760
+ @needscredentials
3661
3761
def test_failover_share_example (self ):
3662
3762
"""
3663
3763
failover_share request example
@@ -4857,8 +4957,8 @@ def test_create_vpn_gateway_connection_example(self):
4857
4957
4858
4958
vpn_gateway_connection = vpc_service .create_vpn_gateway_connection (
4859
4959
vpn_gateway_id = data ['vpnGatewayId' ],
4860
- vpn_gateway_connection_prototype =
4861
- vpn_gateway_connection_prototype_model ).get_result ()
4960
+ vpn_gateway_connection_prototype = vpn_gateway_connection_prototype_model ,
4961
+ ).get_result ()
4862
4962
4863
4963
# end-create_vpn_gateway_connection
4864
4964
@@ -4916,115 +5016,114 @@ def test_update_vpn_gateway_connection_example(self):
4916
5016
pytest .fail (str (e ))
4917
5017
4918
5018
@needscredentials
4919
- def test_add_vpn_gateway_connections_local_cidr_example (self ):
5019
+ def test_add_vpn_gateway_connection_local_cidr_example (self ):
4920
5020
"""
4921
- add_vpn_gateway_connections_local_cidr request example
5021
+ add_vpn_gateway_connection_local_cidr request example
4922
5022
"""
4923
5023
try :
4924
- # begin-add_vpn_gateway_connections_local_cidr
5024
+ # begin-add_vpn_gateway_connection_local_cidr
4925
5025
4926
5026
response = vpc_service .add_vpn_gateway_connections_local_cidr (
4927
5027
vpn_gateway_id = data ['vpnGatewayId' ],
4928
5028
id = data ['vpnGatewayConnectionId' ],
4929
- cidr_prefix = '192.134.0.0' ,
4930
- prefix_length = '28' )
5029
+ cidr = '192.144.0.0/28' )
4931
5030
4932
- # end-add_vpn_gateway_connections_local_cidr
5031
+ # end-add_vpn_gateway_connection_local_cidr
4933
5032
assert response is not None
4934
5033
4935
5034
except ApiException as e :
4936
5035
pytest .fail (str (e ))
4937
5036
4938
5037
@needscredentials
4939
- def test_list_vpn_gateway_connections_local_cidrs_example (self ):
5038
+ def test_list_vpn_gateway_connection_local_cidrs_example (self ):
4940
5039
"""
4941
- list_vpn_gateway_connections_local_cidrs request example
5040
+ list_vpn_gateway_connection_local_cidrs request example
4942
5041
"""
4943
5042
try :
4944
- print ('\n list_vpn_gateway_connections_local_cidrs () result:' )
4945
- # begin-list_vpn_gateway_connections_local_cidrs
5043
+ print ('\n list_vpn_gateway_connection_local_cidrs () result:' )
5044
+ # begin-list_vpn_gateway_connection_local_cidrs
4946
5045
4947
5046
vpn_gateway_connection_local_cid_rs = vpc_service .list_vpn_gateway_connections_local_cidrs (
4948
5047
vpn_gateway_id = data ['vpnGatewayId' ], id = data ['vpnGatewayConnectionId' ]).get_result ()
4949
5048
4950
- # end-list_vpn_gateway_connections_local_cidrs
5049
+ # end-list_vpn_gateway_connection_local_cidrs
4951
5050
4952
5051
assert vpn_gateway_connection_local_cid_rs is not None
4953
5052
4954
5053
except ApiException as e :
4955
5054
pytest .fail (str (e ))
4956
5055
4957
5056
@needscredentials
4958
- def test_add_vpn_gateway_connections_peer_cidr_example (self ):
5057
+ def test_add_vpn_gateway_connection_peer_cidr_example (self ):
4959
5058
"""
4960
- add_vpn_gateway_connections_peer_cidr request example
5059
+ add_vpn_gateway_connection_peer_cidr request example
4961
5060
"""
4962
5061
try :
4963
- # begin-add_vpn_gateway_connections_peer_cidr
5062
+ # begin-add_vpn_gateway_connection_peer_cidr
4964
5063
4965
5064
response = vpc_service .add_vpn_gateway_connections_peer_cidr (
4966
5065
vpn_gateway_id = data ['vpnGatewayId' ],
4967
5066
id = data ['vpnGatewayConnectionId' ],
4968
5067
cidr = '192.144.0.0/28' )
4969
5068
4970
- # end-add_vpn_gateway_connections_peer_cidr
5069
+ # end-add_vpn_gateway_connection_peer_cidr
4971
5070
assert response is not None
4972
5071
4973
5072
except ApiException as e :
4974
5073
pytest .fail (str (e ))
4975
5074
4976
5075
@needscredentials
4977
- def test_check_vpn_gateway_connections_local_cidr_example (self ):
5076
+ def test_check_vpn_gateway_connection_local_cidr_example (self ):
4978
5077
"""
4979
- check_vpn_gateway_connections_local_cidr request example
5078
+ check_vpn_gateway_connection_local_cidr request example
4980
5079
"""
4981
5080
try :
4982
- # begin-check_vpn_gateway_connections_local_cidr
5081
+ # begin-check_vpn_gateway_connection_local_cidr
4983
5082
4984
5083
response = vpc_service .check_vpn_gateway_connections_local_cidr (
4985
5084
vpn_gateway_id = data ['vpnGatewayId' ],
4986
5085
id = data ['vpnGatewayConnectionId' ],
4987
5086
cidr = '192.144.0.0/28' )
4988
5087
4989
- # end-check_vpn_gateway_connections_local_cidr
5088
+ # end-check_vpn_gateway_connection_local_cidr
4990
5089
assert response is not None
4991
5090
4992
5091
except ApiException as e :
4993
5092
pytest .fail (str (e ))
4994
5093
4995
5094
@needscredentials
4996
- def test_list_vpn_gateway_connections_peer_cidrs_example (self ):
5095
+ def test_list_vpn_gateway_connection_peer_cidrs_example (self ):
4997
5096
"""
4998
- list_vpn_gateway_connections_peer_cidrs request example
5097
+ list_vpn_gateway_connection_peer_cidrs request example
4999
5098
"""
5000
5099
try :
5001
- print ('\n list_vpn_gateway_connections_peer_cidrs () result:' )
5002
- # begin-list_vpn_gateway_connections_peer_cidrs
5100
+ print ('\n list_vpn_gateway_connection_peer_cidrs () result:' )
5101
+ # begin-list_vpn_gateway_connection_peer_cidrs
5003
5102
5004
5103
vpn_gateway_connection_peer_cid_rs = vpc_service .list_vpn_gateway_connections_peer_cidrs (
5005
5104
vpn_gateway_id = data ['vpnGatewayId' ], id = data ['vpnGatewayConnectionId' ]).get_result ()
5006
5105
5007
- # end-list_vpn_gateway_connections_peer_cidrs
5106
+ # end-list_vpn_gateway_connection_peer_cidrs
5008
5107
5009
5108
assert vpn_gateway_connection_peer_cid_rs is not None
5010
5109
5011
5110
except ApiException as e :
5012
5111
pytest .fail (str (e ))
5013
5112
5014
5113
@needscredentials
5015
- def test_check_vpn_gateway_connections_peer_cidr_example (self ):
5114
+ def test_check_vpn_gateway_connection_peer_cidr_example (self ):
5016
5115
"""
5017
- check_vpn_gateway_connections_peer_cidr request example
5116
+ check_vpn_gateway_connection_peer_cidr request example
5018
5117
"""
5019
5118
try :
5020
- # begin-check_vpn_gateway_connections_peer_cidr
5119
+ # begin-check_vpn_gateway_connection_peer_cidr
5021
5120
5022
5121
response = vpc_service .check_vpn_gateway_connections_peer_cidr (
5023
5122
vpn_gateway_id = data ['vpnGatewayId' ],
5024
5123
id = data ['vpnGatewayConnectionId' ],
5025
5124
cidr = '192.144.0.0/28' )
5026
5125
5027
- # end-check_vpn_gateway_connections_peer_cidr
5126
+ # end-check_vpn_gateway_connection_peer_cidr
5028
5127
assert response is not None
5029
5128
5030
5129
except ApiException as e :
@@ -6522,6 +6621,7 @@ def test_create_bare_metal_server_example(self):
6522
6621
'name' : data ['zone' ],
6523
6622
}
6524
6623
bare_metal_server_prototype_model = {
6624
+ 'bandwidth' : 10000 ,
6525
6625
'initialization' : bare_metal_server_initialization_prototype_model ,
6526
6626
'primary_network_interface' :
6527
6627
bare_metal_server_primary_network_interface_prototype_model ,
@@ -7452,38 +7552,38 @@ def test_delete_flow_log_collector_example(self):
7452
7552
pytest .fail (str (e ))
7453
7553
7454
7554
@needscredentials
7455
- def test_remove_vpn_gateway_connections_peer_cidr_example (self ):
7555
+ def test_remove_vpn_gateway_connection_peer_cidr_example (self ):
7456
7556
"""
7457
- remove_vpn_gateway_connections_peer_cidr request example
7557
+ remove_vpn_gateway_connection_peer_cidr request example
7458
7558
"""
7459
7559
try :
7460
- # begin-remove_vpn_gateway_connections_peer_cidr
7560
+ # begin-remove_vpn_gateway_connection_peer_cidr
7461
7561
7462
7562
response = vpc_service .remove_vpn_gateway_connections_peer_cidr (
7463
7563
vpn_gateway_id = data ['vpnGatewayId' ],
7464
7564
id = data ['vpnGatewayConnectionId' ],
7465
7565
cidr = '192.144.0.0/28' )
7466
7566
7467
- # end-remove_vpn_gateway_connections_peer_cidr
7567
+ # end-remove_vpn_gateway_connection_peer_cidr
7468
7568
assert response is not None
7469
7569
7470
7570
except ApiException as e :
7471
7571
pytest .fail (str (e ))
7472
7572
7473
7573
@needscredentials
7474
- def test_remove_vpn_gateway_connections_local_cidr_example (self ):
7574
+ def test_remove_vpn_gateway_connection_local_cidr_example (self ):
7475
7575
"""
7476
- remove_vpn_gateway_connections_local_cidr request example
7576
+ remove_vpn_gateway_connection_local_cidr request example
7477
7577
"""
7478
7578
try :
7479
- # begin-remove_vpn_gateway_connections_local_cidr
7579
+ # begin-remove_vpn_gateway_connection_local_cidr
7480
7580
7481
7581
response = vpc_service .remove_vpn_gateway_connections_local_cidr (
7482
7582
vpn_gateway_id = data ['vpnGatewayId' ],
7483
7583
id = data ['vpnGatewayConnectionId' ],
7484
7584
cidr = '192.144.0.0/28' )
7485
7585
7486
- # end-remove_vpn_gateway_connections_local_cidr
7586
+ # end-remove_vpn_gateway_connection_local_cidr
7487
7587
assert response is not None
7488
7588
7489
7589
except ApiException as e :
0 commit comments