huaweicloudsdkoms 3.1.160__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 (121) hide show
  1. huaweicloudsdkoms/__init__.py +0 -0
  2. huaweicloudsdkoms/v2/__init__.py +117 -0
  3. huaweicloudsdkoms/v2/model/__init__.py +114 -0
  4. huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py +170 -0
  5. huaweicloudsdkoms/v2/model/batch_update_tasks_req.py +201 -0
  6. huaweicloudsdkoms/v2/model/batch_update_tasks_request.py +111 -0
  7. huaweicloudsdkoms/v2/model/batch_update_tasks_response.py +85 -0
  8. huaweicloudsdkoms/v2/model/check_prefix_req.py +343 -0
  9. huaweicloudsdkoms/v2/model/check_prefix_request.py +111 -0
  10. huaweicloudsdkoms/v2/model/check_prefix_response.py +116 -0
  11. huaweicloudsdkoms/v2/model/checked_key.py +173 -0
  12. huaweicloudsdkoms/v2/model/create_sync_events_request.py +139 -0
  13. huaweicloudsdkoms/v2/model/create_sync_events_response.py +85 -0
  14. huaweicloudsdkoms/v2/model/create_sync_task_req.py +567 -0
  15. huaweicloudsdkoms/v2/model/create_sync_task_request.py +111 -0
  16. huaweicloudsdkoms/v2/model/create_sync_task_response.py +116 -0
  17. huaweicloudsdkoms/v2/model/create_task_group_req.py +531 -0
  18. huaweicloudsdkoms/v2/model/create_task_group_request.py +111 -0
  19. huaweicloudsdkoms/v2/model/create_task_group_response.py +116 -0
  20. huaweicloudsdkoms/v2/model/create_task_req.py +561 -0
  21. huaweicloudsdkoms/v2/model/create_task_request.py +111 -0
  22. huaweicloudsdkoms/v2/model/create_task_response.py +145 -0
  23. huaweicloudsdkoms/v2/model/delete_sync_task_request.py +114 -0
  24. huaweicloudsdkoms/v2/model/delete_sync_task_response.py +85 -0
  25. huaweicloudsdkoms/v2/model/delete_task_group_request.py +114 -0
  26. huaweicloudsdkoms/v2/model/delete_task_group_response.py +85 -0
  27. huaweicloudsdkoms/v2/model/delete_task_request.py +114 -0
  28. huaweicloudsdkoms/v2/model/delete_task_response.py +85 -0
  29. huaweicloudsdkoms/v2/model/dst_node_req.py +256 -0
  30. huaweicloudsdkoms/v2/model/dst_node_resp.py +173 -0
  31. huaweicloudsdkoms/v2/model/error_reason_resp.py +144 -0
  32. huaweicloudsdkoms/v2/model/failed_object_record_dto.py +173 -0
  33. huaweicloudsdkoms/v2/model/link.py +144 -0
  34. huaweicloudsdkoms/v2/model/list_api_versions_request.py +84 -0
  35. huaweicloudsdkoms/v2/model/list_api_versions_response.py +116 -0
  36. huaweicloudsdkoms/v2/model/list_buckets_req.py +230 -0
  37. huaweicloudsdkoms/v2/model/list_file.py +171 -0
  38. huaweicloudsdkoms/v2/model/list_sync_task_statistic_request.py +198 -0
  39. huaweicloudsdkoms/v2/model/list_sync_task_statistic_response.py +174 -0
  40. huaweicloudsdkoms/v2/model/list_sync_tasks_request.py +173 -0
  41. huaweicloudsdkoms/v2/model/list_sync_tasks_response.py +145 -0
  42. huaweicloudsdkoms/v2/model/list_task_group_request.py +173 -0
  43. huaweicloudsdkoms/v2/model/list_task_group_response.py +145 -0
  44. huaweicloudsdkoms/v2/model/list_tasks_request.py +202 -0
  45. huaweicloudsdkoms/v2/model/list_tasks_response.py +145 -0
  46. huaweicloudsdkoms/v2/model/prefix_key_info.py +114 -0
  47. huaweicloudsdkoms/v2/model/region_info.py +173 -0
  48. huaweicloudsdkoms/v2/model/retry_task_group_req.py +289 -0
  49. huaweicloudsdkoms/v2/model/retry_task_group_request.py +139 -0
  50. huaweicloudsdkoms/v2/model/retry_task_group_response.py +85 -0
  51. huaweicloudsdkoms/v2/model/show_api_info_request.py +114 -0
  52. huaweicloudsdkoms/v2/model/show_api_info_response.py +203 -0
  53. huaweicloudsdkoms/v2/model/show_bucket_list_request.py +111 -0
  54. huaweicloudsdkoms/v2/model/show_bucket_list_response.py +112 -0
  55. huaweicloudsdkoms/v2/model/show_bucket_objects_request.py +111 -0
  56. huaweicloudsdkoms/v2/model/show_bucket_objects_response.py +174 -0
  57. huaweicloudsdkoms/v2/model/show_bucket_record.py +144 -0
  58. huaweicloudsdkoms/v2/model/show_bucket_region_req.py +258 -0
  59. huaweicloudsdkoms/v2/model/show_bucket_region_request.py +111 -0
  60. huaweicloudsdkoms/v2/model/show_bucket_region_response.py +174 -0
  61. huaweicloudsdkoms/v2/model/show_bucket_req.py +370 -0
  62. huaweicloudsdkoms/v2/model/show_cdn_info_req.py +304 -0
  63. huaweicloudsdkoms/v2/model/show_cdn_info_request.py +111 -0
  64. huaweicloudsdkoms/v2/model/show_cdn_info_response.py +174 -0
  65. huaweicloudsdkoms/v2/model/show_cloud_type_request.py +114 -0
  66. huaweicloudsdkoms/v2/model/show_cloud_type_response.py +112 -0
  67. huaweicloudsdkoms/v2/model/show_region_info_request.py +84 -0
  68. huaweicloudsdkoms/v2/model/show_region_info_resp.py +144 -0
  69. huaweicloudsdkoms/v2/model/show_region_info_response.py +112 -0
  70. huaweicloudsdkoms/v2/model/show_sync_task_request.py +142 -0
  71. huaweicloudsdkoms/v2/model/show_sync_task_response.py +725 -0
  72. huaweicloudsdkoms/v2/model/show_task_group_request.py +114 -0
  73. huaweicloudsdkoms/v2/model/show_task_group_response.py +1165 -0
  74. huaweicloudsdkoms/v2/model/show_task_request.py +114 -0
  75. huaweicloudsdkoms/v2/model/show_task_response.py +1194 -0
  76. huaweicloudsdkoms/v2/model/smn_config.py +200 -0
  77. huaweicloudsdkoms/v2/model/smn_info.py +173 -0
  78. huaweicloudsdkoms/v2/model/source_cdn_req.py +199 -0
  79. huaweicloudsdkoms/v2/model/source_cdn_resp.py +171 -0
  80. huaweicloudsdkoms/v2/model/src_node_req.py +372 -0
  81. huaweicloudsdkoms/v2/model/src_node_resp.py +256 -0
  82. huaweicloudsdkoms/v2/model/start_sync_task_req.py +227 -0
  83. huaweicloudsdkoms/v2/model/start_sync_task_request.py +139 -0
  84. huaweicloudsdkoms/v2/model/start_sync_task_response.py +85 -0
  85. huaweicloudsdkoms/v2/model/start_task_group_req.py +258 -0
  86. huaweicloudsdkoms/v2/model/start_task_group_request.py +139 -0
  87. huaweicloudsdkoms/v2/model/start_task_group_response.py +85 -0
  88. huaweicloudsdkoms/v2/model/start_task_req.py +345 -0
  89. huaweicloudsdkoms/v2/model/start_task_request.py +139 -0
  90. huaweicloudsdkoms/v2/model/start_task_response.py +85 -0
  91. huaweicloudsdkoms/v2/model/statistic_data.py +144 -0
  92. huaweicloudsdkoms/v2/model/statistic_type_data.py +144 -0
  93. huaweicloudsdkoms/v2/model/stop_sync_task_request.py +114 -0
  94. huaweicloudsdkoms/v2/model/stop_sync_task_response.py +85 -0
  95. huaweicloudsdkoms/v2/model/stop_task_group_request.py +114 -0
  96. huaweicloudsdkoms/v2/model/stop_task_group_response.py +85 -0
  97. huaweicloudsdkoms/v2/model/stop_task_request.py +114 -0
  98. huaweicloudsdkoms/v2/model/stop_task_response.py +85 -0
  99. huaweicloudsdkoms/v2/model/sync_object_req.py +114 -0
  100. huaweicloudsdkoms/v2/model/sync_task_info.py +604 -0
  101. huaweicloudsdkoms/v2/model/task_group_dst_node.py +256 -0
  102. huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py +173 -0
  103. huaweicloudsdkoms/v2/model/task_group_resp.py +1164 -0
  104. huaweicloudsdkoms/v2/model/task_group_src_node.py +343 -0
  105. huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +256 -0
  106. huaweicloudsdkoms/v2/model/task_resp.py +1193 -0
  107. huaweicloudsdkoms/v2/model/update_bandwidth_policy_req.py +114 -0
  108. huaweicloudsdkoms/v2/model/update_bandwidth_policy_request.py +139 -0
  109. huaweicloudsdkoms/v2/model/update_bandwidth_policy_response.py +85 -0
  110. huaweicloudsdkoms/v2/model/update_task_group_request.py +139 -0
  111. huaweicloudsdkoms/v2/model/update_task_group_response.py +85 -0
  112. huaweicloudsdkoms/v2/model/version.py +202 -0
  113. huaweicloudsdkoms/v2/oms_async_client.py +2263 -0
  114. huaweicloudsdkoms/v2/oms_client.py +2260 -0
  115. huaweicloudsdkoms/v2/region/__init__.py +0 -0
  116. huaweicloudsdkoms/v2/region/oms_region.py +91 -0
  117. huaweicloudsdkoms-3.1.160.dist-info/LICENSE +13 -0
  118. huaweicloudsdkoms-3.1.160.dist-info/METADATA +26 -0
  119. huaweicloudsdkoms-3.1.160.dist-info/RECORD +121 -0
  120. huaweicloudsdkoms-3.1.160.dist-info/WHEEL +5 -0
  121. huaweicloudsdkoms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RegionInfo:
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
+ 'cloud_type': 'str',
21
+ 'value': 'str',
22
+ 'description': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'cloud_type': 'cloud_type',
27
+ 'value': 'value',
28
+ 'description': 'description'
29
+ }
30
+
31
+ def __init__(self, cloud_type=None, value=None, description=None):
32
+ r"""RegionInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param cloud_type: 云服务名称
37
+ :type cloud_type: str
38
+ :param value: region名称
39
+ :type value: str
40
+ :param description: region的描述信息
41
+ :type description: str
42
+ """
43
+
44
+
45
+
46
+ self._cloud_type = None
47
+ self._value = None
48
+ self._description = None
49
+ self.discriminator = None
50
+
51
+ if cloud_type is not None:
52
+ self.cloud_type = cloud_type
53
+ if value is not None:
54
+ self.value = value
55
+ if description is not None:
56
+ self.description = description
57
+
58
+ @property
59
+ def cloud_type(self):
60
+ r"""Gets the cloud_type of this RegionInfo.
61
+
62
+ 云服务名称
63
+
64
+ :return: The cloud_type of this RegionInfo.
65
+ :rtype: str
66
+ """
67
+ return self._cloud_type
68
+
69
+ @cloud_type.setter
70
+ def cloud_type(self, cloud_type):
71
+ r"""Sets the cloud_type of this RegionInfo.
72
+
73
+ 云服务名称
74
+
75
+ :param cloud_type: The cloud_type of this RegionInfo.
76
+ :type cloud_type: str
77
+ """
78
+ self._cloud_type = cloud_type
79
+
80
+ @property
81
+ def value(self):
82
+ r"""Gets the value of this RegionInfo.
83
+
84
+ region名称
85
+
86
+ :return: The value of this RegionInfo.
87
+ :rtype: str
88
+ """
89
+ return self._value
90
+
91
+ @value.setter
92
+ def value(self, value):
93
+ r"""Sets the value of this RegionInfo.
94
+
95
+ region名称
96
+
97
+ :param value: The value of this RegionInfo.
98
+ :type value: str
99
+ """
100
+ self._value = value
101
+
102
+ @property
103
+ def description(self):
104
+ r"""Gets the description of this RegionInfo.
105
+
106
+ region的描述信息
107
+
108
+ :return: The description of this RegionInfo.
109
+ :rtype: str
110
+ """
111
+ return self._description
112
+
113
+ @description.setter
114
+ def description(self, description):
115
+ r"""Sets the description of this RegionInfo.
116
+
117
+ region的描述信息
118
+
119
+ :param description: The description of this RegionInfo.
120
+ :type description: str
121
+ """
122
+ self._description = description
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, RegionInfo):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RetryTaskGroupReq:
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
+ 'src_ak': 'str',
21
+ 'src_sk': 'str',
22
+ 'json_auth_file': 'str',
23
+ 'dst_ak': 'str',
24
+ 'dst_sk': 'str',
25
+ 'source_cdn_authentication_key': 'str',
26
+ 'migrate_failed_object': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'src_ak': 'src_ak',
31
+ 'src_sk': 'src_sk',
32
+ 'json_auth_file': 'json_auth_file',
33
+ 'dst_ak': 'dst_ak',
34
+ 'dst_sk': 'dst_sk',
35
+ 'source_cdn_authentication_key': 'source_cdn_authentication_key',
36
+ 'migrate_failed_object': 'migrate_failed_object'
37
+ }
38
+
39
+ def __init__(self, src_ak=None, src_sk=None, json_auth_file=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None, migrate_failed_object=None):
40
+ r"""RetryTaskGroupReq
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param src_ak: 源端ak(最大长度100个字符)
45
+ :type src_ak: str
46
+ :param src_sk: 源端sk(最大长度100个字符)
47
+ :type src_sk: str
48
+ :param json_auth_file: 用于谷歌云Cloud Storage鉴权
49
+ :type json_auth_file: str
50
+ :param dst_ak: 目的端ak(最大长度100个字符)
51
+ :type dst_ak: str
52
+ :param dst_sk: 目的端sk(最大长度100个字符)
53
+ :type dst_sk: str
54
+ :param source_cdn_authentication_key: cdn鉴权秘钥
55
+ :type source_cdn_authentication_key: str
56
+ :param migrate_failed_object: 失败任务重试方式,标识是否为全量重新迁移,默认false(全量重新迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量重新迁移(默认跳过目的端已迁移对象)。
57
+ :type migrate_failed_object: bool
58
+ """
59
+
60
+
61
+
62
+ self._src_ak = None
63
+ self._src_sk = None
64
+ self._json_auth_file = None
65
+ self._dst_ak = None
66
+ self._dst_sk = None
67
+ self._source_cdn_authentication_key = None
68
+ self._migrate_failed_object = None
69
+ self.discriminator = None
70
+
71
+ if src_ak is not None:
72
+ self.src_ak = src_ak
73
+ if src_sk is not None:
74
+ self.src_sk = src_sk
75
+ if json_auth_file is not None:
76
+ self.json_auth_file = json_auth_file
77
+ if dst_ak is not None:
78
+ self.dst_ak = dst_ak
79
+ if dst_sk is not None:
80
+ self.dst_sk = dst_sk
81
+ if source_cdn_authentication_key is not None:
82
+ self.source_cdn_authentication_key = source_cdn_authentication_key
83
+ if migrate_failed_object is not None:
84
+ self.migrate_failed_object = migrate_failed_object
85
+
86
+ @property
87
+ def src_ak(self):
88
+ r"""Gets the src_ak of this RetryTaskGroupReq.
89
+
90
+ 源端ak(最大长度100个字符)
91
+
92
+ :return: The src_ak of this RetryTaskGroupReq.
93
+ :rtype: str
94
+ """
95
+ return self._src_ak
96
+
97
+ @src_ak.setter
98
+ def src_ak(self, src_ak):
99
+ r"""Sets the src_ak of this RetryTaskGroupReq.
100
+
101
+ 源端ak(最大长度100个字符)
102
+
103
+ :param src_ak: The src_ak of this RetryTaskGroupReq.
104
+ :type src_ak: str
105
+ """
106
+ self._src_ak = src_ak
107
+
108
+ @property
109
+ def src_sk(self):
110
+ r"""Gets the src_sk of this RetryTaskGroupReq.
111
+
112
+ 源端sk(最大长度100个字符)
113
+
114
+ :return: The src_sk of this RetryTaskGroupReq.
115
+ :rtype: str
116
+ """
117
+ return self._src_sk
118
+
119
+ @src_sk.setter
120
+ def src_sk(self, src_sk):
121
+ r"""Sets the src_sk of this RetryTaskGroupReq.
122
+
123
+ 源端sk(最大长度100个字符)
124
+
125
+ :param src_sk: The src_sk of this RetryTaskGroupReq.
126
+ :type src_sk: str
127
+ """
128
+ self._src_sk = src_sk
129
+
130
+ @property
131
+ def json_auth_file(self):
132
+ r"""Gets the json_auth_file of this RetryTaskGroupReq.
133
+
134
+ 用于谷歌云Cloud Storage鉴权
135
+
136
+ :return: The json_auth_file of this RetryTaskGroupReq.
137
+ :rtype: str
138
+ """
139
+ return self._json_auth_file
140
+
141
+ @json_auth_file.setter
142
+ def json_auth_file(self, json_auth_file):
143
+ r"""Sets the json_auth_file of this RetryTaskGroupReq.
144
+
145
+ 用于谷歌云Cloud Storage鉴权
146
+
147
+ :param json_auth_file: The json_auth_file of this RetryTaskGroupReq.
148
+ :type json_auth_file: str
149
+ """
150
+ self._json_auth_file = json_auth_file
151
+
152
+ @property
153
+ def dst_ak(self):
154
+ r"""Gets the dst_ak of this RetryTaskGroupReq.
155
+
156
+ 目的端ak(最大长度100个字符)
157
+
158
+ :return: The dst_ak of this RetryTaskGroupReq.
159
+ :rtype: str
160
+ """
161
+ return self._dst_ak
162
+
163
+ @dst_ak.setter
164
+ def dst_ak(self, dst_ak):
165
+ r"""Sets the dst_ak of this RetryTaskGroupReq.
166
+
167
+ 目的端ak(最大长度100个字符)
168
+
169
+ :param dst_ak: The dst_ak of this RetryTaskGroupReq.
170
+ :type dst_ak: str
171
+ """
172
+ self._dst_ak = dst_ak
173
+
174
+ @property
175
+ def dst_sk(self):
176
+ r"""Gets the dst_sk of this RetryTaskGroupReq.
177
+
178
+ 目的端sk(最大长度100个字符)
179
+
180
+ :return: The dst_sk of this RetryTaskGroupReq.
181
+ :rtype: str
182
+ """
183
+ return self._dst_sk
184
+
185
+ @dst_sk.setter
186
+ def dst_sk(self, dst_sk):
187
+ r"""Sets the dst_sk of this RetryTaskGroupReq.
188
+
189
+ 目的端sk(最大长度100个字符)
190
+
191
+ :param dst_sk: The dst_sk of this RetryTaskGroupReq.
192
+ :type dst_sk: str
193
+ """
194
+ self._dst_sk = dst_sk
195
+
196
+ @property
197
+ def source_cdn_authentication_key(self):
198
+ r"""Gets the source_cdn_authentication_key of this RetryTaskGroupReq.
199
+
200
+ cdn鉴权秘钥
201
+
202
+ :return: The source_cdn_authentication_key of this RetryTaskGroupReq.
203
+ :rtype: str
204
+ """
205
+ return self._source_cdn_authentication_key
206
+
207
+ @source_cdn_authentication_key.setter
208
+ def source_cdn_authentication_key(self, source_cdn_authentication_key):
209
+ r"""Sets the source_cdn_authentication_key of this RetryTaskGroupReq.
210
+
211
+ cdn鉴权秘钥
212
+
213
+ :param source_cdn_authentication_key: The source_cdn_authentication_key of this RetryTaskGroupReq.
214
+ :type source_cdn_authentication_key: str
215
+ """
216
+ self._source_cdn_authentication_key = source_cdn_authentication_key
217
+
218
+ @property
219
+ def migrate_failed_object(self):
220
+ r"""Gets the migrate_failed_object of this RetryTaskGroupReq.
221
+
222
+ 失败任务重试方式,标识是否为全量重新迁移,默认false(全量重新迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量重新迁移(默认跳过目的端已迁移对象)。
223
+
224
+ :return: The migrate_failed_object of this RetryTaskGroupReq.
225
+ :rtype: bool
226
+ """
227
+ return self._migrate_failed_object
228
+
229
+ @migrate_failed_object.setter
230
+ def migrate_failed_object(self, migrate_failed_object):
231
+ r"""Sets the migrate_failed_object of this RetryTaskGroupReq.
232
+
233
+ 失败任务重试方式,标识是否为全量重新迁移,默认false(全量重新迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量重新迁移(默认跳过目的端已迁移对象)。
234
+
235
+ :param migrate_failed_object: The migrate_failed_object of this RetryTaskGroupReq.
236
+ :type migrate_failed_object: bool
237
+ """
238
+ self._migrate_failed_object = migrate_failed_object
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, RetryTaskGroupReq):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ 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 RetryTaskGroupRequest:
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
+ 'group_id': 'str',
21
+ 'body': 'RetryTaskGroupReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'group_id': 'group_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, group_id=None, body=None):
30
+ r"""RetryTaskGroupRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param group_id: 任务组id
35
+ :type group_id: str
36
+ :param body: Body of the RetryTaskGroupRequest
37
+ :type body: :class:`huaweicloudsdkoms.v2.RetryTaskGroupReq`
38
+ """
39
+
40
+
41
+
42
+ self._group_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.group_id = group_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def group_id(self):
52
+ r"""Gets the group_id of this RetryTaskGroupRequest.
53
+
54
+ 任务组id
55
+
56
+ :return: The group_id of this RetryTaskGroupRequest.
57
+ :rtype: str
58
+ """
59
+ return self._group_id
60
+
61
+ @group_id.setter
62
+ def group_id(self, group_id):
63
+ r"""Sets the group_id of this RetryTaskGroupRequest.
64
+
65
+ 任务组id
66
+
67
+ :param group_id: The group_id of this RetryTaskGroupRequest.
68
+ :type group_id: str
69
+ """
70
+ self._group_id = group_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this RetryTaskGroupRequest.
75
+
76
+ :return: The body of this RetryTaskGroupRequest.
77
+ :rtype: :class:`huaweicloudsdkoms.v2.RetryTaskGroupReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this RetryTaskGroupRequest.
84
+
85
+ :param body: The body of this RetryTaskGroupRequest.
86
+ :type body: :class:`huaweicloudsdkoms.v2.RetryTaskGroupReq`
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, RetryTaskGroupRequest):
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,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 RetryTaskGroupResponse(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
+ r"""RetryTaskGroupResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(RetryTaskGroupResponse, 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, RetryTaskGroupResponse):
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