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,473 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ComponentSpec:
|
|
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
|
+
'env_id': 'str',
|
|
20
|
+
'replica': 'int',
|
|
21
|
+
'source': 'Source',
|
|
22
|
+
'build': 'Build',
|
|
23
|
+
'resource_limit': 'ResourceLimit',
|
|
24
|
+
'access_info': 'list[Access]',
|
|
25
|
+
'image_url': 'str',
|
|
26
|
+
'available_replica': 'int',
|
|
27
|
+
'job_id': 'str',
|
|
28
|
+
'build_id': 'str',
|
|
29
|
+
'status': 'str',
|
|
30
|
+
'build_log_id': 'str',
|
|
31
|
+
'configuration_operation_id': 'str'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'runtime': 'runtime',
|
|
36
|
+
'env_id': 'env_id',
|
|
37
|
+
'replica': 'replica',
|
|
38
|
+
'source': 'source',
|
|
39
|
+
'build': 'build',
|
|
40
|
+
'resource_limit': 'resource_limit',
|
|
41
|
+
'access_info': 'access_info',
|
|
42
|
+
'image_url': 'image_url',
|
|
43
|
+
'available_replica': 'available_replica',
|
|
44
|
+
'job_id': 'job_id',
|
|
45
|
+
'build_id': 'build_id',
|
|
46
|
+
'status': 'status',
|
|
47
|
+
'build_log_id': 'build_log_id',
|
|
48
|
+
'configuration_operation_id': 'configuration_operation_id'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, runtime=None, env_id=None, replica=None, source=None, build=None, resource_limit=None, access_info=None, image_url=None, available_replica=None, job_id=None, build_id=None, status=None, build_log_id=None, configuration_operation_id=None):
|
|
52
|
+
r"""ComponentSpec
|
|
53
|
+
|
|
54
|
+
The model defined in huaweicloud sdk
|
|
55
|
+
|
|
56
|
+
:param runtime: 语言/运行时。
|
|
57
|
+
:type runtime: str
|
|
58
|
+
:param env_id: 环境ID。
|
|
59
|
+
:type env_id: str
|
|
60
|
+
:param replica: 实例个数。
|
|
61
|
+
:type replica: int
|
|
62
|
+
:param source:
|
|
63
|
+
:type source: :class:`huaweicloudsdkcae.v1.Source`
|
|
64
|
+
:param build:
|
|
65
|
+
:type build: :class:`huaweicloudsdkcae.v1.Build`
|
|
66
|
+
:param resource_limit:
|
|
67
|
+
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
68
|
+
:param access_info: 访问方式列表。
|
|
69
|
+
:type access_info: list[:class:`huaweicloudsdkcae.v1.Access`]
|
|
70
|
+
:param image_url: 镜像地址。
|
|
71
|
+
:type image_url: str
|
|
72
|
+
:param available_replica: 可用实例个数。
|
|
73
|
+
:type available_replica: int
|
|
74
|
+
:param job_id: 任务ID。
|
|
75
|
+
:type job_id: str
|
|
76
|
+
:param build_id: 构建任务ID。
|
|
77
|
+
:type build_id: str
|
|
78
|
+
:param status: 组件状态。
|
|
79
|
+
:type status: str
|
|
80
|
+
:param build_log_id: 构建日志ID。
|
|
81
|
+
:type build_log_id: str
|
|
82
|
+
:param configuration_operation_id: 组件最新配置的操作ID。
|
|
83
|
+
:type configuration_operation_id: str
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
self._runtime = None
|
|
89
|
+
self._env_id = None
|
|
90
|
+
self._replica = None
|
|
91
|
+
self._source = None
|
|
92
|
+
self._build = None
|
|
93
|
+
self._resource_limit = None
|
|
94
|
+
self._access_info = None
|
|
95
|
+
self._image_url = None
|
|
96
|
+
self._available_replica = None
|
|
97
|
+
self._job_id = None
|
|
98
|
+
self._build_id = None
|
|
99
|
+
self._status = None
|
|
100
|
+
self._build_log_id = None
|
|
101
|
+
self._configuration_operation_id = None
|
|
102
|
+
self.discriminator = None
|
|
103
|
+
|
|
104
|
+
if runtime is not None:
|
|
105
|
+
self.runtime = runtime
|
|
106
|
+
if env_id is not None:
|
|
107
|
+
self.env_id = env_id
|
|
108
|
+
if replica is not None:
|
|
109
|
+
self.replica = replica
|
|
110
|
+
if source is not None:
|
|
111
|
+
self.source = source
|
|
112
|
+
if build is not None:
|
|
113
|
+
self.build = build
|
|
114
|
+
if resource_limit is not None:
|
|
115
|
+
self.resource_limit = resource_limit
|
|
116
|
+
if access_info is not None:
|
|
117
|
+
self.access_info = access_info
|
|
118
|
+
if image_url is not None:
|
|
119
|
+
self.image_url = image_url
|
|
120
|
+
if available_replica is not None:
|
|
121
|
+
self.available_replica = available_replica
|
|
122
|
+
if job_id is not None:
|
|
123
|
+
self.job_id = job_id
|
|
124
|
+
if build_id is not None:
|
|
125
|
+
self.build_id = build_id
|
|
126
|
+
if status is not None:
|
|
127
|
+
self.status = status
|
|
128
|
+
if build_log_id is not None:
|
|
129
|
+
self.build_log_id = build_log_id
|
|
130
|
+
if configuration_operation_id is not None:
|
|
131
|
+
self.configuration_operation_id = configuration_operation_id
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def runtime(self):
|
|
135
|
+
r"""Gets the runtime of this ComponentSpec.
|
|
136
|
+
|
|
137
|
+
语言/运行时。
|
|
138
|
+
|
|
139
|
+
:return: The runtime of this ComponentSpec.
|
|
140
|
+
:rtype: str
|
|
141
|
+
"""
|
|
142
|
+
return self._runtime
|
|
143
|
+
|
|
144
|
+
@runtime.setter
|
|
145
|
+
def runtime(self, runtime):
|
|
146
|
+
r"""Sets the runtime of this ComponentSpec.
|
|
147
|
+
|
|
148
|
+
语言/运行时。
|
|
149
|
+
|
|
150
|
+
:param runtime: The runtime of this ComponentSpec.
|
|
151
|
+
:type runtime: str
|
|
152
|
+
"""
|
|
153
|
+
self._runtime = runtime
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def env_id(self):
|
|
157
|
+
r"""Gets the env_id of this ComponentSpec.
|
|
158
|
+
|
|
159
|
+
环境ID。
|
|
160
|
+
|
|
161
|
+
:return: The env_id of this ComponentSpec.
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._env_id
|
|
165
|
+
|
|
166
|
+
@env_id.setter
|
|
167
|
+
def env_id(self, env_id):
|
|
168
|
+
r"""Sets the env_id of this ComponentSpec.
|
|
169
|
+
|
|
170
|
+
环境ID。
|
|
171
|
+
|
|
172
|
+
:param env_id: The env_id of this ComponentSpec.
|
|
173
|
+
:type env_id: str
|
|
174
|
+
"""
|
|
175
|
+
self._env_id = env_id
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def replica(self):
|
|
179
|
+
r"""Gets the replica of this ComponentSpec.
|
|
180
|
+
|
|
181
|
+
实例个数。
|
|
182
|
+
|
|
183
|
+
:return: The replica of this ComponentSpec.
|
|
184
|
+
:rtype: int
|
|
185
|
+
"""
|
|
186
|
+
return self._replica
|
|
187
|
+
|
|
188
|
+
@replica.setter
|
|
189
|
+
def replica(self, replica):
|
|
190
|
+
r"""Sets the replica of this ComponentSpec.
|
|
191
|
+
|
|
192
|
+
实例个数。
|
|
193
|
+
|
|
194
|
+
:param replica: The replica of this ComponentSpec.
|
|
195
|
+
:type replica: int
|
|
196
|
+
"""
|
|
197
|
+
self._replica = replica
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
def source(self):
|
|
201
|
+
r"""Gets the source of this ComponentSpec.
|
|
202
|
+
|
|
203
|
+
:return: The source of this ComponentSpec.
|
|
204
|
+
:rtype: :class:`huaweicloudsdkcae.v1.Source`
|
|
205
|
+
"""
|
|
206
|
+
return self._source
|
|
207
|
+
|
|
208
|
+
@source.setter
|
|
209
|
+
def source(self, source):
|
|
210
|
+
r"""Sets the source of this ComponentSpec.
|
|
211
|
+
|
|
212
|
+
:param source: The source of this ComponentSpec.
|
|
213
|
+
:type source: :class:`huaweicloudsdkcae.v1.Source`
|
|
214
|
+
"""
|
|
215
|
+
self._source = source
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def build(self):
|
|
219
|
+
r"""Gets the build of this ComponentSpec.
|
|
220
|
+
|
|
221
|
+
:return: The build of this ComponentSpec.
|
|
222
|
+
:rtype: :class:`huaweicloudsdkcae.v1.Build`
|
|
223
|
+
"""
|
|
224
|
+
return self._build
|
|
225
|
+
|
|
226
|
+
@build.setter
|
|
227
|
+
def build(self, build):
|
|
228
|
+
r"""Sets the build of this ComponentSpec.
|
|
229
|
+
|
|
230
|
+
:param build: The build of this ComponentSpec.
|
|
231
|
+
:type build: :class:`huaweicloudsdkcae.v1.Build`
|
|
232
|
+
"""
|
|
233
|
+
self._build = build
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
def resource_limit(self):
|
|
237
|
+
r"""Gets the resource_limit of this ComponentSpec.
|
|
238
|
+
|
|
239
|
+
:return: The resource_limit of this ComponentSpec.
|
|
240
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
241
|
+
"""
|
|
242
|
+
return self._resource_limit
|
|
243
|
+
|
|
244
|
+
@resource_limit.setter
|
|
245
|
+
def resource_limit(self, resource_limit):
|
|
246
|
+
r"""Sets the resource_limit of this ComponentSpec.
|
|
247
|
+
|
|
248
|
+
:param resource_limit: The resource_limit of this ComponentSpec.
|
|
249
|
+
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
250
|
+
"""
|
|
251
|
+
self._resource_limit = resource_limit
|
|
252
|
+
|
|
253
|
+
@property
|
|
254
|
+
def access_info(self):
|
|
255
|
+
r"""Gets the access_info of this ComponentSpec.
|
|
256
|
+
|
|
257
|
+
访问方式列表。
|
|
258
|
+
|
|
259
|
+
:return: The access_info of this ComponentSpec.
|
|
260
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.Access`]
|
|
261
|
+
"""
|
|
262
|
+
return self._access_info
|
|
263
|
+
|
|
264
|
+
@access_info.setter
|
|
265
|
+
def access_info(self, access_info):
|
|
266
|
+
r"""Sets the access_info of this ComponentSpec.
|
|
267
|
+
|
|
268
|
+
访问方式列表。
|
|
269
|
+
|
|
270
|
+
:param access_info: The access_info of this ComponentSpec.
|
|
271
|
+
:type access_info: list[:class:`huaweicloudsdkcae.v1.Access`]
|
|
272
|
+
"""
|
|
273
|
+
self._access_info = access_info
|
|
274
|
+
|
|
275
|
+
@property
|
|
276
|
+
def image_url(self):
|
|
277
|
+
r"""Gets the image_url of this ComponentSpec.
|
|
278
|
+
|
|
279
|
+
镜像地址。
|
|
280
|
+
|
|
281
|
+
:return: The image_url of this ComponentSpec.
|
|
282
|
+
:rtype: str
|
|
283
|
+
"""
|
|
284
|
+
return self._image_url
|
|
285
|
+
|
|
286
|
+
@image_url.setter
|
|
287
|
+
def image_url(self, image_url):
|
|
288
|
+
r"""Sets the image_url of this ComponentSpec.
|
|
289
|
+
|
|
290
|
+
镜像地址。
|
|
291
|
+
|
|
292
|
+
:param image_url: The image_url of this ComponentSpec.
|
|
293
|
+
:type image_url: str
|
|
294
|
+
"""
|
|
295
|
+
self._image_url = image_url
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
def available_replica(self):
|
|
299
|
+
r"""Gets the available_replica of this ComponentSpec.
|
|
300
|
+
|
|
301
|
+
可用实例个数。
|
|
302
|
+
|
|
303
|
+
:return: The available_replica of this ComponentSpec.
|
|
304
|
+
:rtype: int
|
|
305
|
+
"""
|
|
306
|
+
return self._available_replica
|
|
307
|
+
|
|
308
|
+
@available_replica.setter
|
|
309
|
+
def available_replica(self, available_replica):
|
|
310
|
+
r"""Sets the available_replica of this ComponentSpec.
|
|
311
|
+
|
|
312
|
+
可用实例个数。
|
|
313
|
+
|
|
314
|
+
:param available_replica: The available_replica of this ComponentSpec.
|
|
315
|
+
:type available_replica: int
|
|
316
|
+
"""
|
|
317
|
+
self._available_replica = available_replica
|
|
318
|
+
|
|
319
|
+
@property
|
|
320
|
+
def job_id(self):
|
|
321
|
+
r"""Gets the job_id of this ComponentSpec.
|
|
322
|
+
|
|
323
|
+
任务ID。
|
|
324
|
+
|
|
325
|
+
:return: The job_id of this ComponentSpec.
|
|
326
|
+
:rtype: str
|
|
327
|
+
"""
|
|
328
|
+
return self._job_id
|
|
329
|
+
|
|
330
|
+
@job_id.setter
|
|
331
|
+
def job_id(self, job_id):
|
|
332
|
+
r"""Sets the job_id of this ComponentSpec.
|
|
333
|
+
|
|
334
|
+
任务ID。
|
|
335
|
+
|
|
336
|
+
:param job_id: The job_id of this ComponentSpec.
|
|
337
|
+
:type job_id: str
|
|
338
|
+
"""
|
|
339
|
+
self._job_id = job_id
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def build_id(self):
|
|
343
|
+
r"""Gets the build_id of this ComponentSpec.
|
|
344
|
+
|
|
345
|
+
构建任务ID。
|
|
346
|
+
|
|
347
|
+
:return: The build_id of this ComponentSpec.
|
|
348
|
+
:rtype: str
|
|
349
|
+
"""
|
|
350
|
+
return self._build_id
|
|
351
|
+
|
|
352
|
+
@build_id.setter
|
|
353
|
+
def build_id(self, build_id):
|
|
354
|
+
r"""Sets the build_id of this ComponentSpec.
|
|
355
|
+
|
|
356
|
+
构建任务ID。
|
|
357
|
+
|
|
358
|
+
:param build_id: The build_id of this ComponentSpec.
|
|
359
|
+
:type build_id: str
|
|
360
|
+
"""
|
|
361
|
+
self._build_id = build_id
|
|
362
|
+
|
|
363
|
+
@property
|
|
364
|
+
def status(self):
|
|
365
|
+
r"""Gets the status of this ComponentSpec.
|
|
366
|
+
|
|
367
|
+
组件状态。
|
|
368
|
+
|
|
369
|
+
:return: The status of this ComponentSpec.
|
|
370
|
+
:rtype: str
|
|
371
|
+
"""
|
|
372
|
+
return self._status
|
|
373
|
+
|
|
374
|
+
@status.setter
|
|
375
|
+
def status(self, status):
|
|
376
|
+
r"""Sets the status of this ComponentSpec.
|
|
377
|
+
|
|
378
|
+
组件状态。
|
|
379
|
+
|
|
380
|
+
:param status: The status of this ComponentSpec.
|
|
381
|
+
:type status: str
|
|
382
|
+
"""
|
|
383
|
+
self._status = status
|
|
384
|
+
|
|
385
|
+
@property
|
|
386
|
+
def build_log_id(self):
|
|
387
|
+
r"""Gets the build_log_id of this ComponentSpec.
|
|
388
|
+
|
|
389
|
+
构建日志ID。
|
|
390
|
+
|
|
391
|
+
:return: The build_log_id of this ComponentSpec.
|
|
392
|
+
:rtype: str
|
|
393
|
+
"""
|
|
394
|
+
return self._build_log_id
|
|
395
|
+
|
|
396
|
+
@build_log_id.setter
|
|
397
|
+
def build_log_id(self, build_log_id):
|
|
398
|
+
r"""Sets the build_log_id of this ComponentSpec.
|
|
399
|
+
|
|
400
|
+
构建日志ID。
|
|
401
|
+
|
|
402
|
+
:param build_log_id: The build_log_id of this ComponentSpec.
|
|
403
|
+
:type build_log_id: str
|
|
404
|
+
"""
|
|
405
|
+
self._build_log_id = build_log_id
|
|
406
|
+
|
|
407
|
+
@property
|
|
408
|
+
def configuration_operation_id(self):
|
|
409
|
+
r"""Gets the configuration_operation_id of this ComponentSpec.
|
|
410
|
+
|
|
411
|
+
组件最新配置的操作ID。
|
|
412
|
+
|
|
413
|
+
:return: The configuration_operation_id of this ComponentSpec.
|
|
414
|
+
:rtype: str
|
|
415
|
+
"""
|
|
416
|
+
return self._configuration_operation_id
|
|
417
|
+
|
|
418
|
+
@configuration_operation_id.setter
|
|
419
|
+
def configuration_operation_id(self, configuration_operation_id):
|
|
420
|
+
r"""Sets the configuration_operation_id of this ComponentSpec.
|
|
421
|
+
|
|
422
|
+
组件最新配置的操作ID。
|
|
423
|
+
|
|
424
|
+
:param configuration_operation_id: The configuration_operation_id of this ComponentSpec.
|
|
425
|
+
:type configuration_operation_id: str
|
|
426
|
+
"""
|
|
427
|
+
self._configuration_operation_id = configuration_operation_id
|
|
428
|
+
|
|
429
|
+
def to_dict(self):
|
|
430
|
+
result = {}
|
|
431
|
+
|
|
432
|
+
for attr, _ in self.openapi_types.items():
|
|
433
|
+
value = getattr(self, attr)
|
|
434
|
+
if isinstance(value, list):
|
|
435
|
+
result[attr] = list(map(
|
|
436
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
437
|
+
value
|
|
438
|
+
))
|
|
439
|
+
elif hasattr(value, "to_dict"):
|
|
440
|
+
result[attr] = value.to_dict()
|
|
441
|
+
elif isinstance(value, dict):
|
|
442
|
+
result[attr] = dict(map(
|
|
443
|
+
lambda item: (item[0], item[1].to_dict())
|
|
444
|
+
if hasattr(item[1], "to_dict") else item,
|
|
445
|
+
value.items()
|
|
446
|
+
))
|
|
447
|
+
else:
|
|
448
|
+
if attr in self.sensitive_list:
|
|
449
|
+
result[attr] = "****"
|
|
450
|
+
else:
|
|
451
|
+
result[attr] = value
|
|
452
|
+
|
|
453
|
+
return result
|
|
454
|
+
|
|
455
|
+
def to_str(self):
|
|
456
|
+
"""Returns the string representation of the model"""
|
|
457
|
+
import simplejson as json
|
|
458
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
459
|
+
|
|
460
|
+
def __repr__(self):
|
|
461
|
+
"""For `print`"""
|
|
462
|
+
return self.to_str()
|
|
463
|
+
|
|
464
|
+
def __eq__(self, other):
|
|
465
|
+
"""Returns true if both objects are equal"""
|
|
466
|
+
if not isinstance(other, ComponentSpec):
|
|
467
|
+
return False
|
|
468
|
+
|
|
469
|
+
return self.__dict__ == other.__dict__
|
|
470
|
+
|
|
471
|
+
def __ne__(self, other):
|
|
472
|
+
"""Returns true if both objects are not equal"""
|
|
473
|
+
return not self == other
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Configuration:
|
|
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
|
+
'data': 'ListComponentConfigurationsResponseData',
|
|
19
|
+
'operated_at': 'datetime',
|
|
20
|
+
'operation_id': 'str',
|
|
21
|
+
'type': 'str',
|
|
22
|
+
'is_activated': 'bool',
|
|
23
|
+
'is_using': 'bool'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'data': 'data',
|
|
28
|
+
'operated_at': 'operated_at',
|
|
29
|
+
'operation_id': 'operation_id',
|
|
30
|
+
'type': 'type',
|
|
31
|
+
'is_activated': 'is_activated',
|
|
32
|
+
'is_using': 'is_using'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, data=None, operated_at=None, operation_id=None, type=None, is_activated=None, is_using=None):
|
|
36
|
+
r"""Configuration
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param data:
|
|
41
|
+
:type data: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsResponseData`
|
|
42
|
+
:param operated_at: 操作时间。
|
|
43
|
+
:type operated_at: datetime
|
|
44
|
+
:param operation_id: 操作ID。
|
|
45
|
+
:type operation_id: str
|
|
46
|
+
:param type: 组件配置类型。
|
|
47
|
+
:type type: str
|
|
48
|
+
:param is_activated: 配置是否生效过。
|
|
49
|
+
:type is_activated: bool
|
|
50
|
+
:param is_using: 配置是否正在使用。
|
|
51
|
+
:type is_using: bool
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
self._data = None
|
|
57
|
+
self._operated_at = None
|
|
58
|
+
self._operation_id = None
|
|
59
|
+
self._type = None
|
|
60
|
+
self._is_activated = None
|
|
61
|
+
self._is_using = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
if data is not None:
|
|
65
|
+
self.data = data
|
|
66
|
+
if operated_at is not None:
|
|
67
|
+
self.operated_at = operated_at
|
|
68
|
+
if operation_id is not None:
|
|
69
|
+
self.operation_id = operation_id
|
|
70
|
+
if type is not None:
|
|
71
|
+
self.type = type
|
|
72
|
+
if is_activated is not None:
|
|
73
|
+
self.is_activated = is_activated
|
|
74
|
+
if is_using is not None:
|
|
75
|
+
self.is_using = is_using
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def data(self):
|
|
79
|
+
r"""Gets the data of this Configuration.
|
|
80
|
+
|
|
81
|
+
:return: The data of this Configuration.
|
|
82
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsResponseData`
|
|
83
|
+
"""
|
|
84
|
+
return self._data
|
|
85
|
+
|
|
86
|
+
@data.setter
|
|
87
|
+
def data(self, data):
|
|
88
|
+
r"""Sets the data of this Configuration.
|
|
89
|
+
|
|
90
|
+
:param data: The data of this Configuration.
|
|
91
|
+
:type data: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsResponseData`
|
|
92
|
+
"""
|
|
93
|
+
self._data = data
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def operated_at(self):
|
|
97
|
+
r"""Gets the operated_at of this Configuration.
|
|
98
|
+
|
|
99
|
+
操作时间。
|
|
100
|
+
|
|
101
|
+
:return: The operated_at of this Configuration.
|
|
102
|
+
:rtype: datetime
|
|
103
|
+
"""
|
|
104
|
+
return self._operated_at
|
|
105
|
+
|
|
106
|
+
@operated_at.setter
|
|
107
|
+
def operated_at(self, operated_at):
|
|
108
|
+
r"""Sets the operated_at of this Configuration.
|
|
109
|
+
|
|
110
|
+
操作时间。
|
|
111
|
+
|
|
112
|
+
:param operated_at: The operated_at of this Configuration.
|
|
113
|
+
:type operated_at: datetime
|
|
114
|
+
"""
|
|
115
|
+
self._operated_at = operated_at
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def operation_id(self):
|
|
119
|
+
r"""Gets the operation_id of this Configuration.
|
|
120
|
+
|
|
121
|
+
操作ID。
|
|
122
|
+
|
|
123
|
+
:return: The operation_id of this Configuration.
|
|
124
|
+
:rtype: str
|
|
125
|
+
"""
|
|
126
|
+
return self._operation_id
|
|
127
|
+
|
|
128
|
+
@operation_id.setter
|
|
129
|
+
def operation_id(self, operation_id):
|
|
130
|
+
r"""Sets the operation_id of this Configuration.
|
|
131
|
+
|
|
132
|
+
操作ID。
|
|
133
|
+
|
|
134
|
+
:param operation_id: The operation_id of this Configuration.
|
|
135
|
+
:type operation_id: str
|
|
136
|
+
"""
|
|
137
|
+
self._operation_id = operation_id
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def type(self):
|
|
141
|
+
r"""Gets the type of this Configuration.
|
|
142
|
+
|
|
143
|
+
组件配置类型。
|
|
144
|
+
|
|
145
|
+
:return: The type of this Configuration.
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._type
|
|
149
|
+
|
|
150
|
+
@type.setter
|
|
151
|
+
def type(self, type):
|
|
152
|
+
r"""Sets the type of this Configuration.
|
|
153
|
+
|
|
154
|
+
组件配置类型。
|
|
155
|
+
|
|
156
|
+
:param type: The type of this Configuration.
|
|
157
|
+
:type type: str
|
|
158
|
+
"""
|
|
159
|
+
self._type = type
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def is_activated(self):
|
|
163
|
+
r"""Gets the is_activated of this Configuration.
|
|
164
|
+
|
|
165
|
+
配置是否生效过。
|
|
166
|
+
|
|
167
|
+
:return: The is_activated of this Configuration.
|
|
168
|
+
:rtype: bool
|
|
169
|
+
"""
|
|
170
|
+
return self._is_activated
|
|
171
|
+
|
|
172
|
+
@is_activated.setter
|
|
173
|
+
def is_activated(self, is_activated):
|
|
174
|
+
r"""Sets the is_activated of this Configuration.
|
|
175
|
+
|
|
176
|
+
配置是否生效过。
|
|
177
|
+
|
|
178
|
+
:param is_activated: The is_activated of this Configuration.
|
|
179
|
+
:type is_activated: bool
|
|
180
|
+
"""
|
|
181
|
+
self._is_activated = is_activated
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def is_using(self):
|
|
185
|
+
r"""Gets the is_using of this Configuration.
|
|
186
|
+
|
|
187
|
+
配置是否正在使用。
|
|
188
|
+
|
|
189
|
+
:return: The is_using of this Configuration.
|
|
190
|
+
:rtype: bool
|
|
191
|
+
"""
|
|
192
|
+
return self._is_using
|
|
193
|
+
|
|
194
|
+
@is_using.setter
|
|
195
|
+
def is_using(self, is_using):
|
|
196
|
+
r"""Sets the is_using of this Configuration.
|
|
197
|
+
|
|
198
|
+
配置是否正在使用。
|
|
199
|
+
|
|
200
|
+
:param is_using: The is_using of this Configuration.
|
|
201
|
+
:type is_using: bool
|
|
202
|
+
"""
|
|
203
|
+
self._is_using = is_using
|
|
204
|
+
|
|
205
|
+
def to_dict(self):
|
|
206
|
+
result = {}
|
|
207
|
+
|
|
208
|
+
for attr, _ in self.openapi_types.items():
|
|
209
|
+
value = getattr(self, attr)
|
|
210
|
+
if isinstance(value, list):
|
|
211
|
+
result[attr] = list(map(
|
|
212
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
213
|
+
value
|
|
214
|
+
))
|
|
215
|
+
elif hasattr(value, "to_dict"):
|
|
216
|
+
result[attr] = value.to_dict()
|
|
217
|
+
elif isinstance(value, dict):
|
|
218
|
+
result[attr] = dict(map(
|
|
219
|
+
lambda item: (item[0], item[1].to_dict())
|
|
220
|
+
if hasattr(item[1], "to_dict") else item,
|
|
221
|
+
value.items()
|
|
222
|
+
))
|
|
223
|
+
else:
|
|
224
|
+
if attr in self.sensitive_list:
|
|
225
|
+
result[attr] = "****"
|
|
226
|
+
else:
|
|
227
|
+
result[attr] = value
|
|
228
|
+
|
|
229
|
+
return result
|
|
230
|
+
|
|
231
|
+
def to_str(self):
|
|
232
|
+
"""Returns the string representation of the model"""
|
|
233
|
+
import simplejson as json
|
|
234
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
235
|
+
|
|
236
|
+
def __repr__(self):
|
|
237
|
+
"""For `print`"""
|
|
238
|
+
return self.to_str()
|
|
239
|
+
|
|
240
|
+
def __eq__(self, other):
|
|
241
|
+
"""Returns true if both objects are equal"""
|
|
242
|
+
if not isinstance(other, Configuration):
|
|
243
|
+
return False
|
|
244
|
+
|
|
245
|
+
return self.__dict__ == other.__dict__
|
|
246
|
+
|
|
247
|
+
def __ne__(self, other):
|
|
248
|
+
"""Returns true if both objects are not equal"""
|
|
249
|
+
return not self == other
|