tencentcloud-sdk-python-cngw 3.1.123__tar.gz → 3.1.124__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.
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/setup.py +1 -1
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/cngw/v20230418/cngw_client.py +92 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/cngw/v20230418/cngw_client_async.py +72 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/cngw/v20230418/models.py +436 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud_sdk_python_cngw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cngw-3.1.124/tencentcloud_sdk_python_cngw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cngw-3.1.123/tencentcloud_sdk_python_cngw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/README.rst +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/cngw/__init__.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/cngw/v20230418/__init__.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud/cngw/v20230418/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud_sdk_python_cngw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud_sdk_python_cngw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cngw-3.1.123 → tencentcloud_sdk_python_cngw-3.1.124}/tencentcloud_sdk_python_cngw.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cngw
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.124
|
|
4
4
|
Summary: Tencent Cloud Cngw 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cngw',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.124,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cngw SDK for Python',
|
|
@@ -49,6 +49,52 @@ class CngwClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def AddCloudNativeAPIGatewayConsumerInGroup(self, request):
|
|
53
|
+
r"""将消费者添加到消费者组。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for AddCloudNativeAPIGatewayConsumerInGroup.
|
|
56
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.AddCloudNativeAPIGatewayConsumerInGroupRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.AddCloudNativeAPIGatewayConsumerInGroupResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("AddCloudNativeAPIGatewayConsumerInGroup", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.AddCloudNativeAPIGatewayConsumerInGroupResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def BindCloudNativeAPIGatewaySecretKey(self, request):
|
|
76
|
+
r"""添加密钥与资源的引用关系接口
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for BindCloudNativeAPIGatewaySecretKey.
|
|
79
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.BindCloudNativeAPIGatewaySecretKeyRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.BindCloudNativeAPIGatewaySecretKeyResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("BindCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.BindCloudNativeAPIGatewaySecretKeyResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
52
98
|
def CreateCloudNativeAPIGatewayConsumer(self, request):
|
|
53
99
|
r"""创建AI网关消费者。
|
|
54
100
|
|
|
@@ -1054,6 +1100,52 @@ class CngwClient(AbstractClient):
|
|
|
1054
1100
|
model = models.RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse()
|
|
1055
1101
|
model._deserialize(response["Response"])
|
|
1056
1102
|
return model
|
|
1103
|
+
except Exception as e:
|
|
1104
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1105
|
+
raise
|
|
1106
|
+
else:
|
|
1107
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
def RemoveCloudNativeAPIGatewayConsumerInGroup(self, request):
|
|
1111
|
+
r"""将消费者从消费者组移除。
|
|
1112
|
+
|
|
1113
|
+
:param request: Request instance for RemoveCloudNativeAPIGatewayConsumerInGroup.
|
|
1114
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.RemoveCloudNativeAPIGatewayConsumerInGroupRequest`
|
|
1115
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse`
|
|
1116
|
+
|
|
1117
|
+
"""
|
|
1118
|
+
try:
|
|
1119
|
+
params = request._serialize()
|
|
1120
|
+
headers = request.headers
|
|
1121
|
+
body = self.call("RemoveCloudNativeAPIGatewayConsumerInGroup", params, headers=headers)
|
|
1122
|
+
response = json.loads(body)
|
|
1123
|
+
model = models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse()
|
|
1124
|
+
model._deserialize(response["Response"])
|
|
1125
|
+
return model
|
|
1126
|
+
except Exception as e:
|
|
1127
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1128
|
+
raise
|
|
1129
|
+
else:
|
|
1130
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
def UnbindCloudNativeAPIGatewaySecretKey(self, request):
|
|
1134
|
+
r"""解绑密钥
|
|
1135
|
+
|
|
1136
|
+
:param request: Request instance for UnbindCloudNativeAPIGatewaySecretKey.
|
|
1137
|
+
:type request: :class:`tencentcloud.cngw.v20230418.models.UnbindCloudNativeAPIGatewaySecretKeyRequest`
|
|
1138
|
+
:rtype: :class:`tencentcloud.cngw.v20230418.models.UnbindCloudNativeAPIGatewaySecretKeyResponse`
|
|
1139
|
+
|
|
1140
|
+
"""
|
|
1141
|
+
try:
|
|
1142
|
+
params = request._serialize()
|
|
1143
|
+
headers = request.headers
|
|
1144
|
+
body = self.call("UnbindCloudNativeAPIGatewaySecretKey", params, headers=headers)
|
|
1145
|
+
response = json.loads(body)
|
|
1146
|
+
model = models.UnbindCloudNativeAPIGatewaySecretKeyResponse()
|
|
1147
|
+
model._deserialize(response["Response"])
|
|
1148
|
+
return model
|
|
1057
1149
|
except Exception as e:
|
|
1058
1150
|
if isinstance(e, TencentCloudSDKException):
|
|
1059
1151
|
raise
|
|
@@ -43,6 +43,42 @@ class CngwClient(AbstractClient):
|
|
|
43
43
|
|
|
44
44
|
return await self.call_and_deserialize(**kwargs)
|
|
45
45
|
|
|
46
|
+
async def AddCloudNativeAPIGatewayConsumerInGroup(
|
|
47
|
+
self,
|
|
48
|
+
request: models.AddCloudNativeAPIGatewayConsumerInGroupRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.AddCloudNativeAPIGatewayConsumerInGroupResponse:
|
|
51
|
+
"""
|
|
52
|
+
将消费者添加到消费者组。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "AddCloudNativeAPIGatewayConsumerInGroup"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.AddCloudNativeAPIGatewayConsumerInGroupResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def BindCloudNativeAPIGatewaySecretKey(
|
|
65
|
+
self,
|
|
66
|
+
request: models.BindCloudNativeAPIGatewaySecretKeyRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.BindCloudNativeAPIGatewaySecretKeyResponse:
|
|
69
|
+
"""
|
|
70
|
+
添加密钥与资源的引用关系接口
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "BindCloudNativeAPIGatewaySecretKey"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.BindCloudNativeAPIGatewaySecretKeyResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
46
82
|
async def CreateCloudNativeAPIGatewayConsumer(
|
|
47
83
|
self,
|
|
48
84
|
request: models.CreateCloudNativeAPIGatewayConsumerRequest,
|
|
@@ -833,4 +869,40 @@ class CngwClient(AbstractClient):
|
|
|
833
869
|
kwargs["headers"] = request.headers
|
|
834
870
|
kwargs["opts"] = opts or {}
|
|
835
871
|
|
|
872
|
+
return await self.call_and_deserialize(**kwargs)
|
|
873
|
+
|
|
874
|
+
async def RemoveCloudNativeAPIGatewayConsumerInGroup(
|
|
875
|
+
self,
|
|
876
|
+
request: models.RemoveCloudNativeAPIGatewayConsumerInGroupRequest,
|
|
877
|
+
opts: Dict = None,
|
|
878
|
+
) -> models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse:
|
|
879
|
+
"""
|
|
880
|
+
将消费者从消费者组移除。
|
|
881
|
+
"""
|
|
882
|
+
|
|
883
|
+
kwargs = {}
|
|
884
|
+
kwargs["action"] = "RemoveCloudNativeAPIGatewayConsumerInGroup"
|
|
885
|
+
kwargs["params"] = request._serialize()
|
|
886
|
+
kwargs["resp_cls"] = models.RemoveCloudNativeAPIGatewayConsumerInGroupResponse
|
|
887
|
+
kwargs["headers"] = request.headers
|
|
888
|
+
kwargs["opts"] = opts or {}
|
|
889
|
+
|
|
890
|
+
return await self.call_and_deserialize(**kwargs)
|
|
891
|
+
|
|
892
|
+
async def UnbindCloudNativeAPIGatewaySecretKey(
|
|
893
|
+
self,
|
|
894
|
+
request: models.UnbindCloudNativeAPIGatewaySecretKeyRequest,
|
|
895
|
+
opts: Dict = None,
|
|
896
|
+
) -> models.UnbindCloudNativeAPIGatewaySecretKeyResponse:
|
|
897
|
+
"""
|
|
898
|
+
解绑密钥
|
|
899
|
+
"""
|
|
900
|
+
|
|
901
|
+
kwargs = {}
|
|
902
|
+
kwargs["action"] = "UnbindCloudNativeAPIGatewaySecretKey"
|
|
903
|
+
kwargs["params"] = request._serialize()
|
|
904
|
+
kwargs["resp_cls"] = models.UnbindCloudNativeAPIGatewaySecretKeyResponse
|
|
905
|
+
kwargs["headers"] = request.headers
|
|
906
|
+
kwargs["opts"] = opts or {}
|
|
907
|
+
|
|
836
908
|
return await self.call_and_deserialize(**kwargs)
|
|
@@ -2951,6 +2951,239 @@ class AddCloudNativeAPIGatewayConsumerGroupAuthResponse(AbstractModel):
|
|
|
2951
2951
|
self._RequestId = params.get("RequestId")
|
|
2952
2952
|
|
|
2953
2953
|
|
|
2954
|
+
class AddCloudNativeAPIGatewayConsumerInGroupRequest(AbstractModel):
|
|
2955
|
+
r"""AddCloudNativeAPIGatewayConsumerInGroup请求参数结构体
|
|
2956
|
+
|
|
2957
|
+
"""
|
|
2958
|
+
|
|
2959
|
+
def __init__(self):
|
|
2960
|
+
r"""
|
|
2961
|
+
:param _GatewayId: 网关实例id
|
|
2962
|
+
:type GatewayId: str
|
|
2963
|
+
:param _ConsumerGroupId: <p>消费者组 ID(以 cg- 开头)。</p>
|
|
2964
|
+
:type ConsumerGroupId: str
|
|
2965
|
+
:param _ConsumerIds: <p>消费者 ID 列表,长度 1-10。</p>
|
|
2966
|
+
:type ConsumerIds: list of str
|
|
2967
|
+
"""
|
|
2968
|
+
self._GatewayId = None
|
|
2969
|
+
self._ConsumerGroupId = None
|
|
2970
|
+
self._ConsumerIds = None
|
|
2971
|
+
|
|
2972
|
+
@property
|
|
2973
|
+
def GatewayId(self):
|
|
2974
|
+
r"""网关实例id
|
|
2975
|
+
:rtype: str
|
|
2976
|
+
"""
|
|
2977
|
+
return self._GatewayId
|
|
2978
|
+
|
|
2979
|
+
@GatewayId.setter
|
|
2980
|
+
def GatewayId(self, GatewayId):
|
|
2981
|
+
self._GatewayId = GatewayId
|
|
2982
|
+
|
|
2983
|
+
@property
|
|
2984
|
+
def ConsumerGroupId(self):
|
|
2985
|
+
r"""<p>消费者组 ID(以 cg- 开头)。</p>
|
|
2986
|
+
:rtype: str
|
|
2987
|
+
"""
|
|
2988
|
+
return self._ConsumerGroupId
|
|
2989
|
+
|
|
2990
|
+
@ConsumerGroupId.setter
|
|
2991
|
+
def ConsumerGroupId(self, ConsumerGroupId):
|
|
2992
|
+
self._ConsumerGroupId = ConsumerGroupId
|
|
2993
|
+
|
|
2994
|
+
@property
|
|
2995
|
+
def ConsumerIds(self):
|
|
2996
|
+
r"""<p>消费者 ID 列表,长度 1-10。</p>
|
|
2997
|
+
:rtype: list of str
|
|
2998
|
+
"""
|
|
2999
|
+
return self._ConsumerIds
|
|
3000
|
+
|
|
3001
|
+
@ConsumerIds.setter
|
|
3002
|
+
def ConsumerIds(self, ConsumerIds):
|
|
3003
|
+
self._ConsumerIds = ConsumerIds
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
def _deserialize(self, params):
|
|
3007
|
+
self._GatewayId = params.get("GatewayId")
|
|
3008
|
+
self._ConsumerGroupId = params.get("ConsumerGroupId")
|
|
3009
|
+
self._ConsumerIds = params.get("ConsumerIds")
|
|
3010
|
+
memeber_set = set(params.keys())
|
|
3011
|
+
for name, value in vars(self).items():
|
|
3012
|
+
property_name = name[1:]
|
|
3013
|
+
if property_name in memeber_set:
|
|
3014
|
+
memeber_set.remove(property_name)
|
|
3015
|
+
if len(memeber_set) > 0:
|
|
3016
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
class AddCloudNativeAPIGatewayConsumerInGroupResponse(AbstractModel):
|
|
3021
|
+
r"""AddCloudNativeAPIGatewayConsumerInGroup返回参数结构体
|
|
3022
|
+
|
|
3023
|
+
"""
|
|
3024
|
+
|
|
3025
|
+
def __init__(self):
|
|
3026
|
+
r"""
|
|
3027
|
+
:param _Result: <p>是否成功。</p>
|
|
3028
|
+
:type Result: bool
|
|
3029
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3030
|
+
:type RequestId: str
|
|
3031
|
+
"""
|
|
3032
|
+
self._Result = None
|
|
3033
|
+
self._RequestId = None
|
|
3034
|
+
|
|
3035
|
+
@property
|
|
3036
|
+
def Result(self):
|
|
3037
|
+
r"""<p>是否成功。</p>
|
|
3038
|
+
:rtype: bool
|
|
3039
|
+
"""
|
|
3040
|
+
return self._Result
|
|
3041
|
+
|
|
3042
|
+
@Result.setter
|
|
3043
|
+
def Result(self, Result):
|
|
3044
|
+
self._Result = Result
|
|
3045
|
+
|
|
3046
|
+
@property
|
|
3047
|
+
def RequestId(self):
|
|
3048
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3049
|
+
:rtype: str
|
|
3050
|
+
"""
|
|
3051
|
+
return self._RequestId
|
|
3052
|
+
|
|
3053
|
+
@RequestId.setter
|
|
3054
|
+
def RequestId(self, RequestId):
|
|
3055
|
+
self._RequestId = RequestId
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
def _deserialize(self, params):
|
|
3059
|
+
self._Result = params.get("Result")
|
|
3060
|
+
self._RequestId = params.get("RequestId")
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
class BindCloudNativeAPIGatewaySecretKeyRequest(AbstractModel):
|
|
3064
|
+
r"""BindCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
3065
|
+
|
|
3066
|
+
"""
|
|
3067
|
+
|
|
3068
|
+
def __init__(self):
|
|
3069
|
+
r"""
|
|
3070
|
+
:param _GatewayId: 网关实例id
|
|
3071
|
+
:type GatewayId: str
|
|
3072
|
+
:param _ResourceType: 资源类型
|
|
3073
|
+
:type ResourceType: str
|
|
3074
|
+
:param _ResourceIds: 资源ID,当前最多支持一个
|
|
3075
|
+
:type ResourceIds: list of str
|
|
3076
|
+
:param _SecretKeyId: 密钥id
|
|
3077
|
+
:type SecretKeyId: str
|
|
3078
|
+
"""
|
|
3079
|
+
self._GatewayId = None
|
|
3080
|
+
self._ResourceType = None
|
|
3081
|
+
self._ResourceIds = None
|
|
3082
|
+
self._SecretKeyId = None
|
|
3083
|
+
|
|
3084
|
+
@property
|
|
3085
|
+
def GatewayId(self):
|
|
3086
|
+
r"""网关实例id
|
|
3087
|
+
:rtype: str
|
|
3088
|
+
"""
|
|
3089
|
+
return self._GatewayId
|
|
3090
|
+
|
|
3091
|
+
@GatewayId.setter
|
|
3092
|
+
def GatewayId(self, GatewayId):
|
|
3093
|
+
self._GatewayId = GatewayId
|
|
3094
|
+
|
|
3095
|
+
@property
|
|
3096
|
+
def ResourceType(self):
|
|
3097
|
+
r"""资源类型
|
|
3098
|
+
:rtype: str
|
|
3099
|
+
"""
|
|
3100
|
+
return self._ResourceType
|
|
3101
|
+
|
|
3102
|
+
@ResourceType.setter
|
|
3103
|
+
def ResourceType(self, ResourceType):
|
|
3104
|
+
self._ResourceType = ResourceType
|
|
3105
|
+
|
|
3106
|
+
@property
|
|
3107
|
+
def ResourceIds(self):
|
|
3108
|
+
r"""资源ID,当前最多支持一个
|
|
3109
|
+
:rtype: list of str
|
|
3110
|
+
"""
|
|
3111
|
+
return self._ResourceIds
|
|
3112
|
+
|
|
3113
|
+
@ResourceIds.setter
|
|
3114
|
+
def ResourceIds(self, ResourceIds):
|
|
3115
|
+
self._ResourceIds = ResourceIds
|
|
3116
|
+
|
|
3117
|
+
@property
|
|
3118
|
+
def SecretKeyId(self):
|
|
3119
|
+
r"""密钥id
|
|
3120
|
+
:rtype: str
|
|
3121
|
+
"""
|
|
3122
|
+
return self._SecretKeyId
|
|
3123
|
+
|
|
3124
|
+
@SecretKeyId.setter
|
|
3125
|
+
def SecretKeyId(self, SecretKeyId):
|
|
3126
|
+
self._SecretKeyId = SecretKeyId
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
def _deserialize(self, params):
|
|
3130
|
+
self._GatewayId = params.get("GatewayId")
|
|
3131
|
+
self._ResourceType = params.get("ResourceType")
|
|
3132
|
+
self._ResourceIds = params.get("ResourceIds")
|
|
3133
|
+
self._SecretKeyId = params.get("SecretKeyId")
|
|
3134
|
+
memeber_set = set(params.keys())
|
|
3135
|
+
for name, value in vars(self).items():
|
|
3136
|
+
property_name = name[1:]
|
|
3137
|
+
if property_name in memeber_set:
|
|
3138
|
+
memeber_set.remove(property_name)
|
|
3139
|
+
if len(memeber_set) > 0:
|
|
3140
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
class BindCloudNativeAPIGatewaySecretKeyResponse(AbstractModel):
|
|
3145
|
+
r"""BindCloudNativeAPIGatewaySecretKey返回参数结构体
|
|
3146
|
+
|
|
3147
|
+
"""
|
|
3148
|
+
|
|
3149
|
+
def __init__(self):
|
|
3150
|
+
r"""
|
|
3151
|
+
:param _Result: 结果
|
|
3152
|
+
:type Result: bool
|
|
3153
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3154
|
+
:type RequestId: str
|
|
3155
|
+
"""
|
|
3156
|
+
self._Result = None
|
|
3157
|
+
self._RequestId = None
|
|
3158
|
+
|
|
3159
|
+
@property
|
|
3160
|
+
def Result(self):
|
|
3161
|
+
r"""结果
|
|
3162
|
+
:rtype: bool
|
|
3163
|
+
"""
|
|
3164
|
+
return self._Result
|
|
3165
|
+
|
|
3166
|
+
@Result.setter
|
|
3167
|
+
def Result(self, Result):
|
|
3168
|
+
self._Result = Result
|
|
3169
|
+
|
|
3170
|
+
@property
|
|
3171
|
+
def RequestId(self):
|
|
3172
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3173
|
+
:rtype: str
|
|
3174
|
+
"""
|
|
3175
|
+
return self._RequestId
|
|
3176
|
+
|
|
3177
|
+
@RequestId.setter
|
|
3178
|
+
def RequestId(self, RequestId):
|
|
3179
|
+
self._RequestId = RequestId
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
def _deserialize(self, params):
|
|
3183
|
+
self._Result = params.get("Result")
|
|
3184
|
+
self._RequestId = params.get("RequestId")
|
|
3185
|
+
|
|
3186
|
+
|
|
2954
3187
|
class CNAPIGwConsumer(AbstractModel):
|
|
2955
3188
|
r"""消费者结构
|
|
2956
3189
|
|
|
@@ -11436,5 +11669,208 @@ class RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse(AbstractModel):
|
|
|
11436
11669
|
self._RequestId = RequestId
|
|
11437
11670
|
|
|
11438
11671
|
|
|
11672
|
+
def _deserialize(self, params):
|
|
11673
|
+
self._RequestId = params.get("RequestId")
|
|
11674
|
+
|
|
11675
|
+
|
|
11676
|
+
class RemoveCloudNativeAPIGatewayConsumerInGroupRequest(AbstractModel):
|
|
11677
|
+
r"""RemoveCloudNativeAPIGatewayConsumerInGroup请求参数结构体
|
|
11678
|
+
|
|
11679
|
+
"""
|
|
11680
|
+
|
|
11681
|
+
def __init__(self):
|
|
11682
|
+
r"""
|
|
11683
|
+
:param _GatewayId: 网关实例id
|
|
11684
|
+
:type GatewayId: str
|
|
11685
|
+
:param _ConsumerGroupId: <p>消费者组 ID(以 cg- 开头)。</p>
|
|
11686
|
+
:type ConsumerGroupId: str
|
|
11687
|
+
:param _ConsumerIds: <p>消费者 ID 列表,长度 1-10。</p>
|
|
11688
|
+
:type ConsumerIds: list of str
|
|
11689
|
+
"""
|
|
11690
|
+
self._GatewayId = None
|
|
11691
|
+
self._ConsumerGroupId = None
|
|
11692
|
+
self._ConsumerIds = None
|
|
11693
|
+
|
|
11694
|
+
@property
|
|
11695
|
+
def GatewayId(self):
|
|
11696
|
+
r"""网关实例id
|
|
11697
|
+
:rtype: str
|
|
11698
|
+
"""
|
|
11699
|
+
return self._GatewayId
|
|
11700
|
+
|
|
11701
|
+
@GatewayId.setter
|
|
11702
|
+
def GatewayId(self, GatewayId):
|
|
11703
|
+
self._GatewayId = GatewayId
|
|
11704
|
+
|
|
11705
|
+
@property
|
|
11706
|
+
def ConsumerGroupId(self):
|
|
11707
|
+
r"""<p>消费者组 ID(以 cg- 开头)。</p>
|
|
11708
|
+
:rtype: str
|
|
11709
|
+
"""
|
|
11710
|
+
return self._ConsumerGroupId
|
|
11711
|
+
|
|
11712
|
+
@ConsumerGroupId.setter
|
|
11713
|
+
def ConsumerGroupId(self, ConsumerGroupId):
|
|
11714
|
+
self._ConsumerGroupId = ConsumerGroupId
|
|
11715
|
+
|
|
11716
|
+
@property
|
|
11717
|
+
def ConsumerIds(self):
|
|
11718
|
+
r"""<p>消费者 ID 列表,长度 1-10。</p>
|
|
11719
|
+
:rtype: list of str
|
|
11720
|
+
"""
|
|
11721
|
+
return self._ConsumerIds
|
|
11722
|
+
|
|
11723
|
+
@ConsumerIds.setter
|
|
11724
|
+
def ConsumerIds(self, ConsumerIds):
|
|
11725
|
+
self._ConsumerIds = ConsumerIds
|
|
11726
|
+
|
|
11727
|
+
|
|
11728
|
+
def _deserialize(self, params):
|
|
11729
|
+
self._GatewayId = params.get("GatewayId")
|
|
11730
|
+
self._ConsumerGroupId = params.get("ConsumerGroupId")
|
|
11731
|
+
self._ConsumerIds = params.get("ConsumerIds")
|
|
11732
|
+
memeber_set = set(params.keys())
|
|
11733
|
+
for name, value in vars(self).items():
|
|
11734
|
+
property_name = name[1:]
|
|
11735
|
+
if property_name in memeber_set:
|
|
11736
|
+
memeber_set.remove(property_name)
|
|
11737
|
+
if len(memeber_set) > 0:
|
|
11738
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11739
|
+
|
|
11740
|
+
|
|
11741
|
+
|
|
11742
|
+
class RemoveCloudNativeAPIGatewayConsumerInGroupResponse(AbstractModel):
|
|
11743
|
+
r"""RemoveCloudNativeAPIGatewayConsumerInGroup返回参数结构体
|
|
11744
|
+
|
|
11745
|
+
"""
|
|
11746
|
+
|
|
11747
|
+
def __init__(self):
|
|
11748
|
+
r"""
|
|
11749
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11750
|
+
:type RequestId: str
|
|
11751
|
+
"""
|
|
11752
|
+
self._RequestId = None
|
|
11753
|
+
|
|
11754
|
+
@property
|
|
11755
|
+
def RequestId(self):
|
|
11756
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11757
|
+
:rtype: str
|
|
11758
|
+
"""
|
|
11759
|
+
return self._RequestId
|
|
11760
|
+
|
|
11761
|
+
@RequestId.setter
|
|
11762
|
+
def RequestId(self, RequestId):
|
|
11763
|
+
self._RequestId = RequestId
|
|
11764
|
+
|
|
11765
|
+
|
|
11766
|
+
def _deserialize(self, params):
|
|
11767
|
+
self._RequestId = params.get("RequestId")
|
|
11768
|
+
|
|
11769
|
+
|
|
11770
|
+
class UnbindCloudNativeAPIGatewaySecretKeyRequest(AbstractModel):
|
|
11771
|
+
r"""UnbindCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
11772
|
+
|
|
11773
|
+
"""
|
|
11774
|
+
|
|
11775
|
+
def __init__(self):
|
|
11776
|
+
r"""
|
|
11777
|
+
:param _GatewayId: 网关实例id
|
|
11778
|
+
:type GatewayId: str
|
|
11779
|
+
:param _ResourceType: 资源类型
|
|
11780
|
+
:type ResourceType: str
|
|
11781
|
+
:param _ResourceIds: 资源ID,当前最多支持一个
|
|
11782
|
+
:type ResourceIds: list of str
|
|
11783
|
+
:param _SecretKeyId: 密钥id
|
|
11784
|
+
:type SecretKeyId: str
|
|
11785
|
+
"""
|
|
11786
|
+
self._GatewayId = None
|
|
11787
|
+
self._ResourceType = None
|
|
11788
|
+
self._ResourceIds = None
|
|
11789
|
+
self._SecretKeyId = None
|
|
11790
|
+
|
|
11791
|
+
@property
|
|
11792
|
+
def GatewayId(self):
|
|
11793
|
+
r"""网关实例id
|
|
11794
|
+
:rtype: str
|
|
11795
|
+
"""
|
|
11796
|
+
return self._GatewayId
|
|
11797
|
+
|
|
11798
|
+
@GatewayId.setter
|
|
11799
|
+
def GatewayId(self, GatewayId):
|
|
11800
|
+
self._GatewayId = GatewayId
|
|
11801
|
+
|
|
11802
|
+
@property
|
|
11803
|
+
def ResourceType(self):
|
|
11804
|
+
r"""资源类型
|
|
11805
|
+
:rtype: str
|
|
11806
|
+
"""
|
|
11807
|
+
return self._ResourceType
|
|
11808
|
+
|
|
11809
|
+
@ResourceType.setter
|
|
11810
|
+
def ResourceType(self, ResourceType):
|
|
11811
|
+
self._ResourceType = ResourceType
|
|
11812
|
+
|
|
11813
|
+
@property
|
|
11814
|
+
def ResourceIds(self):
|
|
11815
|
+
r"""资源ID,当前最多支持一个
|
|
11816
|
+
:rtype: list of str
|
|
11817
|
+
"""
|
|
11818
|
+
return self._ResourceIds
|
|
11819
|
+
|
|
11820
|
+
@ResourceIds.setter
|
|
11821
|
+
def ResourceIds(self, ResourceIds):
|
|
11822
|
+
self._ResourceIds = ResourceIds
|
|
11823
|
+
|
|
11824
|
+
@property
|
|
11825
|
+
def SecretKeyId(self):
|
|
11826
|
+
r"""密钥id
|
|
11827
|
+
:rtype: str
|
|
11828
|
+
"""
|
|
11829
|
+
return self._SecretKeyId
|
|
11830
|
+
|
|
11831
|
+
@SecretKeyId.setter
|
|
11832
|
+
def SecretKeyId(self, SecretKeyId):
|
|
11833
|
+
self._SecretKeyId = SecretKeyId
|
|
11834
|
+
|
|
11835
|
+
|
|
11836
|
+
def _deserialize(self, params):
|
|
11837
|
+
self._GatewayId = params.get("GatewayId")
|
|
11838
|
+
self._ResourceType = params.get("ResourceType")
|
|
11839
|
+
self._ResourceIds = params.get("ResourceIds")
|
|
11840
|
+
self._SecretKeyId = params.get("SecretKeyId")
|
|
11841
|
+
memeber_set = set(params.keys())
|
|
11842
|
+
for name, value in vars(self).items():
|
|
11843
|
+
property_name = name[1:]
|
|
11844
|
+
if property_name in memeber_set:
|
|
11845
|
+
memeber_set.remove(property_name)
|
|
11846
|
+
if len(memeber_set) > 0:
|
|
11847
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11848
|
+
|
|
11849
|
+
|
|
11850
|
+
|
|
11851
|
+
class UnbindCloudNativeAPIGatewaySecretKeyResponse(AbstractModel):
|
|
11852
|
+
r"""UnbindCloudNativeAPIGatewaySecretKey返回参数结构体
|
|
11853
|
+
|
|
11854
|
+
"""
|
|
11855
|
+
|
|
11856
|
+
def __init__(self):
|
|
11857
|
+
r"""
|
|
11858
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11859
|
+
:type RequestId: str
|
|
11860
|
+
"""
|
|
11861
|
+
self._RequestId = None
|
|
11862
|
+
|
|
11863
|
+
@property
|
|
11864
|
+
def RequestId(self):
|
|
11865
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11866
|
+
:rtype: str
|
|
11867
|
+
"""
|
|
11868
|
+
return self._RequestId
|
|
11869
|
+
|
|
11870
|
+
@RequestId.setter
|
|
11871
|
+
def RequestId(self, RequestId):
|
|
11872
|
+
self._RequestId = RequestId
|
|
11873
|
+
|
|
11874
|
+
|
|
11439
11875
|
def _deserialize(self, params):
|
|
11440
11876
|
self._RequestId = params.get("RequestId")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cngw
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.124
|
|
4
4
|
Summary: Tencent Cloud Cngw 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.123
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|