tencentcloud-sdk-python-vpc 3.0.1273__py2.py3-none-any.whl → 3.0.1276__py2.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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1273'
17
+ __version__ = '3.0.1276'
@@ -10024,6 +10024,10 @@ class CreateHaVipRequest(AbstractModel):
10024
10024
  :type CheckAssociate: bool
10025
10025
  :param _Tags: 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。
10026
10026
  :type Tags: list of Tag
10027
+ :param _HaVipAssociationSet: HaVip绑定的子机或网卡。最多支持10个实例。
10028
+ :type HaVipAssociationSet: list of HaVipAssociation
10029
+ :param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
10030
+ :type ClientToken: str
10027
10031
  """
10028
10032
  self._VpcId = None
10029
10033
  self._HaVipName = None
@@ -10032,6 +10036,8 @@ class CreateHaVipRequest(AbstractModel):
10032
10036
  self._NetworkInterfaceId = None
10033
10037
  self._CheckAssociate = None
10034
10038
  self._Tags = None
10039
+ self._HaVipAssociationSet = None
10040
+ self._ClientToken = None
10035
10041
 
10036
10042
  @property
10037
10043
  def VpcId(self):
@@ -10110,6 +10116,28 @@ class CreateHaVipRequest(AbstractModel):
10110
10116
  def Tags(self, Tags):
10111
10117
  self._Tags = Tags
10112
10118
 
10119
+ @property
10120
+ def HaVipAssociationSet(self):
10121
+ """HaVip绑定的子机或网卡。最多支持10个实例。
10122
+ :rtype: list of HaVipAssociation
10123
+ """
10124
+ return self._HaVipAssociationSet
10125
+
10126
+ @HaVipAssociationSet.setter
10127
+ def HaVipAssociationSet(self, HaVipAssociationSet):
10128
+ self._HaVipAssociationSet = HaVipAssociationSet
10129
+
10130
+ @property
10131
+ def ClientToken(self):
10132
+ """用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
10133
+ :rtype: str
10134
+ """
10135
+ return self._ClientToken
10136
+
10137
+ @ClientToken.setter
10138
+ def ClientToken(self, ClientToken):
10139
+ self._ClientToken = ClientToken
10140
+
10113
10141
 
10114
10142
  def _deserialize(self, params):
10115
10143
  self._VpcId = params.get("VpcId")
@@ -10124,6 +10152,13 @@ class CreateHaVipRequest(AbstractModel):
10124
10152
  obj = Tag()
10125
10153
  obj._deserialize(item)
10126
10154
  self._Tags.append(obj)
10155
+ if params.get("HaVipAssociationSet") is not None:
10156
+ self._HaVipAssociationSet = []
10157
+ for item in params.get("HaVipAssociationSet"):
10158
+ obj = HaVipAssociation()
10159
+ obj._deserialize(item)
10160
+ self._HaVipAssociationSet.append(obj)
10161
+ self._ClientToken = params.get("ClientToken")
10127
10162
  memeber_set = set(params.keys())
10128
10163
  for name, value in vars(self).items():
10129
10164
  property_name = name[1:]
@@ -28446,6 +28481,8 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
28446
28481
  :type Offset: int
28447
28482
  :param _Limit: 返回数目,默认值为20。
28448
28483
  :type Limit: int
28484
+ :param _Description: ACL规则描述
28485
+ :type Description: str
28449
28486
  """
28450
28487
  self._NatGatewayId = None
28451
28488
  self._TranslationDirection = None
@@ -28454,6 +28491,7 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
28454
28491
  self._OriginalIp = None
28455
28492
  self._Offset = None
28456
28493
  self._Limit = None
28494
+ self._Description = None
28457
28495
 
28458
28496
  @property
28459
28497
  def NatGatewayId(self):
@@ -28532,6 +28570,17 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
28532
28570
  def Limit(self, Limit):
28533
28571
  self._Limit = Limit
28534
28572
 
28573
+ @property
28574
+ def Description(self):
28575
+ """ACL规则描述
28576
+ :rtype: str
28577
+ """
28578
+ return self._Description
28579
+
28580
+ @Description.setter
28581
+ def Description(self, Description):
28582
+ self._Description = Description
28583
+
28535
28584
 
