kingsoftcloud-sdk-python 1.5.8.44__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.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/METADATA +24 -13
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/RECORD +118 -118
- {kingsoftcloud_sdk_python-1.5.8.44.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 +1 -3
- ksyun/client/aicp/v20240612/client.py +168 -53
- ksyun/client/aicp/v20240612/models.py +192 -7
- ksyun/client/aicp/v20251212/client.py +2 -2
- ksyun/client/aicp/v20251212/models.py +1 -1
- ksyun/client/bill/v20180601/client.py +3 -5
- ksyun/client/bill/v20220601/client.py +2 -4
- ksyun/client/bill_union/v20200101/client.py +9 -11
- ksyun/client/bill_union/v20200101/models.py +5 -5
- ksyun/client/bill_union/v20221222/client.py +6 -8
- ksyun/client/bill_union/v20250801/client.py +2 -4
- ksyun/client/bill_union/v20250801/models.py +1 -1
- ksyun/client/bws/v20160304/client.py +7 -9
- ksyun/client/cdn/v20160901/client.py +3 -5
- ksyun/client/cdn/v20200630/client.py +17 -19
- ksyun/client/cdn/v20200901/client.py +7 -9
- ksyun/client/cdn/v20211201/client.py +1 -3
- ksyun/client/cdn/v3/client.py +43 -45
- ksyun/client/cdn/v3/models.py +11 -11
- ksyun/client/cen/v20160304/client.py +26 -28
- ksyun/client/clickhouse/v20210101/client.py +39 -41
- ksyun/client/cloud_advisor/v20250610/client.py +3 -5
- ksyun/client/dmp/v20240101/client.py +20 -22
- ksyun/client/dts/v20180108/client.py +19 -21
- ksyun/client/ebs/v20160304/client.py +28 -30
- ksyun/client/ebs/v20160304/models.py +1 -1
- ksyun/client/eip/v20160304/client.py +12 -14
- ksyun/client/epc/v20151101/client.py +105 -107
- ksyun/client/epc/v20151101/models.py +19 -4
- ksyun/client/iam/v20151101/client.py +65 -67
- ksyun/client/iam/v20240513/client.py +1 -3
- ksyun/client/iam/v20240703/client.py +1 -3
- ksyun/client/influxdb/v20191010/client.py +27 -29
- ksyun/client/kad/v20161122/client.py +8 -10
- ksyun/client/kce/v20180314/client.py +17 -19
- ksyun/client/kce/v20190806/client.py +34 -36
- ksyun/client/kce/v20201231/client.py +1 -3
- ksyun/client/kce/v20230101/client.py +9 -11
- ksyun/client/kce/v20230306/client.py +22 -24
- ksyun/client/kce/v20231115/client.py +2 -4
- ksyun/client/kce2/v20230101/client.py +15 -17
- ksyun/client/kcf/v20211215/client.py +9 -11
- ksyun/client/kci/v20200702/client.py +15 -17
- ksyun/client/kci/v20200702/models.py +1 -1
- ksyun/client/kcm/v20160304/client.py +10 -12
- ksyun/client/kcrs/v20211109/client.py +44 -46
- ksyun/client/kcs/v20160701/client.py +66 -68
- ksyun/client/kcs/v20170401/client.py +1 -3
- ksyun/client/kcs/v20240701/client.py +1 -3
- ksyun/client/kead/v20200101/client.py +3 -5
- ksyun/client/kec/v20160304/client.py +565 -105
- ksyun/client/kec/v20160304/models.py +689 -22
- ksyun/client/ked/v1/client.py +44 -46
- ksyun/client/kes/v20201215/client.py +8 -10
- ksyun/client/ket/v20170101/client.py +8 -10
- ksyun/client/kfw/v20160304/client.py +648 -12
- ksyun/client/kfw/v20160304/models.py +1003 -9
- ksyun/client/kingpay/v1/client.py +1 -3
- ksyun/client/kkms/v20160304/client.py +8 -10
- ksyun/client/klog/v20200731/client.py +16 -18
- ksyun/client/kls/v20170101/client.py +8 -10
- ksyun/client/kmr/v20210902/client.py +23 -25
- ksyun/client/kmr/v20231231/client.py +7 -9
- ksyun/client/kmr/v20240814/client.py +19 -21
- ksyun/client/knad/v20230323/client.py +17 -19
- ksyun/client/kpfs/v20240930/client.py +54 -54
- ksyun/client/kpfs/v20240930/models.py +286 -81
- ksyun/client/krds/v20160701/client.py +91 -93
- ksyun/client/krds/v20200825/client.py +10 -12
- ksyun/client/memcached/v20180627/client.py +13 -15
- ksyun/client/milvus/v20231010/client.py +19 -21
- ksyun/client/mongodb/v20170101/client.py +44 -46
- ksyun/client/mongodb/v20250101/client.py +1 -3
- ksyun/client/monitor/v20100525/client.py +2 -4
- ksyun/client/monitor/v20181114/client.py +1 -3
- ksyun/client/monitor/v20210101/client.py +12 -14
- ksyun/client/monitor/v20220101/client.py +2 -4
- ksyun/client/monitor/v20250101/client.py +45 -3
- ksyun/client/monitor/v20250101/models.py +34 -2
- ksyun/client/pdns/v20160304/client.py +35 -37
- ksyun/client/postgresql/v20181225/client.py +50 -52
- ksyun/client/postgresql/v20181225/models.py +1 -1
- ksyun/client/rabbitmq/v20191017/client.py +19 -21
- ksyun/client/relyt/v20240117/client.py +1 -3
- ksyun/client/resourcemanager/v20210320/client.py +8 -10
- ksyun/client/sks/v20151101/client.py +6 -8
- ksyun/client/sks/v20151101/models.py +21 -2
- ksyun/client/slb/v20160304/client.py +93 -95
- ksyun/client/slb/v20160304/models.py +5 -5
- ksyun/client/slb/v20250430/client.py +35 -37
- ksyun/client/sqlserver/v20190425/client.py +46 -48
- ksyun/client/sts/v20151101/client.py +2 -4
- ksyun/client/tagv2/v20200901/client.py +10 -12
- ksyun/client/ter/v20240415/client.py +5 -7
- ksyun/client/tidb/v20210520/client.py +40 -42
- ksyun/client/trade/v20200114/client.py +1 -3
- ksyun/client/trade/v20200831/client.py +1 -3
- ksyun/client/trade/v20250220/client.py +4 -6
- ksyun/client/trade/v20250321/client.py +4 -6
- ksyun/client/trade/v20250828/client.py +1 -3
- ksyun/client/trade/v20250828/models.py +1 -1
- ksyun/client/vpc/v20160304/client.py +132 -134
- ksyun/client/vpc/v20160304/models.py +5 -0
- ksyun/client/waf/v20200707/client.py +20 -22
- ksyun/common/abstract_client.py +15 -3
- 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 +2 -0
- ksyun/common/profile/client_profile.py +3 -0
- ksyun/common/profile/http_profile.py +2 -0
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/licenses/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
|
@@ -1,191 +1,396 @@
|
|
|
1
1
|
from ksyun.common.abstract_model import AbstractModel
|
|
2
2
|
|
|
3
|
-
class
|
|
4
|
-
"""
|
|
3
|
+
class DescribeDirQuotaListRequest(AbstractModel):
|
|
4
|
+
"""DescribeDirQuotaList请求参数结构体
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
def __init__(self):
|
|
8
|
-
r"""
|
|
9
|
-
:param
|
|
10
|
-
:type PathPrefix: String
|
|
11
|
-
:param FileSystemList:
|
|
12
|
-
:type PathPrefix: Array
|
|
13
|
-
:param Ips:
|
|
14
|
-
:type PathPrefix: Array
|
|
15
|
-
:param AutoMount:
|
|
16
|
-
:type PathPrefix: Boolean
|
|
17
|
-
:param Desc:
|
|
8
|
+
r"""查询目录配额列表
|
|
9
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
18
10
|
:type PathPrefix: String
|
|
19
|
-
|
|
20
|
-
self.PosixAclId = None
|
|
21
|
-
self.FileSystemList = None
|
|
22
|
-
self.Ips = None
|
|
23
|
-
self.AutoMount = None
|
|
24
|
-
self.Desc = None
|
|
25
|
-
|
|
26
|
-
def _deserialize(self, params):
|
|
27
|
-
if params.get("PosixAclId"):
|
|
28
|
-
self.PosixAclId = params.get("PosixAclId")
|
|
29
|
-
if params.get("FileSystemList"):
|
|
30
|
-
self.FileSystemList = params.get("FileSystemList")
|
|
31
|
-
if params.get("Ips"):
|
|
32
|
-
self.Ips = params.get("Ips")
|
|
33
|
-
if params.get("AutoMount"):
|
|
34
|
-
self.AutoMount = params.get("AutoMount")
|
|
35
|
-
if params.get("Desc"):
|
|
36
|
-
self.Desc = params.get("Desc")
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class DescribePerformanceOnePosixAclListRequest(AbstractModel):
|
|
40
|
-
"""DescribePerformanceOnePosixAclList请求参数结构体
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
|
-
def __init__(self):
|
|
44
|
-
r"""查询访问授权列表
|
|
45
|
-
:param PosixAclId:
|
|
11
|
+
:param StoreClass: 存储类型,取值:KPFS-capacity(容量Ⅰ型)、KPFS-capacity2(容量Ⅱ型)、KPFS-standard(标准型)、KPFS-P-S01(性能Ⅰ型)、KPFS-P-S02(性能Ⅱ型)。
|
|
46
12
|
:type PathPrefix: String
|
|
47
|
-
:param
|
|
13
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
48
14
|
:type PathPrefix: String
|
|
49
|
-
:param FileSystemName:
|
|
15
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
50
16
|
:type PathPrefix: String
|
|
51
|
-
:param
|
|
17
|
+
:param DirPath: 目录路径模糊查询关键字,支持中间路径的模糊匹配,比如,存在目录配额/dir/subdir,查询关键字为subdir,那么会返回/dir/subdir的目录配额信息。注意:若不传入该参数,则返回文件系统下的目录配额列表。
|
|
52
18
|
:type PathPrefix: String
|
|
53
|
-
:param
|
|
19
|
+
:param FuzzySearch: 是否模糊查询,默认 true;精确查询时,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。
|
|
20
|
+
:type PathPrefix: Boolean
|
|
21
|
+
:param PageSize: 分页大小。默认为10。
|
|
54
22
|
:type PathPrefix: Int
|
|
55
|
-
:param
|
|
23
|
+
:param PageNum: 页码。默认为1。
|
|
56
24
|
:type PathPrefix: Int
|
|
57
25
|
"""
|
|
58
|
-
self.PosixAclId = None
|
|
59
26
|
self.FileSystemId = None
|
|
27
|
+
self.StoreClass = None
|
|
28
|
+
self.ClusterName = None
|
|
60
29
|
self.FileSystemName = None
|
|
61
|
-
self.
|
|
62
|
-
self.
|
|
30
|
+
self.DirPath = None
|
|
31
|
+
self.FuzzySearch = None
|
|
63
32
|
self.PageSize = None
|
|
33
|
+
self.PageNum = None
|
|
64
34
|
|
|
65
35
|
def _deserialize(self, params):
|
|
66
|
-
if params.get("PosixAclId"):
|
|
67
|
-
self.PosixAclId = params.get("PosixAclId")
|
|
68
36
|
if params.get("FileSystemId"):
|
|
69
37
|
self.FileSystemId = params.get("FileSystemId")
|
|
38
|
+
if params.get("StoreClass"):
|
|
39
|
+
self.StoreClass = params.get("StoreClass")
|
|
40
|
+
if params.get("ClusterName"):
|
|
41
|
+
self.ClusterName = params.get("ClusterName")
|
|
70
42
|
if params.get("FileSystemName"):
|
|
71
43
|
self.FileSystemName = params.get("FileSystemName")
|
|
72
|
-
if params.get("
|
|
73
|
-
self.
|
|
74
|
-
if params.get("
|
|
75
|
-
self.
|
|
44
|
+
if params.get("DirPath"):
|
|
45
|
+
self.DirPath = params.get("DirPath")
|
|
46
|
+
if params.get("FuzzySearch"):
|
|
47
|
+
self.FuzzySearch = params.get("FuzzySearch")
|
|
76
48
|
if params.get("PageSize"):
|
|
77
49
|
self.PageSize = params.get("PageSize")
|
|
50
|
+
if params.get("PageNum"):
|
|
51
|
+
self.PageNum = params.get("PageNum")
|
|
78
52
|
|
|
79
53
|
|
|
80
|
-
class
|
|
81
|
-
"""
|
|
54
|
+
class DeleteDirQuotaRequest(AbstractModel):
|
|
55
|
+
"""DeleteDirQuota请求参数结构体
|
|
82
56
|
"""
|
|
83
57
|
|
|
84
58
|
def __init__(self):
|
|
85
|
-
r"""
|
|
86
|
-
:param FileSystemId:
|
|
59
|
+
r"""删除目录配额
|
|
60
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
61
|
+
:type PathPrefix: String
|
|
62
|
+
:param StoreClass: 存储类型
|
|
63
|
+
:type PathPrefix: String
|
|
64
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取
|
|
65
|
+
:type PathPrefix: String
|
|
66
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节
|
|
67
|
+
:type PathPrefix: String
|
|
68
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/
|
|
87
69
|
:type PathPrefix: String
|
|
88
70
|
"""
|
|
89
71
|
self.FileSystemId = None
|
|
72
|
+
self.StoreClass = None
|
|
73
|
+
self.ClusterName = None
|
|
74
|
+
self.FileSystemName = None
|
|
75
|
+
self.DirPath = None
|
|
90
76
|
|
|
91
77
|
def _deserialize(self, params):
|
|
92
78
|
if params.get("FileSystemId"):
|
|
93
79
|
self.FileSystemId = params.get("FileSystemId")
|
|
80
|
+
if params.get("StoreClass"):
|
|
81
|
+
self.StoreClass = params.get("StoreClass")
|
|
82
|
+
if params.get("ClusterName"):
|
|
83
|
+
self.ClusterName = params.get("ClusterName")
|
|
84
|
+
if params.get("FileSystemName"):
|
|
85
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
86
|
+
if params.get("DirPath"):
|
|
87
|
+
self.DirPath = params.get("DirPath")
|
|
94
88
|
|
|
95
89
|
|
|
96
|
-
class
|
|
97
|
-
"""
|
|
90
|
+
class UpdateDirQuotaRequest(AbstractModel):
|
|
91
|
+
"""UpdateDirQuota请求参数结构体
|
|
98
92
|
"""
|
|
99
93
|
|
|
100
94
|
def __init__(self):
|
|
101
|
-
r"""
|
|
102
|
-
:param FileSystemId:
|
|
95
|
+
r"""修改目录配额
|
|
96
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
97
|
+
:type PathPrefix: String
|
|
98
|
+
:param StoreClass: 存储类型
|
|
99
|
+
:type PathPrefix: String
|
|
100
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取
|
|
101
|
+
:type PathPrefix: String
|
|
102
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节
|
|
103
103
|
:type PathPrefix: String
|
|
104
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1. 性能Ⅰ型/性能Ⅱ型存储池、文件系统名称、目录完整路径不允许修改,必须与原目录相同;2. 容量Ⅰ型/容量Ⅱ型/标准型,必须与原目录相同;3. 已设置目录配额的目录,才允许修改目录配额。
|
|
105
|
+
:type PathPrefix: String
|
|
106
|
+
:param LogicalHardThreshold: 容量硬阈值,不可超过文件系统容量配额,单位:Bytes
|
|
107
|
+
:type PathPrefix: Long
|
|
104
108
|
"""
|
|
105
109
|
self.FileSystemId = None
|
|
110
|
+
self.StoreClass = None
|
|
111
|
+
self.ClusterName = None
|
|
112
|
+
self.FileSystemName = None
|
|
113
|
+
self.DirPath = None
|
|
114
|
+
self.LogicalHardThreshold = None
|
|
106
115
|
|
|
107
116
|
def _deserialize(self, params):
|
|
108
117
|
if params.get("FileSystemId"):
|
|
109
118
|
self.FileSystemId = params.get("FileSystemId")
|
|
119
|
+
if params.get("StoreClass"):
|
|
120
|
+
self.StoreClass = params.get("StoreClass")
|
|
121
|
+
if params.get("ClusterName"):
|
|
122
|
+
self.ClusterName = params.get("ClusterName")
|
|
123
|
+
if params.get("FileSystemName"):
|
|
124
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
125
|
+
if params.get("DirPath"):
|
|
126
|
+
self.DirPath = params.get("DirPath")
|
|
127
|
+
if params.get("LogicalHardThreshold"):
|
|
128
|
+
self.LogicalHardThreshold = params.get("LogicalHardThreshold")
|
|
110
129
|
|
|
111
130
|
|
|
112
|
-
class
|
|
113
|
-
"""
|
|
131
|
+
class CreateDirQuotaRequest(AbstractModel):
|
|
132
|
+
"""CreateDirQuota请求参数结构体
|
|
114
133
|
"""
|
|
115
134
|
|
|
116
135
|
def __init__(self):
|
|
117
|
-
r"""
|
|
118
|
-
:param FileSystemId:
|
|
136
|
+
r"""新建目录配额
|
|
137
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
138
|
+
:type PathPrefix: String
|
|
139
|
+
:param StoreClass: 存储类型,取值:KPFS-capacity(容量Ⅰ型)、KPFS-capacity2(容量Ⅱ型)、KPFS-standard(标准型)、KPFS-P-S01(性能Ⅰ型)、KPFS-P-S02(性能Ⅱ型)。
|
|
140
|
+
:type PathPrefix: String
|
|
141
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
119
142
|
:type PathPrefix: String
|
|
143
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
144
|
+
:type PathPrefix: String
|
|
145
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1.性能Ⅰ型/性能Ⅱ型存储池、文件系统名称、目录完整路径不允许修改,必须与原目录相同;2.容量Ⅰ型/容量Ⅱ型/标准型,若目录不存在,接口会自动创建新目录;3.性能Ⅰ型/性能Ⅱ型,不支持为非空目录新增配额;4.无法为文件系统根目录设置配额,仅支持子目录;5.支持为各级目录设置配额,并且嵌套配额均取最小值作为该目录的阈值。比如:设置/dir配额为1MB,设置/dir/subdir配额为10MB,那么实际使用时会递归地向上查询,确保当前目录用量满足每一级目录的配额设置。
|
|
146
|
+
:type PathPrefix: String
|
|
147
|
+
:param LogicalHardThreshold: 容量硬阈值,不可超过文件系统容量配额。单位:Bytes。
|
|
148
|
+
:type PathPrefix: Long
|
|
120
149
|
"""
|
|
121
150
|
self.FileSystemId = None
|
|
151
|
+
self.StoreClass = None
|
|
152
|
+
self.ClusterName = None
|
|
153
|
+
self.FileSystemName = None
|
|
154
|
+
self.DirPath = None
|
|
155
|
+
self.LogicalHardThreshold = None
|
|
122
156
|
|
|
123
157
|
def _deserialize(self, params):
|
|
124
158
|
if params.get("FileSystemId"):
|
|
125
159
|
self.FileSystemId = params.get("FileSystemId")
|
|
160
|
+
if params.get("StoreClass"):
|
|
161
|
+
self.StoreClass = params.get("StoreClass")
|
|
162
|
+
if params.get("ClusterName"):
|
|
163
|
+
self.ClusterName = params.get("ClusterName")
|
|
164
|
+
if params.get("FileSystemName"):
|
|
165
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
166
|
+
if params.get("DirPath"):
|
|
167
|
+
self.DirPath = params.get("DirPath")
|
|
168
|
+
if params.get("LogicalHardThreshold"):
|
|
169
|
+
self.LogicalHardThreshold = params.get("LogicalHardThreshold")
|
|
126
170
|
|
|
127
171
|
|
|
128
|
-
class
|
|
129
|
-
"""
|
|
172
|
+
class DescribeSubDirListRequest(AbstractModel):
|
|
173
|
+
"""DescribeSubDirList请求参数结构体
|
|
130
174
|
"""
|
|
131
175
|
|
|
132
176
|
def __init__(self):
|
|
133
|
-
r"""
|
|
134
|
-
:param FileSystemId:
|
|
177
|
+
r"""查询文件系统或特定目录的子目录列表
|
|
178
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
179
|
+
:type PathPrefix: String
|
|
180
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
135
181
|
:type PathPrefix: String
|
|
182
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
183
|
+
:type PathPrefix: String
|
|
184
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
185
|
+
:type PathPrefix: String
|
|
186
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/;文件系统传入:/;目录传入路径:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/;目录最大深度255层,根目录是第一层。
|
|
187
|
+
:type PathPrefix: String
|
|
188
|
+
:param Name: 目录名称
|
|
189
|
+
:type PathPrefix: String
|
|
190
|
+
:param PageNum: 当前页码,最小值1,无上限
|
|
191
|
+
:type PathPrefix: Int
|
|
192
|
+
:param PageSize: 每页数量,默认值1000,最小值1,最大值1000
|
|
193
|
+
:type PathPrefix: Int
|
|
136
194
|
"""
|
|
137
195
|
self.FileSystemId = None
|
|
196
|
+
self.StoreClass = None
|
|
197
|
+
self.ClusterName = None
|
|
198
|
+
self.FileSystemName = None
|
|
199
|
+
self.DirPath = None
|
|
200
|
+
self.Name = None
|
|
201
|
+
self.PageNum = None
|
|
202
|
+
self.PageSize = None
|
|
138
203
|
|
|
139
204
|
def _deserialize(self, params):
|
|
140
205
|
if params.get("FileSystemId"):
|
|
141
206
|
self.FileSystemId = params.get("FileSystemId")
|
|
207
|
+
if params.get("StoreClass"):
|
|
208
|
+
self.StoreClass = params.get("StoreClass")
|
|
209
|
+
if params.get("ClusterName"):
|
|
210
|
+
self.ClusterName = params.get("ClusterName")
|
|
211
|
+
if params.get("FileSystemName"):
|
|
212
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
213
|
+
if params.get("DirPath"):
|
|
214
|
+
self.DirPath = params.get("DirPath")
|
|
215
|
+
if params.get("Name"):
|
|
216
|
+
self.Name = params.get("Name")
|
|
217
|
+
if params.get("PageNum"):
|
|
218
|
+
self.PageNum = params.get("PageNum")
|
|
219
|
+
if params.get("PageSize"):
|
|
220
|
+
self.PageSize = params.get("PageSize")
|
|
142
221
|
|
|
143
222
|
|
|
144
|
-
class
|
|
145
|
-
"""
|
|
223
|
+
class DeleteDirRequest(AbstractModel):
|
|
224
|
+
"""DeleteDir请求参数结构体
|
|
146
225
|
"""
|
|
147
226
|
|
|
148
227
|
def __init__(self):
|
|
149
|
-
r"""
|
|
150
|
-
:param FileSystemId:
|
|
228
|
+
r"""删除文件系统目录
|
|
229
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
230
|
+
:type PathPrefix: String
|
|
231
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
232
|
+
:type PathPrefix: String
|
|
233
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
234
|
+
:type PathPrefix: String
|
|
235
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
236
|
+
:type PathPrefix: String
|
|
237
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1.存储池、文件系统名称、目录完整路径不允许修改;2.必须与原目录相同;3.若目录中有文件,无法删除。
|
|
151
238
|
:type PathPrefix: String
|
|
152
239
|
"""
|
|
153
240
|
self.FileSystemId = None
|
|
241
|
+
self.StoreClass = None
|
|
242
|
+
self.ClusterName = None
|
|
243
|
+
self.FileSystemName = None
|
|
244
|
+
self.DirPath = None
|
|
154
245
|
|
|
155
246
|
def _deserialize(self, params):
|
|
156
247
|
if params.get("FileSystemId"):
|
|
157
248
|
self.FileSystemId = params.get("FileSystemId")
|
|
249
|
+
if params.get("StoreClass"):
|
|
250
|
+
self.StoreClass = params.get("StoreClass")
|
|
251
|
+
if params.get("ClusterName"):
|
|
252
|
+
self.ClusterName = params.get("ClusterName")
|
|
253
|
+
if params.get("FileSystemName"):
|
|
254
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
255
|
+
if params.get("DirPath"):
|
|
256
|
+
self.DirPath = params.get("DirPath")
|
|
158
257
|
|
|
159
258
|
|
|
160
|
-
class
|
|
161
|
-
"""
|
|
259
|
+
class UpdateDirRequest(AbstractModel):
|
|
260
|
+
"""UpdateDir请求参数结构体
|
|
162
261
|
"""
|
|
163
262
|
|
|
164
263
|
def __init__(self):
|
|
165
|
-
r"""
|
|
166
|
-
:param FileSystemId:
|
|
264
|
+
r"""修改文件系统目录
|
|
265
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
266
|
+
:type PathPrefix: String
|
|
267
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
167
268
|
:type PathPrefix: String
|
|
269
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
270
|
+
:type PathPrefix: String
|
|
271
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
272
|
+
:type PathPrefix: String
|
|
273
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。注意:1.存储池、文件系统名称、目录完整路径不允许修改;2.必须与原目录相同。
|
|
274
|
+
:type PathPrefix: String
|
|
275
|
+
:param FileSysPosixPermission: 文件读写权限,格式:十位二进制表示法。备注:默认为755 (-rwxr-xr-x),拥有者有读、写、执行权限;而属组用户和其他用户只有读、执行权限。
|
|
276
|
+
:type PathPrefix: Int
|
|
277
|
+
:param FileSysOwnerUserId: 文件所属用户的id。备注:设置为0时,为root权限。注意:所属用户的id和所属用户的用户组id须同时修改。
|
|
278
|
+
:type PathPrefix: Int
|
|
279
|
+
:param FileSysOwnerGroupId: 文件所属用户的用户组id。备注:设置为0时,为root权限。注意:所属用户的id和所属用户的用户组id须同时修改。
|
|
280
|
+
:type PathPrefix: Int
|
|
168
281
|
"""
|
|
169
282
|
self.FileSystemId = None
|
|
283
|
+
self.StoreClass = None
|
|
284
|
+
self.ClusterName = None
|
|
285
|
+
self.FileSystemName = None
|
|
286
|
+
self.DirPath = None
|
|
287
|
+
self.FileSysPosixPermission = None
|
|
288
|
+
self.FileSysOwnerUserId = None
|
|
289
|
+
self.FileSysOwnerGroupId = None
|
|
170
290
|
|
|
171
291
|
def _deserialize(self, params):
|
|
172
292
|
if params.get("FileSystemId"):
|
|
173
293
|
self.FileSystemId = params.get("FileSystemId")
|
|
294
|
+
if params.get("StoreClass"):
|
|
295
|
+
self.StoreClass = params.get("StoreClass")
|
|
296
|
+
if params.get("ClusterName"):
|
|
297
|
+
self.ClusterName = params.get("ClusterName")
|
|
298
|
+
if params.get("FileSystemName"):
|
|
299
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
300
|
+
if params.get("DirPath"):
|
|
301
|
+
self.DirPath = params.get("DirPath")
|
|
302
|
+
if params.get("FileSysPosixPermission"):
|
|
303
|
+
self.FileSysPosixPermission = params.get("FileSysPosixPermission")
|
|
304
|
+
if params.get("FileSysOwnerUserId"):
|
|
305
|
+
self.FileSysOwnerUserId = params.get("FileSysOwnerUserId")
|
|
306
|
+
if params.get("FileSysOwnerGroupId"):
|
|
307
|
+
self.FileSysOwnerGroupId = params.get("FileSysOwnerGroupId")
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class CreateDirRequest(AbstractModel):
|
|
311
|
+
"""CreateDir请求参数结构体
|
|
312
|
+
"""
|
|
174
313
|
|
|
314
|
+
def __init__(self):
|
|
315
|
+
r"""新建文件系统目录
|
|
316
|
+
:param FileSystemId: 指定文件系统支持2种方式,建议择一使用:1.通过文件系统ID(FileSystemId);2.输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。
|
|
317
|
+
:type PathPrefix: String
|
|
318
|
+
:param StoreClass: 存储类型 取值:KPFS-P-S01(性能Ⅰ型)KPFS-P-S02(性能Ⅱ型)。
|
|
319
|
+
:type PathPrefix: String
|
|
320
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取。
|
|
321
|
+
:type PathPrefix: String
|
|
322
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节。
|
|
323
|
+
:type PathPrefix: String
|
|
324
|
+
:param DirPath: 目录完整路径,格式 dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/。限制:1.创建目录的上一层目录必须存在,系统不会自动创建,不存在则报错: $path dose not exist;2.若目录中包含/,系统会自动用/将目录分层,报错信息同上。补充说明:针对目录名称的限制如下:字节长度1-254字节;不允许使用 /;不能设置为.和..。针对完整路径(文件系统名:/dir):最大1024字节。
|
|
325
|
+
:type PathPrefix: String
|
|
326
|
+
:param FileSysOwnerUserId: 文件所属用户的id,不可设置负数。有效值范围:0-(不校验范围)。备注:设置为0时,为root权限。UID和GID必须同时配置,或皆不配置。否则会报错。
|
|
327
|
+
:type PathPrefix: Int
|
|
328
|
+
:param FileSysOwnerGroupId: 文件所属用户的用户组id,不可设置负数。有效值范围:0- (不校验范围)。备注:设置为0时,为root权限。UID和GID必须同时配置,或皆不配置。否则会报错。
|
|
329
|
+
:type PathPrefix: Int
|
|
330
|
+
:param FileSysPosixPermission: 文件读写权限,格式:十位二进制表示法。备注:默认为755 (-rwxr-xr-x),拥有者有读、写、执行权限;而属组用户和其他用户只有读、执行权限。
|
|
331
|
+
:type PathPrefix: Int
|
|
332
|
+
"""
|
|
333
|
+
self.FileSystemId = None
|
|
334
|
+
self.StoreClass = None
|
|
335
|
+
self.ClusterName = None
|
|
336
|
+
self.FileSystemName = None
|
|
337
|
+
self.DirPath = None
|
|
338
|
+
self.FileSysOwnerUserId = None
|
|
339
|
+
self.FileSysOwnerGroupId = None
|
|
340
|
+
self.FileSysPosixPermission = None
|
|
175
341
|
|
|
176
|
-
|
|
177
|
-
|
|
342
|
+
def _deserialize(self, params):
|
|
343
|
+
if params.get("FileSystemId"):
|
|
344
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
345
|
+
if params.get("StoreClass"):
|
|
346
|
+
self.StoreClass = params.get("StoreClass")
|
|
347
|
+
if params.get("ClusterName"):
|
|
348
|
+
self.ClusterName = params.get("ClusterName")
|
|
349
|
+
if params.get("FileSystemName"):
|
|
350
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
351
|
+
if params.get("DirPath"):
|
|
352
|
+
self.DirPath = params.get("DirPath")
|
|
353
|
+
if params.get("FileSysOwnerUserId"):
|
|
354
|
+
self.FileSysOwnerUserId = params.get("FileSysOwnerUserId")
|
|
355
|
+
if params.get("FileSysOwnerGroupId"):
|
|
356
|
+
self.FileSysOwnerGroupId = params.get("FileSysOwnerGroupId")
|
|
357
|
+
if params.get("FileSysPosixPermission"):
|
|
358
|
+
self.FileSysPosixPermission = params.get("FileSysPosixPermission")
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
class DescribeDirQuotaRequest(AbstractModel):
|
|
362
|
+
"""DescribeDirQuota请求参数结构体
|
|
178
363
|
"""
|
|
179
364
|
|
|
180
365
|
def __init__(self):
|
|
181
|
-
r"""
|
|
182
|
-
:param FileSystemId:
|
|
366
|
+
r"""查询指定目录配额
|
|
367
|
+
:param FileSystemId: 文件系统的实例ID。性能Ⅰ型/性能Ⅱ型指定文件系统支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 存储池名称(ClusterName) + 文件系统名称(FileSystemName)同时必填。容量Ⅰ型/容量Ⅱ型/标准型支持2种方式,建议择一使用:1. 通过文件系统ID(FileSystemId);2. 输入文件系统完整信息,存储类型(StoreClass) + 文件系统名称(FileSystemName)同时必填。
|
|
368
|
+
:type PathPrefix: String
|
|
369
|
+
:param StoreClass: 存储类型
|
|
370
|
+
:type PathPrefix: String
|
|
371
|
+
:param ClusterName: 存储池名称,从控制台>文件系统详情>资源池获取
|
|
372
|
+
:type PathPrefix: String
|
|
373
|
+
:param FileSystemName: 文件系统名称,名称最大长度63字节
|
|
374
|
+
:type PathPrefix: String
|
|
375
|
+
:param DirPath: 目录完整路径,格式:dir/xxx 或 /dir/xxx 或 dir/xxx/ 或 /dir/xxx/
|
|
183
376
|
:type PathPrefix: String
|
|
184
377
|
"""
|
|
185
378
|
self.FileSystemId = None
|
|
379
|
+
self.StoreClass = None
|
|
380
|
+
self.ClusterName = None
|
|
381
|
+
self.FileSystemName = None
|
|
382
|
+
self.DirPath = None
|
|
186
383
|
|
|
187
384
|
def _deserialize(self, params):
|
|
188
385
|
if params.get("FileSystemId"):
|
|
189
386
|
self.FileSystemId = params.get("FileSystemId")
|
|
387
|
+
if params.get("StoreClass"):
|
|
388
|
+
self.StoreClass = params.get("StoreClass")
|
|
389
|
+
if params.get("ClusterName"):
|
|
390
|
+
self.ClusterName = params.get("ClusterName")
|
|
391
|
+
if params.get("FileSystemName"):
|
|
392
|
+
self.FileSystemName = params.get("FileSystemName")
|
|
393
|
+
if params.get("DirPath"):
|
|
394
|
+
self.DirPath = params.get("DirPath")
|
|
190
395
|
|
|
191
396
|
|