huaweicloudsdkcbr 3.1.87__py2.py3-none-any.whl → 3.1.89__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 (33) hide show
  1. huaweicloudsdkcbr/v1/__init__.py +18 -0
  2. huaweicloudsdkcbr/v1/cbr_async_client.py +392 -0
  3. huaweicloudsdkcbr/v1/cbr_client.py +392 -0
  4. huaweicloudsdkcbr/v1/model/__init__.py +18 -0
  5. huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
  6. huaweicloudsdkcbr/v1/model/backup_resp.py +32 -3
  7. huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
  8. huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
  9. huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
  10. huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
  11. huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
  12. huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +114 -0
  13. huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
  14. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
  15. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
  16. huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
  17. huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
  18. huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
  19. huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
  20. huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
  21. huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
  22. huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
  23. huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
  24. huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
  25. huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
  26. huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
  27. huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
  28. huaweicloudsdkcbr/v1/model/vault_create.py +32 -3
  29. {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/METADATA +2 -2
  30. {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/RECORD +33 -15
  31. {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/LICENSE +0 -0
  32. {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/WHEEL +0 -0
  33. {huaweicloudsdkcbr-3.1.87.dist-info → huaweicloudsdkcbr-3.1.89.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateOrganizationPolicyRequest:
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
+ 'body': 'OrganizationPolicyCreateReq'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """CreateOrganizationPolicyRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateOrganizationPolicyRequest
33
+ :type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreateReq`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this CreateOrganizationPolicyRequest.
47
+
48
+ :return: The body of this CreateOrganizationPolicyRequest.
49
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreateReq`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this CreateOrganizationPolicyRequest.
56
+
57
+ :param body: The body of this CreateOrganizationPolicyRequest.
58
+ :type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreateReq`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateOrganizationPolicyRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ 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 CreateOrganizationPolicyResponse(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
+ """CreateOrganizationPolicyResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param policy:
34
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
35
+ """
36
+
37
+ super(CreateOrganizationPolicyResponse, 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 CreateOrganizationPolicyResponse.
48
+
49
+ :return: The policy of this CreateOrganizationPolicyResponse.
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 CreateOrganizationPolicyResponse.
57
+
58
+ :param policy: The policy of this CreateOrganizationPolicyResponse.
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, CreateOrganizationPolicyResponse):
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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteOrganizationPolicyRequest:
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
+ """DeleteOrganizationPolicyRequest
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 DeleteOrganizationPolicyRequest.
46
+
47
+ 资源策略ID
48
+
49
+ :return: The organization_policy_id of this DeleteOrganizationPolicyRequest.
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 DeleteOrganizationPolicyRequest.
57
+
58
+ 资源策略ID
59
+
60
+ :param organization_policy_id: The organization_policy_id of this DeleteOrganizationPolicyRequest.
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, DeleteOrganizationPolicyRequest):
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,85 @@
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 DeleteOrganizationPolicyResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """DeleteOrganizationPolicyResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteOrganizationPolicyResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteOrganizationPolicyResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -21,19 +21,17 @@ class ListExternalVaultResponse(SdkResponse):
21
21
  'vaults': 'list[Vault]',
22
22
  'count': 'int',
23
23
  'limit': 'int',
24
- 'offset': 'int',
25
- 'sys_lock_source_service': 'str'
24
+ 'offset': 'int'
26
25
  }
27
26
 
28
27
  attribute_map = {
29
28
  'vaults': 'vaults',
30
29
  'count': 'count',
31
30
  'limit': 'limit',
32
- 'offset': 'offset',
33
- 'sys_lock_source_service': 'sys_lock_source_service'
31
+ 'offset': 'offset'
34
32
  }
35
33
 
36
- def __init__(self, vaults=None, count=None, limit=None, offset=None, sys_lock_source_service=None):
34
+ def __init__(self, vaults=None, count=None, limit=None, offset=None):
37
35
  """ListExternalVaultResponse
38
36
 
39
37
  The model defined in huaweicloud sdk
@@ -46,8 +44,6 @@ class ListExternalVaultResponse(SdkResponse):
46
44
  :type limit: int
47
45
  :param offset: 偏移量,表示从此偏移量开始查询
48
46
  :type offset: int
49
- :param sys_lock_source_service: 用于标识SMB服务
50
- :type sys_lock_source_service: str
51
47
  """
52
48
 
53
49
  super(ListExternalVaultResponse, self).__init__()
@@ -56,7 +52,6 @@ class ListExternalVaultResponse(SdkResponse):
56
52
  self._count = None
57
53
  self._limit = None
58
54
  self._offset = None
59
- self._sys_lock_source_service = None
60
55
  self.discriminator = None
61
56
 
62
57
  if vaults is not None:
@@ -67,8 +62,6 @@ class ListExternalVaultResponse(SdkResponse):
67
62
  self.limit = limit
68
63
  if offset is not None:
69
64
  self.offset = offset
70
- if sys_lock_source_service is not None:
71
- self.sys_lock_source_service = sys_lock_source_service
72
65
 
73
66
  @property
74
67
  def vaults(self):
@@ -158,28 +151,6 @@ class ListExternalVaultResponse(SdkResponse):
158
151
  """
159
152
  self._offset = offset
160
153
 
161
- @property
162
- def sys_lock_source_service(self):
163
- """Gets the sys_lock_source_service of this ListExternalVaultResponse.
164
-
165
- 用于标识SMB服务
166
-
167
- :return: The sys_lock_source_service of this ListExternalVaultResponse.
168
- :rtype: str
169
- """
170
- return self._sys_lock_source_service
171
-
172
- @sys_lock_source_service.setter
173
- def sys_lock_source_service(self, sys_lock_source_service):
174
- """Sets the sys_lock_source_service of this ListExternalVaultResponse.
175
-
176
- 用于标识SMB服务
177
-
178
- :param sys_lock_source_service: The sys_lock_source_service of this ListExternalVaultResponse.
179
- :type sys_lock_source_service: str
180
- """
181
- self._sys_lock_source_service = sys_lock_source_service
182
-
183
154
  def to_dict(self):
184
155
  """Returns the model properties as a dict"""
185
156
  result = {}
@@ -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 ListOrganizationPoliciesRequest:
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
+ 'operation_type': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'operation_type': 'operation_type'
25
+ }
26
+
27
+ def __init__(self, operation_type=None):
28
+ """ListOrganizationPoliciesRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param operation_type: 组织策略类型
33
+ :type operation_type: str
34
+ """
35
+
36
+
37
+
38
+ self._operation_type = None
39
+ self.discriminator = None
40
+
41
+ self.operation_type = operation_type
42
+
43
+ @property
44
+ def operation_type(self):
45
+ """Gets the operation_type of this ListOrganizationPoliciesRequest.
46
+
47
+ 组织策略类型
48
+
49
+ :return: The operation_type of this ListOrganizationPoliciesRequest.
50
+ :rtype: str
51
+ """
52
+ return self._operation_type
53
+
54
+ @operation_type.setter
55
+ def operation_type(self, operation_type):
56
+ """Sets the operation_type of this ListOrganizationPoliciesRequest.
57
+
58
+ 组织策略类型
59
+
60
+ :param operation_type: The operation_type of this ListOrganizationPoliciesRequest.
61
+ :type operation_type: str
62
+ """
63
+ self._operation_type = operation_type
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, ListOrganizationPoliciesRequest):
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