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.
- huaweicloudsdkoms/__init__.py +0 -0
- huaweicloudsdkoms/v2/__init__.py +117 -0
- huaweicloudsdkoms/v2/model/__init__.py +114 -0
- huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py +170 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_req.py +201 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_request.py +111 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_response.py +85 -0
- huaweicloudsdkoms/v2/model/check_prefix_req.py +343 -0
- huaweicloudsdkoms/v2/model/check_prefix_request.py +111 -0
- huaweicloudsdkoms/v2/model/check_prefix_response.py +116 -0
- huaweicloudsdkoms/v2/model/checked_key.py +173 -0
- huaweicloudsdkoms/v2/model/create_sync_events_request.py +139 -0
- huaweicloudsdkoms/v2/model/create_sync_events_response.py +85 -0
- huaweicloudsdkoms/v2/model/create_sync_task_req.py +567 -0
- huaweicloudsdkoms/v2/model/create_sync_task_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_sync_task_response.py +116 -0
- huaweicloudsdkoms/v2/model/create_task_group_req.py +531 -0
- huaweicloudsdkoms/v2/model/create_task_group_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_task_group_response.py +116 -0
- huaweicloudsdkoms/v2/model/create_task_req.py +561 -0
- huaweicloudsdkoms/v2/model/create_task_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_task_response.py +145 -0
- huaweicloudsdkoms/v2/model/delete_sync_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/delete_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/delete_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/dst_node_req.py +256 -0
- huaweicloudsdkoms/v2/model/dst_node_resp.py +173 -0
- huaweicloudsdkoms/v2/model/error_reason_resp.py +144 -0
- huaweicloudsdkoms/v2/model/failed_object_record_dto.py +173 -0
- huaweicloudsdkoms/v2/model/link.py +144 -0
- huaweicloudsdkoms/v2/model/list_api_versions_request.py +84 -0
- huaweicloudsdkoms/v2/model/list_api_versions_response.py +116 -0
- huaweicloudsdkoms/v2/model/list_buckets_req.py +230 -0
- huaweicloudsdkoms/v2/model/list_file.py +171 -0
- huaweicloudsdkoms/v2/model/list_sync_task_statistic_request.py +198 -0
- huaweicloudsdkoms/v2/model/list_sync_task_statistic_response.py +174 -0
- huaweicloudsdkoms/v2/model/list_sync_tasks_request.py +173 -0
- huaweicloudsdkoms/v2/model/list_sync_tasks_response.py +145 -0
- huaweicloudsdkoms/v2/model/list_task_group_request.py +173 -0
- huaweicloudsdkoms/v2/model/list_task_group_response.py +145 -0
- huaweicloudsdkoms/v2/model/list_tasks_request.py +202 -0
- huaweicloudsdkoms/v2/model/list_tasks_response.py +145 -0
- huaweicloudsdkoms/v2/model/prefix_key_info.py +114 -0
- huaweicloudsdkoms/v2/model/region_info.py +173 -0
- huaweicloudsdkoms/v2/model/retry_task_group_req.py +289 -0
- huaweicloudsdkoms/v2/model/retry_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/retry_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/show_api_info_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_api_info_response.py +203 -0
- huaweicloudsdkoms/v2/model/show_bucket_list_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_list_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_bucket_objects_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_objects_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_bucket_record.py +144 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_req.py +258 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_bucket_req.py +370 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_req.py +304 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_cloud_type_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_cloud_type_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_region_info_request.py +84 -0
- huaweicloudsdkoms/v2/model/show_region_info_resp.py +144 -0
- huaweicloudsdkoms/v2/model/show_region_info_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_sync_task_request.py +142 -0
- huaweicloudsdkoms/v2/model/show_sync_task_response.py +725 -0
- huaweicloudsdkoms/v2/model/show_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_task_group_response.py +1165 -0
- huaweicloudsdkoms/v2/model/show_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_task_response.py +1194 -0
- huaweicloudsdkoms/v2/model/smn_config.py +200 -0
- huaweicloudsdkoms/v2/model/smn_info.py +173 -0
- huaweicloudsdkoms/v2/model/source_cdn_req.py +199 -0
- huaweicloudsdkoms/v2/model/source_cdn_resp.py +171 -0
- huaweicloudsdkoms/v2/model/src_node_req.py +372 -0
- huaweicloudsdkoms/v2/model/src_node_resp.py +256 -0
- huaweicloudsdkoms/v2/model/start_sync_task_req.py +227 -0
- huaweicloudsdkoms/v2/model/start_sync_task_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/start_task_group_req.py +258 -0
- huaweicloudsdkoms/v2/model/start_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/start_task_req.py +345 -0
- huaweicloudsdkoms/v2/model/start_task_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/statistic_data.py +144 -0
- huaweicloudsdkoms/v2/model/statistic_type_data.py +144 -0
- huaweicloudsdkoms/v2/model/stop_sync_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/stop_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/stop_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/sync_object_req.py +114 -0
- huaweicloudsdkoms/v2/model/sync_task_info.py +604 -0
- huaweicloudsdkoms/v2/model/task_group_dst_node.py +256 -0
- huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py +173 -0
- huaweicloudsdkoms/v2/model/task_group_resp.py +1164 -0
- huaweicloudsdkoms/v2/model/task_group_src_node.py +343 -0
- huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +256 -0
- huaweicloudsdkoms/v2/model/task_resp.py +1193 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_req.py +114 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_request.py +139 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_response.py +85 -0
- huaweicloudsdkoms/v2/model/update_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/update_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/version.py +202 -0
- huaweicloudsdkoms/v2/oms_async_client.py +2263 -0
- huaweicloudsdkoms/v2/oms_client.py +2260 -0
- huaweicloudsdkoms/v2/region/__init__.py +0 -0
- huaweicloudsdkoms/v2/region/oms_region.py +91 -0
- huaweicloudsdkoms-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoms-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoms-3.1.160.dist-info/RECORD +121 -0
- huaweicloudsdkoms-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,230 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListBucketsReq:
|
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
|
+
'ak': 'str',
|
22
|
+
'sk': 'str',
|
23
|
+
'json_auth_file': 'str',
|
24
|
+
'app_id': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'cloud_type': 'cloud_type',
|
29
|
+
'ak': 'ak',
|
30
|
+
'sk': 'sk',
|
31
|
+
'json_auth_file': 'json_auth_file',
|
32
|
+
'app_id': 'app_id'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, cloud_type=None, ak=None, sk=None, json_auth_file=None, app_id=None):
|
36
|
+
r"""ListBucketsReq
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param cloud_type: 云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
41
|
+
:type cloud_type: str
|
42
|
+
:param ak: 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
43
|
+
:type ak: str
|
44
|
+
:param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
45
|
+
:type sk: str
|
46
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
47
|
+
:type json_auth_file: str
|
48
|
+
:param app_id: 当源端为腾讯云时,会返回此参数。
|
49
|
+
:type app_id: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._cloud_type = None
|
55
|
+
self._ak = None
|
56
|
+
self._sk = None
|
57
|
+
self._json_auth_file = None
|
58
|
+
self._app_id = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.cloud_type = cloud_type
|
62
|
+
if ak is not None:
|
63
|
+
self.ak = ak
|
64
|
+
if sk is not None:
|
65
|
+
self.sk = sk
|
66
|
+
if json_auth_file is not None:
|
67
|
+
self.json_auth_file = json_auth_file
|
68
|
+
if app_id is not None:
|
69
|
+
self.app_id = app_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def cloud_type(self):
|
73
|
+
r"""Gets the cloud_type of this ListBucketsReq.
|
74
|
+
|
75
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
76
|
+
|
77
|
+
:return: The cloud_type of this ListBucketsReq.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._cloud_type
|
81
|
+
|
82
|
+
@cloud_type.setter
|
83
|
+
def cloud_type(self, cloud_type):
|
84
|
+
r"""Sets the cloud_type of this ListBucketsReq.
|
85
|
+
|
86
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
87
|
+
|
88
|
+
:param cloud_type: The cloud_type of this ListBucketsReq.
|
89
|
+
:type cloud_type: str
|
90
|
+
"""
|
91
|
+
self._cloud_type = cloud_type
|
92
|
+
|
93
|
+
@property
|
94
|
+
def ak(self):
|
95
|
+
r"""Gets the ak of this ListBucketsReq.
|
96
|
+
|
97
|
+
源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
98
|
+
|
99
|
+
:return: The ak of this ListBucketsReq.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._ak
|
103
|
+
|
104
|
+
@ak.setter
|
105
|
+
def ak(self, ak):
|
106
|
+
r"""Sets the ak of this ListBucketsReq.
|
107
|
+
|
108
|
+
源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
109
|
+
|
110
|
+
:param ak: The ak of this ListBucketsReq.
|
111
|
+
:type ak: str
|
112
|
+
"""
|
113
|
+
self._ak = ak
|
114
|
+
|
115
|
+
@property
|
116
|
+
def sk(self):
|
117
|
+
r"""Gets the sk of this ListBucketsReq.
|
118
|
+
|
119
|
+
源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
120
|
+
|
121
|
+
:return: The sk of this ListBucketsReq.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._sk
|
125
|
+
|
126
|
+
@sk.setter
|
127
|
+
def sk(self, sk):
|
128
|
+
r"""Sets the sk of this ListBucketsReq.
|
129
|
+
|
130
|
+
源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
131
|
+
|
132
|
+
:param sk: The sk of this ListBucketsReq.
|
133
|
+
:type sk: str
|
134
|
+
"""
|
135
|
+
self._sk = sk
|
136
|
+
|
137
|
+
@property
|
138
|
+
def json_auth_file(self):
|
139
|
+
r"""Gets the json_auth_file of this ListBucketsReq.
|
140
|
+
|
141
|
+
用于谷歌云Cloud Storage鉴权
|
142
|
+
|
143
|
+
:return: The json_auth_file of this ListBucketsReq.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._json_auth_file
|
147
|
+
|
148
|
+
@json_auth_file.setter
|
149
|
+
def json_auth_file(self, json_auth_file):
|
150
|
+
r"""Sets the json_auth_file of this ListBucketsReq.
|
151
|
+
|
152
|
+
用于谷歌云Cloud Storage鉴权
|
153
|
+
|
154
|
+
:param json_auth_file: The json_auth_file of this ListBucketsReq.
|
155
|
+
:type json_auth_file: str
|
156
|
+
"""
|
157
|
+
self._json_auth_file = json_auth_file
|
158
|
+
|
159
|
+
@property
|
160
|
+
def app_id(self):
|
161
|
+
r"""Gets the app_id of this ListBucketsReq.
|
162
|
+
|
163
|
+
当源端为腾讯云时,会返回此参数。
|
164
|
+
|
165
|
+
:return: The app_id of this ListBucketsReq.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._app_id
|
169
|
+
|
170
|
+
@app_id.setter
|
171
|
+
def app_id(self, app_id):
|
172
|
+
r"""Sets the app_id of this ListBucketsReq.
|
173
|
+
|
174
|
+
当源端为腾讯云时,会返回此参数。
|
175
|
+
|
176
|
+
:param app_id: The app_id of this ListBucketsReq.
|
177
|
+
:type app_id: str
|
178
|
+
"""
|
179
|
+
self._app_id = app_id
|
180
|
+
|
181
|
+
def to_dict(self):
|
182
|
+
"""Returns the model properties as a dict"""
|
183
|
+
result = {}
|
184
|
+
|
185
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
186
|
+
value = getattr(self, attr)
|
187
|
+
if isinstance(value, list):
|
188
|
+
result[attr] = list(map(
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
190
|
+
value
|
191
|
+
))
|
192
|
+
elif hasattr(value, "to_dict"):
|
193
|
+
result[attr] = value.to_dict()
|
194
|
+
elif isinstance(value, dict):
|
195
|
+
result[attr] = dict(map(
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
198
|
+
value.items()
|
199
|
+
))
|
200
|
+
else:
|
201
|
+
if attr in self.sensitive_list:
|
202
|
+
result[attr] = "****"
|
203
|
+
else:
|
204
|
+
result[attr] = value
|
205
|
+
|
206
|
+
return result
|
207
|
+
|
208
|
+
def to_str(self):
|
209
|
+
"""Returns the string representation of the model"""
|
210
|
+
import simplejson as json
|
211
|
+
if six.PY2:
|
212
|
+
import sys
|
213
|
+
reload(sys)
|
214
|
+
sys.setdefaultencoding("utf-8")
|
215
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
216
|
+
|
217
|
+
def __repr__(self):
|
218
|
+
"""For `print`"""
|
219
|
+
return self.to_str()
|
220
|
+
|
221
|
+
def __eq__(self, other):
|
222
|
+
"""Returns true if both objects are equal"""
|
223
|
+
if not isinstance(other, ListBucketsReq):
|
224
|
+
return False
|
225
|
+
|
226
|
+
return self.__dict__ == other.__dict__
|
227
|
+
|
228
|
+
def __ne__(self, other):
|
229
|
+
"""Returns true if both objects are not equal"""
|
230
|
+
return not self == other
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListFile:
|
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
|
+
'list_file_key': 'str',
|
21
|
+
'obs_bucket': 'str',
|
22
|
+
'list_file_num': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'list_file_key': 'list_file_key',
|
27
|
+
'obs_bucket': 'obs_bucket',
|
28
|
+
'list_file_num': 'list_file_num'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, list_file_key=None, obs_bucket=None, list_file_num=None):
|
32
|
+
r"""ListFile
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param list_file_key: 对象列表文件或URL列表文件对象名。
|
37
|
+
:type list_file_key: str
|
38
|
+
:param obs_bucket: 存放对象列表文件的OBS桶名。 请确保与目的端桶处于同一区域,否则将导致任务创建失败。
|
39
|
+
:type obs_bucket: str
|
40
|
+
:param list_file_num: 存放对象列表文件的数量
|
41
|
+
:type list_file_num: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._list_file_key = None
|
47
|
+
self._obs_bucket = None
|
48
|
+
self._list_file_num = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.list_file_key = list_file_key
|
52
|
+
self.obs_bucket = obs_bucket
|
53
|
+
if list_file_num is not None:
|
54
|
+
self.list_file_num = list_file_num
|
55
|
+
|
56
|
+
@property
|
57
|
+
def list_file_key(self):
|
58
|
+
r"""Gets the list_file_key of this ListFile.
|
59
|
+
|
60
|
+
对象列表文件或URL列表文件对象名。
|
61
|
+
|
62
|
+
:return: The list_file_key of this ListFile.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._list_file_key
|
66
|
+
|
67
|
+
@list_file_key.setter
|
68
|
+
def list_file_key(self, list_file_key):
|
69
|
+
r"""Sets the list_file_key of this ListFile.
|
70
|
+
|
71
|
+
对象列表文件或URL列表文件对象名。
|
72
|
+
|
73
|
+
:param list_file_key: The list_file_key of this ListFile.
|
74
|
+
:type list_file_key: str
|
75
|
+
"""
|
76
|
+
self._list_file_key = list_file_key
|
77
|
+
|
78
|
+
@property
|
79
|
+
def obs_bucket(self):
|
80
|
+
r"""Gets the obs_bucket of this ListFile.
|
81
|
+
|
82
|
+
存放对象列表文件的OBS桶名。 请确保与目的端桶处于同一区域,否则将导致任务创建失败。
|
83
|
+
|
84
|
+
:return: The obs_bucket of this ListFile.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._obs_bucket
|
88
|
+
|
89
|
+
@obs_bucket.setter
|
90
|
+
def obs_bucket(self, obs_bucket):
|
91
|
+
r"""Sets the obs_bucket of this ListFile.
|
92
|
+
|
93
|
+
存放对象列表文件的OBS桶名。 请确保与目的端桶处于同一区域,否则将导致任务创建失败。
|
94
|
+
|
95
|
+
:param obs_bucket: The obs_bucket of this ListFile.
|
96
|
+
:type obs_bucket: str
|
97
|
+
"""
|
98
|
+
self._obs_bucket = obs_bucket
|
99
|
+
|
100
|
+
@property
|
101
|
+
def list_file_num(self):
|
102
|
+
r"""Gets the list_file_num of this ListFile.
|
103
|
+
|
104
|
+
存放对象列表文件的数量
|
105
|
+
|
106
|
+
:return: The list_file_num of this ListFile.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._list_file_num
|
110
|
+
|
111
|
+
@list_file_num.setter
|
112
|
+
def list_file_num(self, list_file_num):
|
113
|
+
r"""Sets the list_file_num of this ListFile.
|
114
|
+
|
115
|
+
存放对象列表文件的数量
|
116
|
+
|
117
|
+
:param list_file_num: The list_file_num of this ListFile.
|
118
|
+
:type list_file_num: str
|
119
|
+
"""
|
120
|
+
self._list_file_num = list_file_num
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, ListFile):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSyncTaskStatisticRequest:
|
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
|
+
'data_type': 'str',
|
22
|
+
'start_time': 'str',
|
23
|
+
'end_time': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'sync_task_id': 'sync_task_id',
|
28
|
+
'data_type': 'data_type',
|
29
|
+
'start_time': 'start_time',
|
30
|
+
'end_time': 'end_time'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, sync_task_id=None, data_type=None, start_time=None, end_time=None):
|
34
|
+
r"""ListSyncTaskStatisticRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param sync_task_id: 同步任务ID。
|
39
|
+
:type sync_task_id: str
|
40
|
+
:param data_type: 统计数据类型: 多类型查询用‘,’分割; REQUEST:接收同步请求对象数 SUCCESS:同步成功对象数 FAILURE:同步失败对象数 SKIP:同步跳过对象数 SIZE:同步成功对象容量(Byte)
|
41
|
+
:type data_type: str
|
42
|
+
:param start_time: 查询开始时间
|
43
|
+
:type start_time: str
|
44
|
+
:param end_time: 查询开始时间
|
45
|
+
:type end_time: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._sync_task_id = None
|
51
|
+
self._data_type = None
|
52
|
+
self._start_time = None
|
53
|
+
self._end_time = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.sync_task_id = sync_task_id
|
57
|
+
self.data_type = data_type
|
58
|
+
self.start_time = start_time
|
59
|
+
self.end_time = end_time
|
60
|
+
|
61
|
+
@property
|
62
|
+
def sync_task_id(self):
|
63
|
+
r"""Gets the sync_task_id of this ListSyncTaskStatisticRequest.
|
64
|
+
|
65
|
+
同步任务ID。
|
66
|
+
|
67
|
+
:return: The sync_task_id of this ListSyncTaskStatisticRequest.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._sync_task_id
|
71
|
+
|
72
|
+
@sync_task_id.setter
|
73
|
+
def sync_task_id(self, sync_task_id):
|
74
|
+
r"""Sets the sync_task_id of this ListSyncTaskStatisticRequest.
|
75
|
+
|
76
|
+
同步任务ID。
|
77
|
+
|
78
|
+
:param sync_task_id: The sync_task_id of this ListSyncTaskStatisticRequest.
|
79
|
+
:type sync_task_id: str
|
80
|
+
"""
|
81
|
+
self._sync_task_id = sync_task_id
|
82
|
+
|
83
|
+
@property
|
84
|
+
def data_type(self):
|
85
|
+
r"""Gets the data_type of this ListSyncTaskStatisticRequest.
|
86
|
+
|
87
|
+
统计数据类型: 多类型查询用‘,’分割; REQUEST:接收同步请求对象数 SUCCESS:同步成功对象数 FAILURE:同步失败对象数 SKIP:同步跳过对象数 SIZE:同步成功对象容量(Byte)
|
88
|
+
|
89
|
+
:return: The data_type of this ListSyncTaskStatisticRequest.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._data_type
|
93
|
+
|
94
|
+
@data_type.setter
|
95
|
+
def data_type(self, data_type):
|
96
|
+
r"""Sets the data_type of this ListSyncTaskStatisticRequest.
|
97
|
+
|
98
|
+
统计数据类型: 多类型查询用‘,’分割; REQUEST:接收同步请求对象数 SUCCESS:同步成功对象数 FAILURE:同步失败对象数 SKIP:同步跳过对象数 SIZE:同步成功对象容量(Byte)
|
99
|
+
|
100
|
+
:param data_type: The data_type of this ListSyncTaskStatisticRequest.
|
101
|
+
:type data_type: str
|
102
|
+
"""
|
103
|
+
self._data_type = data_type
|
104
|
+
|
105
|
+
@property
|
106
|
+
def start_time(self):
|
107
|
+
r"""Gets the start_time of this ListSyncTaskStatisticRequest.
|
108
|
+
|
109
|
+
查询开始时间
|
110
|
+
|
111
|
+
:return: The start_time of this ListSyncTaskStatisticRequest.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._start_time
|
115
|
+
|
116
|
+
@start_time.setter
|
117
|
+
def start_time(self, start_time):
|
118
|
+
r"""Sets the start_time of this ListSyncTaskStatisticRequest.
|
119
|
+
|
120
|
+
查询开始时间
|
121
|
+
|
122
|
+
:param start_time: The start_time of this ListSyncTaskStatisticRequest.
|
123
|
+
:type start_time: str
|
124
|
+
"""
|
125
|
+
self._start_time = start_time
|
126
|
+
|
127
|
+
@property
|
128
|
+
def end_time(self):
|
129
|
+
r"""Gets the end_time of this ListSyncTaskStatisticRequest.
|
130
|
+
|
131
|
+
查询开始时间
|
132
|
+
|
133
|
+
:return: The end_time of this ListSyncTaskStatisticRequest.
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._end_time
|
137
|
+
|
138
|
+
@end_time.setter
|
139
|
+
def end_time(self, end_time):
|
140
|
+
r"""Sets the end_time of this ListSyncTaskStatisticRequest.
|
141
|
+
|
142
|
+
查询开始时间
|
143
|
+
|
144
|
+
:param end_time: The end_time of this ListSyncTaskStatisticRequest.
|
145
|
+
:type end_time: str
|
146
|
+
"""
|
147
|
+
self._end_time = end_time
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, ListSyncTaskStatisticRequest):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|