tencentcloud-sdk-python-clb 3.0.1393__py2.py3-none-any.whl → 3.0.1394__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-clb might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1393'
17
+ __version__ = '3.0.1394'
@@ -1042,6 +1042,29 @@ class ClbClient(AbstractClient):
1042
1042
  raise TencentCloudSDKException(type(e).__name__, str(e))
1043
1043
 
1044
1044
 
1045
+ def DescribeLBOperateProtect(self, request):
1046
+ """查询负载均衡的操作保护信息。
1047
+
1048
+ :param request: Request instance for DescribeLBOperateProtect.
1049
+ :type request: :class:`tencentcloud.clb.v20180317.models.DescribeLBOperateProtectRequest`
1050
+ :rtype: :class:`tencentcloud.clb.v20180317.models.DescribeLBOperateProtectResponse`
1051
+
1052
+ """
1053
+ try:
1054
+ params = request._serialize()
1055
+ headers = request.headers
1056
+ body = self.call("DescribeLBOperateProtect", params, headers=headers)
1057
+ response = json.loads(body)
1058
+ model = models.DescribeLBOperateProtectResponse()
1059
+ model._deserialize(response["Response"])
1060
+ return model
1061
+ except Exception as e:
1062
+ if isinstance(e, TencentCloudSDKException):
1063
+ raise
1064
+ else:
1065
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1066
+
1067
+
1045
1068
  def DescribeListeners(self, request):
1046
1069
  """DescribeListeners 接口可根据负载均衡器 ID、监听器的协议或端口作为过滤条件获取监听器列表。如果不指定任何过滤条件,则返回该负载均衡实例下的所有监听器。
1047
1070
 
@@ -8549,6 +8549,90 @@ class DescribeLBListenersResponse(AbstractModel):
8549
8549
  self._RequestId = params.get("RequestId")
8550
8550
 
8551
8551
 
8552
+ class DescribeLBOperateProtectRequest(AbstractModel):
8553
+ """DescribeLBOperateProtect请求参数结构体
8554
+
8555
+ """
8556
+
8557
+ def __init__(self):
8558
+ r"""
8559
+ :param _LoadBalancerIds: 负载均衡实例ID。
8560
+ :type LoadBalancerIds: list of str
8561
+ """
8562
+ self._LoadBalancerIds = None
8563
+
8564
+ @property
8565
+ def LoadBalancerIds(self):
8566
+ """负载均衡实例ID。
8567
+ :rtype: list of str
8568
+ """
8569
+ return self._LoadBalancerIds
8570
+
8571
+ @LoadBalancerIds.setter
8572
+ def LoadBalancerIds(self, LoadBalancerIds):
8573
+ self._LoadBalancerIds = LoadBalancerIds
8574
+
8575
+
8576
+ def _deserialize(self, params):
8577
+ self._LoadBalancerIds = params.get("LoadBalancerIds")
8578
+ memeber_set = set(params.keys())
8579
+ for name, value in vars(self).items():
8580
+ property_name = name[1:]
8581
+ if property_name in memeber_set:
8582
+ memeber_set.remove(property_name)
8583
+ if len(memeber_set) > 0:
8584
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8585
+
8586
+
8587
+
8588
+ class DescribeLBOperateProtectResponse(AbstractModel):
8589
+ """DescribeLBOperateProtect返回参数结构体
8590
+
8591
+ """
8592
+
8593
+ def __init__(self):
8594
+ r"""
8595
+ :param _LoadBalancerSet: 返回的负载均衡操作保护信息数组。
8596
+ :type LoadBalancerSet: list of LBOperateProtectInfo
8597
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8598
+ :type RequestId: str
8599
+ """
8600
+ self._LoadBalancerSet = None
8601
+ self._RequestId = None
8602
+
8603
+ @property
8604
+ def LoadBalancerSet(self):
8605
+ """返回的负载均衡操作保护信息数组。
8606
+ :rtype: list of LBOperateProtectInfo
8607
+ """
8608
+ return self._LoadBalancerSet
8609
+
8610
+ @LoadBalancerSet.setter
8611
+ def LoadBalancerSet(self, LoadBalancerSet):
8612
+ self._LoadBalancerSet = LoadBalancerSet
8613
+
8614
+ @property
8615
+ def RequestId(self):
8616
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8617
+ :rtype: str
8618
+ """
8619
+ return self._RequestId
8620
+
8621
+ @RequestId.setter
8622
+ def RequestId(self, RequestId):
8623
+ self._RequestId = RequestId
8624
+
8625
+
8626
+ def _deserialize(self, params):
8627
+ if params.get("LoadBalancerSet") is not None:
8628
+ self._LoadBalancerSet = []
8629
+ for item in params.get("LoadBalancerSet"):
8630
+ obj = LBOperateProtectInfo()
8631
+ obj._deserialize(item)
8632
+ self._LoadBalancerSet.append(obj)
8633
+ self._RequestId = params.get("RequestId")
8634
+
8635
+
8552
8636
  class DescribeListenersRequest(AbstractModel):