28536
28585
  def _deserialize(self, params):
28537
28586
  self._NatGatewayId = params.get("NatGatewayId")
@@ -28541,6 +28590,7 @@ class DescribePrivateNatGatewayTranslationAclRulesRequest(AbstractModel):
28541
28590
  self._OriginalIp = params.get("OriginalIp")
28542
28591
  self._Offset = params.get("Offset")
28543
28592
  self._Limit = params.get("Limit")
28593
+ self._Description = params.get("Description")
28544
28594
  memeber_set = set(params.keys())
28545
28595
  for name, value in vars(self).items():
28546
28596
  property_name = name[1:]
@@ -32432,6 +32482,120 @@ class DescribeTrafficPackagesResponse(AbstractModel):
32432
32482
  self._RequestId = params.get("RequestId")
32433
32483
 
32434
32484
 
32485
+ class DescribeTrafficQosPolicyRequest(AbstractModel):
32486
+ """DescribeTrafficQosPolicy请求参数结构体
32487
+
32488
+ """
32489
+
32490
+ def __init__(self):
32491
+ r"""
32492
+ :param _CcnId: CCN实例ID。形如:ccn-f49l6u0z。
32493
+ :type CcnId: str
32494
+ :param _LocalRegion: 本端地域。
32495
+ :type LocalRegion: str
32496
+ :param _RemoteRegion: 远端地域。
32497
+ :type RemoteRegion: str
32498
+ """
32499
+ self._CcnId = None
32500
+ self._LocalRegion = None
32501
+ self._RemoteRegion = None
32502
+
32503
+ @property
32504
+ def CcnId(self):
32505
+ """CCN实例ID。形如:ccn-f49l6u0z。
32506
+ :rtype: str
32507
+ """
32508
+ return self._CcnId
32509
+
32510
+ @CcnId.setter
32511
+ def CcnId(self, CcnId):
32512
+ self._CcnId = CcnId
32513
+
32514
+ @property
32515
+ def LocalRegion(self):
32516
+ """本端地域。
32517
+ :rtype: str
32518
+ """
32519
+ return self._LocalRegion
32520
+
32521
+ @LocalRegion.setter
32522
+ def LocalRegion(self, LocalRegion):
32523
+ self._LocalRegion = LocalRegion
32524
+
32525
+ @property
32526
+ def RemoteRegion(self):
32527
+ """远端地域。
32528
+ :rtype: str
32529
+ """
32530
+ return self._RemoteRegion
32531
+
32532
+ @RemoteRegion.setter
32533
+ def RemoteRegion(self, RemoteRegion):
32534
+ self._RemoteRegion = RemoteRegion
32535
+
32536
+
32537
+ def _deserialize(self, params):
32538
+ self._CcnId = params.get("CcnId")
32539
+ self._LocalRegion = params.get("LocalRegion")
32540
+ self._RemoteRegion = params.get("RemoteRegion")
32541
+ memeber_set = set(params.keys())
32542
+ for name, value in vars(self).items():
32543
+ property_name = name[1:]
32544
+ if property_name in memeber_set:
32545
+ memeber_set.remove(property_name)
32546
+ if len(memeber_set) > 0:
32547
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
32548
+
32549
+
32550
+
32551
+ class DescribeTrafficQosPolicyResponse(AbstractModel):
32552
+ """DescribeTrafficQosPolicy返回参数结构体
32553
+
32554
+ """
32555
+
32556
+ def __init__(self):
32557
+ r"""
32558
+ :param _TrafficQosPolicySet: 流量调度规则。
32559
+ :type TrafficQosPolicySet: list of TrafficQosPolicySet
32560
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
32561
+ :type RequestId: str
32562
+ """
32563
+ self._TrafficQosPolicySet = None
32564
+ self._RequestId = None
32565
+
32566
+ @property
32567
+ def TrafficQosPolicySet(self):
32568
+ """流量调度规则。
32569
+ :rtype: list of TrafficQosPolicySet
32570
+ """
32571
+ return self._TrafficQosPolicySet
32572
+
32573
+ @TrafficQosPolicySet.setter
32574
+ def TrafficQosPolicySet(self, TrafficQosPolicySet):
32575
+ self._TrafficQosPolicySet = TrafficQosPolicySet
32576
+
32577
+ @property
32578
+ def RequestId(self):
32579
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
32580
+ :rtype: str
32581
+ """
32582
+ return self._RequestId
32583
+
32584
+ @RequestId.setter
32585
+ def RequestId(self, RequestId):
32586
+ self._RequestId = RequestId
32587
+
32588
+
32589
+ def _deserialize(self, params):
32590
+ if params.get("TrafficQosPolicySet") is not None:
32591
+ self._TrafficQosPolicySet = []
32592
+ for item in params.get("TrafficQosPolicySet"):
32593
+ obj = TrafficQosPolicySet()
32594
+ obj._deserialize(item)
32595
+ self._TrafficQosPolicySet.append(obj)
32596
+ self._RequestId = params.get("RequestId")
32597
+
32598
+
32435
32599
  class DescribeUsedIpAddressRequest(AbstractModel):
32436
32600
  """DescribeUsedIpAddress请求参数结构体
