huaweicloudsdkrocketmq 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.
- huaweicloudsdkrocketmq/__init__.py +0 -0
- huaweicloudsdkrocketmq/v2/__init__.py +208 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +205 -0
- huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_consumer_group_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_consumer_group_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instance_req.py +172 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instance_resp_results.py +144 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instances_request.py +111 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_instances_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_topic_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_topic_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group.py +260 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/brokers.py +144 -0
- huaweicloudsdkrocketmq/v2/model/bss_param.py +231 -0
- huaweicloudsdkrocketmq/v2/model/client_data.py +231 -0
- huaweicloudsdkrocketmq/v2/model/consumer_detail_resp.py +202 -0
- huaweicloudsdkrocketmq/v2/model/consumer_group.py +347 -0
- huaweicloudsdkrocketmq/v2/model/consumer_list.py +144 -0
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +318 -0
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_request.py +168 -0
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_group_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +709 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_or_update_consumer_group.py +289 -0
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +684 -0
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_request.py +111 -0
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +223 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +289 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_request.py +168 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_req_queues.py +144 -0
- huaweicloudsdkrocketmq/v2/model/create_topic_resp.py +115 -0
- huaweicloudsdkrocketmq/v2/model/create_user_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/create_user_response.py +319 -0
- huaweicloudsdkrocketmq/v2/model/deadletter_resend_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/deadletter_resend_resp_resend_results.py +173 -0
- huaweicloudsdkrocketmq/v2/model/delete_background_task_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_consumer_group_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/delete_instance_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/delete_instance_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_topic_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/delete_user_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/delete_user_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
- huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/enable_dns_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/enable_dns_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/export_dlq_message_req.py +173 -0
- huaweicloudsdkrocketmq/v2/model/export_dlq_message_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/export_dlq_message_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/instance_detail.py +1942 -0
- huaweicloudsdkrocketmq/v2/model/list_access_policy_resp_policies.py +231 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_request.py +84 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_resp_available_zones.py +347 -0
- huaweicloudsdkrocketmq/v2/model/list_available_zones_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_brokers_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/list_brokers_resp_brokers.py +144 -0
- huaweicloudsdkrocketmq/v2/model/list_brokers_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/list_consume_group_access_policy_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_consume_group_access_policy_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/list_engine_products_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_engine_products_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_request.py +201 -0
- huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/list_instances_request.py +346 -0
- huaweicloudsdkrocketmq/v2/model/list_instances_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_message_trace_request.py +228 -0
- huaweicloudsdkrocketmq/v2/model/list_message_trace_resp_trace.py +666 -0
- huaweicloudsdkrocketmq/v2/model/list_message_trace_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/list_messages_request.py +373 -0
- huaweicloudsdkrocketmq/v2/model/list_messages_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_request.py +259 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_topic_access_policy_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_topic_access_policy_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/list_user_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/list_user_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/message.py +492 -0
- huaweicloudsdkrocketmq/v2/model/message_property_list.py +144 -0
- huaweicloudsdkrocketmq/v2/model/metadata_delete_req.py +114 -0
- huaweicloudsdkrocketmq/v2/model/metadata_task.py +231 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py +231 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py +202 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py +173 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py +115 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py +318 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py +289 -0
- huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/node_context_entity.py +231 -0
- huaweicloudsdkrocketmq/v2/model/plain_ssl_switch_rep.py +115 -0
- huaweicloudsdkrocketmq/v2/model/product_entity.py +434 -0
- huaweicloudsdkrocketmq/v2/model/queue.py +231 -0
- huaweicloudsdkrocketmq/v2/model/quota_resource_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/quotas_resp_quotas.py +115 -0
- huaweicloudsdkrocketmq/v2/model/resend_req.py +200 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_req.py +142 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_request.py +195 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_resp_queues.py +173 -0
- huaweicloudsdkrocketmq/v2/model/reset_consume_offset_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +230 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_info_entity.py +430 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_ios_entity.py +202 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_properties_entity.py +318 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
- huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_connections_request.py +229 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_connections_response.py +290 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py +229 -0
- huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +229 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/show_group_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_group_response.py +348 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_response.py +1972 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +261 -0
- huaweicloudsdkrocketmq/v2/model/show_quotas_request.py +84 -0
- huaweicloudsdkrocketmq/v2/model/show_quotas_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py +144 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py +172 -0
- huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py +203 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_resp_brokers.py +144 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_resp_queues.py +202 -0
- huaweicloudsdkrocketmq/v2/model/show_topic_status_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/show_user_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_user_response.py +319 -0
- huaweicloudsdkrocketmq/v2/model/subscription.py +173 -0
- huaweicloudsdkrocketmq/v2/model/tag_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/topic.py +260 -0
- huaweicloudsdkrocketmq/v2/model/topic_brokers.py +173 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +228 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/update_instance_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/update_instance_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_instance_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_req.py +231 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/update_user_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/update_user_response.py +319 -0
- huaweicloudsdkrocketmq/v2/model/user.py +318 -0
- huaweicloudsdkrocketmq/v2/model/user_group_perms.py +144 -0
- huaweicloudsdkrocketmq/v2/model/user_topic_perms.py +144 -0
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/region/__init__.py +0 -0
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +118 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +4232 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +4229 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/RECORD +212 -0
- huaweicloudsdkrocketmq-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkrocketmq-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 CreatePostPaidInstanceRequest:
|
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': 'CreatePostPaidInstanceReq'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreatePostPaidInstanceRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreatePostPaidInstanceRequest
|
33
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.CreatePostPaidInstanceReq`
|
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 CreatePostPaidInstanceRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreatePostPaidInstanceRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.CreatePostPaidInstanceReq`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreatePostPaidInstanceRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreatePostPaidInstanceRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.CreatePostPaidInstanceReq`
|
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, CreatePostPaidInstanceRequest):
|
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,116 @@
|
|
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 CreatePostPaidInstanceResponse(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
|
+
'instance_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instance_id': 'instance_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, instance_id=None):
|
29
|
+
r"""CreatePostPaidInstanceResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param instance_id: 实例ID。
|
34
|
+
:type instance_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreatePostPaidInstanceResponse, self).__init__()
|
38
|
+
|
39
|
+
self._instance_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if instance_id is not None:
|
43
|
+
self.instance_id = instance_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def instance_id(self):
|
47
|
+
r"""Gets the instance_id of this CreatePostPaidInstanceResponse.
|
48
|
+
|
49
|
+
实例ID。
|
50
|
+
|
51
|
+
:return: The instance_id of this CreatePostPaidInstanceResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._instance_id
|
55
|
+
|
56
|
+
@instance_id.setter
|
57
|
+
def instance_id(self, instance_id):
|
58
|
+
r"""Sets the instance_id of this CreatePostPaidInstanceResponse.
|
59
|
+
|
60
|
+
实例ID。
|
61
|
+
|
62
|
+
:param instance_id: The instance_id of this CreatePostPaidInstanceResponse.
|
63
|
+
:type instance_id: str
|
64
|
+
"""
|
65
|
+
self._instance_id = instance_id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CreatePostPaidInstanceResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateRocketMqMigrationTaskReq:
|
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
|
+
'topic_config_table': 'dict(str, MigrationRocketMqTopicConfig)',
|
21
|
+
'subscription_group_table': 'dict(str, MigrationRocketMqSubscriptionGroup)',
|
22
|
+
'vhosts': 'list[MigrationRabbitVhostMetadata]',
|
23
|
+
'queues': 'list[MigrationRabbitQueueMetadata]',
|
24
|
+
'exchanges': 'list[MigrationRabbitExchangeMetadata]',
|
25
|
+
'bindings': 'list[MigrationRabbitBindingMetadata]'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'topic_config_table': 'topicConfigTable',
|
30
|
+
'subscription_group_table': 'subscriptionGroupTable',
|
31
|
+
'vhosts': 'vhosts',
|
32
|
+
'queues': 'queues',
|
33
|
+
'exchanges': 'exchanges',
|
34
|
+
'bindings': 'bindings'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, topic_config_table=None, subscription_group_table=None, vhosts=None, queues=None, exchanges=None, bindings=None):
|
38
|
+
r"""CreateRocketMqMigrationTaskReq
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param topic_config_table: RocketMQ Topic 元数据,键为Topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
43
|
+
:type topic_config_table: dict(str, MigrationRocketMqTopicConfig)
|
44
|
+
:param subscription_group_table: RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
45
|
+
:type subscription_group_table: dict(str, MigrationRocketMqSubscriptionGroup)
|
46
|
+
:param vhosts: RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
47
|
+
:type vhosts: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`]
|
48
|
+
:param queues: RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
49
|
+
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`]
|
50
|
+
:param exchanges: RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
51
|
+
:type exchanges: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`]
|
52
|
+
:param bindings: RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
53
|
+
:type bindings: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`]
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._topic_config_table = None
|
59
|
+
self._subscription_group_table = None
|
60
|
+
self._vhosts = None
|
61
|
+
self._queues = None
|
62
|
+
self._exchanges = None
|
63
|
+
self._bindings = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if topic_config_table is not None:
|
67
|
+
self.topic_config_table = topic_config_table
|
68
|
+
if subscription_group_table is not None:
|
69
|
+
self.subscription_group_table = subscription_group_table
|
70
|
+
if vhosts is not None:
|
71
|
+
self.vhosts = vhosts
|
72
|
+
if queues is not None:
|
73
|
+
self.queues = queues
|
74
|
+
if exchanges is not None:
|
75
|
+
self.exchanges = exchanges
|
76
|
+
if bindings is not None:
|
77
|
+
self.bindings = bindings
|
78
|
+
|
79
|
+
@property
|
80
|
+
def topic_config_table(self):
|
81
|
+
r"""Gets the topic_config_table of this CreateRocketMqMigrationTaskReq.
|
82
|
+
|
83
|
+
RocketMQ Topic 元数据,键为Topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
84
|
+
|
85
|
+
:return: The topic_config_table of this CreateRocketMqMigrationTaskReq.
|
86
|
+
:rtype: dict(str, MigrationRocketMqTopicConfig)
|
87
|
+
"""
|
88
|
+
return self._topic_config_table
|
89
|
+
|
90
|
+
@topic_config_table.setter
|
91
|
+
def topic_config_table(self, topic_config_table):
|
92
|
+
r"""Sets the topic_config_table of this CreateRocketMqMigrationTaskReq.
|
93
|
+
|
94
|
+
RocketMQ Topic 元数据,键为Topic名,值为topic配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
95
|
+
|
96
|
+
:param topic_config_table: The topic_config_table of this CreateRocketMqMigrationTaskReq.
|
97
|
+
:type topic_config_table: dict(str, MigrationRocketMqTopicConfig)
|
98
|
+
"""
|
99
|
+
self._topic_config_table = topic_config_table
|
100
|
+
|
101
|
+
@property
|
102
|
+
def subscription_group_table(self):
|
103
|
+
r"""Gets the subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
104
|
+
|
105
|
+
RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
106
|
+
|
107
|
+
:return: The subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
108
|
+
:rtype: dict(str, MigrationRocketMqSubscriptionGroup)
|
109
|
+
"""
|
110
|
+
return self._subscription_group_table
|
111
|
+
|
112
|
+
@subscription_group_table.setter
|
113
|
+
def subscription_group_table(self, subscription_group_table):
|
114
|
+
r"""Sets the subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
115
|
+
|
116
|
+
RocketMQ消费组元数据,键为消费组名,值为消费组配置,迁移任务类型为自建RocketMQ上云(rocketmq)时必填。
|
117
|
+
|
118
|
+
:param subscription_group_table: The subscription_group_table of this CreateRocketMqMigrationTaskReq.
|
119
|
+
:type subscription_group_table: dict(str, MigrationRocketMqSubscriptionGroup)
|
120
|
+
"""
|
121
|
+
self._subscription_group_table = subscription_group_table
|
122
|
+
|
123
|
+
@property
|
124
|
+
def vhosts(self):
|
125
|
+
r"""Gets the vhosts of this CreateRocketMqMigrationTaskReq.
|
126
|
+
|
127
|
+
RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
128
|
+
|
129
|
+
:return: The vhosts of this CreateRocketMqMigrationTaskReq.
|
130
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`]
|
131
|
+
"""
|
132
|
+
return self._vhosts
|
133
|
+
|
134
|
+
@vhosts.setter
|
135
|
+
def vhosts(self, vhosts):
|
136
|
+
r"""Sets the vhosts of this CreateRocketMqMigrationTaskReq.
|
137
|
+
|
138
|
+
RabbitMQ vhost元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
139
|
+
|
140
|
+
:param vhosts: The vhosts of this CreateRocketMqMigrationTaskReq.
|
141
|
+
:type vhosts: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitVhostMetadata`]
|
142
|
+
"""
|
143
|
+
self._vhosts = vhosts
|
144
|
+
|
145
|
+
@property
|
146
|
+
def queues(self):
|
147
|
+
r"""Gets the queues of this CreateRocketMqMigrationTaskReq.
|
148
|
+
|
149
|
+
RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
150
|
+
|
151
|
+
:return: The queues of this CreateRocketMqMigrationTaskReq.
|
152
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`]
|
153
|
+
"""
|
154
|
+
return self._queues
|
155
|
+
|
156
|
+
@queues.setter
|
157
|
+
def queues(self, queues):
|
158
|
+
r"""Sets the queues of this CreateRocketMqMigrationTaskReq.
|
159
|
+
|
160
|
+
RabbitMQ队列元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
161
|
+
|
162
|
+
:param queues: The queues of this CreateRocketMqMigrationTaskReq.
|
163
|
+
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitQueueMetadata`]
|
164
|
+
"""
|
165
|
+
self._queues = queues
|
166
|
+
|
167
|
+
@property
|
168
|
+
def exchanges(self):
|
169
|
+
r"""Gets the exchanges of this CreateRocketMqMigrationTaskReq.
|
170
|
+
|
171
|
+
RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
172
|
+
|
173
|
+
:return: The exchanges of this CreateRocketMqMigrationTaskReq.
|
174
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`]
|
175
|
+
"""
|
176
|
+
return self._exchanges
|
177
|
+
|
178
|
+
@exchanges.setter
|
179
|
+
def exchanges(self, exchanges):
|
180
|
+
r"""Sets the exchanges of this CreateRocketMqMigrationTaskReq.
|
181
|
+
|
182
|
+
RabbitMQ交换机元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
183
|
+
|
184
|
+
:param exchanges: The exchanges of this CreateRocketMqMigrationTaskReq.
|
185
|
+
:type exchanges: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitExchangeMetadata`]
|
186
|
+
"""
|
187
|
+
self._exchanges = exchanges
|
188
|
+
|
189
|
+
@property
|
190
|
+
def bindings(self):
|
191
|
+
r"""Gets the bindings of this CreateRocketMqMigrationTaskReq.
|
192
|
+
|
193
|
+
RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
194
|
+
|
195
|
+
:return: The bindings of this CreateRocketMqMigrationTaskReq.
|
196
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`]
|
197
|
+
"""
|
198
|
+
return self._bindings
|
199
|
+
|
200
|
+
@bindings.setter
|
201
|
+
def bindings(self, bindings):
|
202
|
+
r"""Sets the bindings of this CreateRocketMqMigrationTaskReq.
|
203
|
+
|
204
|
+
RabbitMQ binding元数据列表,迁移任务类型为自建RabbitMQ上云(rabbitToRocket)时必填。
|
205
|
+
|
206
|
+
:param bindings: The bindings of this CreateRocketMqMigrationTaskReq.
|
207
|
+
:type bindings: list[:class:`huaweicloudsdkrocketmq.v2.MigrationRabbitBindingMetadata`]
|
208
|
+
"""
|
209
|
+
self._bindings = bindings
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, CreateRocketMqMigrationTaskReq):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|