8553
8637
  """DescribeListeners请求参数结构体
8554
8638
 
@@ -12653,6 +12737,108 @@ class LBItem(AbstractModel):
12653
12737
 
12654
12738
 
12655
12739
 
12740
+ class LBOperateProtectInfo(AbstractModel):
12741
+ """负载均衡的操作保护信息
12742
+
12743
+ """
12744
+
12745
+ def __init__(self):
12746
+ r"""
12747
+ :param _LoadBalancerId: 负载均衡实例 ID。
12748
+ :type LoadBalancerId: str
12749
+ :param _ProtectState: 保护状态,true:表示开启了操作保护,false:表示未开启操作保护。
12750
+ :type ProtectState: bool
12751
+ :param _OperatorUin: 操作保护的设置uin。
12752
+ 注意:此字段可能返回 null,表示取不到有效值。
12753
+ :type OperatorUin: str
12754
+ :param _Description: 设置操作保护时的描述信息。
12755
+ 注意:此字段可能返回 null,表示取不到有效值。
12756
+ :type Description: str
12757
+ :param _ModifyTime: 最后修改时间。
12758
+ 注意:此字段可能返回 null,表示取不到有效值。
12759
+ :type ModifyTime: str
12760
+ """
12761
+ self._LoadBalancerId = None
12762
+ self._ProtectState = None
12763
+ self._OperatorUin = None
12764
+ self._Description = None
12765
+ self._ModifyTime = None
12766
+
12767
+ @property
12768
+ def LoadBalancerId(self):
12769
+ """负载均衡实例 ID。
12770
+ :rtype: str
12771
+ """
12772
+ return self._LoadBalancerId
12773
+
12774
+ @LoadBalancerId.setter
12775
+ def LoadBalancerId(self, LoadBalancerId):
12776
+ self._LoadBalancerId = LoadBalancerId
12777
+
12778
+ @property
12779
+ def ProtectState(self):
12780
+ """保护状态,true:表示开启了操作保护,false:表示未开启操作保护。
12781
+ :rtype: bool
12782
+ """
12783
+ return self._ProtectState
12784
+
12785
+ @ProtectState.setter
12786
+ def ProtectState(self, ProtectState):
12787
+ self._ProtectState = ProtectState
12788
+
12789
+ @property
12790
+ def OperatorUin(self):
12791
+ """操作保护的设置uin。
12792
+ 注意:此字段可能返回 null,表示取不到有效值。
12793
+ :rtype: str
12794
+ """
12795
+ return self._OperatorUin
12796
+
12797
+ @OperatorUin.setter
12798
+ def OperatorUin(self, OperatorUin):
12799
+ self._OperatorUin = OperatorUin
12800
+
12801
+ @property
12802
+ def Description(self):
12803
+ """设置操作保护时的描述信息。
12804
+ 注意:此字段可能返回 null,表示取不到有效值。
12805
+ :rtype: str
12806
+ """
12807
+ return self._Description
12808
+
12809
+ @Description.setter
12810
+ def Description(self, Description):
12811
+ self._Description = Description
12812
+
12813
+ @property
12814
+ def ModifyTime(self):
12815
+ """最后修改时间。
12816
+ 注意:此字段可能返回 null,表示取不到有效值。
12817
+ :rtype: str
12818
+ """
12819
+ return self._ModifyTime
12820
+
12821
+ @ModifyTime.setter
12822
+ def ModifyTime(self, ModifyTime):
12823
+ self._ModifyTime = ModifyTime
12824
+
12825
+
12826
+ def _deserialize(self, params):
12827
+ self._LoadBalancerId = params.get("LoadBalancerId")
12828
+ self._ProtectState = params.get("ProtectState")
12829
+ self._OperatorUin = params.get("OperatorUin")
12830
+ self._Description = params.get("Description")
12831
+ self._ModifyTime = params.get("ModifyTime")
12832
+ memeber_set = set(params.keys())
12833
+ for name, value in vars(self).items():
12834
+ property_name = name[1:]
12835
+ if property_name in memeber_set:
12836
+ memeber_set.remove(property_name)
12837
+ if len(memeber_set) > 0:
12838
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12839
+
12840
+
12841
+
12656
12842
  class LbRsItem(AbstractModel):
12657
12843
  """查询类型