32437
32601
 
@@ -33895,7 +34059,6 @@ class DescribeVpcTaskResultResponse(AbstractModel):
33895
34059
  :param _Output: 异步任务执行输出。
33896
34060
  :type Output: str
33897
34061
  :param _Result: 异步任务详细结果。只用于特殊场景,如批量删除弹性网卡时查询成功的网卡列表和失败的列表。
33898
- 注意:此字段可能返回 null,表示取不到有效值。
33899
34062
  :type Result: list of VpcTaskResultDetailInfo
33900
34063
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
33901
34064
  :type RequestId: str
@@ -33930,7 +34093,6 @@ class DescribeVpcTaskResultResponse(AbstractModel):
33930
34093
  @property
33931
34094
  def Result(self):
33932
34095
  """异步任务详细结果。只用于特殊场景,如批量删除弹性网卡时查询成功的网卡列表和失败的列表。
33933
- 注意:此字段可能返回 null,表示取不到有效值。
33934
34096
  :rtype: list of VpcTaskResultDetailInfo
33935
34097
  """
33936
34098
  return self._Result
@@ -61267,6 +61429,129 @@ class TrafficPackage(AbstractModel):
61267
61429
 
61268
61430
 
61269
61431
 
61432
+ class TrafficQosPolicySet(AbstractModel):
61433
+ """流量调度规则
61434
+
61435
+ """
61436
+
61437
+ def __init__(self):
61438
+ r"""
61439
+ :param _CcnId: CCN实例ID。形如:ccn-f49l6u0z。
61440
+ 注意:此字段可能返回 null,表示取不到有效值。
61441
+ :type CcnId: str
61442
+ :param _QosId: qos id。
61443
+ 注意:此字段可能返回 null,表示取不到有效值。
61444
+ :type QosId: int
61445
+ :param _QosPolicyDescription: 描述。
61446
+ 注意:此字段可能返回 null,表示取不到有效值。
61447
+ :type QosPolicyDescription: str
61448
+ :param _QosPolicyName: 名称。
61449
+ 注意:此字段可能返回 null,表示取不到有效值。
61450
+ :type QosPolicyName: str
61451
+ :param _Bandwidth: 带宽。
61452
+ 注意:此字段可能返回 null,表示取不到有效值。
61453
+ :type Bandwidth: int
61454
+ :param _QosPolicyId: 流量调度策略ID。
61455
+ 注意:此字段可能返回 null,表示取不到有效值。
61456
+ :type QosPolicyId: str
61457
+ """
61458
+ self._CcnId = None
61459
+ self._QosId = None
61460
+ self._QosPolicyDescription = None
61461
+ self._QosPolicyName = None
61462
+ self._Bandwidth = None
61463
+ self._QosPolicyId = None
61464
+
61465
+ @property
61466
+ def CcnId(self):
61467
+ """CCN实例ID。形如:ccn-f49l6u0z。
61468
+ 注意:此字段可能返回 null,表示取不到有效值。
61469
+ :rtype: str
61470
+ """
61471
+ return self._CcnId
61472
+
61473
+ @CcnId.setter
61474
+ def CcnId(self, CcnId):
61475
+ self._CcnId = CcnId
61476
+
61477
+ @property
61478
+ def QosId(self):
61479
+ """qos id。
61480
+ 注意:此字段可能返回 null,表示取不到有效值。
61481
+ :rtype: int
61482
+ """
61483
+ return self._QosId
61484
+
61485
+ @QosId.setter
61486
+ def QosId(self, QosId):
61487
+ self._QosId = QosId
61488
+
61489
+ @property
61490
+ def QosPolicyDescription(self):
61491
+ """描述。
61492
+ 注意:此字段可能返回 null,表示取不到有效值。
61493
+ :rtype: str
61494
+ """
61495
+ return self._QosPolicyDescription
61496
+
61497
+ @QosPolicyDescription.setter
61498
+ def QosPolicyDescription(self, QosPolicyDescription):
61499
+ self._QosPolicyDescription = QosPolicyDescription
61500
+
61501
+ @property
61502
+ def QosPolicyName(self):
61503
+ """名称。
61504
+ 注意:此字段可能返回 null,表示取不到有效值。
61505
+ :rtype: str
61506
+ """
61507
+ return self._QosPolicyName
61508
+
61509
+ @QosPolicyName.setter
61510
+ def QosPolicyName(self, QosPolicyName):
61511
+ self._QosPolicyName = QosPolicyName
61512
+
61513
+ @property
61514
+ def Bandwidth(self):
61515
+ """带宽。
61516
+ 注意:此字段可能返回 null,表示取不到有效值。
61517
+ :rtype: int
61518
+ """
61519
+ return self._Bandwidth
61520
+
61521
+ @Bandwidth.setter
61522
+ def Bandwidth(self, Bandwidth):
61523
+ self._Bandwidth = Bandwidth
61524
+
61525
+ @property
61526
+ def QosPolicyId(self):
61527
+ """流量调度策略ID。
61528
+ 注意:此字段可能返回 null,表示取不到有效值。
61529
+ :rtype: str
61530
+ """
61531
+ return self._QosPolicyId
61532
+
61533
+ @QosPolicyId.setter
61534
+ def QosPolicyId(self, QosPolicyId):
61535
+ self._QosPolicyId = QosPolicyId
61536
+
61537
+
61538
+ def _deserialize(self, params):
61539
+ self._CcnId = params.get("CcnId")
61540
+ self._QosId = params.get("QosId")
61541
+ self._QosPolicyDescription = params.get("QosPolicyDescription")
61542
+ self._QosPolicyName = params.get("QosPolicyName")
61543
+ self._Bandwidth = params.get("Bandwidth")
61544
+ self._QosPolicyId = params.get("QosPolicyId")
61545
+ memeber_set = set(params.keys())
61546
+ for name, value in vars(self).items():
61547
+ property_name = name[1:]
61548
+ if property_name in memeber_set:
61549
+ memeber_set.remove(property_name)
61550
+ if len(memeber_set) > 0:
61551
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
61552
+
61553
+
61554
+
61270
61555
  class TransformAddressRequest(AbstractModel):
