huaweicloudsdkcbr 3.1.86__py2.py3-none-any.whl → 3.1.132__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 (50) hide show
  1. huaweicloudsdkcbr/v1/__init__.py +23 -0
  2. huaweicloudsdkcbr/v1/cbr_async_client.py +464 -2
  3. huaweicloudsdkcbr/v1/cbr_client.py +464 -2
  4. huaweicloudsdkcbr/v1/model/__init__.py +23 -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_extend_info.py +1 -30
  8. huaweicloudsdkcbr/v1/model/backup_resp.py +73 -15
  9. huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +3 -3
  10. huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
  11. huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
  12. huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +3 -3
  13. huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
  14. huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
  15. huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
  16. huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
  17. huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
  18. huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
  19. huaweicloudsdkcbr/v1/model/exclude_path.py +144 -0
  20. huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
  21. huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +172 -0
  22. huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
  23. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
  24. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
  25. huaweicloudsdkcbr/v1/model/list_vault_request.py +3 -3
  26. huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
  27. huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
  28. huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
  29. huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
  30. huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
  31. huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
  32. huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
  33. huaweicloudsdkcbr/v1/model/path.py +32 -3
  34. huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
  35. huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
  36. huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
  37. huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
  38. huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
  39. huaweicloudsdkcbr/v1/model/vault.py +32 -3
  40. huaweicloudsdkcbr/v1/model/vault_create.py +61 -3
  41. huaweicloudsdkcbr/v1/model/vault_create_resource.py +32 -3
  42. huaweicloudsdkcbr/v1/model/vault_get.py +30 -1
  43. huaweicloudsdkcbr/v1/model/vault_order.py +32 -3
  44. huaweicloudsdkcbr/v1/model/vault_update.py +32 -3
  45. huaweicloudsdkcbr/v1/region/cbr_region.py +3 -0
  46. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/METADATA +2 -2
  47. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/RECORD +50 -27
  48. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/WHEEL +1 -1
  49. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/LICENSE +0 -0
  50. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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 = {}
@@ -29,7 +29,7 @@ class PolicyTriggerPropertiesReq:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param pattern: 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
32
+ :param pattern: 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,如果在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
33
33
  :type pattern: list[str]
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class PolicyTriggerPropertiesReq:
44
44
  def pattern(self):
45
45
  """Gets the pattern of this PolicyTriggerPropertiesReq.
46
46
 
47
- 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
47
+ 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,如果在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
48
48
 
49
49
  :return: The pattern of this PolicyTriggerPropertiesReq.
50
50
  :rtype: list[str]
@@ -55,7 +55,7 @@ class PolicyTriggerPropertiesReq:
55
55
  def pattern(self, pattern):
56
56
  """Sets the pattern of this PolicyTriggerPropertiesReq.
57
57
 
58
- 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
58
+ 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,如果在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
59
59
 
60
60
  :param pattern: The pattern of this PolicyTriggerPropertiesReq.
