alibabacloud-vpc20160428 6.8.0__py3-none-any.whl → 6.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alibabacloud_vpc20160428/__init__.py +1 -1
- alibabacloud_vpc20160428/client.py +448 -8
- alibabacloud_vpc20160428/models.py +703 -36
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.0.dist-info}/METADATA +1 -1
- alibabacloud_vpc20160428-6.9.0.dist-info/RECORD +8 -0
- alibabacloud_vpc20160428-6.8.0.dist-info/RECORD +0 -8
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.0.dist-info}/LICENSE +0 -0
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.0.dist-info}/WHEEL +0 -0
- {alibabacloud_vpc20160428-6.8.0.dist-info → alibabacloud_vpc20160428-6.9.0.dist-info}/top_level.txt +0 -0
|
@@ -9316,20 +9316,46 @@ class CreateFailoverTestJobRequest(TeaModel):
|
|
|
9316
9316
|
resource_owner_account: str = None,
|
|
9317
9317
|
resource_type: str = None,
|
|
9318
9318
|
):
|
|
9319
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
9320
|
+
#
|
|
9321
|
+
# You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters.
|
|
9322
|
+
#
|
|
9323
|
+
# > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
|
|
9319
9324
|
self.client_token = client_token
|
|
9325
|
+
# The description of the failover test.
|
|
9326
|
+
#
|
|
9327
|
+
# The description must be 0 to 256 characters in length and cannot start with `http://` or `https://`.
|
|
9320
9328
|
self.description = description
|
|
9329
|
+
# If you set the value to true, the system performs only a dry run without actually performing the actual request. If you set the value to false, the system performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
|
|
9321
9330
|
self.dry_run = dry_run
|
|
9331
|
+
# The duration of the failover test. Unit: minutes. Valid values: **1 to 4320**.
|
|
9332
|
+
#
|
|
9322
9333
|
# This parameter is required.
|
|
9323
9334
|
self.job_duration = job_duration
|
|
9335
|
+
# The type of the failover test. Valid values:
|
|
9336
|
+
#
|
|
9337
|
+
# * **StartNow**\
|
|
9338
|
+
# * **StartLater**\
|
|
9339
|
+
#
|
|
9324
9340
|
# This parameter is required.
|
|
9325
9341
|
self.job_type = job_type
|
|
9342
|
+
# The name of the failover test.
|
|
9343
|
+
#
|
|
9344
|
+
# The name must be 0 to 128 characters in length and cannot start with `http://` or `https://`.
|
|
9326
9345
|
self.name = name
|
|
9327
9346
|
self.owner_account = owner_account
|
|
9328
9347
|
self.owner_id = owner_id
|
|
9348
|
+
# The region ID of the failover test.
|
|
9349
|
+
#
|
|
9350
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
|
|
9329
9351
|
self.region_id = region_id
|
|
9352
|
+
# The IDs of failover test resources. You can add at most 16 resources.
|
|
9353
|
+
#
|
|
9330
9354
|
# This parameter is required.
|
|
9331
9355
|
self.resource_id = resource_id
|
|
9332
9356
|
self.resource_owner_account = resource_owner_account
|
|
9357
|
+
# The resource type of the failover test. Set the value to **PHYSICALCONNECTION**.
|
|
9358
|
+
#
|
|
9333
9359
|
# This parameter is required.
|
|
9334
9360
|
self.resource_type = resource_type
|
|
9335
9361
|
|
|
@@ -9403,7 +9429,9 @@ class CreateFailoverTestJobResponseBody(TeaModel):
|
|
|
9403
9429
|
job_id: str = None,
|
|
9404
9430
|
request_id: str = None,
|
|
9405
9431
|
):
|
|
9432
|
+
# The ID of the failover test.
|
|
9406
9433
|
self.job_id = job_id
|
|
9434
|
+
# The request ID.
|
|
9407
9435
|
self.request_id = request_id
|
|
9408
9436
|
|
|
9409
9437
|
def validate(self):
|
|
@@ -80498,6 +80526,269 @@ class ListVpcGatewayEndpointsResponse(TeaModel):
|
|
|
80498
80526
|
return self
|
|
80499
80527
|
|
|
80500
80528
|
|
|
80529
|
+
class ListVpcPublishedRouteEntriesRequest(TeaModel):
|
|
80530
|
+
def __init__(
|
|
80531
|
+
self,
|
|
80532
|
+
destination_cidr_block: str = None,
|
|
80533
|
+
max_results: int = None,
|
|
80534
|
+
next_token: str = None,
|
|
80535
|
+
owner_account: str = None,
|
|
80536
|
+
owner_id: int = None,
|
|
80537
|
+
region_id: str = None,
|
|
80538
|
+
resource_owner_account: str = None,
|
|
80539
|
+
resource_owner_id: int = None,
|
|
80540
|
+
route_table_id: str = None,
|
|
80541
|
+
target_instance_id: str = None,
|
|
80542
|
+
target_type: str = None,
|
|
80543
|
+
):
|
|
80544
|
+
self.destination_cidr_block = destination_cidr_block
|
|
80545
|
+
self.max_results = max_results
|
|
80546
|
+
self.next_token = next_token
|
|
80547
|
+
self.owner_account = owner_account
|
|
80548
|
+
self.owner_id = owner_id
|
|
80549
|
+
self.region_id = region_id
|
|
80550
|
+
self.resource_owner_account = resource_owner_account
|
|
80551
|
+
self.resource_owner_id = resource_owner_id
|
|
80552
|
+
# This parameter is required.
|
|
80553
|
+
self.route_table_id = route_table_id
|
|
80554
|
+
self.target_instance_id = target_instance_id
|
|
80555
|
+
# This parameter is required.
|
|
80556
|
+
self.target_type = target_type
|
|
80557
|
+
|
|
80558
|
+
def validate(self):
|
|
80559
|
+
pass
|
|
80560
|
+
|
|
80561
|
+
def to_map(self):
|
|
80562
|
+
_map = super().to_map()
|
|
80563
|
+
if _map is not None:
|
|
80564
|
+
return _map
|
|
80565
|
+
|
|
80566
|
+
result = dict()
|
|
80567
|
+
if self.destination_cidr_block is not None:
|
|
80568
|
+
result['DestinationCidrBlock'] = self.destination_cidr_block
|
|
80569
|
+
if self.max_results is not None:
|
|
80570
|
+
result['MaxResults'] = self.max_results
|
|
80571
|
+
if self.next_token is not None:
|
|
80572
|
+
result['NextToken'] = self.next_token
|
|
80573
|
+
if self.owner_account is not None:
|
|
80574
|
+
result['OwnerAccount'] = self.owner_account
|
|
80575
|
+
if self.owner_id is not None:
|
|
80576
|
+
result['OwnerId'] = self.owner_id
|
|
80577
|
+
if self.region_id is not None:
|
|
80578
|
+
result['RegionId'] = self.region_id
|
|
80579
|
+
if self.resource_owner_account is not None:
|
|
80580
|
+
result['ResourceOwnerAccount'] = self.resource_owner_account
|
|
80581
|
+
if self.resource_owner_id is not None:
|
|
80582
|
+
result['ResourceOwnerId'] = self.resource_owner_id
|
|
80583
|
+
if self.route_table_id is not None:
|
|
80584
|
+
result['RouteTableId'] = self.route_table_id
|
|
80585
|
+
if self.target_instance_id is not None:
|
|
80586
|
+
result['TargetInstanceId'] = self.target_instance_id
|
|
80587
|
+
if self.target_type is not None:
|
|
80588
|
+
result['TargetType'] = self.target_type
|
|
80589
|
+
return result
|
|
80590
|
+
|
|
80591
|
+
def from_map(self, m: dict = None):
|
|
80592
|
+
m = m or dict()
|
|
80593
|
+
if m.get('DestinationCidrBlock') is not None:
|
|
80594
|
+
self.destination_cidr_block = m.get('DestinationCidrBlock')
|
|
80595
|
+
if m.get('MaxResults') is not None:
|
|
80596
|
+
self.max_results = m.get('MaxResults')
|
|
80597
|
+
if m.get('NextToken') is not None:
|
|
80598
|
+
self.next_token = m.get('NextToken')
|
|
80599
|
+
if m.get('OwnerAccount') is not None:
|
|
80600
|
+
self.owner_account = m.get('OwnerAccount')
|
|
80601
|
+
if m.get('OwnerId') is not None:
|
|
80602
|
+
self.owner_id = m.get('OwnerId')
|
|
80603
|
+
if m.get('RegionId') is not None:
|
|
80604
|
+
self.region_id = m.get('RegionId')
|
|
80605
|
+
if m.get('ResourceOwnerAccount') is not None:
|
|
80606
|
+
self.resource_owner_account = m.get('ResourceOwnerAccount')
|
|
80607
|
+
if m.get('ResourceOwnerId') is not None:
|
|
80608
|
+
self.resource_owner_id = m.get('ResourceOwnerId')
|
|
80609
|
+
if m.get('RouteTableId') is not None:
|
|
80610
|
+
self.route_table_id = m.get('RouteTableId')
|
|
80611
|
+
if m.get('TargetInstanceId') is not None:
|
|
80612
|
+
self.target_instance_id = m.get('TargetInstanceId')
|
|
80613
|
+
if m.get('TargetType') is not None:
|
|
80614
|
+
self.target_type = m.get('TargetType')
|
|
80615
|
+
return self
|
|
80616
|
+
|
|
80617
|
+
|
|
80618
|
+
class ListVpcPublishedRouteEntriesResponseBodyRouteEntriesRoutePublishTargets(TeaModel):
|
|
80619
|
+
def __init__(
|
|
80620
|
+
self,
|
|
80621
|
+
publish_status: str = None,
|
|
80622
|
+
publish_target_type: str = None,
|
|
80623
|
+
):
|
|
80624
|
+
self.publish_status = publish_status
|
|
80625
|
+
self.publish_target_type = publish_target_type
|
|
80626
|
+
|
|
80627
|
+
def validate(self):
|
|
80628
|
+
pass
|
|
80629
|
+
|
|
80630
|
+
def to_map(self):
|
|
80631
|
+
_map = super().to_map()
|
|
80632
|
+
if _map is not None:
|
|
80633
|
+
return _map
|
|
80634
|
+
|
|
80635
|
+
result = dict()
|
|
80636
|
+
if self.publish_status is not None:
|
|
80637
|
+
result['PublishStatus'] = self.publish_status
|
|
80638
|
+
if self.publish_target_type is not None:
|
|
80639
|
+
result['PublishTargetType'] = self.publish_target_type
|
|
80640
|
+
return result
|
|
80641
|
+
|
|
80642
|
+
def from_map(self, m: dict = None):
|
|
80643
|
+
m = m or dict()
|
|
80644
|
+
if m.get('PublishStatus') is not None:
|
|
80645
|
+
self.publish_status = m.get('PublishStatus')
|
|
80646
|
+
if m.get('PublishTargetType') is not None:
|
|
80647
|
+
self.publish_target_type = m.get('PublishTargetType')
|
|
80648
|
+
return self
|
|
80649
|
+
|
|
80650
|
+
|
|
80651
|
+
class ListVpcPublishedRouteEntriesResponseBodyRouteEntries(TeaModel):
|
|
80652
|
+
def __init__(
|
|
80653
|
+
self,
|
|
80654
|
+
destination_cidr_block: str = None,
|
|
80655
|
+
route_entry_id: str = None,
|
|
80656
|
+
route_publish_targets: List[ListVpcPublishedRouteEntriesResponseBodyRouteEntriesRoutePublishTargets] = None,
|
|
80657
|
+
route_table_id: str = None,
|
|
80658
|
+
):
|
|
80659
|
+
self.destination_cidr_block = destination_cidr_block
|
|
80660
|
+
self.route_entry_id = route_entry_id
|
|
80661
|
+
self.route_publish_targets = route_publish_targets
|
|
80662
|
+
self.route_table_id = route_table_id
|
|
80663
|
+
|
|
80664
|
+
def validate(self):
|
|
80665
|
+
if self.route_publish_targets:
|
|
80666
|
+
for k in self.route_publish_targets:
|
|
80667
|
+
if k:
|
|
80668
|
+
k.validate()
|
|
80669
|
+
|
|
80670
|
+
def to_map(self):
|
|
80671
|
+
_map = super().to_map()
|
|
80672
|
+
if _map is not None:
|
|
80673
|
+
return _map
|
|
80674
|
+
|
|
80675
|
+
result = dict()
|
|
80676
|
+
if self.destination_cidr_block is not None:
|
|
80677
|
+
result['DestinationCidrBlock'] = self.destination_cidr_block
|
|
80678
|
+
if self.route_entry_id is not None:
|
|
80679
|
+
result['RouteEntryId'] = self.route_entry_id
|
|
80680
|
+
result['RoutePublishTargets'] = []
|
|
80681
|
+
if self.route_publish_targets is not None:
|
|
80682
|
+
for k in self.route_publish_targets:
|
|
80683
|
+
result['RoutePublishTargets'].append(k.to_map() if k else None)
|
|
80684
|
+
if self.route_table_id is not None:
|
|
80685
|
+
result['RouteTableId'] = self.route_table_id
|
|
80686
|
+
return result
|
|
80687
|
+
|
|
80688
|
+
def from_map(self, m: dict = None):
|
|
80689
|
+
m = m or dict()
|
|
80690
|
+
if m.get('DestinationCidrBlock') is not None:
|
|
80691
|
+
self.destination_cidr_block = m.get('DestinationCidrBlock')
|
|
80692
|
+
if m.get('RouteEntryId') is not None:
|
|
80693
|
+
self.route_entry_id = m.get('RouteEntryId')
|
|
80694
|
+
self.route_publish_targets = []
|
|
80695
|
+
if m.get('RoutePublishTargets') is not None:
|
|
80696
|
+
for k in m.get('RoutePublishTargets'):
|
|
80697
|
+
temp_model = ListVpcPublishedRouteEntriesResponseBodyRouteEntriesRoutePublishTargets()
|
|
80698
|
+
self.route_publish_targets.append(temp_model.from_map(k))
|
|
80699
|
+
if m.get('RouteTableId') is not None:
|
|
80700
|
+
self.route_table_id = m.get('RouteTableId')
|
|
80701
|
+
return self
|
|
80702
|
+
|
|
80703
|
+
|
|
80704
|
+
class ListVpcPublishedRouteEntriesResponseBody(TeaModel):
|
|
80705
|
+
def __init__(
|
|
80706
|
+
self,
|
|
80707
|
+
next_token: str = None,
|
|
80708
|
+
request_id: str = None,
|
|
80709
|
+
route_entries: List[ListVpcPublishedRouteEntriesResponseBodyRouteEntries] = None,
|
|
80710
|
+
):
|
|
80711
|
+
self.next_token = next_token
|
|
80712
|
+
self.request_id = request_id
|
|
80713
|
+
self.route_entries = route_entries
|
|
80714
|
+
|
|
80715
|
+
def validate(self):
|
|
80716
|
+
if self.route_entries:
|
|
80717
|
+
for k in self.route_entries:
|
|
80718
|
+
if k:
|
|
80719
|
+
k.validate()
|
|
80720
|
+
|
|
80721
|
+
def to_map(self):
|
|
80722
|
+
_map = super().to_map()
|
|
80723
|
+
if _map is not None:
|
|
80724
|
+
return _map
|
|
80725
|
+
|
|
80726
|
+
result = dict()
|
|
80727
|
+
if self.next_token is not None:
|
|
80728
|
+
result['NextToken'] = self.next_token
|
|
80729
|
+
if self.request_id is not None:
|
|
80730
|
+
result['RequestId'] = self.request_id
|
|
80731
|
+
result['RouteEntries'] = []
|
|
80732
|
+
if self.route_entries is not None:
|
|
80733
|
+
for k in self.route_entries:
|
|
80734
|
+
result['RouteEntries'].append(k.to_map() if k else None)
|
|
80735
|
+
return result
|
|
80736
|
+
|
|
80737
|
+
def from_map(self, m: dict = None):
|
|
80738
|
+
m = m or dict()
|
|
80739
|
+
if m.get('NextToken') is not None:
|
|
80740
|
+
self.next_token = m.get('NextToken')
|
|
80741
|
+
if m.get('RequestId') is not None:
|
|
80742
|
+
self.request_id = m.get('RequestId')
|
|
80743
|
+
self.route_entries = []
|
|
80744
|
+
if m.get('RouteEntries') is not None:
|
|
80745
|
+
for k in m.get('RouteEntries'):
|
|
80746
|
+
temp_model = ListVpcPublishedRouteEntriesResponseBodyRouteEntries()
|
|
80747
|
+
self.route_entries.append(temp_model.from_map(k))
|
|
80748
|
+
return self
|
|
80749
|
+
|
|
80750
|
+
|
|
80751
|
+
class ListVpcPublishedRouteEntriesResponse(TeaModel):
|
|
80752
|
+
def __init__(
|
|
80753
|
+
self,
|
|
80754
|
+
headers: Dict[str, str] = None,
|
|
80755
|
+
status_code: int = None,
|
|
80756
|
+
body: ListVpcPublishedRouteEntriesResponseBody = None,
|
|
80757
|
+
):
|
|
80758
|
+
self.headers = headers
|
|
80759
|
+
self.status_code = status_code
|
|
80760
|
+
self.body = body
|
|
80761
|
+
|
|
80762
|
+
def validate(self):
|
|
80763
|
+
if self.body:
|
|
80764
|
+
self.body.validate()
|
|
80765
|
+
|
|
80766
|
+
def to_map(self):
|
|
80767
|
+
_map = super().to_map()
|
|
80768
|
+
if _map is not None:
|
|
80769
|
+
return _map
|
|
80770
|
+
|
|
80771
|
+
result = dict()
|
|
80772
|
+
if self.headers is not None:
|
|
80773
|
+
result['headers'] = self.headers
|
|
80774
|
+
if self.status_code is not None:
|
|
80775
|
+
result['statusCode'] = self.status_code
|
|
80776
|
+
if self.body is not None:
|
|
80777
|
+
result['body'] = self.body.to_map()
|
|
80778
|
+
return result
|
|
80779
|
+
|
|
80780
|
+
def from_map(self, m: dict = None):
|
|
80781
|
+
m = m or dict()
|
|
80782
|
+
if m.get('headers') is not None:
|
|
80783
|
+
self.headers = m.get('headers')
|
|
80784
|
+
if m.get('statusCode') is not None:
|
|
80785
|
+
self.status_code = m.get('statusCode')
|
|
80786
|
+
if m.get('body') is not None:
|
|
80787
|
+
temp_model = ListVpcPublishedRouteEntriesResponseBody()
|
|
80788
|
+
self.body = temp_model.from_map(m['body'])
|
|
80789
|
+
return self
|
|
80790
|
+
|
|
80791
|
+
|
|
80501
80792
|
class ListVpnCertificateAssociationsRequest(TeaModel):
|
|
80502
80793
|
def __init__(
|
|
80503
80794
|
self,
|
|
@@ -94485,38 +94776,224 @@ class OpenPublicIpAddressPoolServiceResponse(TeaModel):
|
|
|
94485
94776
|
if m.get('statusCode') is not None:
|
|
94486
94777
|
self.status_code = m.get('statusCode')
|
|
94487
94778
|
if m.get('body') is not None:
|
|
94488
|
-
temp_model = OpenPublicIpAddressPoolServiceResponseBody()
|
|
94779
|
+
temp_model = OpenPublicIpAddressPoolServiceResponseBody()
|
|
94780
|
+
self.body = temp_model.from_map(m['body'])
|
|
94781
|
+
return self
|
|
94782
|
+
|
|
94783
|
+
|
|
94784
|
+
class OpenTrafficMirrorServiceRequest(TeaModel):
|
|
94785
|
+
def __init__(
|
|
94786
|
+
self,
|
|
94787
|
+
client_token: str = None,
|
|
94788
|
+
owner_account: str = None,
|
|
94789
|
+
owner_id: int = None,
|
|
94790
|
+
region_id: str = None,
|
|
94791
|
+
resource_owner_account: str = None,
|
|
94792
|
+
resource_owner_id: int = None,
|
|
94793
|
+
):
|
|
94794
|
+
# The client token that is used to ensure the idempotence of the request.
|
|
94795
|
+
#
|
|
94796
|
+
# You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
|
|
94797
|
+
#
|
|
94798
|
+
# > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
|
|
94799
|
+
self.client_token = client_token
|
|
94800
|
+
self.owner_account = owner_account
|
|
94801
|
+
self.owner_id = owner_id
|
|
94802
|
+
# The ID of the region to which the mirrored traffic belongs.
|
|
94803
|
+
#
|
|
94804
|
+
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
|
|
94805
|
+
self.region_id = region_id
|
|
94806
|
+
self.resource_owner_account = resource_owner_account
|
|
94807
|
+
self.resource_owner_id = resource_owner_id
|
|
94808
|
+
|
|
94809
|
+
def validate(self):
|
|
94810
|
+
pass
|
|
94811
|
+
|
|
94812
|
+
def to_map(self):
|
|
94813
|
+
_map = super().to_map()
|
|
94814
|
+
if _map is not None:
|
|
94815
|
+
return _map
|
|
94816
|
+
|
|
94817
|
+
result = dict()
|
|
94818
|
+
if self.client_token is not None:
|
|
94819
|
+
result['ClientToken'] = self.client_token
|
|
94820
|
+
if self.owner_account is not None:
|
|
94821
|
+
result['OwnerAccount'] = self.owner_account
|
|
94822
|
+
if self.owner_id is not None:
|
|
94823
|
+
result['OwnerId'] = self.owner_id
|
|
94824
|
+
if self.region_id is not None:
|
|
94825
|
+
result['RegionId'] = self.region_id
|
|
94826
|
+
if self.resource_owner_account is not None:
|
|
94827
|
+
result['ResourceOwnerAccount'] = self.resource_owner_account
|
|
94828
|
+
if self.resource_owner_id is not None:
|
|
94829
|
+
result['ResourceOwnerId'] = self.resource_owner_id
|
|
94830
|
+
return result
|
|
94831
|
+
|
|
94832
|
+
def from_map(self, m: dict = None):
|
|
94833
|
+
m = m or dict()
|
|
94834
|
+
if m.get('ClientToken') is not None:
|
|
94835
|
+
self.client_token = m.get('ClientToken')
|
|
94836
|
+
if m.get('OwnerAccount') is not None:
|
|
94837
|
+
self.owner_account = m.get('OwnerAccount')
|
|
94838
|
+
if m.get('OwnerId') is not None:
|
|
94839
|
+
self.owner_id = m.get('OwnerId')
|
|
94840
|
+
if m.get('RegionId') is not None:
|
|
94841
|
+
self.region_id = m.get('RegionId')
|
|
94842
|
+
if m.get('ResourceOwnerAccount') is not None:
|
|
94843
|
+
self.resource_owner_account = m.get('ResourceOwnerAccount')
|
|
94844
|
+
if m.get('ResourceOwnerId') is not None:
|
|
94845
|
+
self.resource_owner_id = m.get('ResourceOwnerId')
|
|
94846
|
+
return self
|
|
94847
|
+
|
|
94848
|
+
|
|
94849
|
+
class OpenTrafficMirrorServiceResponseBody(TeaModel):
|
|
94850
|
+
def __init__(
|
|
94851
|
+
self,
|
|
94852
|
+
code: str = None,
|
|
94853
|
+
message: str = None,
|
|
94854
|
+
request_id: str = None,
|
|
94855
|
+
):
|
|
94856
|
+
# The error code.
|
|
94857
|
+
self.code = code
|
|
94858
|
+
# The information returned after traffic mirroring is enabled.
|
|
94859
|
+
self.message = message
|
|
94860
|
+
# The request ID.
|
|
94861
|
+
self.request_id = request_id
|
|
94862
|
+
|
|
94863
|
+
def validate(self):
|
|
94864
|
+
pass
|
|
94865
|
+
|
|
94866
|
+
def to_map(self):
|
|
94867
|
+
_map = super().to_map()
|
|
94868
|
+
if _map is not None:
|
|
94869
|
+
return _map
|
|
94870
|
+
|
|
94871
|
+
result = dict()
|
|
94872
|
+
if self.code is not None:
|
|
94873
|
+
result['Code'] = self.code
|
|
94874
|
+
if self.message is not None:
|
|
94875
|
+
result['Message'] = self.message
|
|
94876
|
+
if self.request_id is not None:
|
|
94877
|
+
result['RequestId'] = self.request_id
|
|
94878
|
+
return result
|
|
94879
|
+
|
|
94880
|
+
def from_map(self, m: dict = None):
|
|
94881
|
+
m = m or dict()
|
|
94882
|
+
if m.get('Code') is not None:
|
|
94883
|
+
self.code = m.get('Code')
|
|
94884
|
+
if m.get('Message') is not None:
|
|
94885
|
+
self.message = m.get('Message')
|
|
94886
|
+
if m.get('RequestId') is not None:
|
|
94887
|
+
self.request_id = m.get('RequestId')
|
|
94888
|
+
return self
|
|
94889
|
+
|
|
94890
|
+
|
|
94891
|
+
class OpenTrafficMirrorServiceResponse(TeaModel):
|
|
94892
|
+
def __init__(
|
|
94893
|
+
self,
|
|
94894
|
+
headers: Dict[str, str] = None,
|
|
94895
|
+
status_code: int = None,
|
|
94896
|
+
body: OpenTrafficMirrorServiceResponseBody = None,
|
|
94897
|
+
):
|
|
94898
|
+
self.headers = headers
|
|
94899
|
+
self.status_code = status_code
|
|
94900
|
+
self.body = body
|
|
94901
|
+
|
|
94902
|
+
def validate(self):
|
|
94903
|
+
if self.body:
|
|
94904
|
+
self.body.validate()
|
|
94905
|
+
|
|
94906
|
+
def to_map(self):
|
|
94907
|
+
_map = super().to_map()
|
|
94908
|
+
if _map is not None:
|
|
94909
|
+
return _map
|
|
94910
|
+
|
|
94911
|
+
result = dict()
|
|
94912
|
+
if self.headers is not None:
|
|
94913
|
+
result['headers'] = self.headers
|
|
94914
|
+
if self.status_code is not None:
|
|
94915
|
+
result['statusCode'] = self.status_code
|
|
94916
|
+
if self.body is not None:
|
|
94917
|
+
result['body'] = self.body.to_map()
|
|
94918
|
+
return result
|
|
94919
|
+
|
|
94920
|
+
def from_map(self, m: dict = None):
|
|
94921
|
+
m = m or dict()
|
|
94922
|
+
if m.get('headers') is not None:
|
|
94923
|
+
self.headers = m.get('headers')
|
|
94924
|
+
if m.get('statusCode') is not None:
|
|
94925
|
+
self.status_code = m.get('statusCode')
|
|
94926
|
+
if m.get('body') is not None:
|
|
94927
|
+
temp_model = OpenTrafficMirrorServiceResponseBody()
|
|
94489
94928
|
self.body = temp_model.from_map(m['body'])
|
|
94490
94929
|
return self
|
|
94491
94930
|
|
|
94492
94931
|
|
|
94493
|
-
class
|
|
94932
|
+
class PublishVpcRouteEntriesRequestRouteEntries(TeaModel):
|
|
94494
94933
|
def __init__(
|
|
94495
94934
|
self,
|
|
94496
|
-
|
|
94935
|
+
destination_cidr_block: str = None,
|
|
94936
|
+
route_table_id: str = None,
|
|
94937
|
+
):
|
|
94938
|
+
# This parameter is required.
|
|
94939
|
+
self.destination_cidr_block = destination_cidr_block
|
|
94940
|
+
# This parameter is required.
|
|
94941
|
+
self.route_table_id = route_table_id
|
|
94942
|
+
|
|
94943
|
+
def validate(self):
|
|
94944
|
+
pass
|
|
94945
|
+
|
|
94946
|
+
def to_map(self):
|
|
94947
|
+
_map = super().to_map()
|
|
94948
|
+
if _map is not None:
|
|
94949
|
+
return _map
|
|
94950
|
+
|
|
94951
|
+
result = dict()
|
|
94952
|
+
if self.destination_cidr_block is not None:
|
|
94953
|
+
result['DestinationCidrBlock'] = self.destination_cidr_block
|
|
94954
|
+
if self.route_table_id is not None:
|
|
94955
|
+
result['RouteTableId'] = self.route_table_id
|
|
94956
|
+
return result
|
|
94957
|
+
|
|
94958
|
+
def from_map(self, m: dict = None):
|
|
94959
|
+
m = m or dict()
|
|
94960
|
+
if m.get('DestinationCidrBlock') is not None:
|
|
94961
|
+
self.destination_cidr_block = m.get('DestinationCidrBlock')
|
|
94962
|
+
if m.get('RouteTableId') is not None:
|
|
94963
|
+
self.route_table_id = m.get('RouteTableId')
|
|
94964
|
+
return self
|
|
94965
|
+
|
|
94966
|
+
|
|
94967
|
+
class PublishVpcRouteEntriesRequest(TeaModel):
|
|
94968
|
+
def __init__(
|
|
94969
|
+
self,
|
|
94970
|
+
dry_run: bool = None,
|
|
94497
94971
|
owner_account: str = None,
|
|
94498
94972
|
owner_id: int = None,
|
|
94499
94973
|
region_id: str = None,
|
|
94500
94974
|
resource_owner_account: str = None,
|
|
94501
94975
|
resource_owner_id: int = None,
|
|
94976
|
+
route_entries: List[PublishVpcRouteEntriesRequestRouteEntries] = None,
|
|
94977
|
+
target_instance_id: str = None,
|
|
94978
|
+
target_type: str = None,
|
|
94502
94979
|
):
|
|
94503
|
-
|
|
94504
|
-
#
|
|
94505
|
-
# You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
|
|
94506
|
-
#
|
|
94507
|
-
# > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
|
|
94508
|
-
self.client_token = client_token
|
|
94980
|
+
self.dry_run = dry_run
|
|
94509
94981
|
self.owner_account = owner_account
|
|
94510
94982
|
self.owner_id = owner_id
|
|
94511
|
-
# The ID of the region to which the mirrored traffic belongs.
|
|
94512
|
-
#
|
|
94513
|
-
# You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
|
|
94514
94983
|
self.region_id = region_id
|
|
94515
94984
|
self.resource_owner_account = resource_owner_account
|
|
94516
94985
|
self.resource_owner_id = resource_owner_id
|
|
94986
|
+
self.route_entries = route_entries
|
|
94987
|
+
# This parameter is required.
|
|
94988
|
+
self.target_instance_id = target_instance_id
|
|
94989
|
+
# This parameter is required.
|
|
94990
|
+
self.target_type = target_type
|
|
94517
94991
|
|
|
94518
94992
|
def validate(self):
|
|
94519
|
-
|
|
94993
|
+
if self.route_entries:
|
|
94994
|
+
for k in self.route_entries:
|
|
94995
|
+
if k:
|
|
94996
|
+
k.validate()
|
|
94520
94997
|
|
|
94521
94998
|
def to_map(self):
|
|
94522
94999
|
_map = super().to_map()
|
|
@@ -94524,8 +95001,8 @@ class OpenTrafficMirrorServiceRequest(TeaModel):
|
|
|
94524
95001
|
return _map
|
|
94525
95002
|
|
|
94526
95003
|
result = dict()
|
|
94527
|
-
if self.
|
|
94528
|
-
result['
|
|
95004
|
+
if self.dry_run is not None:
|
|
95005
|
+
result['DryRun'] = self.dry_run
|
|
94529
95006
|
if self.owner_account is not None:
|
|
94530
95007
|
result['OwnerAccount'] = self.owner_account
|
|
94531
95008
|
if self.owner_id is not None:
|
|
@@ -94536,12 +95013,20 @@ class OpenTrafficMirrorServiceRequest(TeaModel):
|
|
|
94536
95013
|
result['ResourceOwnerAccount'] = self.resource_owner_account
|
|
94537
95014
|
if self.resource_owner_id is not None:
|
|
94538
95015
|
result['ResourceOwnerId'] = self.resource_owner_id
|
|
95016
|
+
result['RouteEntries'] = []
|
|
95017
|
+
if self.route_entries is not None:
|
|
95018
|
+
for k in self.route_entries:
|
|
95019
|
+
result['RouteEntries'].append(k.to_map() if k else None)
|
|
95020
|
+
if self.target_instance_id is not None:
|
|
95021
|
+
result['TargetInstanceId'] = self.target_instance_id
|
|
95022
|
+
if self.target_type is not None:
|
|
95023
|
+
result['TargetType'] = self.target_type
|
|
94539
95024
|
return result
|
|
94540
95025
|
|
|
94541
95026
|
def from_map(self, m: dict = None):
|
|
94542
95027
|
m = m or dict()
|
|
94543
|
-
if m.get('
|
|
94544
|
-
self.
|
|
95028
|
+
if m.get('DryRun') is not None:
|
|
95029
|
+
self.dry_run = m.get('DryRun')
|
|
94545
95030
|
if m.get('OwnerAccount') is not None:
|
|
94546
95031
|
self.owner_account = m.get('OwnerAccount')
|
|
94547
95032
|
if m.get('OwnerId') is not None:
|
|
@@ -94552,21 +95037,23 @@ class OpenTrafficMirrorServiceRequest(TeaModel):
|
|
|
94552
95037
|
self.resource_owner_account = m.get('ResourceOwnerAccount')
|
|
94553
95038
|
if m.get('ResourceOwnerId') is not None:
|
|
94554
95039
|
self.resource_owner_id = m.get('ResourceOwnerId')
|
|
95040
|
+
self.route_entries = []
|
|
95041
|
+
if m.get('RouteEntries') is not None:
|
|
95042
|
+
for k in m.get('RouteEntries'):
|
|
95043
|
+
temp_model = PublishVpcRouteEntriesRequestRouteEntries()
|
|
95044
|
+
self.route_entries.append(temp_model.from_map(k))
|
|
95045
|
+
if m.get('TargetInstanceId') is not None:
|
|
95046
|
+
self.target_instance_id = m.get('TargetInstanceId')
|
|
95047
|
+
if m.get('TargetType') is not None:
|
|
95048
|
+
self.target_type = m.get('TargetType')
|
|
94555
95049
|
return self
|
|
94556
95050
|
|
|
94557
95051
|
|
|
94558
|
-
class
|
|
95052
|
+
class PublishVpcRouteEntriesResponseBody(TeaModel):
|
|
94559
95053
|
def __init__(
|
|
94560
95054
|
self,
|
|
94561
|
-
code: str = None,
|
|
94562
|
-
message: str = None,
|
|
94563
95055
|
request_id: str = None,
|
|
94564
95056
|
):
|
|
94565
|
-
# The error code.
|
|
94566
|
-
self.code = code
|
|
94567
|
-
# The information returned after traffic mirroring is enabled.
|
|
94568
|
-
self.message = message
|
|
94569
|
-
# The request ID.
|
|
94570
95057
|
self.request_id = request_id
|
|
94571
95058
|
|
|
94572
95059
|
def validate(self):
|
|
@@ -94578,31 +95065,23 @@ class OpenTrafficMirrorServiceResponseBody(TeaModel):
|
|
|
94578
95065
|
return _map
|
|
94579
95066
|
|
|
94580
95067
|
result = dict()
|
|
94581
|
-
if self.code is not None:
|
|
94582
|
-
result['Code'] = self.code
|
|
94583
|
-
if self.message is not None:
|
|
94584
|
-
result['Message'] = self.message
|
|
94585
95068
|
if self.request_id is not None:
|
|
94586
95069
|
result['RequestId'] = self.request_id
|
|
94587
95070
|
return result
|
|
94588
95071
|
|
|
94589
95072
|
def from_map(self, m: dict = None):
|
|
94590
95073
|
m = m or dict()
|
|
94591
|
-
if m.get('Code') is not None:
|
|
94592
|
-
self.code = m.get('Code')
|
|
94593
|
-
if m.get('Message') is not None:
|
|
94594
|
-
self.message = m.get('Message')
|
|
94595
95074
|
if m.get('RequestId') is not None:
|
|
94596
95075
|
self.request_id = m.get('RequestId')
|
|
94597
95076
|
return self
|
|
94598
95077
|
|
|
94599
95078
|
|
|
94600
|
-
class
|
|
95079
|
+
class PublishVpcRouteEntriesResponse(TeaModel):
|
|
94601
95080
|
def __init__(
|
|
94602
95081
|
self,
|
|
94603
95082
|
headers: Dict[str, str] = None,
|
|
94604
95083
|
status_code: int = None,
|
|
94605
|
-
body:
|
|
95084
|
+
body: PublishVpcRouteEntriesResponseBody = None,
|
|
94606
95085
|
):
|
|
94607
95086
|
self.headers = headers
|
|
94608
95087
|
self.status_code = status_code
|
|
@@ -94633,7 +95112,7 @@ class OpenTrafficMirrorServiceResponse(TeaModel):
|
|
|
94633
95112
|
if m.get('statusCode') is not None:
|
|
94634
95113
|
self.status_code = m.get('statusCode')
|
|
94635
95114
|
if m.get('body') is not None:
|
|
94636
|
-
temp_model =
|
|
95115
|
+
temp_model = PublishVpcRouteEntriesResponseBody()
|
|
94637
95116
|
self.body = temp_model.from_map(m['body'])
|
|
94638
95117
|
return self
|
|
94639
95118
|
|
|
@@ -102846,3 +103325,191 @@ class VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResponse(TeaModel):
|
|
|
102846
103325
|
return self
|
|
102847
103326
|
|
|
102848
103327
|
|
|
103328
|
+
class WithdrawVpcPublishedRouteEntriesRequestRouteEntries(TeaModel):
|
|
103329
|
+
def __init__(
|
|
103330
|
+
self,
|
|
103331
|
+
destination_cidr_block: str = None,
|
|
103332
|
+
route_table_id: str = None,
|
|
103333
|
+
):
|
|
103334
|
+
# This parameter is required.
|
|
103335
|
+
self.destination_cidr_block = destination_cidr_block
|
|
103336
|
+
# This parameter is required.
|
|
103337
|
+
self.route_table_id = route_table_id
|
|
103338
|
+
|
|
103339
|
+
def validate(self):
|
|
103340
|
+
pass
|
|
103341
|
+
|
|
103342
|
+
def to_map(self):
|
|
103343
|
+
_map = super().to_map()
|
|
103344
|
+
if _map is not None:
|
|
103345
|
+
return _map
|
|
103346
|
+
|
|
103347
|
+
result = dict()
|
|
103348
|
+
if self.destination_cidr_block is not None:
|
|
103349
|
+
result['DestinationCidrBlock'] = self.destination_cidr_block
|
|
103350
|
+
if self.route_table_id is not None:
|
|
103351
|
+
result['RouteTableId'] = self.route_table_id
|
|
103352
|
+
return result
|
|
103353
|
+
|
|
103354
|
+
def from_map(self, m: dict = None):
|
|
103355
|
+
m = m or dict()
|
|
103356
|
+
if m.get('DestinationCidrBlock') is not None:
|
|
103357
|
+
self.destination_cidr_block = m.get('DestinationCidrBlock')
|
|
103358
|
+
if m.get('RouteTableId') is not None:
|
|
103359
|
+
self.route_table_id = m.get('RouteTableId')
|
|
103360
|
+
return self
|
|
103361
|
+
|
|
103362
|
+
|
|
103363
|
+
class WithdrawVpcPublishedRouteEntriesRequest(TeaModel):
|
|
103364
|
+
def __init__(
|
|
103365
|
+
self,
|
|
103366
|
+
dry_run: bool = None,
|
|
103367
|
+
owner_account: str = None,
|
|
103368
|
+
owner_id: int = None,
|
|
103369
|
+
region_id: str = None,
|
|
103370
|
+
resource_owner_account: str = None,
|
|
103371
|
+
resource_owner_id: int = None,
|
|
103372
|
+
route_entries: List[WithdrawVpcPublishedRouteEntriesRequestRouteEntries] = None,
|
|
103373
|
+
target_instance_id: str = None,
|
|
103374
|
+
target_type: str = None,
|
|
103375
|
+
):
|
|
103376
|
+
self.dry_run = dry_run
|
|
103377
|
+
self.owner_account = owner_account
|
|
103378
|
+
self.owner_id = owner_id
|
|
103379
|
+
self.region_id = region_id
|
|
103380
|
+
self.resource_owner_account = resource_owner_account
|
|
103381
|
+
self.resource_owner_id = resource_owner_id
|
|
103382
|
+
self.route_entries = route_entries
|
|
103383
|
+
# This parameter is required.
|
|
103384
|
+
self.target_instance_id = target_instance_id
|
|
103385
|
+
# This parameter is required.
|
|
103386
|
+
self.target_type = target_type
|
|
103387
|
+
|
|
103388
|
+
def validate(self):
|
|
103389
|
+
if self.route_entries:
|
|
103390
|
+
for k in self.route_entries:
|
|
103391
|
+
if k:
|
|
103392
|
+
k.validate()
|
|
103393
|
+
|
|
103394
|
+
def to_map(self):
|
|
103395
|
+
_map = super().to_map()
|
|
103396
|
+
if _map is not None:
|
|
103397
|
+
return _map
|
|
103398
|
+
|
|
103399
|
+
result = dict()
|
|
103400
|
+
if self.dry_run is not None:
|
|
103401
|
+
result['DryRun'] = self.dry_run
|
|
103402
|
+
if self.owner_account is not None:
|
|
103403
|
+
result['OwnerAccount'] = self.owner_account
|
|
103404
|
+
if self.owner_id is not None:
|
|
103405
|
+
result['OwnerId'] = self.owner_id
|
|
103406
|
+
if self.region_id is not None:
|
|
103407
|
+
result['RegionId'] = self.region_id
|
|
103408
|
+
if self.resource_owner_account is not None:
|
|
103409
|
+
result['ResourceOwnerAccount'] = self.resource_owner_account
|
|
103410
|
+
if self.resource_owner_id is not None:
|
|
103411
|
+
result['ResourceOwnerId'] = self.resource_owner_id
|
|
103412
|
+
result['RouteEntries'] = []
|
|
103413
|
+
if self.route_entries is not None:
|
|
103414
|
+
for k in self.route_entries:
|
|
103415
|
+
result['RouteEntries'].append(k.to_map() if k else None)
|
|
103416
|
+
if self.target_instance_id is not None:
|
|
103417
|
+
result['TargetInstanceId'] = self.target_instance_id
|
|
103418
|
+
if self.target_type is not None:
|
|
103419
|
+
result['TargetType'] = self.target_type
|
|
103420
|
+
return result
|
|
103421
|
+
|
|
103422
|
+
def from_map(self, m: dict = None):
|
|
103423
|
+
m = m or dict()
|
|
103424
|
+
if m.get('DryRun') is not None:
|
|
103425
|
+
self.dry_run = m.get('DryRun')
|
|
103426
|
+
if m.get('OwnerAccount') is not None:
|
|
103427
|
+
self.owner_account = m.get('OwnerAccount')
|
|
103428
|
+
if m.get('OwnerId') is not None:
|
|
103429
|
+
self.owner_id = m.get('OwnerId')
|
|
103430
|
+
if m.get('RegionId') is not None:
|
|
103431
|
+
self.region_id = m.get('RegionId')
|
|
103432
|
+
if m.get('ResourceOwnerAccount') is not None:
|
|
103433
|
+
self.resource_owner_account = m.get('ResourceOwnerAccount')
|
|
103434
|
+
if m.get('ResourceOwnerId') is not None:
|
|
103435
|
+
self.resource_owner_id = m.get('ResourceOwnerId')
|
|
103436
|
+
self.route_entries = []
|
|
103437
|
+
if m.get('RouteEntries') is not None:
|
|
103438
|
+
for k in m.get('RouteEntries'):
|
|
103439
|
+
temp_model = WithdrawVpcPublishedRouteEntriesRequestRouteEntries()
|
|
103440
|
+
self.route_entries.append(temp_model.from_map(k))
|
|
103441
|
+
if m.get('TargetInstanceId') is not None:
|
|
103442
|
+
self.target_instance_id = m.get('TargetInstanceId')
|
|
103443
|
+
if m.get('TargetType') is not None:
|
|
103444
|
+
self.target_type = m.get('TargetType')
|
|
103445
|
+
return self
|
|
103446
|
+
|
|
103447
|
+
|
|
103448
|
+
class WithdrawVpcPublishedRouteEntriesResponseBody(TeaModel):
|
|
103449
|
+
def __init__(
|
|
103450
|
+
self,
|
|
103451
|
+
request_id: str = None,
|
|
103452
|
+
):
|
|
103453
|
+
self.request_id = request_id
|
|
103454
|
+
|
|
103455
|
+
def validate(self):
|
|
103456
|
+
pass
|
|
103457
|
+
|
|
103458
|
+
def to_map(self):
|
|
103459
|
+
_map = super().to_map()
|
|
103460
|
+
if _map is not None:
|
|
103461
|
+
return _map
|
|
103462
|
+
|
|
103463
|
+
result = dict()
|
|
103464
|
+
if self.request_id is not None:
|
|
103465
|
+
result['RequestId'] = self.request_id
|
|
103466
|
+
return result
|
|
103467
|
+
|
|
103468
|
+
def from_map(self, m: dict = None):
|
|
103469
|
+
m = m or dict()
|
|
103470
|
+
if m.get('RequestId') is not None:
|
|
103471
|
+
self.request_id = m.get('RequestId')
|
|
103472
|
+
return self
|
|
103473
|
+
|
|
103474
|
+
|
|
103475
|
+
class WithdrawVpcPublishedRouteEntriesResponse(TeaModel):
|
|
103476
|
+
def __init__(
|
|
103477
|
+
self,
|
|
103478
|
+
headers: Dict[str, str] = None,
|
|
103479
|
+
status_code: int = None,
|
|
103480
|
+
body: WithdrawVpcPublishedRouteEntriesResponseBody = None,
|
|
103481
|
+
):
|
|
103482
|
+
self.headers = headers
|
|
103483
|
+
self.status_code = status_code
|
|
103484
|
+
self.body = body
|
|
103485
|
+
|
|
103486
|
+
def validate(self):
|
|
103487
|
+
if self.body:
|
|
103488
|
+
self.body.validate()
|
|
103489
|
+
|
|
103490
|
+
def to_map(self):
|
|
103491
|
+
_map = super().to_map()
|
|
103492
|
+
if _map is not None:
|
|
103493
|
+
return _map
|
|
103494
|
+
|
|
103495
|
+
result = dict()
|
|
103496
|
+
if self.headers is not None:
|
|
103497
|
+
result['headers'] = self.headers
|
|
103498
|
+
if self.status_code is not None:
|
|
103499
|
+
result['statusCode'] = self.status_code
|
|
103500
|
+
if self.body is not None:
|
|
103501
|
+
result['body'] = self.body.to_map()
|
|
103502
|
+
return result
|
|
103503
|
+
|
|
103504
|
+
def from_map(self, m: dict = None):
|
|
103505
|
+
m = m or dict()
|
|
103506
|
+
if m.get('headers') is not None:
|
|
103507
|
+
self.headers = m.get('headers')
|
|
103508
|
+
if m.get('statusCode') is not None:
|
|
103509
|
+
self.status_code = m.get('statusCode')
|
|
103510
|
+
if m.get('body') is not None:
|
|
103511
|
+
temp_model = WithdrawVpcPublishedRouteEntriesResponseBody()
|
|
103512
|
+
self.body = temp_model.from_map(m['body'])
|
|
103513
|
+
return self
|
|
103514
|
+
|
|
103515
|
+
|