tencentcloud-sdk-python-tcb 3.1.207__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/models.py +340 -0
  5. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_tcb-3.1.208/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_tcb-3.1.207/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/README.rst +0 -0
  9. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/__init__.py +0 -0
  11. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/tcb_client.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud/tcb/v20180608/tcb_client_async.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.207 → tencentcloud_sdk_python_tcb-3.1.208}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.207 → 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.207
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.207
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.207,<4.0.0"],
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',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.207'
17
+ __version__ = '3.1.208'
@@ -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
 
@@ -12292,6 +12390,36 @@ class DescribeEnvAccessControlRequest(AbstractModel):
12292
12390
 
12293
12391
  """
12294
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
+
12295
12423
 
12296
12424
  class DescribeEnvAccessControlResponse(AbstractModel):
12297
12425
  r"""DescribeEnvAccessControl返回参数结构体
@@ -12300,11 +12428,25 @@ class DescribeEnvAccessControlResponse(AbstractModel):
12300
12428
 
12301
12429
  def __init__(self):
12302
12430
  r"""
12431
+ :param _Current: <p>修改之后,当前的生效的配置</p>
12432
+ :type Current: list of AccessSourceSetting
12303
12433
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12304
12434
  :type RequestId: str
12305
12435
  """
12436
+ self._Current = None
12306
12437
  self._RequestId = None
12307
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
+
12308
12450
  @property
12309
12451
  def RequestId(self):
12310
12452
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -12318,6 +12460,12 @@ class DescribeEnvAccessControlResponse(AbstractModel):
12318
12460
 
12319
12461
 
12320
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)
12321
12469
  self._RequestId = params.get("RequestId")
12322
12470
 
12323
12471
 
@@ -25003,6 +25151,56 @@ class ModifyEnvAccessControlRequest(AbstractModel):
25003
25151
 
25004
25152
  """
25005
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
+
25006
25204
 
25007
25205
  class ModifyEnvAccessControlResponse(AbstractModel):
25008
25206
  r"""ModifyEnvAccessControl返回参数结构体
@@ -25011,11 +25209,39 @@ class ModifyEnvAccessControlResponse(AbstractModel):
25011
25209
 
25012
25210
  def __init__(self):
25013
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
25014
25216
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25015
25217
  :type RequestId: str
25016
25218
  """
25219
+ self._AffectedRows = None
25220
+ self._Current = None
25017
25221
  self._RequestId = None
25018
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
+
25019
25245
  @property
25020
25246
  def RequestId(self):
25021
25247
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -25029,6 +25255,13 @@ class ModifyEnvAccessControlResponse(AbstractModel):
25029
25255
 
25030
25256
 
25031
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)
25032
25265
  self._RequestId = params.get("RequestId")
25033
25266
 
25034
25267
 
@@ -33695,6 +33928,113 @@ class User(AbstractModel):
33695
33928
 
33696
33929
 
33697
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
+
33698
34038
  class ValueDetail(AbstractModel):
33699
34039
  r"""资源用量明细结构
33700
34040
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.207
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.207
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.207