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