huaweicloudsdkcbr 3.1.122__py2.py3-none-any.whl → 3.1.124__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.
Files changed (29) hide show
  1. huaweicloudsdkcbr/v1/__init__.py +5 -0
  2. huaweicloudsdkcbr/v1/cbr_async_client.py +72 -2
  3. huaweicloudsdkcbr/v1/cbr_client.py +72 -2
  4. huaweicloudsdkcbr/v1/model/__init__.py +5 -0
  5. huaweicloudsdkcbr/v1/model/add_members_req.py +34 -4
  6. huaweicloudsdkcbr/v1/model/agent_add_path_req.py +32 -3
  7. huaweicloudsdkcbr/v1/model/backup_resp.py +44 -15
  8. huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +3 -3
  9. huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
  10. huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
  11. huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +3 -3
  12. huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
  13. huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
  14. huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +3 -3
  15. huaweicloudsdkcbr/v1/model/exclude_path.py +144 -0
  16. huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +61 -3
  17. huaweicloudsdkcbr/v1/model/list_vault_request.py +3 -3
  18. huaweicloudsdkcbr/v1/model/path.py +32 -3
  19. huaweicloudsdkcbr/v1/model/vault.py +32 -3
  20. huaweicloudsdkcbr/v1/model/vault_create.py +32 -3
  21. huaweicloudsdkcbr/v1/model/vault_create_resource.py +32 -3
  22. huaweicloudsdkcbr/v1/model/vault_get.py +30 -1
  23. huaweicloudsdkcbr/v1/model/vault_order.py +32 -3
  24. huaweicloudsdkcbr/v1/model/vault_update.py +32 -3
  25. {huaweicloudsdkcbr-3.1.122.dist-info → huaweicloudsdkcbr-3.1.124.dist-info}/METADATA +2 -2
  26. {huaweicloudsdkcbr-3.1.122.dist-info → huaweicloudsdkcbr-3.1.124.dist-info}/RECORD +29 -24
  27. {huaweicloudsdkcbr-3.1.122.dist-info → huaweicloudsdkcbr-3.1.124.dist-info}/WHEEL +1 -1
  28. {huaweicloudsdkcbr-3.1.122.dist-info → huaweicloudsdkcbr-3.1.124.dist-info}/LICENSE +0 -0
  29. {huaweicloudsdkcbr-3.1.122.dist-info → huaweicloudsdkcbr-3.1.124.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,174 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ChangeOrderResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'order_id': 'str',
22
+ 'ret_code': 'str',
23
+ 'ret_msg': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'order_id': 'orderId',
28
+ 'ret_code': 'retCode',
29
+ 'ret_msg': 'retMsg'
30
+ }
31
+
32
+ def __init__(self, order_id=None, ret_code=None, ret_msg=None):
33
+ """ChangeOrderResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param order_id: 订单ID
38
+ :type order_id: str
39
+ :param ret_code: 变更状态码
40
+ :type ret_code: str
41
+ :param ret_msg: 变更信息
42
+ :type ret_msg: str
43
+ """
44
+
45
+ super(ChangeOrderResponse, self).__init__()
46
+
47
+ self._order_id = None
48
+ self._ret_code = None
49
+ self._ret_msg = None
50
+ self.discriminator = None
51
+
52
+ if order_id is not None:
53
+ self.order_id = order_id
54
+ if ret_code is not None:
55
+ self.ret_code = ret_code
56
+ if ret_msg is not None:
57
+ self.ret_msg = ret_msg
58
+
59
+ @property
60
+ def order_id(self):
61
+ """Gets the order_id of this ChangeOrderResponse.
62
+
63
+ 订单ID
64
+
65
+ :return: The order_id of this ChangeOrderResponse.
66
+ :rtype: str
67
+ """
68
+ return self._order_id
69
+
70
+ @order_id.setter
71
+ def order_id(self, order_id):
72
+ """Sets the order_id of this ChangeOrderResponse.
73
+
74
+ 订单ID
75
+
76
+ :param order_id: The order_id of this ChangeOrderResponse.
77
+ :type order_id: str
78
+ """
79
+ self._order_id = order_id
80
+
81
+ @property
82
+ def ret_code(self):
83
+ """Gets the ret_code of this ChangeOrderResponse.
84
+
85
+ 变更状态码
86
+
87
+ :return: The ret_code of this ChangeOrderResponse.
88
+ :rtype: str
89
+ """
90
+ return self._ret_code
91
+
92
+ @ret_code.setter
93
+ def ret_code(self, ret_code):
94
+ """Sets the ret_code of this ChangeOrderResponse.
95
+
96
+ 变更状态码
97
+
98
+ :param ret_code: The ret_code of this ChangeOrderResponse.
99
+ :type ret_code: str
100
+ """
101
+ self._ret_code = ret_code
102
+
103
+ @property
104
+ def ret_msg(self):
105
+ """Gets the ret_msg of this ChangeOrderResponse.
106
+
107
+ 变更信息
108
+
109
+ :return: The ret_msg of this ChangeOrderResponse.
110
+ :rtype: str
111
+ """
112
+ return self._ret_msg
113
+
114
+ @ret_msg.setter
115
+ def ret_msg(self, ret_msg):
116
+ """Sets the ret_msg of this ChangeOrderResponse.
117
+
118
+ 变更信息
119
+
120
+ :param ret_msg: The ret_msg of this ChangeOrderResponse.
121
+ :type ret_msg: str
122
+ """
123
+ self._ret_msg = ret_msg
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ChangeOrderResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -29,7 +29,7 @@ class DeleteOrganizationPolicyRequest:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param organization_policy_id: 资源策略ID
32
+ :param organization_policy_id: 组织策略ID
33
33
  :type organization_policy_id: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class DeleteOrganizationPolicyRequest:
