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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchUpdateTasksRequest:
|
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
|
+
'body': 'BatchUpdateTasksReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""BatchUpdateTasksRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the BatchUpdateTasksRequest
|
33
|
+
:type body: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksReq`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this BatchUpdateTasksRequest.
|
47
|
+
|
48
|
+
:return: The body of this BatchUpdateTasksRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this BatchUpdateTasksRequest.
|
56
|
+
|
57
|
+
:param body: The body of this BatchUpdateTasksRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkoms.v2.BatchUpdateTasksReq`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, BatchUpdateTasksRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
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 BatchUpdateTasksResponse(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"""BatchUpdateTasksResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(BatchUpdateTasksResponse, 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, BatchUpdateTasksResponse):
|
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
|
@@ -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 CheckPrefixReq:
|
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
|
+
'bucket_name': 'str',
|
26
|
+
'file_name': 'str',
|
27
|
+
'data_center': 'str',
|
28
|
+
'security_token': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'cloud_type': 'cloud_type',
|
33
|
+
'ak': 'ak',
|
34
|
+
'sk': 'sk',
|
35
|
+
'json_auth_file': 'json_auth_file',
|
36
|
+
'app_id': 'app_id',
|
37
|
+
'bucket_name': 'bucket_name',
|
38
|
+
'file_name': 'file_name',
|
39
|
+
'data_center': 'data_center',
|
40
|
+
'security_token': 'security_token'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, cloud_type=None, ak=None, sk=None, json_auth_file=None, app_id=None, bucket_name=None, file_name=None, data_center=None, security_token=None):
|
44
|
+
r"""CheckPrefixReq
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param cloud_type: 云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
49
|
+
:type cloud_type: str
|
50
|
+
:param ak: 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
51
|
+
:type ak: str
|
52
|
+
:param sk: 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
53
|
+
:type sk: str
|
54
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
55
|
+
:type json_auth_file: str
|
56
|
+
:param app_id: 当源端为腾讯云时,会返回此参数。
|
57
|
+
:type app_id: str
|
58
|
+
:param bucket_name: 桶名
|
59
|
+
:type bucket_name: str
|
60
|
+
:param file_name: 前缀名称
|
61
|
+
:type file_name: str
|
62
|
+
:param data_center: 数据中心,区域
|
63
|
+
:type data_center: str
|
64
|
+
:param security_token: 安全令牌
|
65
|
+
:type security_token: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._cloud_type = None
|
71
|
+
self._ak = None
|
72
|
+
self._sk = None
|
73
|
+
self._json_auth_file = None
|
74
|
+
self._app_id = None
|
75
|
+
self._bucket_name = None
|
76
|
+
self._file_name = None
|
77
|
+
self._data_center = None
|
78
|
+
self._security_token = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.cloud_type = cloud_type
|
82
|
+
if ak is not None:
|
83
|
+
self.ak = ak
|
84
|
+
if sk is not None:
|
85
|
+
self.sk = sk
|
86
|
+
if json_auth_file is not None:
|
87
|
+
self.json_auth_file = json_auth_file
|
88
|
+
if app_id is not None:
|
89
|
+
self.app_id = app_id
|
90
|
+
self.bucket_name = bucket_name
|
91
|
+
self.file_name = file_name
|
92
|
+
self.data_center = data_center
|
93
|
+
if security_token is not None:
|
94
|
+
self.security_token = security_token
|
95
|
+
|
96
|
+
@property
|
97
|
+
def cloud_type(self):
|
98
|
+
r"""Gets the cloud_type of this CheckPrefixReq.
|
99
|
+
|
100
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
101
|
+
|
102
|
+
:return: The cloud_type of this CheckPrefixReq.
|
103
|
+
:rtype: str
|
104
|
+
"""
|
105
|
+
return self._cloud_type
|
106
|
+
|
107
|
+
@cloud_type.setter
|
108
|
+
def cloud_type(self, cloud_type):
|
109
|
+
r"""Sets the cloud_type of this CheckPrefixReq.
|
110
|
+
|
111
|
+
云类型 AWS:亚马逊 Aliyun:阿里云 Qiniu:七牛云 QingCloud:青云 Tencent:腾讯云 Baidu:百度云 KingsoftCloud:金山云 Azure:微软云 UCloud:优刻得 HuaweiCloud:华为云 Google: 谷歌云 URLSource:URL HEC:HEC
|
112
|
+
|
113
|
+
:param cloud_type: The cloud_type of this CheckPrefixReq.
|
114
|
+
:type cloud_type: str
|
115
|
+
"""
|
116
|
+
self._cloud_type = cloud_type
|
117
|
+
|
118
|
+
@property
|
119
|
+
def ak(self):
|
120
|
+
r"""Gets the ak of this CheckPrefixReq.
|
121
|
+
|
122
|
+
源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
123
|
+
|
124
|
+
:return: The ak of this CheckPrefixReq.
|
125
|
+
:rtype: str
|
126
|
+
"""
|
127
|
+
return self._ak
|
128
|
+
|
129
|
+
@ak.setter
|
130
|
+
def ak(self, ak):
|
131
|
+
r"""Sets the ak of this CheckPrefixReq.
|
132
|
+
|
133
|
+
源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
134
|
+
|
135
|
+
:param ak: The ak of this CheckPrefixReq.
|
136
|
+
:type ak: str
|
137
|
+
"""
|
138
|
+
self._ak = ak
|
139
|
+
|
140
|
+
@property
|
141
|
+
def sk(self):
|
142
|
+
r"""Gets the sk of this CheckPrefixReq.
|
143
|
+
|
144
|
+
源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
145
|
+
|
146
|
+
:return: The sk of this CheckPrefixReq.
|
147
|
+
:rtype: str
|
148
|
+
"""
|
149
|
+
return self._sk
|
150
|
+
|
151
|
+
@sk.setter
|
152
|
+
def sk(self, sk):
|
153
|
+
r"""Sets the sk of this CheckPrefixReq.
|
154
|
+
|
155
|
+
源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
|
156
|
+
|
157
|
+
:param sk: The sk of this CheckPrefixReq.
|
158
|
+
:type sk: str
|
159
|
+
"""
|
160
|
+
self._sk = sk
|
161
|
+
|
162
|
+
@property
|
163
|
+
def json_auth_file(self):
|
164
|
+
r"""Gets the json_auth_file of this CheckPrefixReq.
|
165
|
+
|
166
|
+
用于谷歌云Cloud Storage鉴权
|
167
|
+
|
168
|
+
:return: The json_auth_file of this CheckPrefixReq.
|
169
|
+
:rtype: str
|
170
|
+
"""
|
171
|
+
return self._json_auth_file
|
172
|
+
|
173
|
+
@json_auth_file.setter
|
174
|
+
def json_auth_file(self, json_auth_file):
|
175
|
+
r"""Sets the json_auth_file of this CheckPrefixReq.
|
176
|
+
|
177
|
+
用于谷歌云Cloud Storage鉴权
|
178
|
+
|
179
|
+
:param json_auth_file: The json_auth_file of this CheckPrefixReq.
|
180
|
+
:type json_auth_file: str
|
181
|
+
"""
|
182
|
+
self._json_auth_file = json_auth_file
|
183
|
+
|
184
|
+
@property
|
185
|
+
def app_id(self):
|
186
|
+
r"""Gets the app_id of this CheckPrefixReq.
|
187
|
+
|
188
|
+
当源端为腾讯云时,会返回此参数。
|
189
|
+
|
190
|
+
:return: The app_id of this CheckPrefixReq.
|
191
|
+
:rtype: str
|
192
|
+
"""
|
193
|
+
return self._app_id
|
194
|
+
|
195
|
+
@app_id.setter
|
196
|
+
def app_id(self, app_id):
|
197
|
+
r"""Sets the app_id of this CheckPrefixReq.
|
198
|
+
|
199
|
+
当源端为腾讯云时,会返回此参数。
|
200
|
+
|
201
|
+
:param app_id: The app_id of this CheckPrefixReq.
|
202
|
+
:type app_id: str
|
203
|
+
"""
|
204
|
+
self._app_id = app_id
|
205
|
+
|
206
|
+
@property
|
207
|
+
def bucket_name(self):
|
208
|
+
r"""Gets the bucket_name of this CheckPrefixReq.
|
209
|
+
|
210
|
+
桶名
|
211
|
+
|
212
|
+
:return: The bucket_name of this CheckPrefixReq.
|
213
|
+
:rtype: str
|
214
|
+
"""
|
215
|
+
return self._bucket_name
|
216
|
+
|
217
|
+
@bucket_name.setter
|
218
|
+
def bucket_name(self, bucket_name):
|
219
|
+
r"""Sets the bucket_name of this CheckPrefixReq.
|
220
|
+
|
221
|
+
桶名
|
222
|
+
|
223
|
+
:param bucket_name: The bucket_name of this CheckPrefixReq.
|
224
|
+
:type bucket_name: str
|
225
|
+
"""
|
226
|
+
self._bucket_name = bucket_name
|
227
|
+
|
228
|
+
@property
|
229
|
+
def file_name(self):
|
230
|
+
r"""Gets the file_name of this CheckPrefixReq.
|
231
|
+
|
232
|
+
前缀名称
|
233
|
+
|
234
|
+
:return: The file_name of this CheckPrefixReq.
|
235
|
+
:rtype: str
|
236
|
+
"""
|
237
|
+
return self._file_name
|
238
|
+
|
239
|
+
@file_name.setter
|
240
|
+
def file_name(self, file_name):
|
241
|
+
r"""Sets the file_name of this CheckPrefixReq.
|
242
|
+
|
243
|
+
前缀名称
|
244
|
+
|
245
|
+
:param file_name: The file_name of this CheckPrefixReq.
|
246
|
+
:type file_name: str
|
247
|
+
"""
|
248
|
+
self._file_name = file_name
|
249
|
+
|
250
|
+
@property
|
251
|
+
def data_center(self):
|
252
|
+
r"""Gets the data_center of this CheckPrefixReq.
|
253
|
+
|
254
|
+
数据中心,区域
|
255
|
+
|
256
|
+
:return: The data_center of this CheckPrefixReq.
|
257
|
+
:rtype: str
|
258
|
+
"""
|
259
|
+
return self._data_center
|
260
|
+
|
261
|
+
@data_center.setter
|
262
|
+
def data_center(self, data_center):
|
263
|
+
r"""Sets the data_center of this CheckPrefixReq.
|
264
|
+
|
265
|
+
数据中心,区域
|
266
|
+
|
267
|
+
:param data_center: The data_center of this CheckPrefixReq.
|
268
|
+
:type data_center: str
|
269
|
+
"""
|
270
|
+
self._data_center = data_center
|
271
|
+
|
272
|
+
@property
|
273
|
+
def security_token(self):
|
274
|
+
r"""Gets the security_token of this CheckPrefixReq.
|
275
|
+
|
276
|
+
安全令牌
|
277
|
+
|
278
|
+
:return: The security_token of this CheckPrefixReq.
|
279
|
+
:rtype: str
|
280
|
+
"""
|
281
|
+
return self._security_token
|
282
|
+
|
283
|
+
@security_token.setter
|
284
|
+
def security_token(self, security_token):
|
285
|
+
r"""Sets the security_token of this CheckPrefixReq.
|
286
|
+
|
287
|
+
安全令牌
|
288
|
+
|
289
|
+
:param security_token: The security_token of this CheckPrefixReq.
|
290
|
+
:type security_token: str
|
291
|
+
"""
|
292
|
+
self._security_token = security_token
|
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, CheckPrefixReq):
|
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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CheckPrefixRequest:
|
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
|
+
'body': 'CheckPrefixReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CheckPrefixRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CheckPrefixRequest
|
33
|
+
:type body: :class:`huaweicloudsdkoms.v2.CheckPrefixReq`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CheckPrefixRequest.
|
47
|
+
|
48
|
+
:return: The body of this CheckPrefixRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkoms.v2.CheckPrefixReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CheckPrefixRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CheckPrefixRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkoms.v2.CheckPrefixReq`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CheckPrefixRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|