tencentcloud-sdk-python 3.0.1442__py2.py3-none-any.whl → 3.0.1444__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/batch/v20170312/models.py +30 -50
- tencentcloud/ckafka/v20190819/models.py +23 -23
- tencentcloud/clb/v20180317/models.py +426 -30
- tencentcloud/cls/v20201016/cls_client.py +4 -4
- tencentcloud/cls/v20201016/errorcodes.py +3 -0
- tencentcloud/cls/v20201016/models.py +1089 -324
- tencentcloud/common/credential.py +20 -2
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dnspod/v20210323/models.py +17 -2
- tencentcloud/es/v20180416/models.py +30 -0
- tencentcloud/ess/v20201111/ess_client.py +3 -1
- tencentcloud/ess/v20201111/models.py +2 -2
- tencentcloud/essbasic/v20210526/essbasic_client.py +3 -1
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/iai/v20200303/models.py +19 -0
- tencentcloud/keewidb/v20220308/errorcodes.py +3 -0
- tencentcloud/keewidb/v20220308/models.py +2 -2
- tencentcloud/lcic/v20220817/errorcodes.py +15 -0
- tencentcloud/lcic/v20220817/models.py +67 -16
- tencentcloud/lighthouse/v20200324/errorcodes.py +27 -0
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +53 -0
- tencentcloud/lighthouse/v20200324/models.py +534 -0
- tencentcloud/live/v20180801/models.py +2 -10
- tencentcloud/lke/v20231130/lke_client.py +0 -23
- tencentcloud/lke/v20231130/models.py +40 -128
- tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/models.py +4 -4
- tencentcloud/mps/v20190612/models.py +64 -0
- tencentcloud/ocr/v20181119/models.py +65 -16
- tencentcloud/organization/v20210331/models.py +24 -26
- tencentcloud/postgres/v20170312/errorcodes.py +0 -12
- tencentcloud/postgres/v20170312/models.py +191 -1527
- tencentcloud/postgres/v20170312/postgres_client.py +0 -75
- tencentcloud/ssl/v20191205/models.py +2 -2
- tencentcloud/sts/v20180813/sts_client.py +21 -7
- tencentcloud/tbaas/v20180416/errorcodes.py +6 -0
- tencentcloud/tcbr/v20220217/models.py +151 -0
- tencentcloud/tcss/v20201101/models.py +45 -0
- tencentcloud/teo/v20220901/models.py +18 -18
- tencentcloud/tke/v20180525/models.py +17 -2
- tencentcloud/tms/v20201229/errorcodes.py +3 -0
- tencentcloud/trabbit/v20230418/models.py +60 -0
- tencentcloud/trocket/v20230308/models.py +319 -0
- tencentcloud/trocket/v20230308/trocket_client.py +25 -0
- tencentcloud/trtc/v20190722/errorcodes.py +18 -0
- tencentcloud/trtc/v20190722/models.py +486 -2
- tencentcloud/trtc/v20190722/trtc_client.py +64 -0
- tencentcloud/tse/v20201207/models.py +30 -0
- tencentcloud/tsf/v20180326/errorcodes.py +41 -11
- tencentcloud/tsf/v20180326/models.py +1705 -1263
- tencentcloud/tsf/v20180326/tsf_client.py +18 -18
- tencentcloud/vod/v20180717/models.py +78 -10
- tencentcloud/vod/v20180717/vod_client.py +1 -0
- tencentcloud/vpc/v20170312/models.py +35 -0
- tencentcloud/vpc/v20170312/vpc_client.py +1 -1
- tencentcloud/waf/v20180125/errorcodes.py +6 -0
- tencentcloud/waf/v20180125/models.py +1926 -744
- tencentcloud/waf/v20180125/waf_client.py +161 -0
- tencentcloud/wedata/v20210820/models.py +204 -0
- tencentcloud/wsa/v20250508/models.py +42 -6
- {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/RECORD +66 -66
- {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/top_level.txt +0 -0
|
@@ -62,6 +62,9 @@ FAILEDOPERATION_DESCRIBEDISKCONFIGQUOTAFAILED = 'FailedOperation.DescribeDiskCon
|
|
|
62
62
|
# 查询云硬盘是否可以退还操作失败。
|
|
63
63
|
FAILEDOPERATION_DESCRIBEDISKSRETURNABLEERROR = 'FailedOperation.DescribeDisksReturnableError'
|
|
64
64
|
|
|
65
|
+
# 查询CVM镜像列表失败。
|
|
66
|
+
FAILEDOPERATION_DESCRIBEIMAGESFAILED = 'FailedOperation.DescribeImagesFailed'
|
|
67
|
+
|
|
65
68
|
# 查询实例状态错误。
|
|
66
69
|
FAILEDOPERATION_DESCRIBEINSTANCESTATUS = 'FailedOperation.DescribeInstanceStatus'
|
|
67
70
|
|
|
@@ -89,6 +92,9 @@ FAILEDOPERATION_DOCKEROPERATIONFAILED = 'FailedOperation.DockerOperationFailed'
|
|
|
89
92
|
# 对防火墙规则的操作失败。
|
|
90
93
|
FAILEDOPERATION_FIREWALLRULESOPERATIONFAILED = 'FailedOperation.FirewallRulesOperationFailed'
|
|
91
94
|
|
|
95
|
+
# 操作镜像失败。
|
|
96
|
+
FAILEDOPERATION_IMAGEOPERATIONFAILED = 'FailedOperation.ImageOperationFailed'
|
|
97
|
+
|
|
92
98
|
# 对密钥对的导入操作失败。
|
|
93
99
|
FAILEDOPERATION_IMPORTKEYPAIRFAILED = 'FailedOperation.ImportKeyPairFailed'
|
|
94
100
|
|
|
@@ -377,6 +383,9 @@ INVALIDPARAMETERVALUE_INVALIDDISKSIZE = 'InvalidParameterValue.InvalidDiskSize'
|
|
|
377
383
|
# 云硬盘类型非法。
|
|
378
384
|
INVALIDPARAMETERVALUE_INVALIDDISKTYPE = 'InvalidParameterValue.InvalidDiskType'
|
|
379
385
|
|
|
386
|
+
# 镜像ID格式非法。
|
|
387
|
+
INVALIDPARAMETERVALUE_INVALIDIMAGEIDMALFORMED = 'InvalidParameterValue.InvalidImageIdMalformed'
|
|
388
|
+
|
|
380
389
|
# 参数值非法,IP 地址格式非法。
|
|
381
390
|
INVALIDPARAMETERVALUE_INVALIDIPFORMAT = 'InvalidParameterValue.InvalidIpFormat'
|
|
382
391
|
|
|
@@ -566,6 +575,9 @@ RESOURCEINUSE_BLUEPRINTMODIFYINGSHAREPERMISSION = 'ResourceInUse.BlueprintModify
|
|
|
566
575
|
# 磁盘备份点正在使用中,不支持此操作。
|
|
567
576
|
RESOURCEINUSE_DISKBACKUPINUSE = 'ResourceInUse.DiskBackupInUse'
|
|
568
577
|
|
|
578
|
+
# 镜像在使用中,不支持此操作。
|
|
579
|
+
RESOURCEINUSE_IMAGEINUSE = 'ResourceInUse.ImageInUse'
|
|
580
|
+
|
|
569
581
|
# 密钥对正在使用中。
|
|
570
582
|
RESOURCEINUSE_KEYPAIRINUSE = 'ResourceInUse.KeyPairInUse'
|
|
571
583
|
|
|
@@ -611,6 +623,9 @@ RESOURCENOTFOUND_FIREWALLTEMPLATENOTFOUND = 'ResourceNotFound.FirewallTemplateNo
|
|
|
611
623
|
# 防火墙模板规则不存在。
|
|
612
624
|
RESOURCENOTFOUND_FIREWALLTEMPLATERULENOTFOUND = 'ResourceNotFound.FirewallTemplateRuleNotFound'
|
|
613
625
|
|
|
626
|
+
# 镜像ID不存在。
|
|
627
|
+
RESOURCENOTFOUND_IMAGEIDNOTFOUND = 'ResourceNotFound.ImageIdNotFound'
|
|
628
|
+
|
|
614
629
|
# 实例镜像不存在。
|
|
615
630
|
RESOURCENOTFOUND_INSTANCEBLUEPRINTNOTFOUND = 'ResourceNotFound.InstanceBlueprintNotFound'
|
|
616
631
|
|
|
@@ -716,6 +731,9 @@ UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
|
716
731
|
# 将磁盘备份点回滚到其他盘,不支持该操作。
|
|
717
732
|
UNSUPPORTEDOPERATION_APPLYDISKBACKUPTOANOTHERDISK = 'UnsupportedOperation.ApplyDiskBackupToAnotherDisk'
|
|
718
733
|
|
|
734
|
+
# 获取角色授权失败,请授予 Lighthouse 相关角色后进行重试。
|
|
735
|
+
UNSUPPORTEDOPERATION_ASSUMEROLEFAILED = 'UnsupportedOperation.AssumeRoleFailed'
|
|
736
|
+
|
|
719
737
|
# 没有实例不支持关联到云联网。
|
|
720
738
|
UNSUPPORTEDOPERATION_ATTACHCCNCONDITIONUNSATISFIED = 'UnsupportedOperation.AttachCcnConditionUnsatisfied'
|
|
721
739
|
|
|
@@ -767,6 +785,15 @@ UNSUPPORTEDOPERATION_FIREWALLBUSY = 'UnsupportedOperation.FirewallBusy'
|
|
|
767
785
|
# 指定的防火墙版本号和当前版本不一致。
|
|
768
786
|
UNSUPPORTEDOPERATION_FIREWALLVERSIONMISMATCH = 'UnsupportedOperation.FirewallVersionMismatch'
|
|
769
787
|
|
|
788
|
+
# 镜像已经被共享。不支持此操作。
|
|
789
|
+
UNSUPPORTEDOPERATION_IMAGEALREADYSHARED = 'UnsupportedOperation.ImageAlreadyShared'
|
|
790
|
+
|
|
791
|
+
# 镜像整在被资源进行操作,镜像被占用,不支持此操作。请稍后再试。
|
|
792
|
+
UNSUPPORTEDOPERATION_IMAGEOCCUPIED = 'UnsupportedOperation.ImageOccupied'
|
|
793
|
+
|
|
794
|
+
# 镜像不支持共享。
|
|
795
|
+
UNSUPPORTEDOPERATION_IMAGEUNABLETOSHARE = 'UnsupportedOperation.ImageUnableToShare'
|
|
796
|
+
|
|
770
797
|
# 实例展示区域不支持该操作。
|
|
771
798
|
UNSUPPORTEDOPERATION_INSTANCEDISPLAYAREANOTSUPPORTOPERATION = 'UnsupportedOperation.InstanceDisplayAreaNotSupportOperation'
|
|
772
799
|
|
|
@@ -1172,6 +1172,29 @@ class LighthouseClient(AbstractClient):
|
|
|
1172
1172
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1173
1173
|
|
|
1174
1174
|
|
|
1175
|
+
def DescribeImagesToShare(self, request):
|
|
1176
|
+
"""本接口 (DescribeImagesToShare) 用于查询CVM的自定义镜像列表共享到轻量应用服务器。
|
|
1177
|
+
|
|
1178
|
+
:param request: Request instance for DescribeImagesToShare.
|
|
1179
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.DescribeImagesToShareRequest`
|
|
1180
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.DescribeImagesToShareResponse`
|
|
1181
|
+
|
|
1182
|
+
"""
|
|
1183
|
+
try:
|
|
1184
|
+
params = request._serialize()
|
|
1185
|
+
headers = request.headers
|
|
1186
|
+
body = self.call("DescribeImagesToShare", params, headers=headers)
|
|
1187
|
+
response = json.loads(body)
|
|
1188
|
+
model = models.DescribeImagesToShareResponse()
|
|
1189
|
+
model._deserialize(response["Response"])
|
|
1190
|
+
return model
|
|
1191
|
+
except Exception as e:
|
|
1192
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1193
|
+
raise
|
|
1194
|
+
else:
|
|
1195
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1196
|
+
|
|
1197
|
+
|
|
1175
1198
|
def DescribeInstanceVncUrl(self, request):
|
|
1176
1199
|
"""本接口 ( DescribeInstanceVncUrl ) 用于查询实例管理终端地址,获取的地址可用于实例的 VNC 登录。
|
|
1177
1200
|
|
|
@@ -2021,6 +2044,36 @@ class LighthouseClient(AbstractClient):
|
|
|
2021
2044
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2022
2045
|
|
|
2023
2046
|
|
|
2047
|
+
def ModifyImageSharePermission(self, request):
|
|
2048
|
+
"""本接口 (ModifyImageSharePermission) 用于共享和取消共享CVM自定义镜像到轻量应用服务器服务。
|
|
2049
|
+
CVM镜像共享到轻量应用服务器镜像需要满足如下条件:
|
|
2050
|
+
1.已共享过的镜像不支持再次共享。
|
|
2051
|
+
2.外部导入的镜像不支持共享。
|
|
2052
|
+
3.整机镜像不支持共享。
|
|
2053
|
+
4.镜像要支持Cloudinit才支持共享。
|
|
2054
|
+
5.镜像的Platform和OsName要满足。
|
|
2055
|
+
6.NORMAL状态的镜像才支持共享。
|
|
2056
|
+
|
|
2057
|
+
:param request: Request instance for ModifyImageSharePermission.
|
|
2058
|
+
:type request: :class:`tencentcloud.lighthouse.v20200324.models.ModifyImageSharePermissionRequest`
|
|
2059
|
+
:rtype: :class:`tencentcloud.lighthouse.v20200324.models.ModifyImageSharePermissionResponse`
|
|
2060
|
+
|
|
2061
|
+
"""
|
|
2062
|
+
try:
|
|
2063
|
+
params = request._serialize()
|
|
2064
|
+
headers = request.headers
|
|
2065
|
+
body = self.call("ModifyImageSharePermission", params, headers=headers)
|
|
2066
|
+
response = json.loads(body)
|
|
2067
|
+
model = models.ModifyImageSharePermissionResponse()
|
|
2068
|
+
model._deserialize(response["Response"])
|
|
2069
|
+
return model
|
|
2070
|
+
except Exception as e:
|
|
2071
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2072
|
+
raise
|
|
2073
|
+
else:
|
|
2074
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2075
|
+
|
|
2076
|
+
|
|
2024
2077
|
def ModifyInstancesAttribute(self, request):
|
|
2025
2078
|
"""本接口(ModifyInstancesAttribute)用于修改实例的属性。
|
|
2026
2079
|
* “实例名称”仅为方便用户自己管理之用。
|
|
@@ -6868,6 +6868,191 @@ class DescribeGeneralResourceQuotasResponse(AbstractModel):
|
|
|
6868
6868
|
self._RequestId = params.get("RequestId")
|
|
6869
6869
|
|
|
6870
6870
|
|
|
6871
|
+
class DescribeImagesToShareRequest(AbstractModel):
|
|
6872
|
+
"""DescribeImagesToShare请求参数结构体
|
|
6873
|
+
|
|
6874
|
+
"""
|
|
6875
|
+
|
|
6876
|
+
def __init__(self):
|
|
6877
|
+
r"""
|
|
6878
|
+
:param _ImageIds: CVM镜像 ID 列表。可通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回值中的ImageId获取。
|
|
6879
|
+
:type ImageIds: list of str
|
|
6880
|
+
:param _Offset: 偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
|
|
6881
|
+
:type Offset: int
|
|
6882
|
+
:param _Limit: 返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
|
|
6883
|
+
:type Limit: int
|
|
6884
|
+
:param _Filters: 过滤器列表。
|
|
6885
|
+
<li>image-id</li>按照【CVM镜像ID】进行过滤。
|
|
6886
|
+
类型:String
|
|
6887
|
+
必选:否
|
|
6888
|
+
|
|
6889
|
+
<li>image-name</li>按照【CVM镜像名称】进行过滤。
|
|
6890
|
+
类型:String
|
|
6891
|
+
必选:否
|
|
6892
|
+
|
|
6893
|
+
<li>image-type</li>按照【CVM镜像类型】进行过滤。
|
|
6894
|
+
类型:String
|
|
6895
|
+
必选:否
|
|
6896
|
+
取值范围:
|
|
6897
|
+
PRIVATE_IMAGE: 私有镜像 (本账户创建的镜像)
|
|
6898
|
+
PUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)
|
|
6899
|
+
SHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像) 。
|
|
6900
|
+
|
|
6901
|
+
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。
|
|
6902
|
+
参数不可以同时指定ImageIds和Filters。
|
|
6903
|
+
:type Filters: list of Filter
|
|
6904
|
+
"""
|
|
6905
|
+
self._ImageIds = None
|
|
6906
|
+
self._Offset = None
|
|
6907
|
+
self._Limit = None
|
|
6908
|
+
self._Filters = None
|
|
6909
|
+
|
|
6910
|
+
@property
|
|
6911
|
+
def ImageIds(self):
|
|
6912
|
+
"""CVM镜像 ID 列表。可通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回值中的ImageId获取。
|
|
6913
|
+
:rtype: list of str
|
|
6914
|
+
"""
|
|
6915
|
+
return self._ImageIds
|
|
6916
|
+
|
|
6917
|
+
@ImageIds.setter
|
|
6918
|
+
def ImageIds(self, ImageIds):
|
|
6919
|
+
self._ImageIds = ImageIds
|
|
6920
|
+
|
|
6921
|
+
@property
|
|
6922
|
+
def Offset(self):
|
|
6923
|
+
"""偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
|
|
6924
|
+
:rtype: int
|
|
6925
|
+
"""
|
|
6926
|
+
return self._Offset
|
|
6927
|
+
|
|
6928
|
+
@Offset.setter
|
|
6929
|
+
def Offset(self, Offset):
|
|
6930
|
+
self._Offset = Offset
|
|
6931
|
+
|
|
6932
|
+
@property
|
|
6933
|
+
def Limit(self):
|
|
6934
|
+
"""返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。
|
|
6935
|
+
:rtype: int
|
|
6936
|
+
"""
|
|
6937
|
+
return self._Limit
|
|
6938
|
+
|
|
6939
|
+
@Limit.setter
|
|
6940
|
+
def Limit(self, Limit):
|
|
6941
|
+
self._Limit = Limit
|
|
6942
|
+
|
|
6943
|
+
@property
|
|
6944
|
+
def Filters(self):
|
|
6945
|
+
"""过滤器列表。
|
|
6946
|
+
<li>image-id</li>按照【CVM镜像ID】进行过滤。
|
|
6947
|
+
类型:String
|
|
6948
|
+
必选:否
|
|
6949
|
+
|
|
6950
|
+
<li>image-name</li>按照【CVM镜像名称】进行过滤。
|
|
6951
|
+
类型:String
|
|
6952
|
+
必选:否
|
|
6953
|
+
|
|
6954
|
+
<li>image-type</li>按照【CVM镜像类型】进行过滤。
|
|
6955
|
+
类型:String
|
|
6956
|
+
必选:否
|
|
6957
|
+
取值范围:
|
|
6958
|
+
PRIVATE_IMAGE: 私有镜像 (本账户创建的镜像)
|
|
6959
|
+
PUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)
|
|
6960
|
+
SHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像) 。
|
|
6961
|
+
|
|
6962
|
+
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。
|
|
6963
|
+
参数不可以同时指定ImageIds和Filters。
|
|
6964
|
+
:rtype: list of Filter
|
|
6965
|
+
"""
|
|
6966
|
+
return self._Filters
|
|
6967
|
+
|
|
6968
|
+
@Filters.setter
|
|
6969
|
+
def Filters(self, Filters):
|
|
6970
|
+
self._Filters = Filters
|
|
6971
|
+
|
|
6972
|
+
|
|
6973
|
+
def _deserialize(self, params):
|
|
6974
|
+
self._ImageIds = params.get("ImageIds")
|
|
6975
|
+
self._Offset = params.get("Offset")
|
|
6976
|
+
self._Limit = params.get("Limit")
|
|
6977
|
+
if params.get("Filters") is not None:
|
|
6978
|
+
self._Filters = []
|
|
6979
|
+
for item in params.get("Filters"):
|
|
6980
|
+
obj = Filter()
|
|
6981
|
+
obj._deserialize(item)
|
|
6982
|
+
self._Filters.append(obj)
|
|
6983
|
+
memeber_set = set(params.keys())
|
|
6984
|
+
for name, value in vars(self).items():
|
|
6985
|
+
property_name = name[1:]
|
|
6986
|
+
if property_name in memeber_set:
|
|
6987
|
+
memeber_set.remove(property_name)
|
|
6988
|
+
if len(memeber_set) > 0:
|
|
6989
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6990
|
+
|
|
6991
|
+
|
|
6992
|
+
|
|
6993
|
+
class DescribeImagesToShareResponse(AbstractModel):
|
|
6994
|
+
"""DescribeImagesToShare返回参数结构体
|
|
6995
|
+
|
|
6996
|
+
"""
|
|
6997
|
+
|
|
6998
|
+
def __init__(self):
|
|
6999
|
+
r"""
|
|
7000
|
+
:param _TotalCount: 符合条件的镜像数量。
|
|
7001
|
+
:type TotalCount: int
|
|
7002
|
+
:param _ImageSet: CVM镜像详细信息列表。
|
|
7003
|
+
:type ImageSet: list of Image
|
|
7004
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7005
|
+
:type RequestId: str
|
|
7006
|
+
"""
|
|
7007
|
+
self._TotalCount = None
|
|
7008
|
+
self._ImageSet = None
|
|
7009
|
+
self._RequestId = None
|
|
7010
|
+
|
|
7011
|
+
@property
|
|
7012
|
+
def TotalCount(self):
|
|
7013
|
+
"""符合条件的镜像数量。
|
|
7014
|
+
:rtype: int
|
|
7015
|
+
"""
|
|
7016
|
+
return self._TotalCount
|
|
7017
|
+
|
|
7018
|
+
@TotalCount.setter
|
|
7019
|
+
def TotalCount(self, TotalCount):
|
|
7020
|
+
self._TotalCount = TotalCount
|
|
7021
|
+
|
|
7022
|
+
@property
|
|
7023
|
+
def ImageSet(self):
|
|
7024
|
+
"""CVM镜像详细信息列表。
|
|
7025
|
+
:rtype: list of Image
|
|
7026
|
+
"""
|
|
7027
|
+
return self._ImageSet
|
|
7028
|
+
|
|
7029
|
+
@ImageSet.setter
|
|
7030
|
+
def ImageSet(self, ImageSet):
|
|
7031
|
+
self._ImageSet = ImageSet
|
|
7032
|
+
|
|
7033
|
+
@property
|
|
7034
|
+
def RequestId(self):
|
|
7035
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7036
|
+
:rtype: str
|
|
7037
|
+
"""
|
|
7038
|
+
return self._RequestId
|
|
7039
|
+
|
|
7040
|
+
@RequestId.setter
|
|
7041
|
+
def RequestId(self, RequestId):
|
|
7042
|
+
self._RequestId = RequestId
|
|
7043
|
+
|
|
7044
|
+
|
|
7045
|
+
def _deserialize(self, params):
|
|
7046
|
+
self._TotalCount = params.get("TotalCount")
|
|
7047
|
+
if params.get("ImageSet") is not None:
|
|
7048
|
+
self._ImageSet = []
|
|
7049
|
+
for item in params.get("ImageSet"):
|
|
7050
|
+
obj = Image()
|
|
7051
|
+
obj._deserialize(item)
|
|
7052
|
+
self._ImageSet.append(obj)
|
|
7053
|
+
self._RequestId = params.get("RequestId")
|
|
7054
|
+
|
|
7055
|
+
|
|
6871
7056
|
class DescribeInstanceVncUrlRequest(AbstractModel):
|
|
6872
7057
|
"""DescribeInstanceVncUrl请求参数结构体
|
|
6873
7058
|
|
|
@@ -11671,6 +11856,259 @@ class GeneralResourceQuota(AbstractModel):
|
|
|
11671
11856
|
|
|
11672
11857
|
|
|
11673
11858
|
|
|
11859
|
+
class Image(AbstractModel):
|
|
11860
|
+
"""CVM镜像信息。
|
|
11861
|
+
|
|
11862
|
+
"""
|
|
11863
|
+
|
|
11864
|
+
def __init__(self):
|
|
11865
|
+
r"""
|
|
11866
|
+
:param _ImageId: CVM镜像 ID ,是Image的唯一标识。
|
|
11867
|
+
:type ImageId: str
|
|
11868
|
+
:param _ImageName: 镜像名称。
|
|
11869
|
+
:type ImageName: str
|
|
11870
|
+
:param _ImageDescription: 镜像描述。
|
|
11871
|
+
:type ImageDescription: str
|
|
11872
|
+
:param _ImageSize: 镜像大小。单位GB。
|
|
11873
|
+
:type ImageSize: int
|
|
11874
|
+
:param _ImageSource: 镜像来源。
|
|
11875
|
+
<li>CREATE_IMAGE:自定义镜像</li>
|
|
11876
|
+
<li>EXTERNAL_IMPORT:外部导入镜像</li>
|
|
11877
|
+
:type ImageSource: str
|
|
11878
|
+
:param _ImageClass: 镜像分类
|
|
11879
|
+
<li>SystemImage:系统盘镜像</li>
|
|
11880
|
+
<li>InstanceImage:整机镜像</li>
|
|
11881
|
+
:type ImageClass: str
|
|
11882
|
+
:param _ImageState: 镜像状态
|
|
11883
|
+
CREATING:创建中
|
|
11884
|
+
NORMAL:正常
|
|
11885
|
+
CREATEFAILED:创建失败
|
|
11886
|
+
USING:使用中
|
|
11887
|
+
SYNCING:同步中
|
|
11888
|
+
IMPORTING:导入中
|
|
11889
|
+
IMPORTFAILED:导入失败
|
|
11890
|
+
:type ImageState: str
|
|
11891
|
+
:param _IsSupportCloudinit: 镜像是否支持Cloudinit。
|
|
11892
|
+
:type IsSupportCloudinit: bool
|
|
11893
|
+
:param _Architecture: 镜像架构。
|
|
11894
|
+
:type Architecture: str
|
|
11895
|
+
:param _OsName: 镜像操作系统。
|
|
11896
|
+
:type OsName: str
|
|
11897
|
+
:param _Platform: 镜像来源平台。
|
|
11898
|
+
:type Platform: str
|
|
11899
|
+
:param _CreatedTime: 镜像创建时间。
|
|
11900
|
+
:type CreatedTime: str
|
|
11901
|
+
:param _IsShareable: 镜像是否可共享到轻量应用服务器。
|
|
11902
|
+
:type IsShareable: bool
|
|
11903
|
+
:param _UnshareableReason: 不可共享的原因。
|
|
11904
|
+
:type UnshareableReason: str
|
|
11905
|
+
"""
|
|
11906
|
+
self._ImageId = None
|
|
11907
|
+
self._ImageName = None
|
|
11908
|
+
self._ImageDescription = None
|
|
11909
|
+
self._ImageSize = None
|
|
11910
|
+
self._ImageSource = None
|
|
11911
|
+
self._ImageClass = None
|
|
11912
|
+
self._ImageState = None
|
|
11913
|
+
self._IsSupportCloudinit = None
|
|
11914
|
+
self._Architecture = None
|
|
11915
|
+
self._OsName = None
|
|
11916
|
+
self._Platform = None
|
|
11917
|
+
self._CreatedTime = None
|
|
11918
|
+
self._IsShareable = None
|
|
11919
|
+
self._UnshareableReason = None
|
|
11920
|
+
|
|
11921
|
+
@property
|
|
11922
|
+
def ImageId(self):
|
|
11923
|
+
"""CVM镜像 ID ,是Image的唯一标识。
|
|
11924
|
+
:rtype: str
|
|
11925
|
+
"""
|
|
11926
|
+
return self._ImageId
|
|
11927
|
+
|
|
11928
|
+
@ImageId.setter
|
|
11929
|
+
def ImageId(self, ImageId):
|
|
11930
|
+
self._ImageId = ImageId
|
|
11931
|
+
|
|
11932
|
+
@property
|
|
11933
|
+
def ImageName(self):
|
|
11934
|
+
"""镜像名称。
|
|
11935
|
+
:rtype: str
|
|
11936
|
+
"""
|
|
11937
|
+
return self._ImageName
|
|
11938
|
+
|
|
11939
|
+
@ImageName.setter
|
|
11940
|
+
def ImageName(self, ImageName):
|
|
11941
|
+
self._ImageName = ImageName
|
|
11942
|
+
|
|
11943
|
+
@property
|
|
11944
|
+
def ImageDescription(self):
|
|
11945
|
+
"""镜像描述。
|
|
11946
|
+
:rtype: str
|
|
11947
|
+
"""
|
|
11948
|
+
return self._ImageDescription
|
|
11949
|
+
|
|
11950
|
+
@ImageDescription.setter
|
|
11951
|
+
def ImageDescription(self, ImageDescription):
|
|
11952
|
+
self._ImageDescription = ImageDescription
|
|
11953
|
+
|
|
11954
|
+
@property
|
|
11955
|
+
def ImageSize(self):
|
|
11956
|
+
"""镜像大小。单位GB。
|
|
11957
|
+
:rtype: int
|
|
11958
|
+
"""
|
|
11959
|
+
return self._ImageSize
|
|
11960
|
+
|
|
11961
|
+
@ImageSize.setter
|
|
11962
|
+
def ImageSize(self, ImageSize):
|
|
11963
|
+
self._ImageSize = ImageSize
|
|
11964
|
+
|
|
11965
|
+
@property
|
|
11966
|
+
def ImageSource(self):
|
|
11967
|
+
"""镜像来源。
|
|
11968
|
+
<li>CREATE_IMAGE:自定义镜像</li>
|
|
11969
|
+
<li>EXTERNAL_IMPORT:外部导入镜像</li>
|
|
11970
|
+
:rtype: str
|
|
11971
|
+
"""
|
|
11972
|
+
return self._ImageSource
|
|
11973
|
+
|
|
11974
|
+
@ImageSource.setter
|
|
11975
|
+
def ImageSource(self, ImageSource):
|
|
11976
|
+
self._ImageSource = ImageSource
|
|
11977
|
+
|
|
11978
|
+
@property
|
|
11979
|
+
def ImageClass(self):
|
|
11980
|
+
"""镜像分类
|
|
11981
|
+
<li>SystemImage:系统盘镜像</li>
|
|
11982
|
+
<li>InstanceImage:整机镜像</li>
|
|
11983
|
+
:rtype: str
|
|
11984
|
+
"""
|
|
11985
|
+
return self._ImageClass
|
|
11986
|
+
|
|
11987
|
+
@ImageClass.setter
|
|
11988
|
+
def ImageClass(self, ImageClass):
|
|
11989
|
+
self._ImageClass = ImageClass
|
|
11990
|
+
|
|
11991
|
+
@property
|
|
11992
|
+
def ImageState(self):
|
|
11993
|
+
"""镜像状态
|
|
11994
|
+
CREATING:创建中
|
|
11995
|
+
NORMAL:正常
|
|
11996
|
+
CREATEFAILED:创建失败
|
|
11997
|
+
USING:使用中
|
|
11998
|
+
SYNCING:同步中
|
|
11999
|
+
IMPORTING:导入中
|
|
12000
|
+
IMPORTFAILED:导入失败
|
|
12001
|
+
:rtype: str
|
|
12002
|
+
"""
|
|
12003
|
+
return self._ImageState
|
|
12004
|
+
|
|
12005
|
+
@ImageState.setter
|
|
12006
|
+
def ImageState(self, ImageState):
|
|
12007
|
+
self._ImageState = ImageState
|
|
12008
|
+
|
|
12009
|
+
@property
|
|
12010
|
+
def IsSupportCloudinit(self):
|
|
12011
|
+
"""镜像是否支持Cloudinit。
|
|
12012
|
+
:rtype: bool
|
|
12013
|
+
"""
|
|
12014
|
+
return self._IsSupportCloudinit
|
|
12015
|
+
|
|
12016
|
+
@IsSupportCloudinit.setter
|
|
12017
|
+
def IsSupportCloudinit(self, IsSupportCloudinit):
|
|
12018
|
+
self._IsSupportCloudinit = IsSupportCloudinit
|
|
12019
|
+
|
|
12020
|
+
@property
|
|
12021
|
+
def Architecture(self):
|
|
12022
|
+
"""镜像架构。
|
|
12023
|
+
:rtype: str
|
|
12024
|
+
"""
|
|
12025
|
+
return self._Architecture
|
|
12026
|
+
|
|
12027
|
+
@Architecture.setter
|
|
12028
|
+
def Architecture(self, Architecture):
|
|
12029
|
+
self._Architecture = Architecture
|
|
12030
|
+
|
|
12031
|
+
@property
|
|
12032
|
+
def OsName(self):
|
|
12033
|
+
"""镜像操作系统。
|
|
12034
|
+
:rtype: str
|
|
12035
|
+
"""
|
|
12036
|
+
return self._OsName
|
|
12037
|
+
|
|
12038
|
+
@OsName.setter
|
|
12039
|
+
def OsName(self, OsName):
|
|
12040
|
+
self._OsName = OsName
|
|
12041
|
+
|
|
12042
|
+
@property
|
|
12043
|
+
def Platform(self):
|
|
12044
|
+
"""镜像来源平台。
|
|
12045
|
+
:rtype: str
|
|
12046
|
+
"""
|
|
12047
|
+
return self._Platform
|
|
12048
|
+
|
|
12049
|
+
@Platform.setter
|
|
12050
|
+
def Platform(self, Platform):
|
|
12051
|
+
self._Platform = Platform
|
|
12052
|
+
|
|
12053
|
+
@property
|
|
12054
|
+
def CreatedTime(self):
|
|
12055
|
+
"""镜像创建时间。
|
|
12056
|
+
:rtype: str
|
|
12057
|
+
"""
|
|
12058
|
+
return self._CreatedTime
|
|
12059
|
+
|
|
12060
|
+
@CreatedTime.setter
|
|
12061
|
+
def CreatedTime(self, CreatedTime):
|
|
12062
|
+
self._CreatedTime = CreatedTime
|
|
12063
|
+
|
|
12064
|
+
@property
|
|
12065
|
+
def IsShareable(self):
|
|
12066
|
+
"""镜像是否可共享到轻量应用服务器。
|
|
12067
|
+
:rtype: bool
|
|
12068
|
+
"""
|
|
12069
|
+
return self._IsShareable
|
|
12070
|
+
|
|
12071
|
+
@IsShareable.setter
|
|
12072
|
+
def IsShareable(self, IsShareable):
|
|
12073
|
+
self._IsShareable = IsShareable
|
|
12074
|
+
|
|
12075
|
+
@property
|
|
12076
|
+
def UnshareableReason(self):
|
|
12077
|
+
"""不可共享的原因。
|
|
12078
|
+
:rtype: str
|
|
12079
|
+
"""
|
|
12080
|
+
return self._UnshareableReason
|
|
12081
|
+
|
|
12082
|
+
@UnshareableReason.setter
|
|
12083
|
+
def UnshareableReason(self, UnshareableReason):
|
|
12084
|
+
self._UnshareableReason = UnshareableReason
|
|
12085
|
+
|
|
12086
|
+
|
|
12087
|
+
def _deserialize(self, params):
|
|
12088
|
+
self._ImageId = params.get("ImageId")
|
|
12089
|
+
self._ImageName = params.get("ImageName")
|
|
12090
|
+
self._ImageDescription = params.get("ImageDescription")
|
|
12091
|
+
self._ImageSize = params.get("ImageSize")
|
|
12092
|
+
self._ImageSource = params.get("ImageSource")
|
|
12093
|
+
self._ImageClass = params.get("ImageClass")
|
|
12094
|
+
self._ImageState = params.get("ImageState")
|
|
12095
|
+
self._IsSupportCloudinit = params.get("IsSupportCloudinit")
|
|
12096
|
+
self._Architecture = params.get("Architecture")
|
|
12097
|
+
self._OsName = params.get("OsName")
|
|
12098
|
+
self._Platform = params.get("Platform")
|
|
12099
|
+
self._CreatedTime = params.get("CreatedTime")
|
|
12100
|
+
self._IsShareable = params.get("IsShareable")
|
|
12101
|
+
self._UnshareableReason = params.get("UnshareableReason")
|
|
12102
|
+
memeber_set = set(params.keys())
|
|
12103
|
+
for name, value in vars(self).items():
|
|
12104
|
+
property_name = name[1:]
|
|
12105
|
+
if property_name in memeber_set:
|
|
12106
|
+
memeber_set.remove(property_name)
|
|
12107
|
+
if len(memeber_set) > 0:
|
|
12108
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12109
|
+
|
|
12110
|
+
|
|
12111
|
+
|
|
11674
12112
|
class ImportKeyPairRequest(AbstractModel):
|
|
11675
12113
|
"""ImportKeyPair请求参数结构体
|
|
11676
12114
|
|
|
@@ -14970,6 +15408,102 @@ class ModifyFirewallTemplateResponse(AbstractModel):
|
|
|
14970
15408
|
self._RequestId = params.get("RequestId")
|
|
14971
15409
|
|
|
14972
15410
|
|
|
15411
|
+
class ModifyImageSharePermissionRequest(AbstractModel):
|
|
15412
|
+
"""ModifyImageSharePermission请求参数结构体
|
|
15413
|
+
|
|
15414
|
+
"""
|
|
15415
|
+
|
|
15416
|
+
def __init__(self):
|
|
15417
|
+
r"""
|
|
15418
|
+
:param _ImageId: 镜像 ID。可通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回值中的ImageId获取。
|
|
15419
|
+
:type ImageId: str
|
|
15420
|
+
:param _Permission: 共享属性,包括 SHARE,CANCEL。其中SHARE代表共享,CANCEL代表取消共享。
|
|
15421
|
+
:type Permission: str
|
|
15422
|
+
"""
|
|
15423
|
+
self._ImageId = None
|
|
15424
|
+
self._Permission = None
|
|
15425
|
+
|
|
15426
|
+
@property
|
|
15427
|
+
def ImageId(self):
|
|
15428
|
+
"""镜像 ID。可通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回值中的ImageId获取。
|
|
15429
|
+
:rtype: str
|
|
15430
|
+
"""
|
|
15431
|
+
return self._ImageId
|
|
15432
|
+
|
|
15433
|
+
@ImageId.setter
|
|
15434
|
+
def ImageId(self, ImageId):
|
|
15435
|
+
self._ImageId = ImageId
|
|
15436
|
+
|
|
15437
|
+
@property
|
|
15438
|
+
def Permission(self):
|
|
15439
|
+
"""共享属性,包括 SHARE,CANCEL。其中SHARE代表共享,CANCEL代表取消共享。
|
|
15440
|
+
:rtype: str
|
|
15441
|
+
"""
|
|
15442
|
+
return self._Permission
|
|
15443
|
+
|
|
15444
|
+
@Permission.setter
|
|
15445
|
+
def Permission(self, Permission):
|
|
15446
|
+
self._Permission = Permission
|
|
15447
|
+
|
|
15448
|
+
|
|
15449
|
+
def _deserialize(self, params):
|
|
15450
|
+
self._ImageId = params.get("ImageId")
|
|
15451
|
+
self._Permission = params.get("Permission")
|
|
15452
|
+
memeber_set = set(params.keys())
|
|
15453
|
+
for name, value in vars(self).items():
|
|
15454
|
+
property_name = name[1:]
|
|
15455
|
+
if property_name in memeber_set:
|
|
15456
|
+
memeber_set.remove(property_name)
|
|
15457
|
+
if len(memeber_set) > 0:
|
|
15458
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15459
|
+
|
|
15460
|
+
|
|
15461
|
+
|
|
15462
|
+
class ModifyImageSharePermissionResponse(AbstractModel):
|
|
15463
|
+
"""ModifyImageSharePermission返回参数结构体
|
|
15464
|
+
|
|
15465
|
+
"""
|
|
15466
|
+
|
|
15467
|
+
def __init__(self):
|
|
15468
|
+
r"""
|
|
15469
|
+
:param _BlueprintId: CVM自定义镜像共享到轻量应用服务器后的镜像ID。
|
|
15470
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15471
|
+
:type BlueprintId: str
|
|
15472
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15473
|
+
:type RequestId: str
|
|
15474
|
+
"""
|
|
15475
|
+
self._BlueprintId = None
|
|
15476
|
+
self._RequestId = None
|
|
15477
|
+
|
|
15478
|
+
@property
|
|
15479
|
+
def BlueprintId(self):
|
|
15480
|
+
"""CVM自定义镜像共享到轻量应用服务器后的镜像ID。
|
|
15481
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15482
|
+
:rtype: str
|
|
15483
|
+
"""
|
|
15484
|
+
return self._BlueprintId
|
|
15485
|
+
|
|
15486
|
+
@BlueprintId.setter
|
|
15487
|
+
def BlueprintId(self, BlueprintId):
|
|
15488
|
+
self._BlueprintId = BlueprintId
|
|
15489
|
+
|
|
15490
|
+
@property
|
|
15491
|
+
def RequestId(self):
|
|
15492
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15493
|
+
:rtype: str
|
|
15494
|
+
"""
|
|
15495
|
+
return self._RequestId
|
|
15496
|
+
|
|
15497
|
+
@RequestId.setter
|
|
15498
|
+
def RequestId(self, RequestId):
|
|
15499
|
+
self._RequestId = RequestId
|
|
15500
|
+
|
|
15501
|
+
|
|
15502
|
+
def _deserialize(self, params):
|
|
15503
|
+
self._BlueprintId = params.get("BlueprintId")
|
|
15504
|
+
self._RequestId = params.get("RequestId")
|
|
15505
|
+
|
|
15506
|
+
|
|
14973
15507
|
class ModifyInstancesAttributeRequest(AbstractModel):
|
|
14974
15508
|
"""ModifyInstancesAttribute请求参数结构体
|
|
14975
15509
|
|