huaweicloudsdkcae 3.1.179__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.
- huaweicloudsdkcae/__init__.py +0 -0
- huaweicloudsdkcae/v1/__init__.py +256 -0
- huaweicloudsdkcae/v1/cae_async_client.py +3941 -0
- huaweicloudsdkcae/v1/cae_client.py +3938 -0
- huaweicloudsdkcae/v1/model/__init__.py +253 -0
- huaweicloudsdkcae/v1/model/access.py +137 -0
- huaweicloudsdkcae/v1/model/access_configuration_data_items.py +361 -0
- huaweicloudsdkcae/v1/model/access_configuration_http_path.py +166 -0
- huaweicloudsdkcae/v1/model/access_configuration_metadata.py +108 -0
- huaweicloudsdkcae/v1/model/access_configuration_port.py +365 -0
- huaweicloudsdkcae/v1/model/access_control.py +137 -0
- huaweicloudsdkcae/v1/model/action_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/action_on_component_build.py +133 -0
- huaweicloudsdkcae/v1/model/action_on_component_source.py +191 -0
- huaweicloudsdkcae/v1/model/action_on_component_spec.py +212 -0
- huaweicloudsdkcae/v1/model/agency.py +151 -0
- huaweicloudsdkcae/v1/model/agency_item.py +108 -0
- huaweicloudsdkcae/v1/model/agency_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/agency_metadata.py +132 -0
- huaweicloudsdkcae/v1/model/api_version_obj.py +80 -0
- huaweicloudsdkcae/v1/model/app_info.py +137 -0
- huaweicloudsdkcae/v1/model/application_item.py +195 -0
- huaweicloudsdkcae/v1/model/application_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/application_metadata.py +195 -0
- huaweicloudsdkcae/v1/model/archive.py +108 -0
- huaweicloudsdkcae/v1/model/build.py +131 -0
- huaweicloudsdkcae/v1/model/cert_item.py +129 -0
- huaweicloudsdkcae/v1/model/cert_req.py +175 -0
- huaweicloudsdkcae/v1/model/certificate_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +137 -0
- huaweicloudsdkcae/v1/model/component_configuration_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/component_execution_result.py +195 -0
- huaweicloudsdkcae/v1/model/component_info.py +137 -0
- huaweicloudsdkcae/v1/model/component_item.py +249 -0
- huaweicloudsdkcae/v1/model/component_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/component_snapshot_context.py +717 -0
- huaweicloudsdkcae/v1/model/component_snapshot_item.py +220 -0
- huaweicloudsdkcae/v1/model/component_snapshot_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/component_spec.py +473 -0
- huaweicloudsdkcae/v1/model/configuration.py +249 -0
- huaweicloudsdkcae/v1/model/configuration_data.py +129 -0
- huaweicloudsdkcae/v1/model/configuration_data_metadata.py +108 -0
- huaweicloudsdkcae/v1/model/configuration_item.py +131 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +896 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec_post_start.py +104 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec_pre_stop.py +104 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +1186 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec_post_start.py +104 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec_pre_stop.py +104 -0
- huaweicloudsdkcae/v1/model/create_agency_request.py +104 -0
- huaweicloudsdkcae/v1/model/create_agency_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_application_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_application_request_body.py +151 -0
- huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +107 -0
- huaweicloudsdkcae/v1/model/create_application_response.py +158 -0
- huaweicloudsdkcae/v1/model/create_certificate_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_certificate_response.py +162 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request.py +217 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +155 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_component_request.py +189 -0
- huaweicloudsdkcae/v1/model/create_component_request_body.py +175 -0
- huaweicloudsdkcae/v1/model/create_component_response.py +183 -0
- huaweicloudsdkcae/v1/model/create_component_spec.py +299 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +189 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +206 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_metadata.py +135 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_spec.py +237 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +237 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +108 -0
- huaweicloudsdkcae/v1/model/create_domain_req.py +151 -0
- huaweicloudsdkcae/v1/model/create_domain_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_domain_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_environment_request.py +133 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body.py +151 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +136 -0
- huaweicloudsdkcae/v1/model/create_environment_response.py +112 -0
- huaweicloudsdkcae/v1/model/create_meta_cert.py +107 -0
- huaweicloudsdkcae/v1/model/create_meta_domain.py +107 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_item.py +237 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_req.py +159 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_request.py +133 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +270 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +135 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +159 -0
- huaweicloudsdkcae/v1/model/create_secret_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_secret_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_spec_cert.py +135 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_req.py +154 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_response.py +158 -0
- huaweicloudsdkcae/v1/model/create_volume_req.py +151 -0
- huaweicloudsdkcae/v1/model/create_volume_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_volume_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_response.py +158 -0
- huaweicloudsdkcae/v1/model/cron_trigger_scheduler.py +137 -0
- huaweicloudsdkcae/v1/model/delete_application_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_application_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_certificate_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_certificate_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +192 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_component_request.py +192 -0
- huaweicloudsdkcae/v1/model/delete_component_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_domain_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_domain_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_environment_request.py +136 -0
- huaweicloudsdkcae/v1/model/delete_environment_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +132 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +108 -0
- huaweicloudsdkcae/v1/model/delete_secret_request.py +136 -0
- huaweicloudsdkcae/v1/model/delete_secret_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_volume_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_volume_response.py +162 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +81 -0
- huaweicloudsdkcae/v1/model/domain_item.py +104 -0
- huaweicloudsdkcae/v1/model/domain_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/egress_cidr.py +164 -0
- huaweicloudsdkcae/v1/model/eip_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/environment_item.py +282 -0
- huaweicloudsdkcae/v1/model/environment_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/execute_action_request.py +217 -0
- huaweicloudsdkcae/v1/model/execute_action_request_body.py +177 -0
- huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +136 -0
- huaweicloudsdkcae/v1/model/execute_action_response.py +112 -0
- huaweicloudsdkcae/v1/model/execution_details.py +137 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_exec.py +108 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +166 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_liveness_probe.py +299 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_readiness_probe.py +299 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_startup_probe.py +299 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +108 -0
- huaweicloudsdkcae/v1/model/instance.py +166 -0
- huaweicloudsdkcae/v1/model/job_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/job_spec.py +166 -0
- huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py +108 -0
- huaweicloudsdkcae/v1/model/list_agencies_request.py +77 -0
- huaweicloudsdkcae/v1/model/list_agencies_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_applications_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_applications_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_certificates_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_certificates_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +221 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_response_data.py +129 -0
- huaweicloudsdkcae/v1/model/list_component_instances_request.py +192 -0
- huaweicloudsdkcae/v1/model/list_component_instances_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +192 -0
- huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_components_request.py +280 -0
- huaweicloudsdkcae/v1/model/list_components_response.py +191 -0
- huaweicloudsdkcae/v1/model/list_domains_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_domains_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_effective_components_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_effective_components_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec.py +129 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +166 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +166 -0
- huaweicloudsdkcae/v1/model/list_eips_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_eips_response.py +158 -0
- huaweicloudsdkcae/v1/model/list_environments_request.py +108 -0
- huaweicloudsdkcae/v1/model/list_environments_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +108 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_secrets_request.py +108 -0
- huaweicloudsdkcae/v1/model/list_secrets_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_timer_rules_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_timer_rules_response.py +158 -0
- huaweicloudsdkcae/v1/model/list_volumes_request.py +164 -0
- huaweicloudsdkcae/v1/model/list_volumes_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +158 -0
- huaweicloudsdkcae/v1/model/meta_cert.py +137 -0
- huaweicloudsdkcae/v1/model/meta_domain.py +166 -0
- huaweicloudsdkcae/v1/model/metadata_response.py +224 -0
- huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body.py +154 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +306 -0
- huaweicloudsdkcae/v1/model/mount_component.py +253 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +164 -0
- huaweicloudsdkcae/v1/model/notice_rule_scope.py +194 -0
- huaweicloudsdkcae/v1/model/repo.py +166 -0
- huaweicloudsdkcae/v1/model/resource_limit.py +135 -0
- huaweicloudsdkcae/v1/model/resource_limit_for_upgrade.py +137 -0
- huaweicloudsdkcae/v1/model/resources_credential.py +137 -0
- huaweicloudsdkcae/v1/model/retry_job_request.py +164 -0
- huaweicloudsdkcae/v1/model/retry_job_response.py +81 -0
- huaweicloudsdkcae/v1/model/scale_configuration_data_advanced.py +224 -0
- huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py +133 -0
- huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +195 -0
- huaweicloudsdkcae/v1/model/secret_detail.py +276 -0
- huaweicloudsdkcae/v1/model/show_application_request.py +164 -0
- huaweicloudsdkcae/v1/model/show_application_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_component_request.py +192 -0
- huaweicloudsdkcae/v1/model/show_component_response.py +183 -0
- huaweicloudsdkcae/v1/model/show_execution_result_request.py +164 -0
- huaweicloudsdkcae/v1/model/show_execution_result_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_job_request.py +164 -0
- huaweicloudsdkcae/v1/model/show_job_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_request.py +136 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +427 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_request.py +132 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_response.py +166 -0
- huaweicloudsdkcae/v1/model/source.py +189 -0
- huaweicloudsdkcae/v1/model/spec_cert.py +166 -0
- huaweicloudsdkcae/v1/model/task.py +253 -0
- huaweicloudsdkcae/v1/model/time_rule_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/timer_rule_details.py +427 -0
- huaweicloudsdkcae/v1/model/trigger_policy.py +194 -0
- huaweicloudsdkcae/v1/model/update_cert_req.py +151 -0
- huaweicloudsdkcae/v1/model/update_certificate_request.py +189 -0
- huaweicloudsdkcae/v1/model/update_certificate_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_component_request.py +217 -0
- huaweicloudsdkcae/v1/model/update_component_request_body.py +175 -0
- huaweicloudsdkcae/v1/model/update_component_request_metadata.py +136 -0
- huaweicloudsdkcae/v1/model/update_component_request_spec.py +211 -0
- huaweicloudsdkcae/v1/model/update_component_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_eip_request.py +161 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body.py +154 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec.py +129 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +137 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +137 -0
- huaweicloudsdkcae/v1/model/update_eip_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_request.py +189 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_item.py +185 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_req.py +159 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_request.py +157 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_response.py +166 -0
- huaweicloudsdkcae/v1/model/update_secret_request.py +161 -0
- huaweicloudsdkcae/v1/model/update_secret_response.py +166 -0
- huaweicloudsdkcae/v1/model/update_spec_cert.py +135 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_details.py +305 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_req.py +151 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_request.py +189 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_response.py +81 -0
- huaweicloudsdkcae/v1/model/volume.py +282 -0
- huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py +249 -0
- huaweicloudsdkcae/v1/model/volume_configuration_mount_info.py +166 -0
- huaweicloudsdkcae/v1/model/volume_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/volume_spec.py +192 -0
- huaweicloudsdkcae/v1/model/vpc_egress_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +154 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +107 -0
- huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +166 -0
- huaweicloudsdkcae/v1/region/__init__.py +0 -0
- huaweicloudsdkcae/v1/region/cae_region.py +60 -0
- huaweicloudsdkcae-3.1.179.dist-info/METADATA +25 -0
- huaweicloudsdkcae-3.1.179.dist-info/RECORD +259 -0
- huaweicloudsdkcae-3.1.179.dist-info/WHEEL +4 -0
- huaweicloudsdkcae-3.1.179.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateComponentWithConfigurationRequestBodyMetadata:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'name': 'str',
|
|
19
|
+
'annotations': 'dict(str, str)'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'name': 'name',
|
|
24
|
+
'annotations': 'annotations'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, name=None, annotations=None):
|
|
28
|
+
r"""CreateComponentWithConfigurationRequestBodyMetadata
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param name: 组件名称。
|
|
33
|
+
:type name: str
|
|
34
|
+
:param annotations: 创建组件请求体附加参数,当前只支持version参数,此参数必填。
|
|
35
|
+
:type annotations: dict(str, str)
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._name = None
|
|
41
|
+
self._annotations = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.name = name
|
|
45
|
+
self.annotations = annotations
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def name(self):
|
|
49
|
+
r"""Gets the name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
50
|
+
|
|
51
|
+
组件名称。
|
|
52
|
+
|
|
53
|
+
:return: The name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
54
|
+
:rtype: str
|
|
55
|
+
"""
|
|
56
|
+
return self._name
|
|
57
|
+
|
|
58
|
+
@name.setter
|
|
59
|
+
def name(self, name):
|
|
60
|
+
r"""Sets the name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
61
|
+
|
|
62
|
+
组件名称。
|
|
63
|
+
|
|
64
|
+
:param name: The name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
65
|
+
:type name: str
|
|
66
|
+
"""
|
|
67
|
+
self._name = name
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def annotations(self):
|
|
71
|
+
r"""Gets the annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
72
|
+
|
|
73
|
+
创建组件请求体附加参数,当前只支持version参数,此参数必填。
|
|
74
|
+
|
|
75
|
+
:return: The annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
76
|
+
:rtype: dict(str, str)
|
|
77
|
+
"""
|
|
78
|
+
return self._annotations
|
|
79
|
+
|
|
80
|
+
@annotations.setter
|
|
81
|
+
def annotations(self, annotations):
|
|
82
|
+
r"""Sets the annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
83
|
+
|
|
84
|
+
创建组件请求体附加参数,当前只支持version参数,此参数必填。
|
|
85
|
+
|
|
86
|
+
:param annotations: The annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
87
|
+
:type annotations: dict(str, str)
|
|
88
|
+
"""
|
|
89
|
+
self._annotations = annotations
|
|
90
|
+
|
|
91
|
+
def to_dict(self):
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in self.openapi_types.items():
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
121
|
+
|
|
122
|
+
def __repr__(self):
|
|
123
|
+
"""For `print`"""
|
|
124
|
+
return self.to_str()
|
|
125
|
+
|
|
126
|
+
def __eq__(self, other):
|
|
127
|
+
"""Returns true if both objects are equal"""
|
|
128
|
+
if not isinstance(other, CreateComponentWithConfigurationRequestBodyMetadata):
|
|
129
|
+
return False
|
|
130
|
+
|
|
131
|
+
return self.__dict__ == other.__dict__
|
|
132
|
+
|
|
133
|
+
def __ne__(self, other):
|
|
134
|
+
"""Returns true if both objects are not equal"""
|
|
135
|
+
return not self == other
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateComponentWithConfigurationRequestBodySpec:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'runtime': 'str',
|
|
19
|
+
'replica': 'int',
|
|
20
|
+
'build': 'Build',
|
|
21
|
+
'source': 'Source',
|
|
22
|
+
'resource_limit': 'ResourceLimit',
|
|
23
|
+
'image_url': 'str'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'runtime': 'runtime',
|
|
28
|
+
'replica': 'replica',
|
|
29
|
+
'build': 'build',
|
|
30
|
+
'source': 'source',
|
|
31
|
+
'resource_limit': 'resource_limit',
|
|
32
|
+
'image_url': 'image_url'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, runtime=None, replica=None, build=None, source=None, resource_limit=None, image_url=None):
|
|
36
|
+
r"""CreateComponentWithConfigurationRequestBodySpec
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param runtime: 语言/运行时。
|
|
41
|
+
:type runtime: str
|
|
42
|
+
:param replica: 实例个数。
|
|
43
|
+
:type replica: int
|
|
44
|
+
:param build:
|
|
45
|
+
:type build: :class:`huaweicloudsdkcae.v1.Build`
|
|
46
|
+
:param source:
|
|
47
|
+
:type source: :class:`huaweicloudsdkcae.v1.Source`
|
|
48
|
+
:param resource_limit:
|
|
49
|
+
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
50
|
+
:param image_url: 镜像地址。
|
|
51
|
+
:type image_url: str
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
self._runtime = None
|
|
57
|
+
self._replica = None
|
|
58
|
+
self._build = None
|
|
59
|
+
self._source = None
|
|
60
|
+
self._resource_limit = None
|
|
61
|
+
self._image_url = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.runtime = runtime
|
|
65
|
+
self.replica = replica
|
|
66
|
+
if build is not None:
|
|
67
|
+
self.build = build
|
|
68
|
+
self.source = source
|
|
69
|
+
self.resource_limit = resource_limit
|
|
70
|
+
if image_url is not None:
|
|
71
|
+
self.image_url = image_url
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def runtime(self):
|
|
75
|
+
r"""Gets the runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
76
|
+
|
|
77
|
+
语言/运行时。
|
|
78
|
+
|
|
79
|
+
:return: The runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._runtime
|
|
83
|
+
|
|
84
|
+
@runtime.setter
|
|
85
|
+
def runtime(self, runtime):
|
|
86
|
+
r"""Sets the runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
87
|
+
|
|
88
|
+
语言/运行时。
|
|
89
|
+
|
|
90
|
+
:param runtime: The runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
91
|
+
:type runtime: str
|
|
92
|
+
"""
|
|
93
|
+
self._runtime = runtime
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def replica(self):
|
|
97
|
+
r"""Gets the replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
98
|
+
|
|
99
|
+
实例个数。
|
|
100
|
+
|
|
101
|
+
:return: The replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
102
|
+
:rtype: int
|
|
103
|
+
"""
|
|
104
|
+
return self._replica
|
|
105
|
+
|
|
106
|
+
@replica.setter
|
|
107
|
+
def replica(self, replica):
|
|
108
|
+
r"""Sets the replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
109
|
+
|
|
110
|
+
实例个数。
|
|
111
|
+
|
|
112
|
+
:param replica: The replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
113
|
+
:type replica: int
|
|
114
|
+
"""
|
|
115
|
+
self._replica = replica
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def build(self):
|
|
119
|
+
r"""Gets the build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
120
|
+
|
|
121
|
+
:return: The build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
122
|
+
:rtype: :class:`huaweicloudsdkcae.v1.Build`
|
|
123
|
+
"""
|
|
124
|
+
return self._build
|
|
125
|
+
|
|
126
|
+
@build.setter
|
|
127
|
+
def build(self, build):
|
|
128
|
+
r"""Sets the build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
129
|
+
|
|
130
|
+
:param build: The build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
131
|
+
:type build: :class:`huaweicloudsdkcae.v1.Build`
|
|
132
|
+
"""
|
|
133
|
+
self._build = build
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def source(self):
|
|
137
|
+
r"""Gets the source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
138
|
+
|
|
139
|
+
:return: The source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
140
|
+
:rtype: :class:`huaweicloudsdkcae.v1.Source`
|
|
141
|
+
"""
|
|
142
|
+
return self._source
|
|
143
|
+
|
|
144
|
+
@source.setter
|
|
145
|
+
def source(self, source):
|
|
146
|
+
r"""Sets the source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
147
|
+
|
|
148
|
+
:param source: The source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
149
|
+
:type source: :class:`huaweicloudsdkcae.v1.Source`
|
|
150
|
+
"""
|
|
151
|
+
self._source = source
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def resource_limit(self):
|
|
155
|
+
r"""Gets the resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
156
|
+
|
|
157
|
+
:return: The resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
158
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
159
|
+
"""
|
|
160
|
+
return self._resource_limit
|
|
161
|
+
|
|
162
|
+
@resource_limit.setter
|
|
163
|
+
def resource_limit(self, resource_limit):
|
|
164
|
+
r"""Sets the resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
165
|
+
|
|
166
|
+
:param resource_limit: The resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
167
|
+
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
168
|
+
"""
|
|
169
|
+
self._resource_limit = resource_limit
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def image_url(self):
|
|
173
|
+
r"""Gets the image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
174
|
+
|
|
175
|
+
镜像地址。
|
|
176
|
+
|
|
177
|
+
:return: The image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._image_url
|
|
181
|
+
|
|
182
|
+
@image_url.setter
|
|
183
|
+
def image_url(self, image_url):
|
|
184
|
+
r"""Sets the image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
185
|
+
|
|
186
|
+
镜像地址。
|
|
187
|
+
|
|
188
|
+
:param image_url: The image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
189
|
+
:type image_url: str
|
|
190
|
+
"""
|
|
191
|
+
self._image_url = image_url
|
|
192
|
+
|
|
193
|
+
def to_dict(self):
|
|
194
|
+
result = {}
|
|
195
|
+
|
|
196
|
+
for attr, _ in self.openapi_types.items():
|
|
197
|
+
value = getattr(self, attr)
|
|
198
|
+
if isinstance(value, list):
|
|
199
|
+
result[attr] = list(map(
|
|
200
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
201
|
+
value
|
|
202
|
+
))
|
|
203
|
+
elif hasattr(value, "to_dict"):
|
|
204
|
+
result[attr] = value.to_dict()
|
|
205
|
+
elif isinstance(value, dict):
|
|
206
|
+
result[attr] = dict(map(
|
|
207
|
+
lambda item: (item[0], item[1].to_dict())
|
|
208
|
+
if hasattr(item[1], "to_dict") else item,
|
|
209
|
+
value.items()
|
|
210
|
+
))
|
|
211
|
+
else:
|
|
212
|
+
if attr in self.sensitive_list:
|
|
213
|
+
result[attr] = "****"
|
|
214
|
+
else:
|
|
215
|
+
result[attr] = value
|
|
216
|
+
|
|
217
|
+
return result
|
|
218
|
+
|
|
219
|
+
def to_str(self):
|
|
220
|
+
"""Returns the string representation of the model"""
|
|
221
|
+
import simplejson as json
|
|
222
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
223
|
+
|
|
224
|
+
def __repr__(self):
|
|
225
|
+
"""For `print`"""
|
|
226
|
+
return self.to_str()
|
|
227
|
+
|
|
228
|
+
def __eq__(self, other):
|
|
229
|
+
"""Returns true if both objects are equal"""
|
|
230
|
+
if not isinstance(other, CreateComponentWithConfigurationRequestBodySpec):
|
|
231
|
+
return False
|
|
232
|
+
|
|
233
|
+
return self.__dict__ == other.__dict__
|
|
234
|
+
|
|
235
|
+
def __ne__(self, other):
|
|
236
|
+
"""Returns true if both objects are not equal"""
|
|
237
|
+
return not self == other
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CreateComponentWithConfigurationResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'api_version': 'ApiVersionObj',
|
|
20
|
+
'kind': 'ComponentKindObj',
|
|
21
|
+
'metadata': 'MetadataResponse',
|
|
22
|
+
'spec': 'CreateComponentSpec',
|
|
23
|
+
'configurations': 'list[ConfigurationItem]',
|
|
24
|
+
'status': 'CreateComponentWithConfigurationResponseBodyStatus'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'api_version': 'api_version',
|
|
29
|
+
'kind': 'kind',
|
|
30
|
+
'metadata': 'metadata',
|
|
31
|
+
'spec': 'spec',
|
|
32
|
+
'configurations': 'configurations',
|
|
33
|
+
'status': 'status'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, configurations=None, status=None):
|
|
37
|
+
r"""CreateComponentWithConfigurationResponse
|
|
38
|
+
|
|
39
|
+
The model defined in huaweicloud sdk
|
|
40
|
+
|
|
41
|
+
:param api_version:
|
|
42
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
43
|
+
:param kind:
|
|
44
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
45
|
+
:param metadata:
|
|
46
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.MetadataResponse`
|
|
47
|
+
:param spec:
|
|
48
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateComponentSpec`
|
|
49
|
+
:param configurations: 配置项列表。
|
|
50
|
+
:type configurations: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
|
|
51
|
+
:param status:
|
|
52
|
+
:type status: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationResponseBodyStatus`
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
super().__init__()
|
|
56
|
+
|
|
57
|
+
self._api_version = None
|
|
58
|
+
self._kind = None
|
|
59
|
+
self._metadata = None
|
|
60
|
+
self._spec = None
|
|
61
|
+
self._configurations = None
|
|
62
|
+
self._status = None
|
|
63
|
+
self.discriminator = None
|
|
64
|
+
|
|
65
|
+
if api_version is not None:
|
|
66
|
+
self.api_version = api_version
|
|
67
|
+
if kind is not None:
|
|
68
|
+
self.kind = kind
|
|
69
|
+
if metadata is not None:
|
|
70
|
+
self.metadata = metadata
|
|
71
|
+
if spec is not None:
|
|
72
|
+
self.spec = spec
|
|
73
|
+
if configurations is not None:
|
|
74
|
+
self.configurations = configurations
|
|
75
|
+
if status is not None:
|
|
76
|
+
self.status = status
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def api_version(self):
|
|
80
|
+
r"""Gets the api_version of this CreateComponentWithConfigurationResponse.
|
|
81
|
+
|
|
82
|
+
:return: The api_version of this CreateComponentWithConfigurationResponse.
|
|
83
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
84
|
+
"""
|
|
85
|
+
return self._api_version
|
|
86
|
+
|
|
87
|
+
@api_version.setter
|
|
88
|
+
def api_version(self, api_version):
|
|
89
|
+
r"""Sets the api_version of this CreateComponentWithConfigurationResponse.
|
|
90
|
+
|
|
91
|
+
:param api_version: The api_version of this CreateComponentWithConfigurationResponse.
|
|
92
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
93
|
+
"""
|
|
94
|
+
self._api_version = api_version
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def kind(self):
|
|
98
|
+
r"""Gets the kind of this CreateComponentWithConfigurationResponse.
|
|
99
|
+
|
|
100
|
+
:return: The kind of this CreateComponentWithConfigurationResponse.
|
|
101
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
102
|
+
"""
|
|
103
|
+
return self._kind
|
|
104
|
+
|
|
105
|
+
@kind.setter
|
|
106
|
+
def kind(self, kind):
|
|
107
|
+
r"""Sets the kind of this CreateComponentWithConfigurationResponse.
|
|
108
|
+
|
|
109
|
+
:param kind: The kind of this CreateComponentWithConfigurationResponse.
|
|
110
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
111
|
+
"""
|
|
112
|
+
self._kind = kind
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def metadata(self):
|
|
116
|
+
r"""Gets the metadata of this CreateComponentWithConfigurationResponse.
|
|
117
|
+
|
|
118
|
+
:return: The metadata of this CreateComponentWithConfigurationResponse.
|
|
119
|
+
:rtype: :class:`huaweicloudsdkcae.v1.MetadataResponse`
|
|
120
|
+
"""
|
|
121
|
+
return self._metadata
|
|
122
|
+
|
|
123
|
+
@metadata.setter
|
|
124
|
+
def metadata(self, metadata):
|
|
125
|
+
r"""Sets the metadata of this CreateComponentWithConfigurationResponse.
|
|
126
|
+
|
|
127
|
+
:param metadata: The metadata of this CreateComponentWithConfigurationResponse.
|
|
128
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.MetadataResponse`
|
|
129
|
+
"""
|
|
130
|
+
self._metadata = metadata
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def spec(self):
|
|
134
|
+
r"""Gets the spec of this CreateComponentWithConfigurationResponse.
|
|
135
|
+
|
|
136
|
+
:return: The spec of this CreateComponentWithConfigurationResponse.
|
|
137
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentSpec`
|
|
138
|
+
"""
|
|
139
|
+
return self._spec
|
|
140
|
+
|
|
141
|
+
@spec.setter
|
|
142
|
+
def spec(self, spec):
|
|
143
|
+
r"""Sets the spec of this CreateComponentWithConfigurationResponse.
|
|
144
|
+
|
|
145
|
+
:param spec: The spec of this CreateComponentWithConfigurationResponse.
|
|
146
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateComponentSpec`
|
|
147
|
+
"""
|
|
148
|
+
self._spec = spec
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def configurations(self):
|
|
152
|
+
r"""Gets the configurations of this CreateComponentWithConfigurationResponse.
|
|
153
|
+
|
|
154
|
+
配置项列表。
|
|
155
|
+
|
|
156
|
+
:return: The configurations of this CreateComponentWithConfigurationResponse.
|
|
157
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
|
|
158
|
+
"""
|
|
159
|
+
return self._configurations
|
|
160
|
+
|
|
161
|
+
@configurations.setter
|
|
162
|
+
def configurations(self, configurations):
|
|
163
|
+
r"""Sets the configurations of this CreateComponentWithConfigurationResponse.
|
|
164
|
+
|
|
165
|
+
配置项列表。
|
|
166
|
+
|
|
167
|
+
:param configurations: The configurations of this CreateComponentWithConfigurationResponse.
|
|
168
|
+
:type configurations: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
|
|
169
|
+
"""
|
|
170
|
+
self._configurations = configurations
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def status(self):
|
|
174
|
+
r"""Gets the status of this CreateComponentWithConfigurationResponse.
|
|
175
|
+
|
|
176
|
+
:return: The status of this CreateComponentWithConfigurationResponse.
|
|
177
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationResponseBodyStatus`
|
|
178
|
+
"""
|
|
179
|
+
return self._status
|
|
180
|
+
|
|
181
|
+
@status.setter
|
|
182
|
+
def status(self, status):
|
|
183
|
+
r"""Sets the status of this CreateComponentWithConfigurationResponse.
|
|
184
|
+
|
|
185
|
+
:param status: The status of this CreateComponentWithConfigurationResponse.
|
|
186
|
+
:type status: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationResponseBodyStatus`
|
|
187
|
+
"""
|
|
188
|
+
self._status = status
|
|
189
|
+
|
|
190
|
+
def to_dict(self):
|
|
191
|
+
import warnings
|
|
192
|
+
warnings.warn("CreateComponentWithConfigurationResponse.to_dict() is deprecated and no longer maintained, "
|
|
193
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
194
|
+
result = {}
|
|
195
|
+
|
|
196
|
+
for attr, _ in self.openapi_types.items():
|
|
197
|
+
value = getattr(self, attr)
|
|
198
|
+
if isinstance(value, list):
|
|
199
|
+
result[attr] = list(map(
|
|
200
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
201
|
+
value
|
|
202
|
+
))
|
|
203
|
+
elif hasattr(value, "to_dict"):
|
|
204
|
+
result[attr] = value.to_dict()
|
|
205
|
+
elif isinstance(value, dict):
|
|
206
|
+
result[attr] = dict(map(
|
|
207
|
+
lambda item: (item[0], item[1].to_dict())
|
|
208
|
+
if hasattr(item[1], "to_dict") else item,
|
|
209
|
+
value.items()
|
|
210
|
+
))
|
|
211
|
+
else:
|
|
212
|
+
if attr in self.sensitive_list:
|
|
213
|
+
result[attr] = "****"
|
|
214
|
+
else:
|
|
215
|
+
result[attr] = value
|
|
216
|
+
|
|
217
|
+
return result
|
|
218
|
+
|
|
219
|
+
def to_str(self):
|
|
220
|
+
"""Returns the string representation of the model"""
|
|
221
|
+
import simplejson as json
|
|
222
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
223
|
+
|
|
224
|
+
def __repr__(self):
|
|
225
|
+
"""For `print`"""
|
|
226
|
+
return self.to_str()
|
|
227
|
+
|
|
228
|
+
def __eq__(self, other):
|
|
229
|
+
"""Returns true if both objects are equal"""
|
|
230
|
+
if not isinstance(other, CreateComponentWithConfigurationResponse):
|
|
231
|
+
return False
|
|
232
|
+
|
|
233
|
+
return self.__dict__ == other.__dict__
|
|
234
|
+
|
|
235
|
+
def __ne__(self, other):
|
|
236
|
+
"""Returns true if both objects are not equal"""
|
|
237
|
+
return not self == other
|