61271
61556
  """TransformAddress请求参数结构体
61272
61557
 
@@ -61382,6 +61667,8 @@ class TranslationAclRule(AbstractModel):
61382
61667
  :type AclRuleId: int
61383
61668
  :param _Action: 是否匹配。
61384
61669
  :type Action: int
61670
+ :param _Description: ACL规则描述
61671
+ :type Description: str
61385
61672
  """
61386
61673
  self._Protocol = None
61387
61674
  self._SourcePort = None
@@ -61390,6 +61677,7 @@ class TranslationAclRule(AbstractModel):
61390
61677
  self._DestinationCidr = None
61391
61678
  self._AclRuleId = None
61392
61679
  self._Action = None
61680
+ self._Description = None
61393
61681
 
61394
61682
  @property
61395
61683
  def Protocol(self):
@@ -61468,6 +61756,17 @@ class TranslationAclRule(AbstractModel):
61468
61756
  def Action(self, Action):
61469
61757
  self._Action = Action
61470
61758
 
61759
+ @property
61760
+ def Description(self):
61761
+ """ACL规则描述
61762
+ :rtype: str
61763
+ """
61764
+ return self._Description
61765
+
61766
+ @Description.setter
61767
+ def Description(self, Description):
61768
+ self._Description = Description
61769
+
61471
61770
 