61
61
  :type pattern: list[str]
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowOrganizationPolicyRequest:
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
+ 'organization_policy_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'organization_policy_id': 'organization_policy_id'
25
+ }
26
+
27
+ def __init__(self, organization_policy_id=None):
28
+ """ShowOrganizationPolicyRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param organization_policy_id: 组织策略ID
33
+ :type organization_policy_id: str
34
+ """
35
+
36
+
37
+
38
+ self._organization_policy_id = None
39
+ self.discriminator = None
40
+
41
+ self.organization_policy_id = organization_policy_id
42
+
43
+ @property
44
+ def organization_policy_id(self):
45
+ """Gets the organization_policy_id of this ShowOrganizationPolicyRequest.
46
+
47
+ 组织策略ID
48
+
49
+ :return: The organization_policy_id of this ShowOrganizationPolicyRequest.
50
+ :rtype: str
51
+ """
52
+ return self._organization_policy_id
53
+
54
+ @organization_policy_id.setter
55
+ def organization_policy_id(self, organization_policy_id):
56
+ """Sets the organization_policy_id of this ShowOrganizationPolicyRequest.
57
+
58
+ 组织策略ID
59
+
60
+ :param organization_policy_id: The organization_policy_id of this ShowOrganizationPolicyRequest.
61
+ :type organization_policy_id: str
62
+ """
63
+ self._organization_policy_id = organization_policy_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowOrganizationPolicyRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,112 @@
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 ShowOrganizationPolicyResponse(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
+ 'policy': 'OrganizationPolicy'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'policy': 'policy'
26
+ }
27
+
28
+ def __init__(self, policy=None):
29
+ """ShowOrganizationPolicyResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param policy:
34
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
35
+ """
36
+
37
+ super(ShowOrganizationPolicyResponse, self).__init__()
38
+
39
+ self._policy = None
40
+ self.discriminator = None
41
+
42
+ if policy is not None:
43
+ self.policy = policy
44
+
45
+ @property
46
+ def policy(self):
47
+ """Gets the policy of this ShowOrganizationPolicyResponse.
48
+
49
+ :return: The policy of this ShowOrganizationPolicyResponse.
50
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
51
+ """
52
+ return self._policy
53
+
54
+ @policy.setter
55
+ def policy(self, policy):
56
+ """Sets the policy of this ShowOrganizationPolicyResponse.
57
+
58
+ :param policy: The policy of this ShowOrganizationPolicyResponse.
59
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
60
+ """
61
+ self._policy = policy
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, ShowOrganizationPolicyResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateOrganizationPolicyRequest:
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
+ 'organization_policy_id': 'str',
21
+ 'body': 'OrganizationPolicyUpdateReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'organization_policy_id': 'organization_policy_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, organization_policy_id=None, body=None):
30
+ """UpdateOrganizationPolicyRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param organization_policy_id: 组织策略ID
35
+ :type organization_policy_id: str
36
+ :param body: Body of the UpdateOrganizationPolicyRequest
37
+ :type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdateReq`
38
+ """
39
+
40
+
41
+
42
+ self._organization_policy_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.organization_policy_id = organization_policy_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def organization_policy_id(self):
52
+ """Gets the organization_policy_id of this UpdateOrganizationPolicyRequest.
53
+
54
+ 组织策略ID
55
+
56
+ :return: The organization_policy_id of this UpdateOrganizationPolicyRequest.
57
+ :rtype: str
58
+ """
59
+ return self._organization_policy_id
60
+
61
+ @organization_policy_id.setter
62
+ def organization_policy_id(self, organization_policy_id):
63
+ """Sets the organization_policy_id of this UpdateOrganizationPolicyRequest.
64
+
65
+ 组织策略ID
66
+
67
+ :param organization_policy_id: The organization_policy_id of this UpdateOrganizationPolicyRequest.
68
+ :type organization_policy_id: str
69
+ """
70
+ self._organization_policy_id = organization_policy_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this UpdateOrganizationPolicyRequest.
75
+
76
+ :return: The body of this UpdateOrganizationPolicyRequest.
77
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdateReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this UpdateOrganizationPolicyRequest.
84
+
85
+ :param body: The body of this UpdateOrganizationPolicyRequest.
86
+ :type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdateReq`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateOrganizationPolicyRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,112 @@
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 UpdateOrganizationPolicyResponse(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
+ 'policy': 'OrganizationPolicy'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'policy': 'policy'
26
+ }
27
+
28
+ def __init__(self, policy=None):
29
+ """UpdateOrganizationPolicyResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param policy:
34
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
35
+ """
36
+
37
+ super(UpdateOrganizationPolicyResponse, self).__init__()
38
+
39
+ self._policy = None
40
+ self.discriminator = None
41
+
42
+ if policy is not None:
43
+ self.policy = policy
44
+
45
+ @property
46
+ def policy(self):
47
+ """Gets the policy of this UpdateOrganizationPolicyResponse.
48
+
49
+ :return: The policy of this UpdateOrganizationPolicyResponse.
50
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
51
+ """
52
+ return self._policy
53
+
54
+ @policy.setter
55
+ def policy(self, policy):
56
+ """Sets the policy of this UpdateOrganizationPolicyResponse.
57
+
58
+ :param policy: The policy of this UpdateOrganizationPolicyResponse.
59
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
60
+ """
61
+ self._policy = policy
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, UpdateOrganizationPolicyResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -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 = {}