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,343 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskGroupSrcNode:
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
+ 'ak': 'str',
21
+ 'sk': 'str',
22
+ 'json_auth_file': 'str',
23
+ 'app_id': 'str',
24
+ 'region': 'str',
25
+ 'object_key': 'list[str]',
26
+ 'bucket': 'str',
27
+ 'cloud_type': 'str',
28
+ 'list_file': 'ListFile'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'ak': 'ak',
33
+ 'sk': 'sk',
34
+ 'json_auth_file': 'json_auth_file',
35
+ 'app_id': 'app_id',
36
+ 'region': 'region',
37
+ 'object_key': 'object_key',
38
+ 'bucket': 'bucket',
39
+ 'cloud_type': 'cloud_type',
40
+ 'list_file': 'list_file'
41
+ }
42
+
43
+ def __init__(self, ak=None, sk=None, json_auth_file=None, app_id=None, region=None, object_key=None, bucket=None, cloud_type=None, list_file=None):
44
+ r"""TaskGroupSrcNode
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param ak: 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
49
+ :type ak: str
50
+ :param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
51
+ :type sk: str
52
+ :param json_auth_file: 用于谷歌云Cloud Storage鉴权
53
+ :type json_auth_file: str
54
+ :param app_id: 当源端为腾讯云时,需要填写此参数。
55
+ :type app_id: str
56
+ :param region: 源端桶所处的区域,task_type为非URL_LIST时,本参数为必选。
57
+ :type region: str
58
+ :param object_key: 任务类型为前缀迁移任务时,表示待迁移前缀。 整桶迁移时,此参数设置为[\"\"]。
59
+ :type object_key: list[str]
60
+ :param bucket: 源端所在桶
61
+ :type bucket: str
62
+ :param cloud_type: 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource、Google或者UCloud。默认值为Aliyun。
63
+ :type cloud_type: str
64
+ :param list_file:
65
+ :type list_file: :class:`huaweicloudsdkoms.v2.ListFile`
66
+ """
67
+
68
+
69
+
70
+ self._ak = None
71
+ self._sk = None
72
+ self._json_auth_file = None
73
+ self._app_id = None
74
+ self._region = None
75
+ self._object_key = None
76
+ self._bucket = None
77
+ self._cloud_type = None
78
+ self._list_file = None
79
+ self.discriminator = None
80
+
81
+ if ak is not None:
82
+ self.ak = ak
83
+ if sk is not None:
84
+ self.sk = sk
85
+ if json_auth_file is not None:
86
+ self.json_auth_file = json_auth_file
87
+ if app_id is not None:
88
+ self.app_id = app_id
89
+ if region is not None:
90
+ self.region = region
91
+ if object_key is not None:
92
+ self.object_key = object_key
93
+ if bucket is not None:
94
+ self.bucket = bucket
95
+ if cloud_type is not None:
96
+ self.cloud_type = cloud_type
97
+ if list_file is not None:
98
+ self.list_file = list_file
99
+
100
+ @property
101
+ def ak(self):
102
+ r"""Gets the ak of this TaskGroupSrcNode.
103
+
104
+ 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
105
+
106
+ :return: The ak of this TaskGroupSrcNode.
107
+ :rtype: str
108
+ """
109
+ return self._ak
110
+
111
+ @ak.setter
112
+ def ak(self, ak):
113
+ r"""Sets the ak of this TaskGroupSrcNode.
114
+
115
+ 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
116
+
117
+ :param ak: The ak of this TaskGroupSrcNode.
118
+ :type ak: str
119
+ """
120
+ self._ak = ak
121
+
122
+ @property
123
+ def sk(self):
124
+ r"""Gets the sk of this TaskGroupSrcNode.
125
+
126
+ 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
127
+
128
+ :return: The sk of this TaskGroupSrcNode.
129
+ :rtype: str
130
+ """
131
+ return self._sk
132
+
133
+ @sk.setter
134
+ def sk(self, sk):
135
+ r"""Sets the sk of this TaskGroupSrcNode.
136
+
137
+ 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
138
+
139
+ :param sk: The sk of this TaskGroupSrcNode.
140
+ :type sk: str
141
+ """
142
+ self._sk = sk
143
+
144
+ @property
145
+ def json_auth_file(self):
146
+ r"""Gets the json_auth_file of this TaskGroupSrcNode.
147
+
148
+ 用于谷歌云Cloud Storage鉴权
149
+
150
+ :return: The json_auth_file of this TaskGroupSrcNode.
151
+ :rtype: str
152
+ """
153
+ return self._json_auth_file
154
+
155
+ @json_auth_file.setter
156
+ def json_auth_file(self, json_auth_file):
157
+ r"""Sets the json_auth_file of this TaskGroupSrcNode.
158
+
159
+ 用于谷歌云Cloud Storage鉴权
160
+
161
+ :param json_auth_file: The json_auth_file of this TaskGroupSrcNode.
162
+ :type json_auth_file: str
163
+ """
164
+ self._json_auth_file = json_auth_file
165
+
166
+ @property
167
+ def app_id(self):
168
+ r"""Gets the app_id of this TaskGroupSrcNode.
169
+
170
+ 当源端为腾讯云时,需要填写此参数。
171
+
172
+ :return: The app_id of this TaskGroupSrcNode.
173
+ :rtype: str
174
+ """
175
+ return self._app_id
176
+
177
+ @app_id.setter
178
+ def app_id(self, app_id):
179
+ r"""Sets the app_id of this TaskGroupSrcNode.
180
+
181
+ 当源端为腾讯云时,需要填写此参数。
182
+
183
+ :param app_id: The app_id of this TaskGroupSrcNode.
184
+ :type app_id: str
185
+ """
186
+ self._app_id = app_id
187
+
188
+ @property
189
+ def region(self):
190
+ r"""Gets the region of this TaskGroupSrcNode.
191
+
192
+ 源端桶所处的区域,task_type为非URL_LIST时,本参数为必选。
193
+
194
+ :return: The region of this TaskGroupSrcNode.
195
+ :rtype: str
196
+ """
197
+ return self._region
198
+
199
+ @region.setter
200
+ def region(self, region):
201
+ r"""Sets the region of this TaskGroupSrcNode.
202
+
203
+ 源端桶所处的区域,task_type为非URL_LIST时,本参数为必选。
204
+
205
+ :param region: The region of this TaskGroupSrcNode.
206
+ :type region: str
207
+ """
208
+ self._region = region
209
+
210
+ @property
211
+ def object_key(self):
212
+ r"""Gets the object_key of this TaskGroupSrcNode.
213
+
214
+ 任务类型为前缀迁移任务时,表示待迁移前缀。 整桶迁移时,此参数设置为[\"\"]。
215
+
216
+ :return: The object_key of this TaskGroupSrcNode.
217
+ :rtype: list[str]
218
+ """
219
+ return self._object_key
220
+
221
+ @object_key.setter
222
+ def object_key(self, object_key):
223
+ r"""Sets the object_key of this TaskGroupSrcNode.
224
+
225
+ 任务类型为前缀迁移任务时,表示待迁移前缀。 整桶迁移时,此参数设置为[\"\"]。
226
+
227
+ :param object_key: The object_key of this TaskGroupSrcNode.
228
+ :type object_key: list[str]
229
+ """
230
+ self._object_key = object_key
231
+
232
+ @property
233
+ def bucket(self):
234
+ r"""Gets the bucket of this TaskGroupSrcNode.
235
+
236
+ 源端所在桶
237
+
238
+ :return: The bucket of this TaskGroupSrcNode.
239
+ :rtype: str
240
+ """
241
+ return self._bucket
242
+
243
+ @bucket.setter
244
+ def bucket(self, bucket):
245
+ r"""Sets the bucket of this TaskGroupSrcNode.
246
+
247
+ 源端所在桶
248
+
249
+ :param bucket: The bucket of this TaskGroupSrcNode.
250
+ :type bucket: str
251
+ """
252
+ self._bucket = bucket
253
+
254
+ @property
255
+ def cloud_type(self):
256
+ r"""Gets the cloud_type of this TaskGroupSrcNode.
257
+
258
+ 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource、Google或者UCloud。默认值为Aliyun。
259
+
260
+ :return: The cloud_type of this TaskGroupSrcNode.
261
+ :rtype: str
262
+ """
263
+ return self._cloud_type
264
+
265
+ @cloud_type.setter
266
+ def cloud_type(self, cloud_type):
267
+ r"""Sets the cloud_type of this TaskGroupSrcNode.
268
+
269
+ 源端云服务提供商,当task_type为URL_LIST时,本参数为URLSource且必选。可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource、Google或者UCloud。默认值为Aliyun。
270
+
271
+ :param cloud_type: The cloud_type of this TaskGroupSrcNode.
272
+ :type cloud_type: str
273
+ """
274
+ self._cloud_type = cloud_type
275
+
276
+ @property
277
+ def list_file(self):
278
+ r"""Gets the list_file of this TaskGroupSrcNode.
279
+
280
+ :return: The list_file of this TaskGroupSrcNode.
281
+ :rtype: :class:`huaweicloudsdkoms.v2.ListFile`
282
+ """
283
+ return self._list_file
284
+
285
+ @list_file.setter
286
+ def list_file(self, list_file):
287
+ r"""Sets the list_file of this TaskGroupSrcNode.
288
+
289
+ :param list_file: The list_file of this TaskGroupSrcNode.
290
+ :type list_file: :class:`huaweicloudsdkoms.v2.ListFile`
291
+ """
292
+ self._list_file = list_file
293
+
294
+ def to_dict(self):
295
+ """Returns the model properties as a dict"""
296
+ result = {}
297
+
298
+ for attr, _ in six.iteritems(self.openapi_types):
299
+ value = getattr(self, attr)
300
+ if isinstance(value, list):
301
+ result[attr] = list(map(
302
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
303
+ value
304
+ ))
305
+ elif hasattr(value, "to_dict"):
306
+ result[attr] = value.to_dict()
307
+ elif isinstance(value, dict):
308
+ result[attr] = dict(map(
309
+ lambda item: (item[0], item[1].to_dict())
310
+ if hasattr(item[1], "to_dict") else item,
311
+ value.items()
312
+ ))
313
+ else:
314
+ if attr in self.sensitive_list:
315
+ result[attr] = "****"
316
+ else:
317
+ result[attr] = value
318
+
319
+ return result
320
+
321
+ def to_str(self):
322
+ """Returns the string representation of the model"""
323
+ import simplejson as json
324
+ if six.PY2:
325
+ import sys
326
+ reload(sys)
327
+ sys.setdefaultencoding("utf-8")
328
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
329
+
330
+ def __repr__(self):
331
+ """For `print`"""
332
+ return self.to_str()
333
+
334
+ def __eq__(self, other):
335
+ """Returns true if both objects are equal"""
336
+ if not isinstance(other, TaskGroupSrcNode):
337
+ return False
338
+
339
+ return self.__dict__ == other.__dict__
340
+
341
+ def __ne__(self, other):
342
+ """Returns true if both objects are not equal"""
343
+ return not self == other
@@ -0,0 +1,256 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskGroupSrcNodeResp:
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
+ 'bucket': 'str',
21
+ 'cloud_type': 'str',
22
+ 'region': 'str',
23
+ 'app_id': 'str',
24
+ 'object_key': 'list[str]',
25
+ 'list_file': 'ListFile'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'bucket': 'bucket',
30
+ 'cloud_type': 'cloud_type',
31
+ 'region': 'region',
32
+ 'app_id': 'app_id',
33
+ 'object_key': 'object_key',
34
+ 'list_file': 'list_file'
35
+ }
36
+
37
+ def __init__(self, bucket=None, cloud_type=None, region=None, app_id=None, object_key=None, list_file=None):
38
+ r"""TaskGroupSrcNodeResp
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param bucket: 源端桶的名称。
43
+ :type bucket: str
44
+ :param cloud_type: 源端云服务提供商。 可选值有AWS、AZURE、ALIYUN、TENCENT、HUAWEICLOUD、QINGCLOUD、KINGSOFTCLOUD、BAIDU、QINIU、GOOGLE、URLSOURCE或者UCLOUD。默认值为ALIYUN。
45
+ :type cloud_type: str
46
+ :param region: 源端桶所处的区域。
47
+ :type region: str
48
+ :param app_id: 当源端为腾讯云时,会返回此参数。
49
+ :type app_id: str
50
+ :param object_key: 任务组类型为前缀迁移任务时,表示待迁移前缀。
51
+ :type object_key: list[str]
52
+ :param list_file:
53
+ :type list_file: :class:`huaweicloudsdkoms.v2.ListFile`
54
+ """
55
+
56
+
57
+
58
+ self._bucket = None
59
+ self._cloud_type = None
60
+ self._region = None
61
+ self._app_id = None
62
+ self._object_key = None
63
+ self._list_file = None
64
+ self.discriminator = None
65
+
66
+ if bucket is not None:
67
+ self.bucket = bucket
68
+ if cloud_type is not None:
69
+ self.cloud_type = cloud_type
70
+ if region is not None:
71
+ self.region = region
72
+ if app_id is not None:
73
+ self.app_id = app_id
74
+ if object_key is not None:
75
+ self.object_key = object_key
76
+ if list_file is not None:
77
+ self.list_file = list_file
78
+
79
+ @property
80
+ def bucket(self):
81
+ r"""Gets the bucket of this TaskGroupSrcNodeResp.
82
+
83
+ 源端桶的名称。
84
+
85
+ :return: The bucket of this TaskGroupSrcNodeResp.
86
+ :rtype: str
87
+ """
88
+ return self._bucket
89
+
90
+ @bucket.setter
91
+ def bucket(self, bucket):
92
+ r"""Sets the bucket of this TaskGroupSrcNodeResp.
93
+
94
+ 源端桶的名称。
95
+
96
+ :param bucket: The bucket of this TaskGroupSrcNodeResp.
97
+ :type bucket: str
98
+ """
99
+ self._bucket = bucket
100
+
101
+ @property
102
+ def cloud_type(self):
103
+ r"""Gets the cloud_type of this TaskGroupSrcNodeResp.
104
+
105
+ 源端云服务提供商。 可选值有AWS、AZURE、ALIYUN、TENCENT、HUAWEICLOUD、QINGCLOUD、KINGSOFTCLOUD、BAIDU、QINIU、GOOGLE、URLSOURCE或者UCLOUD。默认值为ALIYUN。
106
+
107
+ :return: The cloud_type of this TaskGroupSrcNodeResp.
108
+ :rtype: str
109
+ """
110
+ return self._cloud_type
111
+
112
+ @cloud_type.setter
113
+ def cloud_type(self, cloud_type):
114
+ r"""Sets the cloud_type of this TaskGroupSrcNodeResp.
115
+
116
+ 源端云服务提供商。 可选值有AWS、AZURE、ALIYUN、TENCENT、HUAWEICLOUD、QINGCLOUD、KINGSOFTCLOUD、BAIDU、QINIU、GOOGLE、URLSOURCE或者UCLOUD。默认值为ALIYUN。
117
+
118
+ :param cloud_type: The cloud_type of this TaskGroupSrcNodeResp.
119
+ :type cloud_type: str
120
+ """
121
+ self._cloud_type = cloud_type
122
+
123
+ @property
124
+ def region(self):
125
+ r"""Gets the region of this TaskGroupSrcNodeResp.
126
+
127
+ 源端桶所处的区域。
128
+
129
+ :return: The region of this TaskGroupSrcNodeResp.
130
+ :rtype: str
131
+ """
132
+ return self._region
133
+
134
+ @region.setter
135
+ def region(self, region):
136
+ r"""Sets the region of this TaskGroupSrcNodeResp.
137
+
138
+ 源端桶所处的区域。
139
+
140
+ :param region: The region of this TaskGroupSrcNodeResp.
141
+ :type region: str
142
+ """
143
+ self._region = region
144
+
145
+ @property
146
+ def app_id(self):
147
+ r"""Gets the app_id of this TaskGroupSrcNodeResp.
148
+
149
+ 当源端为腾讯云时,会返回此参数。
150
+
151
+ :return: The app_id of this TaskGroupSrcNodeResp.
152
+ :rtype: str
153
+ """
154
+ return self._app_id
155
+
156
+ @app_id.setter
157
+ def app_id(self, app_id):
158
+ r"""Sets the app_id of this TaskGroupSrcNodeResp.
159
+
160
+ 当源端为腾讯云时,会返回此参数。
161
+
162
+ :param app_id: The app_id of this TaskGroupSrcNodeResp.
163
+ :type app_id: str
164
+ """
165
+ self._app_id = app_id
166
+
167
+ @property
168
+ def object_key(self):
169
+ r"""Gets the object_key of this TaskGroupSrcNodeResp.
170
+
171
+ 任务组类型为前缀迁移任务时,表示待迁移前缀。
172
+
173
+ :return: The object_key of this TaskGroupSrcNodeResp.
174
+ :rtype: list[str]
175
+ """
176
+ return self._object_key
177
+
178
+ @object_key.setter
179
+ def object_key(self, object_key):
180
+ r"""Sets the object_key of this TaskGroupSrcNodeResp.
181
+
182
+ 任务组类型为前缀迁移任务时,表示待迁移前缀。
183
+
184
+ :param object_key: The object_key of this TaskGroupSrcNodeResp.
185
+ :type object_key: list[str]
186
+ """
187
+ self._object_key = object_key
188
+
189
+ @property
190
+ def list_file(self):
191
+ r"""Gets the list_file of this TaskGroupSrcNodeResp.
192
+
193
+ :return: The list_file of this TaskGroupSrcNodeResp.
194
+ :rtype: :class:`huaweicloudsdkoms.v2.ListFile`
195
+ """
196
+ return self._list_file
197
+
198
+ @list_file.setter
199
+ def list_file(self, list_file):
200
+ r"""Sets the list_file of this TaskGroupSrcNodeResp.
201
+
202
+ :param list_file: The list_file of this TaskGroupSrcNodeResp.
203
+ :type list_file: :class:`huaweicloudsdkoms.v2.ListFile`
204
+ """
205
+ self._list_file = list_file
206
+
207
+ def to_dict(self):
208
+ """Returns the model properties as a dict"""
209
+ result = {}
210
+
211
+ for attr, _ in six.iteritems(self.openapi_types):
212
+ value = getattr(self, attr)
213
+ if isinstance(value, list):
214
+ result[attr] = list(map(
215
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
216
+ value
217
+ ))
218
+ elif hasattr(value, "to_dict"):
219
+ result[attr] = value.to_dict()
220
+ elif isinstance(value, dict):
221
+ result[attr] = dict(map(
222
+ lambda item: (item[0], item[1].to_dict())
223
+ if hasattr(item[1], "to_dict") else item,
224
+ value.items()
225
+ ))
226
+ else:
227
+ if attr in self.sensitive_list:
228
+ result[attr] = "****"
229
+ else:
230
+ result[attr] = value
231
+
232
+ return result
233
+
234
+ def to_str(self):
235
+ """Returns the string representation of the model"""
236
+ import simplejson as json
237
+ if six.PY2:
238
+ import sys
239
+ reload(sys)
240
+ sys.setdefaultencoding("utf-8")
241
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
242
+
243
+ def __repr__(self):
244
+ """For `print`"""
245
+ return self.to_str()
246
+
247
+ def __eq__(self, other):
248
+ """Returns true if both objects are equal"""
249
+ if not isinstance(other, TaskGroupSrcNodeResp):
250
+ return False
251
+
252
+ return self.__dict__ == other.__dict__
253
+
254
+ def __ne__(self, other):
255
+ """Returns true if both objects are not equal"""
256
+ return not self == other