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,151 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateTimerRuleReq:
|
|
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
|
+
'api_version': 'ApiVersionObj',
|
|
19
|
+
'kind': 'TimeRuleKindObj',
|
|
20
|
+
'spec': 'UpdateTimerRuleDetails'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'api_version': 'api_version',
|
|
25
|
+
'kind': 'kind',
|
|
26
|
+
'spec': 'spec'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, api_version=None, kind=None, spec=None):
|
|
30
|
+
r"""UpdateTimerRuleReq
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param api_version:
|
|
35
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
36
|
+
:param kind:
|
|
37
|
+
:type kind: :class:`huaweicloudsdkcae.v1.TimeRuleKindObj`
|
|
38
|
+
:param spec:
|
|
39
|
+
:type spec: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleDetails`
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._api_version = None
|
|
45
|
+
self._kind = None
|
|
46
|
+
self._spec = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
self.api_version = api_version
|
|
50
|
+
self.kind = kind
|
|
51
|
+
self.spec = spec
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def api_version(self):
|
|
55
|
+
r"""Gets the api_version of this UpdateTimerRuleReq.
|
|
56
|
+
|
|
57
|
+
:return: The api_version of this UpdateTimerRuleReq.
|
|
58
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
59
|
+
"""
|
|
60
|
+
return self._api_version
|
|
61
|
+
|
|
62
|
+
@api_version.setter
|
|
63
|
+
def api_version(self, api_version):
|
|
64
|
+
r"""Sets the api_version of this UpdateTimerRuleReq.
|
|
65
|
+
|
|
66
|
+
:param api_version: The api_version of this UpdateTimerRuleReq.
|
|
67
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
68
|
+
"""
|
|
69
|
+
self._api_version = api_version
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def kind(self):
|
|
73
|
+
r"""Gets the kind of this UpdateTimerRuleReq.
|
|
74
|
+
|
|
75
|
+
:return: The kind of this UpdateTimerRuleReq.
|
|
76
|
+
:rtype: :class:`huaweicloudsdkcae.v1.TimeRuleKindObj`
|
|
77
|
+
"""
|
|
78
|
+
return self._kind
|
|
79
|
+
|
|
80
|
+
@kind.setter
|
|
81
|
+
def kind(self, kind):
|
|
82
|
+
r"""Sets the kind of this UpdateTimerRuleReq.
|
|
83
|
+
|
|
84
|
+
:param kind: The kind of this UpdateTimerRuleReq.
|
|
85
|
+
:type kind: :class:`huaweicloudsdkcae.v1.TimeRuleKindObj`
|
|
86
|
+
"""
|
|
87
|
+
self._kind = kind
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def spec(self):
|
|
91
|
+
r"""Gets the spec of this UpdateTimerRuleReq.
|
|
92
|
+
|
|
93
|
+
:return: The spec of this UpdateTimerRuleReq.
|
|
94
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleDetails`
|
|
95
|
+
"""
|
|
96
|
+
return self._spec
|
|
97
|
+
|
|
98
|
+
@spec.setter
|
|
99
|
+
def spec(self, spec):
|
|
100
|
+
r"""Sets the spec of this UpdateTimerRuleReq.
|
|
101
|
+
|
|
102
|
+
:param spec: The spec of this UpdateTimerRuleReq.
|
|
103
|
+
:type spec: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleDetails`
|
|
104
|
+
"""
|
|
105
|
+
self._spec = spec
|
|
106
|
+
|
|
107
|
+
def to_dict(self):
|
|
108
|
+
result = {}
|
|
109
|
+
|
|
110
|
+
for attr, _ in self.openapi_types.items():
|
|
111
|
+
value = getattr(self, attr)
|
|
112
|
+
if isinstance(value, list):
|
|
113
|
+
result[attr] = list(map(
|
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
115
|
+
value
|
|
116
|
+
))
|
|
117
|
+
elif hasattr(value, "to_dict"):
|
|
118
|
+
result[attr] = value.to_dict()
|
|
119
|
+
elif isinstance(value, dict):
|
|
120
|
+
result[attr] = dict(map(
|
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
|
123
|
+
value.items()
|
|
124
|
+
))
|
|
125
|
+
else:
|
|
126
|
+
if attr in self.sensitive_list:
|
|
127
|
+
result[attr] = "****"
|
|
128
|
+
else:
|
|
129
|
+
result[attr] = value
|
|
130
|
+
|
|
131
|
+
return result
|
|
132
|
+
|
|
133
|
+
def to_str(self):
|
|
134
|
+
"""Returns the string representation of the model"""
|
|
135
|
+
import simplejson as json
|
|
136
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
137
|
+
|
|
138
|
+
def __repr__(self):
|
|
139
|
+
"""For `print`"""
|
|
140
|
+
return self.to_str()
|
|
141
|
+
|
|
142
|
+
def __eq__(self, other):
|
|
143
|
+
"""Returns true if both objects are equal"""
|
|
144
|
+
if not isinstance(other, UpdateTimerRuleReq):
|
|
145
|
+
return False
|
|
146
|
+
|
|
147
|
+
return self.__dict__ == other.__dict__
|
|
148
|
+
|
|
149
|
+
def __ne__(self, other):
|
|
150
|
+
"""Returns true if both objects are not equal"""
|
|
151
|
+
return not self == other
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateTimerRuleRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
19
|
+
'x_environment_id': 'str',
|
|
20
|
+
'timer_rule_id': 'str',
|
|
21
|
+
'body': 'UpdateTimerRuleReq'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
26
|
+
'x_environment_id': 'X-Environment-ID',
|
|
27
|
+
'timer_rule_id': 'timer_rule_id',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, timer_rule_id=None, body=None):
|
|
32
|
+
r"""UpdateTimerRuleRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
37
|
+
:type x_enterprise_project_id: str
|
|
38
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
39
|
+
:type x_environment_id: str
|
|
40
|
+
:param timer_rule_id: 定时启停规则ID。
|
|
41
|
+
:type timer_rule_id: str
|
|
42
|
+
:param body: Body of the UpdateTimerRuleRequest
|
|
43
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleReq`
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._x_enterprise_project_id = None
|
|
49
|
+
self._x_environment_id = None
|
|
50
|
+
self._timer_rule_id = None
|
|
51
|
+
self._body = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if x_enterprise_project_id is not None:
|
|
55
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
56
|
+
self.x_environment_id = x_environment_id
|
|
57
|
+
self.timer_rule_id = timer_rule_id
|
|
58
|
+
if body is not None:
|
|
59
|
+
self.body = body
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def x_enterprise_project_id(self):
|
|
63
|
+
r"""Gets the x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
64
|
+
|
|
65
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
66
|
+
|
|
67
|
+
:return: The x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
68
|
+
:rtype: str
|
|
69
|
+
"""
|
|
70
|
+
return self._x_enterprise_project_id
|
|
71
|
+
|
|
72
|
+
@x_enterprise_project_id.setter
|
|
73
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
74
|
+
r"""Sets the x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
75
|
+
|
|
76
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
77
|
+
|
|
78
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateTimerRuleRequest.
|
|
79
|
+
:type x_enterprise_project_id: str
|
|
80
|
+
"""
|
|
81
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def x_environment_id(self):
|
|
85
|
+
r"""Gets the x_environment_id of this UpdateTimerRuleRequest.
|
|
86
|
+
|
|
87
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
88
|
+
|
|
89
|
+
:return: The x_environment_id of this UpdateTimerRuleRequest.
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._x_environment_id
|
|
93
|
+
|
|
94
|
+
@x_environment_id.setter
|
|
95
|
+
def x_environment_id(self, x_environment_id):
|
|
96
|
+
r"""Sets the x_environment_id of this UpdateTimerRuleRequest.
|
|
97
|
+
|
|
98
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
99
|
+
|
|
100
|
+
:param x_environment_id: The x_environment_id of this UpdateTimerRuleRequest.
|
|
101
|
+
:type x_environment_id: str
|
|
102
|
+
"""
|
|
103
|
+
self._x_environment_id = x_environment_id
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def timer_rule_id(self):
|
|
107
|
+
r"""Gets the timer_rule_id of this UpdateTimerRuleRequest.
|
|
108
|
+
|
|
109
|
+
定时启停规则ID。
|
|
110
|
+
|
|
111
|
+
:return: The timer_rule_id of this UpdateTimerRuleRequest.
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._timer_rule_id
|
|
115
|
+
|
|
116
|
+
@timer_rule_id.setter
|
|
117
|
+
def timer_rule_id(self, timer_rule_id):
|
|
118
|
+
r"""Sets the timer_rule_id of this UpdateTimerRuleRequest.
|
|
119
|
+
|
|
120
|
+
定时启停规则ID。
|
|
121
|
+
|
|
122
|
+
:param timer_rule_id: The timer_rule_id of this UpdateTimerRuleRequest.
|
|
123
|
+
:type timer_rule_id: str
|
|
124
|
+
"""
|
|
125
|
+
self._timer_rule_id = timer_rule_id
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def body(self):
|
|
129
|
+
r"""Gets the body of this UpdateTimerRuleRequest.
|
|
130
|
+
|
|
131
|
+
:return: The body of this UpdateTimerRuleRequest.
|
|
132
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleReq`
|
|
133
|
+
"""
|
|
134
|
+
return self._body
|
|
135
|
+
|
|
136
|
+
@body.setter
|
|
137
|
+
def body(self, body):
|
|
138
|
+
r"""Sets the body of this UpdateTimerRuleRequest.
|
|
139
|
+
|
|
140
|
+
:param body: The body of this UpdateTimerRuleRequest.
|
|
141
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleReq`
|
|
142
|
+
"""
|
|
143
|
+
self._body = body
|
|
144
|
+
|
|
145
|
+
def to_dict(self):
|
|
146
|
+
result = {}
|
|
147
|
+
|
|
148
|
+
for attr, _ in self.openapi_types.items():
|
|
149
|
+
value = getattr(self, attr)
|
|
150
|
+
if isinstance(value, list):
|
|
151
|
+
result[attr] = list(map(
|
|
152
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
153
|
+
value
|
|
154
|
+
))
|
|
155
|
+
elif hasattr(value, "to_dict"):
|
|
156
|
+
result[attr] = value.to_dict()
|
|
157
|
+
elif isinstance(value, dict):
|
|
158
|
+
result[attr] = dict(map(
|
|
159
|
+
lambda item: (item[0], item[1].to_dict())
|
|
160
|
+
if hasattr(item[1], "to_dict") else item,
|
|
161
|
+
value.items()
|
|
162
|
+
))
|
|
163
|
+
else:
|
|
164
|
+
if attr in self.sensitive_list:
|
|
165
|
+
result[attr] = "****"
|
|
166
|
+
else:
|
|
167
|
+
result[attr] = value
|
|
168
|
+
|
|
169
|
+
return result
|
|
170
|
+
|
|
171
|
+
def to_str(self):
|
|
172
|
+
"""Returns the string representation of the model"""
|
|
173
|
+
import simplejson as json
|
|
174
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
175
|
+
|
|
176
|
+
def __repr__(self):
|
|
177
|
+
"""For `print`"""
|
|
178
|
+
return self.to_str()
|
|
179
|
+
|
|
180
|
+
def __eq__(self, other):
|
|
181
|
+
"""Returns true if both objects are equal"""
|
|
182
|
+
if not isinstance(other, UpdateTimerRuleRequest):
|
|
183
|
+
return False
|
|
184
|
+
|
|
185
|
+
return self.__dict__ == other.__dict__
|
|
186
|
+
|
|
187
|
+
def __ne__(self, other):
|
|
188
|
+
"""Returns true if both objects are not equal"""
|
|
189
|
+
return not self == other
|
|
@@ -0,0 +1,81 @@
|
|
|
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 UpdateTimerRuleResponse(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
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
def __init__(self):
|
|
25
|
+
r"""UpdateTimerRuleResponse
|
|
26
|
+
|
|
27
|
+
The model defined in huaweicloud sdk
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.discriminator = None
|
|
33
|
+
|
|
34
|
+
def to_dict(self):
|
|
35
|
+
import warnings
|
|
36
|
+
warnings.warn("UpdateTimerRuleResponse.to_dict() is deprecated and no longer maintained, "
|
|
37
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in self.openapi_types.items():
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
67
|
+
|
|
68
|
+
def __repr__(self):
|
|
69
|
+
"""For `print`"""
|
|
70
|
+
return self.to_str()
|
|
71
|
+
|
|
72
|
+
def __eq__(self, other):
|
|
73
|
+
"""Returns true if both objects are equal"""
|
|
74
|
+
if not isinstance(other, UpdateTimerRuleResponse):
|
|
75
|
+
return False
|
|
76
|
+
|
|
77
|
+
return self.__dict__ == other.__dict__
|
|
78
|
+
|
|
79
|
+
def __ne__(self, other):
|
|
80
|
+
"""Returns true if both objects are not equal"""
|
|
81
|
+
return not self == other
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Volume:
|
|
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
|
+
'id': 'str',
|
|
19
|
+
'resource_info': 'dict(str, str)',
|
|
20
|
+
'resource_name': 'str',
|
|
21
|
+
'resource_type': 'str',
|
|
22
|
+
'resource_sub_type': 'str',
|
|
23
|
+
'access': 'str',
|
|
24
|
+
'time': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'id': 'id',
|
|
29
|
+
'resource_info': 'resource_info',
|
|
30
|
+
'resource_name': 'resource_name',
|
|
31
|
+
'resource_type': 'resource_type',
|
|
32
|
+
'resource_sub_type': 'resource_sub_type',
|
|
33
|
+
'access': 'access',
|
|
34
|
+
'time': 'time'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, id=None, resource_info=None, resource_name=None, resource_type=None, resource_sub_type=None, access=None, time=None):
|
|
38
|
+
r"""Volume
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param id: 云存储ID。
|
|
43
|
+
:type id: str
|
|
44
|
+
:param resource_info: 存储资源详情。
|
|
45
|
+
:type resource_info: dict(str, str)
|
|
46
|
+
:param resource_name: 云存储名称。
|
|
47
|
+
:type resource_name: str
|
|
48
|
+
:param resource_type: 资源类型,当前只支持“obs”和“sfs”。
|
|
49
|
+
:type resource_type: str
|
|
50
|
+
:param resource_sub_type: 存储资源子类型。
|
|
51
|
+
:type resource_sub_type: str
|
|
52
|
+
:param access: 用户access key。
|
|
53
|
+
:type access: str
|
|
54
|
+
:param time: 创建时间。
|
|
55
|
+
:type time: str
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
self._id = None
|
|
61
|
+
self._resource_info = None
|
|
62
|
+
self._resource_name = None
|
|
63
|
+
self._resource_type = None
|
|
64
|
+
self._resource_sub_type = None
|
|
65
|
+
self._access = None
|
|
66
|
+
self._time = None
|
|
67
|
+
self.discriminator = None
|
|
68
|
+
|
|
69
|
+
if id is not None:
|
|
70
|
+
self.id = id
|
|
71
|
+
if resource_info is not None:
|
|
72
|
+
self.resource_info = resource_info
|
|
73
|
+
if resource_name is not None:
|
|
74
|
+
self.resource_name = resource_name
|
|
75
|
+
if resource_type is not None:
|
|
76
|
+
self.resource_type = resource_type
|
|
77
|
+
if resource_sub_type is not None:
|
|
78
|
+
self.resource_sub_type = resource_sub_type
|
|
79
|
+
if access is not None:
|
|
80
|
+
self.access = access
|
|
81
|
+
if time is not None:
|
|
82
|
+
self.time = time
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def id(self):
|
|
86
|
+
r"""Gets the id of this Volume.
|
|
87
|
+
|
|
88
|
+
云存储ID。
|
|
89
|
+
|
|
90
|
+
:return: The id of this Volume.
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._id
|
|
94
|
+
|
|
95
|
+
@id.setter
|
|
96
|
+
def id(self, id):
|
|
97
|
+
r"""Sets the id of this Volume.
|
|
98
|
+
|
|
99
|
+
云存储ID。
|
|
100
|
+
|
|
101
|
+
:param id: The id of this Volume.
|
|
102
|
+
:type id: str
|
|
103
|
+
"""
|
|
104
|
+
self._id = id
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def resource_info(self):
|
|
108
|
+
r"""Gets the resource_info of this Volume.
|
|
109
|
+
|
|
110
|
+
存储资源详情。
|
|
111
|
+
|
|
112
|
+
:return: The resource_info of this Volume.
|
|
113
|
+
:rtype: dict(str, str)
|
|
114
|
+
"""
|
|
115
|
+
return self._resource_info
|
|
116
|
+
|
|
117
|
+
@resource_info.setter
|
|
118
|
+
def resource_info(self, resource_info):
|
|
119
|
+
r"""Sets the resource_info of this Volume.
|
|
120
|
+
|
|
121
|
+
存储资源详情。
|
|
122
|
+
|
|
123
|
+
:param resource_info: The resource_info of this Volume.
|
|
124
|
+
:type resource_info: dict(str, str)
|
|
125
|
+
"""
|
|
126
|
+
self._resource_info = resource_info
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def resource_name(self):
|
|
130
|
+
r"""Gets the resource_name of this Volume.
|
|
131
|
+
|
|
132
|
+
云存储名称。
|
|
133
|
+
|
|
134
|
+
:return: The resource_name of this Volume.
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._resource_name
|
|
138
|
+
|
|
139
|
+
@resource_name.setter
|
|
140
|
+
def resource_name(self, resource_name):
|
|
141
|
+
r"""Sets the resource_name of this Volume.
|
|
142
|
+
|
|
143
|
+
云存储名称。
|
|
144
|
+
|
|
145
|
+
:param resource_name: The resource_name of this Volume.
|
|
146
|
+
:type resource_name: str
|
|
147
|
+
"""
|
|
148
|
+
self._resource_name = resource_name
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def resource_type(self):
|
|
152
|
+
r"""Gets the resource_type of this Volume.
|
|
153
|
+
|
|
154
|
+
资源类型,当前只支持“obs”和“sfs”。
|
|
155
|
+
|
|
156
|
+
:return: The resource_type of this Volume.
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._resource_type
|
|
160
|
+
|
|
161
|
+
@resource_type.setter
|
|
162
|
+
def resource_type(self, resource_type):
|
|
163
|
+
r"""Sets the resource_type of this Volume.
|
|
164
|
+
|
|
165
|
+
资源类型,当前只支持“obs”和“sfs”。
|
|
166
|
+
|
|
167
|
+
:param resource_type: The resource_type of this Volume.
|
|
168
|
+
:type resource_type: str
|
|
169
|
+
"""
|
|
170
|
+
self._resource_type = resource_type
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def resource_sub_type(self):
|
|
174
|
+
r"""Gets the resource_sub_type of this Volume.
|
|
175
|
+
|
|
176
|
+
存储资源子类型。
|
|
177
|
+
|
|
178
|
+
:return: The resource_sub_type of this Volume.
|
|
179
|
+
:rtype: str
|
|
180
|
+
"""
|
|
181
|
+
return self._resource_sub_type
|
|
182
|
+
|
|
183
|
+
@resource_sub_type.setter
|
|
184
|
+
def resource_sub_type(self, resource_sub_type):
|
|
185
|
+
r"""Sets the resource_sub_type of this Volume.
|
|
186
|
+
|
|
187
|
+
存储资源子类型。
|
|
188
|
+
|
|
189
|
+
:param resource_sub_type: The resource_sub_type of this Volume.
|
|
190
|
+
:type resource_sub_type: str
|
|
191
|
+
"""
|
|
192
|
+
self._resource_sub_type = resource_sub_type
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def access(self):
|
|
196
|
+
r"""Gets the access of this Volume.
|
|
197
|
+
|
|
198
|
+
用户access key。
|
|
199
|
+
|
|
200
|
+
:return: The access of this Volume.
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._access
|
|
204
|
+
|
|
205
|
+
@access.setter
|
|
206
|
+
def access(self, access):
|
|
207
|
+
r"""Sets the access of this Volume.
|
|
208
|
+
|
|
209
|
+
用户access key。
|
|
210
|
+
|
|
211
|
+
:param access: The access of this Volume.
|
|
212
|
+
:type access: str
|
|
213
|
+
"""
|
|
214
|
+
self._access = access
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def time(self):
|
|
218
|
+
r"""Gets the time of this Volume.
|
|
219
|
+
|
|
220
|
+
创建时间。
|
|
221
|
+
|
|
222
|
+
:return: The time of this Volume.
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._time
|
|
226
|
+
|
|
227
|
+
@time.setter
|
|
228
|
+
def time(self, time):
|
|
229
|
+
r"""Sets the time of this Volume.
|
|
230
|
+
|
|
231
|
+
创建时间。
|
|
232
|
+
|
|
233
|
+
:param time: The time of this Volume.
|
|
234
|
+
:type time: str
|
|
235
|
+
"""
|
|
236
|
+
self._time = time
|
|
237
|
+
|
|
238
|
+
def to_dict(self):
|
|
239
|
+
result = {}
|
|
240
|
+
|
|
241
|
+
for attr, _ in self.openapi_types.items():
|
|
242
|
+
value = getattr(self, attr)
|
|
243
|
+
if isinstance(value, list):
|
|
244
|
+
result[attr] = list(map(
|
|
245
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
246
|
+
value
|
|
247
|
+
))
|
|
248
|
+
elif hasattr(value, "to_dict"):
|
|
249
|
+
result[attr] = value.to_dict()
|
|
250
|
+
elif isinstance(value, dict):
|
|
251
|
+
result[attr] = dict(map(
|
|
252
|
+
lambda item: (item[0], item[1].to_dict())
|
|
253
|
+
if hasattr(item[1], "to_dict") else item,
|
|
254
|
+
value.items()
|
|
255
|
+
))
|
|
256
|
+
else:
|
|
257
|
+
if attr in self.sensitive_list:
|
|
258
|
+
result[attr] = "****"
|
|
259
|
+
else:
|
|
260
|
+
result[attr] = value
|
|
261
|
+
|
|
262
|
+
return result
|
|
263
|
+
|
|
264
|
+
def to_str(self):
|
|
265
|
+
"""Returns the string representation of the model"""
|
|
266
|
+
import simplejson as json
|
|
267
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
268
|
+
|
|
269
|
+
def __repr__(self):
|
|
270
|
+
"""For `print`"""
|
|
271
|
+
return self.to_str()
|
|
272
|
+
|
|
273
|
+
def __eq__(self, other):
|
|
274
|
+
"""Returns true if both objects are equal"""
|
|
275
|
+
if not isinstance(other, Volume):
|
|
276
|
+
return False
|
|
277
|
+
|
|
278
|
+
return self.__dict__ == other.__dict__
|
|
279
|
+
|
|
280
|
+
def __ne__(self, other):
|
|
281
|
+
"""Returns true if both objects are not equal"""
|
|
282
|
+
return not self == other
|