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