@@ -4813,13 +4813,47 @@ def test_create_vpn_gateway_connection_example(self):
4813
4813
print ('\n create_vpn_gateway_connection() result:' )
4814
4814
# begin-create_vpn_gateway_connection
4815
4815
4816
- vpn_gateway_connection_prototype_model = {}
4817
- vpn_gateway_connection_prototype_model ['peer_address' ] = '192.132.5.0'
4818
- vpn_gateway_connection_prototype_model ['psk' ] = 'lkj14b1oi0alcniejkso'
4819
- vpn_gateway_connection_prototype_model ['name' ] = 'my-vpn-connection'
4820
- vpn_gateway_connection_prototype_model ['peer_cidrs' ] = ['197.155.0.0/28' ]
4821
- vpn_gateway_connection_prototype_model ['local_cidrs' ] = ['192.132.0.0/28' ]
4822
- vpn_gateway_connection_prototype_model ['admin_state_up' ] = True
4816
+ # Construct a dict representation of a VPNGatewayConnectionDPDPrototype model
4817
+ vpn_gateway_connection_dpd_prototype_model = {
4818
+ 'action' : 'restart' ,
4819
+ 'interval' : 30 ,
4820
+ 'timeout' : 120 ,
4821
+ }
4822
+ # Construct a dict representation of a VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById model
4823
+ vpn_gateway_connection_ike_policy_prototype_model = {
4824
+ 'id' : 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ,
4825
+ }
4826
+ # Construct a dict representation of a VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById model
4827
+ vpn_gateway_connection_i_psec_policy_prototype_model = {
4828
+ 'id' : 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ,
4829
+ }
4830
+ # Construct a dict representation of a VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN model
4831
+ vpn_gateway_connection_ike_identity_prototype_model = {
4832
+ 'type' : 'fqdn' ,
4833
+ 'value' : 'my-service.example.com' ,
4834
+ }
4835
+ # Construct a dict representation of a VPNGatewayConnectionStaticRouteModeLocalPrototype model
4836
+ vpn_gateway_connection_static_route_mode_local_prototype_model = {
4837
+ 'ike_identities' : [vpn_gateway_connection_ike_identity_prototype_model ],
4838
+ }
4839
+ # Construct a dict representation of a VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress model
4840
+ vpn_gateway_connection_static_route_mode_peer_prototype_model = {
4841
+ 'ike_identity' : vpn_gateway_connection_ike_identity_prototype_model ,
4842
+ 'address' : '169.21.50.5' ,
4843
+ }
4844
+ # Construct a dict representation of a VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype model
4845
+ vpn_gateway_connection_prototype_model = {
4846
+ 'admin_state_up' : True ,
4847
+ 'dead_peer_detection' : vpn_gateway_connection_dpd_prototype_model ,
4848
+ 'establish_mode' : 'bidirectional' ,
4849
+ 'ike_policy' : vpn_gateway_connection_ike_policy_prototype_model ,
4850
+ 'ipsec_policy' : vpn_gateway_connection_i_psec_policy_prototype_model ,
4851
+ 'name' : 'my-vpn-connection' ,
4852
+ 'psk' : 'lkj14b1oi0alcniejkso' ,
4853
+ 'local' : vpn_gateway_connection_static_route_mode_local_prototype_model ,
4854
+ 'peer' : vpn_gateway_connection_static_route_mode_peer_prototype_model ,
4855
+ 'routing_protocol' : 'none' ,
4856
+ }
4823
4857
4824
4858
vpn_gateway_connection = vpc_service .create_vpn_gateway_connection (
4825
4859
vpn_gateway_id = data ['vpnGatewayId' ],
@@ -4882,118 +4916,115 @@ def test_update_vpn_gateway_connection_example(self):
4882
4916
pytest .fail (str (e ))
4883
4917
4884
4918
@needscredentials
4885
- def test_add_vpn_gateway_connection_local_cidr_example (self ):
4919
+ def test_add_vpn_gateway_connections_local_cidr_example (self ):
4886
4920
"""
4887
- add_vpn_gateway_connection_local_cidr request example
4921
+ add_vpn_gateway_connections_local_cidr request example
4888
4922
"""
4889
4923
try :
4890
- # begin-add_vpn_gateway_connection_local_cidr
4924
+ # begin-add_vpn_gateway_connections_local_cidr
4891
4925
4892
- response = vpc_service .add_vpn_gateway_connection_local_cidr (
4926
+ response = vpc_service .add_vpn_gateway_connections_local_cidr (
4893
4927
vpn_gateway_id = data ['vpnGatewayId' ],
4894
4928
id = data ['vpnGatewayConnectionId' ],
4895
4929
cidr_prefix = '192.134.0.0' ,
4896
4930
prefix_length = '28' )
4897
4931
4898
- # end-add_vpn_gateway_connection_local_cidr
4932
+ # end-add_vpn_gateway_connections_local_cidr
4899
4933
assert response is not None
4900
4934
4901
4935
except ApiException as e :
4902
4936
pytest .fail (str (e ))
4903
4937
4904
4938
@needscredentials
4905
- def test_list_vpn_gateway_connection_local_cidrs_example (self ):
4939
+ def test_list_vpn_gateway_connections_local_cidrs_example (self ):
4906
4940
"""
4907
- list_vpn_gateway_connection_local_cidrs request example
4941
+ list_vpn_gateway_connections_local_cidrs request example
4908
4942
"""
4909
4943
try :
4910
- print ('\n list_vpn_gateway_connection_local_cidrs () result:' )
4911
- # begin-list_vpn_gateway_connection_local_cidrs
4944
+ print ('\n list_vpn_gateway_connections_local_cidrs () result:' )
4945
+ # begin-list_vpn_gateway_connections_local_cidrs
4912
4946
4913
- vpn_gateway_connection_local_cid_rs = vpc_service .list_vpn_gateway_connection_local_cidrs (
4947
+ vpn_gateway_connection_local_cid_rs = vpc_service .list_vpn_gateway_connections_local_cidrs (
4914
4948
vpn_gateway_id = data ['vpnGatewayId' ], id = data ['vpnGatewayConnectionId' ]).get_result ()
4915
4949
4916
- # end-list_vpn_gateway_connection_local_cidrs
4950
+ # end-list_vpn_gateway_connections_local_cidrs
4917
4951
4918
4952
assert vpn_gateway_connection_local_cid_rs is not None
4919
4953
4920
4954
except ApiException as e :
4921
4955
pytest .fail (str (e ))
4922
4956
4923
4957
@needscredentials
4924
- def test_add_vpn_gateway_connection_peer_cidr_example (self ):
4958
+ def test_add_vpn_gateway_connections_peer_cidr_example (self ):
4925
4959
"""
4926
- add_vpn_gateway_connection_peer_cidr request example
4960
+ add_vpn_gateway_connections_peer_cidr request example
4927
4961
"""
4928
4962
try :
4929
- # begin-add_vpn_gateway_connection_peer_cidr
4963
+ # begin-add_vpn_gateway_connections_peer_cidr
4930
4964
4931
- response = vpc_service .add_vpn_gateway_connection_peer_cidr (
4965
+ response = vpc_service .add_vpn_gateway_connections_peer_cidr (
4932
4966
vpn_gateway_id = data ['vpnGatewayId' ],
4933
4967
id = data ['vpnGatewayConnectionId' ],
4934
- cidr_prefix = '192.144.0.0' ,
4935
- prefix_length = '28' )
4968
+ cidr = '192.144.0.0/28' )
4936
4969
4937
- # end-add_vpn_gateway_connection_peer_cidr
4970
+ # end-add_vpn_gateway_connections_peer_cidr
4938
4971
assert response is not None
4939
4972
4940
4973
except ApiException as e :
4941
4974
pytest .fail (str (e ))
4942
4975
4943
4976
@needscredentials
4944
- def test_check_vpn_gateway_connection_local_cidr_example (self ):
4977
+ def test_check_vpn_gateway_connections_local_cidr_example (self ):
4945
4978
"""
4946
- check_vpn_gateway_connection_local_cidr request example
4979
+ check_vpn_gateway_connections_local_cidr request example
4947
4980
"""
4948
4981
try :
4949
- # begin-check_vpn_gateway_connection_local_cidr
4982
+ # begin-check_vpn_gateway_connections_local_cidr
4950
4983
4951
- response = vpc_service .check_vpn_gateway_connection_local_cidr (
4984
+ response = vpc_service .check_vpn_gateway_connections_local_cidr (
4952
4985
vpn_gateway_id = data ['vpnGatewayId' ],
4953
4986
id = data ['vpnGatewayConnectionId' ],
4954
- cidr_prefix = '192.134.0.0' ,
4955
- prefix_length = '28' )
4987
+ cidr = '192.144.0.0/28' )
4956
4988
4957
- # end-check_vpn_gateway_connection_local_cidr
4989
+ # end-check_vpn_gateway_connections_local_cidr
4958
4990
assert response is not None
4959
4991
4960
4992
except ApiException as e :
4961
4993
pytest .fail (str (e ))
4962
4994
4963
4995
@needscredentials
4964
- def test_list_vpn_gateway_connection_peer_cidrs_example (self ):
4996
+ def test_list_vpn_gateway_connections_peer_cidrs_example (self ):
4965
4997
"""
4966
- list_vpn_gateway_connection_peer_cidrs request example
4998
+ list_vpn_gateway_connections_peer_cidrs request example
4967
4999
"""
4968
5000
try :
4969
- print ('\n list_vpn_gateway_connection_peer_cidrs () result:' )
4970
- # begin-list_vpn_gateway_connection_peer_cidrs
5001
+ print ('\n list_vpn_gateway_connections_peer_cidrs () result:' )
5002
+ # begin-list_vpn_gateway_connections_peer_cidrs
4971
5003
4972
- vpn_gateway_connection_peer_cid_rs = vpc_service .list_vpn_gateway_connection_peer_cidrs (
5004
+ vpn_gateway_connection_peer_cid_rs = vpc_service .list_vpn_gateway_connections_peer_cidrs (
4973
5005
vpn_gateway_id = data ['vpnGatewayId' ], id = data ['vpnGatewayConnectionId' ]).get_result ()
4974
5006
4975
- # end-list_vpn_gateway_connection_peer_cidrs
5007
+ # end-list_vpn_gateway_connections_peer_cidrs
4976
5008
4977
5009
assert vpn_gateway_connection_peer_cid_rs is not None
4978
5010
4979
5011
except ApiException as e :
4980
5012
pytest .fail (str (e ))
4981
5013
4982
5014
@needscredentials
4983
- def test_check_vpn_gateway_connection_peer_cidr_example (self ):
5015
+ def test_check_vpn_gateway_connections_peer_cidr_example (self ):
4984
5016
"""
4985
- check_vpn_gateway_connection_peer_cidr request example
5017
+ check_vpn_gateway_connections_peer_cidr request example
4986
5018
"""
4987
5019
try :
4988
- # begin-check_vpn_gateway_connection_peer_cidr
5020
+ # begin-check_vpn_gateway_connections_peer_cidr
4989
5021
4990
- response = vpc_service .check_vpn_gateway_connection_peer_cidr (
5022
+ response = vpc_service .check_vpn_gateway_connections_peer_cidr (
4991
5023
vpn_gateway_id = data ['vpnGatewayId' ],
4992
5024
id = data ['vpnGatewayConnectionId' ],
4993
- cidr_prefix = '192.144.0.0' ,
4994
- prefix_length = '28' )
5025
+ cidr = '192.144.0.0/28' )
4995
5026
4996
- # end-check_vpn_gateway_connection_peer_cidr
5027
+ # end-check_vpn_gateway_connections_peer_cidr
4997
5028
assert response is not None
4998
5029
4999
5030
except ApiException as e :
@@ -7421,40 +7452,38 @@ def test_delete_flow_log_collector_example(self):
7421
7452
pytest .fail (str (e ))
7422
7453
7423
7454
@needscredentials
7424
- def test_remove_vpn_gateway_connection_peer_cidr_example (self ):
7455
+ def test_remove_vpn_gateway_connections_peer_cidr_example (self ):
7425
7456
"""
7426
- remove_vpn_gateway_connection_peer_cidr request example
7457
+ remove_vpn_gateway_connections_peer_cidr request example
7427
7458
"""
7428
7459
try :
7429
- # begin-remove_vpn_gateway_connection_peer_cidr
7460
+ # begin-remove_vpn_gateway_connections_peer_cidr
7430
7461
7431
- response = vpc_service .remove_vpn_gateway_connection_peer_cidr (
7462
+ response = vpc_service .remove_vpn_gateway_connections_peer_cidr (
7432
7463
vpn_gateway_id = data ['vpnGatewayId' ],
7433
7464
id = data ['vpnGatewayConnectionId' ],
7434
- cidr_prefix = '192.144.0.0' ,
7435
- prefix_length = '28' )
7465
+ cidr = '192.144.0.0/28' )
7436
7466
7437
- # end-remove_vpn_gateway_connection_peer_cidr
7467
+ # end-remove_vpn_gateway_connections_peer_cidr
7438
7468
assert response is not None
7439
7469
7440
7470
except ApiException as e :
7441
7471
pytest .fail (str (e ))
7442
7472
7443
7473
@needscredentials
7444
- def test_remove_vpn_gateway_connection_local_cidr_example (self ):
7474
+ def test_remove_vpn_gateway_connections_local_cidr_example (self ):
7445
7475
"""
7446
- remove_vpn_gateway_connection_local_cidr request example
7476
+ remove_vpn_gateway_connections_local_cidr request example
7447
7477
"""
7448
7478
try :
7449
- # begin-remove_vpn_gateway_connection_local_cidr
7479
+ # begin-remove_vpn_gateway_connections_local_cidr
7450
7480
7451
- response = vpc_service .remove_vpn_gateway_connection_local_cidr (
7481
+ response = vpc_service .remove_vpn_gateway_connections_local_cidr (
7452
7482
vpn_gateway_id = data ['vpnGatewayId' ],
7453
7483
id = data ['vpnGatewayConnectionId' ],
7454
- cidr_prefix = '192.134.0.0' ,
7455
- prefix_length = '28' )
7484
+ cidr = '192.144.0.0/28' )
7456
7485
7457
- # end-remove_vpn_gateway_connection_local_cidr
7486
+ # end-remove_vpn_gateway_connections_local_cidr
7458
7487
assert response is not None
7459
7488
7460
7489
except ApiException as e :
0 commit comments