44
44
  def organization_policy_id(self):
45
45
  """Gets the organization_policy_id of this DeleteOrganizationPolicyRequest.
46
46
 
47
- 资源策略ID
47
+ 组织策略ID
48
48
 
49
49
  :return: The organization_policy_id of this DeleteOrganizationPolicyRequest.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class DeleteOrganizationPolicyRequest:
55
55
  def organization_policy_id(self, organization_policy_id):
56
56
  """Sets the organization_policy_id of this DeleteOrganizationPolicyRequest.
57
57
 
58
- 资源策略ID
58
+ 组织策略ID
59
59
 
60
60
  :param organization_policy_id: The organization_policy_id of this DeleteOrganizationPolicyRequest.
61
61
  :type organization_policy_id: str
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExcludePath:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'path_name': 'str',
21
+ 'exclude_path_name': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'path_name': 'path_name',
26
+ 'exclude_path_name': 'exclude_path_name'
27
+ }
28
+
29
+ def __init__(self, path_name=None, exclude_path_name=None):
30
+ """ExcludePath
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param path_name: 备份目录
35
+ :type path_name: str
36
+ :param exclude_path_name: 排除目录列表
37
+ :type exclude_path_name: list[str]
38
+ """
39
+
40
+
41
+
42
+ self._path_name = None
43
+ self._exclude_path_name = None
44
+ self.discriminator = None
45
+
46
+ if path_name is not None:
47
+ self.path_name = path_name
48
+ if exclude_path_name is not None:
49
+ self.exclude_path_name = exclude_path_name
50
+
51
+ @property
52
+ def path_name(self):
53
+ """Gets the path_name of this ExcludePath.
54
+
55
+ 备份目录
56
+
57
+ :return: The path_name of this ExcludePath.
58
+ :rtype: str
59
+ """
60
+ return self._path_name
61
+
62
+ @path_name.setter
63
+ def path_name(self, path_name):
64
+ """Sets the path_name of this ExcludePath.
65
+
66
+ 备份目录
67
+
68
+ :param path_name: The path_name of this ExcludePath.
69
+ :type path_name: str
70
+ """
71
+ self._path_name = path_name
72
+
73
+ @property
74
+ def exclude_path_name(self):
75
+ """Gets the exclude_path_name of this ExcludePath.
76
+
77
+ 排除目录列表
78
+
79
+ :return: The exclude_path_name of this ExcludePath.
80
+ :rtype: list[str]
81
+ """
82
+ return self._exclude_path_name
83
+
84
+ @exclude_path_name.setter
85
+ def exclude_path_name(self, exclude_path_name):
86
+ """Sets the exclude_path_name of this ExcludePath.
87
+
88
+ 排除目录列表
89
+
90
+ :param exclude_path_name: The exclude_path_name of this ExcludePath.
91
+ :type exclude_path_name: list[str]
92
+ """
93
+ self._exclude_path_name = exclude_path_name
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ExcludePath):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -17,28 +17,42 @@ class ListOrganizationPoliciesRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'operation_type': 'str'
20
+ 'operation_type': 'str',
21
+ 'limit': 'int',
22
+ 'offset': 'int'
21
23
  }
22
24
 
