tencentcloud-sdk-python 3.0.1228__py2.py3-none-any.whl → 3.0.1230__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/aiart/v20221229/aiart_client.py +24 -0
- tencentcloud/aiart/v20221229/models.py +173 -0
- tencentcloud/cfg/v20210820/models.py +13 -0
- tencentcloud/cfw/v20190904/models.py +106 -2
- tencentcloud/ckafka/v20190819/models.py +5 -1
- tencentcloud/dcdb/v20180411/dcdb_client.py +48 -0
- tencentcloud/dcdb/v20180411/models.py +494 -0
- tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
- tencentcloud/dnspod/v20210323/models.py +185 -0
- tencentcloud/emr/v20190103/emr_client.py +119 -0
- tencentcloud/emr/v20190103/errorcodes.py +9 -0
- tencentcloud/emr/v20190103/models.py +994 -113
- tencentcloud/es/v20180416/es_client.py +23 -0
- tencentcloud/es/v20180416/models.py +82 -0
- tencentcloud/ess/v20201111/ess_client.py +6 -8
- tencentcloud/ess/v20201111/models.py +28 -37
- tencentcloud/essbasic/v20210526/essbasic_client.py +33 -0
- tencentcloud/essbasic/v20210526/models.py +172 -0
- tencentcloud/iss/v20230517/iss_client.py +23 -0
- tencentcloud/iss/v20230517/models.py +130 -0
- tencentcloud/mariadb/v20170312/errorcodes.py +3 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +48 -0
- tencentcloud/mariadb/v20170312/models.py +494 -0
- tencentcloud/mps/v20190612/models.py +214 -0
- tencentcloud/ocr/v20181119/models.py +26 -6
- tencentcloud/redis/v20180412/models.py +313 -0
- tencentcloud/redis/v20180412/redis_client.py +46 -0
- tencentcloud/sms/v20210111/models.py +1 -1
- tencentcloud/teo/v20220901/models.py +27 -9
- tencentcloud/tke/v20180525/models.py +12 -0
- tencentcloud/tke/v20220501/models.py +852 -8
- tencentcloud/tke/v20220501/tke_client.py +138 -0
- tencentcloud/tsf/v20180326/models.py +51 -0
- tencentcloud/vdb/v20230616/errorcodes.py +21 -0
- tencentcloud/vdb/v20230616/models.py +742 -0
- tencentcloud/vdb/v20230616/vdb_client.py +115 -0
- tencentcloud/vod/v20240718/__init__.py +0 -0
- tencentcloud/vod/v20240718/errorcodes.py +15 -0
- tencentcloud/vod/v20240718/models.py +189 -0
- tencentcloud/vod/v20240718/vod_client.py +49 -0
- tencentcloud/vpc/v20170312/models.py +25 -5
- {tencentcloud_sdk_python-3.0.1228.dist-info → tencentcloud_sdk_python-3.0.1230.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1228.dist-info → tencentcloud_sdk_python-3.0.1230.dist-info}/RECORD +47 -43
- {tencentcloud_sdk_python-3.0.1228.dist-info → tencentcloud_sdk_python-3.0.1230.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1228.dist-info → tencentcloud_sdk_python-3.0.1230.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1228.dist-info → tencentcloud_sdk_python-3.0.1230.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,75 @@ class VdbClient(AbstractClient):
|
|
26
26
|
_service = 'vdb'
|
27
27
|
|
28
28
|
|
29
|
+
def AssociateSecurityGroups(self, request):
|
30
|
+
"""本接口 (AssociateSecurityGroups) 用于安全组批量绑定多个指定实例。
|
31
|
+
|
32
|
+
:param request: Request instance for AssociateSecurityGroups.
|
33
|
+
:type request: :class:`tencentcloud.vdb.v20230616.models.AssociateSecurityGroupsRequest`
|
34
|
+
:rtype: :class:`tencentcloud.vdb.v20230616.models.AssociateSecurityGroupsResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("AssociateSecurityGroups", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.AssociateSecurityGroupsResponse()
|
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 DescribeDBSecurityGroups(self, request):
|
53
|
+
"""本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
|
54
|
+
|
55
|
+
:param request: Request instance for DescribeDBSecurityGroups.
|
56
|
+
:type request: :class:`tencentcloud.vdb.v20230616.models.DescribeDBSecurityGroupsRequest`
|
57
|
+
:rtype: :class:`tencentcloud.vdb.v20230616.models.DescribeDBSecurityGroupsResponse`
|
58
|
+
|
59
|
+
"""
|
60
|
+
try:
|
61
|
+
params = request._serialize()
|
62
|
+
headers = request.headers
|
63
|
+
body = self.call("DescribeDBSecurityGroups", params, headers=headers)
|
64
|
+
response = json.loads(body)
|
65
|
+
model = models.DescribeDBSecurityGroupsResponse()
|
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 DescribeInstanceNodes(self, request):
|
76
|
+
"""实例节点列表
|
77
|
+
|
78
|
+
:param request: Request instance for DescribeInstanceNodes.
|
79
|
+
:type request: :class:`tencentcloud.vdb.v20230616.models.DescribeInstanceNodesRequest`
|
80
|
+
:rtype: :class:`tencentcloud.vdb.v20230616.models.DescribeInstanceNodesResponse`
|
81
|
+
|
82
|
+
"""
|
83
|
+
try:
|
84
|
+
params = request._serialize()
|
85
|
+
headers = request.headers
|
86
|
+
body = self.call("DescribeInstanceNodes", params, headers=headers)
|
87
|
+
response = json.loads(body)
|
88
|
+
model = models.DescribeInstanceNodesResponse()
|
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
|
+
|
29
98
|
def DescribeInstances(self, request):
|
30
99
|
"""查询实例列表
|
31
100
|
|
@@ -42,6 +111,52 @@ class VdbClient(AbstractClient):
|
|
42
111
|
model = models.DescribeInstancesResponse()
|
43
112
|
model._deserialize(response["Response"])
|
44
113
|
return model
|
114
|
+
except Exception as e:
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
116
|
+
raise
|
117
|
+
else:
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
|
+
|
120
|
+
|
121
|
+
def DisassociateSecurityGroups(self, request):
|
122
|
+
"""本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
|
123
|
+
|
124
|
+
:param request: Request instance for DisassociateSecurityGroups.
|
125
|
+
:type request: :class:`tencentcloud.vdb.v20230616.models.DisassociateSecurityGroupsRequest`
|
126
|
+
:rtype: :class:`tencentcloud.vdb.v20230616.models.DisassociateSecurityGroupsResponse`
|
127
|
+
|
128
|
+
"""
|
129
|
+
try:
|
130
|
+
params = request._serialize()
|
131
|
+
headers = request.headers
|
132
|
+
body = self.call("DisassociateSecurityGroups", params, headers=headers)
|
133
|
+
response = json.loads(body)
|
134
|
+
model = models.DisassociateSecurityGroupsResponse()
|
135
|
+
model._deserialize(response["Response"])
|
136
|
+
return model
|
137
|
+
except Exception as e:
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
139
|
+
raise
|
140
|
+
else:
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
|
+
|
143
|
+
|
144
|
+
def ModifyDBInstanceSecurityGroups(self, request):
|
145
|
+
"""本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
|
146
|
+
|
147
|
+
:param request: Request instance for ModifyDBInstanceSecurityGroups.
|
148
|
+
:type request: :class:`tencentcloud.vdb.v20230616.models.ModifyDBInstanceSecurityGroupsRequest`
|
149
|
+
:rtype: :class:`tencentcloud.vdb.v20230616.models.ModifyDBInstanceSecurityGroupsResponse`
|
150
|
+
|
151
|
+
"""
|
152
|
+
try:
|
153
|
+
params = request._serialize()
|
154
|
+
headers = request.headers
|
155
|
+
body = self.call("ModifyDBInstanceSecurityGroups", params, headers=headers)
|
156
|
+
response = json.loads(body)
|
157
|
+
model = models.ModifyDBInstanceSecurityGroupsResponse()
|
158
|
+
model._deserialize(response["Response"])
|
159
|
+
return model
|
45
160
|
except Exception as e:
|
46
161
|
if isinstance(e, TencentCloudSDKException):
|
47
162
|
raise
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
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
|
+
|
@@ -0,0 +1,189 @@
|
|
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 warnings
|
17
|
+
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
19
|
+
|
20
|
+
|
21
|
+
class CreateStorageCredentialsRequest(AbstractModel):
|
22
|
+
"""CreateStorageCredentials请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _SubAppId: <b>点播[应用](/document/product/266/14574) ID。</b>
|
29
|
+
:type SubAppId: int
|
30
|
+
:param _Policy: 按照下方语法组装好策略后,先序列化为字符串,再做 urlencode,结果作为 Policy 字段入参。服务端会对该字段做 urldecode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。
|
31
|
+
注意:
|
32
|
+
1.策略语法参照[访问管理策略](/document/product/598/10603)。
|
33
|
+
2.策略中不能包含 principal 元素。
|
34
|
+
3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:qcs::vod::uid/[账号AppID]:prefix//[子应用ID]/[存储桶ID]/[存储路径],其中账号AppID、子应用ID、存储桶ID和存储路径要按需填写,其他内容不允许改动,例:qcs::vod::uid/1:prefix//1/1/path。
|
35
|
+
|
36
|
+
:type Policy: str
|
37
|
+
:param _DurationSeconds: 指定临时证书的有效期,单位:秒。
|
38
|
+
默认 1800 秒,最大 129600 秒。
|
39
|
+
:type DurationSeconds: int
|
40
|
+
"""
|
41
|
+
self._SubAppId = None
|
42
|
+
self._Policy = None
|
43
|
+
self._DurationSeconds = None
|
44
|
+
|
45
|
+
@property
|
46
|
+
def SubAppId(self):
|
47
|
+
return self._SubAppId
|
48
|
+
|
49
|
+
@SubAppId.setter
|
50
|
+
def SubAppId(self, SubAppId):
|
51
|
+
self._SubAppId = SubAppId
|
52
|
+
|
53
|
+
@property
|
54
|
+
def Policy(self):
|
55
|
+
return self._Policy
|
56
|
+
|
57
|
+
@Policy.setter
|
58
|
+
def Policy(self, Policy):
|
59
|
+
self._Policy = Policy
|
60
|
+
|
61
|
+
@property
|
62
|
+
def DurationSeconds(self):
|
63
|
+
return self._DurationSeconds
|
64
|
+
|
65
|
+
@DurationSeconds.setter
|
66
|
+
def DurationSeconds(self, DurationSeconds):
|
67
|
+
self._DurationSeconds = DurationSeconds
|
68
|
+
|
69
|
+
|
70
|
+
def _deserialize(self, params):
|
71
|
+
self._SubAppId = params.get("SubAppId")
|
72
|
+
self._Policy = params.get("Policy")
|
73
|
+
self._DurationSeconds = params.get("DurationSeconds")
|
74
|
+
memeber_set = set(params.keys())
|
75
|
+
for name, value in vars(self).items():
|
76
|
+
property_name = name[1:]
|
77
|
+
if property_name in memeber_set:
|
78
|
+
memeber_set.remove(property_name)
|
79
|
+
if len(memeber_set) > 0:
|
80
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
class CreateStorageCredentialsResponse(AbstractModel):
|
85
|
+
"""CreateStorageCredentials返回参数结构体
|
86
|
+
|
87
|
+
"""
|
88
|
+
|
89
|
+
def __init__(self):
|
90
|
+
r"""
|
91
|
+
:param _Credentials: 临时访问凭证。
|
92
|
+
:type Credentials: :class:`tencentcloud.vod.v20240718.models.Credentials`
|
93
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
94
|
+
:type RequestId: str
|
95
|
+
"""
|
96
|
+
self._Credentials = None
|
97
|
+
self._RequestId = None
|
98
|
+
|
99
|
+
@property
|
100
|
+
def Credentials(self):
|
101
|
+
return self._Credentials
|
102
|
+
|
103
|
+
@Credentials.setter
|
104
|
+
def Credentials(self, Credentials):
|
105
|
+
self._Credentials = Credentials
|
106
|
+
|
107
|
+
@property
|
108
|
+
def RequestId(self):
|
109
|
+
return self._RequestId
|
110
|
+
|
111
|
+
@RequestId.setter
|
112
|
+
def RequestId(self, RequestId):
|
113
|
+
self._RequestId = RequestId
|
114
|
+
|
115
|
+
|
116
|
+
def _deserialize(self, params):
|
117
|
+
if params.get("Credentials") is not None:
|
118
|
+
self._Credentials = Credentials()
|
119
|
+
self._Credentials._deserialize(params.get("Credentials"))
|
120
|
+
self._RequestId = params.get("RequestId")
|
121
|
+
|
122
|
+
|
123
|
+
class Credentials(AbstractModel):
|
124
|
+
"""临时证书。
|
125
|
+
|
126
|
+
"""
|
127
|
+
|
128
|
+
def __init__(self):
|
129
|
+
r"""
|
130
|
+
:param _AccessKeyId: 秘钥 ID。
|
131
|
+
:type AccessKeyId: str
|
132
|
+
:param _SecretAccessKey: 秘钥 Key。
|
133
|
+
:type SecretAccessKey: str
|
134
|
+
:param _SessionToken: token。token长度和绑定的策略有关,最长不超过4096字节。
|
135
|
+
:type SessionToken: str
|
136
|
+
:param _Expiration: 凭据的过期时间。
|
137
|
+
:type Expiration: str
|
138
|
+
"""
|
139
|
+
self._AccessKeyId = None
|
140
|
+
self._SecretAccessKey = None
|
141
|
+
self._SessionToken = None
|
142
|
+
self._Expiration = None
|
143
|
+
|
144
|
+
@property
|
145
|
+
def AccessKeyId(self):
|
146
|
+
return self._AccessKeyId
|
147
|
+
|
148
|
+
@AccessKeyId.setter
|
149
|
+
def AccessKeyId(self, AccessKeyId):
|
150
|
+
self._AccessKeyId = AccessKeyId
|
151
|
+
|
152
|
+
@property
|
153
|
+
def SecretAccessKey(self):
|
154
|
+
return self._SecretAccessKey
|
155
|
+
|
156
|
+
@SecretAccessKey.setter
|
157
|
+
def SecretAccessKey(self, SecretAccessKey):
|
158
|
+
self._SecretAccessKey = SecretAccessKey
|
159
|
+
|
160
|
+
@property
|
161
|
+
def SessionToken(self):
|
162
|
+
return self._SessionToken
|
163
|
+
|
164
|
+
@SessionToken.setter
|
165
|
+
def SessionToken(self, SessionToken):
|
166
|
+
self._SessionToken = SessionToken
|
167
|
+
|
168
|
+
@property
|
169
|
+
def Expiration(self):
|
170
|
+
return self._Expiration
|
171
|
+
|
172
|
+
@Expiration.setter
|
173
|
+
def Expiration(self, Expiration):
|
174
|
+
self._Expiration = Expiration
|
175
|
+
|
176
|
+
|
177
|
+
def _deserialize(self, params):
|
178
|
+
self._AccessKeyId = params.get("AccessKeyId")
|
179
|
+
self._SecretAccessKey = params.get("SecretAccessKey")
|
180
|
+
self._SessionToken = params.get("SessionToken")
|
181
|
+
self._Expiration = params.get("Expiration")
|
182
|
+
memeber_set = set(params.keys())
|
183
|
+
for name, value in vars(self).items():
|
184
|
+
property_name = name[1:]
|
185
|
+
if property_name in memeber_set:
|
186
|
+
memeber_set.remove(property_name)
|
187
|
+
if len(memeber_set) > 0:
|
188
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
189
|
+
|
@@ -0,0 +1,49 @@
|
|
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.vod.v20240718 import models
|
21
|
+
|
22
|
+
|
23
|
+
class VodClient(AbstractClient):
|
24
|
+
_apiVersion = '2024-07-18'
|
25
|
+
_endpoint = 'vod.tencentcloudapi.com'
|
26
|
+
_service = 'vod'
|
27
|
+
|
28
|
+
|
29
|
+
def CreateStorageCredentials(self, request):
|
30
|
+
"""用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
|
31
|
+
|
32
|
+
:param request: Request instance for CreateStorageCredentials.
|
33
|
+
:type request: :class:`tencentcloud.vod.v20240718.models.CreateStorageCredentialsRequest`
|
34
|
+
:rtype: :class:`tencentcloud.vod.v20240718.models.CreateStorageCredentialsResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateStorageCredentials", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateStorageCredentialsResponse()
|
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))
|
@@ -10433,11 +10433,14 @@ class CreateSecurityGroupWithPoliciesRequest(AbstractModel):
|
|
10433
10433
|
:type ProjectId: str
|
10434
10434
|
:param _SecurityGroupPolicySet: 安全组规则集合。
|
10435
10435
|
:type SecurityGroupPolicySet: :class:`tencentcloud.vpc.v20170312.models.SecurityGroupPolicySet`
|
10436
|
+
:param _Tags: 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。
|
10437
|
+
:type Tags: list of Tag
|
10436
10438
|
"""
|
10437
10439
|
self._GroupName = None
|
10438
10440
|
self._GroupDescription = None
|
10439
10441
|
self._ProjectId = None
|
10440
10442
|
self._SecurityGroupPolicySet = None
|
10443
|
+
self._Tags = None
|
10441
10444
|
|
10442
10445
|
@property
|
10443
10446
|
def GroupName(self):
|
@@ -10471,6 +10474,14 @@ class CreateSecurityGroupWithPoliciesRequest(AbstractModel):
|
|
10471
10474
|
def SecurityGroupPolicySet(self, SecurityGroupPolicySet):
|
10472
10475
|
self._SecurityGroupPolicySet = SecurityGroupPolicySet
|
10473
10476
|
|
10477
|
+
@property
|
10478
|
+
def Tags(self):
|
10479
|
+
return self._Tags
|
10480
|
+
|
10481
|
+
@Tags.setter
|
10482
|
+
def Tags(self, Tags):
|
10483
|
+
self._Tags = Tags
|
10484
|
+
|
10474
10485
|
|
10475
10486
|
def _deserialize(self, params):
|
10476
10487
|
self._GroupName = params.get("GroupName")
|
@@ -10479,6 +10490,12 @@ class CreateSecurityGroupWithPoliciesRequest(AbstractModel):
|
|
10479
10490
|
if params.get("SecurityGroupPolicySet") is not None:
|
10480
10491
|
self._SecurityGroupPolicySet = SecurityGroupPolicySet()
|
10481
10492
|
self._SecurityGroupPolicySet._deserialize(params.get("SecurityGroupPolicySet"))
|
10493
|
+
if params.get("Tags") is not None:
|
10494
|
+
self._Tags = []
|
10495
|
+
for item in params.get("Tags"):
|
10496
|
+
obj = Tag()
|
10497
|
+
obj._deserialize(item)
|
10498
|
+
self._Tags.append(obj)
|
10482
10499
|
memeber_set = set(params.keys())
|
10483
10500
|
for name, value in vars(self).items():
|
10484
10501
|
property_name = name[1:]
|
@@ -45626,7 +45643,7 @@ class Route(AbstractModel):
|
|
45626
45643
|
|
45627
45644
|
def __init__(self):
|
45628
45645
|
r"""
|
45629
|
-
:param _DestinationCidrBlock: 目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。
|
45646
|
+
:param _DestinationCidrBlock: 创建IPv4目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。
|
45630
45647
|
:type DestinationCidrBlock: str
|
45631
45648
|
:param _GatewayType: 下一跳类型,目前我们支持的类型有:
|
45632
45649
|
CVM:公网网关类型的云服务器;
|
@@ -45634,10 +45651,13 @@ VPN:VPN网关;
|
|
45634
45651
|
DIRECTCONNECT:专线网关;
|
45635
45652
|
PEERCONNECTION:对等连接;
|
45636
45653
|
HAVIP:高可用虚拟IP;
|
45637
|
-
NAT
|
45654
|
+
NAT:公网NAT网关;
|
45638
45655
|
NORMAL_CVM:普通云服务器;
|
45639
45656
|
EIP:云服务器的公网IP;
|
45640
|
-
LOCAL_GATEWAY
|
45657
|
+
LOCAL_GATEWAY:CDC本地网关;
|
45658
|
+
INTRANAT:私网NAT网关;
|
45659
|
+
USER_CCN;云联网(自定义路由)。
|
45660
|
+
|
45641
45661
|
:type GatewayType: str
|
45642
45662
|
:param _GatewayId: 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
|
45643
45663
|
特殊说明:
|
@@ -45659,12 +45679,12 @@ CCN:云联网路由,系统默认下发,不可编辑与删除。
|
|
45659
45679
|
:type RouteType: str
|
45660
45680
|
:param _RouteTableId: 路由表实例ID,例如:rtb-azd4dt1c。
|
45661
45681
|
:type RouteTableId: str
|
45662
|
-
:param _DestinationIpv6CidrBlock:
|
45682
|
+
:param _DestinationIpv6CidrBlock: 创建IPv6目的网段,取值不能在私有网络网段内,例如:2402:4e00:1000:810b::/64。
|
45663
45683
|
注意:此字段可能返回 null,表示取不到有效值。
|
45664
45684
|
:type DestinationIpv6CidrBlock: str
|
45665
45685
|
:param _RouteItemId: 路由唯一策略ID。
|
45666
45686
|
:type RouteItemId: str
|
45667
|
-
:param _PublishedToVbc:
|
45687
|
+
:param _PublishedToVbc: 路由策略是否发布到云联网。该字段仅做出参使用,作为入参字段时此参数不生效。
|
45668
45688
|
注意:此字段可能返回 null,表示取不到有效值。
|
45669
45689
|
:type PublishedToVbc: bool
|
45670
45690
|
:param _CreatedTime: 路由策略创建时间
|