huaweicloudsdkcbr 3.1.86__py2.py3-none-any.whl → 3.1.88__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.
- huaweicloudsdkcbr/v1/__init__.py +18 -0
- huaweicloudsdkcbr/v1/cbr_async_client.py +392 -0
- huaweicloudsdkcbr/v1/cbr_client.py +392 -0
- huaweicloudsdkcbr/v1/model/__init__.py +18 -0
- huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
- huaweicloudsdkcbr/v1/model/backup_resp.py +32 -3
- huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
- huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
- huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
- huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
- huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
- huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
- huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/vault_create.py +32 -3
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/METADATA +2 -2
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/RECORD +33 -15
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,203 @@
|
|
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 ListOrganizationPoliciesResponse(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
|
+
'policies': 'list[OrganizationPolicy]',
|
22
|
+
'count': 'int',
|
23
|
+
'limit': 'int',
|
24
|
+
'offset': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'policies': 'policies',
|
29
|
+
'count': 'count',
|
30
|
+
'limit': 'limit',
|
31
|
+
'offset': 'offset'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, policies=None, count=None, limit=None, offset=None):
|
35
|
+
"""ListOrganizationPoliciesResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param policies: 组织策略列表
|
40
|
+
:type policies: list[:class:`huaweicloudsdkcbr.v1.OrganizationPolicy`]
|
41
|
+
:param count: 组织策略数量
|
42
|
+
:type count: int
|
43
|
+
:param limit: 每页显示的条目数量
|
44
|
+
:type limit: int
|
45
|
+
:param offset: 偏移量,表示从此偏移量开始查询
|
46
|
+
:type offset: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ListOrganizationPoliciesResponse, self).__init__()
|
50
|
+
|
51
|
+
self._policies = None
|
52
|
+
self._count = None
|
53
|
+
self._limit = None
|
54
|
+
self._offset = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if policies is not None:
|
58
|
+
self.policies = policies
|
59
|
+
if count is not None:
|
60
|
+
self.count = count
|
61
|
+
if limit is not None:
|
62
|
+
self.limit = limit
|
63
|
+
if offset is not None:
|
64
|
+
self.offset = offset
|
65
|
+
|
66
|
+
@property
|
67
|
+
def policies(self):
|
68
|
+
"""Gets the policies of this ListOrganizationPoliciesResponse.
|
69
|
+
|
70
|
+
组织策略列表
|
71
|
+
|
72
|
+
:return: The policies of this ListOrganizationPoliciesResponse.
|
73
|
+
:rtype: list[:class:`huaweicloudsdkcbr.v1.OrganizationPolicy`]
|
74
|
+
"""
|
75
|
+
return self._policies
|
76
|
+
|
77
|
+
@policies.setter
|
78
|
+
def policies(self, policies):
|
79
|
+
"""Sets the policies of this ListOrganizationPoliciesResponse.
|
80
|
+
|
81
|
+
组织策略列表
|
82
|
+
|
83
|
+
:param policies: The policies of this ListOrganizationPoliciesResponse.
|
84
|
+
:type policies: list[:class:`huaweicloudsdkcbr.v1.OrganizationPolicy`]
|
85
|
+
"""
|
86
|
+
self._policies = policies
|
87
|
+
|
88
|
+
@property
|
89
|
+
def count(self):
|
90
|
+
"""Gets the count of this ListOrganizationPoliciesResponse.
|
91
|
+
|
92
|
+
组织策略数量
|
93
|
+
|
94
|
+
:return: The count of this ListOrganizationPoliciesResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._count
|
98
|
+
|
99
|
+
@count.setter
|
100
|
+
def count(self, count):
|
101
|
+
"""Sets the count of this ListOrganizationPoliciesResponse.
|
102
|
+
|
103
|
+
组织策略数量
|
104
|
+
|
105
|
+
:param count: The count of this ListOrganizationPoliciesResponse.
|
106
|
+
:type count: int
|
107
|
+
"""
|
108
|
+
self._count = count
|
109
|
+
|
110
|
+
@property
|
111
|
+
def limit(self):
|
112
|
+
"""Gets the limit of this ListOrganizationPoliciesResponse.
|
113
|
+
|
114
|
+
每页显示的条目数量
|
115
|
+
|
116
|
+
:return: The limit of this ListOrganizationPoliciesResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._limit
|
120
|
+
|
121
|
+
@limit.setter
|
122
|
+
def limit(self, limit):
|
123
|
+
"""Sets the limit of this ListOrganizationPoliciesResponse.
|
124
|
+
|
125
|
+
每页显示的条目数量
|
126
|
+
|
127
|
+
:param limit: The limit of this ListOrganizationPoliciesResponse.
|
128
|
+
:type limit: int
|
129
|
+
"""
|
130
|
+
self._limit = limit
|
131
|
+
|
132
|
+
@property
|
133
|
+
def offset(self):
|
134
|
+
"""Gets the offset of this ListOrganizationPoliciesResponse.
|
135
|
+
|
136
|
+
偏移量,表示从此偏移量开始查询
|
137
|
+
|
138
|
+
:return: The offset of this ListOrganizationPoliciesResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._offset
|
142
|
+
|
143
|
+
@offset.setter
|
144
|
+
def offset(self, offset):
|
145
|
+
"""Sets the offset of this ListOrganizationPoliciesResponse.
|
146
|
+
|
147
|
+
偏移量,表示从此偏移量开始查询
|
148
|
+
|
149
|
+
:param offset: The offset of this ListOrganizationPoliciesResponse.
|
150
|
+
:type offset: int
|
151
|
+
"""
|
152
|
+
self._offset = offset
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ListOrganizationPoliciesResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
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 ListOrganizationPolicyDetailRequest:
|
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
|
+
"""ListOrganizationPolicyDetailRequest
|
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 ListOrganizationPolicyDetailRequest.
|
46
|
+
|
47
|
+
组织策略ID
|
48
|
+
|
49
|
+
:return: The organization_policy_id of this ListOrganizationPolicyDetailRequest.
|
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 ListOrganizationPolicyDetailRequest.
|
57
|
+
|
58
|
+
组织策略ID
|
59
|
+
|
60
|
+
:param organization_policy_id: The organization_policy_id of this ListOrganizationPolicyDetailRequest.
|
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, ListOrganizationPolicyDetailRequest):
|
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,203 @@
|
|
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 ListOrganizationPolicyDetailResponse(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
|
+
'policies': 'list[OrganizationPolicyStatus]',
|
22
|
+
'count': 'int',
|
23
|
+
'limit': 'int',
|
24
|
+
'offset': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'policies': 'policies',
|
29
|
+
'count': 'count',
|
30
|
+
'limit': 'limit',
|
31
|
+
'offset': 'offset'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, policies=None, count=None, limit=None, offset=None):
|
35
|
+
"""ListOrganizationPolicyDetailResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param policies: 组织策略部署状态列表
|
40
|
+
:type policies: list[:class:`huaweicloudsdkcbr.v1.OrganizationPolicyStatus`]
|
41
|
+
:param count: 组织策略状态成员数量
|
42
|
+
:type count: int
|
43
|
+
:param limit: 每页显示的条目数量
|
44
|
+
:type limit: int
|
45
|
+
:param offset: 偏移量,表示从此偏移量开始查询
|
46
|
+
:type offset: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ListOrganizationPolicyDetailResponse, self).__init__()
|
50
|
+
|
51
|
+
self._policies = None
|
52
|
+
self._count = None
|
53
|
+
self._limit = None
|
54
|
+
self._offset = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if policies is not None:
|
58
|
+
self.policies = policies
|
59
|
+
if count is not None:
|
60
|
+
self.count = count
|
61
|
+
if limit is not None:
|
62
|
+
self.limit = limit
|
63
|
+
if offset is not None:
|
64
|
+
self.offset = offset
|
65
|
+
|
66
|
+
@property
|
67
|
+
def policies(self):
|
68
|
+
"""Gets the policies of this ListOrganizationPolicyDetailResponse.
|
69
|
+
|
70
|
+
组织策略部署状态列表
|
71
|
+
|
72
|
+
:return: The policies of this ListOrganizationPolicyDetailResponse.
|
73
|
+
:rtype: list[:class:`huaweicloudsdkcbr.v1.OrganizationPolicyStatus`]
|
74
|
+
"""
|
75
|
+
return self._policies
|
76
|
+
|
77
|
+
@policies.setter
|
78
|
+
def policies(self, policies):
|
79
|
+
"""Sets the policies of this ListOrganizationPolicyDetailResponse.
|
80
|
+
|
81
|
+
组织策略部署状态列表
|
82
|
+
|
83
|
+
:param policies: The policies of this ListOrganizationPolicyDetailResponse.
|
84
|
+
:type policies: list[:class:`huaweicloudsdkcbr.v1.OrganizationPolicyStatus`]
|
85
|
+
"""
|
86
|
+
self._policies = policies
|
87
|
+
|
88
|
+
@property
|
89
|
+
def count(self):
|
90
|
+
"""Gets the count of this ListOrganizationPolicyDetailResponse.
|
91
|
+
|
92
|
+
组织策略状态成员数量
|
93
|
+
|
94
|
+
:return: The count of this ListOrganizationPolicyDetailResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._count
|
98
|
+
|
99
|
+
@count.setter
|
100
|
+
def count(self, count):
|
101
|
+
"""Sets the count of this ListOrganizationPolicyDetailResponse.
|
102
|
+
|
103
|
+
组织策略状态成员数量
|
104
|
+
|
105
|
+
:param count: The count of this ListOrganizationPolicyDetailResponse.
|
106
|
+
:type count: int
|
107
|
+
"""
|
108
|
+
self._count = count
|
109
|
+
|
110
|
+
@property
|
111
|
+
def limit(self):
|
112
|
+
"""Gets the limit of this ListOrganizationPolicyDetailResponse.
|
113
|
+
|
114
|
+
每页显示的条目数量
|
115
|
+
|
116
|
+
:return: The limit of this ListOrganizationPolicyDetailResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._limit
|
120
|
+
|
121
|
+
@limit.setter
|
122
|
+
def limit(self, limit):
|
123
|
+
"""Sets the limit of this ListOrganizationPolicyDetailResponse.
|
124
|
+
|
125
|
+
每页显示的条目数量
|
126
|
+
|
127
|
+
:param limit: The limit of this ListOrganizationPolicyDetailResponse.
|
128
|
+
:type limit: int
|
129
|
+
"""
|
130
|
+
self._limit = limit
|
131
|
+
|
132
|
+
@property
|
133
|
+
def offset(self):
|
134
|
+
"""Gets the offset of this ListOrganizationPolicyDetailResponse.
|
135
|
+
|
136
|
+
偏移量,表示从此偏移量开始查询
|
137
|
+
|
138
|
+
:return: The offset of this ListOrganizationPolicyDetailResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._offset
|
142
|
+
|
143
|
+
@offset.setter
|
144
|
+
def offset(self, offset):
|
145
|
+
"""Sets the offset of this ListOrganizationPolicyDetailResponse.
|
146
|
+
|
147
|
+
偏移量,表示从此偏移量开始查询
|
148
|
+
|
149
|
+
:param offset: The offset of this ListOrganizationPolicyDetailResponse.
|
150
|
+
:type offset: int
|
151
|
+
"""
|
152
|
+
self._offset = offset
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ListOrganizationPolicyDetailResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|
@@ -21,19 +21,17 @@ class ListVaultResponse(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
|
34
|
+
def __init__(self, vaults=None, count=None, limit=None, offset=None):
|
37
35
|
"""ListVaultResponse
|
38
36
|
|
39
37
|
The model defined in huaweicloud sdk
|
@@ -46,8 +44,6 @@ class ListVaultResponse(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(ListVaultResponse, self).__init__()
|
@@ -56,7 +52,6 @@ class ListVaultResponse(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 ListVaultResponse(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 ListVaultResponse(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 ListVaultResponse.
|
164
|
-
|
165
|
-
用于标识SMB服务
|
166
|
-
|
167
|
-
:return: The sys_lock_source_service of this ListVaultResponse.
|
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 ListVaultResponse.
|
175
|
-
|
176
|
-
用于标识SMB服务
|
177
|
-
|
178
|
-
:param sys_lock_source_service: The sys_lock_source_service of this ListVaultResponse.
|
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 = {}
|