23
25
  attribute_map = {
24
- 'operation_type': 'operation_type'
26
+ 'operation_type': 'operation_type',
27
+ 'limit': 'limit',
28
+ 'offset': 'offset'
25
29
  }
26
30
 
27
- def __init__(self, operation_type=None):
31
+ def __init__(self, operation_type=None, limit=None, offset=None):
28
32
  """ListOrganizationPoliciesRequest
29
33
 
30
34
  The model defined in huaweicloud sdk
31
35
 
32
36
  :param operation_type: 组织策略类型
33
37
  :type operation_type: str
38
+ :param limit: 每页显示的条目数量,正整数
39
+ :type limit: int
40
+ :param offset: 偏移值,正整数
41
+ :type offset: int
34
42
  """
35
43
 
36
44
 
37
45
 
38
46
  self._operation_type = None
47
+ self._limit = None
48
+ self._offset = None
39
49
  self.discriminator = None
40
50
 
41
51
  self.operation_type = operation_type
52
+ if limit is not None:
53
+ self.limit = limit
54
+ if offset is not None:
55
+ self.offset = offset
42
56
 
43
57
  @property
44
58
  def operation_type(self):
@@ -62,6 +76,50 @@ class ListOrganizationPoliciesRequest:
62
76
  """
63
77
  self._operation_type = operation_type
64
78
 
79
+ @property
80
+ def limit(self):
81
+ """Gets the limit of this ListOrganizationPoliciesRequest.
82
+
83
+ 每页显示的条目数量,正整数
84
+
85
+ :return: The limit of this ListOrganizationPoliciesRequest.
86
+ :rtype: int
87
+ """
88
+ return self._limit
89
+
90
+ @limit.setter
91
+ def limit(self, limit):
92
+ """Sets the limit of this ListOrganizationPoliciesRequest.
93
+
94
+ 每页显示的条目数量,正整数
95
+
96
+ :param limit: The limit of this ListOrganizationPoliciesRequest.
97
+ :type limit: int
98
+ """
99
+ self._limit = limit
100
+
101
+ @property
102
+ def offset(self):
103
+ """Gets the offset of this ListOrganizationPoliciesRequest.
104
+
105
+ 偏移值,正整数
106
+
107
+ :return: The offset of this ListOrganizationPoliciesRequest.
108
+ :rtype: int
109
+ """
110
+ return self._offset
111
+
112
+ @offset.setter
113
+ def offset(self, offset):
114
+ """Sets the offset of this ListOrganizationPoliciesRequest.
115
+
116
+ 偏移值,正整数
117
+
118
+ :param offset: The offset of this ListOrganizationPoliciesRequest.
119
+ :type offset: int
120
+ """
121
+ self._offset = offset
122
+
65
123
  def to_dict(self):
66
124
  """Returns the model properties as a dict"""
67
125
  result = {}
@@ -69,7 +69,7 @@ class ListVaultRequest:
69
69
  :type policy_id: str
70
70
  :param status: 状态
71
71
  :type status: str
72
- :param resource_ids: 资源id,支持多资源,以英文逗号分割
72
+ :param resource_ids: 资源id,支持多资源,以英文逗号分隔
73
73
  :type resource_ids: str
74
74
  """
75
75
 
@@ -335,7 +335,7 @@ class ListVaultRequest:
335
335
  def resource_ids(self):
336
336
  """Gets the resource_ids of this ListVaultRequest.
337
337
 
338
- 资源id,支持多资源,以英文逗号分割
338
+ 资源id,支持多资源,以英文逗号分隔
339
339
 
340
340
  :return: The resource_ids of this ListVaultRequest.
341
341
  :rtype: str
@@ -346,7 +346,7 @@ class ListVaultRequest:
346
346
  def resource_ids(self, resource_ids):
347
347
  """Sets the resource_ids of this ListVaultRequest.
348
348
 
349
- 资源id,支持多资源,以英文逗号分割
349
+ 资源id,支持多资源,以英文逗号分隔
350
350
 
351
351
  :param resource_ids: The resource_ids of this ListVaultRequest.
352
352
  :type resource_ids: str
@@ -20,17 +20,19 @@ class Path:
20
20
  'id': 'str',
21
21
  'status': 'str',
22
22
  'agent_id': 'str',
23
- 'dir_path': 'str'
23
+ 'dir_path': 'str',
24
+ 'exclude_paths': 'str'
24
25
  }
25
26
 
