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
|
@@ -26,6 +26,8 @@ class CreateUserRequest(AbstractModel):
|
|
|
26
26
|
:type PathPrefix: Int
|
|
27
27
|
:param ViewAllProject: 子用户查看所有项目
|
|
28
28
|
:type PathPrefix: Int
|
|
29
|
+
:param AddProjectId: 项目ID,默认项目传0
|
|
30
|
+
:type PathPrefix: Int
|
|
29
31
|
"""
|
|
30
32
|
self.UserName = None
|
|
31
33
|
self.RealName = None
|
|
@@ -37,6 +39,7 @@ class CreateUserRequest(AbstractModel):
|
|
|
37
39
|
self.OpenLoginProtection = None
|
|
38
40
|
self.OpenSecurityProtection = None
|
|
39
41
|
self.ViewAllProject = None
|
|
42
|
+
self.AddProjectId = None
|
|
40
43
|
|
|
41
44
|
def _deserialize(self, params):
|
|
42
45
|
if params.get("UserName"):
|
|
@@ -59,6 +62,8 @@ class CreateUserRequest(AbstractModel):
|
|
|
59
62
|
self.OpenSecurityProtection = params.get("OpenSecurityProtection")
|
|
60
63
|
if params.get("ViewAllProject"):
|
|
61
64
|
self.ViewAllProject = params.get("ViewAllProject")
|
|
65
|
+
if params.get("AddProjectId"):
|
|
66
|
+
self.AddProjectId = params.get("AddProjectId")
|
|
62
67
|
|
|
63
68
|
|
|
64
69
|
class ListUsersRequest(AbstractModel):
|
|
@@ -170,6 +175,28 @@ class DeleteUserRequest(AbstractModel):
|
|
|
170
175
|
self.UserName = params.get("UserName")
|
|
171
176
|
|
|
172
177
|
|
|
178
|
+
class DetachUserPolicyRequest(AbstractModel):
|
|
179
|
+
"""DetachUserPolicy请求参数结构体
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
def __init__(self):
|
|
183
|
+
r"""解绑IAM用户策略
|
|
184
|
+
:param PolicyKrn: 需要解绑的策略的krn标识
|
|
185
|
+
格式:krn:ksc:iam::account-id:policy/policy-name
|
|
186
|
+
:type PathPrefix: String
|
|
187
|
+
:param UserName: 需要解绑的策略的目标用户名
|
|
188
|
+
:type PathPrefix: String
|
|
189
|
+
"""
|
|
190
|
+
self.PolicyKrn = None
|
|
191
|
+
self.UserName = None
|
|
192
|
+
|
|
193
|
+
def _deserialize(self, params):
|
|
194
|
+
if params.get("PolicyKrn"):
|
|
195
|
+
self.PolicyKrn = params.get("PolicyKrn")
|
|
196
|
+
if params.get("UserName"):
|
|
197
|
+
self.UserName = params.get("UserName")
|
|
198
|
+
|
|
199
|
+
|
|
173
200
|
class ListAttachedUserPoliciesRequest(AbstractModel):
|
|
174
201
|
"""ListAttachedUserPolicies请求参数结构体
|
|
175
202
|
"""
|
|
@@ -470,7 +497,10 @@ class UpdateLoginProfileRequest(AbstractModel):
|
|
|
470
497
|
r"""更新子用户登录配置
|
|
471
498
|
:param UserName: 待更新登录配置的IAM用户名
|
|
472
499
|
:type PathPrefix: String
|
|
473
|
-
:param Password:
|
|
500
|
+
:param Password: 新密码,可选参数,注:
|
|
501
|
+
- 当传参且值为空字符串时,关闭子用户控制台登录;
|
|
502
|
+
- 当传参不为空字符串时,启用子用户控制台登录,并设置新密码;
|
|
503
|
+
- 当不传参时,沿用原设置;
|
|
474
504
|
:type PathPrefix: String
|
|
475
505
|
:param PasswordResetRequired: 可选参数,标识用户下次成功登录后是否需要设置新密码,带参数调用即为true,否则不带参数为false
|
|
476
506
|
:type PathPrefix: Boolean
|
|
@@ -511,12 +541,17 @@ class GetLoginProfileRequest(AbstractModel):
|
|
|
511
541
|
r"""查询登录配置信息
|
|
512
542
|
:param UserName: 要查询的IAM子用户名称
|
|
513
543
|
:type PathPrefix: String
|
|
544
|
+
:param NotCheckPassword: 该字段默认是0,0的情况查询未开启控制台访问的账号会抛出异常"LoginProfileNoSuchEntity",传1则都可以查看,可通过出参"ConsoleLogin"来判断是否开启了控制台访问和编程API访问。
|
|
545
|
+
:type PathPrefix: Int
|
|
514
546
|
"""
|
|
515
547
|
self.UserName = None
|
|
548
|
+
self.NotCheckPassword = None
|
|
516
549
|
|
|
517
550
|
def _deserialize(self, params):
|
|
518
551
|
if params.get("UserName"):
|
|
519
552
|
self.UserName = params.get("UserName")
|
|
553
|
+
if params.get("NotCheckPassword"):
|
|
554
|
+
self.NotCheckPassword = params.get("NotCheckPassword")
|
|
520
555
|
|
|
521
556
|
|
|
522
557
|
class CreateAccessKeyRequest(AbstractModel):
|
|
@@ -881,47 +916,42 @@ class CreateProjectRequest(AbstractModel):
|
|
|
881
916
|
self.ProjectDesc = params.get("ProjectDesc")
|
|
882
917
|
|
|
883
918
|
|
|
884
|
-
class
|
|
885
|
-
"""
|
|
919
|
+
class UpdateProjectInfoRequest(AbstractModel):
|
|
920
|
+
"""UpdateProjectInfo请求参数结构体
|
|
886
921
|
"""
|
|
887
922
|
|
|
888
923
|
def __init__(self):
|
|
889
|
-
r"""
|
|
924
|
+
r"""更新项目信息
|
|
925
|
+
:param ProjectId: ProjectId
|
|
926
|
+
:type PathPrefix: Int
|
|
927
|
+
:param ProjectName: 项目名称,最多64个字符
|
|
928
|
+
:type PathPrefix: String
|
|
929
|
+
:param ProjectDesc: 项目描述,最多64个字符
|
|
930
|
+
:type PathPrefix: String
|
|
890
931
|
"""
|
|
932
|
+
self.ProjectId = None
|
|
933
|
+
self.ProjectName = None
|
|
934
|
+
self.ProjectDesc = None
|
|
891
935
|
|
|
892
936
|
def _deserialize(self, params):
|
|
893
|
-
|
|
937
|
+
if params.get("ProjectId"):
|
|
938
|
+
self.ProjectId = params.get("ProjectId")
|
|
939
|
+
if params.get("ProjectName"):
|
|
940
|
+
self.ProjectName = params.get("ProjectName")
|
|
941
|
+
if params.get("ProjectDesc"):
|
|
942
|
+
self.ProjectDesc = params.get("ProjectDesc")
|
|
894
943
|
|
|
895
944
|
|
|
896
|
-
class
|
|
897
|
-
"""
|
|
945
|
+
class GetAccountAllProjectListRequest(AbstractModel):
|
|
946
|
+
"""GetAccountAllProjectList请求参数结构体
|
|
898
947
|
"""
|
|
899
948
|
|
|
900
949
|
def __init__(self):
|
|
901
|
-
r"""
|
|
902
|
-
:param ProjectId: 项目id
|
|
903
|
-
:type PathPrefix: Int
|
|
904
|
-
:param ProductLine: 资源类型标识
|
|
905
|
-
:type PathPrefix: String
|
|
906
|
-
:param Ps: 每页条数,默认10, 最大100条
|
|
907
|
-
:type PathPrefix: Int
|
|
908
|
-
:param Pn: 页码。默认1
|
|
909
|
-
:type PathPrefix: Int
|
|
950
|
+
r"""获取主/子用户项目列表
|
|
910
951
|
"""
|
|
911
|
-
self.ProjectId = None
|
|
912
|
-
self.ProductLine = None
|
|
913
|
-
self.Ps = None
|
|
914
|
-
self.Pn = None
|
|
915
952
|
|
|
916
953
|
def _deserialize(self, params):
|
|
917
|
-
|
|
918
|
-
self.ProjectId = params.get("ProjectId")
|
|
919
|
-
if params.get("ProductLine"):
|
|
920
|
-
self.ProductLine = params.get("ProductLine")
|
|
921
|
-
if params.get("Ps"):
|
|
922
|
-
self.Ps = params.get("Ps")
|
|
923
|
-
if params.get("Pn"):
|
|
924
|
-
self.Pn = params.get("Pn")
|
|
954
|
+
return
|
|
925
955
|
|
|
926
956
|
|
|
927
957
|
class UpdateInstanceProjectIdRequest(AbstractModel):
|
|
@@ -1076,15 +1106,20 @@ class UpdatePolicyRequest(AbstractModel):
|
|
|
1076
1106
|
:type PathPrefix: String
|
|
1077
1107
|
:param NewDescription: 新策略描述
|
|
1078
1108
|
:type PathPrefix: String
|
|
1109
|
+
:param NewPolicyName: 策略名称
|
|
1110
|
+
:type PathPrefix: String
|
|
1079
1111
|
"""
|
|
1080
1112
|
self.PolicyKrn = None
|
|
1081
1113
|
self.NewDescription = None
|
|
1114
|
+
self.NewPolicyName = None
|
|
1082
1115
|
|
|
1083
1116
|
def _deserialize(self, params):
|
|
1084
1117
|
if params.get("PolicyKrn"):
|
|
1085
1118
|
self.PolicyKrn = params.get("PolicyKrn")
|
|
1086
1119
|
if params.get("NewDescription"):
|
|
1087
1120
|
self.NewDescription = params.get("NewDescription")
|
|
1121
|
+
if params.get("NewPolicyName"):
|
|
1122
|
+
self.NewPolicyName = params.get("NewPolicyName")
|
|
1088
1123
|
|
|
1089
1124
|
|
|
1090
1125
|
class CreateGroupRequest(AbstractModel):
|
|
@@ -1100,15 +1135,20 @@ class CreateGroupRequest(AbstractModel):
|
|
|
1100
1135
|
:type PathPrefix: String
|
|
1101
1136
|
:param Description: 用户组描述,1-64字符
|
|
1102
1137
|
:type PathPrefix: String
|
|
1138
|
+
:param GroupRealName: 组别名
|
|
1139
|
+
:type PathPrefix: String
|
|
1103
1140
|
"""
|
|
1104
1141
|
self.GroupName = None
|
|
1105
1142
|
self.Description = None
|
|
1143
|
+
self.GroupRealName = None
|
|
1106
1144
|
|
|
1107
1145
|
def _deserialize(self, params):
|
|
1108
1146
|
if params.get("GroupName"):
|
|
1109
1147
|
self.GroupName = params.get("GroupName")
|
|
1110
1148
|
if params.get("Description"):
|
|
1111
1149
|
self.Description = params.get("Description")
|
|
1150
|
+
if params.get("GroupRealName"):
|
|
1151
|
+
self.GroupRealName = params.get("GroupRealName")
|
|
1112
1152
|
|
|
1113
1153
|
|
|
1114
1154
|
class DeleteGroupRequest(AbstractModel):
|
|
@@ -1311,6 +1351,58 @@ class RemoveUserFromGroupRequest(AbstractModel):
|
|
|
1311
1351
|
self.UserName = params.get("UserName")
|
|
1312
1352
|
|
|
1313
1353
|
|
|
1354
|
+
class UpdateGroupRequest(AbstractModel):
|
|
1355
|
+
"""UpdateGroup请求参数结构体
|
|
1356
|
+
"""
|
|
1357
|
+
|
|
1358
|
+
def __init__(self):
|
|
1359
|
+
r"""更新用户组基本信息
|
|
1360
|
+
:param GroupName: 要更新的用户组名称
|
|
1361
|
+
:type PathPrefix: String
|
|
1362
|
+
:param Description: 新用户组描述
|
|
1363
|
+
:type PathPrefix: String
|
|
1364
|
+
:param GroupRealName: 新别名
|
|
1365
|
+
:type PathPrefix: String
|
|
1366
|
+
"""
|
|
1367
|
+
self.GroupName = None
|
|
1368
|
+
self.Description = None
|
|
1369
|
+
self.GroupRealName = None
|
|
1370
|
+
|
|
1371
|
+
def _deserialize(self, params):
|
|
1372
|
+
if params.get("GroupName"):
|
|
1373
|
+
self.GroupName = params.get("GroupName")
|
|
1374
|
+
if params.get("Description"):
|
|
1375
|
+
self.Description = params.get("Description")
|
|
1376
|
+
if params.get("GroupRealName"):
|
|
1377
|
+
self.GroupRealName = params.get("GroupRealName")
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
class ListUsersForGroupRequest(AbstractModel):
|
|
1381
|
+
"""ListUsersForGroup请求参数结构体
|
|
1382
|
+
"""
|
|
1383
|
+
|
|
1384
|
+
def __init__(self):
|
|
1385
|
+
r"""获取组成员列表
|
|
1386
|
+
:param GroupName: 组名
|
|
1387
|
+
:type PathPrefix: String
|
|
1388
|
+
:param MaxItems: 默认500条,最大1000条
|
|
1389
|
+
:type PathPrefix: Int
|
|
1390
|
+
:param Page: 页码
|
|
1391
|
+
:type PathPrefix: Int
|
|
1392
|
+
"""
|
|
1393
|
+
self.GroupName = None
|
|
1394
|
+
self.MaxItems = None
|
|
1395
|
+
self.Page = None
|
|
1396
|
+
|
|
1397
|
+
def _deserialize(self, params):
|
|
1398
|
+
if params.get("GroupName"):
|
|
1399
|
+
self.GroupName = params.get("GroupName")
|
|
1400
|
+
if params.get("MaxItems"):
|
|
1401
|
+
self.MaxItems = params.get("MaxItems")
|
|
1402
|
+
if params.get("Page"):
|
|
1403
|
+
self.Page = params.get("Page")
|
|
1404
|
+
|
|
1405
|
+
|
|
1314
1406
|
class ListAllUserAccessKeysRequest(AbstractModel):
|
|
1315
1407
|
"""ListAllUserAccessKeys请求参数结构体
|
|
1316
1408
|
"""
|
|
@@ -1323,3 +1415,167 @@ class ListAllUserAccessKeysRequest(AbstractModel):
|
|
|
1323
1415
|
return
|
|
1324
1416
|
|
|
1325
1417
|
|
|
1418
|
+
class InsertInstanceToESRequest(AbstractModel):
|
|
1419
|
+
"""InsertInstanceToES请求参数结构体
|
|
1420
|
+
"""
|
|
1421
|
+
|
|
1422
|
+
def __init__(self):
|
|
1423
|
+
r"""非标实例插入es
|
|
1424
|
+
:param ProjectId:
|
|
1425
|
+
:type PathPrefix: Int
|
|
1426
|
+
:param ProductLine:
|
|
1427
|
+
:type PathPrefix: String
|
|
1428
|
+
:param ProductGroup:
|
|
1429
|
+
:type PathPrefix: Int
|
|
1430
|
+
:param ResourceType:
|
|
1431
|
+
:type PathPrefix: String
|
|
1432
|
+
:param InstanceId:
|
|
1433
|
+
:type PathPrefix: String
|
|
1434
|
+
:param RegionEn:
|
|
1435
|
+
:type PathPrefix: String
|
|
1436
|
+
:param InstanceName:
|
|
1437
|
+
:type PathPrefix: String
|
|
1438
|
+
"""
|
|
1439
|
+
self.ProjectId = None
|
|
1440
|
+
self.ProductLine = None
|
|
1441
|
+
self.ProductGroup = None
|
|
1442
|
+
self.ResourceType = None
|
|
1443
|
+
self.InstanceId = None
|
|
1444
|
+
self.RegionEn = None
|
|
1445
|
+
self.InstanceName = None
|
|
1446
|
+
|
|
1447
|
+
def _deserialize(self, params):
|
|
1448
|
+
if params.get("ProjectId"):
|
|
1449
|
+
self.ProjectId = params.get("ProjectId")
|
|
1450
|
+
if params.get("ProductLine"):
|
|
1451
|
+
self.ProductLine = params.get("ProductLine")
|
|
1452
|
+
if params.get("ProductGroup"):
|
|
1453
|
+
self.ProductGroup = params.get("ProductGroup")
|
|
1454
|
+
if params.get("ResourceType"):
|
|
1455
|
+
self.ResourceType = params.get("ResourceType")
|
|
1456
|
+
if params.get("InstanceId"):
|
|
1457
|
+
self.InstanceId = params.get("InstanceId")
|
|
1458
|
+
if params.get("RegionEn"):
|
|
1459
|
+
self.RegionEn = params.get("RegionEn")
|
|
1460
|
+
if params.get("InstanceName"):
|
|
1461
|
+
self.InstanceName = params.get("InstanceName")
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
class DelInstanceFromESRequest(AbstractModel):
|
|
1465
|
+
"""DelInstanceFromES请求参数结构体
|
|
1466
|
+
"""
|
|
1467
|
+
|
|
1468
|
+
def __init__(self):
|
|
1469
|
+
r"""删除非标实例
|
|
1470
|
+
:param ProductLine:
|
|
1471
|
+
:type PathPrefix: String
|
|
1472
|
+
:param InstanceId:
|
|
1473
|
+
:type PathPrefix: String
|
|
1474
|
+
"""
|
|
1475
|
+
self.ProductLine = None
|
|
1476
|
+
self.InstanceId = None
|
|
1477
|
+
|
|
1478
|
+
def _deserialize(self, params):
|
|
1479
|
+
if params.get("ProductLine"):
|
|
1480
|
+
self.ProductLine = params.get("ProductLine")
|
|
1481
|
+
if params.get("InstanceId"):
|
|
1482
|
+
self.InstanceId = params.get("InstanceId")
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
class GetAccountAllProjectsByParamsRequest(AbstractModel):
|
|
1486
|
+
"""GetAccountAllProjectsByParams请求参数结构体
|
|
1487
|
+
"""
|
|
1488
|
+
|
|
1489
|
+
def __init__(self):
|
|
1490
|
+
r"""根据参数获取账户项目列表
|
|
1491
|
+
:param Ps: 每页显示条数
|
|
1492
|
+
:type PathPrefix: Int
|
|
1493
|
+
:param Pn: 页码
|
|
1494
|
+
:type PathPrefix: Int
|
|
1495
|
+
:param ParamUserName: 子账号用户名
|
|
1496
|
+
:type PathPrefix: String
|
|
1497
|
+
:param ParamAccessKey: 该主账号下任意一个子账号的AccessKey
|
|
1498
|
+
:type PathPrefix: String
|
|
1499
|
+
"""
|
|
1500
|
+
self.Ps = None
|
|
1501
|
+
self.Pn = None
|
|
1502
|
+
self.ParamUserName = None
|
|
1503
|
+
self.ParamAccessKey = None
|
|
1504
|
+
|
|
1505
|
+
def _deserialize(self, params):
|
|
1506
|
+
if params.get("Ps"):
|
|
1507
|
+
self.Ps = params.get("Ps")
|
|
1508
|
+
if params.get("Pn"):
|
|
1509
|
+
self.Pn = params.get("Pn")
|
|
1510
|
+
if params.get("ParamUserName"):
|
|
1511
|
+
self.ParamUserName = params.get("ParamUserName")
|
|
1512
|
+
if params.get("ParamAccessKey"):
|
|
1513
|
+
self.ParamAccessKey = params.get("ParamAccessKey")
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
class SetUserSsoSettingsRequest(AbstractModel):
|
|
1517
|
+
"""SetUserSsoSettings请求参数结构体
|
|
1518
|
+
"""
|
|
1519
|
+
|
|
1520
|
+
def __init__(self):
|
|
1521
|
+
r"""设置用户SSO身份提供商信息
|
|
1522
|
+
:param Status: 是否开启用户 SSO
|
|
1523
|
+
0否 1是
|
|
1524
|
+
:type PathPrefix: Int
|
|
1525
|
+
:param Metadata:
|
|
1526
|
+
元数据文档。经过 Base64 编码
|
|
1527
|
+
:type PathPrefix: String
|
|
1528
|
+
:param Domain: 域名 状态开启时必填
|
|
1529
|
+
:type PathPrefix: String
|
|
1530
|
+
"""
|
|
1531
|
+
self.Status = None
|
|
1532
|
+
self.Metadata = None
|
|
1533
|
+
self.Domain = None
|
|
1534
|
+
|
|
1535
|
+
def _deserialize(self, params):
|
|
1536
|
+
if params.get("Status"):
|
|
1537
|
+
self.Status = params.get("Status")
|
|
1538
|
+
if params.get("Metadata"):
|
|
1539
|
+
self.Metadata = params.get("Metadata")
|
|
1540
|
+
if params.get("Domain"):
|
|
1541
|
+
self.Domain = params.get("Domain")
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
class GetUserSsoSettingsRequest(AbstractModel):
|
|
1545
|
+
"""GetUserSsoSettings请求参数结构体
|
|
1546
|
+
"""
|
|
1547
|
+
|
|
1548
|
+
def __init__(self):
|
|
1549
|
+
r"""查询用户SSO身份提供商信息
|
|
1550
|
+
"""
|
|
1551
|
+
|
|
1552
|
+
def _deserialize(self, params):
|
|
1553
|
+
return
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
class GetEffectivePoliciesRequest(AbstractModel):
|
|
1557
|
+
"""GetEffectivePolicies请求参数结构体
|
|
1558
|
+
"""
|
|
1559
|
+
|
|
1560
|
+
def __init__(self):
|
|
1561
|
+
r"""获取有效的策略信息
|
|
1562
|
+
:param PolicyName: 策略名称
|
|
1563
|
+
:type PathPrefix: String
|
|
1564
|
+
:param Page: 页码
|
|
1565
|
+
:type PathPrefix: Int
|
|
1566
|
+
:param MaxItems: 每页返回条数,最高500条
|
|
1567
|
+
:type PathPrefix: Int
|
|
1568
|
+
"""
|
|
1569
|
+
self.PolicyName = None
|
|
1570
|
+
self.Page = None
|
|
1571
|
+
self.MaxItems = None
|
|
1572
|
+
|
|
1573
|
+
def _deserialize(self, params):
|
|
1574
|
+
if params.get("PolicyName"):
|
|
1575
|
+
self.PolicyName = params.get("PolicyName")
|
|
1576
|
+
if params.get("Page"):
|
|
1577
|
+
self.Page = params.get("Page")
|
|
1578
|
+
if params.get("MaxItems"):
|
|
1579
|
+
self.MaxItems = params.get("MaxItems")
|
|
1580
|
+
|
|
1581
|
+
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class IamClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2024-05-13'
|
|
9
|
+
_endpoint = 'iam.api.ksyun.com'
|
|
10
|
+
_service = 'iam'
|
|
11
|
+
def GetProjectInstanceListNew(self, request):
|
|
12
|
+
"""获取项目资源列表(新)
|
|
13
|
+
:param request: Request instance for GetProjectInstanceListNew.
|
|
14
|
+
:type request: :class:`ksyun.client.iam.v20240513.models.GetProjectInstanceListNewRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("GetProjectInstanceListNew", params, "application/json")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class GetProjectInstanceListNewRequest(AbstractModel):
|
|
4
|
+
"""GetProjectInstanceListNew请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""获取项目资源列表(新)
|
|
9
|
+
:param ProjectId: 项目id,不传入该参数时将会查询所有ProjectId对应的数据
|
|
10
|
+
:type PathPrefix: Int
|
|
11
|
+
:param ProductLine: 资源类型标识
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param Ps: 每页条数,默认10, 最大100条
|
|
14
|
+
:type PathPrefix: Int
|
|
15
|
+
:param Pn: 页码。默认1
|
|
16
|
+
:type PathPrefix: Int
|
|
17
|
+
"""
|
|
18
|
+
self.ProjectId = None
|
|
19
|
+
self.ProductLine = None
|
|
20
|
+
self.Ps = None
|
|
21
|
+
self.Pn = None
|
|
22
|
+
|
|
23
|
+
def _deserialize(self, params):
|
|
24
|
+
if params.get("ProjectId"):
|
|
25
|
+
self.ProjectId = params.get("ProjectId")
|
|
26
|
+
if params.get("ProductLine"):
|
|
27
|
+
self.ProductLine = params.get("ProductLine")
|
|
28
|
+
if params.get("Ps"):
|
|
29
|
+
self.Ps = params.get("Ps")
|
|
30
|
+
if params.get("Pn"):
|
|
31
|
+
self.Pn = params.get("Pn")
|
|
32
|
+
|
|
33
|
+
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class IamClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2024-07-03'
|
|
9
|
+
_endpoint = 'iam.api.ksyun.com'
|
|
10
|
+
_service = 'iam'
|
|
11
|
+
def ProjectsInfoByInstanceIds(self, request):
|
|
12
|
+
"""根据实例ID查询所属项目
|
|
13
|
+
:param request: Request instance for ProjectsInfoByInstanceIds.
|
|
14
|
+
:type request: :class:`ksyun.client.iam.v20240703.models.ProjectsInfoByInstanceIdsRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("ProjectsInfoByInstanceIds", params, "application/x-www-form-urlencoded")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class ProjectsInfoByInstanceIdsRequest(AbstractModel):
|
|
4
|
+
"""ProjectsInfoByInstanceIds请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""根据实例ID查询所属项目
|
|
9
|
+
:param InstanceIds: 实例ID,多个英文逗号分隔,min:1 max:100
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
"""
|
|
12
|
+
self.InstanceIds = None
|
|
13
|
+
|
|
14
|
+
def _deserialize(self, params):
|
|
15
|
+
if params.get("InstanceIds"):
|
|
16
|
+
self.InstanceIds = params.get("InstanceIds")
|
|
17
|
+
|
|
18
|
+
|
|
File without changes
|
|
File without changes
|