tencentcloud-sdk-python 3.0.1233__py2.py3-none-any.whl → 3.0.1235__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 +1 -1
- tencentcloud/cdb/v20170320/models.py +60 -0
- tencentcloud/cfw/v20190904/models.py +4 -4
- tencentcloud/csip/v20221121/models.py +1 -1
- tencentcloud/mqtt/__init__.py +0 -0
- tencentcloud/mqtt/v20240516/__init__.py +0 -0
- tencentcloud/mqtt/v20240516/errorcodes.py +21 -0
- tencentcloud/mqtt/v20240516/models.py +869 -0
- tencentcloud/mqtt/v20240516/mqtt_client.py +78 -0
- tencentcloud/mrs/v20200910/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +504 -1
- tencentcloud/tke/v20180525/tke_client.py +46 -0
- tencentcloud/vpc/v20170312/models.py +17 -0
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1235.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1235.dist-info}/RECORD +18 -13
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1235.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1235.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1233.dist-info → tencentcloud_sdk_python-3.0.1235.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import json
|
17
|
+
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
20
|
+
from tencentcloud.mqtt.v20240516 import models
|
21
|
+
|
22
|
+
|
23
|
+
class MqttClient(AbstractClient):
|
24
|
+
_apiVersion = '2024-05-16'
|
25
|
+
_endpoint = 'mqtt.tencentcloudapi.com'
|
26
|
+
_service = 'mqtt'
|
27
|
+
|
28
|
+
|
29
|
+
def DescribeInstance(self, request):
|
30
|
+
"""查询实例信息
|
31
|
+
|
32
|
+
:param request: Request instance for DescribeInstance.
|
33
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeInstanceRequest`
|
34
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeInstanceResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("DescribeInstance", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.DescribeInstanceResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
52
|
+
def DescribeInstanceList(self, request):
|
53
|
+
"""获取实例列表,Filters参数使用说明如下:
|
54
|
+
1. InstanceName, 名称模糊查询
|
55
|
+
2. InstanceId,实例ID查询
|
56
|
+
3. InstanceType, 实例类型查询,支持多选
|
57
|
+
3. InstanceStatus,实例状态查询,支持多选
|
58
|
+
|
59
|
+
当使用TagFilters查询时,Filters参数失效。
|
60
|
+
|
61
|
+
:param request: Request instance for DescribeInstanceList.
|
62
|
+
:type request: :class:`tencentcloud.mqtt.v20240516.models.DescribeInstanceListRequest`
|
63
|
+
:rtype: :class:`tencentcloud.mqtt.v20240516.models.DescribeInstanceListResponse`
|
64
|
+
|
65
|
+
"""
|
66
|
+
try:
|
67
|
+
params = request._serialize()
|
68
|
+
headers = request.headers
|
69
|
+
body = self.call("DescribeInstanceList", params, headers=headers)
|
70
|
+
response = json.loads(body)
|
71
|
+
model = models.DescribeInstanceListResponse()
|
72
|
+
model._deserialize(response["Response"])
|
73
|
+
return model
|
74
|
+
except Exception as e:
|
75
|
+
if isinstance(e, TencentCloudSDKException):
|
76
|
+
raise
|
77
|
+
else:
|
78
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
@@ -26,6 +26,9 @@ FAILEDOPERATION_ASYNCTASKERROR = 'FailedOperation.AsyncTaskError'
|
|
26
26
|
# 异步任务处理中,请稍后。
|
27
27
|
FAILEDOPERATION_ASYNCTASKHANDLING = 'FailedOperation.AsyncTaskHandling'
|
28
28
|
|
29
|
+
# 异步任务正在重试中,请稍后。
|
30
|
+
FAILEDOPERATION_ASYNCTASKRETRYING = 'FailedOperation.AsyncTaskRetrying'
|
31
|
+
|
29
32
|
# 获取结果为空,请检查任务ID是否正确。
|
30
33
|
FAILEDOPERATION_EMPTYRESULT = 'FailedOperation.EmptyResult'
|
31
34
|
|
@@ -1671,6 +1671,9 @@ class Cluster(AbstractModel):
|
|
1671
1671
|
:param _ClusterEtcdNodeNum: 集群当前etcd数量
|
1672
1672
|
注意:此字段可能返回 null,表示取不到有效值。
|
1673
1673
|
:type ClusterEtcdNodeNum: int
|
1674
|
+
:param _CdcId: 本地专用集群Id
|
1675
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1676
|
+
:type CdcId: str
|
1674
1677
|
"""
|
1675
1678
|
self._ClusterId = None
|
1676
1679
|
self._ClusterName = None
|
@@ -1696,6 +1699,7 @@ class Cluster(AbstractModel):
|
|
1696
1699
|
self._QGPUShareEnable = None
|
1697
1700
|
self._RuntimeVersion = None
|
1698
1701
|
self._ClusterEtcdNodeNum = None
|
1702
|
+
self._CdcId = None
|
1699
1703
|
|
1700
1704
|
@property
|
1701
1705
|
def ClusterId(self):
|
@@ -1889,6 +1893,14 @@ class Cluster(AbstractModel):
|
|
1889
1893
|
def ClusterEtcdNodeNum(self, ClusterEtcdNodeNum):
|
1890
1894
|
self._ClusterEtcdNodeNum = ClusterEtcdNodeNum
|
1891
1895
|
|
1896
|
+
@property
|
1897
|
+
def CdcId(self):
|
1898
|
+
return self._CdcId
|
1899
|
+
|
1900
|
+
@CdcId.setter
|
1901
|
+
def CdcId(self, CdcId):
|
1902
|
+
self._CdcId = CdcId
|
1903
|
+
|
1892
1904
|
|
1893
1905
|
def _deserialize(self, params):
|
1894
1906
|
self._ClusterId = params.get("ClusterId")
|
@@ -1922,6 +1934,7 @@ class Cluster(AbstractModel):
|
|
1922
1934
|
self._QGPUShareEnable = params.get("QGPUShareEnable")
|
1923
1935
|
self._RuntimeVersion = params.get("RuntimeVersion")
|
1924
1936
|
self._ClusterEtcdNodeNum = params.get("ClusterEtcdNodeNum")
|
1937
|
+
self._CdcId = params.get("CdcId")
|
1925
1938
|
memeber_set = set(params.keys())
|
1926
1939
|
for name, value in vars(self).items():
|
1927
1940
|
property_name = name[1:]
|
@@ -16219,8 +16232,11 @@ class DescribeExternalNodeSupportConfigResponse(AbstractModel):
|
|
16219
16232
|
:type Progress: list of Step
|
16220
16233
|
:param _EnabledPublicConnect: 是否开启第三方节点公网连接支持
|
16221
16234
|
:type EnabledPublicConnect: bool
|
16222
|
-
:param _PublicConnectUrl:
|
16235
|
+
:param _PublicConnectUrl: 注册节点公网版公网连接地址
|
16223
16236
|
:type PublicConnectUrl: str
|
16237
|
+
:param _PublicCustomDomain: 注册节点公网版自定义域名
|
16238
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16239
|
+
:type PublicCustomDomain: str
|
16224
16240
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
16225
16241
|
:type RequestId: str
|
16226
16242
|
"""
|
@@ -16237,6 +16253,7 @@ class DescribeExternalNodeSupportConfigResponse(AbstractModel):
|
|
16237
16253
|
self._Progress = None
|
16238
16254
|
self._EnabledPublicConnect = None
|
16239
16255
|
self._PublicConnectUrl = None
|
16256
|
+
self._PublicCustomDomain = None
|
16240
16257
|
self._RequestId = None
|
16241
16258
|
|
16242
16259
|
@property
|
@@ -16343,6 +16360,14 @@ class DescribeExternalNodeSupportConfigResponse(AbstractModel):
|
|
16343
16360
|
def PublicConnectUrl(self, PublicConnectUrl):
|
16344
16361
|
self._PublicConnectUrl = PublicConnectUrl
|
16345
16362
|
|
16363
|
+
@property
|
16364
|
+
def PublicCustomDomain(self):
|
16365
|
+
return self._PublicCustomDomain
|
16366
|
+
|
16367
|
+
@PublicCustomDomain.setter
|
16368
|
+
def PublicCustomDomain(self, PublicCustomDomain):
|
16369
|
+
self._PublicCustomDomain = PublicCustomDomain
|
16370
|
+
|
16346
16371
|
@property
|
16347
16372
|
def RequestId(self):
|
16348
16373
|
return self._RequestId
|
@@ -16371,6 +16396,7 @@ class DescribeExternalNodeSupportConfigResponse(AbstractModel):
|
|
16371
16396
|
self._Progress.append(obj)
|
16372
16397
|
self._EnabledPublicConnect = params.get("EnabledPublicConnect")
|
16373
16398
|
self._PublicConnectUrl = params.get("PublicConnectUrl")
|
16399
|
+
self._PublicCustomDomain = params.get("PublicCustomDomain")
|
16374
16400
|
self._RequestId = params.get("RequestId")
|
16375
16401
|
|
16376
16402
|
|
@@ -16828,6 +16854,94 @@ class DescribeLogSwitchesResponse(AbstractModel):
|
|
16828
16854
|
self._RequestId = params.get("RequestId")
|
16829
16855
|
|
16830
16856
|
|
16857
|
+
class DescribeOpenPolicyListRequest(AbstractModel):
|
16858
|
+
"""DescribeOpenPolicyList请求参数结构体
|
16859
|
+
|
16860
|
+
"""
|
16861
|
+
|
16862
|
+
def __init__(self):
|
16863
|
+
r"""
|
16864
|
+
:param _ClusterId: 集群ID
|
16865
|
+
:type ClusterId: str
|
16866
|
+
:param _Category: 策略分类 基线:baseline 优选:priority 可选:optional
|
16867
|
+
:type Category: str
|
16868
|
+
"""
|
16869
|
+
self._ClusterId = None
|
16870
|
+
self._Category = None
|
16871
|
+
|
16872
|
+
@property
|
16873
|
+
def ClusterId(self):
|
16874
|
+
return self._ClusterId
|
16875
|
+
|
16876
|
+
@ClusterId.setter
|
16877
|
+
def ClusterId(self, ClusterId):
|
16878
|
+
self._ClusterId = ClusterId
|
16879
|
+
|
16880
|
+
@property
|
16881
|
+
def Category(self):
|
16882
|
+
return self._Category
|
16883
|
+
|
16884
|
+
@Category.setter
|
16885
|
+
def Category(self, Category):
|
16886
|
+
self._Category = Category
|
16887
|
+
|
16888
|
+
|
16889
|
+
def _deserialize(self, params):
|
16890
|
+
self._ClusterId = params.get("ClusterId")
|
16891
|
+
self._Category = params.get("Category")
|
16892
|
+
memeber_set = set(params.keys())
|
16893
|
+
for name, value in vars(self).items():
|
16894
|
+
property_name = name[1:]
|
16895
|
+
if property_name in memeber_set:
|
16896
|
+
memeber_set.remove(property_name)
|
16897
|
+
if len(memeber_set) > 0:
|
16898
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16899
|
+
|
16900
|
+
|
16901
|
+
|
16902
|
+
class DescribeOpenPolicyListResponse(AbstractModel):
|
16903
|
+
"""DescribeOpenPolicyList返回参数结构体
|
16904
|
+
|
16905
|
+
"""
|
16906
|
+
|
16907
|
+
def __init__(self):
|
16908
|
+
r"""
|
16909
|
+
:param _OpenPolicyInfoList: 策略信息列表
|
16910
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16911
|
+
:type OpenPolicyInfoList: list of OpenPolicyInfo
|
16912
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
16913
|
+
:type RequestId: str
|
16914
|
+
"""
|
16915
|
+
self._OpenPolicyInfoList = None
|
16916
|
+
self._RequestId = None
|
16917
|
+
|
16918
|
+
@property
|
16919
|
+
def OpenPolicyInfoList(self):
|
16920
|
+
return self._OpenPolicyInfoList
|
16921
|
+
|
16922
|
+
@OpenPolicyInfoList.setter
|
16923
|
+
def OpenPolicyInfoList(self, OpenPolicyInfoList):
|
16924
|
+
self._OpenPolicyInfoList = OpenPolicyInfoList
|
16925
|
+
|
16926
|
+
@property
|
16927
|
+
def RequestId(self):
|
16928
|
+
return self._RequestId
|
16929
|
+
|
16930
|
+
@RequestId.setter
|
16931
|
+
def RequestId(self, RequestId):
|
16932
|
+
self._RequestId = RequestId
|
16933
|
+
|
16934
|
+
|
16935
|
+
def _deserialize(self, params):
|
16936
|
+
if params.get("OpenPolicyInfoList") is not None:
|
16937
|
+
self._OpenPolicyInfoList = []
|
16938
|
+
for item in params.get("OpenPolicyInfoList"):
|
16939
|
+
obj = OpenPolicyInfo()
|
16940
|
+
obj._deserialize(item)
|
16941
|
+
self._OpenPolicyInfoList.append(obj)
|
16942
|
+
self._RequestId = params.get("RequestId")
|
16943
|
+
|
16944
|
+
|
16831
16945
|
class DescribePodChargeInfoRequest(AbstractModel):
|
16832
16946
|
"""DescribePodChargeInfo请求参数结构体
|
16833
16947
|
|
@@ -29123,6 +29237,93 @@ class ModifyNodePoolInstanceTypesResponse(AbstractModel):
|
|
29123
29237
|
self._RequestId = params.get("RequestId")
|
29124
29238
|
|
29125
29239
|
|
29240
|
+
class ModifyOpenPolicyListRequest(AbstractModel):
|
29241
|
+
"""ModifyOpenPolicyList请求参数结构体
|
29242
|
+
|
29243
|
+
"""
|
29244
|
+
|
29245
|
+
def __init__(self):
|
29246
|
+
r"""
|
29247
|
+
:param _ClusterId: 集群ID
|
29248
|
+
:type ClusterId: str
|
29249
|
+
:param _OpenPolicyInfoList: 修改的策略列表,目前仅支持修改EnforcementAction字段
|
29250
|
+
:type OpenPolicyInfoList: list of OpenPolicySwitch
|
29251
|
+
:param _Category: 策略分类 基线:baseline 优选:priority 可选:optional
|
29252
|
+
:type Category: str
|
29253
|
+
"""
|
29254
|
+
self._ClusterId = None
|
29255
|
+
self._OpenPolicyInfoList = None
|
29256
|
+
self._Category = None
|
29257
|
+
|
29258
|
+
@property
|
29259
|
+
def ClusterId(self):
|
29260
|
+
return self._ClusterId
|
29261
|
+
|
29262
|
+
@ClusterId.setter
|
29263
|
+
def ClusterId(self, ClusterId):
|
29264
|
+
self._ClusterId = ClusterId
|
29265
|
+
|
29266
|
+
@property
|
29267
|
+
def OpenPolicyInfoList(self):
|
29268
|
+
return self._OpenPolicyInfoList
|
29269
|
+
|
29270
|
+
@OpenPolicyInfoList.setter
|
29271
|
+
def OpenPolicyInfoList(self, OpenPolicyInfoList):
|
29272
|
+
self._OpenPolicyInfoList = OpenPolicyInfoList
|
29273
|
+
|
29274
|
+
@property
|
29275
|
+
def Category(self):
|
29276
|
+
return self._Category
|
29277
|
+
|
29278
|
+
@Category.setter
|
29279
|
+
def Category(self, Category):
|
29280
|
+
self._Category = Category
|
29281
|
+
|
29282
|
+
|
29283
|
+
def _deserialize(self, params):
|
29284
|
+
self._ClusterId = params.get("ClusterId")
|
29285
|
+
if params.get("OpenPolicyInfoList") is not None:
|
29286
|
+
self._OpenPolicyInfoList = []
|
29287
|
+
for item in params.get("OpenPolicyInfoList"):
|
29288
|
+
obj = OpenPolicySwitch()
|
29289
|
+
obj._deserialize(item)
|
29290
|
+
self._OpenPolicyInfoList.append(obj)
|
29291
|
+
self._Category = params.get("Category")
|
29292
|
+
memeber_set = set(params.keys())
|
29293
|
+
for name, value in vars(self).items():
|
29294
|
+
property_name = name[1:]
|
29295
|
+
if property_name in memeber_set:
|
29296
|
+
memeber_set.remove(property_name)
|
29297
|
+
if len(memeber_set) > 0:
|
29298
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
29299
|
+
|
29300
|
+
|
29301
|
+
|
29302
|
+
class ModifyOpenPolicyListResponse(AbstractModel):
|
29303
|
+
"""ModifyOpenPolicyList返回参数结构体
|
29304
|
+
|
29305
|
+
"""
|
29306
|
+
|
29307
|
+
def __init__(self):
|
29308
|
+
r"""
|
29309
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
29310
|
+
:type RequestId: str
|
29311
|
+
"""
|
29312
|
+
self._RequestId = None
|
29313
|
+
|
29314
|
+
@property
|
29315
|
+
def RequestId(self):
|
29316
|
+
return self._RequestId
|
29317
|
+
|
29318
|
+
@RequestId.setter
|
29319
|
+
def RequestId(self, RequestId):
|
29320
|
+
self._RequestId = RequestId
|
29321
|
+
|
29322
|
+
|
29323
|
+
def _deserialize(self, params):
|
29324
|
+
self._RequestId = params.get("RequestId")
|
29325
|
+
|
29326
|
+
|
29126
29327
|
class ModifyPrometheusAgentExternalLabelsRequest(AbstractModel):
|
29127
29328
|
"""ModifyPrometheusAgentExternalLabels请求参数结构体
|
29128
29329
|
|
@@ -30592,6 +30793,308 @@ class OIDCConfigAuthenticationOptions(AbstractModel):
|
|
30592
30793
|
|
30593
30794
|
|
30594
30795
|
|
30796
|
+
class OpenConstraintInfo(AbstractModel):
|
30797
|
+
"""策略实例信息
|
30798
|
+
|
30799
|
+
"""
|
30800
|
+
|
30801
|
+
def __init__(self):
|
30802
|
+
r"""
|
30803
|
+
:param _Name: 策略实例名称
|
30804
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30805
|
+
:type Name: str
|
30806
|
+
:param _EventNums: 策略实例关联事件数
|
30807
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30808
|
+
:type EventNums: int
|
30809
|
+
:param _YamlDetail: 实例yaml详情base64编码
|
30810
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30811
|
+
:type YamlDetail: str
|
30812
|
+
"""
|
30813
|
+
self._Name = None
|
30814
|
+
self._EventNums = None
|
30815
|
+
self._YamlDetail = None
|
30816
|
+
|
30817
|
+
@property
|
30818
|
+
def Name(self):
|
30819
|
+
return self._Name
|
30820
|
+
|
30821
|
+
@Name.setter
|
30822
|
+
def Name(self, Name):
|
30823
|
+
self._Name = Name
|
30824
|
+
|
30825
|
+
@property
|
30826
|
+
def EventNums(self):
|
30827
|
+
return self._EventNums
|
30828
|
+
|
30829
|
+
@EventNums.setter
|
30830
|
+
def EventNums(self, EventNums):
|
30831
|
+
self._EventNums = EventNums
|
30832
|
+
|
30833
|
+
@property
|
30834
|
+
def YamlDetail(self):
|
30835
|
+
return self._YamlDetail
|
30836
|
+
|
30837
|
+
@YamlDetail.setter
|
30838
|
+
def YamlDetail(self, YamlDetail):
|
30839
|
+
self._YamlDetail = YamlDetail
|
30840
|
+
|
30841
|
+
|
30842
|
+
def _deserialize(self, params):
|
30843
|
+
self._Name = params.get("Name")
|
30844
|
+
self._EventNums = params.get("EventNums")
|
30845
|
+
self._YamlDetail = params.get("YamlDetail")
|
30846
|
+
memeber_set = set(params.keys())
|
30847
|
+
for name, value in vars(self).items():
|
30848
|
+
property_name = name[1:]
|
30849
|
+
if property_name in memeber_set:
|
30850
|
+
memeber_set.remove(property_name)
|
30851
|
+
if len(memeber_set) > 0:
|
30852
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
30853
|
+
|
30854
|
+
|
30855
|
+
|
30856
|
+
class OpenPolicyInfo(AbstractModel):
|
30857
|
+
"""opa策略信息
|
30858
|
+
|
30859
|
+
"""
|
30860
|
+
|
30861
|
+
def __init__(self):
|
30862
|
+
r"""
|
30863
|
+
:param _PolicyCategory: 策略分类:cluster集群策略、node节点策略、namespace命名空间策略、configuration配置相关策略、compute计算资源策略、storage存储资源策略、network网络资源策略
|
30864
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30865
|
+
:type PolicyCategory: str
|
30866
|
+
:param _PolicyName: 策略中文名称
|
30867
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30868
|
+
:type PolicyName: str
|
30869
|
+
:param _PolicyDesc: 策略描述
|
30870
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30871
|
+
:type PolicyDesc: str
|
30872
|
+
:param _EnforcementAction: 策略运行模式:dryrun空跑不生效,deny拦截生效
|
30873
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30874
|
+
:type EnforcementAction: str
|
30875
|
+
:param _EventNums: 关联的事件数量(最近7d)
|
30876
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30877
|
+
:type EventNums: int
|
30878
|
+
:param _Name: 策略英文名称
|
30879
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30880
|
+
:type Name: str
|
30881
|
+
:param _Kind: 策略模版类型
|
30882
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30883
|
+
:type Kind: str
|
30884
|
+
:param _EnabledStatus: 策略开关状态:open打开,close关闭
|
30885
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30886
|
+
:type EnabledStatus: str
|
30887
|
+
:param _ConstraintYamlExample: 策略的实例的yaml示例base64编码
|
30888
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30889
|
+
:type ConstraintYamlExample: str
|
30890
|
+
:param _OpenConstraintInfoList: 策略关联的实例列表
|
30891
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30892
|
+
:type OpenConstraintInfoList: list of OpenConstraintInfo
|
30893
|
+
"""
|
30894
|
+
self._PolicyCategory = None
|
30895
|
+
self._PolicyName = None
|
30896
|
+
self._PolicyDesc = None
|
30897
|
+
self._EnforcementAction = None
|
30898
|
+
self._EventNums = None
|
30899
|
+
self._Name = None
|
30900
|
+
self._Kind = None
|
30901
|
+
self._EnabledStatus = None
|
30902
|
+
self._ConstraintYamlExample = None
|
30903
|
+
self._OpenConstraintInfoList = None
|
30904
|
+
|
30905
|
+
@property
|
30906
|
+
def PolicyCategory(self):
|
30907
|
+
return self._PolicyCategory
|
30908
|
+
|
30909
|
+
@PolicyCategory.setter
|
30910
|
+
def PolicyCategory(self, PolicyCategory):
|
30911
|
+
self._PolicyCategory = PolicyCategory
|
30912
|
+
|
30913
|
+
@property
|
30914
|
+
def PolicyName(self):
|
30915
|
+
return self._PolicyName
|
30916
|
+
|
30917
|
+
@PolicyName.setter
|
30918
|
+
def PolicyName(self, PolicyName):
|
30919
|
+
self._PolicyName = PolicyName
|
30920
|
+
|
30921
|
+
@property
|
30922
|
+
def PolicyDesc(self):
|
30923
|
+
return self._PolicyDesc
|
30924
|
+
|
30925
|
+
@PolicyDesc.setter
|
30926
|
+
def PolicyDesc(self, PolicyDesc):
|
30927
|
+
self._PolicyDesc = PolicyDesc
|
30928
|
+
|
30929
|
+
@property
|
30930
|
+
def EnforcementAction(self):
|
30931
|
+
return self._EnforcementAction
|
30932
|
+
|
30933
|
+
@EnforcementAction.setter
|
30934
|
+
def EnforcementAction(self, EnforcementAction):
|
30935
|
+
self._EnforcementAction = EnforcementAction
|
30936
|
+
|
30937
|
+
@property
|
30938
|
+
def EventNums(self):
|
30939
|
+
return self._EventNums
|
30940
|
+
|
30941
|
+
@EventNums.setter
|
30942
|
+
def EventNums(self, EventNums):
|
30943
|
+
self._EventNums = EventNums
|
30944
|
+
|
30945
|
+
@property
|
30946
|
+
def Name(self):
|
30947
|
+
return self._Name
|
30948
|
+
|
30949
|
+
@Name.setter
|
30950
|
+
def Name(self, Name):
|
30951
|
+
self._Name = Name
|
30952
|
+
|
30953
|
+
@property
|
30954
|
+
def Kind(self):
|
30955
|
+
return self._Kind
|
30956
|
+
|
30957
|
+
@Kind.setter
|
30958
|
+
def Kind(self, Kind):
|
30959
|
+
self._Kind = Kind
|
30960
|
+
|
30961
|
+
@property
|
30962
|
+
def EnabledStatus(self):
|
30963
|
+
return self._EnabledStatus
|
30964
|
+
|
30965
|
+
@EnabledStatus.setter
|
30966
|
+
def EnabledStatus(self, EnabledStatus):
|
30967
|
+
self._EnabledStatus = EnabledStatus
|
30968
|
+
|
30969
|
+
@property
|
30970
|
+
def ConstraintYamlExample(self):
|
30971
|
+
return self._ConstraintYamlExample
|
30972
|
+
|
30973
|
+
@ConstraintYamlExample.setter
|
30974
|
+
def ConstraintYamlExample(self, ConstraintYamlExample):
|
30975
|
+
self._ConstraintYamlExample = ConstraintYamlExample
|
30976
|
+
|
30977
|
+
@property
|
30978
|
+
def OpenConstraintInfoList(self):
|
30979
|
+
return self._OpenConstraintInfoList
|
30980
|
+
|
30981
|
+
@OpenConstraintInfoList.setter
|
30982
|
+
def OpenConstraintInfoList(self, OpenConstraintInfoList):
|
30983
|
+
self._OpenConstraintInfoList = OpenConstraintInfoList
|
30984
|
+
|
30985
|
+
|
30986
|
+
def _deserialize(self, params):
|
30987
|
+
self._PolicyCategory = params.get("PolicyCategory")
|
30988
|
+
self._PolicyName = params.get("PolicyName")
|
30989
|
+
self._PolicyDesc = params.get("PolicyDesc")
|
30990
|
+
self._EnforcementAction = params.get("EnforcementAction")
|
30991
|
+
self._EventNums = params.get("EventNums")
|
30992
|
+
self._Name = params.get("Name")
|
30993
|
+
self._Kind = params.get("Kind")
|
30994
|
+
self._EnabledStatus = params.get("EnabledStatus")
|
30995
|
+
self._ConstraintYamlExample = params.get("ConstraintYamlExample")
|
30996
|
+
if params.get("OpenConstraintInfoList") is not None:
|
30997
|
+
self._OpenConstraintInfoList = []
|
30998
|
+
for item in params.get("OpenConstraintInfoList"):
|
30999
|
+
obj = OpenConstraintInfo()
|
31000
|
+
obj._deserialize(item)
|
31001
|
+
self._OpenConstraintInfoList.append(obj)
|
31002
|
+
memeber_set = set(params.keys())
|
31003
|
+
for name, value in vars(self).items():
|
31004
|
+
property_name = name[1:]
|
31005
|
+
if property_name in memeber_set:
|
31006
|
+
memeber_set.remove(property_name)
|
31007
|
+
if len(memeber_set) > 0:
|
31008
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
31009
|
+
|
31010
|
+
|
31011
|
+
|
31012
|
+
class OpenPolicySwitch(AbstractModel):
|
31013
|
+
"""opa策略开关
|
31014
|
+
|
31015
|
+
"""
|
31016
|
+
|
31017
|
+
def __init__(self):
|
31018
|
+
r"""
|
31019
|
+
:param _EnforcementAction: 策略运行模式:dryrun空跑不生效,deny拦截生效
|
31020
|
+
:type EnforcementAction: str
|
31021
|
+
:param _Name: 策略英文名称
|
31022
|
+
:type Name: str
|
31023
|
+
:param _Kind: 策略模版类型
|
31024
|
+
:type Kind: str
|
31025
|
+
:param _EnabledStatus: 策略开关状态:open打开,close关闭
|
31026
|
+
:type EnabledStatus: str
|
31027
|
+
:param _OpenConstraintInfoList: 策略关联的实例列表
|
31028
|
+
:type OpenConstraintInfoList: list of OpenConstraintInfo
|
31029
|
+
"""
|
31030
|
+
self._EnforcementAction = None
|
31031
|
+
self._Name = None
|
31032
|
+
self._Kind = None
|
31033
|
+
self._EnabledStatus = None
|
31034
|
+
self._OpenConstraintInfoList = None
|
31035
|
+
|
31036
|
+
@property
|
31037
|
+
def EnforcementAction(self):
|
31038
|
+
return self._EnforcementAction
|
31039
|
+
|
31040
|
+
@EnforcementAction.setter
|
31041
|
+
def EnforcementAction(self, EnforcementAction):
|
31042
|
+
self._EnforcementAction = EnforcementAction
|
31043
|
+
|
31044
|
+
@property
|
31045
|
+
def Name(self):
|
31046
|
+
return self._Name
|
31047
|
+
|
31048
|
+
@Name.setter
|
31049
|
+
def Name(self, Name):
|
31050
|
+
self._Name = Name
|
31051
|
+
|
31052
|
+
@property
|
31053
|
+
def Kind(self):
|
31054
|
+
return self._Kind
|
31055
|
+
|
31056
|
+
@Kind.setter
|
31057
|
+
def Kind(self, Kind):
|
31058
|
+
self._Kind = Kind
|
31059
|
+
|
31060
|
+
@property
|
31061
|
+
def EnabledStatus(self):
|
31062
|
+
return self._EnabledStatus
|
31063
|
+
|
31064
|
+
@EnabledStatus.setter
|
31065
|
+
def EnabledStatus(self, EnabledStatus):
|
31066
|
+
self._EnabledStatus = EnabledStatus
|
31067
|
+
|
31068
|
+
@property
|
31069
|
+
def OpenConstraintInfoList(self):
|
31070
|
+
return self._OpenConstraintInfoList
|
31071
|
+
|
31072
|
+
@OpenConstraintInfoList.setter
|
31073
|
+
def OpenConstraintInfoList(self, OpenConstraintInfoList):
|
31074
|
+
self._OpenConstraintInfoList = OpenConstraintInfoList
|
31075
|
+
|
31076
|
+
|
31077
|
+
def _deserialize(self, params):
|
31078
|
+
self._EnforcementAction = params.get("EnforcementAction")
|
31079
|
+
self._Name = params.get("Name")
|
31080
|
+
self._Kind = params.get("Kind")
|
31081
|
+
self._EnabledStatus = params.get("EnabledStatus")
|
31082
|
+
if params.get("OpenConstraintInfoList") is not None:
|
31083
|
+
self._OpenConstraintInfoList = []
|
31084
|
+
for item in params.get("OpenConstraintInfoList"):
|
31085
|
+
obj = OpenConstraintInfo()
|
31086
|
+
obj._deserialize(item)
|
31087
|
+
self._OpenConstraintInfoList.append(obj)
|
31088
|
+
memeber_set = set(params.keys())
|
31089
|
+
for name, value in vars(self).items():
|
31090
|
+
property_name = name[1:]
|
31091
|
+
if property_name in memeber_set:
|
31092
|
+
memeber_set.remove(property_name)
|
31093
|
+
if len(memeber_set) > 0:
|
31094
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
31095
|
+
|
31096
|
+
|
31097
|
+
|
30595
31098
|
class OptionalRuntimes(AbstractModel):
|
30596
31099
|
"""可选运行时
|
30597
31100
|
|