26
27
  attribute_map = {
27
28
  'id': 'id',
28
29
  'status': 'status',
29
30
  'agent_id': 'agent_id',
30
- 'dir_path': 'dir_path'
31
+ 'dir_path': 'dir_path',
32
+ 'exclude_paths': 'exclude_paths'
31
33
  }
32
34
 
33
- def __init__(self, id=None, status=None, agent_id=None, dir_path=None):
35
+ def __init__(self, id=None, status=None, agent_id=None, dir_path=None, exclude_paths=None):
34
36
  """Path
35
37
 
36
38
  The model defined in huaweicloud sdk
@@ -43,6 +45,8 @@ class Path:
43
45
  :type agent_id: str
44
46
  :param dir_path: 路径详情
45
47
  :type dir_path: str
48
+ :param exclude_paths: 排除目录列表,多个路径之间以英文逗号分隔 > 该特性目前处于公测阶段,部分region可能无法使用。
49
+ :type exclude_paths: str
46
50
  """
47
51
 
48
52
 
@@ -51,6 +55,7 @@ class Path:
51
55
  self._status = None
52
56
  self._agent_id = None
53
57
  self._dir_path = None
58
+ self._exclude_paths = None
54
59
  self.discriminator = None
55
60
 
56
61
  if id is not None:
@@ -61,6 +66,8 @@ class Path:
61
66
  self.agent_id = agent_id
62
67
  if dir_path is not None:
63
68
  self.dir_path = dir_path
69
+ if exclude_paths is not None:
70
+ self.exclude_paths = exclude_paths
64
71
 
65
72
  @property
66
73
  def id(self):
@@ -150,6 +157,28 @@ class Path:
150
157
  """
151
158
  self._dir_path = dir_path
152
159
 
160
+ @property
161
+ def exclude_paths(self):
162
+ """Gets the exclude_paths of this Path.
163
+
164
+ 排除目录列表,多个路径之间以英文逗号分隔 > 该特性目前处于公测阶段,部分region可能无法使用。
165
+
166
+ :return: The exclude_paths of this Path.
167
+ :rtype: str
168
+ """
169
+ return self._exclude_paths
170
+
171
+ @exclude_paths.setter
172
+ def exclude_paths(self, exclude_paths):
173
+ """Sets the exclude_paths of this Path.
174
+
175
+ 排除目录列表,多个路径之间以英文逗号分隔 > 该特性目前处于公测阶段,部分region可能无法使用。
176
+
177
+ :param exclude_paths: The exclude_paths of this Path.
178
+ :type exclude_paths: str
179
+ """
180
+ self._exclude_paths = exclude_paths
181
+
153
182
  def to_dict(self):
154
183
  """Returns the model properties as a dict"""
155
184
  result = {}
@@ -33,7 +33,8 @@ class Vault:
33
33
  'auto_expand': 'bool',
34
34
  'smn_notify': 'bool',
35
35
  'threshold': 'int',
36
- 'sys_lock_source_service': 'str'
36
+ 'sys_lock_source_service': 'str',
37
+ 'locked': 'bool'
37
38
  }
38
39
 
39
40
  attribute_map = {
@@ -53,10 +54,11 @@ class Vault:
53
54
  'auto_expand': 'auto_expand',
54
55
  'smn_notify': 'smn_notify',
55
56
  'threshold': 'threshold',
56
- 'sys_lock_source_service': 'sys_lock_source_service'
57
+ 'sys_lock_source_service': 'sys_lock_source_service',
58
+ 'locked': 'locked'
57
59
  }
58
60
 
59
- def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, sys_lock_source_service=None):
61
+ def __init__(self, billing=None, description=None, id=None, name=None, project_id=None, provider_id=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, user_id=None, created_at=None, auto_expand=None, smn_notify=None, threshold=None, sys_lock_source_service=None, locked=None):
60
62
  """Vault
61
63
 
62
64
  The model defined in huaweicloud sdk
@@ -95,6 +97,8 @@ class Vault:
95
97
  :type threshold: int
96
98
  :param sys_lock_source_service: 用于标识SMB服务
97
99
  :type sys_lock_source_service: str
100
+ :param locked: 用于标识该存储库是否已锁定
101
+ :type locked: bool
98
102
  """
99
103
 
100
104
 
@@ -116,6 +120,7 @@ class Vault:
116
120
  self._smn_notify = None
117
121
  self._threshold = None
118
122
  self._sys_lock_source_service = None
123
+ self._locked = None
119
124
  self.discriminator = None
120
125
 
121
126
  self.billing = billing
@@ -146,6 +151,8 @@ class Vault:
146
151
  self.threshold = threshold
147
152
  if sys_lock_source_service is not None:
148
153
  self.sys_lock_source_service = sys_lock_source_service
154
+ if locked is not None:
155
+ self.locked = locked
149
156
 
150
157
  @property
151
158
  def billing(self):
@@ -513,6 +520,28 @@ class Vault:
513
520
  """