61472
61771
  def _deserialize(self, params):
61473
61772
  self._Protocol = params.get("Protocol")
@@ -61477,6 +61776,7 @@ class TranslationAclRule(AbstractModel):
61477
61776
  self._DestinationCidr = params.get("DestinationCidr")
61478
61777
  self._AclRuleId = params.get("AclRuleId")
61479
61778
  self._Action = params.get("Action")
61779
+ self._Description = params.get("Description")
61480
61780
  memeber_set = set(params.keys())
61481
61781
  for name, value in vars(self).items():
61482
61782
  property_name = name[1:]
@@ -5233,6 +5233,29 @@ class VpcClient(AbstractClient):
5233
5233
  raise TencentCloudSDKException(type(e).__name__, str(e))
5234
5234
 
5235
5235
 
5236
+ def DescribeTrafficQosPolicy(self, request):
5237
+ """查询流量调度规则
5238
+
5239
+ :param request: Request instance for DescribeTrafficQosPolicy.
5240
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribeTrafficQosPolicyRequest`
5241
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribeTrafficQosPolicyResponse`
5242
+
5243
+ """
5244
+ try:
5245
+ params = request._serialize()
5246
+ headers = request.headers
5247
+ body = self.call("DescribeTrafficQosPolicy", params, headers=headers)
5248
+ response = json.loads(body)
5249
+ model = models.DescribeTrafficQosPolicyResponse()
5250
+ model._deserialize(response["Response"])
5251
+ return model
5252
+ except Exception as e:
5253
+ if isinstance(e, TencentCloudSDKException):
5254
+ raise
5255
+ else:
5256
+ raise TencentCloudSDKException(type(e).__name__, str(e))
5257
+
5258
+
5236
5259
  def DescribeUsedIpAddress(self, request):
5237
5260
  """本接口(DescribeUsedIpAddress)用于查询Subnet或者Vpc内的ip的使用情况,
5238
5261
  如ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-vpc
3
- Version: 3.0.1273
3
+ Version: 3.0.1276
4
4
  Summary: Tencent Cloud Vpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (==3.0.1273)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1276)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=Sh7GUwhVkJa_ZAw-mlCTZi62BYdpS2syhD1IdGbaoIg,631
2
+ tencentcloud/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/vpc/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/vpc/v20170312/errorcodes.py,sha256=ulV14-zDDb-wUZ0eI_-NqBfiMP-mJYp34z1xReBRREI,52938
5
+ tencentcloud/vpc/v20170312/models.py,sha256=Bhrht42kdamHG6kIpyJcaFQgw_oBWTL34rCqXPMb73U,2125048
6
+ tencentcloud/vpc/v20170312/vpc_client.py,sha256=hg7Q8sttj7Z46JOmQ1it7nAHokj0pbLyxu_hdDyD3vo,408825
7
+ tencentcloud_sdk_python_vpc-3.0.1276.dist-info/METADATA,sha256=ckxTi8EKs0o9T04fD0hbrXqz_omjv__RQEGN5yyX_FU,1496
8
+ tencentcloud_sdk_python_vpc-3.0.1276.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_vpc-3.0.1276.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_vpc-3.0.1276.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=xa39ZlVEdwzBi6UK57huGoc9g_cyyH1-eE8h6OJtCTM,631
2
- tencentcloud/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/vpc/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/vpc/v20170312/errorcodes.py,sha256=ulV14-zDDb-wUZ0eI_-NqBfiMP-mJYp34z1xReBRREI,52938
5
- tencentcloud/vpc/v20170312/models.py,sha256=VTNIjcduMR-TTenOhiBwdkhQR2U2WlbvitU2tgkGlpI,2115557
6
- tencentcloud/vpc/v20170312/vpc_client.py,sha256=aY9cfXmDeVAbv7mZ7YIvd8ITkdUpZWTwIAc-sdWQT_I,407908
7
- tencentcloud_sdk_python_vpc-3.0.1273.dist-info/METADATA,sha256=xWgpPjukieDsJTL6rT81HgnBuhXg_MD_B_FabzOwH_w,1496
8
- tencentcloud_sdk_python_vpc-3.0.1273.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_vpc-3.0.1273.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_vpc-3.0.1273.dist-info/RECORD,,