kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.49__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.
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/METADATA +71 -0
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/RECORD +337 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/actiontrail/v20190401/client.py +2 -4
- ksyun/client/aicp/v20240612/client.py +1344 -0
- ksyun/client/aicp/v20240612/models.py +1963 -0
- ksyun/client/aicp/v20251212/__init__.py +0 -0
- ksyun/client/aicp/v20251212/client.py +56 -0
- ksyun/client/aicp/v20251212/models.py +114 -0
- ksyun/client/bill/v20180601/client.py +6 -77
- ksyun/client/bill/v20180601/models.py +29 -41
- ksyun/client/bill/v20220601/__init__.py +0 -0
- ksyun/client/bill/v20220601/client.py +54 -0
- ksyun/client/bill/v20220601/models.py +54 -0
- ksyun/client/bill_union/v20200101/client.py +81 -14
- ksyun/client/bill_union/v20200101/models.py +119 -3
- ksyun/client/bill_union/v20221222/__init__.py +0 -0
- ksyun/client/bill_union/v20221222/client.py +146 -0
- ksyun/client/bill_union/v20221222/models.py +193 -0
- ksyun/client/bill_union/v20250801/__init__.py +0 -0
- ksyun/client/bill_union/v20250801/client.py +54 -0
- ksyun/client/bill_union/v20250801/models.py +64 -0
- ksyun/client/bws/v20160304/client.py +33 -12
- ksyun/client/bws/v20160304/models.py +51 -0
- ksyun/client/cdn/__init__.py +0 -0
- ksyun/client/cdn/v20160901/__init__.py +0 -0
- ksyun/client/cdn/v20160901/client.py +77 -0
- ksyun/client/cdn/v20160901/models.py +51 -0
- ksyun/client/cdn/v20200630/__init__.py +0 -0
- ksyun/client/cdn/v20200630/client.py +399 -0
- ksyun/client/cdn/v20200630/models.py +826 -0
- ksyun/client/cdn/v20200901/__init__.py +0 -0
- ksyun/client/cdn/v20200901/client.py +169 -0
- ksyun/client/cdn/v20200901/models.py +224 -0
- ksyun/client/cdn/v20211201/__init__.py +0 -0
- ksyun/client/cdn/v20211201/client.py +31 -0
- ksyun/client/cdn/v20211201/models.py +23 -0
- ksyun/client/cdn/v3/__init__.py +0 -0
- ksyun/client/cdn/v3/client.py +997 -0
- ksyun/client/cdn/v3/models.py +1323 -0
- ksyun/client/cen/__init__.py +0 -0
- ksyun/client/cen/v20160304/__init__.py +0 -0
- ksyun/client/cen/v20160304/client.py +606 -0
- ksyun/client/cen/v20160304/models.py +718 -0
- ksyun/client/clickhouse/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/client.py +905 -0
- ksyun/client/clickhouse/v20210101/models.py +1127 -0
- ksyun/client/cloud_advisor/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/client.py +77 -0
- ksyun/client/cloud_advisor/v20250610/models.py +80 -0
- ksyun/client/dmp/__init__.py +0 -0
- ksyun/client/dmp/v20240101/__init__.py +0 -0
- ksyun/client/dmp/v20240101/client.py +468 -0
- ksyun/client/dmp/v20240101/models.py +423 -0
- ksyun/client/dts/__init__.py +0 -0
- ksyun/client/dts/v20180108/__init__.py +0 -0
- ksyun/client/dts/v20180108/client.py +445 -0
- ksyun/client/dts/v20180108/models.py +734 -0
- ksyun/client/ebs/v20160304/client.py +260 -55
- ksyun/client/ebs/v20160304/models.py +320 -66
- ksyun/client/eip/v20160304/client.py +127 -14
- ksyun/client/eip/v20160304/models.py +95 -1
- ksyun/client/epc/v20151101/client.py +1309 -184
- ksyun/client/epc/v20151101/models.py +2623 -137
- ksyun/client/iam/v20151101/client.py +325 -120
- ksyun/client/iam/v20151101/models.py +284 -28
- ksyun/client/iam/v20240513/__init__.py +0 -0
- ksyun/client/iam/v20240513/client.py +31 -0
- ksyun/client/iam/v20240513/models.py +33 -0
- ksyun/client/iam/v20240703/__init__.py +0 -0
- ksyun/client/iam/v20240703/client.py +31 -0
- ksyun/client/iam/v20240703/models.py +18 -0
- ksyun/client/influxdb/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/client.py +629 -0
- ksyun/client/influxdb/v20191010/models.py +655 -0
- ksyun/client/kad/v20161122/client.py +56 -12
- ksyun/client/kad/v20161122/models.py +38 -0
- ksyun/client/kce/__init__.py +0 -0
- ksyun/client/kce/v20180314/__init__.py +0 -0
- ksyun/client/kce/v20180314/client.py +399 -0
- ksyun/client/kce/v20180314/models.py +374 -0
- ksyun/client/kce/v20190806/__init__.py +0 -0
- ksyun/client/kce/v20190806/client.py +790 -0
- ksyun/client/kce/v20190806/models.py +1099 -0
- ksyun/client/kce/v20201231/__init__.py +0 -0
- ksyun/client/{slb/v20171210 → kce/v20201231}/client.py +10 -12
- ksyun/client/kce/v20201231/models.py +137 -0
- ksyun/client/kce/v20230101/__init__.py +0 -0
- ksyun/client/kce/v20230101/client.py +215 -0
- ksyun/client/kce/v20230101/models.py +259 -0
- ksyun/client/kce/v20230306/__init__.py +0 -0
- ksyun/client/kce/v20230306/client.py +514 -0
- ksyun/client/kce/v20230306/models.py +655 -0
- ksyun/client/kce/v20231115/__init__.py +0 -0
- ksyun/client/kce/v20231115/client.py +54 -0
- ksyun/client/kce/v20231115/models.py +59 -0
- ksyun/client/kce2/__init__.py +0 -0
- ksyun/client/kce2/v20230101/__init__.py +0 -0
- ksyun/client/kce2/v20230101/client.py +353 -0
- ksyun/client/kce2/v20230101/models.py +483 -0
- ksyun/client/kcf/__init__.py +0 -0
- ksyun/client/kcf/v20211215/__init__.py +0 -0
- ksyun/client/kcf/v20211215/client.py +215 -0
- ksyun/client/kcf/v20211215/models.py +313 -0
- ksyun/client/kci/__init__.py +0 -0
- ksyun/client/kci/v20200702/__init__.py +0 -0
- ksyun/client/kci/v20200702/client.py +353 -0
- ksyun/client/kci/v20200702/models.py +614 -0
- ksyun/client/kcm/__init__.py +0 -0
- ksyun/client/kcm/v20160304/__init__.py +0 -0
- ksyun/client/kcm/v20160304/client.py +238 -0
- ksyun/client/kcm/v20160304/models.py +394 -0
- ksyun/client/kcrs/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/client.py +1020 -0
- ksyun/client/kcrs/v20211109/models.py +1282 -0
- ksyun/client/kcs/__init__.py +0 -0
- ksyun/client/kcs/v20160701/__init__.py +0 -0
- ksyun/client/kcs/v20160701/client.py +1526 -0
- ksyun/client/kcs/v20160701/models.py +1917 -0
- ksyun/client/kcs/v20170401/__init__.py +0 -0
- ksyun/client/kcs/v20170401/client.py +31 -0
- ksyun/client/kcs/v20170401/models.py +28 -0
- ksyun/client/kcs/v20240701/__init__.py +0 -0
- ksyun/client/kcs/v20240701/client.py +31 -0
- ksyun/client/kcs/v20240701/models.py +23 -0
- ksyun/client/kead/v20200101/client.py +48 -4
- ksyun/client/kead/v20200101/models.py +52 -42
- ksyun/client/kec/v20160304/client.py +890 -223
- ksyun/client/kec/v20160304/models.py +1377 -140
- ksyun/client/ked/__init__.py +0 -0
- ksyun/client/ked/v1/__init__.py +0 -0
- ksyun/client/ked/v1/client.py +1020 -0
- ksyun/client/ked/v1/models.py +1132 -0
- ksyun/client/kes/__init__.py +0 -0
- ksyun/client/kes/v20201215/__init__.py +0 -0
- ksyun/client/kes/v20201215/client.py +192 -0
- ksyun/client/kes/v20201215/models.py +252 -0
- ksyun/client/ket/__init__.py +0 -0
- ksyun/client/ket/v20170101/__init__.py +0 -0
- ksyun/client/ket/v20170101/client.py +192 -0
- ksyun/client/ket/v20170101/models.py +265 -0
- ksyun/client/kfw/__init__.py +0 -0
- ksyun/client/kfw/v20160304/__init__.py +0 -0
- ksyun/client/kfw/v20160304/client.py +692 -0
- ksyun/client/kfw/v20160304/models.py +1029 -0
- ksyun/client/kingpay/__init__.py +0 -0
- ksyun/client/kingpay/v1/__init__.py +0 -0
- ksyun/client/kingpay/v1/client.py +31 -0
- ksyun/client/kingpay/v1/models.py +18 -0
- ksyun/client/kkms/__init__.py +0 -0
- ksyun/client/kkms/v20160304/__init__.py +0 -0
- ksyun/client/kkms/v20160304/client.py +192 -0
- ksyun/client/kkms/v20160304/models.py +185 -0
- ksyun/client/klog/__init__.py +0 -0
- ksyun/client/klog/v20200731/__init__.py +0 -0
- ksyun/client/klog/v20200731/client.py +376 -0
- ksyun/client/klog/v20200731/models.py +508 -0
- ksyun/client/kls/__init__.py +0 -0
- ksyun/client/kls/v20170101/__init__.py +0 -0
- ksyun/client/kls/v20170101/client.py +192 -0
- ksyun/client/kls/v20170101/models.py +320 -0
- ksyun/client/kmr/__init__.py +0 -0
- ksyun/client/kmr/v20210902/__init__.py +0 -0
- ksyun/client/kmr/v20210902/client.py +537 -0
- ksyun/client/kmr/v20210902/models.py +536 -0
- ksyun/client/kmr/v20231231/__init__.py +0 -0
- ksyun/client/kmr/v20231231/client.py +169 -0
- ksyun/client/kmr/v20231231/models.py +201 -0
- ksyun/client/kmr/v20240814/__init__.py +0 -0
- ksyun/client/kmr/v20240814/client.py +445 -0
- ksyun/client/kmr/v20240814/models.py +523 -0
- ksyun/client/knad/__init__.py +0 -0
- ksyun/client/knad/v20230323/__init__.py +0 -0
- ksyun/client/knad/v20230323/client.py +399 -0
- ksyun/client/knad/v20230323/models.py +470 -0
- ksyun/client/kpfs/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/client.py +217 -0
- ksyun/client/kpfs/v20240930/models.py +396 -0
- ksyun/client/krds/__init__.py +0 -0
- ksyun/client/krds/v20160701/__init__.py +0 -0
- ksyun/client/krds/v20160701/client.py +2101 -0
- ksyun/client/krds/v20160701/models.py +2722 -0
- ksyun/client/krds/v20200825/__init__.py +0 -0
- ksyun/client/krds/v20200825/client.py +238 -0
- ksyun/client/krds/v20200825/models.py +336 -0
- ksyun/client/memcached/__init__.py +0 -0
- ksyun/client/memcached/v20180627/__init__.py +0 -0
- ksyun/client/memcached/v20180627/client.py +307 -0
- ksyun/client/memcached/v20180627/models.py +317 -0
- ksyun/client/milvus/__init__.py +0 -0
- ksyun/client/milvus/v20231010/__init__.py +0 -0
- ksyun/client/milvus/v20231010/client.py +445 -0
- ksyun/client/milvus/v20231010/models.py +520 -0
- ksyun/client/mongodb/v20170101/client.py +312 -84
- ksyun/client/mongodb/v20170101/models.py +251 -34
- ksyun/client/mongodb/v20250101/__init__.py +0 -0
- ksyun/client/mongodb/v20250101/client.py +31 -0
- ksyun/client/mongodb/v20250101/models.py +18 -0
- ksyun/client/monitor/__init__.py +0 -0
- ksyun/client/monitor/v20100525/__init__.py +0 -0
- ksyun/client/monitor/v20100525/client.py +54 -0
- ksyun/client/monitor/v20100525/models.py +108 -0
- ksyun/client/monitor/v20181114/__init__.py +0 -0
- ksyun/client/monitor/v20181114/client.py +31 -0
- ksyun/client/monitor/v20181114/models.py +59 -0
- ksyun/client/monitor/v20210101/__init__.py +0 -0
- ksyun/client/monitor/v20210101/client.py +284 -0
- ksyun/client/monitor/v20210101/models.py +330 -0
- ksyun/client/monitor/v20220101/__init__.py +0 -0
- ksyun/client/monitor/v20220101/client.py +54 -0
- ksyun/client/monitor/v20220101/models.py +32 -0
- ksyun/client/monitor/v20250101/__init__.py +0 -0
- ksyun/client/monitor/v20250101/client.py +121 -0
- ksyun/client/monitor/v20250101/models.py +188 -0
- ksyun/client/pdns/__init__.py +0 -0
- ksyun/client/pdns/v20160304/__init__.py +0 -0
- ksyun/client/pdns/v20160304/client.py +813 -0
- ksyun/client/pdns/v20160304/models.py +805 -0
- ksyun/client/postgresql/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/client.py +1158 -0
- ksyun/client/postgresql/v20181225/models.py +1629 -0
- ksyun/client/rabbitmq/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/client.py +445 -0
- ksyun/client/rabbitmq/v20191017/models.py +413 -0
- ksyun/client/relyt/__init__.py +0 -0
- ksyun/client/relyt/v20240117/__init__.py +0 -0
- ksyun/client/{bill_union/v20211209 → relyt/v20240117}/client.py +10 -12
- ksyun/client/relyt/v20240117/models.py +23 -0
- ksyun/client/resourcemanager/v20210320/client.py +16 -18
- ksyun/client/sks/v20151101/client.py +11 -13
- ksyun/client/sks/v20151101/models.py +28 -2
- ksyun/client/slb/v20160304/client.py +1099 -112
- ksyun/client/slb/v20160304/models.py +1697 -24
- ksyun/client/slb/v20250430/__init__.py +0 -0
- ksyun/client/slb/v20250430/client.py +813 -0
- ksyun/client/slb/v20250430/models.py +1372 -0
- ksyun/client/sqlserver/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/client.py +1066 -0
- ksyun/client/sqlserver/v20190425/models.py +1528 -0
- ksyun/client/sts/v20151101/client.py +23 -2
- ksyun/client/sts/v20151101/models.py +54 -1
- ksyun/client/tagv2/v20200901/client.py +60 -16
- ksyun/client/tagv2/v20200901/models.py +56 -4
- ksyun/client/ter/__init__.py +0 -0
- ksyun/client/ter/v20240415/__init__.py +0 -0
- ksyun/client/ter/v20240415/client.py +123 -0
- ksyun/client/ter/v20240415/models.py +115 -0
- ksyun/client/tidb/__init__.py +0 -0
- ksyun/client/tidb/v20210520/__init__.py +0 -0
- ksyun/client/tidb/v20210520/client.py +928 -0
- ksyun/client/tidb/v20210520/models.py +1162 -0
- ksyun/client/trade/v20200114/client.py +2 -4
- ksyun/client/trade/v20200831/client.py +2 -4
- ksyun/client/trade/v20250220/__init__.py +0 -0
- ksyun/client/trade/v20250220/client.py +100 -0
- ksyun/client/trade/v20250220/models.py +91 -0
- ksyun/client/trade/v20250321/__init__.py +0 -0
- ksyun/client/trade/v20250321/client.py +100 -0
- ksyun/client/trade/v20250321/models.py +71 -0
- ksyun/client/trade/v20250828/__init__.py +0 -0
- ksyun/client/trade/v20250828/client.py +31 -0
- ksyun/client/trade/v20250828/models.py +81 -0
- ksyun/client/vpc/v20160304/client.py +1377 -229
- ksyun/client/vpc/v20160304/models.py +1540 -138
- ksyun/client/waf/__init__.py +0 -0
- ksyun/client/waf/v20200707/__init__.py +0 -0
- ksyun/client/waf/v20200707/client.py +468 -0
- ksyun/client/waf/v20200707/models.py +738 -0
- ksyun/common/abstract_client.py +57 -21
- ksyun/common/abstract_model.py +3 -3
- ksyun/common/common_client.py +2 -0
- ksyun/common/credential.py +2 -0
- ksyun/common/exception/ksyun_sdk_exception.py +11 -7
- ksyun/common/http/request.py +45 -6
- ksyun/common/profile/client_profile.py +3 -0
- ksyun/common/profile/http_profile.py +28 -1
- kingsoftcloud_sdk_python-1.1.1.dist-info/METADATA +0 -47
- kingsoftcloud_sdk_python-1.1.1.dist-info/RECORD +0 -105
- ksyun/client/bill_union/v20211209/models.py +0 -38
- ksyun/client/slb/v20171210/models.py +0 -33
- ksyun/common/sign.py +0 -33
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info/licenses}/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
- /ksyun/client/{bill_union/v20211209 → aicp}/__init__.py +0 -0
- /ksyun/client/{slb/v20171210 → aicp/v20240612}/__init__.py +0 -0
|
@@ -15,14 +15,14 @@ class DescribeInstancesRequest(AbstractModel):
|
|
|
15
15
|
:param InstanceId: 待返回描述信息的实例ID列表,N的范围为1-100
|
|
16
16
|
标准UUID格式,形如`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`
|
|
17
17
|
:type PathPrefix: Filter
|
|
18
|
-
:param ProjectId: 待返回实例信息的项目ID列表,N的范围为1-100
|
|
18
|
+
:param ProjectId: 待返回实例信息的项目ID列表,N的范围为1-100,如果不传会查询默认值(0)下的实例
|
|
19
19
|
|
|
20
20
|
:type PathPrefix: Filter
|
|
21
21
|
:param Filter: 待返回实例信息的项目ID列表,N的范围为1-100
|
|
22
22
|
支持如下过滤器名称<br>instance-id 实例ID<br>subnet-id 子网ID<br>vpc-id vpc ID<br>instance-name 实例名称<br>instance-type 实例类型<br>private-ip-address 内网IP<br>image-id 镜像ID<br>charge-type 计费模式(1(包年包月)、5(按量付费(按日月结))、87(按量付费)、810(竞价型实例))2(按小时计费),
|
|
23
23
|
|
|
24
24
|
84(PostPaidByHour)
|
|
25
|
-
<br>ProjectId.N 所属项目<br>network-interface.subnet-id 网络接口关联的子网ID<br>network-interface.network-interface-id 网卡的ID<br>network-interface.group-id 网络接口关联的安全组ID<br>instance-state.name
|
|
25
|
+
<br>ProjectId.N 所属项目<br>network-interface.subnet-id 网络接口关联的子网ID<br>network-interface.network-interface-id 网卡的ID<br>network-interface.group-id 网络接口关联的安全组ID<br>instance-state.name 实例状态<br>availability-zone-name [可用区(AvailabilityZone)](https://docs.ksyun.com/documents/67)
|
|
26
26
|
:type PathPrefix: Filter
|
|
27
27
|
:param Sort: 筛选器
|
|
28
28
|
支持如下筛选器名称:<br>InstanceName –主机名称<br>CreationDate –创建时间<br>PrivateIpAddress - 主机内网IP(主网卡)
|
|
@@ -61,15 +61,11 @@ class RunInstancesRequest(AbstractModel):
|
|
|
61
61
|
"""
|
|
62
62
|
|
|
63
63
|
def __init__(self):
|
|
64
|
-
r"""
|
|
64
|
+
r"""创建实例信息
|
|
65
65
|
:param ImageId: 镜像ID
|
|
66
66
|
:type PathPrefix: String
|
|
67
67
|
:param DedicatedHostId: 专属宿主机ID
|
|
68
68
|
:type PathPrefix: String
|
|
69
|
-
:param InstanceConfigure.VCPU: 实例VCPU核数
|
|
70
|
-
:type PathPrefix: String
|
|
71
|
-
:param InstanceConfigure.MemoryGb: 实例内存
|
|
72
|
-
:type PathPrefix: String
|
|
73
69
|
:param InstanceType: 实例套餐类型
|
|
74
70
|
:type PathPrefix: String
|
|
75
71
|
:param DataDiskGb: 数据卷容量,单位GB
|
|
@@ -82,12 +78,12 @@ class RunInstancesRequest(AbstractModel):
|
|
|
82
78
|
:type PathPrefix: String
|
|
83
79
|
:param InstancePassword: 实例开机密码
|
|
84
80
|
:type PathPrefix: String
|
|
85
|
-
:param ChargeType:
|
|
81
|
+
:param ChargeType: 调用时需要明确指定,无默认值
|
|
86
82
|
:type PathPrefix: String
|
|
87
83
|
:param PurchaseTime: 购买时长,单位月
|
|
88
84
|
:type PathPrefix: Int
|
|
89
85
|
:param SecurityGroupId: 实例绑定的安全组,目前仅支持绑定一个安全组
|
|
90
|
-
:type PathPrefix:
|
|
86
|
+
:type PathPrefix: Filter
|
|
91
87
|
:param PrivateIpAddress: 私有IP地址,指定子网IP地址范围内的任意有效值,代表实例的主IP地址,只能选择一个,绑定到主网卡;如果未指定该参数,系统自动从有效地址池中随机选取一个
|
|
92
88
|
:type PathPrefix: String
|
|
93
89
|
:param InstanceName: 实例名称,如果未指定,则自动生成,形如`KSC-IN-[A-Z0-9]{10}`
|
|
@@ -95,22 +91,71 @@ class RunInstancesRequest(AbstractModel):
|
|
|
95
91
|
:param InstanceNameSuffix: 实例名称后缀,InstanceName参数如果缺省,此参数不生效;当大于1台的批量创建主机,后缀编号自动+1,例如后缀输入5,主机名输入"host",批量3台,则生成的三台主机名分别为:"host-5"、"host-6"、"host-7";
|
|
96
92
|
:type PathPrefix: String
|
|
97
93
|
:param ProjectId: 实例所属项目ID
|
|
98
|
-
:type PathPrefix:
|
|
94
|
+
:type PathPrefix: Long
|
|
99
95
|
:param DataDisk: 数据盘是否随实例释放
|
|
100
96
|
:type PathPrefix: Filter
|
|
101
97
|
:param NetworkInterface: 辅网卡
|
|
102
98
|
:type PathPrefix: Filter
|
|
103
|
-
:param
|
|
99
|
+
:param UserData: 用户自定义数据
|
|
100
|
+
:type PathPrefix: String
|
|
101
|
+
:param SystemDisk: 系统盘
|
|
102
|
+
:type PathPrefix: Object
|
|
103
|
+
:param ModelId: 实例启动模版ID,如填写了此项,则启动模板中已包含的RunInstances其他参数不生效,启动模板未指定的参数若调用RunInstances时额外传入则可生效,如果批量创建,实例名称后缀依然存在。【传modelId,使用默认版本。传modelId和modelVersion,使用传递的版本】
|
|
104
|
+
示例值:3f0d6229-ed2d-4c9c-8554-b9433517cf8b
|
|
105
|
+
:type PathPrefix: String
|
|
106
|
+
:param ModelVersion: 实例启动模板版本号。如不指定,则采用默认版本号
|
|
107
|
+
:type PathPrefix: Long
|
|
108
|
+
:param AssembledImageDataDiskType: 整机镜像所开云盘数据盘的类型
|
|
109
|
+
:type PathPrefix: String
|
|
110
|
+
:param AutoCreateEbs: 整机镜像是否展开镜像中的数据盘
|
|
111
|
+
:type PathPrefix: Boolean
|
|
112
|
+
:param LineId: 弹性IP的链路类型的ID
|
|
113
|
+
:type PathPrefix: String
|
|
114
|
+
:param AddressBandWidth: 弹性IP的带宽,1,如果购买EIP,AddressBandWidth、LineId、AddressChargeType三个接口参数必须同时存在,如有其中任意一个接口参数,判断是否存在其他两个参数;2,如果选择预付费计费方式,必须有购买时长参数; |
|
|
115
|
+
:type PathPrefix: Int
|
|
116
|
+
:param AddressChargeType: PrePaidByMonth :包年包月,有到期时间,只能升带宽;PostPaidByPeak:按峰值月结,无到期时间,可升降带宽;PostPaidByDay:按日月结,无到期时间,可升降带宽;PostPaidByTransfer:按流量月结,无到期时间,可升降带宽;PostPaidByHour:按小时月结,无到期时间,可升降带宽
|
|
104
117
|
:type PathPrefix: String
|
|
105
|
-
:param
|
|
118
|
+
:param AddressProjectId: 弹性IP项目的ID,默认值为0
|
|
119
|
+
:type PathPrefix: String
|
|
120
|
+
:param BandWidthShareId: 共享带宽ID
|
|
121
|
+
:type PathPrefix: String
|
|
122
|
+
:param AddressPurchaseTime: 购买时长
|
|
123
|
+
:type PathPrefix: Int
|
|
124
|
+
:param KeyId: 秘钥ID
|
|
125
|
+
:type PathPrefix: Filter
|
|
126
|
+
:param KeepImageLogin: 是否保留镜像设置
|
|
127
|
+
:type PathPrefix: Boolean
|
|
128
|
+
:param HostName: 操作系统内部的计算机名
|
|
106
129
|
:type PathPrefix: String
|
|
107
|
-
:param
|
|
130
|
+
:param HostNameSuffix: 创建多台实例时为HostName增加有序后缀,有序后缀从1增加,例如host-1
|
|
108
131
|
:type PathPrefix: Int
|
|
132
|
+
:param FailureAutoDelete: 开机失败是否对外删除 ,默认值是false
|
|
133
|
+
:type PathPrefix: Boolean
|
|
134
|
+
:param Tag: 标签信息
|
|
135
|
+
:type PathPrefix: Filter
|
|
136
|
+
:param DataGuardId: 容灾组id
|
|
137
|
+
:type PathPrefix: String
|
|
138
|
+
:param InstanceConfigure:
|
|
139
|
+
:type PathPrefix: Object
|
|
140
|
+
:param SriovNetSupport: 是否支持联网增强
|
|
141
|
+
:type PathPrefix: Boolean
|
|
142
|
+
:param DistributeIpv6: 是否分配ipv6
|
|
143
|
+
:type PathPrefix: Boolean
|
|
144
|
+
:param LocalVolumeSnapshotId: 本地盘快照id
|
|
145
|
+
:type PathPrefix: String
|
|
146
|
+
:param SyncTag: 是否同步ebs标签
|
|
147
|
+
:type PathPrefix: Boolean
|
|
148
|
+
:param IamRoleName: iam角色名称
|
|
149
|
+
:type PathPrefix: String
|
|
150
|
+
:param AutoDeleteTime: 定时删除时间,传参格式:yyyy-MM-dd HH:mm
|
|
151
|
+
:type PathPrefix: String
|
|
152
|
+
:param AutoDeleteEip: 是否自动删除eip
|
|
153
|
+
:type PathPrefix: Boolean
|
|
154
|
+
:param IsProtect: 是否开启资源保护
|
|
155
|
+
:type PathPrefix: Boolean
|
|
109
156
|
"""
|
|
110
157
|
self.ImageId = None
|
|
111
158
|
self.DedicatedHostId = None
|
|
112
|
-
self.InstanceConfigure.VCPU = None
|
|
113
|
-
self.InstanceConfigure.MemoryGb = None
|
|
114
159
|
self.InstanceType = None
|
|
115
160
|
self.DataDiskGb = None
|
|
116
161
|
self.MaxCount = None
|
|
@@ -126,19 +171,40 @@ class RunInstancesRequest(AbstractModel):
|
|
|
126
171
|
self.ProjectId = None
|
|
127
172
|
self.DataDisk = None
|
|
128
173
|
self.NetworkInterface = None
|
|
129
|
-
self.
|
|
130
|
-
self.SystemDisk
|
|
131
|
-
self.
|
|
174
|
+
self.UserData = None
|
|
175
|
+
self.SystemDisk = None
|
|
176
|
+
self.ModelId = None
|
|
177
|
+
self.ModelVersion = None
|
|
178
|
+
self.AssembledImageDataDiskType = None
|
|
179
|
+
self.AutoCreateEbs = None
|
|
180
|
+
self.LineId = None
|
|
181
|
+
self.AddressBandWidth = None
|
|
182
|
+
self.AddressChargeType = None
|
|
183
|
+
self.AddressProjectId = None
|
|
184
|
+
self.BandWidthShareId = None
|
|
185
|
+
self.AddressPurchaseTime = None
|
|
186
|
+
self.KeyId = None
|
|
187
|
+
self.KeepImageLogin = None
|
|
188
|
+
self.HostName = None
|
|
189
|
+
self.HostNameSuffix = None
|
|
190
|
+
self.FailureAutoDelete = None
|
|
191
|
+
self.Tag = None
|
|
192
|
+
self.DataGuardId = None
|
|
193
|
+
self.InstanceConfigure = None
|
|
194
|
+
self.SriovNetSupport = None
|
|
195
|
+
self.DistributeIpv6 = None
|
|
196
|
+
self.LocalVolumeSnapshotId = None
|
|
197
|
+
self.SyncTag = None
|
|
198
|
+
self.IamRoleName = None
|
|
199
|
+
self.AutoDeleteTime = None
|
|
200
|
+
self.AutoDeleteEip = None
|
|
201
|
+
self.IsProtect = None
|
|
132
202
|
|
|
133
203
|
def _deserialize(self, params):
|
|
134
204
|
if params.get("ImageId"):
|
|
135
205
|
self.ImageId = params.get("ImageId")
|
|
136
206
|
if params.get("DedicatedHostId"):
|
|
137
207
|
self.DedicatedHostId = params.get("DedicatedHostId")
|
|
138
|
-
if params.get("InstanceConfigure.VCPU"):
|
|
139
|
-
self.InstanceConfigure.VCPU = params.get("InstanceConfigure.VCPU")
|
|
140
|
-
if params.get("InstanceConfigure.MemoryGb"):
|
|
141
|
-
self.InstanceConfigure.MemoryGb = params.get("InstanceConfigure.MemoryGb")
|
|
142
208
|
if params.get("InstanceType"):
|
|
143
209
|
self.InstanceType = params.get("InstanceType")
|
|
144
210
|
if params.get("DataDiskGb"):
|
|
@@ -169,12 +235,62 @@ class RunInstancesRequest(AbstractModel):
|
|
|
169
235
|
self.DataDisk = params.get("DataDisk")
|
|
170
236
|
if params.get("NetworkInterface"):
|
|
171
237
|
self.NetworkInterface = params.get("NetworkInterface")
|
|
172
|
-
if params.get("
|
|
173
|
-
self.
|
|
174
|
-
if params.get("SystemDisk
|
|
175
|
-
self.SystemDisk
|
|
176
|
-
if params.get("
|
|
177
|
-
self.
|
|
238
|
+
if params.get("UserData"):
|
|
239
|
+
self.UserData = params.get("UserData")
|
|
240
|
+
if params.get("SystemDisk"):
|
|
241
|
+
self.SystemDisk = params.get("SystemDisk")
|
|
242
|
+
if params.get("ModelId"):
|
|
243
|
+
self.ModelId = params.get("ModelId")
|
|
244
|
+
if params.get("ModelVersion"):
|
|
245
|
+
self.ModelVersion = params.get("ModelVersion")
|
|
246
|
+
if params.get("AssembledImageDataDiskType"):
|
|
247
|
+
self.AssembledImageDataDiskType = params.get("AssembledImageDataDiskType")
|
|
248
|
+
if params.get("AutoCreateEbs"):
|
|
249
|
+
self.AutoCreateEbs = params.get("AutoCreateEbs")
|
|
250
|
+
if params.get("LineId"):
|
|
251
|
+
self.LineId = params.get("LineId")
|
|
252
|
+
if params.get("AddressBandWidth"):
|
|
253
|
+
self.AddressBandWidth = params.get("AddressBandWidth")
|
|
254
|
+
if params.get("AddressChargeType"):
|
|
255
|
+
self.AddressChargeType = params.get("AddressChargeType")
|
|
256
|
+
if params.get("AddressProjectId"):
|
|
257
|
+
self.AddressProjectId = params.get("AddressProjectId")
|
|
258
|
+
if params.get("BandWidthShareId"):
|
|
259
|
+
self.BandWidthShareId = params.get("BandWidthShareId")
|
|
260
|
+
if params.get("AddressPurchaseTime"):
|
|
261
|
+
self.AddressPurchaseTime = params.get("AddressPurchaseTime")
|
|
262
|
+
if params.get("KeyId"):
|
|
263
|
+
self.KeyId = params.get("KeyId")
|
|
264
|
+
if params.get("KeepImageLogin"):
|
|
265
|
+
self.KeepImageLogin = params.get("KeepImageLogin")
|
|
266
|
+
if params.get("HostName"):
|
|
267
|
+
self.HostName = params.get("HostName")
|
|
268
|
+
if params.get("HostNameSuffix"):
|
|
269
|
+
self.HostNameSuffix = params.get("HostNameSuffix")
|
|
270
|
+
if params.get("FailureAutoDelete"):
|
|
271
|
+
self.FailureAutoDelete = params.get("FailureAutoDelete")
|
|
272
|
+
if params.get("Tag"):
|
|
273
|
+
self.Tag = params.get("Tag")
|
|
274
|
+
if params.get("DataGuardId"):
|
|
275
|
+
self.DataGuardId = params.get("DataGuardId")
|
|
276
|
+
if params.get("InstanceConfigure"):
|
|
277
|
+
self.InstanceConfigure = params.get("InstanceConfigure")
|
|
278
|
+
if params.get("SriovNetSupport"):
|
|
279
|
+
self.SriovNetSupport = params.get("SriovNetSupport")
|
|
280
|
+
if params.get("DistributeIpv6"):
|
|
281
|
+
self.DistributeIpv6 = params.get("DistributeIpv6")
|
|
282
|
+
if params.get("LocalVolumeSnapshotId"):
|
|
283
|
+
self.LocalVolumeSnapshotId = params.get("LocalVolumeSnapshotId")
|
|
284
|
+
if params.get("SyncTag"):
|
|
285
|
+
self.SyncTag = params.get("SyncTag")
|
|
286
|
+
if params.get("IamRoleName"):
|
|
287
|
+
self.IamRoleName = params.get("IamRoleName")
|
|
288
|
+
if params.get("AutoDeleteTime"):
|
|
289
|
+
self.AutoDeleteTime = params.get("AutoDeleteTime")
|
|
290
|
+
if params.get("AutoDeleteEip"):
|
|
291
|
+
self.AutoDeleteEip = params.get("AutoDeleteEip")
|
|
292
|
+
if params.get("IsProtect"):
|
|
293
|
+
self.IsProtect = params.get("IsProtect")
|
|
178
294
|
|
|
179
295
|
|
|
180
296
|
class StartInstancesRequest(AbstractModel):
|
|
@@ -182,7 +298,7 @@ class StartInstancesRequest(AbstractModel):
|
|
|
182
298
|
"""
|
|
183
299
|
|
|
184
300
|
def __init__(self):
|
|
185
|
-
r"""
|
|
301
|
+
r"""启动实例接口
|
|
186
302
|
:param InstanceId: 待启动实例ID列表,N的范围为1-100
|
|
187
303
|
:type PathPrefix: Filter
|
|
188
304
|
"""
|
|
@@ -198,7 +314,7 @@ class StopInstancesRequest(AbstractModel):
|
|
|
198
314
|
"""
|
|
199
315
|
|
|
200
316
|
def __init__(self):
|
|
201
|
-
r"""
|
|
317
|
+
r"""关闭实例接口
|
|
202
318
|
:param InstanceId: 待关闭实例ID列表,N的范围为1-100
|
|
203
319
|
|
|
204
320
|
:type PathPrefix: Filter
|
|
@@ -226,7 +342,7 @@ class RebootInstancesRequest(AbstractModel):
|
|
|
226
342
|
"""
|
|
227
343
|
|
|
228
344
|
def __init__(self):
|
|
229
|
-
r"""
|
|
345
|
+
r"""重启实例接口
|
|
230
346
|
:param InstanceId: 待重启实例ID列表,N的范围为1-100
|
|
231
347
|
:type PathPrefix: Filter
|
|
232
348
|
:param ForceReboot: 强制重启
|
|
@@ -292,7 +408,8 @@ class ModifyInstanceTypeRequest(AbstractModel):
|
|
|
292
408
|
|
|
293
409
|
:type PathPrefix: String
|
|
294
410
|
:param InstanceType: 实例目标套餐规格
|
|
295
|
-
|
|
411
|
+
实例套餐类型有效值
|
|
412
|
+
若对应实例为专属虚机,该值需填写DVM1.NONE(专属型)、DVM2.NONE(专属型2.0)、DVM3.NONE(专属型3.0),专属虚机只支持升降配,不支持变更实例类型。<br>具体套餐信息参考[实例套餐类型定义](https://docs.ksyun.com/documents/705)
|
|
296
413
|
:type PathPrefix: String
|
|
297
414
|
:param InstanceConfigure.VCPU: 目标CPU值;当需变更实例为专属虚机时需填写该值
|
|
298
415
|
|
|
@@ -318,19 +435,23 @@ true/false
|
|
|
318
435
|
:type PathPrefix: Int
|
|
319
436
|
:param SystemDisk.ResizeType: 扩容 offline 离线扩容| online 在线扩容
|
|
320
437
|
:type PathPrefix: String
|
|
438
|
+
:param InstantAccess:
|
|
439
|
+
支持快速开盘/快速变更,该参数仅对本地盘/本地盘机型/本地盘快照生效
|
|
440
|
+
:type PathPrefix: Boolean
|
|
321
441
|
"""
|
|
322
442
|
self.InstanceId = None
|
|
323
443
|
self.InstanceType = None
|
|
324
|
-
self.
|
|
325
|
-
self.
|
|
444
|
+
self.InstanceConfigure_VCPU = None
|
|
445
|
+
self.InstanceConfigure_MemoryGb = None
|
|
326
446
|
self.DataDiskGb = None
|
|
327
447
|
self.CrossInstanceMigrate = None
|
|
328
|
-
self.
|
|
448
|
+
self.SystemDisk_DiskType = None
|
|
329
449
|
self.DataDisk = None
|
|
330
450
|
self.StopInstance = None
|
|
331
451
|
self.AutoRestart = None
|
|
332
|
-
self.
|
|
333
|
-
self.
|
|
452
|
+
self.SystemDisk_DiskSize = None
|
|
453
|
+
self.SystemDisk_ResizeType = None
|
|
454
|
+
self.InstantAccess = None
|
|
334
455
|
|
|
335
456
|
def _deserialize(self, params):
|
|
336
457
|
if params.get("InstanceId"):
|
|
@@ -338,15 +459,15 @@ true/false
|
|
|
338
459
|
if params.get("InstanceType"):
|
|
339
460
|
self.InstanceType = params.get("InstanceType")
|
|
340
461
|
if params.get("InstanceConfigure.VCPU"):
|
|
341
|
-
self.
|
|
462
|
+
self.InstanceConfigure_VCPU = params.get("InstanceConfigure.VCPU")
|
|
342
463
|
if params.get("InstanceConfigure.MemoryGb"):
|
|
343
|
-
self.
|
|
464
|
+
self.InstanceConfigure_MemoryGb = params.get("InstanceConfigure.MemoryGb")
|
|
344
465
|
if params.get("DataDiskGb"):
|
|
345
466
|
self.DataDiskGb = params.get("DataDiskGb")
|
|
346
467
|
if params.get("CrossInstanceMigrate"):
|
|
347
468
|
self.CrossInstanceMigrate = params.get("CrossInstanceMigrate")
|
|
348
469
|
if params.get("SystemDisk.DiskType"):
|
|
349
|
-
self.
|
|
470
|
+
self.SystemDisk_DiskType = params.get("SystemDisk.DiskType")
|
|
350
471
|
if params.get("DataDisk"):
|
|
351
472
|
self.DataDisk = params.get("DataDisk")
|
|
352
473
|
if params.get("StopInstance"):
|
|
@@ -354,9 +475,11 @@ true/false
|
|
|
354
475
|
if params.get("AutoRestart"):
|
|
355
476
|
self.AutoRestart = params.get("AutoRestart")
|
|
356
477
|
if params.get("SystemDisk.DiskSize"):
|
|
357
|
-
self.
|
|
478
|
+
self.SystemDisk_DiskSize = params.get("SystemDisk.DiskSize")
|
|
358
479
|
if params.get("SystemDisk.ResizeType"):
|
|
359
|
-
self.
|
|
480
|
+
self.SystemDisk_ResizeType = params.get("SystemDisk.ResizeType")
|
|
481
|
+
if params.get("InstantAccess"):
|
|
482
|
+
self.InstantAccess = params.get("InstantAccess")
|
|
360
483
|
|
|
361
484
|
|
|
362
485
|
class TerminateInstancesRequest(AbstractModel):
|
|
@@ -364,7 +487,7 @@ class TerminateInstancesRequest(AbstractModel):
|
|
|
364
487
|
"""
|
|
365
488
|
|
|
366
489
|
def __init__(self):
|
|
367
|
-
r"""
|
|
490
|
+
r"""销毁实例接口
|
|
368
491
|
:param InstanceId: 待销毁实例ID列表,N的范围为1-100
|
|
369
492
|
:type PathPrefix: Filter
|
|
370
493
|
:param ForceDelete: 强制销毁
|
|
@@ -449,7 +572,6 @@ class ModifyInstanceImageRequest(AbstractModel):
|
|
|
449
572
|
标准UUID格式,形如`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`
|
|
450
573
|
:type PathPrefix: String
|
|
451
574
|
:param SystemDisk.DiskSize: 云主机系统盘配置参数。若不指定该参数,则按照系统默认值进行分配。通用型N2、N3主机支持更换操作系统时指定系统盘大小。
|
|
452
|
-
[SystemDisk](https://docs.ksyun.com/documents/5866)
|
|
453
575
|
:type PathPrefix: Int
|
|
454
576
|
:param InstancePassword: 实例开机密码
|
|
455
577
|
最短8字符,最长32字符,必须包含大小写英文字符和数字,支持其他可见字符
|
|
@@ -463,15 +585,18 @@ true/false,默认false
|
|
|
463
585
|
:type PathPrefix: String
|
|
464
586
|
:param SystemDisk.ResizeType: 扩容 offline 离线扩容| online 在线扩容
|
|
465
587
|
:type PathPrefix: String
|
|
588
|
+
:param UserData: 用户自定义数据,必须是base64编码
|
|
589
|
+
:type PathPrefix: String
|
|
466
590
|
"""
|
|
467
591
|
self.InstanceId = None
|
|
468
592
|
self.ImageId = None
|
|
469
|
-
self.
|
|
593
|
+
self.SystemDisk_DiskSize = None
|
|
470
594
|
self.InstancePassword = None
|
|
471
595
|
self.KeyId = None
|
|
472
596
|
self.KeepImageLogin = None
|
|
473
|
-
self.
|
|
474
|
-
self.
|
|
597
|
+
self.SystemDisk_DiskType = None
|
|
598
|
+
self.SystemDisk_ResizeType = None
|
|
599
|
+
self.UserData = None
|
|
475
600
|
|
|
476
601
|
def _deserialize(self, params):
|
|
477
602
|
if params.get("InstanceId"):
|
|
@@ -479,7 +604,7 @@ true/false,默认false
|
|
|
479
604
|
if params.get("ImageId"):
|
|
480
605
|
self.ImageId = params.get("ImageId")
|
|
481
606
|
if params.get("SystemDisk.DiskSize"):
|
|
482
|
-
self.
|
|
607
|
+
self.SystemDisk_DiskSize = params.get("SystemDisk.DiskSize")
|
|
483
608
|
if params.get("InstancePassword"):
|
|
484
609
|
self.InstancePassword = params.get("InstancePassword")
|
|
485
610
|
if params.get("KeyId"):
|
|
@@ -487,9 +612,11 @@ true/false,默认false
|
|
|
487
612
|
if params.get("KeepImageLogin"):
|
|
488
613
|
self.KeepImageLogin = params.get("KeepImageLogin")
|
|
489
614
|
if params.get("SystemDisk.DiskType"):
|
|
490
|
-
self.
|
|
615
|
+
self.SystemDisk_DiskType = params.get("SystemDisk.DiskType")
|
|
491
616
|
if params.get("SystemDisk.ResizeType"):
|
|
492
|
-
self.
|
|
617
|
+
self.SystemDisk_ResizeType = params.get("SystemDisk.ResizeType")
|
|
618
|
+
if params.get("UserData"):
|
|
619
|
+
self.UserData = params.get("UserData")
|
|
493
620
|
|
|
494
621
|
|
|
495
622
|
class CreateImageRequest(AbstractModel):
|
|
@@ -497,7 +624,7 @@ class CreateImageRequest(AbstractModel):
|
|
|
497
624
|
"""
|
|
498
625
|
|
|
499
626
|
def __init__(self):
|
|
500
|
-
r"""
|
|
627
|
+
r"""创建镜像接口
|
|
501
628
|
:param InstanceId: 待创建镜像的实例ID。
|
|
502
629
|
标准UUID格式,形如^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
503
630
|
:type PathPrefix: String
|
|
@@ -513,12 +640,15 @@ LocalImage 和 CommonImage
|
|
|
513
640
|
:param SnapshotIds: 实例需要制作镜像的快照ID,里面必须包含一个系统盘快照ID。
|
|
514
641
|
标准UUID格式,形如[2]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
515
642
|
:type PathPrefix: Filter
|
|
643
|
+
:param InstantAccess: 支持快速开盘/快速变更,该参数仅对本地盘/本地盘机型/本地盘快照生效
|
|
644
|
+
:type PathPrefix: Boolean
|
|
516
645
|
"""
|
|
517
646
|
self.InstanceId = None
|
|
518
647
|
self.Name = None
|
|
519
648
|
self.Type = None
|
|
520
649
|
self.DataDiskIds = None
|
|
521
650
|
self.SnapshotIds = None
|
|
651
|
+
self.InstantAccess = None
|
|
522
652
|
|
|
523
653
|
def _deserialize(self, params):
|
|
524
654
|
if params.get("InstanceId"):
|
|
@@ -531,6 +661,8 @@ LocalImage 和 CommonImage
|
|
|
531
661
|
self.DataDiskIds = params.get("DataDiskIds")
|
|
532
662
|
if params.get("SnapshotIds"):
|
|
533
663
|
self.SnapshotIds = params.get("SnapshotIds")
|
|
664
|
+
if params.get("InstantAccess"):
|
|
665
|
+
self.InstantAccess = params.get("InstantAccess")
|
|
534
666
|
|
|
535
667
|
|
|
536
668
|
class RemoveImagesRequest(AbstractModel):
|
|
@@ -567,7 +699,7 @@ class ModifyNetworkInterfaceAttributeRequest(AbstractModel):
|
|
|
567
699
|
:type PathPrefix: String
|
|
568
700
|
:param SecurityGroupId: 实例绑定的安全组,SecurityGroupId.N可以绑定多个安全组。已绑定的安全组,未重新指定时会被删除。
|
|
569
701
|
标准UUID格式,形如`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`
|
|
570
|
-
:type PathPrefix:
|
|
702
|
+
:type PathPrefix: Filter
|
|
571
703
|
:param PrivateIpAddress: 私有IP地址,子网IP地址范围内的任意有效值。
|
|
572
704
|
标准IP地址格式
|
|
573
705
|
:type PathPrefix: String
|
|
@@ -616,13 +748,9 @@ class AttachNetworkInterfaceRequest(AbstractModel):
|
|
|
616
748
|
:param SubnetId:
|
|
617
749
|
:type PathPrefix: String
|
|
618
750
|
:param SecurityGroupId: 安全组id
|
|
619
|
-
:type PathPrefix:
|
|
751
|
+
:type PathPrefix: Filter
|
|
620
752
|
:param PrivateIpAddress:
|
|
621
753
|
:type PathPrefix: String
|
|
622
|
-
:param SecurityGroupIds:
|
|
623
|
-
:type PathPrefix: Array
|
|
624
|
-
:param VpcIpv6: 指定子网下的ipv6地址
|
|
625
|
-
:type PathPrefix: String
|
|
626
754
|
:param MacAddress:
|
|
627
755
|
:type PathPrefix: String
|
|
628
756
|
"""
|
|
@@ -631,8 +759,6 @@ class AttachNetworkInterfaceRequest(AbstractModel):
|
|
|
631
759
|
self.SubnetId = None
|
|
632
760
|
self.SecurityGroupId = None
|
|
633
761
|
self.PrivateIpAddress = None
|
|
634
|
-
self.SecurityGroupIds = None
|
|
635
|
-
self.VpcIpv6 = None
|
|
636
762
|
self.MacAddress = None
|
|
637
763
|
|
|
638
764
|
def _deserialize(self, params):
|
|
@@ -646,10 +772,6 @@ class AttachNetworkInterfaceRequest(AbstractModel):
|
|
|
646
772
|
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
647
773
|
if params.get("PrivateIpAddress"):
|
|
648
774
|
self.PrivateIpAddress = params.get("PrivateIpAddress")
|
|
649
|
-
if params.get("SecurityGroupIds"):
|
|
650
|
-
self.SecurityGroupIds = params.get("SecurityGroupIds")
|
|
651
|
-
if params.get("VpcIpv6"):
|
|
652
|
-
self.VpcIpv6 = params.get("VpcIpv6")
|
|
653
775
|
if params.get("MacAddress"):
|
|
654
776
|
self.MacAddress = params.get("MacAddress")
|
|
655
777
|
|
|
@@ -683,12 +805,57 @@ class DescribeLocalVolumesRequest(AbstractModel):
|
|
|
683
805
|
r"""查询本地盘信息
|
|
684
806
|
:param InstanceName: 实例名字
|
|
685
807
|
:type PathPrefix: String
|
|
808
|
+
:param Marker: 页数
|
|
809
|
+
:type PathPrefix: Int
|
|
810
|
+
:param MaxResults: 每页最大条数
|
|
811
|
+
:type PathPrefix: Int
|
|
812
|
+
:param LocalVolumeId: 本地盘id
|
|
813
|
+
:type PathPrefix: String
|
|
814
|
+
:param InstanceState: 主机状态
|
|
815
|
+
:type PathPrefix: String
|
|
816
|
+
:param LocalVolumeCategory: root/data 磁盘的类型: 系统盘/ 数据盘
|
|
817
|
+
:type PathPrefix: String
|
|
818
|
+
:param LocalVolumeSize: 查询大于等于多少G的磁盘
|
|
819
|
+
:type PathPrefix: Int
|
|
820
|
+
:param BindSnapshotPolicy: 硬盘是否绑定了备份策略
|
|
821
|
+
:type PathPrefix: Boolean
|
|
822
|
+
:param AutoSnapshotPolicyId: 策略ID
|
|
823
|
+
:type PathPrefix: String
|
|
824
|
+
:param InstanceId: 实例id
|
|
825
|
+
:type PathPrefix: String
|
|
686
826
|
"""
|
|
687
827
|
self.InstanceName = None
|
|
828
|
+
self.Marker = None
|
|
829
|
+
self.MaxResults = None
|
|
830
|
+
self.LocalVolumeId = None
|
|
831
|
+
self.InstanceState = None
|
|
832
|
+
self.LocalVolumeCategory = None
|
|
833
|
+
self.LocalVolumeSize = None
|
|
834
|
+
self.BindSnapshotPolicy = None
|
|
835
|
+
self.AutoSnapshotPolicyId = None
|
|
836
|
+
self.InstanceId = None
|
|
688
837
|
|
|
689
838
|
def _deserialize(self, params):
|
|
690
839
|
if params.get("InstanceName"):
|
|
691
840
|
self.InstanceName = params.get("InstanceName")
|
|
841
|
+
if params.get("Marker"):
|
|
842
|
+
self.Marker = params.get("Marker")
|
|
843
|
+
if params.get("MaxResults"):
|
|
844
|
+
self.MaxResults = params.get("MaxResults")
|
|
845
|
+
if params.get("LocalVolumeId"):
|
|
846
|
+
self.LocalVolumeId = params.get("LocalVolumeId")
|
|
847
|
+
if params.get("InstanceState"):
|
|
848
|
+
self.InstanceState = params.get("InstanceState")
|
|
849
|
+
if params.get("LocalVolumeCategory"):
|
|
850
|
+
self.LocalVolumeCategory = params.get("LocalVolumeCategory")
|
|
851
|
+
if params.get("LocalVolumeSize"):
|
|
852
|
+
self.LocalVolumeSize = params.get("LocalVolumeSize")
|
|
853
|
+
if params.get("BindSnapshotPolicy"):
|
|
854
|
+
self.BindSnapshotPolicy = params.get("BindSnapshotPolicy")
|
|
855
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
856
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
857
|
+
if params.get("InstanceId"):
|
|
858
|
+
self.InstanceId = params.get("InstanceId")
|
|
692
859
|
|
|
693
860
|
|
|
694
861
|
class CreateLocalVolumeSnapshotRequest(AbstractModel):
|
|
@@ -703,10 +870,13 @@ class CreateLocalVolumeSnapshotRequest(AbstractModel):
|
|
|
703
870
|
:type PathPrefix: String
|
|
704
871
|
:param LocalVolumeSnapshotDesc: 快照详情描述。
|
|
705
872
|
:type PathPrefix: String
|
|
873
|
+
:param InstantAccess: 支持快速开盘/快速变更,该参数仅对本地盘/本地盘机型/本地盘快照生效
|
|
874
|
+
:type PathPrefix: Boolean
|
|
706
875
|
"""
|
|
707
876
|
self.LocalVolumeId = None
|
|
708
877
|
self.LocalVolumeSnapshotName = None
|
|
709
878
|
self.LocalVolumeSnapshotDesc = None
|
|
879
|
+
self.InstantAccess = None
|
|
710
880
|
|
|
711
881
|
def _deserialize(self, params):
|
|
712
882
|
if params.get("LocalVolumeId"):
|
|
@@ -715,6 +885,8 @@ class CreateLocalVolumeSnapshotRequest(AbstractModel):
|
|
|
715
885
|
self.LocalVolumeSnapshotName = params.get("LocalVolumeSnapshotName")
|
|
716
886
|
if params.get("LocalVolumeSnapshotDesc"):
|
|
717
887
|
self.LocalVolumeSnapshotDesc = params.get("LocalVolumeSnapshotDesc")
|
|
888
|
+
if params.get("InstantAccess"):
|
|
889
|
+
self.InstantAccess = params.get("InstantAccess")
|
|
718
890
|
|
|
719
891
|
|
|
720
892
|
class DescribeLocalVolumeSnapshotsRequest(AbstractModel):
|
|
@@ -913,6 +1085,15 @@ class CreateDedicatedHostsRequest(AbstractModel):
|
|
|
913
1085
|
:type PathPrefix: String
|
|
914
1086
|
:param Tag: 创建的专属宿主机的标签键,N取值范围1~10。若填写了Tag.N.Value,Tag.N.Key为必填,且两个参数的N值需保持一致
|
|
915
1087
|
:type PathPrefix: Filter
|
|
1088
|
+
:param AvailabilityZone: 可用区
|
|
1089
|
+
:type PathPrefix: String
|
|
1090
|
+
:param ProjectId: 项目制ID
|
|
1091
|
+
:type PathPrefix: Long
|
|
1092
|
+
:param EbsClusterMode: 存储集群模式
|
|
1093
|
+
Mixed:混合模式;
|
|
1094
|
+
Public:公共集群;
|
|
1095
|
+
Exclusive:专属块存储集群
|
|
1096
|
+
:type PathPrefix: String
|
|
916
1097
|
"""
|
|
917
1098
|
self.DedicatedType = None
|
|
918
1099
|
self.Number = None
|
|
@@ -922,6 +1103,9 @@ class CreateDedicatedHostsRequest(AbstractModel):
|
|
|
922
1103
|
self.InstanceNameSuffix = None
|
|
923
1104
|
self.DedicatedClusterId = None
|
|
924
1105
|
self.Tag = None
|
|
1106
|
+
self.AvailabilityZone = None
|
|
1107
|
+
self.ProjectId = None
|
|
1108
|
+
self.EbsClusterMode = None
|
|
925
1109
|
|
|
926
1110
|
def _deserialize(self, params):
|
|
927
1111
|
if params.get("DedicatedType"):
|
|
@@ -940,27 +1124,33 @@ class CreateDedicatedHostsRequest(AbstractModel):
|
|
|
940
1124
|
self.DedicatedClusterId = params.get("DedicatedClusterId")
|
|
941
1125
|
if params.get("Tag"):
|
|
942
1126
|
self.Tag = params.get("Tag")
|
|
1127
|
+
if params.get("AvailabilityZone"):
|
|
1128
|
+
self.AvailabilityZone = params.get("AvailabilityZone")
|
|
1129
|
+
if params.get("ProjectId"):
|
|
1130
|
+
self.ProjectId = params.get("ProjectId")
|
|
1131
|
+
if params.get("EbsClusterMode"):
|
|
1132
|
+
self.EbsClusterMode = params.get("EbsClusterMode")
|
|
943
1133
|
|
|
944
1134
|
|
|
945
|
-
class
|
|
946
|
-
"""
|
|
1135
|
+
class DeleteDedicatedHostRequest(AbstractModel):
|
|
1136
|
+
"""DeleteDedicatedHost请求参数结构体
|
|
947
1137
|
"""
|
|
948
1138
|
|
|
949
1139
|
def __init__(self):
|
|
950
|
-
r"""
|
|
1140
|
+
r"""删除专属宿主机
|
|
951
1141
|
:param DedicatedHostId: 专属宿主机id
|
|
952
|
-
:type PathPrefix:
|
|
953
|
-
:param
|
|
954
|
-
:type PathPrefix:
|
|
1142
|
+
:type PathPrefix: Filter
|
|
1143
|
+
:param IsRefund: 是否退订(默认true)
|
|
1144
|
+
:type PathPrefix: Boolean
|
|
955
1145
|
"""
|
|
956
1146
|
self.DedicatedHostId = None
|
|
957
|
-
self.
|
|
1147
|
+
self.IsRefund = None
|
|
958
1148
|
|
|
959
1149
|
def _deserialize(self, params):
|
|
960
1150
|
if params.get("DedicatedHostId"):
|
|
961
1151
|
self.DedicatedHostId = params.get("DedicatedHostId")
|
|
962
|
-
if params.get("
|
|
963
|
-
self.
|
|
1152
|
+
if params.get("IsRefund"):
|
|
1153
|
+
self.IsRefund = params.get("IsRefund")
|
|
964
1154
|
|
|
965
1155
|
|
|
966
1156
|
class DescribeDedicatedHostsRequest(AbstractModel):
|
|
@@ -989,6 +1179,162 @@ class DescribeDedicatedHostsRequest(AbstractModel):
|
|
|
989
1179
|
self.ProjectId = params.get("ProjectId")
|
|
990
1180
|
|
|
991
1181
|
|
|
1182
|
+
class CreateAutoSnapshotPolicyRequest(AbstractModel):
|
|
1183
|
+
"""CreateAutoSnapshotPolicy请求参数结构体
|
|
1184
|
+
"""
|
|
1185
|
+
|
|
1186
|
+
def __init__(self):
|
|
1187
|
+
r"""创建自动快照策略
|
|
1188
|
+
:param AutoSnapshotPolicyName: 自动快照策略名称,2-64个字符,支持中文、字母、数字以及-_@#.字符
|
|
1189
|
+
:type PathPrefix: String
|
|
1190
|
+
:param AutoSnapshotTime: 快照创建时间
|
|
1191
|
+
:type PathPrefix: String
|
|
1192
|
+
:param AutoSnapshotDate: 自动快照重复时间,选定周一到周日中需要创建快照的日期,参数为 1 ~ 7 的数字
|
|
1193
|
+
:type PathPrefix: Filter
|
|
1194
|
+
:param SnapshotType: 快照类型 LocalSnapshot(极速可用快照)、CommonSnapshot(普通快照)
|
|
1195
|
+
:type PathPrefix: String
|
|
1196
|
+
:param RetentionTime: 自动快照保留时长
|
|
1197
|
+
:type PathPrefix: Int
|
|
1198
|
+
"""
|
|
1199
|
+
self.AutoSnapshotPolicyName = None
|
|
1200
|
+
self.AutoSnapshotTime = None
|
|
1201
|
+
self.AutoSnapshotDate = None
|
|
1202
|
+
self.SnapshotType = None
|
|
1203
|
+
self.RetentionTime = None
|
|
1204
|
+
|
|
1205
|
+
def _deserialize(self, params):
|
|
1206
|
+
if params.get("AutoSnapshotPolicyName"):
|
|
1207
|
+
self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
|
|
1208
|
+
if params.get("AutoSnapshotTime"):
|
|
1209
|
+
self.AutoSnapshotTime = params.get("AutoSnapshotTime")
|
|
1210
|
+
if params.get("AutoSnapshotDate"):
|
|
1211
|
+
self.AutoSnapshotDate = params.get("AutoSnapshotDate")
|
|
1212
|
+
if params.get("SnapshotType"):
|
|
1213
|
+
self.SnapshotType = params.get("SnapshotType")
|
|
1214
|
+
if params.get("RetentionTime"):
|
|
1215
|
+
self.RetentionTime = params.get("RetentionTime")
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
class DeleteAutoSnapshotPolicyRequest(AbstractModel):
|
|
1219
|
+
"""DeleteAutoSnapshotPolicy请求参数结构体
|
|
1220
|
+
"""
|
|
1221
|
+
|
|
1222
|
+
def __init__(self):
|
|
1223
|
+
r"""删除自动快照策略
|
|
1224
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID
|
|
1225
|
+
:type PathPrefix: Filter
|
|
1226
|
+
"""
|
|
1227
|
+
self.AutoSnapshotPolicyId = None
|
|
1228
|
+
|
|
1229
|
+
def _deserialize(self, params):
|
|
1230
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
1231
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
class ModifyAutoSnapshotPolicyRequest(AbstractModel):
|
|
1235
|
+
"""ModifyAutoSnapshotPolicy请求参数结构体
|
|
1236
|
+
"""
|
|
1237
|
+
|
|
1238
|
+
def __init__(self):
|
|
1239
|
+
r"""修改自动快照策略
|
|
1240
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID
|
|
1241
|
+
:type PathPrefix: String
|
|
1242
|
+
:param AutoSnapshotPolicyName: 自动快照策略名称,2-64个字符,支持中文、字母、数字以及-_@#.字符
|
|
1243
|
+
:type PathPrefix: String
|
|
1244
|
+
:param AutoSnapshotTime: 快照创建时间
|
|
1245
|
+
:type PathPrefix: String
|
|
1246
|
+
:param AutoSnapshotDate: 自动快照重复时间,选定周一到周日中需要创建快照的日期,参数为 1 ~ 7 的数字
|
|
1247
|
+
:type PathPrefix: Filter
|
|
1248
|
+
:param SnapshotType: 快照类型 LocalSnapshot(极速可用快照)、CommonSnapshot(普通快照)
|
|
1249
|
+
:type PathPrefix: String
|
|
1250
|
+
:param RetentionTime: 自动快照保留时长
|
|
1251
|
+
:type PathPrefix: Int
|
|
1252
|
+
"""
|
|
1253
|
+
self.AutoSnapshotPolicyId = None
|
|
1254
|
+
self.AutoSnapshotPolicyName = None
|
|
1255
|
+
self.AutoSnapshotTime = None
|
|
1256
|
+
self.AutoSnapshotDate = None
|
|
1257
|
+
self.SnapshotType = None
|
|
1258
|
+
self.RetentionTime = None
|
|
1259
|
+
|
|
1260
|
+
def _deserialize(self, params):
|
|
1261
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
1262
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
1263
|
+
if params.get("AutoSnapshotPolicyName"):
|
|
1264
|
+
self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
|
|
1265
|
+
if params.get("AutoSnapshotTime"):
|
|
1266
|
+
self.AutoSnapshotTime = params.get("AutoSnapshotTime")
|
|
1267
|
+
if params.get("AutoSnapshotDate"):
|
|
1268
|
+
self.AutoSnapshotDate = params.get("AutoSnapshotDate")
|
|
1269
|
+
if params.get("SnapshotType"):
|
|
1270
|
+
self.SnapshotType = params.get("SnapshotType")
|
|
1271
|
+
if params.get("RetentionTime"):
|
|
1272
|
+
self.RetentionTime = params.get("RetentionTime")
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
class DescribeAutoSnapshotPolicyRequest(AbstractModel):
|
|
1276
|
+
"""DescribeAutoSnapshotPolicy请求参数结构体
|
|
1277
|
+
"""
|
|
1278
|
+
|
|
1279
|
+
def __init__(self):
|
|
1280
|
+
r"""查询自动快照策略
|
|
1281
|
+
:param AutoSnapshotPolicyName: 自动快照策略名称
|
|
1282
|
+
:type PathPrefix: String
|
|
1283
|
+
:param AutoSnapshotPolicyId: 快照策略id
|
|
1284
|
+
:type PathPrefix: Filter
|
|
1285
|
+
"""
|
|
1286
|
+
self.AutoSnapshotPolicyName = None
|
|
1287
|
+
self.AutoSnapshotPolicyId = None
|
|
1288
|
+
|
|
1289
|
+
def _deserialize(self, params):
|
|
1290
|
+
if params.get("AutoSnapshotPolicyName"):
|
|
1291
|
+
self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
|
|
1292
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
1293
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
class ApplyAutoSnapshotPolicyRequest(AbstractModel):
|
|
1297
|
+
"""ApplyAutoSnapshotPolicy请求参数结构体
|
|
1298
|
+
"""
|
|
1299
|
+
|
|
1300
|
+
def __init__(self):
|
|
1301
|
+
r"""执行自动快照策略
|
|
1302
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID
|
|
1303
|
+
:type PathPrefix: String
|
|
1304
|
+
:param AttachVolumeId: 绑定的硬盘ID,支持多个硬盘ID
|
|
1305
|
+
:type PathPrefix: Filter
|
|
1306
|
+
"""
|
|
1307
|
+
self.AutoSnapshotPolicyId = None
|
|
1308
|
+
self.AttachVolumeId = None
|
|
1309
|
+
|
|
1310
|
+
def _deserialize(self, params):
|
|
1311
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
1312
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
1313
|
+
if params.get("AttachVolumeId"):
|
|
1314
|
+
self.AttachVolumeId = params.get("AttachVolumeId")
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
class CancelAutoSnapshotPolicyRequest(AbstractModel):
|
|
1318
|
+
"""CancelAutoSnapshotPolicy请求参数结构体
|
|
1319
|
+
"""
|
|
1320
|
+
|
|
1321
|
+
def __init__(self):
|
|
1322
|
+
r"""消执行自动快照策略
|
|
1323
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID
|
|
1324
|
+
:type PathPrefix: String
|
|
1325
|
+
:param AttachVolumeId: 待解绑的硬盘ID
|
|
1326
|
+
:type PathPrefix: Filter
|
|
1327
|
+
"""
|
|
1328
|
+
self.AutoSnapshotPolicyId = None
|
|
1329
|
+
self.AttachVolumeId = None
|
|
1330
|
+
|
|
1331
|
+
def _deserialize(self, params):
|
|
1332
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
1333
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
1334
|
+
if params.get("AttachVolumeId"):
|
|
1335
|
+
self.AttachVolumeId = params.get("AttachVolumeId")
|
|
1336
|
+
|
|
1337
|
+
|
|
992
1338
|
class DescribeScalingConfigurationRequest(AbstractModel):
|
|
993
1339
|
"""DescribeScalingConfiguration请求参数结构体
|
|
994
1340
|
"""
|
|
@@ -1099,6 +1445,8 @@ class CreateScalingConfigurationRequest(AbstractModel):
|
|
|
1099
1445
|
:type PathPrefix: String
|
|
1100
1446
|
:param SystemDisk.ResizeType: 扩容 offline 离线扩容| online 在线扩容
|
|
1101
1447
|
:type PathPrefix: String
|
|
1448
|
+
:param SyncTag: 是否同步ebs标签
|
|
1449
|
+
:type PathPrefix: Boolean
|
|
1102
1450
|
"""
|
|
1103
1451
|
self.ScalingConfigurationName = None
|
|
1104
1452
|
self.ImageId = None
|
|
@@ -1110,7 +1458,7 @@ class CreateScalingConfigurationRequest(AbstractModel):
|
|
|
1110
1458
|
self.KeepImageLogin = None
|
|
1111
1459
|
self.KeyId = None
|
|
1112
1460
|
self.DataDisk = None
|
|
1113
|
-
self.
|
|
1461
|
+
self.SystemDisk_DiskSize = None
|
|
1114
1462
|
self.AddressBandWidth = None
|
|
1115
1463
|
self.BandWidthShareId = None
|
|
1116
1464
|
self.LineId = None
|
|
@@ -1120,8 +1468,9 @@ class CreateScalingConfigurationRequest(AbstractModel):
|
|
|
1120
1468
|
self.UserData = None
|
|
1121
1469
|
self.InstanceNameTimeSuffix = None
|
|
1122
1470
|
self.Tag = None
|
|
1123
|
-
self.
|
|
1124
|
-
self.
|
|
1471
|
+
self.SystemDisk_DiskType = None
|
|
1472
|
+
self.SystemDisk_ResizeType = None
|
|
1473
|
+
self.SyncTag = None
|
|
1125
1474
|
|
|
1126
1475
|
def _deserialize(self, params):
|
|
1127
1476
|
if params.get("ScalingConfigurationName"):
|
|
@@ -1145,7 +1494,7 @@ class CreateScalingConfigurationRequest(AbstractModel):
|
|
|
1145
1494
|
if params.get("DataDisk"):
|
|
1146
1495
|
self.DataDisk = params.get("DataDisk")
|
|
1147
1496
|
if params.get("SystemDisk.DiskSize"):
|
|
1148
|
-
self.
|
|
1497
|
+
self.SystemDisk_DiskSize = params.get("SystemDisk.DiskSize")
|
|
1149
1498
|
if params.get("AddressBandWidth"):
|
|
1150
1499
|
self.AddressBandWidth = params.get("AddressBandWidth")
|
|
1151
1500
|
if params.get("BandWidthShareId"):
|
|
@@ -1165,9 +1514,11 @@ class CreateScalingConfigurationRequest(AbstractModel):
|
|
|
1165
1514
|
if params.get("Tag"):
|
|
1166
1515
|
self.Tag = params.get("Tag")
|
|
1167
1516
|
if params.get("SystemDisk.DiskType"):
|
|
1168
|
-
self.
|
|
1517
|
+
self.SystemDisk_DiskType = params.get("SystemDisk.DiskType")
|
|
1169
1518
|
if params.get("SystemDisk.ResizeType"):
|
|
1170
|
-
self.
|
|
1519
|
+
self.SystemDisk_ResizeType = params.get("SystemDisk.ResizeType")
|
|
1520
|
+
if params.get("SyncTag"):
|
|
1521
|
+
self.SyncTag = params.get("SyncTag")
|
|
1171
1522
|
|
|
1172
1523
|
|
|
1173
1524
|
class DeleteScalingConfigurationRequest(AbstractModel):
|
|
@@ -1261,7 +1612,7 @@ class DescribeScalingGroupRequest(AbstractModel):
|
|
|
1261
1612
|
:param ScalingGroupId: 待查询的各伸缩组组成的数组数组下标从0开始
|
|
1262
1613
|
|
|
1263
1614
|
:type PathPrefix: Filter
|
|
1264
|
-
:param ScalingGroupName: 待查询的伸缩组名称
|
|
1615
|
+
:param ScalingGroupName: 待查询的伸缩组名称 模糊查询
|
|
1265
1616
|
|
|
1266
1617
|
:type PathPrefix: String
|
|
1267
1618
|
:param ScalingConfigurationId: 待查询的伸缩组所使用的启动配置ID
|
|
@@ -1819,7 +2170,7 @@ class CreateScalingPolicyRequest(AbstractModel):
|
|
|
1819
2170
|
"""
|
|
1820
2171
|
|
|
1821
2172
|
def __init__(self):
|
|
1822
|
-
r"""
|
|
2173
|
+
r"""创建自定义策略
|
|
1823
2174
|
:param ScalingGroupId: 要创建告警触发策略的伸缩组Id
|
|
1824
2175
|
:type PathPrefix: String
|
|
1825
2176
|
:param ScalingPolicyName: 用户自定义的告警策略名称
|
|
@@ -1860,7 +2211,7 @@ class DescribeScalingPolicyRequest(AbstractModel):
|
|
|
1860
2211
|
"""
|
|
1861
2212
|
|
|
1862
2213
|
def __init__(self):
|
|
1863
|
-
r"""
|
|
2214
|
+
r"""查询自定义策略
|
|
1864
2215
|
:param ScalingGroupId: 伸缩组ID,表示待查询告警触发策略所在的伸缩组ID
|
|
1865
2216
|
:type PathPrefix: String
|
|
1866
2217
|
:param ScalingPolicyId: 待查询的告警触发策略ID数组,数组下标从0开始
|
|
@@ -1896,7 +2247,7 @@ class ModifyScalingPolicyRequest(AbstractModel):
|
|
|
1896
2247
|
"""
|
|
1897
2248
|
|
|
1898
2249
|
def __init__(self):
|
|
1899
|
-
r"""
|
|
2250
|
+
r"""修改自定义策略
|
|
1900
2251
|
:param ScalingPolicyId: 要修改的告警触发策略Id
|
|
1901
2252
|
|
|
1902
2253
|
:type PathPrefix: String
|
|
@@ -1943,7 +2294,7 @@ class DeleteScalingPolicyRequest(AbstractModel):
|
|
|
1943
2294
|
"""
|
|
1944
2295
|
|
|
1945
2296
|
def __init__(self):
|
|
1946
|
-
r"""
|
|
2297
|
+
r"""删除自定义策略
|
|
1947
2298
|
:param ScalingGroupId: 伸缩组Id,表示待删除告警策略所在的伸缩组
|
|
1948
2299
|
:type PathPrefix: String
|
|
1949
2300
|
:param ScalingPolicyId: 告警触发策略Id,待删除的告警触发策略Id
|
|
@@ -1964,7 +2315,7 @@ class ImportImageRequest(AbstractModel):
|
|
|
1964
2315
|
"""
|
|
1965
2316
|
|
|
1966
2317
|
def __init__(self):
|
|
1967
|
-
r"""
|
|
2318
|
+
r"""镜像导入接口
|
|
1968
2319
|
:param ImageName: 镜像名称。
|
|
1969
2320
|
2-64个字符,支持中文、字母、数字以及-_@#.字符
|
|
1970
2321
|
:type PathPrefix: String
|
|
@@ -1974,7 +2325,7 @@ i386,x86_64
|
|
|
1974
2325
|
:param Platform: 操作系统版本。
|
|
1975
2326
|
centos:centos-5<br>centos-6<br>centos-7 <br>redhat:redhat-5<br>redhat-6<br>redhat7 <br>ubuntu:ubuntu-12<br>ubuntu-14<br>ubuntu-16 <br>debian:debian8/debian9 <br>fedora:fedora-20 <br>other linux:other-linux <br>windows:windows-/server_2012_r2_datacenter_64_zh<br>windows-server_2012_r2_datacenter_64_en<br>windows-server_2008_r2_datacenter_64_zh<br>windows-server_2008_r2_datacenter_64_en
|
|
1976
2327
|
:type PathPrefix: String
|
|
1977
|
-
:param ImageUrl: 存放镜像的ks3对应的bucket地址。[如何开通ks3?](https://docs.ksyun.com/documents/858)[如何获取bucket地址?](https://docs.ksyun.com/documents/
|
|
2328
|
+
:param ImageUrl: 存放镜像的ks3对应的bucket地址。[如何开通ks3?](https://docs.ksyun.com/documents/858)[如何获取bucket地址?](https://docs.ksyun.com/documents/27937?type=3)
|
|
1978
2329
|
http开头,有效的bucket地址
|
|
1979
2330
|
:type PathPrefix: String
|
|
1980
2331
|
:param ImageFormat: 选择上传的镜像格式。
|
|
@@ -2023,7 +2374,7 @@ class CopyImageRequest(AbstractModel):
|
|
|
2023
2374
|
"""
|
|
2024
2375
|
|
|
2025
2376
|
def __init__(self):
|
|
2026
|
-
r"""
|
|
2377
|
+
r"""镜像复制接口
|
|
2027
2378
|
:param ImageId: 源自定义镜像的ID列表。
|
|
2028
2379
|
cc27b87a-b74c-4da8-93b0-33edce5399cf
|
|
2029
2380
|
:type PathPrefix: Filter
|
|
@@ -2179,10 +2530,18 @@ class DescribeInstanceTypeConfigsRequest(AbstractModel):
|
|
|
2179
2530
|
|
|
2180
2531
|
def __init__(self):
|
|
2181
2532
|
r"""查询机型套餐配置信息
|
|
2533
|
+
:param Filter:
|
|
2534
|
+
支持如下过滤器名称
|
|
2535
|
+
instance-family 实例族
|
|
2536
|
+
instance-type 实例类型
|
|
2537
|
+
availability-zone 可用区
|
|
2538
|
+
:type PathPrefix: Filter
|
|
2182
2539
|
"""
|
|
2540
|
+
self.Filter = None
|
|
2183
2541
|
|
|
2184
2542
|
def _deserialize(self, params):
|
|
2185
|
-
|
|
2543
|
+
if params.get("Filter"):
|
|
2544
|
+
self.Filter = params.get("Filter")
|
|
2186
2545
|
|
|
2187
2546
|
|
|
2188
2547
|
class DescribeInstanceFamilysRequest(AbstractModel):
|
|
@@ -2234,12 +2593,36 @@ class CreateFileSystemRequest(AbstractModel):
|
|
|
2234
2593
|
:type PathPrefix: String
|
|
2235
2594
|
:param FileSystemName: 文件系统名称,有效值:长度2-64字符,支持中文,字母,数字,以及-_;
|
|
2236
2595
|
:type PathPrefix: String
|
|
2596
|
+
:param ProjectId: 项目制id
|
|
2597
|
+
:type PathPrefix: Long
|
|
2598
|
+
:param IsTrashEnable: • 回收站功能是否开启,默认不开启
|
|
2599
|
+
◦ TRUE :表示回收站功能开启
|
|
2600
|
+
◦ FALSE:表示回收站功能不开启
|
|
2601
|
+
:type PathPrefix: Boolean
|
|
2602
|
+
:param IsTrashVisible: • 回收站目录是否可见,默认不可见
|
|
2603
|
+
◦ TRUE :表示回收站目录可见
|
|
2604
|
+
◦ FALSE:表示回收站目录不可见
|
|
2605
|
+
:type PathPrefix: Boolean
|
|
2606
|
+
:param IntervalTrash: • 回收站内数据保留时长,默认1天
|
|
2607
|
+
◦ 0:表示“永久保留”,不自动删除。
|
|
2608
|
+
◦ 1:表示“固定周期保留”,取值范围:
|
|
2609
|
+
▪ 天:[1, 180]
|
|
2610
|
+
:type PathPrefix: Int
|
|
2611
|
+
:param RecycleOpPermission: • 可以选择操作回收站内文件的用户权限,默认“普通用户”
|
|
2612
|
+
◦ 0:表示“root用户”,只有root用户具有操作所有用户目录的权限
|
|
2613
|
+
◦ 1:表示“普通用户”,系统根据用户名和用户ID为每个用户创建自己的目录,用户有操作个人目录下文件的权限
|
|
2614
|
+
:type PathPrefix: Int
|
|
2237
2615
|
"""
|
|
2238
2616
|
self.AvailabilityZone = None
|
|
2239
2617
|
self.VpcId = None
|
|
2240
2618
|
self.StorageType = None
|
|
2241
2619
|
self.ProtocolType = None
|
|
2242
2620
|
self.FileSystemName = None
|
|
2621
|
+
self.ProjectId = None
|
|
2622
|
+
self.IsTrashEnable = None
|
|
2623
|
+
self.IsTrashVisible = None
|
|
2624
|
+
self.IntervalTrash = None
|
|
2625
|
+
self.RecycleOpPermission = None
|
|
2243
2626
|
|
|
2244
2627
|
def _deserialize(self, params):
|
|
2245
2628
|
if params.get("AvailabilityZone"):
|
|
@@ -2252,6 +2635,16 @@ class CreateFileSystemRequest(AbstractModel):
|
|
|
2252
2635
|
self.ProtocolType = params.get("ProtocolType")
|
|
2253
2636
|
if params.get("FileSystemName"):
|
|
2254
2637
|
self.FileSystemName = params.get("FileSystemName")
|
|
2638
|
+
if params.get("ProjectId"):
|
|
2639
|
+
self.ProjectId = params.get("ProjectId")
|
|
2640
|
+
if params.get("IsTrashEnable"):
|
|
2641
|
+
self.IsTrashEnable = params.get("IsTrashEnable")
|
|
2642
|
+
if params.get("IsTrashVisible"):
|
|
2643
|
+
self.IsTrashVisible = params.get("IsTrashVisible")
|
|
2644
|
+
if params.get("IntervalTrash"):
|
|
2645
|
+
self.IntervalTrash = params.get("IntervalTrash")
|
|
2646
|
+
if params.get("RecycleOpPermission"):
|
|
2647
|
+
self.RecycleOpPermission = params.get("RecycleOpPermission")
|
|
2255
2648
|
|
|
2256
2649
|
|
|
2257
2650
|
class DeleteFileSystemRequest(AbstractModel):
|
|
@@ -2277,15 +2670,24 @@ class DescribeFileSystemsRequest(AbstractModel):
|
|
|
2277
2670
|
def __init__(self):
|
|
2278
2671
|
r"""查询文件系统信息
|
|
2279
2672
|
:param FileSystemId: 预查看的文件系统ID
|
|
2280
|
-
:type PathPrefix:
|
|
2673
|
+
:type PathPrefix: Filter
|
|
2281
2674
|
:param MaxResults: 单次调用所返回的最大实例数目,取值为5~1000,超过1000记为1000
|
|
2282
2675
|
:type PathPrefix: Int
|
|
2283
2676
|
:param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0
|
|
2284
2677
|
:type PathPrefix: Int
|
|
2678
|
+
:param ProjectId: 项目制id,默认为0
|
|
2679
|
+
:type PathPrefix: Filter
|
|
2680
|
+
:param IncludeDel: 是否包含删除的,默认为false
|
|
2681
|
+
:type PathPrefix: Boolean
|
|
2682
|
+
:param Filter: 可查询file-system-name和ip-address
|
|
2683
|
+
:type PathPrefix: Filter
|
|
2285
2684
|
"""
|
|
2286
2685
|
self.FileSystemId = None
|
|
2287
2686
|
self.MaxResults = None
|
|
2288
2687
|
self.Marker = None
|
|
2688
|
+
self.ProjectId = None
|
|
2689
|
+
self.IncludeDel = None
|
|
2690
|
+
self.Filter = None
|
|
2289
2691
|
|
|
2290
2692
|
def _deserialize(self, params):
|
|
2291
2693
|
if params.get("FileSystemId"):
|
|
@@ -2294,6 +2696,12 @@ class DescribeFileSystemsRequest(AbstractModel):
|
|
|
2294
2696
|
self.MaxResults = params.get("MaxResults")
|
|
2295
2697
|
if params.get("Marker"):
|
|
2296
2698
|
self.Marker = params.get("Marker")
|
|
2699
|
+
if params.get("ProjectId"):
|
|
2700
|
+
self.ProjectId = params.get("ProjectId")
|
|
2701
|
+
if params.get("IncludeDel"):
|
|
2702
|
+
self.IncludeDel = params.get("IncludeDel")
|
|
2703
|
+
if params.get("Filter"):
|
|
2704
|
+
self.Filter = params.get("Filter")
|
|
2297
2705
|
|
|
2298
2706
|
|
|
2299
2707
|
class ModifyFileSystemRequest(AbstractModel):
|
|
@@ -2329,10 +2737,13 @@ class CreateMountTargetRequest(AbstractModel):
|
|
|
2329
2737
|
:type PathPrefix: String
|
|
2330
2738
|
:param IpVersion: 取值为【ipv4,ipv6】,默认为 ipv4,如果选择了不支持ipv6的VPC且ip version选择 ipv6则报错
|
|
2331
2739
|
:type PathPrefix: String
|
|
2740
|
+
:param AccessGroupId: 权限组ID
|
|
2741
|
+
:type PathPrefix: String
|
|
2332
2742
|
"""
|
|
2333
2743
|
self.FileSystemId = None
|
|
2334
2744
|
self.SubnetId = None
|
|
2335
2745
|
self.IpVersion = None
|
|
2746
|
+
self.AccessGroupId = None
|
|
2336
2747
|
|
|
2337
2748
|
def _deserialize(self, params):
|
|
2338
2749
|
if params.get("FileSystemId"):
|
|
@@ -2341,6 +2752,8 @@ class CreateMountTargetRequest(AbstractModel):
|
|
|
2341
2752
|
self.SubnetId = params.get("SubnetId")
|
|
2342
2753
|
if params.get("IpVersion"):
|
|
2343
2754
|
self.IpVersion = params.get("IpVersion")
|
|
2755
|
+
if params.get("AccessGroupId"):
|
|
2756
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
2344
2757
|
|
|
2345
2758
|
|
|
2346
2759
|
class DeleteMountTargetRequest(AbstractModel):
|
|
@@ -2400,9 +2813,7 @@ class CreateModelRequest(AbstractModel):
|
|
|
2400
2813
|
标准UUID格式,形如`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`
|
|
2401
2814
|
:type PathPrefix: String
|
|
2402
2815
|
:param InstanceType: 实例套餐类型,如果调用时未指定实例套餐类型,默认值为I1.1A
|
|
2403
|
-
[
|
|
2404
|
-
:type PathPrefix: String
|
|
2405
|
-
:param SystemDisk.DiskSize: 系统盘内存大小,最小值为0,最大值为500
|
|
2816
|
+
实例套餐类型有效值具体套餐信息参考[实例套餐类型定义](https://docs.ksyun.com/documents/705)
|
|
2406
2817
|
:type PathPrefix: String
|
|
2407
2818
|
:param DataDiskGb: 数据卷容量,单位GB,容量限制依据[实例套餐类型定义](https://docs.ksyun.com/documents/705)变化,如果调用时未指定,则为相应实例套餐类型最小值。InstanceType为通用型主机时,此参数不生效。
|
|
2408
2819
|
:type PathPrefix: Int
|
|
@@ -2425,7 +2836,7 @@ Monthly(包年包月)、Daily(按量付费(按日月结))、 HourlyInsta
|
|
|
2425
2836
|
:type PathPrefix: Int
|
|
2426
2837
|
:param SecurityGroupId: 实例绑定的安全组,目前仅支持绑定一个安全组。
|
|
2427
2838
|
标准UUID格式,形如`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`
|
|
2428
|
-
:type PathPrefix:
|
|
2839
|
+
:type PathPrefix: Filter
|
|
2429
2840
|
:param PrivateIpAddress: 私有IP地址,指定子网IP地址范围内的任意有效值,代表实例的主IP地址,只能选择一个,绑定到主网卡;如果未指定该参数,系统自动从有效地址池中随机选取一个。
|
|
2430
2841
|
标准IP地址格式
|
|
2431
2842
|
:type PathPrefix: String
|
|
@@ -2439,7 +2850,7 @@ Monthly(包年包月)、Daily(按量付费(按日月结))、 HourlyInsta
|
|
|
2439
2850
|
:type PathPrefix: String
|
|
2440
2851
|
:param ProjectId: 实例所属项目ID
|
|
2441
2852
|
账户有权限的项目ID,0为默认项目,默认值为默认项目
|
|
2442
|
-
:type PathPrefix:
|
|
2853
|
+
:type PathPrefix: Long
|
|
2443
2854
|
:param DataGuardId: 容灾分组ID
|
|
2444
2855
|
:type PathPrefix: String
|
|
2445
2856
|
:param AddressBandWidth: 弹性IP的带宽
|
|
@@ -2456,14 +2867,40 @@ Monthly(包年包月)、Daily(按量付费(按日月结))、 HourlyInsta
|
|
|
2456
2867
|
:param ModelName: 实例启动模版名称,不允许重复
|
|
2457
2868
|
ModelTest001
|
|
2458
2869
|
:type PathPrefix: String
|
|
2459
|
-
:param
|
|
2870
|
+
:param FailureAutoDelete: 开机失败是否自动删除,默认值是false
|
|
2871
|
+
:type PathPrefix: Boolean
|
|
2872
|
+
:param SystemDisk:
|
|
2873
|
+
:type PathPrefix: Object
|
|
2874
|
+
:param HostName: 操作系统内部的计算机名
|
|
2460
2875
|
:type PathPrefix: String
|
|
2461
|
-
:param
|
|
2876
|
+
:param HostNameSuffix: 创建多台实例时为HostName增加有序后缀,有序后缀从1增加,例如host-1
|
|
2877
|
+
:type PathPrefix: String
|
|
2878
|
+
:param UserData: 用户自定义数据
|
|
2879
|
+
:type PathPrefix: String
|
|
2880
|
+
:param NetworkInterface:
|
|
2881
|
+
:type PathPrefix: Filter
|
|
2882
|
+
:param Tag:
|
|
2883
|
+
:type PathPrefix: Filter
|
|
2884
|
+
:param AllocateAddress: 购买EIP,true or false;传true即为购买EIP,下面关于EIP的参数生效;传false为稍后购买,下面的EIP参数不生效
|
|
2885
|
+
:type PathPrefix: Boolean
|
|
2886
|
+
:param IsDistributeIpv6: 是否支持ipV6
|
|
2887
|
+
|
|
2888
|
+
:type PathPrefix: Boolean
|
|
2889
|
+
:param Mem: 内存
|
|
2890
|
+
:type PathPrefix: String
|
|
2891
|
+
:param Cpu: cpu
|
|
2462
2892
|
:type PathPrefix: String
|
|
2893
|
+
:param IamRoleName: Iam角色名称
|
|
2894
|
+
:type PathPrefix: String
|
|
2895
|
+
:param AssembledImageDataDiskType: 整机镜像数据盘类型
|
|
2896
|
+
:type PathPrefix: String
|
|
2897
|
+
:param LocalVolumeSnapshotId: 本地盘快照id
|
|
2898
|
+
:type PathPrefix: String
|
|
2899
|
+
:param SyncTag: 是否同步ebs标签
|
|
2900
|
+
:type PathPrefix: Boolean
|
|
2463
2901
|
"""
|
|
2464
2902
|
self.ImageId = None
|
|
2465
2903
|
self.InstanceType = None
|
|
2466
|
-
self.SystemDisk.DiskSize = None
|
|
2467
2904
|
self.DataDiskGb = None
|
|
2468
2905
|
self.SubnetId = None
|
|
2469
2906
|
self.DataDisk = None
|
|
@@ -2484,16 +2921,27 @@ ModelTest001
|
|
|
2484
2921
|
self.AddressPurchaseTime = None
|
|
2485
2922
|
self.AddressProjectId = None
|
|
2486
2923
|
self.ModelName = None
|
|
2487
|
-
self.
|
|
2488
|
-
self.SystemDisk
|
|
2924
|
+
self.FailureAutoDelete = None
|
|
2925
|
+
self.SystemDisk = None
|
|
2926
|
+
self.HostName = None
|
|
2927
|
+
self.HostNameSuffix = None
|
|
2928
|
+
self.UserData = None
|
|
2929
|
+
self.NetworkInterface = None
|
|
2930
|
+
self.Tag = None
|
|
2931
|
+
self.AllocateAddress = None
|
|
2932
|
+
self.IsDistributeIpv6 = None
|
|
2933
|
+
self.Mem = None
|
|
2934
|
+
self.Cpu = None
|
|
2935
|
+
self.IamRoleName = None
|
|
2936
|
+
self.AssembledImageDataDiskType = None
|
|
2937
|
+
self.LocalVolumeSnapshotId = None
|
|
2938
|
+
self.SyncTag = None
|
|
2489
2939
|
|
|
2490
2940
|
def _deserialize(self, params):
|
|
2491
2941
|
if params.get("ImageId"):
|
|
2492
2942
|
self.ImageId = params.get("ImageId")
|
|
2493
2943
|
if params.get("InstanceType"):
|
|
2494
2944
|
self.InstanceType = params.get("InstanceType")
|
|
2495
|
-
if params.get("SystemDisk.DiskSize"):
|
|
2496
|
-
self.SystemDisk.DiskSize = params.get("SystemDisk.DiskSize")
|
|
2497
2945
|
if params.get("DataDiskGb"):
|
|
2498
2946
|
self.DataDiskGb = params.get("DataDiskGb")
|
|
2499
2947
|
if params.get("SubnetId"):
|
|
@@ -2534,26 +2982,57 @@ ModelTest001
|
|
|
2534
2982
|
self.AddressProjectId = params.get("AddressProjectId")
|
|
2535
2983
|
if params.get("ModelName"):
|
|
2536
2984
|
self.ModelName = params.get("ModelName")
|
|
2537
|
-
if params.get("
|
|
2538
|
-
self.
|
|
2539
|
-
if params.get("SystemDisk
|
|
2540
|
-
self.SystemDisk
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2985
|
+
if params.get("FailureAutoDelete"):
|
|
2986
|
+
self.FailureAutoDelete = params.get("FailureAutoDelete")
|
|
2987
|
+
if params.get("SystemDisk"):
|
|
2988
|
+
self.SystemDisk = params.get("SystemDisk")
|
|
2989
|
+
if params.get("HostName"):
|
|
2990
|
+
self.HostName = params.get("HostName")
|
|
2991
|
+
if params.get("HostNameSuffix"):
|
|
2992
|
+
self.HostNameSuffix = params.get("HostNameSuffix")
|
|
2993
|
+
if params.get("UserData"):
|
|
2994
|
+
self.UserData = params.get("UserData")
|
|
2995
|
+
if params.get("NetworkInterface"):
|
|
2996
|
+
self.NetworkInterface = params.get("NetworkInterface")
|
|
2997
|
+
if params.get("Tag"):
|
|
2998
|
+
self.Tag = params.get("Tag")
|
|
2999
|
+
if params.get("AllocateAddress"):
|
|
3000
|
+
self.AllocateAddress = params.get("AllocateAddress")
|
|
3001
|
+
if params.get("IsDistributeIpv6"):
|
|
3002
|
+
self.IsDistributeIpv6 = params.get("IsDistributeIpv6")
|
|
3003
|
+
if params.get("Mem"):
|
|
3004
|
+
self.Mem = params.get("Mem")
|
|
3005
|
+
if params.get("Cpu"):
|
|
3006
|
+
self.Cpu = params.get("Cpu")
|
|
3007
|
+
if params.get("IamRoleName"):
|
|
3008
|
+
self.IamRoleName = params.get("IamRoleName")
|
|
3009
|
+
if params.get("AssembledImageDataDiskType"):
|
|
3010
|
+
self.AssembledImageDataDiskType = params.get("AssembledImageDataDiskType")
|
|
3011
|
+
if params.get("LocalVolumeSnapshotId"):
|
|
3012
|
+
self.LocalVolumeSnapshotId = params.get("LocalVolumeSnapshotId")
|
|
3013
|
+
if params.get("SyncTag"):
|
|
3014
|
+
self.SyncTag = params.get("SyncTag")
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
class TerminateModelsRequest(AbstractModel):
|
|
3018
|
+
"""TerminateModels请求参数结构体
|
|
3019
|
+
"""
|
|
3020
|
+
|
|
3021
|
+
def __init__(self):
|
|
2548
3022
|
r"""删除实例启动模版
|
|
2549
|
-
:param ModelId:
|
|
2550
|
-
:type PathPrefix:
|
|
3023
|
+
:param ModelId: 只传ModelId删除模板以及模板下对应的版本
|
|
3024
|
+
:type PathPrefix: String
|
|
3025
|
+
:param ModelVersion: 传ModelId和ModelVersion,删除某个模板下的版本
|
|
3026
|
+
:type PathPrefix: Long
|
|
2551
3027
|
"""
|
|
2552
3028
|
self.ModelId = None
|
|
3029
|
+
self.ModelVersion = None
|
|
2553
3030
|
|
|
2554
3031
|
def _deserialize(self, params):
|
|
2555
3032
|
if params.get("ModelId"):
|
|
2556
3033
|
self.ModelId = params.get("ModelId")
|
|
3034
|
+
if params.get("ModelVersion"):
|
|
3035
|
+
self.ModelVersion = params.get("ModelVersion")
|
|
2557
3036
|
|
|
2558
3037
|
|
|
2559
3038
|
class DescribeModelsRequest(AbstractModel):
|
|
@@ -2603,7 +3082,7 @@ class CreateDedicatedClusterRequest(AbstractModel):
|
|
|
2603
3082
|
"""
|
|
2604
3083
|
|
|
2605
3084
|
def __init__(self):
|
|
2606
|
-
r"""
|
|
3085
|
+
r"""创建集群接口
|
|
2607
3086
|
:param DedicatedClusterName: 集群名称
|
|
2608
3087
|
:type PathPrefix: String
|
|
2609
3088
|
:param Model: 集群类型
|
|
@@ -2629,7 +3108,7 @@ class DeleteDedicatedClusterRequest(AbstractModel):
|
|
|
2629
3108
|
"""
|
|
2630
3109
|
|
|
2631
3110
|
def __init__(self):
|
|
2632
|
-
r"""
|
|
3111
|
+
r"""删除集群接口
|
|
2633
3112
|
:param DedicatedClusterId: 专属集群id列表
|
|
2634
3113
|
:type PathPrefix: Filter
|
|
2635
3114
|
"""
|
|
@@ -2703,6 +3182,37 @@ class ModifyDedicatedClusterNameRequest(AbstractModel):
|
|
|
2703
3182
|
self.DedicatedClusterName = params.get("DedicatedClusterName")
|
|
2704
3183
|
|
|
2705
3184
|
|
|
3185
|
+
class InstanceMigrateRequest(AbstractModel):
|
|
3186
|
+
"""InstanceMigrate请求参数结构体
|
|
3187
|
+
"""
|
|
3188
|
+
|
|
3189
|
+
def __init__(self):
|
|
3190
|
+
r"""专属虚机迁移
|
|
3191
|
+
:param DedicatedHostId: 专属宿主机id
|
|
3192
|
+
:type PathPrefix: String
|
|
3193
|
+
:param InstanceId: 虚拟机ID
|
|
3194
|
+
:type PathPrefix: String
|
|
3195
|
+
:param InstanceType: 套餐类型
|
|
3196
|
+
:type PathPrefix: String
|
|
3197
|
+
:param DataDisk: 数据盘id
|
|
3198
|
+
:type PathPrefix: Filter
|
|
3199
|
+
"""
|
|
3200
|
+
self.DedicatedHostId = None
|
|
3201
|
+
self.InstanceId = None
|
|
3202
|
+
self.InstanceType = None
|
|
3203
|
+
self.DataDisk = None
|
|
3204
|
+
|
|
3205
|
+
def _deserialize(self, params):
|
|
3206
|
+
if params.get("DedicatedHostId"):
|
|
3207
|
+
self.DedicatedHostId = params.get("DedicatedHostId")
|
|
3208
|
+
if params.get("InstanceId"):
|
|
3209
|
+
self.InstanceId = params.get("InstanceId")
|
|
3210
|
+
if params.get("InstanceType"):
|
|
3211
|
+
self.InstanceType = params.get("InstanceType")
|
|
3212
|
+
if params.get("DataDisk"):
|
|
3213
|
+
self.DataDisk = params.get("DataDisk")
|
|
3214
|
+
|
|
3215
|
+
|
|
2706
3216
|
class ModifyInstanceAutoDeleteTimeRequest(AbstractModel):
|
|
2707
3217
|
"""ModifyInstanceAutoDeleteTime请求参数结构体
|
|
2708
3218
|
"""
|
|
@@ -2729,6 +3239,27 @@ class ModifyInstanceAutoDeleteTimeRequest(AbstractModel):
|
|
|
2729
3239
|
self.AutoDeleteEip = params.get("AutoDeleteEip")
|
|
2730
3240
|
|
|
2731
3241
|
|
|
3242
|
+
class DescribeKecInventoryRequest(AbstractModel):
|
|
3243
|
+
"""DescribeKecInventory请求参数结构体
|
|
3244
|
+
"""
|
|
3245
|
+
|
|
3246
|
+
def __init__(self):
|
|
3247
|
+
r"""查询云主机库存
|
|
3248
|
+
:param InstanceType: 云服务器的实例规格。
|
|
3249
|
+
:type PathPrefix: String
|
|
3250
|
+
:param AvailabilityZone: 可用区。
|
|
3251
|
+
:type PathPrefix: String
|
|
3252
|
+
"""
|
|
3253
|
+
self.InstanceType = None
|
|
3254
|
+
self.AvailabilityZone = None
|
|
3255
|
+
|
|
3256
|
+
def _deserialize(self, params):
|
|
3257
|
+
if params.get("InstanceType"):
|
|
3258
|
+
self.InstanceType = params.get("InstanceType")
|
|
3259
|
+
if params.get("AvailabilityZone"):
|
|
3260
|
+
self.AvailabilityZone = params.get("AvailabilityZone")
|
|
3261
|
+
|
|
3262
|
+
|
|
2732
3263
|
class ModifyScalingConfigurationRequest(AbstractModel):
|
|
2733
3264
|
"""ModifyScalingConfiguration请求参数结构体
|
|
2734
3265
|
"""
|
|
@@ -2808,6 +3339,8 @@ class ModifyScalingConfigurationRequest(AbstractModel):
|
|
|
2808
3339
|
:type PathPrefix: String
|
|
2809
3340
|
:param SystemDisk.ResizeType: 扩容 offline 离线扩容| online 在线扩容
|
|
2810
3341
|
:type PathPrefix: String
|
|
3342
|
+
:param SyncTag: 是否同步ebs标签
|
|
3343
|
+
:type PathPrefix: Boolean
|
|
2811
3344
|
"""
|
|
2812
3345
|
self.ScalingConfigurationId = None
|
|
2813
3346
|
self.ScalingConfigurationName = None
|
|
@@ -2820,7 +3353,7 @@ class ModifyScalingConfigurationRequest(AbstractModel):
|
|
|
2820
3353
|
self.KeepImageLogin = None
|
|
2821
3354
|
self.KeyId = None
|
|
2822
3355
|
self.DataDisk = None
|
|
2823
|
-
self.
|
|
3356
|
+
self.SystemDisk_DiskSize = None
|
|
2824
3357
|
self.AddressBandWidth = None
|
|
2825
3358
|
self.BandWidthShareId = None
|
|
2826
3359
|
self.LineId = None
|
|
@@ -2833,8 +3366,9 @@ class ModifyScalingConfigurationRequest(AbstractModel):
|
|
|
2833
3366
|
self.LoginSetAfter = None
|
|
2834
3367
|
self.IpBindAfter = None
|
|
2835
3368
|
self.InstanceNameRandom = None
|
|
2836
|
-
self.
|
|
2837
|
-
self.
|
|
3369
|
+
self.SystemDisk_DiskType = None
|
|
3370
|
+
self.SystemDisk_ResizeType = None
|
|
3371
|
+
self.SyncTag = None
|
|
2838
3372
|
|
|
2839
3373
|
def _deserialize(self, params):
|
|
2840
3374
|
if params.get("ScalingConfigurationId"):
|
|
@@ -2860,7 +3394,7 @@ class ModifyScalingConfigurationRequest(AbstractModel):
|
|
|
2860
3394
|
if params.get("DataDisk"):
|
|
2861
3395
|
self.DataDisk = params.get("DataDisk")
|
|
2862
3396
|
if params.get("SystemDisk.DiskSize"):
|
|
2863
|
-
self.
|
|
3397
|
+
self.SystemDisk_DiskSize = params.get("SystemDisk.DiskSize")
|
|
2864
3398
|
if params.get("AddressBandWidth"):
|
|
2865
3399
|
self.AddressBandWidth = params.get("AddressBandWidth")
|
|
2866
3400
|
if params.get("BandWidthShareId"):
|
|
@@ -2886,9 +3420,11 @@ class ModifyScalingConfigurationRequest(AbstractModel):
|
|
|
2886
3420
|
if params.get("InstanceNameRandom"):
|
|
2887
3421
|
self.InstanceNameRandom = params.get("InstanceNameRandom")
|
|
2888
3422
|
if params.get("SystemDisk.DiskType"):
|
|
2889
|
-
self.
|
|
3423
|
+
self.SystemDisk_DiskType = params.get("SystemDisk.DiskType")
|
|
2890
3424
|
if params.get("SystemDisk.ResizeType"):
|
|
2891
|
-
self.
|
|
3425
|
+
self.SystemDisk_ResizeType = params.get("SystemDisk.ResizeType")
|
|
3426
|
+
if params.get("SyncTag"):
|
|
3427
|
+
self.SyncTag = params.get("SyncTag")
|
|
2892
3428
|
|
|
2893
3429
|
|
|
2894
3430
|
class DescribeSpotPriceHistoryRequest(AbstractModel):
|
|
@@ -2927,7 +3463,7 @@ class DescribePriceRequest(AbstractModel):
|
|
|
2927
3463
|
"""
|
|
2928
3464
|
|
|
2929
3465
|
def __init__(self):
|
|
2930
|
-
r"""
|
|
3466
|
+
r"""查询实例价格
|
|
2931
3467
|
:param InstanceType: 实例套餐类型,如果调用时未指定实例套餐类型,默认值为I1.1A
|
|
2932
3468
|
:type PathPrefix: String
|
|
2933
3469
|
:param SystemDisk.DiskSize: 云主机系统盘配置参数。若不指定该参数,则按照系统默认值进行分配。
|
|
@@ -2940,28 +3476,28 @@ class DescribePriceRequest(AbstractModel):
|
|
|
2940
3476
|
:type PathPrefix: Int
|
|
2941
3477
|
:param DataDiskGb: 数据卷容量,单位GB,容量限制依据 实例套餐类型定义 变化,如果调用时未指定,则为相应实例套餐类型最小值。InstanceType为通用型主机N1、N2、N3或者为本地NVMe机型I4时,此参数不生效。。
|
|
2942
3478
|
:type PathPrefix: Int
|
|
2943
|
-
:param DataDisk: 数据盘(云盘)的类型,数据盘n的类型,n 的取值范围为 [1,
|
|
3479
|
+
:param DataDisk: 数据盘(云盘)的类型,数据盘n的类型,n 的取值范围为 [1, 32],不同套餐规格支持的挂盘数量不同,详见官网文档。DataDisk.n.Type与DataDisk.n.Size必须都填写才有效。
|
|
2944
3480
|
:type PathPrefix: Filter
|
|
2945
3481
|
:param MaxCount: 最大实例数。
|
|
2946
3482
|
:type PathPrefix: Int
|
|
2947
|
-
:param SystemDisk.DiskType:
|
|
3483
|
+
:param SystemDisk.DiskType: 系统盘类型。
|
|
2948
3484
|
:type PathPrefix: String
|
|
2949
3485
|
"""
|
|
2950
3486
|
self.InstanceType = None
|
|
2951
|
-
self.
|
|
3487
|
+
self.SystemDisk_DiskSize = None
|
|
2952
3488
|
self.ImageId = None
|
|
2953
3489
|
self.ChargeType = None
|
|
2954
3490
|
self.PurchaseTime = None
|
|
2955
3491
|
self.DataDiskGb = None
|
|
2956
3492
|
self.DataDisk = None
|
|
2957
3493
|
self.MaxCount = None
|
|
2958
|
-
self.
|
|
3494
|
+
self.SystemDisk_DiskType = None
|
|
2959
3495
|
|
|
2960
3496
|
def _deserialize(self, params):
|
|
2961
3497
|
if params.get("InstanceType"):
|
|
2962
3498
|
self.InstanceType = params.get("InstanceType")
|
|
2963
3499
|
if params.get("SystemDisk.DiskSize"):
|
|
2964
|
-
self.
|
|
3500
|
+
self.SystemDisk_DiskSize = params.get("SystemDisk.DiskSize")
|
|
2965
3501
|
if params.get("ImageId"):
|
|
2966
3502
|
self.ImageId = params.get("ImageId")
|
|
2967
3503
|
if params.get("ChargeType"):
|
|
@@ -2975,7 +3511,7 @@ class DescribePriceRequest(AbstractModel):
|
|
|
2975
3511
|
if params.get("MaxCount"):
|
|
2976
3512
|
self.MaxCount = params.get("MaxCount")
|
|
2977
3513
|
if params.get("SystemDisk.DiskType"):
|
|
2978
|
-
self.
|
|
3514
|
+
self.SystemDisk_DiskType = params.get("SystemDisk.DiskType")
|
|
2979
3515
|
|
|
2980
3516
|
|
|
2981
3517
|
class EnableImageCachingRequest(AbstractModel):
|
|
@@ -3065,6 +3601,37 @@ class DetachInstancesIamRoleRequest(AbstractModel):
|
|
|
3065
3601
|
self.InstanceId = params.get("InstanceId")
|
|
3066
3602
|
|
|
3067
3603
|
|
|
3604
|
+
class CopySnapshotRequest(AbstractModel):
|
|
3605
|
+
"""CopySnapshot请求参数结构体
|
|
3606
|
+
"""
|
|
3607
|
+
|
|
3608
|
+
def __init__(self):
|
|
3609
|
+
r"""本地盘快照跨region复制
|
|
3610
|
+
:param SnapshotId: CopySnapshot
|
|
3611
|
+
:type PathPrefix: Filter
|
|
3612
|
+
:param DestinationRegion: 目标省区
|
|
3613
|
+
:type PathPrefix: Filter
|
|
3614
|
+
:param DestinationSnapshotName: 快照名称
|
|
3615
|
+
:type PathPrefix: String
|
|
3616
|
+
:param DestinationSnapshotDesc: 快照描述
|
|
3617
|
+
:type PathPrefix: String
|
|
3618
|
+
"""
|
|
3619
|
+
self.SnapshotId = None
|
|
3620
|
+
self.DestinationRegion = None
|
|
3621
|
+
self.DestinationSnapshotName = None
|
|
3622
|
+
self.DestinationSnapshotDesc = None
|
|
3623
|
+
|
|
3624
|
+
def _deserialize(self, params):
|
|
3625
|
+
if params.get("SnapshotId"):
|
|
3626
|
+
self.SnapshotId = params.get("SnapshotId")
|
|
3627
|
+
if params.get("DestinationRegion"):
|
|
3628
|
+
self.DestinationRegion = params.get("DestinationRegion")
|
|
3629
|
+
if params.get("DestinationSnapshotName"):
|
|
3630
|
+
self.DestinationSnapshotName = params.get("DestinationSnapshotName")
|
|
3631
|
+
if params.get("DestinationSnapshotDesc"):
|
|
3632
|
+
self.DestinationSnapshotDesc = params.get("DestinationSnapshotDesc")
|
|
3633
|
+
|
|
3634
|
+
|
|
3068
3635
|
class PreMigrateInstanceRequest(AbstractModel):
|
|
3069
3636
|
"""PreMigrateInstance请求参数结构体
|
|
3070
3637
|
"""
|
|
@@ -3083,11 +3650,14 @@ class PreMigrateInstanceRequest(AbstractModel):
|
|
|
3083
3650
|
|
|
3084
3651
|
有效值:SSD3.0,EHDD
|
|
3085
3652
|
:type PathPrefix: String
|
|
3653
|
+
:param InstantAccess: 支持快速开盘/快速变更,该参数仅对本地盘/本地盘机型/本地盘快照生效
|
|
3654
|
+
:type PathPrefix: Boolean
|
|
3086
3655
|
"""
|
|
3087
3656
|
self.InstanceId = None
|
|
3088
3657
|
self.InstanceType = None
|
|
3089
3658
|
self.SystemDiskType = None
|
|
3090
3659
|
self.DataDiskType = None
|
|
3660
|
+
self.InstantAccess = None
|
|
3091
3661
|
|
|
3092
3662
|
def _deserialize(self, params):
|
|
3093
3663
|
if params.get("InstanceId"):
|
|
@@ -3098,6 +3668,8 @@ class PreMigrateInstanceRequest(AbstractModel):
|
|
|
3098
3668
|
self.SystemDiskType = params.get("SystemDiskType")
|
|
3099
3669
|
if params.get("DataDiskType"):
|
|
3100
3670
|
self.DataDiskType = params.get("DataDiskType")
|
|
3671
|
+
if params.get("InstantAccess"):
|
|
3672
|
+
self.InstantAccess = params.get("InstantAccess")
|
|
3101
3673
|
|
|
3102
3674
|
|
|
3103
3675
|
class CancelPreMigrateInstanceRequest(AbstractModel):
|
|
@@ -3116,39 +3688,704 @@ class CancelPreMigrateInstanceRequest(AbstractModel):
|
|
|
3116
3688
|
self.InstanceId = params.get("InstanceId")
|
|
3117
3689
|
|
|
3118
3690
|
|
|
3119
|
-
class
|
|
3120
|
-
"""
|
|
3691
|
+
class SwitchImageTypeRequest(AbstractModel):
|
|
3692
|
+
"""SwitchImageType请求参数结构体
|
|
3121
3693
|
"""
|
|
3122
3694
|
|
|
3123
3695
|
def __init__(self):
|
|
3124
|
-
r"""
|
|
3696
|
+
r"""镜像类型转换
|
|
3697
|
+
:param ImageId: 镜像类型转换
|
|
3698
|
+
:type PathPrefix: Filter
|
|
3125
3699
|
"""
|
|
3700
|
+
self.ImageId = None
|
|
3126
3701
|
|
|
3127
3702
|
def _deserialize(self, params):
|
|
3128
|
-
|
|
3703
|
+
if params.get("ImageId"):
|
|
3704
|
+
self.ImageId = params.get("ImageId")
|
|
3129
3705
|
|
|
3130
3706
|
|
|
3131
|
-
class
|
|
3132
|
-
"""
|
|
3707
|
+
class SetInstanceResourceProtectRequest(AbstractModel):
|
|
3708
|
+
"""SetInstanceResourceProtect请求参数结构体
|
|
3133
3709
|
"""
|
|
3134
3710
|
|
|
3135
3711
|
def __init__(self):
|
|
3136
|
-
r"""
|
|
3712
|
+
r"""设置实例的资源保护状态
|
|
3713
|
+
:param InstanceId: 待修改资源保护的实例ID列表,N的范围为1-100 标准UUID格式
|
|
3714
|
+
:type PathPrefix: Filter
|
|
3715
|
+
:param IsProtection: 是否打开资源保护
|
|
3716
|
+
:type PathPrefix: Boolean
|
|
3137
3717
|
"""
|
|
3718
|
+
self.InstanceId = None
|
|
3719
|
+
self.IsProtection = None
|
|
3138
3720
|
|
|
3139
3721
|
def _deserialize(self, params):
|
|
3140
|
-
|
|
3722
|
+
if params.get("InstanceId"):
|
|
3723
|
+
self.InstanceId = params.get("InstanceId")
|
|
3724
|
+
if params.get("IsProtection"):
|
|
3725
|
+
self.IsProtection = params.get("IsProtection")
|
|
3726
|
+
|
|
3727
|
+
|
|
3728
|
+
class DescribeInstanceVncUrlRequest(AbstractModel):
|
|
3729
|
+
"""DescribeInstanceVncUrl请求参数结构体
|
|
3730
|
+
"""
|
|
3141
3731
|
|
|
3732
|
+
def __init__(self):
|
|
3733
|
+
r"""查询VNC管理终端地址
|
|
3734
|
+
:param InstanceId: 实例ID
|
|
3735
|
+
:type PathPrefix: String
|
|
3736
|
+
"""
|
|
3737
|
+
self.InstanceId = None
|
|
3738
|
+
|
|
3739
|
+
def _deserialize(self, params):
|
|
3740
|
+
if params.get("InstanceId"):
|
|
3741
|
+
self.InstanceId = params.get("InstanceId")
|
|
3142
3742
|
|
|
3143
|
-
|
|
3144
|
-
|
|
3743
|
+
|
|
3744
|
+
class CreateSnapshotRequest(AbstractModel):
|
|
3745
|
+
"""CreateSnapshot请求参数结构体
|
|
3145
3746
|
"""
|
|
3146
3747
|
|
|
3147
3748
|
def __init__(self):
|
|
3148
|
-
r"""
|
|
3749
|
+
r"""创建文件系统快照
|
|
3750
|
+
:param FileSystemId: 指定文件系统实例ID
|
|
3751
|
+
:type PathPrefix: String
|
|
3752
|
+
:param SnapshotName: 快照名称
|
|
3753
|
+
:type PathPrefix: String
|
|
3754
|
+
:param Description: 快照描述
|
|
3755
|
+
:type PathPrefix: String
|
|
3756
|
+
:param AliveDays: 快照保留天数
|
|
3757
|
+
:type PathPrefix: Int
|
|
3149
3758
|
"""
|
|
3759
|
+
self.FileSystemId = None
|
|
3760
|
+
self.SnapshotName = None
|
|
3761
|
+
self.Description = None
|
|
3762
|
+
self.AliveDays = None
|
|
3150
3763
|
|
|
3151
3764
|
def _deserialize(self, params):
|
|
3152
|
-
|
|
3765
|
+
if params.get("FileSystemId"):
|
|
3766
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
3767
|
+
if params.get("SnapshotName"):
|
|
3768
|
+
self.SnapshotName = params.get("SnapshotName")
|
|
3769
|
+
if params.get("Description"):
|
|
3770
|
+
self.Description = params.get("Description")
|
|
3771
|
+
if params.get("AliveDays"):
|
|
3772
|
+
self.AliveDays = params.get("AliveDays")
|
|
3773
|
+
|
|
3774
|
+
|
|
3775
|
+
class UpdateSnapshotRequest(AbstractModel):
|
|
3776
|
+
"""UpdateSnapshot请求参数结构体
|
|
3777
|
+
"""
|
|
3778
|
+
|
|
3779
|
+
def __init__(self):
|
|
3780
|
+
r"""修改文件系统快照
|
|
3781
|
+
:param FileSystemId: 指定文件系统实例ID
|
|
3782
|
+
:type PathPrefix: String
|
|
3783
|
+
:param SnapshotId: 生成的快照ID
|
|
3784
|
+
:type PathPrefix: String
|
|
3785
|
+
:param SnapshotName: 快照名称
|
|
3786
|
+
:type PathPrefix: String
|
|
3787
|
+
:param Description: 快照描述
|
|
3788
|
+
:type PathPrefix: String
|
|
3789
|
+
:param AliveDays: 快照保留天数
|
|
3790
|
+
:type PathPrefix: Int
|
|
3791
|
+
"""
|
|
3792
|
+
self.FileSystemId = None
|
|
3793
|
+
self.SnapshotId = None
|
|
3794
|
+
self.SnapshotName = None
|
|
3795
|
+
self.Description = None
|
|
3796
|
+
self.AliveDays = None
|
|
3797
|
+
|
|
3798
|
+
def _deserialize(self, params):
|
|
3799
|
+
if params.get("FileSystemId"):
|
|
3800
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
3801
|
+
if params.get("SnapshotId"):
|
|
3802
|
+
self.SnapshotId = params.get("SnapshotId")
|
|
3803
|
+
if params.get("SnapshotName"):
|
|
3804
|
+
self.SnapshotName = params.get("SnapshotName")
|
|
3805
|
+
if params.get("Description"):
|
|
3806
|
+
self.Description = params.get("Description")
|
|
3807
|
+
if params.get("AliveDays"):
|
|
3808
|
+
self.AliveDays = params.get("AliveDays")
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
class DeleteSnapshotRequest(AbstractModel):
|
|
3812
|
+
"""DeleteSnapshot请求参数结构体
|
|
3813
|
+
"""
|
|
3814
|
+
|
|
3815
|
+
def __init__(self):
|
|
3816
|
+
r"""删除文件系统快照
|
|
3817
|
+
:param SnapshotId: 快照ID,支持批量删除
|
|
3818
|
+
:type PathPrefix: Filter
|
|
3819
|
+
"""
|
|
3820
|
+
self.SnapshotId = None
|
|
3821
|
+
|
|
3822
|
+
def _deserialize(self, params):
|
|
3823
|
+
if params.get("SnapshotId"):
|
|
3824
|
+
self.SnapshotId = params.get("SnapshotId")
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
class RevertSnapshotRequest(AbstractModel):
|
|
3828
|
+
"""RevertSnapshot请求参数结构体
|
|
3829
|
+
"""
|
|
3830
|
+
|
|
3831
|
+
def __init__(self):
|
|
3832
|
+
r"""文件系统快照回滚
|
|
3833
|
+
:param FileSystemId: 文件系统实例ID
|
|
3834
|
+
:type PathPrefix: String
|
|
3835
|
+
:param SnapshotId: 快照ID
|
|
3836
|
+
:type PathPrefix: String
|
|
3837
|
+
"""
|
|
3838
|
+
self.FileSystemId = None
|
|
3839
|
+
self.SnapshotId = None
|
|
3840
|
+
|
|
3841
|
+
def _deserialize(self, params):
|
|
3842
|
+
if params.get("FileSystemId"):
|
|
3843
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
3844
|
+
if params.get("SnapshotId"):
|
|
3845
|
+
self.SnapshotId = params.get("SnapshotId")
|
|
3846
|
+
|
|
3847
|
+
|
|
3848
|
+
class DescribeSnapshotListRequest(AbstractModel):
|
|
3849
|
+
"""DescribeSnapshotList请求参数结构体
|
|
3850
|
+
"""
|
|
3851
|
+
|
|
3852
|
+
def __init__(self):
|
|
3853
|
+
r"""查询文件系统的快照信息
|
|
3854
|
+
:param FileSystemId: 文件系统实例ID,支持批量查询
|
|
3855
|
+
:type PathPrefix: Filter
|
|
3856
|
+
:param SnapshotId: 快照ID,支持批量查询
|
|
3857
|
+
:type PathPrefix: Filter
|
|
3858
|
+
:param SnapshotName: 快照名称
|
|
3859
|
+
:type PathPrefix: String
|
|
3860
|
+
:param SnapshotType: 快照类型。有效取值:
|
|
3861
|
+
• auto:自动快照
|
|
3862
|
+
• user:手动创建的快照
|
|
3863
|
+
:type PathPrefix: String
|
|
3864
|
+
:param Sort: 排序规则,CreateTime.desc、CreateTime.asc、ExpireTime.desc、ExpireTime.asc
|
|
3865
|
+
:type PathPrefix: String
|
|
3866
|
+
:param PageNum: 页码,默认为1
|
|
3867
|
+
:type PathPrefix: Int
|
|
3868
|
+
:param PageSize: 分页大小,默认为10
|
|
3869
|
+
:type PathPrefix: Int
|
|
3870
|
+
"""
|
|
3871
|
+
self.FileSystemId = None
|
|
3872
|
+
self.SnapshotId = None
|
|
3873
|
+
self.SnapshotName = None
|
|
3874
|
+
self.SnapshotType = None
|
|
3875
|
+
self.Sort = None
|
|
3876
|
+
self.PageNum = None
|
|
3877
|
+
self.PageSize = None
|
|
3878
|
+
|
|
3879
|
+
def _deserialize(self, params):
|
|
3880
|
+
if params.get("FileSystemId"):
|
|
3881
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
3882
|
+
if params.get("SnapshotId"):
|
|
3883
|
+
self.SnapshotId = params.get("SnapshotId")
|
|
3884
|
+
if params.get("SnapshotName"):
|
|
3885
|
+
self.SnapshotName = params.get("SnapshotName")
|
|
3886
|
+
if params.get("SnapshotType"):
|
|
3887
|
+
self.SnapshotType = params.get("SnapshotType")
|
|
3888
|
+
if params.get("Sort"):
|
|
3889
|
+
self.Sort = params.get("Sort")
|
|
3890
|
+
if params.get("PageNum"):
|
|
3891
|
+
self.PageNum = params.get("PageNum")
|
|
3892
|
+
if params.get("PageSize"):
|
|
3893
|
+
self.PageSize = params.get("PageSize")
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
class CreateSnapshotPolicyRequest(AbstractModel):
|
|
3897
|
+
"""CreateSnapshotPolicy请求参数结构体
|
|
3898
|
+
"""
|
|
3899
|
+
|
|
3900
|
+
def __init__(self):
|
|
3901
|
+
r"""创建文件系统自动快照策略
|
|
3902
|
+
:param AutoSnapshotPolicyName: 自动快照策略名称。格式规范为:
|
|
3903
|
+
• 长度为2~30个字符。必须以字母开头,可包含数字、下划线(_)
|
|
3904
|
+
:type PathPrefix: String
|
|
3905
|
+
:param FrequencyUnit: 自动快照策略备份周期。有效值:
|
|
3906
|
+
• day:按天(默认值)
|
|
3907
|
+
• week:按周
|
|
3908
|
+
• month:按月
|
|
3909
|
+
:type PathPrefix: String
|
|
3910
|
+
:param IndexOfFrequency: 备份日期
|
|
3911
|
+
按天不传, 按周(必传) (1-7 可多选)按月(必传)(1-31 )[1,2,3,4,5]
|
|
3912
|
+
:type PathPrefix: Filter
|
|
3913
|
+
:param SnapshotTimePoint: 备份时间点
|
|
3914
|
+
快照定期备份时间点(在一天的哪一小时) 00:00,01:00 ... 默认 00:00, 只支持小时
|
|
3915
|
+
:type PathPrefix: Filter
|
|
3916
|
+
:param AliveDays: 快照保留天数
|
|
3917
|
+
:type PathPrefix: Int
|
|
3918
|
+
"""
|
|
3919
|
+
self.AutoSnapshotPolicyName = None
|
|
3920
|
+
self.FrequencyUnit = None
|
|
3921
|
+
self.IndexOfFrequency = None
|
|
3922
|
+
self.SnapshotTimePoint = None
|
|
3923
|
+
self.AliveDays = None
|
|
3153
3924
|
|
|
3925
|
+
def _deserialize(self, params):
|
|
3926
|
+
if params.get("AutoSnapshotPolicyName"):
|
|
3927
|
+
self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
|
|
3928
|
+
if params.get("FrequencyUnit"):
|
|
3929
|
+
self.FrequencyUnit = params.get("FrequencyUnit")
|
|
3930
|
+
if params.get("IndexOfFrequency"):
|
|
3931
|
+
self.IndexOfFrequency = params.get("IndexOfFrequency")
|
|
3932
|
+
if params.get("SnapshotTimePoint"):
|
|
3933
|
+
self.SnapshotTimePoint = params.get("SnapshotTimePoint")
|
|
3934
|
+
if params.get("AliveDays"):
|
|
3935
|
+
self.AliveDays = params.get("AliveDays")
|
|
3936
|
+
|
|
3937
|
+
|
|
3938
|
+
class UpdateSnapshotPolicyRequest(AbstractModel):
|
|
3939
|
+
"""UpdateSnapshotPolicy请求参数结构体
|
|
3940
|
+
"""
|
|
3941
|
+
|
|
3942
|
+
def __init__(self):
|
|
3943
|
+
r"""修改文件系统自动快照策略
|
|
3944
|
+
:param AutoSnapshotPolicyId: 策略ID
|
|
3945
|
+
:type PathPrefix: String
|
|
3946
|
+
:param AutoSnapshotPolicyName: 策略名称
|
|
3947
|
+
:type PathPrefix: String
|
|
3948
|
+
:param FrequencyUnit: 自动快照策略备份周期。有效值:
|
|
3949
|
+
• day:按天(默认值)
|
|
3950
|
+
• week:按周
|
|
3951
|
+
• month:按月
|
|
3952
|
+
:type PathPrefix: String
|
|
3953
|
+
:param IndexOfFrequency: 备份日期
|
|
3954
|
+
按天不传, 按周(必传)(1-7 可多选)按月(必传)(1-31 )[1,2,3,4,5]
|
|
3955
|
+
:type PathPrefix: Filter
|
|
3956
|
+
:param SnapshotTimePoint: 备份时间点
|
|
3957
|
+
快照定期备份时间点(在一天的哪一小时) 00:00,01:00 ... 默认 00:00,只支持小时
|
|
3958
|
+
:type PathPrefix: Filter
|
|
3959
|
+
:param AliveDays: 快照保留天数
|
|
3960
|
+
:type PathPrefix: Int
|
|
3961
|
+
"""
|
|
3962
|
+
self.AutoSnapshotPolicyId = None
|
|
3963
|
+
self.AutoSnapshotPolicyName = None
|
|
3964
|
+
self.FrequencyUnit = None
|
|
3965
|
+
self.IndexOfFrequency = None
|
|
3966
|
+
self.SnapshotTimePoint = None
|
|
3967
|
+
self.AliveDays = None
|
|
3968
|
+
|
|
3969
|
+
def _deserialize(self, params):
|
|
3970
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
3971
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
3972
|
+
if params.get("AutoSnapshotPolicyName"):
|
|
3973
|
+
self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
|
|
3974
|
+
if params.get("FrequencyUnit"):
|
|
3975
|
+
self.FrequencyUnit = params.get("FrequencyUnit")
|
|
3976
|
+
if params.get("IndexOfFrequency"):
|
|
3977
|
+
self.IndexOfFrequency = params.get("IndexOfFrequency")
|
|
3978
|
+
if params.get("SnapshotTimePoint"):
|
|
3979
|
+
self.SnapshotTimePoint = params.get("SnapshotTimePoint")
|
|
3980
|
+
if params.get("AliveDays"):
|
|
3981
|
+
self.AliveDays = params.get("AliveDays")
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
class DeleteSnapshotPolicyRequest(AbstractModel):
|
|
3985
|
+
"""DeleteSnapshotPolicy请求参数结构体
|
|
3986
|
+
"""
|
|
3987
|
+
|
|
3988
|
+
def __init__(self):
|
|
3989
|
+
r"""删除文件系统自动快照策略
|
|
3990
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID,支持批量删除
|
|
3991
|
+
:type PathPrefix: Filter
|
|
3992
|
+
"""
|
|
3993
|
+
self.AutoSnapshotPolicyId = None
|
|
3994
|
+
|
|
3995
|
+
def _deserialize(self, params):
|
|
3996
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
3997
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
3998
|
+
|
|
3999
|
+
|
|
4000
|
+
class ApplySnapshotPolicyRequest(AbstractModel):
|
|
4001
|
+
"""ApplySnapshotPolicy请求参数结构体
|
|
4002
|
+
"""
|
|
4003
|
+
|
|
4004
|
+
def __init__(self):
|
|
4005
|
+
r"""文件系统关联自动快照策略
|
|
4006
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID
|
|
4007
|
+
:type PathPrefix: String
|
|
4008
|
+
:param FileSystemId: 文件系统ID
|
|
4009
|
+
:type PathPrefix: String
|
|
4010
|
+
"""
|
|
4011
|
+
self.AutoSnapshotPolicyId = None
|
|
4012
|
+
self.FileSystemId = None
|
|
4013
|
+
|
|
4014
|
+
def _deserialize(self, params):
|
|
4015
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
4016
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
4017
|
+
if params.get("FileSystemId"):
|
|
4018
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
4019
|
+
|
|
4020
|
+
|
|
4021
|
+
class CancelSnapshotPolicyRequest(AbstractModel):
|
|
4022
|
+
"""CancelSnapshotPolicy请求参数结构体
|
|
4023
|
+
"""
|
|
4024
|
+
|
|
4025
|
+
def __init__(self):
|
|
4026
|
+
r"""文件系统移除自动快照策略
|
|
4027
|
+
:param AutoSnapshotPolicyId: 快照策略ID
|
|
4028
|
+
:type PathPrefix: String
|
|
4029
|
+
:param FileSystemId: 文件系统ID
|
|
4030
|
+
:type PathPrefix: String
|
|
4031
|
+
"""
|
|
4032
|
+
self.AutoSnapshotPolicyId = None
|
|
4033
|
+
self.FileSystemId = None
|
|
4034
|
+
|
|
4035
|
+
def _deserialize(self, params):
|
|
4036
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
4037
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
4038
|
+
if params.get("FileSystemId"):
|
|
4039
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
class DescribeSnapshotPolicyListRequest(AbstractModel):
|
|
4043
|
+
"""DescribeSnapshotPolicyList请求参数结构体
|
|
4044
|
+
"""
|
|
4045
|
+
|
|
4046
|
+
def __init__(self):
|
|
4047
|
+
r"""获取文件系统自动快照策略列表
|
|
4048
|
+
:param FileSystemId: 文件系统ID
|
|
4049
|
+
:type PathPrefix: String
|
|
4050
|
+
:param AutoSnapshotPolicyId: 自动快照策略ID
|
|
4051
|
+
:type PathPrefix: Filter
|
|
4052
|
+
:param AutoSnapshotPolicyName: 自动快照策略名称
|
|
4053
|
+
:type PathPrefix: String
|
|
4054
|
+
:param Sort: 排序,CreateTime.desc、CreateTime.asc、NextActiveTime.desc、NextActiveTime.asc
|
|
4055
|
+
:type PathPrefix: String
|
|
4056
|
+
:param PageNum: 页码,默认为1
|
|
4057
|
+
:type PathPrefix: Int
|
|
4058
|
+
:param PageSize: 分页大小,默认为10
|
|
4059
|
+
:type PathPrefix: Int
|
|
4060
|
+
"""
|
|
4061
|
+
self.FileSystemId = None
|
|
4062
|
+
self.AutoSnapshotPolicyId = None
|
|
4063
|
+
self.AutoSnapshotPolicyName = None
|
|
4064
|
+
self.Sort = None
|
|
4065
|
+
self.PageNum = None
|
|
4066
|
+
self.PageSize = None
|
|
4067
|
+
|
|
4068
|
+
def _deserialize(self, params):
|
|
4069
|
+
if params.get("FileSystemId"):
|
|
4070
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
4071
|
+
if params.get("AutoSnapshotPolicyId"):
|
|
4072
|
+
self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
|
|
4073
|
+
if params.get("AutoSnapshotPolicyName"):
|
|
4074
|
+
self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
|
|
4075
|
+
if params.get("Sort"):
|
|
4076
|
+
self.Sort = params.get("Sort")
|
|
4077
|
+
if params.get("PageNum"):
|
|
4078
|
+
self.PageNum = params.get("PageNum")
|
|
4079
|
+
if params.get("PageSize"):
|
|
4080
|
+
self.PageSize = params.get("PageSize")
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
class ModifyRecycleBinAttributeRequest(AbstractModel):
|
|
4084
|
+
"""ModifyRecycleBinAttribute请求参数结构体
|
|
4085
|
+
"""
|
|
4086
|
+
|
|
4087
|
+
def __init__(self):
|
|
4088
|
+
r"""修改回收站信息
|
|
4089
|
+
:param FileSystemId: 文件系统ID
|
|
4090
|
+
:type PathPrefix: String
|
|
4091
|
+
:param IsTrashEnable: 回收站功能是否开启,默认开启
|
|
4092
|
+
:type PathPrefix: Boolean
|
|
4093
|
+
:param IsTrashVisible: 回收站目录是否可见,默认可见
|
|
4094
|
+
:type PathPrefix: Boolean
|
|
4095
|
+
:param IntervalTrash: 回收站内数据保留时长,默认1天
|
|
4096
|
+
:type PathPrefix: Int
|
|
4097
|
+
:param RecycleOpPermission: 回收站操作权限级别:0(只读)/1(读写)
|
|
4098
|
+
:type PathPrefix: Int
|
|
4099
|
+
"""
|
|
4100
|
+
self.FileSystemId = None
|
|
4101
|
+
self.IsTrashEnable = None
|
|
4102
|
+
self.IsTrashVisible = None
|
|
4103
|
+
self.IntervalTrash = None
|
|
4104
|
+
self.RecycleOpPermission = None
|
|
4105
|
+
|
|
4106
|
+
def _deserialize(self, params):
|
|
4107
|
+
if params.get("FileSystemId"):
|
|
4108
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
4109
|
+
if params.get("IsTrashEnable"):
|
|
4110
|
+
self.IsTrashEnable = params.get("IsTrashEnable")
|
|
4111
|
+
if params.get("IsTrashVisible"):
|
|
4112
|
+
self.IsTrashVisible = params.get("IsTrashVisible")
|
|
4113
|
+
if params.get("IntervalTrash"):
|
|
4114
|
+
self.IntervalTrash = params.get("IntervalTrash")
|
|
4115
|
+
if params.get("RecycleOpPermission"):
|
|
4116
|
+
self.RecycleOpPermission = params.get("RecycleOpPermission")
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
class DescribeAccessGroupsRequest(AbstractModel):
|
|
4120
|
+
"""DescribeAccessGroups请求参数结构体
|
|
4121
|
+
"""
|
|
4122
|
+
|
|
4123
|
+
def __init__(self):
|
|
4124
|
+
r"""查询权限组信息
|
|
4125
|
+
:param AccessGroupId: 权限组ID
|
|
4126
|
+
:type PathPrefix: String
|
|
4127
|
+
:param PageSize: 每个分页包含的权限组个数
|
|
4128
|
+
取值范围:1~200
|
|
4129
|
+
默认值:10
|
|
4130
|
+
:type PathPrefix: Int
|
|
4131
|
+
:param PageNumber: 列表的分页页码
|
|
4132
|
+
起始值(默认值):1
|
|
4133
|
+
:type PathPrefix: Int
|
|
4134
|
+
"""
|
|
4135
|
+
self.AccessGroupId = None
|
|
4136
|
+
self.PageSize = None
|
|
4137
|
+
self.PageNumber = None
|
|
4138
|
+
|
|
4139
|
+
def _deserialize(self, params):
|
|
4140
|
+
if params.get("AccessGroupId"):
|
|
4141
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4142
|
+
if params.get("PageSize"):
|
|
4143
|
+
self.PageSize = params.get("PageSize")
|
|
4144
|
+
if params.get("PageNumber"):
|
|
4145
|
+
self.PageNumber = params.get("PageNumber")
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
class CreateAccessGroupRequest(AbstractModel):
|
|
4149
|
+
"""CreateAccessGroup请求参数结构体
|
|
4150
|
+
"""
|
|
4151
|
+
|
|
4152
|
+
def __init__(self):
|
|
4153
|
+
r"""创建权限组
|
|
4154
|
+
:param AccessGroupName: 权限组名称。
|
|
4155
|
+
限制:
|
|
4156
|
+
• 长度为 3~64 个字符
|
|
4157
|
+
• 同一区域的权限组参数名称不可重复
|
|
4158
|
+
• 必须以大小写字母开头,可以包含英文字母、数字、下划线(_)或者短划线(-)
|
|
4159
|
+
:type PathPrefix: String
|
|
4160
|
+
:param Description: 权限组描述。
|
|
4161
|
+
限制:
|
|
4162
|
+
• 长度为 0~128个英文或中文字符。
|
|
4163
|
+
• 必须以大小字母或中文开头,不可包含http://和https://
|
|
4164
|
+
• 可以包含数字、半角冒号(:)、下划线(_)或者短划号(-)
|
|
4165
|
+
:type PathPrefix: String
|
|
4166
|
+
"""
|
|
4167
|
+
self.AccessGroupName = None
|
|
4168
|
+
self.Description = None
|
|
4169
|
+
|
|
4170
|
+
def _deserialize(self, params):
|
|
4171
|
+
if params.get("AccessGroupName"):
|
|
4172
|
+
self.AccessGroupName = params.get("AccessGroupName")
|
|
4173
|
+
if params.get("Description"):
|
|
4174
|
+
self.Description = params.get("Description")
|
|
4175
|
+
|
|
4176
|
+
|
|
4177
|
+
class ModifyAccessGroupRequest(AbstractModel):
|
|
4178
|
+
"""ModifyAccessGroup请求参数结构体
|
|
4179
|
+
"""
|
|
4180
|
+
|
|
4181
|
+
def __init__(self):
|
|
4182
|
+
r"""修改权限组
|
|
4183
|
+
:param AccessGroupId: 权限组ID
|
|
4184
|
+
:type PathPrefix: String
|
|
4185
|
+
:param AccessGroupName: 权限组名称
|
|
4186
|
+
限制:
|
|
4187
|
+
• 长度为 3~64 个字符
|
|
4188
|
+
• 同一区域的权限组参数名称不可重复
|
|
4189
|
+
• 必须以大小写字母开头,可以包含英文字母、数字、下划线(_)或者短划线(-)
|
|
4190
|
+
:type PathPrefix: String
|
|
4191
|
+
:param Description: 权限组描述
|
|
4192
|
+
限制:
|
|
4193
|
+
• 长度为 0~128个英文或中文字符
|
|
4194
|
+
• 必须以大小字母或中文开头,不可包含http://和https://
|
|
4195
|
+
• 可以包含数字、半角冒号(:)、下划线(_)或者短划号(-)
|
|
4196
|
+
:type PathPrefix: String
|
|
4197
|
+
"""
|
|
4198
|
+
self.AccessGroupId = None
|
|
4199
|
+
self.AccessGroupName = None
|
|
4200
|
+
self.Description = None
|
|
4201
|
+
|
|
4202
|
+
def _deserialize(self, params):
|
|
4203
|
+
if params.get("AccessGroupId"):
|
|
4204
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4205
|
+
if params.get("AccessGroupName"):
|
|
4206
|
+
self.AccessGroupName = params.get("AccessGroupName")
|
|
4207
|
+
if params.get("Description"):
|
|
4208
|
+
self.Description = params.get("Description")
|
|
4209
|
+
|
|
4210
|
+
|
|
4211
|
+
class DeleteAccessGroupRequest(AbstractModel):
|
|
4212
|
+
"""DeleteAccessGroup请求参数结构体
|
|
4213
|
+
"""
|
|
4214
|
+
|
|
4215
|
+
def __init__(self):
|
|
4216
|
+
r"""删除权限组
|
|
4217
|
+
:param AccessGroupId: 权限组ID
|
|
4218
|
+
:type PathPrefix: String
|
|
4219
|
+
"""
|
|
4220
|
+
self.AccessGroupId = None
|
|
4221
|
+
|
|
4222
|
+
def _deserialize(self, params):
|
|
4223
|
+
if params.get("AccessGroupId"):
|
|
4224
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
class DescribeAccessRulesRequest(AbstractModel):
|
|
4228
|
+
"""DescribeAccessRules请求参数结构体
|
|
4229
|
+
"""
|
|
4230
|
+
|
|
4231
|
+
def __init__(self):
|
|
4232
|
+
r"""查询权限组规则列表
|
|
4233
|
+
:param AccessGroupId: 权限组ID
|
|
4234
|
+
:type PathPrefix: String
|
|
4235
|
+
:param AccessRuleId: 权限规则ID
|
|
4236
|
+
:type PathPrefix: String
|
|
4237
|
+
:param PageSize: 分页查询时,每个分页包含的文件系统个数
|
|
4238
|
+
取值范围:1~100
|
|
4239
|
+
默认值:10
|
|
4240
|
+
:type PathPrefix: Int
|
|
4241
|
+
:param PageNumber: 文件系统列表的分页页码
|
|
4242
|
+
起始值(默认值):1
|
|
4243
|
+
:type PathPrefix: Int
|
|
4244
|
+
"""
|
|
4245
|
+
self.AccessGroupId = None
|
|
4246
|
+
self.AccessRuleId = None
|
|
4247
|
+
self.PageSize = None
|
|
4248
|
+
self.PageNumber = None
|
|
4249
|
+
|
|
4250
|
+
def _deserialize(self, params):
|
|
4251
|
+
if params.get("AccessGroupId"):
|
|
4252
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4253
|
+
if params.get("AccessRuleId"):
|
|
4254
|
+
self.AccessRuleId = params.get("AccessRuleId")
|
|
4255
|
+
if params.get("PageSize"):
|
|
4256
|
+
self.PageSize = params.get("PageSize")
|
|
4257
|
+
if params.get("PageNumber"):
|
|
4258
|
+
self.PageNumber = params.get("PageNumber")
|
|
4259
|
+
|
|
4260
|
+
|
|
4261
|
+
class CreateAccessRuleRequest(AbstractModel):
|
|
4262
|
+
"""CreateAccessRule请求参数结构体
|
|
4263
|
+
"""
|
|
4264
|
+
|
|
4265
|
+
def __init__(self):
|
|
4266
|
+
r"""创建权限组规则
|
|
4267
|
+
:param AccessGroupId: 权限组ID
|
|
4268
|
+
:type PathPrefix: String
|
|
4269
|
+
:param SourceCidrIp: 授权地址,授权对象的 IP 地址或网段
|
|
4270
|
+
格式必须为 IP 地址或者 CIDR 网段,如果批量设置则逗号分隔
|
|
4271
|
+
备注:批量录入后需按每个IP或每条CIDR地址段来拆解为多条规则
|
|
4272
|
+
:type PathPrefix: Filter
|
|
4273
|
+
:param RwAccessType: 读写权限,支持“读写权限、禁止访问”
|
|
4274
|
+
• RDWR:读写
|
|
4275
|
+
• RDONLY:只读
|
|
4276
|
+
• RDWR_NODELETE_NORENAME:读写(不支持删除和重命名)
|
|
4277
|
+
:type PathPrefix: String
|
|
4278
|
+
:param UserAccessType: 授权对象的系统用户对文件系统的访问权限
|
|
4279
|
+
取值:
|
|
4280
|
+
• no_squash:允许使用 root 用户访问文件系统
|
|
4281
|
+
• root_squash:以 root 用户身份访问时,映射 nobody 用户
|
|
4282
|
+
• all_squash:无论以何种用户身份访问,均映射为 nobody 用户
|
|
4283
|
+
nobody 用户是 Linux 系统的默认用户,只能访问服务器上的公共内容,具有低权限,高安全性的特点
|
|
4284
|
+
:type PathPrefix: String
|
|
4285
|
+
"""
|
|
4286
|
+
self.AccessGroupId = None
|
|
4287
|
+
self.SourceCidrIp = None
|
|
4288
|
+
self.RwAccessType = None
|
|
4289
|
+
self.UserAccessType = None
|
|
4290
|
+
|
|
4291
|
+
def _deserialize(self, params):
|
|
4292
|
+
if params.get("AccessGroupId"):
|
|
4293
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4294
|
+
if params.get("SourceCidrIp"):
|
|
4295
|
+
self.SourceCidrIp = params.get("SourceCidrIp")
|
|
4296
|
+
if params.get("RwAccessType"):
|
|
4297
|
+
self.RwAccessType = params.get("RwAccessType")
|
|
4298
|
+
if params.get("UserAccessType"):
|
|
4299
|
+
self.UserAccessType = params.get("UserAccessType")
|
|
4300
|
+
|
|
4301
|
+
|
|
4302
|
+
class ModifyAccessRuleRequest(AbstractModel):
|
|
4303
|
+
"""ModifyAccessRule请求参数结构体
|
|
4304
|
+
"""
|
|
4305
|
+
|
|
4306
|
+
def __init__(self):
|
|
4307
|
+
r"""修改权限组规则
|
|
4308
|
+
:param AccessGroupId: 权限组ID
|
|
4309
|
+
:type PathPrefix: String
|
|
4310
|
+
:param AccessRuleId: 权限组规则ID
|
|
4311
|
+
:type PathPrefix: String
|
|
4312
|
+
:param SourceCidrIp: 授权地址,授权对象的 IP 地址或网段。
|
|
4313
|
+
格式必须为 IP 地址或者 CIDR 网段
|
|
4314
|
+
:type PathPrefix: String
|
|
4315
|
+
:param RwAccessType: 读写权限,支持“读写权限、禁止访问”
|
|
4316
|
+
• RDWR:读写
|
|
4317
|
+
• RDONLY:只读
|
|
4318
|
+
• RDWR_NODELETE_NORENAME:读写(不支持删除和重命名)
|
|
4319
|
+
:type PathPrefix: String
|
|
4320
|
+
:param UserAccessType: 授权对象的系统用户对文件系统的访问权限
|
|
4321
|
+
取值:
|
|
4322
|
+
• no_squash:允许使用 root 用户访问文件系统
|
|
4323
|
+
• root_squash:以 root 用户身份访问时,映射 nobody 用户
|
|
4324
|
+
• all_squash:无论以何种用户身份访问,均映射为 nobody 用户
|
|
4325
|
+
nobody 用户是 Linux 系统的默认用户,只能访问服务器上的公共内容,具有低权限,高安全性的特点
|
|
4326
|
+
:type PathPrefix: String
|
|
4327
|
+
"""
|
|
4328
|
+
self.AccessGroupId = None
|
|
4329
|
+
self.AccessRuleId = None
|
|
4330
|
+
self.SourceCidrIp = None
|
|
4331
|
+
self.RwAccessType = None
|
|
4332
|
+
self.UserAccessType = None
|
|
4333
|
+
|
|
4334
|
+
def _deserialize(self, params):
|
|
4335
|
+
if params.get("AccessGroupId"):
|
|
4336
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4337
|
+
if params.get("AccessRuleId"):
|
|
4338
|
+
self.AccessRuleId = params.get("AccessRuleId")
|
|
4339
|
+
if params.get("SourceCidrIp"):
|
|
4340
|
+
self.SourceCidrIp = params.get("SourceCidrIp")
|
|
4341
|
+
if params.get("RwAccessType"):
|
|
4342
|
+
self.RwAccessType = params.get("RwAccessType")
|
|
4343
|
+
if params.get("UserAccessType"):
|
|
4344
|
+
self.UserAccessType = params.get("UserAccessType")
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
class DeleteAccessRuleRequest(AbstractModel):
|
|
4348
|
+
"""DeleteAccessRule请求参数结构体
|
|
4349
|
+
"""
|
|
3154
4350
|
|
|
4351
|
+
def __init__(self):
|
|
4352
|
+
r"""删除权限组规则
|
|
4353
|
+
:param AccessGroupId: 权限组ID
|
|
4354
|
+
:type PathPrefix: String
|
|
4355
|
+
:param AccessRuleId: 权限组规则ID
|
|
4356
|
+
:type PathPrefix: Filter
|
|
4357
|
+
"""
|
|
4358
|
+
self.AccessGroupId = None
|
|
4359
|
+
self.AccessRuleId = None
|
|
4360
|
+
|
|
4361
|
+
def _deserialize(self, params):
|
|
4362
|
+
if params.get("AccessGroupId"):
|
|
4363
|
+
self.AccessGroupId = params.get("AccessGroupId")
|
|
4364
|
+
if params.get("AccessRuleId"):
|
|
4365
|
+
self.AccessRuleId = params.get("AccessRuleId")
|
|
4366
|
+
|
|
4367
|
+
|
|
4368
|
+
class ModifyMountTargetRequest(AbstractModel):
|
|
4369
|
+
"""ModifyMountTarget请求参数结构体
|
|
4370
|
+
"""
|
|
4371
|
+
|
|
4372
|
+
def __init__(self):
|
|
4373
|
+
r"""修改文件系统挂载点
|
|
4374
|
+
:param FileSystemId: 文件系统ID
|
|
4375
|
+
:type PathPrefix: String
|
|
4376
|
+
:param MountTargetId: 挂载点ID
|
|
4377
|
+
:type PathPrefix: String
|
|
4378
|
+
:param AccessGroupId: 权限组ID
|
|
4379
|
+
:type PathPrefix: String
|
|
4380
|
+
"""
|
|
4381
|
+
self.FileSystemId = None
|
|
4382
|
+
self.MountTargetId = None
|
|
4383
|
+
self.AccessGroupId = None
|
|
4384
|
+
|
|
4385
|
+
def _deserialize(self, params):
|
|
4386
|
+
if params.get("FileSystemId"):
|
|
4387
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
4388
|
+
if params.get("MountTargetId"):
|
|
4389
|
+
self.MountTargetId = params.get("MountTargetId")
|
|
4390
|
+
if params.get("AccessGroupId"):
|
|
4391
|
+
self.AccessGroupId = params.get("AccessGroupId")
|