12658
12844
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-clb
3
- Version: 3.0.1393
3
+ Version: 3.0.1394
4
4
  Summary: Tencent Cloud Clb 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.1393)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1394)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=5zO2lLZe1BHAXaibBkb5tZiMM5HPiQZRFL83ZVZxrU8,631
2
+ tencentcloud/clb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/clb/v20180317/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/clb/v20180317/clb_client.py,sha256=LvGiK-FpZticB8PZdVAjYJNrLk1rLlXtiZ0R_mSsZgE,105746
5
+ tencentcloud/clb/v20180317/errorcodes.py,sha256=O99n23xpjtqJ0ExzY6Uuk0R5eNwolXfymbdZ4fn9J9c,4016
6
+ tencentcloud/clb/v20180317/models.py,sha256=l66VDOBy4xSjCjghth2rsH1m0w1TmPmJ2ktznJUYdXw,774883
7
+ tencentcloud_sdk_python_clb-3.0.1394.dist-info/METADATA,sha256=RlAkRo5TH4OHamUWH3O_g9RIND85jU3Bi3Qq4YGKUw4,1496
8
+ tencentcloud_sdk_python_clb-3.0.1394.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_clb-3.0.1394.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_clb-3.0.1394.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=FhGkBbbjue_Jyac_f6O5BZ9tU8juDIwaExa-t4BSURc,631
2
- tencentcloud/clb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/clb/v20180317/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/clb/v20180317/clb_client.py,sha256=QQ6uXwCe7xfpM7J3hBR-TfQ21hSIEsNlXIqvWyzXWe0,104811
5
- tencentcloud/clb/v20180317/errorcodes.py,sha256=O99n23xpjtqJ0ExzY6Uuk0R5eNwolXfymbdZ4fn9J9c,4016
6
- tencentcloud/clb/v20180317/models.py,sha256=nB-pFYDxdhoEbiaUnTXsyRbO0b53zk852Hw8p-IWRT0,768875
7
- tencentcloud_sdk_python_clb-3.0.1393.dist-info/METADATA,sha256=UtesaJjV2Bwzvk0MLiC98NxelIZgbHjbDnJ6axebKqs,1496
8
- tencentcloud_sdk_python_clb-3.0.1393.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_clb-3.0.1393.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_clb-3.0.1393.dist-info/RECORD,,