huaweicloudsdkcbr 3.1.85__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.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/METADATA +2 -2
  47. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/RECORD +50 -27
  48. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/WHEEL +1 -1
  49. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/LICENSE +0 -0
  50. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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
@@ -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
@@ -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,172 @@
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
+ 'limit': 'int',
22
+ 'offset': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'operation_type': 'operation_type',
27
+ 'limit': 'limit',
28
+ 'offset': 'offset'
29
+ }
30
+
31
+ def __init__(self, operation_type=None, limit=None, offset=None):
32
+ """ListOrganizationPoliciesRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param operation_type: 组织策略类型
37
+ :type operation_type: str
38
+ :param limit: 每页显示的条目数量,正整数
39
+ :type limit: int
40
+ :param offset: 偏移值,正整数
41
+ :type offset: int
42
+ """
43
+
44
+
45
+
46
+ self._operation_type = None
47
+ self._limit = None
48
+ self._offset = None
49
+ self.discriminator = None
50
+
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
56
+
57
+ @property
58
+ def operation_type(self):
59
+ """Gets the operation_type of this ListOrganizationPoliciesRequest.
60
+
61
+ 组织策略类型
62
+
63
+ :return: The operation_type of this ListOrganizationPoliciesRequest.
64
+ :rtype: str
65
+ """
66
+ return self._operation_type
67
+
68
+ @operation_type.setter
69
+ def operation_type(self, operation_type):
70
+ """Sets the operation_type of this ListOrganizationPoliciesRequest.
71
+
72
+ 组织策略类型
73
+
74
+ :param operation_type: The operation_type of this ListOrganizationPoliciesRequest.
75
+ :type operation_type: str
76
+ """
77
+ self._operation_type = operation_type
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
+
123
+ def to_dict(self):
124
+ """Returns the model properties as a dict"""
125
+ result = {}
126
+
127
+ for attr, _ in six.iteritems(self.openapi_types):
128
+ value = getattr(self, attr)
129
+ if isinstance(value, list):
130
+ result[attr] = list(map(
131
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
+ value
133
+ ))
134
+ elif hasattr(value, "to_dict"):
135
+ result[attr] = value.to_dict()
136
+ elif isinstance(value, dict):
137
+ result[attr] = dict(map(
138
+ lambda item: (item[0], item[1].to_dict())
139
+ if hasattr(item[1], "to_dict") else item,
140
+ value.items()
141
+ ))
142
+ else:
143
+ if attr in self.sensitive_list:
144
+ result[attr] = "****"
145
+ else:
146
+ result[attr] = value
147
+
148
+ return result
149
+
150
+ def to_str(self):
151
+ """Returns the string representation of the model"""
152
+ import simplejson as json
153
+ if six.PY2:
154
+ import sys
155
+ reload(sys)
156
+ sys.setdefaultencoding("utf-8")
157
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
+
159
+ def __repr__(self):
160
+ """For `print`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, ListOrganizationPoliciesRequest):
166
+ return False
167
+
168
+ return self.__dict__ == other.__dict__
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ return not self == other