514
521
  self._sys_lock_source_service = sys_lock_source_service
515
522
 
523
+ @property
524
+ def locked(self):
525
+ """Gets the locked of this Vault.
526
+
527
+ 用于标识该存储库是否已锁定
528
+
529
+ :return: The locked of this Vault.
530
+ :rtype: bool
531
+ """
532
+ return self._locked
533
+
534
+ @locked.setter
535
+ def locked(self, locked):
536
+ """Sets the locked of this Vault.
537
+
538
+ 用于标识该存储库是否已锁定
539
+
540
+ :param locked: The locked of this Vault.
541
+ :type locked: bool
542
+ """
543
+ self._locked = locked
544
+
516
545
  def to_dict(self):
517
546
  """Returns the model properties as a dict"""
518
547
  result = {}
@@ -31,7 +31,8 @@ class VaultCreate:
31
31
  'smn_notify': 'bool',
32
32
  'backup_name_prefix': 'str',
33
33
  'demand_billing': 'bool',
34
- 'sys_lock_source_service': 'str'
34
+ 'sys_lock_source_service': 'str',
35
+ 'locked': 'bool'
35
36
  }
36
37
 
37
38
  attribute_map = {
@@ -49,10 +50,11 @@ class VaultCreate:
49
50
  'smn_notify': 'smn_notify',
50
51
  'backup_name_prefix': 'backup_name_prefix',
51
52
  'demand_billing': 'demand_billing',
52
- 'sys_lock_source_service': 'sys_lock_source_service'
53
+ 'sys_lock_source_service': 'sys_lock_source_service',
54
+ 'locked': 'locked'
53
55
  }
54
56
 
55
- def __init__(self, backup_policy_id=None, billing=None, description=None, name=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, auto_expand=None, threshold=None, smn_notify=None, backup_name_prefix=None, demand_billing=None, sys_lock_source_service=None):
57
+ def __init__(self, backup_policy_id=None, billing=None, description=None, name=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, auto_expand=None, threshold=None, smn_notify=None, backup_name_prefix=None, demand_billing=None, sys_lock_source_service=None, locked=None):
56
58
  """VaultCreate
57
59
 
58
60
  The model defined in huaweicloud sdk
@@ -87,6 +89,8 @@ class VaultCreate:
87
89
  :type demand_billing: bool
88
90
  :param sys_lock_source_service: 用于标识SMB服务,您可以设置为SMB或者空
89
91
  :type sys_lock_source_service: str
92
+ :param locked: 用于标识该存储库是否已锁定
93
+ :type locked: bool
90
94
  """
91
95
 
92
96
 
@@ -106,6 +110,7 @@ class VaultCreate:
106
110
  self._backup_name_prefix = None
107
111
  self._demand_billing = None
108
112
  self._sys_lock_source_service = None
113
+ self._locked = None
109
114
  self.discriminator = None
110
115
 
111
116
  if backup_policy_id is not None:
@@ -135,6 +140,8 @@ class VaultCreate:
135
140
  self.demand_billing = demand_billing
136
141
  if sys_lock_source_service is not None:
137
142
  self.sys_lock_source_service = sys_lock_source_service
143
+ if locked is not None:
144
+ self.locked = locked
138
145
 
139
146
  @property
140
147
  def backup_policy_id(self):
@@ -458,6 +465,28 @@ class VaultCreate:
458
465
  """
459
466
  self._sys_lock_source_service = sys_lock_source_service
460
467
 
468
+ @property
469
+ def locked(self):
470
+ """Gets the locked of this VaultCreate.
471
+
472
+ 用于标识该存储库是否已锁定
473
+
474
+ :return: The locked of this VaultCreate.
475
+ :rtype: bool
476
+ """
477
+ return self._locked
478
+
479
+ @locked.setter
480
+ def locked(self, locked):
481
+ """Sets the locked of this VaultCreate.
482
+
483
+ 用于标识该存储库是否已锁定
484
+
485
+ :param locked: The locked of this VaultCreate.
486
+ :type locked: bool
487
+ """
488
+ self._locked = locked
489
+
461
490
  def to_dict(self):
462
491
  """Returns the model properties as a dict"""
463
492
  result = {}