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,200 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SmnConfig:
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
+ 'language': 'str',
21
+ 'topic_urn': 'str',
22
+ 'trigger_conditions': 'list[str]',
23
+ 'message_template_name': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'language': 'language',
28
+ 'topic_urn': 'topic_urn',
29
+ 'trigger_conditions': 'trigger_conditions',
30
+ 'message_template_name': 'message_template_name'
31
+ }
32
+
33
+ def __init__(self, language=None, topic_urn=None, trigger_conditions=None, message_template_name=None):
34
+ r"""SmnConfig
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param language: 当前用户所使用的管理控制台的语言。 可以选择zh-cn或者en-us。
39
+ :type language: str
40
+ :param topic_urn: 迁移任务所绑定的SMN消息主题的urn号。
41
+ :type topic_urn: str
42
+ :param trigger_conditions: SMN消息的触发条件,取决于迁移任务状态。 迁移任务状态的取值范围为SUCCESS或者FAILURE。 - FAILURE表示任务失败后发送SMN消息。 - SUCCESS表示任务成功后发送SMN消息。
43
+ :type trigger_conditions: list[str]
44
+ :param message_template_name: 如果设置此值,则表示用模板方式发送smn信息。 模板示例: { “Task_Status”: \"\", \"Task_Name\" : \"\", \"Start_Time\": \"\", \"Total_Time_Used\": \"\", \"Transferred_Data\": \"\", \"Average_Speed\": \"\", \"Source_Bucket\": \"\", \"Destination_Bucket\": \"\", \"List_File_Bucket\": \"\", \"List_File_Key\": \"\", \"Success_object_list_path\": \"\", \"Skip_object_list_path\": \"\", \"Failed_object_list_path\": \"\" }
45
+ :type message_template_name: str
46
+ """
47
+
48
+
49
+
50
+ self._language = None
51
+ self._topic_urn = None
52
+ self._trigger_conditions = None
53
+ self._message_template_name = None
54
+ self.discriminator = None
55
+
56
+ if language is not None:
57
+ self.language = language
58
+ self.topic_urn = topic_urn
59
+ self.trigger_conditions = trigger_conditions
60
+ if message_template_name is not None:
61
+ self.message_template_name = message_template_name
62
+
63
+ @property
64
+ def language(self):
65
+ r"""Gets the language of this SmnConfig.
66
+
67
+ 当前用户所使用的管理控制台的语言。 可以选择zh-cn或者en-us。
68
+
69
+ :return: The language of this SmnConfig.
70
+ :rtype: str
71
+ """
72
+ return self._language
73
+
74
+ @language.setter
75
+ def language(self, language):
76
+ r"""Sets the language of this SmnConfig.
77
+
78
+ 当前用户所使用的管理控制台的语言。 可以选择zh-cn或者en-us。
79
+
80
+ :param language: The language of this SmnConfig.
81
+ :type language: str
82
+ """
83
+ self._language = language
84
+
85
+ @property
86
+ def topic_urn(self):
87
+ r"""Gets the topic_urn of this SmnConfig.
88
+
89
+ 迁移任务所绑定的SMN消息主题的urn号。
90
+
91
+ :return: The topic_urn of this SmnConfig.
92
+ :rtype: str
93
+ """
94
+ return self._topic_urn
95
+
96
+ @topic_urn.setter
97
+ def topic_urn(self, topic_urn):
98
+ r"""Sets the topic_urn of this SmnConfig.
99
+
100
+ 迁移任务所绑定的SMN消息主题的urn号。
101
+
102
+ :param topic_urn: The topic_urn of this SmnConfig.
103
+ :type topic_urn: str
104
+ """
105
+ self._topic_urn = topic_urn
106
+
107
+ @property
108
+ def trigger_conditions(self):
109
+ r"""Gets the trigger_conditions of this SmnConfig.
110
+
111
+ SMN消息的触发条件,取决于迁移任务状态。 迁移任务状态的取值范围为SUCCESS或者FAILURE。 - FAILURE表示任务失败后发送SMN消息。 - SUCCESS表示任务成功后发送SMN消息。
112
+
113
+ :return: The trigger_conditions of this SmnConfig.
114
+ :rtype: list[str]
115
+ """
116
+ return self._trigger_conditions
117
+
118
+ @trigger_conditions.setter
119
+ def trigger_conditions(self, trigger_conditions):
120
+ r"""Sets the trigger_conditions of this SmnConfig.
121
+
122
+ SMN消息的触发条件,取决于迁移任务状态。 迁移任务状态的取值范围为SUCCESS或者FAILURE。 - FAILURE表示任务失败后发送SMN消息。 - SUCCESS表示任务成功后发送SMN消息。
123
+
124
+ :param trigger_conditions: The trigger_conditions of this SmnConfig.
125
+ :type trigger_conditions: list[str]
126
+ """
127
+ self._trigger_conditions = trigger_conditions
128
+
129
+ @property
130
+ def message_template_name(self):
131
+ r"""Gets the message_template_name of this SmnConfig.
132
+
133
+ 如果设置此值,则表示用模板方式发送smn信息。 模板示例: { “Task_Status”: \"\", \"Task_Name\" : \"\", \"Start_Time\": \"\", \"Total_Time_Used\": \"\", \"Transferred_Data\": \"\", \"Average_Speed\": \"\", \"Source_Bucket\": \"\", \"Destination_Bucket\": \"\", \"List_File_Bucket\": \"\", \"List_File_Key\": \"\", \"Success_object_list_path\": \"\", \"Skip_object_list_path\": \"\", \"Failed_object_list_path\": \"\" }
134
+
135
+ :return: The message_template_name of this SmnConfig.
136
+ :rtype: str
137
+ """
138
+ return self._message_template_name
139
+
140
+ @message_template_name.setter
141
+ def message_template_name(self, message_template_name):
142
+ r"""Sets the message_template_name of this SmnConfig.
143
+
144
+ 如果设置此值,则表示用模板方式发送smn信息。 模板示例: { “Task_Status”: \"\", \"Task_Name\" : \"\", \"Start_Time\": \"\", \"Total_Time_Used\": \"\", \"Transferred_Data\": \"\", \"Average_Speed\": \"\", \"Source_Bucket\": \"\", \"Destination_Bucket\": \"\", \"List_File_Bucket\": \"\", \"List_File_Key\": \"\", \"Success_object_list_path\": \"\", \"Skip_object_list_path\": \"\", \"Failed_object_list_path\": \"\" }
145
+
146
+ :param message_template_name: The message_template_name of this SmnConfig.
147
+ :type message_template_name: str
148
+ """
149
+ self._message_template_name = message_template_name
150
+
151
+ def to_dict(self):
152
+ """Returns the model properties as a dict"""
153
+ result = {}
154
+
155
+ for attr, _ in six.iteritems(self.openapi_types):
156
+ value = getattr(self, attr)
157
+ if isinstance(value, list):
158
+ result[attr] = list(map(
159
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
160
+ value
161
+ ))
162
+ elif hasattr(value, "to_dict"):
163
+ result[attr] = value.to_dict()
164
+ elif isinstance(value, dict):
165
+ result[attr] = dict(map(
166
+ lambda item: (item[0], item[1].to_dict())
167
+ if hasattr(item[1], "to_dict") else item,
168
+ value.items()
169
+ ))
170
+ else:
171
+ if attr in self.sensitive_list:
172
+ result[attr] = "****"
173
+ else:
174
+ result[attr] = value
175
+
176
+ return result
177
+
178
+ def to_str(self):
179
+ """Returns the string representation of the model"""
180
+ import simplejson as json
181
+ if six.PY2:
182
+ import sys
183
+ reload(sys)
184
+ sys.setdefaultencoding("utf-8")
185
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
186
+
187
+ def __repr__(self):
188
+ """For `print`"""
189
+ return self.to_str()
190
+
191
+ def __eq__(self, other):
192
+ """Returns true if both objects are equal"""
193
+ if not isinstance(other, SmnConfig):
194
+ return False
195
+
196
+ return self.__dict__ == other.__dict__
197
+
198
+ def __ne__(self, other):
199
+ """Returns true if both objects are not equal"""
200
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SmnInfo:
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
+ 'notify_result': 'bool',
21
+ 'notify_error_message': 'str',
22
+ 'topic_name': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'notify_result': 'notify_result',
27
+ 'notify_error_message': 'notify_error_message',
28
+ 'topic_name': 'topic_name'
29
+ }
30
+
31
+ def __init__(self, notify_result=None, notify_error_message=None, topic_name=None):
32
+ r"""SmnInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param notify_result: 记录迁移任务执行完毕后SMN消息是否发送成功。
37
+ :type notify_result: bool
38
+ :param notify_error_message: 记录SMN消息发送失败原因的错误码(迁移任务成功时为空)。
39
+ :type notify_error_message: str
40
+ :param topic_name: SMN Topic的名称(SMN消息发送成功时为空)。
41
+ :type topic_name: str
42
+ """
43
+
44
+
45
+
46
+ self._notify_result = None
47
+ self._notify_error_message = None
48
+ self._topic_name = None
49
+ self.discriminator = None
50
+
51
+ if notify_result is not None:
52
+ self.notify_result = notify_result
53
+ if notify_error_message is not None:
54
+ self.notify_error_message = notify_error_message
55
+ if topic_name is not None:
56
+ self.topic_name = topic_name
57
+
58
+ @property
59
+ def notify_result(self):
60
+ r"""Gets the notify_result of this SmnInfo.
61
+
62
+ 记录迁移任务执行完毕后SMN消息是否发送成功。
63
+
64
+ :return: The notify_result of this SmnInfo.
65
+ :rtype: bool
66
+ """
67
+ return self._notify_result
68
+
69
+ @notify_result.setter
70
+ def notify_result(self, notify_result):
71
+ r"""Sets the notify_result of this SmnInfo.
72
+
73
+ 记录迁移任务执行完毕后SMN消息是否发送成功。
74
+
75
+ :param notify_result: The notify_result of this SmnInfo.
76
+ :type notify_result: bool
77
+ """
78
+ self._notify_result = notify_result
79
+
80
+ @property
81
+ def notify_error_message(self):
82
+ r"""Gets the notify_error_message of this SmnInfo.
83
+
84
+ 记录SMN消息发送失败原因的错误码(迁移任务成功时为空)。
85
+
86
+ :return: The notify_error_message of this SmnInfo.
87
+ :rtype: str
88
+ """
89
+ return self._notify_error_message
90
+
91
+ @notify_error_message.setter
92
+ def notify_error_message(self, notify_error_message):
93
+ r"""Sets the notify_error_message of this SmnInfo.
94
+
95
+ 记录SMN消息发送失败原因的错误码(迁移任务成功时为空)。
96
+
97
+ :param notify_error_message: The notify_error_message of this SmnInfo.
98
+ :type notify_error_message: str
99
+ """
100
+ self._notify_error_message = notify_error_message
101
+
102
+ @property
103
+ def topic_name(self):
104
+ r"""Gets the topic_name of this SmnInfo.
105
+
106
+ SMN Topic的名称(SMN消息发送成功时为空)。
107
+
108
+ :return: The topic_name of this SmnInfo.
109
+ :rtype: str
110
+ """
111
+ return self._topic_name
112
+
113
+ @topic_name.setter
114
+ def topic_name(self, topic_name):
115
+ r"""Sets the topic_name of this SmnInfo.
116
+
117
+ SMN Topic的名称(SMN消息发送成功时为空)。
118
+
119
+ :param topic_name: The topic_name of this SmnInfo.
120
+ :type topic_name: str
121
+ """
122
+ self._topic_name = topic_name
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, SmnInfo):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,199 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SourceCdnReq:
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
+ 'authentication_key': 'str',
21
+ 'authentication_type': 'str',
22
+ 'domain': 'str',
23
+ 'protocol': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'authentication_key': 'authentication_key',
28
+ 'authentication_type': 'authentication_type',
29
+ 'domain': 'domain',
30
+ 'protocol': 'protocol'
31
+ }
32
+
33
+ def __init__(self, authentication_key=None, authentication_type=None, domain=None, protocol=None):
34
+ r"""SourceCdnReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param authentication_key: CDN鉴权秘钥,如果CDN需要进行鉴权,则此选项为必选。 无需授权:无需配置此项。 Qiniu:无需配置此项。 Aliyun:根据authentication_type指定的鉴权方式配置此项。 KingsoftCloud:无需配置此项。
39
+ :type authentication_key: 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
+ :param domain: 从指定域名获取对象。
43
+ :type domain: str
44
+ :param protocol: 协议类型,支持http和https协议。
45
+ :type protocol: str
46
+ """
47
+
48
+
49
+
50
+ self._authentication_key = None
51
+ self._authentication_type = None
52
+ self._domain = None
53
+ self._protocol = None
54
+ self.discriminator = None
55
+
56
+ if authentication_key is not None:
57
+ self.authentication_key = authentication_key
58
+ self.authentication_type = authentication_type
59
+ self.domain = domain
60
+ self.protocol = protocol
61
+
62
+ @property
63
+ def authentication_key(self):
64
+ r"""Gets the authentication_key of this SourceCdnReq.
65
+
66
+ CDN鉴权秘钥,如果CDN需要进行鉴权,则此选项为必选。 无需授权:无需配置此项。 Qiniu:无需配置此项。 Aliyun:根据authentication_type指定的鉴权方式配置此项。 KingsoftCloud:无需配置此项。
67
+
68
+ :return: The authentication_key of this SourceCdnReq.
69
+ :rtype: str
70
+ """
71
+ return self._authentication_key
72
+
73
+ @authentication_key.setter
74
+ def authentication_key(self, authentication_key):
75
+ r"""Sets the authentication_key of this SourceCdnReq.
76
+
77
+ CDN鉴权秘钥,如果CDN需要进行鉴权,则此选项为必选。 无需授权:无需配置此项。 Qiniu:无需配置此项。 Aliyun:根据authentication_type指定的鉴权方式配置此项。 KingsoftCloud:无需配置此项。
78
+
79
+ :param authentication_key: The authentication_key of this SourceCdnReq.
80
+ :type authentication_key: str
81
+ """
82
+ self._authentication_key = authentication_key
83
+
84
+ @property
85
+ def authentication_type(self):
86
+ r"""Gets the authentication_type of this SourceCdnReq.
87
+
88
+ 鉴权类型: 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
89
+
90
+ :return: The authentication_type of this SourceCdnReq.
91
+ :rtype: str
92
+ """
93
+ return self._authentication_type
94
+
95
+ @authentication_type.setter
96
+ def authentication_type(self, authentication_type):
97
+ r"""Sets the authentication_type of this SourceCdnReq.
98
+
99
+ 鉴权类型: 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
100
+
101
+ :param authentication_type: The authentication_type of this SourceCdnReq.
102
+ :type authentication_type: str
103
+ """
104
+ self._authentication_type = authentication_type
105
+
106
+ @property
107
+ def domain(self):
108
+ r"""Gets the domain of this SourceCdnReq.
109
+
110
+ 从指定域名获取对象。
111
+
112
+ :return: The domain of this SourceCdnReq.
113
+ :rtype: str
114
+ """
115
+ return self._domain
116
+
117
+ @domain.setter
118
+ def domain(self, domain):
119
+ r"""Sets the domain of this SourceCdnReq.
120
+
121
+ 从指定域名获取对象。
122
+
123
+ :param domain: The domain of this SourceCdnReq.
124
+ :type domain: str
125
+ """
126
+ self._domain = domain
127
+
128
+ @property
129
+ def protocol(self):
130
+ r"""Gets the protocol of this SourceCdnReq.
131
+
132
+ 协议类型,支持http和https协议。
133
+
134
+ :return: The protocol of this SourceCdnReq.
135
+ :rtype: str
136
+ """
137
+ return self._protocol
138
+
139
+ @protocol.setter
140
+ def protocol(self, protocol):
141
+ r"""Sets the protocol of this SourceCdnReq.
142
+
143
+ 协议类型,支持http和https协议。
144
+
145
+ :param protocol: The protocol of this SourceCdnReq.
146
+ :type protocol: str
147
+ """
148
+ self._protocol = protocol
149
+
150
+ def to_dict(self):
151
+ """Returns the model properties as a dict"""
152
+ result = {}
153
+
154
+ for attr, _ in six.iteritems(self.openapi_types):
155
+ value = getattr(self, attr)
156
+ if isinstance(value, list):
157
+ result[attr] = list(map(
158
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
+ value
160
+ ))
161
+ elif hasattr(value, "to_dict"):
162
+ result[attr] = value.to_dict()
163
+ elif isinstance(value, dict):
164
+ result[attr] = dict(map(
165
+ lambda item: (item[0], item[1].to_dict())
166
+ if hasattr(item[1], "to_dict") else item,
167
+ value.items()
168
+ ))
169
+ else:
170
+ if attr in self.sensitive_list:
171
+ result[attr] = "****"
172
+ else:
173
+ result[attr] = value
174
+
175
+ return result
176
+
177
+ def to_str(self):
178
+ """Returns the string representation of the model"""
179
+ import simplejson as json
180
+ if six.PY2:
181
+ import sys
182
+ reload(sys)
183
+ sys.setdefaultencoding("utf-8")
184
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
185
+
186
+ def __repr__(self):
187
+ """For `print`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, SourceCdnReq):
193
+ return False
194
+
195
+ return self.__dict__ == other.__dict__
196
+
197
+ def __ne__(self, other):
198
+ """Returns true if both objects are not equal"""
199
+ return not self == other