baiducloud-python-sdk-pfs 0.0.12__py3-none-any.whl → 0.0.14__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.
- baiducloud_python_sdk_pfs/__init__.py +1 -1
- baiducloud_python_sdk_pfs/models/__init__.py +1 -0
- baiducloud_python_sdk_pfs/models/bucket_link_info.py +11 -0
- baiducloud_python_sdk_pfs/models/create_l2_bucket_link_request.py +10 -0
- baiducloud_python_sdk_pfs/models/create_l2_policy_request.py +10 -0
- baiducloud_python_sdk_pfs/models/create_pfs_request.py +20 -2
- baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_response.py +10 -0
- baiducloud_python_sdk_pfs/models/desc_l2_policy_response.py +10 -0
- baiducloud_python_sdk_pfs/models/desc_pfs_response.py +18 -0
- baiducloud_python_sdk_pfs/models/list_l2_bucket_link_request.py +1 -1
- baiducloud_python_sdk_pfs/models/path_filter.py +66 -0
- baiducloud_python_sdk_pfs/models/policy_info.py +11 -0
- {baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/METADATA +1 -1
- {baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/RECORD +17 -16
- {baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/LICENSE +0 -0
- {baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/WHEEL +0 -0
- {baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/top_level.txt +0 -0
|
@@ -74,6 +74,7 @@ from .mount_target_info import MountTargetInfo
|
|
|
74
74
|
from .mount_target_list_clients_request import MountTargetListClientsRequest
|
|
75
75
|
from .mount_target_list_clients_response import MountTargetListClientsResponse
|
|
76
76
|
from .node_info import NodeInfo
|
|
77
|
+
from .path_filter import PathFilter
|
|
77
78
|
from .pause_l2_bucket_link_request import PauseL2BucketLinkRequest
|
|
78
79
|
from .pause_l2_bucket_link_response import PauseL2BucketLinkResponse
|
|
79
80
|
from .policy_info import PolicyInfo
|
|
@@ -4,6 +4,8 @@ BucketLinkInfo information
|
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
6
|
|
|
7
|
+
from baiducloud_python_sdk_pfs.models.path_filter import PathFilter
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
class BucketLinkInfo(AbstractModel):
|
|
9
11
|
"""
|
|
@@ -29,6 +31,7 @@ class BucketLinkInfo(AbstractModel):
|
|
|
29
31
|
bucket_belong_user_id=None,
|
|
30
32
|
lcc_id=None,
|
|
31
33
|
scope=None,
|
|
34
|
+
path_filters=None,
|
|
32
35
|
):
|
|
33
36
|
"""
|
|
34
37
|
Initialize BucketLinkInfo instance.
|
|
@@ -83,6 +86,9 @@ class BucketLinkInfo(AbstractModel):
|
|
|
83
86
|
|
|
84
87
|
:param scope: 任务可见范围,1:主账号以及子账号全部可见,2:仅主账号和子账号可见
|
|
85
88
|
:type scope: int (optional)
|
|
89
|
+
|
|
90
|
+
:param path_filters: 路径过滤规则,未设置时为null。type:0 后缀匹配,1 路径匹配;pattern:匹配规则
|
|
91
|
+
:type path_filters: List[PathFilter] (optional)
|
|
86
92
|
"""
|
|
87
93
|
super().__init__()
|
|
88
94
|
self.bucketlink_id = bucketlink_id
|
|
@@ -102,6 +108,7 @@ class BucketLinkInfo(AbstractModel):
|
|
|
102
108
|
self.bucket_belong_user_id = bucket_belong_user_id
|
|
103
109
|
self.lcc_id = lcc_id
|
|
104
110
|
self.scope = scope
|
|
111
|
+
self.path_filters = path_filters
|
|
105
112
|
|
|
106
113
|
def to_dict(self):
|
|
107
114
|
"""
|
|
@@ -150,6 +157,8 @@ class BucketLinkInfo(AbstractModel):
|
|
|
150
157
|
result['lccId'] = self.lcc_id
|
|
151
158
|
if self.scope is not None:
|
|
152
159
|
result['scope'] = self.scope
|
|
160
|
+
if self.path_filters is not None:
|
|
161
|
+
result['pathFilters'] = [i.to_dict() for i in self.path_filters]
|
|
153
162
|
return result
|
|
154
163
|
|
|
155
164
|
def from_dict(self, m):
|
|
@@ -202,4 +211,6 @@ class BucketLinkInfo(AbstractModel):
|
|
|
202
211
|
self.lcc_id = m.get('lccId')
|
|
203
212
|
if m.get('scope') is not None:
|
|
204
213
|
self.scope = m.get('scope')
|
|
214
|
+
if m.get('pathFilters') is not None:
|
|
215
|
+
self.path_filters = [PathFilter().from_dict(i) for i in m.get('pathFilters')]
|
|
205
216
|
return self
|
|
@@ -3,6 +3,7 @@ Request entity for CreateL2BucketLinkRequest information.
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_pfs.models.path_filter import PathFilter
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class CreateL2BucketLinkRequest(AbstractModel):
|
|
@@ -27,6 +28,7 @@ class CreateL2BucketLinkRequest(AbstractModel):
|
|
|
27
28
|
bucket_belong_user_id=None,
|
|
28
29
|
lcc_id=None,
|
|
29
30
|
scope=None,
|
|
31
|
+
path_filters=None,
|
|
30
32
|
):
|
|
31
33
|
"""
|
|
32
34
|
Initialize CreateL2BucketLinkRequest request entity.
|
|
@@ -69,6 +71,9 @@ class CreateL2BucketLinkRequest(AbstractModel):
|
|
|
69
71
|
|
|
70
72
|
:param scope: 任务可见范围,1:主账号以及子账号全部可见,2:仅主账号和子账号可见
|
|
71
73
|
:type scope: int (optional)
|
|
74
|
+
|
|
75
|
+
:param path_filters: path_filters parameter
|
|
76
|
+
:type path_filters: List[PathFilter] (optional)
|
|
72
77
|
"""
|
|
73
78
|
super().__init__()
|
|
74
79
|
self.instance_id = instance_id
|
|
@@ -84,6 +89,7 @@ class CreateL2BucketLinkRequest(AbstractModel):
|
|
|
84
89
|
self.bucket_belong_user_id = bucket_belong_user_id
|
|
85
90
|
self.lcc_id = lcc_id
|
|
86
91
|
self.scope = scope
|
|
92
|
+
self.path_filters = path_filters
|
|
87
93
|
|
|
88
94
|
def to_dict(self):
|
|
89
95
|
"""
|
|
@@ -124,6 +130,8 @@ class CreateL2BucketLinkRequest(AbstractModel):
|
|
|
124
130
|
result['lccId'] = self.lcc_id
|
|
125
131
|
if self.scope is not None:
|
|
126
132
|
result['scope'] = self.scope
|
|
133
|
+
if self.path_filters is not None:
|
|
134
|
+
result['pathFilters'] = [i.to_dict() for i in self.path_filters]
|
|
127
135
|
return result
|
|
128
136
|
|
|
129
137
|
def from_dict(self, m):
|
|
@@ -168,4 +176,6 @@ class CreateL2BucketLinkRequest(AbstractModel):
|
|
|
168
176
|
self.lcc_id = m.get('lccId')
|
|
169
177
|
if m.get('scope') is not None:
|
|
170
178
|
self.scope = m.get('scope')
|
|
179
|
+
if m.get('pathFilters') is not None:
|
|
180
|
+
self.path_filters = [PathFilter().from_dict(i) for i in m.get('pathFilters')]
|
|
171
181
|
return self
|
|
@@ -3,6 +3,7 @@ Request entity for CreateL2PolicyRequest information.
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_pfs.models.path_filter import PathFilter
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class CreateL2PolicyRequest(AbstractModel):
|
|
@@ -22,6 +23,7 @@ class CreateL2PolicyRequest(AbstractModel):
|
|
|
22
23
|
execute_time=None,
|
|
23
24
|
bucket_name=None,
|
|
24
25
|
bucket_prefix=None,
|
|
26
|
+
path_filters=None,
|
|
25
27
|
):
|
|
26
28
|
"""
|
|
27
29
|
Initialize CreateL2PolicyRequest request entity.
|
|
@@ -49,6 +51,9 @@ class CreateL2PolicyRequest(AbstractModel):
|
|
|
49
51
|
|
|
50
52
|
:param bucket_prefix: 数据转存对应的prefix,当type为数据转存时,该字段必须声明prefix非\"/'开头,以\"/\"结尾
|
|
51
53
|
:type bucket_prefix: str (optional)
|
|
54
|
+
|
|
55
|
+
:param path_filters: path_filters parameter
|
|
56
|
+
:type path_filters: List[PathFilter] (optional)
|
|
52
57
|
"""
|
|
53
58
|
super().__init__()
|
|
54
59
|
self.instance_id = instance_id
|
|
@@ -59,6 +64,7 @@ class CreateL2PolicyRequest(AbstractModel):
|
|
|
59
64
|
self.execute_time = execute_time
|
|
60
65
|
self.bucket_name = bucket_name
|
|
61
66
|
self.bucket_prefix = bucket_prefix
|
|
67
|
+
self.path_filters = path_filters
|
|
62
68
|
|
|
63
69
|
def to_dict(self):
|
|
64
70
|
"""
|
|
@@ -89,6 +95,8 @@ class CreateL2PolicyRequest(AbstractModel):
|
|
|
89
95
|
result['bucketName'] = self.bucket_name
|
|
90
96
|
if self.bucket_prefix is not None:
|
|
91
97
|
result['bucketPrefix'] = self.bucket_prefix
|
|
98
|
+
if self.path_filters is not None:
|
|
99
|
+
result['pathFilters'] = [i.to_dict() for i in self.path_filters]
|
|
92
100
|
return result
|
|
93
101
|
|
|
94
102
|
def from_dict(self, m):
|
|
@@ -123,4 +131,6 @@ class CreateL2PolicyRequest(AbstractModel):
|
|
|
123
131
|
self.bucket_name = m.get('bucketName')
|
|
124
132
|
if m.get('bucketPrefix') is not None:
|
|
125
133
|
self.bucket_prefix = m.get('bucketPrefix')
|
|
134
|
+
if m.get('pathFilters') is not None:
|
|
135
|
+
self.path_filters = [PathFilter().from_dict(i) for i in m.get('pathFilters')]
|
|
126
136
|
return self
|
|
@@ -13,14 +13,24 @@ class CreatePfsRequest(AbstractModel):
|
|
|
13
13
|
This class encapsulates all parameters for the API request.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
def __init__(
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
name,
|
|
19
|
+
instance_type,
|
|
20
|
+
capacity=None,
|
|
21
|
+
zone=None,
|
|
22
|
+
subnet_id=None,
|
|
23
|
+
description=None,
|
|
24
|
+
tags=None,
|
|
25
|
+
resource_group_id=None,
|
|
26
|
+
):
|
|
17
27
|
"""
|
|
18
28
|
Initialize CreatePfsRequest request entity.
|
|
19
29
|
|
|
20
30
|
:param name: name parameter
|
|
21
31
|
:type name: str (required)
|
|
22
32
|
|
|
23
|
-
:param instance_type: 可选类型包括:base、basic、baseX、plus、plus2、plusl2X
|
|
33
|
+
:param instance_type: 可选类型包括:base、basic、baseX、plus、plus2、plusl2X、plusl3_p1
|
|
24
34
|
:type instance_type: str (required)
|
|
25
35
|
|
|
26
36
|
:param capacity: capacity parameter
|
|
@@ -37,6 +47,9 @@ class CreatePfsRequest(AbstractModel):
|
|
|
37
47
|
|
|
38
48
|
:param tags: 实例标签
|
|
39
49
|
:type tags: List[Tag] (optional)
|
|
50
|
+
|
|
51
|
+
:param resource_group_id: 资源所属资源分组 ID,格式通常为 RESG- 开头;不传或为空时使用默认分组
|
|
52
|
+
:type resource_group_id: str (optional)
|
|
40
53
|
"""
|
|
41
54
|
super().__init__()
|
|
42
55
|
self.name = name
|
|
@@ -46,6 +59,7 @@ class CreatePfsRequest(AbstractModel):
|
|
|
46
59
|
self.subnet_id = subnet_id
|
|
47
60
|
self.description = description
|
|
48
61
|
self.tags = tags
|
|
62
|
+
self.resource_group_id = resource_group_id
|
|
49
63
|
|
|
50
64
|
def to_dict(self):
|
|
51
65
|
"""
|
|
@@ -74,6 +88,8 @@ class CreatePfsRequest(AbstractModel):
|
|
|
74
88
|
result['description'] = self.description
|
|
75
89
|
if self.tags is not None:
|
|
76
90
|
result['tags'] = [i.to_dict() for i in self.tags]
|
|
91
|
+
if self.resource_group_id is not None:
|
|
92
|
+
result['resourceGroupId'] = self.resource_group_id
|
|
77
93
|
return result
|
|
78
94
|
|
|
79
95
|
def from_dict(self, m):
|
|
@@ -106,4 +122,6 @@ class CreatePfsRequest(AbstractModel):
|
|
|
106
122
|
self.description = m.get('description')
|
|
107
123
|
if m.get('tags') is not None:
|
|
108
124
|
self.tags = [Tag().from_dict(i) for i in m.get('tags')]
|
|
125
|
+
if m.get('resourceGroupId') is not None:
|
|
126
|
+
self.resource_group_id = m.get('resourceGroupId')
|
|
109
127
|
return self
|
|
@@ -3,6 +3,7 @@ Request entity for DescL2BucketLinkResponse information.
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_pfs.models.path_filter import PathFilter
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class DescL2BucketLinkResponse(BceResponse):
|
|
@@ -30,6 +31,7 @@ class DescL2BucketLinkResponse(BceResponse):
|
|
|
30
31
|
bucket_belong_user_id=None,
|
|
31
32
|
lcc_id=None,
|
|
32
33
|
scope=None,
|
|
34
|
+
path_filters=None,
|
|
33
35
|
):
|
|
34
36
|
"""
|
|
35
37
|
Initialize DescL2BucketLinkResponse response.
|
|
@@ -87,6 +89,9 @@ class DescL2BucketLinkResponse(BceResponse):
|
|
|
87
89
|
|
|
88
90
|
:param scope: 任务可见范围,1:主账号以及子账号全部可见,2:仅主账号和子账号可见
|
|
89
91
|
:type scope: int (optional)
|
|
92
|
+
|
|
93
|
+
:param path_filters: 路径过滤规则,未设置时为null。type:0 后缀匹配,1 路径匹配;pattern:匹配规则
|
|
94
|
+
:type path_filters: List[PathFilter] (optional)
|
|
90
95
|
"""
|
|
91
96
|
super().__init__()
|
|
92
97
|
self.request_id = request_id
|
|
@@ -107,6 +112,7 @@ class DescL2BucketLinkResponse(BceResponse):
|
|
|
107
112
|
self.bucket_belong_user_id = bucket_belong_user_id
|
|
108
113
|
self.lcc_id = lcc_id
|
|
109
114
|
self.scope = scope
|
|
115
|
+
self.path_filters = path_filters
|
|
110
116
|
|
|
111
117
|
def to_dict(self):
|
|
112
118
|
"""
|
|
@@ -160,6 +166,8 @@ class DescL2BucketLinkResponse(BceResponse):
|
|
|
160
166
|
result['lccId'] = self.lcc_id
|
|
161
167
|
if self.scope is not None:
|
|
162
168
|
result['scope'] = self.scope
|
|
169
|
+
if self.path_filters is not None:
|
|
170
|
+
result['pathFilters'] = [i.to_dict() for i in self.path_filters]
|
|
163
171
|
return result
|
|
164
172
|
|
|
165
173
|
def from_dict(self, m):
|
|
@@ -214,4 +222,6 @@ class DescL2BucketLinkResponse(BceResponse):
|
|
|
214
222
|
self.lcc_id = m.get('lccId')
|
|
215
223
|
if m.get('scope') is not None:
|
|
216
224
|
self.scope = m.get('scope')
|
|
225
|
+
if m.get('pathFilters') is not None:
|
|
226
|
+
self.path_filters = [PathFilter().from_dict(i) for i in m.get('pathFilters')]
|
|
217
227
|
return self
|
|
@@ -3,6 +3,7 @@ Request entity for DescL2PolicyResponse information.
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_pfs.models.path_filter import PathFilter
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class DescL2PolicyResponse(BceResponse):
|
|
@@ -23,6 +24,7 @@ class DescL2PolicyResponse(BceResponse):
|
|
|
23
24
|
type=None,
|
|
24
25
|
bos_path=None,
|
|
25
26
|
status=None,
|
|
27
|
+
path_filters=None,
|
|
26
28
|
):
|
|
27
29
|
"""
|
|
28
30
|
Initialize DescL2PolicyResponse response.
|
|
@@ -59,6 +61,9 @@ class DescL2PolicyResponse(BceResponse):
|
|
|
59
61
|
|
|
60
62
|
:param status: 规则当前状态:<br><li>0:生效中<br><li>1:运行中<br><li>2:删除中<br><li>3:失败
|
|
61
63
|
:type status: int (optional)
|
|
64
|
+
|
|
65
|
+
:param path_filters: 路径过滤规则,未设置时不返回。type:0 后缀匹配,1 路径匹配;pattern:匹配规则
|
|
66
|
+
:type path_filters: List[PathFilter] (optional)
|
|
62
67
|
"""
|
|
63
68
|
super().__init__()
|
|
64
69
|
self.request_id = request_id
|
|
@@ -72,6 +77,7 @@ class DescL2PolicyResponse(BceResponse):
|
|
|
72
77
|
self.type = type
|
|
73
78
|
self.bos_path = bos_path
|
|
74
79
|
self.status = status
|
|
80
|
+
self.path_filters = path_filters
|
|
75
81
|
|
|
76
82
|
def to_dict(self):
|
|
77
83
|
"""
|
|
@@ -111,6 +117,8 @@ class DescL2PolicyResponse(BceResponse):
|
|
|
111
117
|
result['bosPath'] = self.bos_path
|
|
112
118
|
if self.status is not None:
|
|
113
119
|
result['status'] = self.status
|
|
120
|
+
if self.path_filters is not None:
|
|
121
|
+
result['pathFilters'] = [i.to_dict() for i in self.path_filters]
|
|
114
122
|
return result
|
|
115
123
|
|
|
116
124
|
def from_dict(self, m):
|
|
@@ -151,4 +159,6 @@ class DescL2PolicyResponse(BceResponse):
|
|
|
151
159
|
self.bos_path = m.get('bosPath')
|
|
152
160
|
if m.get('status') is not None:
|
|
153
161
|
self.status = m.get('status')
|
|
162
|
+
if m.get('pathFilters') is not None:
|
|
163
|
+
self.path_filters = [PathFilter().from_dict(i) for i in m.get('pathFilters')]
|
|
154
164
|
return self
|
|
@@ -27,6 +27,8 @@ class DescPfsResponse(BceResponse):
|
|
|
27
27
|
usage=None,
|
|
28
28
|
vpc_id=None,
|
|
29
29
|
tags=None,
|
|
30
|
+
resource_group_id=None,
|
|
31
|
+
resource_group_name=None,
|
|
30
32
|
):
|
|
31
33
|
"""
|
|
32
34
|
Initialize DescPfsResponse response.
|
|
@@ -69,6 +71,12 @@ class DescPfsResponse(BceResponse):
|
|
|
69
71
|
|
|
70
72
|
:param tags: PFS绑定的标签
|
|
71
73
|
:type tags: List[Tag] (optional)
|
|
74
|
+
|
|
75
|
+
:param resource_group_id: 资源所属资源分组 ID,格式通常为 RESG- 开头
|
|
76
|
+
:type resource_group_id: str (optional)
|
|
77
|
+
|
|
78
|
+
:param resource_group_name: 资源所属资源分组名称;可能为空或不返回,调用方需兼容
|
|
79
|
+
:type resource_group_name: str (optional)
|
|
72
80
|
"""
|
|
73
81
|
super().__init__()
|
|
74
82
|
self.capacity = capacity
|
|
@@ -84,6 +92,8 @@ class DescPfsResponse(BceResponse):
|
|
|
84
92
|
self.usage = usage
|
|
85
93
|
self.vpc_id = vpc_id
|
|
86
94
|
self.tags = tags
|
|
95
|
+
self.resource_group_id = resource_group_id
|
|
96
|
+
self.resource_group_name = resource_group_name
|
|
87
97
|
|
|
88
98
|
def to_dict(self):
|
|
89
99
|
"""
|
|
@@ -127,6 +137,10 @@ class DescPfsResponse(BceResponse):
|
|
|
127
137
|
result['vpcId'] = self.vpc_id
|
|
128
138
|
if self.tags is not None:
|
|
129
139
|
result['tags'] = [i.to_dict() for i in self.tags]
|
|
140
|
+
if self.resource_group_id is not None:
|
|
141
|
+
result['resourceGroupId'] = self.resource_group_id
|
|
142
|
+
if self.resource_group_name is not None:
|
|
143
|
+
result['resourceGroupName'] = self.resource_group_name
|
|
130
144
|
return result
|
|
131
145
|
|
|
132
146
|
def from_dict(self, m):
|
|
@@ -171,4 +185,8 @@ class DescPfsResponse(BceResponse):
|
|
|
171
185
|
self.vpc_id = m.get('vpcId')
|
|
172
186
|
if m.get('tags') is not None:
|
|
173
187
|
self.tags = [Tag().from_dict(i) for i in m.get('tags')]
|
|
188
|
+
if m.get('resourceGroupId') is not None:
|
|
189
|
+
self.resource_group_id = m.get('resourceGroupId')
|
|
190
|
+
if m.get('resourceGroupName') is not None:
|
|
191
|
+
self.resource_group_name = m.get('resourceGroupName')
|
|
174
192
|
return self
|
|
@@ -19,7 +19,7 @@ class ListL2BucketLinkRequest(AbstractModel):
|
|
|
19
19
|
:param instance_id: PFS实例ID
|
|
20
20
|
:type instance_id: str (required)
|
|
21
21
|
|
|
22
|
-
:param max_keys: 返回bucketlink列表长度,默认为
|
|
22
|
+
:param max_keys: 返回bucketlink列表长度,默认为50个,取值范围为【1,50】,超过范围的规整为1或50
|
|
23
23
|
:type max_keys: int (optional)
|
|
24
24
|
|
|
25
25
|
:param manner: 请求的分段类型,必须指定marker
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
PathFilter information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PathFilter(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
PathFilter
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, type=None, pattern=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize PathFilter instance.
|
|
16
|
+
|
|
17
|
+
:param type: 过滤类型。0 后缀匹配(SUFFIX);1 路径匹配(PATH_PATTERN)
|
|
18
|
+
:type type: int (optional)
|
|
19
|
+
|
|
20
|
+
:param pattern: 匹配规则,最长1000字节。
|
|
21
|
+
:type pattern: str (optional)
|
|
22
|
+
"""
|
|
23
|
+
super().__init__()
|
|
24
|
+
self.type = type
|
|
25
|
+
self.pattern = pattern
|
|
26
|
+
|
|
27
|
+
def to_dict(self):
|
|
28
|
+
"""
|
|
29
|
+
Convert the model instance to a dictionary representation.
|
|
30
|
+
|
|
31
|
+
Nested model objects are recursively converted to dictionaries.
|
|
32
|
+
|
|
33
|
+
:return: Dictionary representation of the model
|
|
34
|
+
:rtype: dict
|
|
35
|
+
"""
|
|
36
|
+
_map = super().to_dict()
|
|
37
|
+
if _map is not None:
|
|
38
|
+
return _map
|
|
39
|
+
result = dict()
|
|
40
|
+
if self.type is not None:
|
|
41
|
+
result['type'] = self.type
|
|
42
|
+
if self.pattern is not None:
|
|
43
|
+
result['pattern'] = self.pattern
|
|
44
|
+
return result
|
|
45
|
+
|
|
46
|
+
def from_dict(self, m):
|
|
47
|
+
"""
|
|
48
|
+
Populate the model instance from a dictionary.
|
|
49
|
+
|
|
50
|
+
Nested dictionaries are recursively converted to model objects.
|
|
51
|
+
|
|
52
|
+
:param m: Dictionary containing model data
|
|
53
|
+
:type m: dict
|
|
54
|
+
|
|
55
|
+
:return: Self reference for method chaining
|
|
56
|
+
:rtype: PathFilter
|
|
57
|
+
|
|
58
|
+
:raises TypeError: If input is not a dictionary type
|
|
59
|
+
:raises ValueError: If nested model conversion fails
|
|
60
|
+
"""
|
|
61
|
+
m = m or dict()
|
|
62
|
+
if m.get('type') is not None:
|
|
63
|
+
self.type = m.get('type')
|
|
64
|
+
if m.get('pattern') is not None:
|
|
65
|
+
self.pattern = m.get('pattern')
|
|
66
|
+
return self
|
|
@@ -4,6 +4,8 @@ PolicyInfo information
|
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
6
|
|
|
7
|
+
from baiducloud_python_sdk_pfs.models.path_filter import PathFilter
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
class PolicyInfo(AbstractModel):
|
|
9
11
|
"""
|
|
@@ -22,6 +24,7 @@ class PolicyInfo(AbstractModel):
|
|
|
22
24
|
type=None,
|
|
23
25
|
bos_path=None,
|
|
24
26
|
status=None,
|
|
27
|
+
path_filters=None,
|
|
25
28
|
):
|
|
26
29
|
"""
|
|
27
30
|
Initialize PolicyInfo instance.
|
|
@@ -55,6 +58,9 @@ class PolicyInfo(AbstractModel):
|
|
|
55
58
|
|
|
56
59
|
:param status: 规则当前状态:<br>• 0:生效中<br>• 1:运行中<br>• 2:删除中<br>• 3:失败
|
|
57
60
|
:type status: int (optional)
|
|
61
|
+
|
|
62
|
+
:param path_filters: 路径过滤规则,未设置时不返回。type:0 后缀匹配,1 路径匹配;pattern:匹配规则
|
|
63
|
+
:type path_filters: List[PathFilter] (optional)
|
|
58
64
|
"""
|
|
59
65
|
super().__init__()
|
|
60
66
|
self.policy_id = policy_id
|
|
@@ -67,6 +73,7 @@ class PolicyInfo(AbstractModel):
|
|
|
67
73
|
self.type = type
|
|
68
74
|
self.bos_path = bos_path
|
|
69
75
|
self.status = status
|
|
76
|
+
self.path_filters = path_filters
|
|
70
77
|
|
|
71
78
|
def to_dict(self):
|
|
72
79
|
"""
|
|
@@ -101,6 +108,8 @@ class PolicyInfo(AbstractModel):
|
|
|
101
108
|
result['bosPath'] = self.bos_path
|
|
102
109
|
if self.status is not None:
|
|
103
110
|
result['status'] = self.status
|
|
111
|
+
if self.path_filters is not None:
|
|
112
|
+
result['pathFilters'] = [i.to_dict() for i in self.path_filters]
|
|
104
113
|
return result
|
|
105
114
|
|
|
106
115
|
def from_dict(self, m):
|
|
@@ -139,4 +148,6 @@ class PolicyInfo(AbstractModel):
|
|
|
139
148
|
self.bos_path = m.get('bosPath')
|
|
140
149
|
if m.get('status') is not None:
|
|
141
150
|
self.status = m.get('status')
|
|
151
|
+
if m.get('pathFilters') is not None:
|
|
152
|
+
self.path_filters = [PathFilter().from_dict(i) for i in m.get('pathFilters')]
|
|
142
153
|
return self
|
{baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/RECORD
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
baiducloud_python_sdk_pfs/__init__.py,sha256=
|
|
1
|
+
baiducloud_python_sdk_pfs/__init__.py,sha256=NQ3yA8MPC4VVsguTz6i6o9CFur9O2h6I9wuXfL5kleQ,83
|
|
2
2
|
baiducloud_python_sdk_pfs/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
baiducloud_python_sdk_pfs/api/pfs_client.py,sha256=6OrZzlZk4WRr5ATRhfZgWT3UGz4O_BKGbUCLrNzz0pc,54917
|
|
4
|
-
baiducloud_python_sdk_pfs/models/__init__.py,sha256=
|
|
4
|
+
baiducloud_python_sdk_pfs/models/__init__.py,sha256=q-KfSc_IJMfQic0Iv9HsnPGD1BdqCp1AkbRev1-YJPU,6203
|
|
5
5
|
baiducloud_python_sdk_pfs/models/access_group_info.py,sha256=wXO2-eOsioAogIEfTqI1XnNPSi00vvMc01bpGv-2v60,3745
|
|
6
6
|
baiducloud_python_sdk_pfs/models/access_rule_info.py,sha256=55z7wgm68BZMcya1GvFSffBU6KBaNW64x4LFVNhqLmo,3011
|
|
7
7
|
baiducloud_python_sdk_pfs/models/access_rule_model.py,sha256=pBkQ-1bXFnHH91M3ARR74G7_uk0m6lJkSVVNyRS6DL8,2769
|
|
8
8
|
baiducloud_python_sdk_pfs/models/attached_mount_target_info.py,sha256=z28kdqER3OkYNZZOoQk3-UB2w2xt8yNrhnruqREXta8,2701
|
|
9
|
-
baiducloud_python_sdk_pfs/models/bucket_link_info.py,sha256=
|
|
9
|
+
baiducloud_python_sdk_pfs/models/bucket_link_info.py,sha256=RmKeaCnM_VobHUosLfB2ZLPWgTJz3NW5lXv7Y-lkyDI,7901
|
|
10
10
|
baiducloud_python_sdk_pfs/models/cancel_l2_bucket_link_request.py,sha256=HOS9NE4OYBbjwrpC4QfFp0g2TjpNUJ84C1CK70dp6GM,2124
|
|
11
11
|
baiducloud_python_sdk_pfs/models/cancel_l2_bucket_link_response.py,sha256=qTMxnhf2_ywNxQPVuTLxfq0pExIvWt0HirlqgpLH4lI,1815
|
|
12
12
|
baiducloud_python_sdk_pfs/models/create_access_rule_result.py,sha256=pqBuu9Rr069Wibwu3IfisxpCM9og4TW_OFhAPS5WOzg,2775
|
|
13
13
|
baiducloud_python_sdk_pfs/models/create_fileset_request.py,sha256=TO9xJCQenMpUPypa1V4OSwb8gpB4n0TJhevxDKYv3BQ,3887
|
|
14
14
|
baiducloud_python_sdk_pfs/models/create_fileset_response.py,sha256=8N-mn7Iat-kissC2ZTQV5Eu-WlhHfW3OoPgPZhTYWHg,2155
|
|
15
|
-
baiducloud_python_sdk_pfs/models/create_l2_bucket_link_request.py,sha256=
|
|
15
|
+
baiducloud_python_sdk_pfs/models/create_l2_bucket_link_request.py,sha256=4jire2SHrq-pP57fkDvbdjhCwOQeCF_Rnay1f8qfqoc,7036
|
|
16
16
|
baiducloud_python_sdk_pfs/models/create_l2_bucket_link_response.py,sha256=KvZVgrGgl9n5INOLNSojDDd4tsKQ9fiEDx87_C_EUeo,2225
|
|
17
|
-
baiducloud_python_sdk_pfs/models/create_l2_policy_request.py,sha256=
|
|
17
|
+
baiducloud_python_sdk_pfs/models/create_l2_policy_request.py,sha256=E-6luwkaOoJLsEQLBf9yKI-T2-byU2LKTSBLTFIsbI4,4856
|
|
18
18
|
baiducloud_python_sdk_pfs/models/create_l2_policy_response.py,sha256=edAclTa7i35J6jOtBGmT_SM6oYc6wFlT8gRm-PwFTy0,2156
|
|
19
19
|
baiducloud_python_sdk_pfs/models/create_l3_access_group_request.py,sha256=NF5CjgjLIgKbQKVQ_o5iciuKjI9lZbWer-RFxt98hb8,3440
|
|
20
20
|
baiducloud_python_sdk_pfs/models/create_l3_access_group_response.py,sha256=4gQuUMuI7_ISes3Y5pBrQ9BRkWF3Rt4zNasL18eCuSY,2221
|
|
@@ -22,7 +22,7 @@ baiducloud_python_sdk_pfs/models/create_l3_access_rule_request.py,sha256=qb0ONIJ
|
|
|
22
22
|
baiducloud_python_sdk_pfs/models/create_l3_access_rule_response.py,sha256=PBXZ2hLCiyQRTc1hTJ6zgwiT1hrUtX33zG_c1WsHu40,2783
|
|
23
23
|
baiducloud_python_sdk_pfs/models/create_l3_mount_target_request.py,sha256=8OQ9EDIXmYF3gF_EUKLFr4_e2XKvVif18hZu3VC3RvM,3749
|
|
24
24
|
baiducloud_python_sdk_pfs/models/create_l3_mount_target_response.py,sha256=UoSQDiIIISVVBYMX4HCZrUuI8rrTXqcNRQTLMMCeY4M,2581
|
|
25
|
-
baiducloud_python_sdk_pfs/models/create_pfs_request.py,sha256=
|
|
25
|
+
baiducloud_python_sdk_pfs/models/create_pfs_request.py,sha256=n7sB2QUe4cBxgFGPtdZOmkjTTXePIDNlePw_sY_VdV4,4260
|
|
26
26
|
baiducloud_python_sdk_pfs/models/create_pfs_response.py,sha256=vXprCwKXTKX9b_EAraF3c4_qqCnbnZMqVQXnpC99HqA,2030
|
|
27
27
|
baiducloud_python_sdk_pfs/models/delete_fileset_request.py,sha256=coTyWAoGAuNXAQhzw92FQpbDHuwNHMDnnDt6XKybHhg,2036
|
|
28
28
|
baiducloud_python_sdk_pfs/models/delete_fileset_response.py,sha256=vVVhi2oAdDFELO6DI3yq85i5-WYGYDuw9UzbjzNnsv8,1790
|
|
@@ -40,11 +40,11 @@ baiducloud_python_sdk_pfs/models/delete_pfs_request.py,sha256=ZYhpENctd84Zfm7dhn
|
|
|
40
40
|
baiducloud_python_sdk_pfs/models/desc_fileset_request.py,sha256=t423lOvdkW4EMvdJ4Y7MVoKJgRMQOL-HCl9fvMPGdGw,2012
|
|
41
41
|
baiducloud_python_sdk_pfs/models/desc_fileset_response.py,sha256=_OS6_ShrPJJeD2rHA-w6_x8g2Ryd5sLvsM_7rvdl2IQ,6365
|
|
42
42
|
baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_request.py,sha256=wiNU6nxj4hobpoRzd3JPGiMHlAgrsLqnXWRAQCW9ogo,2087
|
|
43
|
-
baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_response.py,sha256=
|
|
43
|
+
baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_response.py,sha256=NWevYpwwTQuKHNoZjFeZrU4PGQJXCAC-YcbjLmOvc6A,8619
|
|
44
44
|
baiducloud_python_sdk_pfs/models/desc_l2_policy_request.py,sha256=AkMQEUm9ljfQMPwSBjfoLWJcnj0bU0Sr6h8s1-HOJEI,2011
|
|
45
|
-
baiducloud_python_sdk_pfs/models/desc_l2_policy_response.py,sha256=
|
|
45
|
+
baiducloud_python_sdk_pfs/models/desc_l2_policy_response.py,sha256=Z_Fdv-fgUu3KOTzwDNkHQ6QqS85POvu71S20jZMEixc,5759
|
|
46
46
|
baiducloud_python_sdk_pfs/models/desc_pfs_request.py,sha256=4HnBIAuw79ie8s3klpRWJlq-VbkIjSsGgIwskGYNN7A,1585
|
|
47
|
-
baiducloud_python_sdk_pfs/models/desc_pfs_response.py,sha256=
|
|
47
|
+
baiducloud_python_sdk_pfs/models/desc_pfs_response.py,sha256=uMUWqem4nl8Mz3KNL5lgN1TnIRiEgjlL3sT8oGw6MdA,6889
|
|
48
48
|
baiducloud_python_sdk_pfs/models/describe_l3_access_group_request.py,sha256=BALUChbQXz8EUbzCo-GwNxlJAx_QYGvZCOejPEvpt3s,2122
|
|
49
49
|
baiducloud_python_sdk_pfs/models/describe_l3_access_group_response.py,sha256=X9eUmzjEQoxci8J9jkvma2n8ZX0pdCEjDrRPK9FYdcc,4771
|
|
50
50
|
baiducloud_python_sdk_pfs/models/describe_l3_mount_target_request.py,sha256=q_sva6LX8FAFb6ZMDMPSiO6tg_S8FIZHwdcwpKDzxkY,2102
|
|
@@ -57,7 +57,7 @@ baiducloud_python_sdk_pfs/models/instance_model.py,sha256=zOQOpzJEjwc0wq6BaRNhMk
|
|
|
57
57
|
baiducloud_python_sdk_pfs/models/l3_client_model.py,sha256=76QlObStZsy7OiDK8kYY7O4hthwfbJIBwlk7-Kxn1k4,3890
|
|
58
58
|
baiducloud_python_sdk_pfs/models/list_fileset_request.py,sha256=t9afhMmNiJ_F-bTKJE4w3NYmaeYrBtIUYktdk_JkYLs,3927
|
|
59
59
|
baiducloud_python_sdk_pfs/models/list_fileset_response.py,sha256=9c4FCynMW8q8jzC6_10fzC-4_xeFm6IpxTVPtKTcqB4,4477
|
|
60
|
-
baiducloud_python_sdk_pfs/models/list_l2_bucket_link_request.py,sha256=
|
|
60
|
+
baiducloud_python_sdk_pfs/models/list_l2_bucket_link_request.py,sha256=q9t247oUUeO54sk_bchYibC-Se1KrL3fZjENUBB2HFo,2688
|
|
61
61
|
baiducloud_python_sdk_pfs/models/list_l2_bucket_link_response.py,sha256=HPpGzJ5Qos_4SMsPFAPrROu7jNzS2F4-3EVsjOsoBlM,3652
|
|
62
62
|
baiducloud_python_sdk_pfs/models/list_l2_policy_request.py,sha256=OlGU6whEgwA_XzZhRF5VWCYS3FRIuHWQ8yF6ksOJNNE,2423
|
|
63
63
|
baiducloud_python_sdk_pfs/models/list_l2_policy_response.py,sha256=AkkVZal5bkXcw-UE5eBA5P0lSa6ieuPDW3Lo-xHXV58,3615
|
|
@@ -77,9 +77,10 @@ baiducloud_python_sdk_pfs/models/mount_target_info.py,sha256=trmJctKlVCmobRb7L0_
|
|
|
77
77
|
baiducloud_python_sdk_pfs/models/mount_target_list_clients_request.py,sha256=Jc6E-vxu9j6bffLgrWmPgembgafu4z0h7HAh3KaMXr4,2850
|
|
78
78
|
baiducloud_python_sdk_pfs/models/mount_target_list_clients_response.py,sha256=LWC5HH6ldlM6cuhS0Ukazy04i3OQqE5BtSzA7iusdDw,3585
|
|
79
79
|
baiducloud_python_sdk_pfs/models/node_info.py,sha256=gy3QrDX5oMhdPCH_wUgX2q8PDb55YlORxxFqqpBbMP0,5698
|
|
80
|
+
baiducloud_python_sdk_pfs/models/path_filter.py,sha256=-RO15zy4GC_qlTTCBvusyV4-2juKr4IyYe3LIK8J4yo,1811
|
|
80
81
|
baiducloud_python_sdk_pfs/models/pause_l2_bucket_link_request.py,sha256=2zEh9A9xCGVfVGrGAM20VKgQ8tanOXfAvNAFgWPmGiI,2107
|
|
81
82
|
baiducloud_python_sdk_pfs/models/pause_l2_bucket_link_response.py,sha256=CF20yFC2Ez30R0h2X2jJCsBlX5CM3ZoFQ8xpU3paAzM,1810
|
|
82
|
-
baiducloud_python_sdk_pfs/models/policy_info.py,sha256=
|
|
83
|
+
baiducloud_python_sdk_pfs/models/policy_info.py,sha256=zVFYxELJ5QopaMaaCK0cPc3RDNp3vH1F8X7Z3YbMkfE,5100
|
|
83
84
|
baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_detail_request.py,sha256=8pUpdzqOy2H_5aKKb8Hsw9UDrpOsHwDzs8UZUCflWZc,2321
|
|
84
85
|
baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_detail_response.py,sha256=YZ_zl2uqGg7CeOf4ENDW5PTw01DF4p3Snkt7T4W03Dw,2210
|
|
85
86
|
baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_log_request.py,sha256=w1GMxtiE7y-q_9UNdrlXV-Eu-DhYuy5V13s_em4uEH4,2686
|
|
@@ -101,8 +102,8 @@ baiducloud_python_sdk_pfs/models/update_l3_access_rule_response.py,sha256=lWDFKu
|
|
|
101
102
|
baiducloud_python_sdk_pfs/models/update_l3_mount_target_request.py,sha256=fjtAhoxn8SXPxyuVO6U4pykanPAAt0XX8t8aKQA30kE,3269
|
|
102
103
|
baiducloud_python_sdk_pfs/models/update_l3_mount_target_response.py,sha256=-bn4B8xMG7wqhchd-qUfLVk7t3eAW8v5PExbqwt6HZE,1820
|
|
103
104
|
baiducloud_python_sdk_pfs/models/update_pfs_tag_request.py,sha256=oOpfmzUBRsKbmcsfl-aJtM8z5JF1WEkDwGMZBJWvVDw,2069
|
|
104
|
-
baiducloud_python_sdk_pfs-0.0.
|
|
105
|
-
baiducloud_python_sdk_pfs-0.0.
|
|
106
|
-
baiducloud_python_sdk_pfs-0.0.
|
|
107
|
-
baiducloud_python_sdk_pfs-0.0.
|
|
108
|
-
baiducloud_python_sdk_pfs-0.0.
|
|
105
|
+
baiducloud_python_sdk_pfs-0.0.14.dist-info/LICENSE,sha256=vWvFalMLAgEWwNa8irw-tSDlh7k7bl4APjMGE_lGiws,10372
|
|
106
|
+
baiducloud_python_sdk_pfs-0.0.14.dist-info/METADATA,sha256=6gx2br_oM1G6WhrbuctNBPHmZH9i4gvEDxN9JY5V5Og,2647
|
|
107
|
+
baiducloud_python_sdk_pfs-0.0.14.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
108
|
+
baiducloud_python_sdk_pfs-0.0.14.dist-info/top_level.txt,sha256=ljY8YxKCsXidpEz8DmOtGYyEW3QkgLhNdnZZBhDv8ys,26
|
|
109
|
+
baiducloud_python_sdk_pfs-0.0.14.dist-info/RECORD,,
|
{baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/LICENSE
RENAMED
|
File without changes
|
{baiducloud_python_sdk_pfs-0.0.12.dist-info → baiducloud_python_sdk_pfs-0.0.14.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|