tencentcloud-sdk-python-vpc 3.0.1275__tar.gz → 3.0.1276__tar.gz

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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/setup.py +1 -1
  3. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud/vpc/v20170312/models.py +272 -2
  5. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  6. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud_sdk_python_vpc.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-vpc-3.0.1276/tencentcloud_sdk_python_vpc.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-vpc-3.0.1275/tencentcloud_sdk_python_vpc.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/README.rst +0 -0
  10. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud/vpc/__init__.py +0 -0
  12. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud/vpc/v20170312/__init__.py +0 -0
  13. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud/vpc/v20170312/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud_sdk_python_vpc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud_sdk_python_vpc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-vpc-3.0.1275 → tencentcloud-sdk-python-vpc-3.0.1276}/tencentcloud_sdk_python_vpc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-vpc
3
- Version: 3.0.1275
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
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-vpc',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1275"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1276"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Vpc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1275'
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:]
@@ -32447,6 +32482,120 @@ class DescribeTrafficPackagesResponse(AbstractModel):
32447
32482
  self._RequestId = params.get("RequestId")
32448
32483
 
32449
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
+
32450
32599
  class DescribeUsedIpAddressRequest(AbstractModel):
32451
32600
  """DescribeUsedIpAddress请求参数结构体
32452
32601
 
@@ -33910,7 +34059,6 @@ class DescribeVpcTaskResultResponse(AbstractModel):
33910
34059
  :param _Output: 异步任务执行输出。
33911
34060
  :type Output: str
33912
34061
  :param _Result: 异步任务详细结果。只用于特殊场景,如批量删除弹性网卡时查询成功的网卡列表和失败的列表。
33913
- 注意:此字段可能返回 null,表示取不到有效值。
33914
34062
  :type Result: list of VpcTaskResultDetailInfo
33915
34063
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
33916
34064
  :type RequestId: str
@@ -33945,7 +34093,6 @@ class DescribeVpcTaskResultResponse(AbstractModel):
33945
34093
  @property
33946
34094
  def Result(self):
33947
34095
  """异步任务详细结果。只用于特殊场景,如批量删除弹性网卡时查询成功的网卡列表和失败的列表。
33948
- 注意:此字段可能返回 null,表示取不到有效值。
33949
34096
  :rtype: list of VpcTaskResultDetailInfo
33950
34097
  """
33951
34098
  return self._Result
@@ -61282,6 +61429,129 @@ class TrafficPackage(AbstractModel):
61282
61429
 
61283
61430
 
61284
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
+
61285
61555
  class TransformAddressRequest(AbstractModel):
61286
61556
  """TransformAddress请求参数结构体
61287
61557
 
@@ -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: 1.2
2
2
  Name: tencentcloud-sdk-python-vpc
3
- Version: 3.0.1275
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1276
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1275