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