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,256 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SrcNodeResp:
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"""SrcNodeResp
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、Google、Qiniu、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 SrcNodeResp.
82
+
83
+ 源端桶的名称。
84
+
85
+ :return: The bucket of this SrcNodeResp.
86
+ :rtype: str
87
+ """
88
+ return self._bucket
89
+
90
+ @bucket.setter
91
+ def bucket(self, bucket):
92
+ r"""Sets the bucket of this SrcNodeResp.
93
+
94
+ 源端桶的名称。
95
+
96
+ :param bucket: The bucket of this SrcNodeResp.
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 SrcNodeResp.
104
+
105
+ 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Google、Qiniu、URLSource或者UCloud。默认值为Aliyun。
106
+
107
+ :return: The cloud_type of this SrcNodeResp.
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 SrcNodeResp.
115
+
116
+ 源端云服务提供商。 可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Google、Qiniu、URLSource或者UCloud。默认值为Aliyun。
117
+
118
+ :param cloud_type: The cloud_type of this SrcNodeResp.
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 SrcNodeResp.
126
+
127
+ 源端桶所处的区域。
128
+
129
+ :return: The region of this SrcNodeResp.
130
+ :rtype: str
131
+ """
132
+ return self._region
133
+
134
+ @region.setter
135
+ def region(self, region):
136
+ r"""Sets the region of this SrcNodeResp.
137
+
138
+ 源端桶所处的区域。
139
+
140
+ :param region: The region of this SrcNodeResp.
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 SrcNodeResp.
148
+
149
+ 当源端为腾讯云时,会返回此参数。
150
+
151
+ :return: The app_id of this SrcNodeResp.
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 SrcNodeResp.
159
+
160
+ 当源端为腾讯云时,会返回此参数。
161
+
162
+ :param app_id: The app_id of this SrcNodeResp.
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 SrcNodeResp.
170
+
171
+ 任务类型为对象迁移任务时,表示待迁移对象名称; 任务类型为前缀迁移任务时,表示待迁移前缀。
172
+
173
+ :return: The object_key of this SrcNodeResp.
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 SrcNodeResp.
181
+
182
+ 任务类型为对象迁移任务时,表示待迁移对象名称; 任务类型为前缀迁移任务时,表示待迁移前缀。
183
+
184
+ :param object_key: The object_key of this SrcNodeResp.
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 SrcNodeResp.
192
+
193
+ :return: The list_file of this SrcNodeResp.
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 SrcNodeResp.
201
+
202
+ :param list_file: The list_file of this SrcNodeResp.
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, SrcNodeResp):
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
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StartSyncTaskReq:
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
+ 'dst_ak': 'str',
23
+ 'dst_sk': 'str',
24
+ 'source_cdn_authentication_key': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'src_ak': 'src_ak',
29
+ 'src_sk': 'src_sk',
30
+ 'dst_ak': 'dst_ak',
31
+ 'dst_sk': 'dst_sk',
32
+ 'source_cdn_authentication_key': 'source_cdn_authentication_key'
33
+ }
34
+
35
+ def __init__(self, src_ak=None, src_sk=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None):
36
+ r"""StartSyncTaskReq
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param src_ak: 源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
41
+ :type src_ak: str
42
+ :param src_sk: 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
43
+ :type src_sk: str
44
+ :param dst_ak: 目的端节点AK(最大长度100个字符)。
45
+ :type dst_ak: str
46
+ :param dst_sk: 目的端节点SK(最大长度100个字符)。
47
+ :type dst_sk: str
48
+ :param source_cdn_authentication_key: CDN鉴权秘钥。
49
+ :type source_cdn_authentication_key: str
50
+ """
51
+
52
+
53
+
54
+ self._src_ak = None
55
+ self._src_sk = None
56
+ self._dst_ak = None
57
+ self._dst_sk = None
58
+ self._source_cdn_authentication_key = None
59
+ self.discriminator = None
60
+
61
+ self.src_ak = src_ak
62
+ self.src_sk = src_sk
63
+ self.dst_ak = dst_ak
64
+ self.dst_sk = dst_sk
65
+ if source_cdn_authentication_key is not None:
66
+ self.source_cdn_authentication_key = source_cdn_authentication_key
67
+
68
+ @property
69
+ def src_ak(self):
70
+ r"""Gets the src_ak of this StartSyncTaskReq.
71
+
72
+ 源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
73
+
74
+ :return: The src_ak of this StartSyncTaskReq.
75
+ :rtype: str
76
+ """
77
+ return self._src_ak
78
+
79
+ @src_ak.setter
80
+ def src_ak(self, src_ak):
81
+ r"""Sets the src_ak of this StartSyncTaskReq.
82
+
83
+ 源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
84
+
85
+ :param src_ak: The src_ak of this StartSyncTaskReq.
86
+ :type src_ak: str
87
+ """
88
+ self._src_ak = src_ak
89
+
90
+ @property
91
+ def src_sk(self):
92
+ r"""Gets the src_sk of this StartSyncTaskReq.
93
+
94
+ 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
95
+
96
+ :return: The src_sk of this StartSyncTaskReq.
97
+ :rtype: str
98
+ """
99
+ return self._src_sk
100
+
101
+ @src_sk.setter
102
+ def src_sk(self, src_sk):
103
+ r"""Sets the src_sk of this StartSyncTaskReq.
104
+
105
+ 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
106
+
107
+ :param src_sk: The src_sk of this StartSyncTaskReq.
108
+ :type src_sk: str
109
+ """
110
+ self._src_sk = src_sk
111
+
112
+ @property
113
+ def dst_ak(self):
114
+ r"""Gets the dst_ak of this StartSyncTaskReq.
115
+
116
+ 目的端节点AK(最大长度100个字符)。
117
+
118
+ :return: The dst_ak of this StartSyncTaskReq.
119
+ :rtype: str
120
+ """
121
+ return self._dst_ak
122
+
123
+ @dst_ak.setter
124
+ def dst_ak(self, dst_ak):
125
+ r"""Sets the dst_ak of this StartSyncTaskReq.
126
+
127
+ 目的端节点AK(最大长度100个字符)。
128
+
129
+ :param dst_ak: The dst_ak of this StartSyncTaskReq.
130
+ :type dst_ak: str
131
+ """
132
+ self._dst_ak = dst_ak
133
+
134
+ @property
135
+ def dst_sk(self):
136
+ r"""Gets the dst_sk of this StartSyncTaskReq.
137
+
138
+ 目的端节点SK(最大长度100个字符)。
139
+
140
+ :return: The dst_sk of this StartSyncTaskReq.
141
+ :rtype: str
142
+ """
143
+ return self._dst_sk
144
+
145
+ @dst_sk.setter
146
+ def dst_sk(self, dst_sk):
147
+ r"""Sets the dst_sk of this StartSyncTaskReq.
148
+
149
+ 目的端节点SK(最大长度100个字符)。
150
+
151
+ :param dst_sk: The dst_sk of this StartSyncTaskReq.
152
+ :type dst_sk: str
153
+ """
154
+ self._dst_sk = dst_sk
155
+
156
+ @property
157
+ def source_cdn_authentication_key(self):
158
+ r"""Gets the source_cdn_authentication_key of this StartSyncTaskReq.
159
+
160
+ CDN鉴权秘钥。
161
+
162
+ :return: The source_cdn_authentication_key of this StartSyncTaskReq.
163
+ :rtype: str
164
+ """
165
+ return self._source_cdn_authentication_key
166
+
167
+ @source_cdn_authentication_key.setter
168
+ def source_cdn_authentication_key(self, source_cdn_authentication_key):
169
+ r"""Sets the source_cdn_authentication_key of this StartSyncTaskReq.
170
+
171
+ CDN鉴权秘钥。
172
+
173
+ :param source_cdn_authentication_key: The source_cdn_authentication_key of this StartSyncTaskReq.
174
+ :type source_cdn_authentication_key: str
175
+ """
176
+ self._source_cdn_authentication_key = source_cdn_authentication_key
177
+
178
+ def to_dict(self):
179
+ """Returns the model properties as a dict"""
180
+ result = {}
181
+
182
+ for attr, _ in six.iteritems(self.openapi_types):
183
+ value = getattr(self, attr)
184
+ if isinstance(value, list):
185
+ result[attr] = list(map(
186
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
187
+ value
188
+ ))
189
+ elif hasattr(value, "to_dict"):
190
+ result[attr] = value.to_dict()
191
+ elif isinstance(value, dict):
192
+ result[attr] = dict(map(
193
+ lambda item: (item[0], item[1].to_dict())
194
+ if hasattr(item[1], "to_dict") else item,
195
+ value.items()
196
+ ))
197
+ else:
198
+ if attr in self.sensitive_list:
199
+ result[attr] = "****"
200
+ else:
201
+ result[attr] = value
202
+
203
+ return result
204
+
205
+ def to_str(self):
206
+ """Returns the string representation of the model"""
207
+ import simplejson as json
208
+ if six.PY2:
209
+ import sys
210
+ reload(sys)
211
+ sys.setdefaultencoding("utf-8")
212
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
213
+
214
+ def __repr__(self):
215
+ """For `print`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other):
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, StartSyncTaskReq):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other):
226
+ """Returns true if both objects are not equal"""
227
+ 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 StartSyncTaskRequest:
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
+ 'sync_task_id': 'str',
21
+ 'body': 'StartSyncTaskReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'sync_task_id': 'sync_task_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, sync_task_id=None, body=None):
30
+ r"""StartSyncTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param sync_task_id: 同步任务ID。
35
+ :type sync_task_id: str
36
+ :param body: Body of the StartSyncTaskRequest
37
+ :type body: :class:`huaweicloudsdkoms.v2.StartSyncTaskReq`
38
+ """
39
+
40
+
41
+
42
+ self._sync_task_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.sync_task_id = sync_task_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def sync_task_id(self):
52
+ r"""Gets the sync_task_id of this StartSyncTaskRequest.
53
+
54
+ 同步任务ID。
55
+
56
+ :return: The sync_task_id of this StartSyncTaskRequest.
57
+ :rtype: str
58
+ """
59
+ return self._sync_task_id
60
+
61
+ @sync_task_id.setter
62
+ def sync_task_id(self, sync_task_id):
63
+ r"""Sets the sync_task_id of this StartSyncTaskRequest.
64
+
65
+ 同步任务ID。
66
+
67
+ :param sync_task_id: The sync_task_id of this StartSyncTaskRequest.
68
+ :type sync_task_id: str
69
+ """
70
+ self._sync_task_id = sync_task_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this StartSyncTaskRequest.
75
+
76
+ :return: The body of this StartSyncTaskRequest.
77
+ :rtype: :class:`huaweicloudsdkoms.v2.StartSyncTaskReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this StartSyncTaskRequest.
84
+
85
+ :param body: The body of this StartSyncTaskRequest.
86
+ :type body: :class:`huaweicloudsdkoms.v2.StartSyncTaskReq`
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, StartSyncTaskRequest):
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 StartSyncTaskResponse(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"""StartSyncTaskResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(StartSyncTaskResponse, 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, StartSyncTaskResponse):
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