tencentcloud-sdk-python-tcb 3.1.206__tar.gz → 3.1.208__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_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/setup.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/errorcodes.py +39 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/models.py +424 -16
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/tcb_client.py +52 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/tcb_client_async.py +42 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcb-3.1.208/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcb-3.1.206/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/README.rst +0 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.206 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.208
|
|
4
4
|
Summary: Tencent Cloud Tcb 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.208
|
|
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-tcb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.208,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcb SDK for Python',
|
|
@@ -32,6 +32,9 @@ FAILEDOPERATION_ACCOUNTINSUFFICIENT = 'FailedOperation.AccountInsufficient'
|
|
|
32
32
|
# AllocateId 对应环境已释放,不可再次使用
|
|
33
33
|
FAILEDOPERATION_ALLOCATEIDRELEASED = 'FailedOperation.AllocateIdReleased'
|
|
34
34
|
|
|
35
|
+
# 套餐功能权限校验调用失败
|
|
36
|
+
FAILEDOPERATION_CHECKFEATUREPERMISSION = 'FailedOperation.CheckFeaturePermission'
|
|
37
|
+
|
|
35
38
|
# FailedOperation.CreateTable
|
|
36
39
|
FAILEDOPERATION_CREATETABLE = 'FailedOperation.CreateTable'
|
|
37
40
|
|
|
@@ -50,6 +53,9 @@ FAILEDOPERATION_DATABASESCHEMAERROR = 'FailedOperation.DatabaseSchemaError'
|
|
|
50
53
|
# 数据库sql解析异常
|
|
51
54
|
FAILEDOPERATION_DATABASESQLSYNTAXERROR = 'FailedOperation.DatabaseSqlSyntaxError'
|
|
52
55
|
|
|
56
|
+
# 读取/解密 WOA AuthToken 失败
|
|
57
|
+
FAILEDOPERATION_DECRYPTAUTHTOKEN = 'FailedOperation.DecryptAuthToken'
|
|
58
|
+
|
|
53
59
|
# 函数不在可删除的稳态
|
|
54
60
|
FAILEDOPERATION_DELETEFUNCTION = 'FailedOperation.DeleteFunction'
|
|
55
61
|
|
|
@@ -116,9 +122,21 @@ FAILEDOPERATION_PACKAGEUNSUPPORTED = 'FailedOperation.PackageUnsupported'
|
|
|
116
122
|
# 操作失败,后台依赖平台错误。
|
|
117
123
|
FAILEDOPERATION_PLATFORMERROR = 'FailedOperation.PlatformError'
|
|
118
124
|
|
|
125
|
+
# 查询访问来源控制配置失败
|
|
126
|
+
FAILEDOPERATION_QUERYACCESSCONTROL = 'FailedOperation.QueryAccessControl'
|
|
127
|
+
|
|
119
128
|
# 查询异常
|
|
120
129
|
FAILEDOPERATION_QUERYERROR = 'FailedOperation.QueryError'
|
|
121
130
|
|
|
131
|
+
# 查询 VPC 信息失败(地域/账号信息/vpcoss 异常)
|
|
132
|
+
FAILEDOPERATION_QUERYVPC = 'FailedOperation.QueryVPC'
|
|
133
|
+
|
|
134
|
+
# 保存 WOA AuthToken 失败(含加密失败)
|
|
135
|
+
FAILEDOPERATION_SAVEAUTHTOKEN = 'FailedOperation.SaveAuthToken'
|
|
136
|
+
|
|
137
|
+
# 保存 VPC 白名单失败
|
|
138
|
+
FAILEDOPERATION_SAVEVPCWHITELIST = 'FailedOperation.SaveVPCWhiteList'
|
|
139
|
+
|
|
122
140
|
# 查询语句解析错误
|
|
123
141
|
FAILEDOPERATION_SYNTAXERROR = 'FailedOperation.SyntaxError'
|
|
124
142
|
|
|
@@ -137,6 +155,9 @@ FAILEDOPERATION_TOPICISOLATED = 'FailedOperation.TopicIsolated'
|
|
|
137
155
|
# 更新数据失败
|
|
138
156
|
FAILEDOPERATION_UPDATE = 'FailedOperation.Update'
|
|
139
157
|
|
|
158
|
+
# 更新访问来源控制开关失败
|
|
159
|
+
FAILEDOPERATION_UPDATEACCESSCONTROL = 'FailedOperation.UpdateAccessControl'
|
|
160
|
+
|
|
140
161
|
# 当前函数状态无法更新代码,请在状态为正常时更新。
|
|
141
162
|
FAILEDOPERATION_UPDATEFUNCTIONCODE = 'FailedOperation.UpdateFunctionCode'
|
|
142
163
|
|
|
@@ -161,9 +182,15 @@ INTERNALERROR_TIMEOUT = 'InternalError.Timeout'
|
|
|
161
182
|
# 参数格式或类型错误,如 Uin、EnvId、Domain 缺失或非法。
|
|
162
183
|
INVALIDPARAMETER = 'InvalidParameter'
|
|
163
184
|
|
|
185
|
+
# 来源配置不合法:Sources 为空/超限、SourceType 非法或重复、Action 非法
|
|
186
|
+
INVALIDPARAMETER_ACCESSSOURCE = 'InvalidParameter.AccessSource'
|
|
187
|
+
|
|
164
188
|
# 接口名非法。
|
|
165
189
|
INVALIDPARAMETER_ACTION = 'InvalidParameter.Action'
|
|
166
190
|
|
|
191
|
+
# WOA 鉴权配置不合法:WOAAuth 非法、强制鉴权缺少 AuthToken、AuthToken 超长
|
|
192
|
+
INVALIDPARAMETER_AUTHTOKEN = 'InvalidParameter.AuthToken'
|
|
193
|
+
|
|
167
194
|
# 证书验证失败
|
|
168
195
|
INVALIDPARAMETER_CERTVERIFYFAILED = 'InvalidParameter.CertVerifyFailed'
|
|
169
196
|
|
|
@@ -194,6 +221,9 @@ INVALIDPARAMETER_RESOURCENOTEXISTS = 'InvalidParameter.ResourceNotExists'
|
|
|
194
221
|
# 服务不存在。
|
|
195
222
|
INVALIDPARAMETER_SERVICENOTEXIST = 'InvalidParameter.ServiceNotExist'
|
|
196
223
|
|
|
224
|
+
# VPC 白名单不合法:Action/UniqVpcId/Region 非法、条数超限、非 vpc 来源携带白名单
|
|
225
|
+
INVALIDPARAMETER_VPCWHITELIST = 'InvalidParameter.VPCWhiteList'
|
|
226
|
+
|
|
197
227
|
# 参数取值错误。
|
|
198
228
|
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
199
229
|
|
|
@@ -308,6 +338,9 @@ RESOURCEINUSE_INDEXCREATING = 'ResourceInUse.IndexCreating'
|
|
|
308
338
|
# 环境下日志资源已存在,无需重新开通日志资源
|
|
309
339
|
RESOURCEINUSE_LOGEXIST = 'ResourceInUse.LogExist'
|
|
310
340
|
|
|
341
|
+
# 当前环境已有开通中的静态托管,暂时无法开通。
|
|
342
|
+
RESOURCEINUSE_STATICSTORE = 'ResourceInUse.StaticStore'
|
|
343
|
+
|
|
311
344
|
# 资源不足。
|
|
312
345
|
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
313
346
|
|
|
@@ -368,6 +401,9 @@ RESOURCENOTFOUND_USERNOTEXIST = 'ResourceNotFound.UserNotExist'
|
|
|
368
401
|
# 用户不存在。
|
|
369
402
|
RESOURCENOTFOUND_USERNOTEXISTS = 'ResourceNotFound.UserNotExists'
|
|
370
403
|
|
|
404
|
+
# VPC 在指定地域下不存在
|
|
405
|
+
RESOURCENOTFOUND_VPC = 'ResourceNotFound.VPC'
|
|
406
|
+
|
|
371
407
|
# 请求参数中的云托管版本未找到
|
|
372
408
|
RESOURCENOTFOUND_VERSIONNOTFOUND = 'ResourceNotFound.VersionNotFound'
|
|
373
409
|
|
|
@@ -407,6 +443,9 @@ RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
|
|
407
443
|
# 未授权操作。
|
|
408
444
|
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
409
445
|
|
|
446
|
+
# VPC 不属于当前账号
|
|
447
|
+
UNAUTHORIZEDOPERATION_VPCNOTOWNED = 'UnauthorizedOperation.VPCNotOwned'
|
|
448
|
+
|
|
410
449
|
# 未知参数错误。
|
|
411
450
|
UNKNOWNPARAMETER = 'UnknownParameter'
|
|
412
451
|
|
|
@@ -398,6 +398,104 @@ class AIModelStatus(AbstractModel):
|
|
|
398
398
|
|
|
399
399
|
|
|
400
400
|
|
|
401
|
+
class AccessSourceSetting(AbstractModel):
|
|
402
|
+
r"""域名访问来源配置
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
|
|
406
|
+
def __init__(self):
|
|
407
|
+
r"""
|
|
408
|
+
:param _SourceType: <p>来源类型</p><p>枚举值:</p><ul><li>PUBLIC: 公网请求</li><li>VPC: VPC 请求</li><li>WOA: 办公网请求</li></ul>
|
|
409
|
+
:type SourceType: str
|
|
410
|
+
:param _Action: <p>来源请求状态</p><p>枚举值:</p><ul><li>OPEN: 放通</li><li>CLOSE: 拦截</li></ul>
|
|
411
|
+
:type Action: str
|
|
412
|
+
:param _WOAAuth: <p>是否开启 WOA 鉴权</p><p>枚举值:</p><ul><li>FORCE_AUTH: 强制鉴权</li><li>NO_AUTH: 不鉴权</li></ul><p>默认值:NO_AUTH</p><p>仅 SourceType = WOA 且 Action= OPEN 时生效</p>
|
|
413
|
+
:type WOAAuth: str
|
|
414
|
+
:param _AuthToken: <p>WOA 鉴权需要的 Token</p><p>仅 Source Type=WOA 且 WOAAuth = FORCE_AUTH 时必填</p>
|
|
415
|
+
:type AuthToken: str
|
|
416
|
+
:param _VPCWhiteList: <p>VPC 白名单信息</p><p>仅 SourceType = VPC 时有效; 不传表示不修改</p>
|
|
417
|
+
:type VPCWhiteList: :class:`tencentcloud.tcb.v20180608.models.VPCWhiteListConfig`
|
|
418
|
+
"""
|
|
419
|
+
self._SourceType = None
|
|
420
|
+
self._Action = None
|
|
421
|
+
self._WOAAuth = None
|
|
422
|
+
self._AuthToken = None
|
|
423
|
+
self._VPCWhiteList = None
|
|
424
|
+
|
|
425
|
+
@property
|
|
426
|
+
def SourceType(self):
|
|
427
|
+
r"""<p>来源类型</p><p>枚举值:</p><ul><li>PUBLIC: 公网请求</li><li>VPC: VPC 请求</li><li>WOA: 办公网请求</li></ul>
|
|
428
|
+
:rtype: str
|
|
429
|
+
"""
|
|
430
|
+
return self._SourceType
|
|
431
|
+
|
|
432
|
+
@SourceType.setter
|
|
433
|
+
def SourceType(self, SourceType):
|
|
434
|
+
self._SourceType = SourceType
|
|
435
|
+
|
|
436
|
+
@property
|
|
437
|
+
def Action(self):
|
|
438
|
+
r"""<p>来源请求状态</p><p>枚举值:</p><ul><li>OPEN: 放通</li><li>CLOSE: 拦截</li></ul>
|
|
439
|
+
:rtype: str
|
|
440
|
+
"""
|
|
441
|
+
return self._Action
|
|
442
|
+
|
|
443
|
+
@Action.setter
|
|
444
|
+
def Action(self, Action):
|
|
445
|
+
self._Action = Action
|
|
446
|
+
|
|
447
|
+
@property
|
|
448
|
+
def WOAAuth(self):
|
|
449
|
+
r"""<p>是否开启 WOA 鉴权</p><p>枚举值:</p><ul><li>FORCE_AUTH: 强制鉴权</li><li>NO_AUTH: 不鉴权</li></ul><p>默认值:NO_AUTH</p><p>仅 SourceType = WOA 且 Action= OPEN 时生效</p>
|
|
450
|
+
:rtype: str
|
|
451
|
+
"""
|
|
452
|
+
return self._WOAAuth
|
|
453
|
+
|
|
454
|
+
@WOAAuth.setter
|
|
455
|
+
def WOAAuth(self, WOAAuth):
|
|
456
|
+
self._WOAAuth = WOAAuth
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
def AuthToken(self):
|
|
460
|
+
r"""<p>WOA 鉴权需要的 Token</p><p>仅 Source Type=WOA 且 WOAAuth = FORCE_AUTH 时必填</p>
|
|
461
|
+
:rtype: str
|
|
462
|
+
"""
|
|
463
|
+
return self._AuthToken
|
|
464
|
+
|
|
465
|
+
@AuthToken.setter
|
|
466
|
+
def AuthToken(self, AuthToken):
|
|
467
|
+
self._AuthToken = AuthToken
|
|
468
|
+
|
|
469
|
+
@property
|
|
470
|
+
def VPCWhiteList(self):
|
|
471
|
+
r"""<p>VPC 白名单信息</p><p>仅 SourceType = VPC 时有效; 不传表示不修改</p>
|
|
472
|
+
:rtype: :class:`tencentcloud.tcb.v20180608.models.VPCWhiteListConfig`
|
|
473
|
+
"""
|
|
474
|
+
return self._VPCWhiteList
|
|
475
|
+
|
|
476
|
+
@VPCWhiteList.setter
|
|
477
|
+
def VPCWhiteList(self, VPCWhiteList):
|
|
478
|
+
self._VPCWhiteList = VPCWhiteList
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
def _deserialize(self, params):
|
|
482
|
+
self._SourceType = params.get("SourceType")
|
|
483
|
+
self._Action = params.get("Action")
|
|
484
|
+
self._WOAAuth = params.get("WOAAuth")
|
|
485
|
+
self._AuthToken = params.get("AuthToken")
|
|
486
|
+
if params.get("VPCWhiteList") is not None:
|
|
487
|
+
self._VPCWhiteList = VPCWhiteListConfig()
|
|
488
|
+
self._VPCWhiteList._deserialize(params.get("VPCWhiteList"))
|
|
489
|
+
memeber_set = set(params.keys())
|
|
490
|
+
for name, value in vars(self).items():
|
|
491
|
+
property_name = name[1:]
|
|
492
|
+
if property_name in memeber_set:
|
|
493
|
+
memeber_set.remove(property_name)
|
|
494
|
+
if len(memeber_set) > 0:
|
|
495
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
401
499
|
class AddProviderRequest(AbstractModel):
|
|
402
500
|
r"""AddProvider请求参数结构体
|
|
403
501
|
|
|
@@ -12287,6 +12385,90 @@ class DescribeDatabaseACLResponse(AbstractModel):
|
|
|
12287
12385
|
self._RequestId = params.get("RequestId")
|
|
12288
12386
|
|
|
12289
12387
|
|
|
12388
|
+
class DescribeEnvAccessControlRequest(AbstractModel):
|
|
12389
|
+
r"""DescribeEnvAccessControl请求参数结构体
|
|
12390
|
+
|
|
12391
|
+
"""
|
|
12392
|
+
|
|
12393
|
+
def __init__(self):
|
|
12394
|
+
r"""
|
|
12395
|
+
:param _EnvId: <p>环境id</p>
|
|
12396
|
+
:type EnvId: str
|
|
12397
|
+
"""
|
|
12398
|
+
self._EnvId = None
|
|
12399
|
+
|
|
12400
|
+
@property
|
|
12401
|
+
def EnvId(self):
|
|
12402
|
+
r"""<p>环境id</p>
|
|
12403
|
+
:rtype: str
|
|
12404
|
+
"""
|
|
12405
|
+
return self._EnvId
|
|
12406
|
+
|
|
12407
|
+
@EnvId.setter
|
|
12408
|
+
def EnvId(self, EnvId):
|
|
12409
|
+
self._EnvId = EnvId
|
|
12410
|
+
|
|
12411
|
+
|
|
12412
|
+
def _deserialize(self, params):
|
|
12413
|
+
self._EnvId = params.get("EnvId")
|
|
12414
|
+
memeber_set = set(params.keys())
|
|
12415
|
+
for name, value in vars(self).items():
|
|
12416
|
+
property_name = name[1:]
|
|
12417
|
+
if property_name in memeber_set:
|
|
12418
|
+
memeber_set.remove(property_name)
|
|
12419
|
+
if len(memeber_set) > 0:
|
|
12420
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12421
|
+
|
|
12422
|
+
|
|
12423
|
+
|
|
12424
|
+
class DescribeEnvAccessControlResponse(AbstractModel):
|
|
12425
|
+
r"""DescribeEnvAccessControl返回参数结构体
|
|
12426
|
+
|
|
12427
|
+
"""
|
|
12428
|
+
|
|
12429
|
+
def __init__(self):
|
|
12430
|
+
r"""
|
|
12431
|
+
:param _Current: <p>修改之后,当前的生效的配置</p>
|
|
12432
|
+
:type Current: list of AccessSourceSetting
|
|
12433
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12434
|
+
:type RequestId: str
|
|
12435
|
+
"""
|
|
12436
|
+
self._Current = None
|
|
12437
|
+
self._RequestId = None
|
|
12438
|
+
|
|
12439
|
+
@property
|
|
12440
|
+
def Current(self):
|
|
12441
|
+
r"""<p>修改之后,当前的生效的配置</p>
|
|
12442
|
+
:rtype: list of AccessSourceSetting
|
|
12443
|
+
"""
|
|
12444
|
+
return self._Current
|
|
12445
|
+
|
|
12446
|
+
@Current.setter
|
|
12447
|
+
def Current(self, Current):
|
|
12448
|
+
self._Current = Current
|
|
12449
|
+
|
|
12450
|
+
@property
|
|
12451
|
+
def RequestId(self):
|
|
12452
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12453
|
+
:rtype: str
|
|
12454
|
+
"""
|
|
12455
|
+
return self._RequestId
|
|
12456
|
+
|
|
12457
|
+
@RequestId.setter
|
|
12458
|
+
def RequestId(self, RequestId):
|
|
12459
|
+
self._RequestId = RequestId
|
|
12460
|
+
|
|
12461
|
+
|
|
12462
|
+
def _deserialize(self, params):
|
|
12463
|
+
if params.get("Current") is not None:
|
|
12464
|
+
self._Current = []
|
|
12465
|
+
for item in params.get("Current"):
|
|
12466
|
+
obj = AccessSourceSetting()
|
|
12467
|
+
obj._deserialize(item)
|
|
12468
|
+
self._Current.append(obj)
|
|
12469
|
+
self._RequestId = params.get("RequestId")
|
|
12470
|
+
|
|
12471
|
+
|
|
12290
12472
|
class DescribeEnvAccountCircleRequest(AbstractModel):
|
|
12291
12473
|
r"""DescribeEnvAccountCircle请求参数结构体
|
|
12292
12474
|
|
|
@@ -24964,6 +25146,125 @@ class ModifyDatabaseACLResponse(AbstractModel):
|
|
|
24964
25146
|
self._RequestId = params.get("RequestId")
|
|
24965
25147
|
|
|
24966
25148
|
|
|
25149
|
+
class ModifyEnvAccessControlRequest(AbstractModel):
|
|
25150
|
+
r"""ModifyEnvAccessControl请求参数结构体
|
|
25151
|
+
|
|
25152
|
+
"""
|
|
25153
|
+
|
|
25154
|
+
def __init__(self):
|
|
25155
|
+
r"""
|
|
25156
|
+
:param _EnvId: <p>环境id</p>
|
|
25157
|
+
:type EnvId: str
|
|
25158
|
+
:param _Sources: <p>本次要设置的来源集合</p><p>入参限制:SourceType = PUBLIC 时,标识操作公网开关<br>SourceType = VPC 时,通过配置 VPCWhiteList,开启/关闭 VPC 白名单<br>SourceType = WOA 时,通过配置 WOAAuth,开启/关闭鉴权校验,开启鉴权时,AuthToken 字段为填</p>
|
|
25159
|
+
:type Sources: list of AccessSourceSetting
|
|
25160
|
+
"""
|
|
25161
|
+
self._EnvId = None
|
|
25162
|
+
self._Sources = None
|
|
25163
|
+
|
|
25164
|
+
@property
|
|
25165
|
+
def EnvId(self):
|
|
25166
|
+
r"""<p>环境id</p>
|
|
25167
|
+
:rtype: str
|
|
25168
|
+
"""
|
|
25169
|
+
return self._EnvId
|
|
25170
|
+
|
|
25171
|
+
@EnvId.setter
|
|
25172
|
+
def EnvId(self, EnvId):
|
|
25173
|
+
self._EnvId = EnvId
|
|
25174
|
+
|
|
25175
|
+
@property
|
|
25176
|
+
def Sources(self):
|
|
25177
|
+
r"""<p>本次要设置的来源集合</p><p>入参限制:SourceType = PUBLIC 时,标识操作公网开关<br>SourceType = VPC 时,通过配置 VPCWhiteList,开启/关闭 VPC 白名单<br>SourceType = WOA 时,通过配置 WOAAuth,开启/关闭鉴权校验,开启鉴权时,AuthToken 字段为填</p>
|
|
25178
|
+
:rtype: list of AccessSourceSetting
|
|
25179
|
+
"""
|
|
25180
|
+
return self._Sources
|
|
25181
|
+
|
|
25182
|
+
@Sources.setter
|
|
25183
|
+
def Sources(self, Sources):
|
|
25184
|
+
self._Sources = Sources
|
|
25185
|
+
|
|
25186
|
+
|
|
25187
|
+
def _deserialize(self, params):
|
|
25188
|
+
self._EnvId = params.get("EnvId")
|
|
25189
|
+
if params.get("Sources") is not None:
|
|
25190
|
+
self._Sources = []
|
|
25191
|
+
for item in params.get("Sources"):
|
|
25192
|
+
obj = AccessSourceSetting()
|
|
25193
|
+
obj._deserialize(item)
|
|
25194
|
+
self._Sources.append(obj)
|
|
25195
|
+
memeber_set = set(params.keys())
|
|
25196
|
+
for name, value in vars(self).items():
|
|
25197
|
+
property_name = name[1:]
|
|
25198
|
+
if property_name in memeber_set:
|
|
25199
|
+
memeber_set.remove(property_name)
|
|
25200
|
+
if len(memeber_set) > 0:
|
|
25201
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25202
|
+
|
|
25203
|
+
|
|
25204
|
+
|
|
25205
|
+
class ModifyEnvAccessControlResponse(AbstractModel):
|
|
25206
|
+
r"""ModifyEnvAccessControl返回参数结构体
|
|
25207
|
+
|
|
25208
|
+
"""
|
|
25209
|
+
|
|
25210
|
+
def __init__(self):
|
|
25211
|
+
r"""
|
|
25212
|
+
:param _AffectedRows: <p>本次请求影响的权限数量</p>
|
|
25213
|
+
:type AffectedRows: int
|
|
25214
|
+
:param _Current: <p>修改之后,当前的生效的配置</p><p>SourceType = PUBLIC 表示公网链路访问配置<br>SourceType = VPC 表示 VPC 链路访问配置<br>SourceType = WOA 表示办公网链路访问配置</p>
|
|
25215
|
+
:type Current: list of AccessSourceSetting
|
|
25216
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25217
|
+
:type RequestId: str
|
|
25218
|
+
"""
|
|
25219
|
+
self._AffectedRows = None
|
|
25220
|
+
self._Current = None
|
|
25221
|
+
self._RequestId = None
|
|
25222
|
+
|
|
25223
|
+
@property
|
|
25224
|
+
def AffectedRows(self):
|
|
25225
|
+
r"""<p>本次请求影响的权限数量</p>
|
|
25226
|
+
:rtype: int
|
|
25227
|
+
"""
|
|
25228
|
+
return self._AffectedRows
|
|
25229
|
+
|
|
25230
|
+
@AffectedRows.setter
|
|
25231
|
+
def AffectedRows(self, AffectedRows):
|
|
25232
|
+
self._AffectedRows = AffectedRows
|
|
25233
|
+
|
|
25234
|
+
@property
|
|
25235
|
+
def Current(self):
|
|
25236
|
+
r"""<p>修改之后,当前的生效的配置</p><p>SourceType = PUBLIC 表示公网链路访问配置<br>SourceType = VPC 表示 VPC 链路访问配置<br>SourceType = WOA 表示办公网链路访问配置</p>
|
|
25237
|
+
:rtype: list of AccessSourceSetting
|
|
25238
|
+
"""
|
|
25239
|
+
return self._Current
|
|
25240
|
+
|
|
25241
|
+
@Current.setter
|
|
25242
|
+
def Current(self, Current):
|
|
25243
|
+
self._Current = Current
|
|
25244
|
+
|
|
25245
|
+
@property
|
|
25246
|
+
def RequestId(self):
|
|
25247
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25248
|
+
:rtype: str
|
|
25249
|
+
"""
|
|
25250
|
+
return self._RequestId
|
|
25251
|
+
|
|
25252
|
+
@RequestId.setter
|
|
25253
|
+
def RequestId(self, RequestId):
|
|
25254
|
+
self._RequestId = RequestId
|
|
25255
|
+
|
|
25256
|
+
|
|
25257
|
+
def _deserialize(self, params):
|
|
25258
|
+
self._AffectedRows = params.get("AffectedRows")
|
|
25259
|
+
if params.get("Current") is not None:
|
|
25260
|
+
self._Current = []
|
|
25261
|
+
for item in params.get("Current"):
|
|
25262
|
+
obj = AccessSourceSetting()
|
|
25263
|
+
obj._deserialize(item)
|
|
25264
|
+
self._Current.append(obj)
|
|
25265
|
+
self._RequestId = params.get("RequestId")
|
|
25266
|
+
|
|
25267
|
+
|
|
24967
25268
|
class ModifyEnvExtraRequest(AbstractModel):
|
|
24968
25269
|
r"""ModifyEnvExtra请求参数结构体
|
|
24969
25270
|
|
|
@@ -25321,21 +25622,21 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25321
25622
|
|
|
25322
25623
|
def __init__(self):
|
|
25323
25624
|
r"""
|
|
25324
|
-
:param _EnvId:
|
|
25625
|
+
:param _EnvId: <p>环境 ID,用于指定需要修改登录策略的云开发环境。</p>
|
|
25325
25626
|
:type EnvId: str
|
|
25326
|
-
:param _PhoneNumberLogin:
|
|
25627
|
+
:param _PhoneNumberLogin: <p>手机号短信登录开关。设置为 true 开启手机号短信登录,允许用户使用手机号和短信验证码进行登录和注册;设置为 false 关闭手机号短信登录。</p>
|
|
25327
25628
|
:type PhoneNumberLogin: bool
|
|
25328
|
-
:param _EmailLogin:
|
|
25629
|
+
:param _EmailLogin: <p>邮箱登录开关。设置为 true 开启邮箱登录,允许用户使用邮箱和密码进行登录和注册;设置为 false 关闭邮箱登录。</p>
|
|
25329
25630
|
:type EmailLogin: bool
|
|
25330
|
-
:param _UserNameLogin:
|
|
25631
|
+
:param _UserNameLogin: <p>用户名密码登录开关。设置为 true 开启用户名密码登录,允许用户使用用户名和密码进行登录和注册;设置为 false 关闭用户名密码登录。</p>
|
|
25331
25632
|
:type UserNameLogin: bool
|
|
25332
|
-
:param _AnonymousLogin:
|
|
25633
|
+
:param _AnonymousLogin: <p>匿名登录开关。设置为 true 开启匿名登录,允许用户无需注册即可以匿名身份访问应用;设置为 false 关闭匿名登录。</p>
|
|
25333
25634
|
:type AnonymousLogin: bool
|
|
25334
|
-
:param _SmsVerificationConfig:
|
|
25635
|
+
:param _SmsVerificationConfig: <p>短信验证码发送配置,用于设置短信验证码的发送通道类型和日发送限额。不传则不修改当前配置。</p>
|
|
25335
25636
|
:type SmsVerificationConfig: :class:`tencentcloud.tcb.v20180608.models.VerificationConfig`
|
|
25336
|
-
:param _MfaConfig: MFA 多因子认证登录配置,用于设置多因子认证开关及验证方式(短信、邮箱、TOTP
|
|
25637
|
+
:param _MfaConfig: <p>MFA 多因子认证登录配置,用于设置多因子认证开关及验证方式(短信、邮箱、TOTP、强制绑定手机号)。不传则不修改当前配置。</p>
|
|
25337
25638
|
:type MfaConfig: :class:`tencentcloud.tcb.v20180608.models.MFALoginConfig`
|
|
25338
|
-
:param _PwdUpdateStrategy:
|
|
25639
|
+
:param _PwdUpdateStrategy: <p>密码更新策略配置,用于设置首次登录强制修改密码和定期强制修改密码策略。不传则不修改当前配置。</p>
|
|
25339
25640
|
:type PwdUpdateStrategy: :class:`tencentcloud.tcb.v20180608.models.PasswordUpdateLoginConfig`
|
|
25340
25641
|
"""
|
|
25341
25642
|
self._EnvId = None
|
|
@@ -25349,7 +25650,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25349
25650
|
|
|
25350
25651
|
@property
|
|
25351
25652
|
def EnvId(self):
|
|
25352
|
-
r"""
|
|
25653
|
+
r"""<p>环境 ID,用于指定需要修改登录策略的云开发环境。</p>
|
|
25353
25654
|
:rtype: str
|
|
25354
25655
|
"""
|
|
25355
25656
|
return self._EnvId
|
|
@@ -25360,7 +25661,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25360
25661
|
|
|
25361
25662
|
@property
|
|
25362
25663
|
def PhoneNumberLogin(self):
|
|
25363
|
-
r"""
|
|
25664
|
+
r"""<p>手机号短信登录开关。设置为 true 开启手机号短信登录,允许用户使用手机号和短信验证码进行登录和注册;设置为 false 关闭手机号短信登录。</p>
|
|
25364
25665
|
:rtype: bool
|
|
25365
25666
|
"""
|
|
25366
25667
|
return self._PhoneNumberLogin
|
|
@@ -25371,7 +25672,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25371
25672
|
|
|
25372
25673
|
@property
|
|
25373
25674
|
def EmailLogin(self):
|
|
25374
|
-
r"""
|
|
25675
|
+
r"""<p>邮箱登录开关。设置为 true 开启邮箱登录,允许用户使用邮箱和密码进行登录和注册;设置为 false 关闭邮箱登录。</p>
|
|
25375
25676
|
:rtype: bool
|
|
25376
25677
|
"""
|
|
25377
25678
|
return self._EmailLogin
|
|
@@ -25382,7 +25683,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25382
25683
|
|
|
25383
25684
|
@property
|
|
25384
25685
|
def UserNameLogin(self):
|
|
25385
|
-
r"""
|
|
25686
|
+
r"""<p>用户名密码登录开关。设置为 true 开启用户名密码登录,允许用户使用用户名和密码进行登录和注册;设置为 false 关闭用户名密码登录。</p>
|
|
25386
25687
|
:rtype: bool
|
|
25387
25688
|
"""
|
|
25388
25689
|
return self._UserNameLogin
|
|
@@ -25393,7 +25694,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25393
25694
|
|
|
25394
25695
|
@property
|
|
25395
25696
|
def AnonymousLogin(self):
|
|
25396
|
-
r"""
|
|
25697
|
+
r"""<p>匿名登录开关。设置为 true 开启匿名登录,允许用户无需注册即可以匿名身份访问应用;设置为 false 关闭匿名登录。</p>
|
|
25397
25698
|
:rtype: bool
|
|
25398
25699
|
"""
|
|
25399
25700
|
return self._AnonymousLogin
|
|
@@ -25404,7 +25705,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25404
25705
|
|
|
25405
25706
|
@property
|
|
25406
25707
|
def SmsVerificationConfig(self):
|
|
25407
|
-
r"""
|
|
25708
|
+
r"""<p>短信验证码发送配置,用于设置短信验证码的发送通道类型和日发送限额。不传则不修改当前配置。</p>
|
|
25408
25709
|
:rtype: :class:`tencentcloud.tcb.v20180608.models.VerificationConfig`
|
|
25409
25710
|
"""
|
|
25410
25711
|
return self._SmsVerificationConfig
|
|
@@ -25415,7 +25716,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25415
25716
|
|
|
25416
25717
|
@property
|
|
25417
25718
|
def MfaConfig(self):
|
|
25418
|
-
r"""MFA 多因子认证登录配置,用于设置多因子认证开关及验证方式(短信、邮箱、TOTP
|
|
25719
|
+
r"""<p>MFA 多因子认证登录配置,用于设置多因子认证开关及验证方式(短信、邮箱、TOTP、强制绑定手机号)。不传则不修改当前配置。</p>
|
|
25419
25720
|
:rtype: :class:`tencentcloud.tcb.v20180608.models.MFALoginConfig`
|
|
25420
25721
|
"""
|
|
25421
25722
|
return self._MfaConfig
|
|
@@ -25426,7 +25727,7 @@ class ModifyLoginConfigRequest(AbstractModel):
|
|
|
25426
25727
|
|
|
25427
25728
|
@property
|
|
25428
25729
|
def PwdUpdateStrategy(self):
|
|
25429
|
-
r"""
|
|
25730
|
+
r"""<p>密码更新策略配置,用于设置首次登录强制修改密码和定期强制修改密码策略。不传则不修改当前配置。</p>
|
|
25430
25731
|
:rtype: :class:`tencentcloud.tcb.v20180608.models.PasswordUpdateLoginConfig`
|
|
25431
25732
|
"""
|
|
25432
25733
|
return self._PwdUpdateStrategy
|
|
@@ -33627,6 +33928,113 @@ class User(AbstractModel):
|
|
|
33627
33928
|
|
|
33628
33929
|
|
|
33629
33930
|
|
|
33931
|
+
class VPCInfo(AbstractModel):
|
|
33932
|
+
r"""VPC信息
|
|
33933
|
+
|
|
33934
|
+
"""
|
|
33935
|
+
|
|
33936
|
+
def __init__(self):
|
|
33937
|
+
r"""
|
|
33938
|
+
:param _UniqVpcId: <p>VPC 唯一 ID</p><p>参数格式:vpc-xxxxx</p>
|
|
33939
|
+
:type UniqVpcId: str
|
|
33940
|
+
:param _Region: <p>VPC 所在地域</p><p>参数格式:ap-xxxx</p>
|
|
33941
|
+
:type Region: str
|
|
33942
|
+
"""
|
|
33943
|
+
self._UniqVpcId = None
|
|
33944
|
+
self._Region = None
|
|
33945
|
+
|
|
33946
|
+
@property
|
|
33947
|
+
def UniqVpcId(self):
|
|
33948
|
+
r"""<p>VPC 唯一 ID</p><p>参数格式:vpc-xxxxx</p>
|
|
33949
|
+
:rtype: str
|
|
33950
|
+
"""
|
|
33951
|
+
return self._UniqVpcId
|
|
33952
|
+
|
|
33953
|
+
@UniqVpcId.setter
|
|
33954
|
+
def UniqVpcId(self, UniqVpcId):
|
|
33955
|
+
self._UniqVpcId = UniqVpcId
|
|
33956
|
+
|
|
33957
|
+
@property
|
|
33958
|
+
def Region(self):
|
|
33959
|
+
r"""<p>VPC 所在地域</p><p>参数格式:ap-xxxx</p>
|
|
33960
|
+
:rtype: str
|
|
33961
|
+
"""
|
|
33962
|
+
return self._Region
|
|
33963
|
+
|
|
33964
|
+
@Region.setter
|
|
33965
|
+
def Region(self, Region):
|
|
33966
|
+
self._Region = Region
|
|
33967
|
+
|
|
33968
|
+
|
|
33969
|
+
def _deserialize(self, params):
|
|
33970
|
+
self._UniqVpcId = params.get("UniqVpcId")
|
|
33971
|
+
self._Region = params.get("Region")
|
|
33972
|
+
memeber_set = set(params.keys())
|
|
33973
|
+
for name, value in vars(self).items():
|
|
33974
|
+
property_name = name[1:]
|
|
33975
|
+
if property_name in memeber_set:
|
|
33976
|
+
memeber_set.remove(property_name)
|
|
33977
|
+
if len(memeber_set) > 0:
|
|
33978
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33979
|
+
|
|
33980
|
+
|
|
33981
|
+
|
|
33982
|
+
class VPCWhiteListConfig(AbstractModel):
|
|
33983
|
+
r"""VPC 白名单列表配置
|
|
33984
|
+
|
|
33985
|
+
"""
|
|
33986
|
+
|
|
33987
|
+
def __init__(self):
|
|
33988
|
+
r"""
|
|
33989
|
+
:param _Action: <p>VPC 白名单配置状态</p><p>枚举值:</p><ul><li>OPEN: 开启白名单,VPCs 必填,覆盖写入</li><li>CLOSE: 关闭白名单,VPCs 填入时,覆盖写入</li></ul>
|
|
33990
|
+
:type Action: str
|
|
33991
|
+
:param _VPCs: <p>VPC 信息</p>
|
|
33992
|
+
:type VPCs: list of VPCInfo
|
|
33993
|
+
"""
|
|
33994
|
+
self._Action = None
|
|
33995
|
+
self._VPCs = None
|
|
33996
|
+
|
|
33997
|
+
@property
|
|
33998
|
+
def Action(self):
|
|
33999
|
+
r"""<p>VPC 白名单配置状态</p><p>枚举值:</p><ul><li>OPEN: 开启白名单,VPCs 必填,覆盖写入</li><li>CLOSE: 关闭白名单,VPCs 填入时,覆盖写入</li></ul>
|
|
34000
|
+
:rtype: str
|
|
34001
|
+
"""
|
|
34002
|
+
return self._Action
|
|
34003
|
+
|
|
34004
|
+
@Action.setter
|
|
34005
|
+
def Action(self, Action):
|
|
34006
|
+
self._Action = Action
|
|
34007
|
+
|
|
34008
|
+
@property
|
|
34009
|
+
def VPCs(self):
|
|
34010
|
+
r"""<p>VPC 信息</p>
|
|
34011
|
+
:rtype: list of VPCInfo
|
|
34012
|
+
"""
|
|
34013
|
+
return self._VPCs
|
|
34014
|
+
|
|
34015
|
+
@VPCs.setter
|
|
34016
|
+
def VPCs(self, VPCs):
|
|
34017
|
+
self._VPCs = VPCs
|
|
34018
|
+
|
|
34019
|
+
|
|
34020
|
+
def _deserialize(self, params):
|
|
34021
|
+
self._Action = params.get("Action")
|
|
34022
|
+
if params.get("VPCs") is not None:
|
|
34023
|
+
self._VPCs = []
|
|
34024
|
+
for item in params.get("VPCs"):
|
|
34025
|
+
obj = VPCInfo()
|
|
34026
|
+
obj._deserialize(item)
|
|
34027
|
+
self._VPCs.append(obj)
|
|
34028
|
+
memeber_set = set(params.keys())
|
|
34029
|
+
for name, value in vars(self).items():
|
|
34030
|
+
property_name = name[1:]
|
|
34031
|
+
if property_name in memeber_set:
|
|
34032
|
+
memeber_set.remove(property_name)
|
|
34033
|
+
if len(memeber_set) > 0:
|
|
34034
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
34035
|
+
|
|
34036
|
+
|
|
34037
|
+
|
|
33630
34038
|
class ValueDetail(AbstractModel):
|
|
33631
34039
|
r"""资源用量明细结构
|
|
33632
34040
|
|
|
@@ -1324,6 +1324,31 @@ class TcbClient(AbstractClient):
|
|
|
1324
1324
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1325
1325
|
|
|
1326
1326
|
|
|
1327
|
+
def DescribeEnvAccessControl(self, request):
|
|
1328
|
+
r"""查询云开发域名访问限制配置,返回指定环境下公网、VPC、办公网三种来源的当前访问策略
|
|
1329
|
+
(1)可以通过控制台调用查询域名访问控制。响应 Current 返回各来源(PUBLIC/VPC/WOA)当前生效的配置
|
|
1330
|
+
(2)不产生写副作用
|
|
1331
|
+
|
|
1332
|
+
:param request: Request instance for DescribeEnvAccessControl.
|
|
1333
|
+
:type request: :class:`tencentcloud.tcb.v20180608.models.DescribeEnvAccessControlRequest`
|
|
1334
|
+
:rtype: :class:`tencentcloud.tcb.v20180608.models.DescribeEnvAccessControlResponse`
|
|
1335
|
+
|
|
1336
|
+
"""
|
|
1337
|
+
try:
|
|
1338
|
+
params = request._serialize()
|
|
1339
|
+
headers = request.headers
|
|
1340
|
+
body = self.call("DescribeEnvAccessControl", params, headers=headers)
|
|
1341
|
+
response = json.loads(body)
|
|
1342
|
+
model = models.DescribeEnvAccessControlResponse()
|
|
1343
|
+
model._deserialize(response["Response"])
|
|
1344
|
+
return model
|
|
1345
|
+
except Exception as e:
|
|
1346
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1347
|
+
raise
|
|
1348
|
+
else:
|
|
1349
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1350
|
+
|
|
1351
|
+
|
|
1327
1352
|
def DescribeEnvAccountCircle(self, request):
|
|
1328
1353
|
r"""查询环境计费周期。
|
|
1329
1354
|
云开发环境的资源点都是按月结算的,每个月都有一定的抵扣额度。
|
|
@@ -2431,6 +2456,33 @@ class TcbClient(AbstractClient):
|
|
|
2431
2456
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2432
2457
|
|
|
2433
2458
|
|
|
2459
|
+
def ModifyEnvAccessControl(self, request):
|
|
2460
|
+
r"""云开发域名访问限制配置
|
|
2461
|
+
(1)影响指定环境下域名来源访问策略,包含公网与 VPC 白名单
|
|
2462
|
+
(2)关闭公网访问后,云开发提供的默认域名在公网访问场景下返回403
|
|
2463
|
+
(3)可以通过配置 VPC 白名单指定放通特定 VPC 来源的请求
|
|
2464
|
+
(4)可以通过云开发控制台调用修改访问配置,修改后可通过查询接口核对生效配置
|
|
2465
|
+
|
|
2466
|
+
:param request: Request instance for ModifyEnvAccessControl.
|
|
2467
|
+
:type request: :class:`tencentcloud.tcb.v20180608.models.ModifyEnvAccessControlRequest`
|
|
2468
|
+
:rtype: :class:`tencentcloud.tcb.v20180608.models.ModifyEnvAccessControlResponse`
|
|
2469
|
+
|
|
2470
|
+
"""
|
|
2471
|
+
try:
|
|
2472
|
+
params = request._serialize()
|
|
2473
|
+
headers = request.headers
|
|
2474
|
+
body = self.call("ModifyEnvAccessControl", params, headers=headers)
|
|
2475
|
+
response = json.loads(body)
|
|
2476
|
+
model = models.ModifyEnvAccessControlResponse()
|
|
2477
|
+
model._deserialize(response["Response"])
|
|
2478
|
+
return model
|
|
2479
|
+
except Exception as e:
|
|
2480
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2481
|
+
raise
|
|
2482
|
+
else:
|
|
2483
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2484
|
+
|
|
2485
|
+
|
|
2434
2486
|
def ModifyEnvExtra(self, request):
|
|
2435
2487
|
r"""修改环境额外配置
|
|
2436
2488
|
|
|
@@ -1058,6 +1058,26 @@ class TcbClient(AbstractClient):
|
|
|
1058
1058
|
|
|
1059
1059
|
return await self.call_and_deserialize(**kwargs)
|
|
1060
1060
|
|
|
1061
|
+
async def DescribeEnvAccessControl(
|
|
1062
|
+
self,
|
|
1063
|
+
request: models.DescribeEnvAccessControlRequest,
|
|
1064
|
+
opts: Dict = None,
|
|
1065
|
+
) -> models.DescribeEnvAccessControlResponse:
|
|
1066
|
+
"""
|
|
1067
|
+
查询云开发域名访问限制配置,返回指定环境下公网、VPC、办公网三种来源的当前访问策略
|
|
1068
|
+
(1)可以通过控制台调用查询域名访问控制。响应 Current 返回各来源(PUBLIC/VPC/WOA)当前生效的配置
|
|
1069
|
+
(2)不产生写副作用
|
|
1070
|
+
"""
|
|
1071
|
+
|
|
1072
|
+
kwargs = {}
|
|
1073
|
+
kwargs["action"] = "DescribeEnvAccessControl"
|
|
1074
|
+
kwargs["params"] = request._serialize()
|
|
1075
|
+
kwargs["resp_cls"] = models.DescribeEnvAccessControlResponse
|
|
1076
|
+
kwargs["headers"] = request.headers
|
|
1077
|
+
kwargs["opts"] = opts or {}
|
|
1078
|
+
|
|
1079
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1080
|
+
|
|
1061
1081
|
async def DescribeEnvAccountCircle(
|
|
1062
1082
|
self,
|
|
1063
1083
|
request: models.DescribeEnvAccountCircleRequest,
|
|
@@ -1940,6 +1960,28 @@ class TcbClient(AbstractClient):
|
|
|
1940
1960
|
|
|
1941
1961
|
return await self.call_and_deserialize(**kwargs)
|
|
1942
1962
|
|
|
1963
|
+
async def ModifyEnvAccessControl(
|
|
1964
|
+
self,
|
|
1965
|
+
request: models.ModifyEnvAccessControlRequest,
|
|
1966
|
+
opts: Dict = None,
|
|
1967
|
+
) -> models.ModifyEnvAccessControlResponse:
|
|
1968
|
+
"""
|
|
1969
|
+
云开发域名访问限制配置
|
|
1970
|
+
(1)影响指定环境下域名来源访问策略,包含公网与 VPC 白名单
|
|
1971
|
+
(2)关闭公网访问后,云开发提供的默认域名在公网访问场景下返回403
|
|
1972
|
+
(3)可以通过配置 VPC 白名单指定放通特定 VPC 来源的请求
|
|
1973
|
+
(4)可以通过云开发控制台调用修改访问配置,修改后可通过查询接口核对生效配置
|
|
1974
|
+
"""
|
|
1975
|
+
|
|
1976
|
+
kwargs = {}
|
|
1977
|
+
kwargs["action"] = "ModifyEnvAccessControl"
|
|
1978
|
+
kwargs["params"] = request._serialize()
|
|
1979
|
+
kwargs["resp_cls"] = models.ModifyEnvAccessControlResponse
|
|
1980
|
+
kwargs["headers"] = request.headers
|
|
1981
|
+
kwargs["opts"] = opts or {}
|
|
1982
|
+
|
|
1983
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1984
|
+
|
|
1943
1985
|
async def ModifyEnvExtra(
|
|
1944
1986
|
self,
|
|
1945
1987
|
request: models.ModifyEnvExtraRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.208
|
|
4
4
|
Summary: Tencent Cloud Tcb 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.208
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.208
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.206
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|