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,132 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ShowNoticeRuleRequest:
|
|
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
|
+
'rule_id': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
24
|
+
'rule_id': 'rule_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, x_enterprise_project_id=None, rule_id=None):
|
|
28
|
+
r"""ShowNoticeRuleRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
33
|
+
:type x_enterprise_project_id: str
|
|
34
|
+
:param rule_id:
|
|
35
|
+
:type rule_id: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._x_enterprise_project_id = None
|
|
41
|
+
self._rule_id = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
if x_enterprise_project_id is not None:
|
|
45
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
46
|
+
self.rule_id = rule_id
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def x_enterprise_project_id(self):
|
|
50
|
+
r"""Gets the x_enterprise_project_id of this ShowNoticeRuleRequest.
|
|
51
|
+
|
|
52
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
53
|
+
|
|
54
|
+
:return: The x_enterprise_project_id of this ShowNoticeRuleRequest.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._x_enterprise_project_id
|
|
58
|
+
|
|
59
|
+
@x_enterprise_project_id.setter
|
|
60
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
61
|
+
r"""Sets the x_enterprise_project_id of this ShowNoticeRuleRequest.
|
|
62
|
+
|
|
63
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
64
|
+
|
|
65
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this ShowNoticeRuleRequest.
|
|
66
|
+
:type x_enterprise_project_id: str
|
|
67
|
+
"""
|
|
68
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def rule_id(self):
|
|
72
|
+
r"""Gets the rule_id of this ShowNoticeRuleRequest.
|
|
73
|
+
|
|
74
|
+
:return: The rule_id of this ShowNoticeRuleRequest.
|
|
75
|
+
:rtype: str
|
|
76
|
+
"""
|
|
77
|
+
return self._rule_id
|
|
78
|
+
|
|
79
|
+
@rule_id.setter
|
|
80
|
+
def rule_id(self, rule_id):
|
|
81
|
+
r"""Sets the rule_id of this ShowNoticeRuleRequest.
|
|
82
|
+
|
|
83
|
+
:param rule_id: The rule_id of this ShowNoticeRuleRequest.
|
|
84
|
+
:type rule_id: str
|
|
85
|
+
"""
|
|
86
|
+
self._rule_id = rule_id
|
|
87
|
+
|
|
88
|
+
def to_dict(self):
|
|
89
|
+
result = {}
|
|
90
|
+
|
|
91
|
+
for attr, _ in self.openapi_types.items():
|
|
92
|
+
value = getattr(self, attr)
|
|
93
|
+
if isinstance(value, list):
|
|
94
|
+
result[attr] = list(map(
|
|
95
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
96
|
+
value
|
|
97
|
+
))
|
|
98
|
+
elif hasattr(value, "to_dict"):
|
|
99
|
+
result[attr] = value.to_dict()
|
|
100
|
+
elif isinstance(value, dict):
|
|
101
|
+
result[attr] = dict(map(
|
|
102
|
+
lambda item: (item[0], item[1].to_dict())
|
|
103
|
+
if hasattr(item[1], "to_dict") else item,
|
|
104
|
+
value.items()
|
|
105
|
+
))
|
|
106
|
+
else:
|
|
107
|
+
if attr in self.sensitive_list:
|
|
108
|
+
result[attr] = "****"
|
|
109
|
+
else:
|
|
110
|
+
result[attr] = value
|
|
111
|
+
|
|
112
|
+
return result
|
|
113
|
+
|
|
114
|
+
def to_str(self):
|
|
115
|
+
"""Returns the string representation of the model"""
|
|
116
|
+
import simplejson as json
|
|
117
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
118
|
+
|
|
119
|
+
def __repr__(self):
|
|
120
|
+
"""For `print`"""
|
|
121
|
+
return self.to_str()
|
|
122
|
+
|
|
123
|
+
def __eq__(self, other):
|
|
124
|
+
"""Returns true if both objects are equal"""
|
|
125
|
+
if not isinstance(other, ShowNoticeRuleRequest):
|
|
126
|
+
return False
|
|
127
|
+
|
|
128
|
+
return self.__dict__ == other.__dict__
|
|
129
|
+
|
|
130
|
+
def __ne__(self, other):
|
|
131
|
+
"""Returns true if both objects are not equal"""
|
|
132
|
+
return not self == other
|
|
@@ -0,0 +1,166 @@
|
|
|
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 ShowNoticeRuleResponse(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': 'str',
|
|
20
|
+
'kind': 'str',
|
|
21
|
+
'spec': 'CreateNoticeRuleRespItem'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'api_version': 'api_version',
|
|
26
|
+
'kind': 'kind',
|
|
27
|
+
'spec': 'spec'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_version=None, kind=None, spec=None):
|
|
31
|
+
r"""ShowNoticeRuleResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
36
|
+
:type api_version: str
|
|
37
|
+
:param kind: API类型,固定值“NoticeRule”,该值不可修改。
|
|
38
|
+
:type kind: str
|
|
39
|
+
:param spec:
|
|
40
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
super().__init__()
|
|
44
|
+
|
|
45
|
+
self._api_version = None
|
|
46
|
+
self._kind = None
|
|
47
|
+
self._spec = None
|
|
48
|
+
self.discriminator = None
|
|
49
|
+
|
|
50
|
+
if api_version is not None:
|
|
51
|
+
self.api_version = api_version
|
|
52
|
+
if kind is not None:
|
|
53
|
+
self.kind = kind
|
|
54
|
+
if spec is not None:
|
|
55
|
+
self.spec = spec
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def api_version(self):
|
|
59
|
+
r"""Gets the api_version of this ShowNoticeRuleResponse.
|
|
60
|
+
|
|
61
|
+
API版本,固定值“v1”,该值不可修改。
|
|
62
|
+
|
|
63
|
+
:return: The api_version of this ShowNoticeRuleResponse.
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._api_version
|
|
67
|
+
|
|
68
|
+
@api_version.setter
|
|
69
|
+
def api_version(self, api_version):
|
|
70
|
+
r"""Sets the api_version of this ShowNoticeRuleResponse.
|
|
71
|
+
|
|
72
|
+
API版本,固定值“v1”,该值不可修改。
|
|
73
|
+
|
|
74
|
+
:param api_version: The api_version of this ShowNoticeRuleResponse.
|
|
75
|
+
:type api_version: str
|
|
76
|
+
"""
|
|
77
|
+
self._api_version = api_version
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def kind(self):
|
|
81
|
+
r"""Gets the kind of this ShowNoticeRuleResponse.
|
|
82
|
+
|
|
83
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
84
|
+
|
|
85
|
+
:return: The kind of this ShowNoticeRuleResponse.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._kind
|
|
89
|
+
|
|
90
|
+
@kind.setter
|
|
91
|
+
def kind(self, kind):
|
|
92
|
+
r"""Sets the kind of this ShowNoticeRuleResponse.
|
|
93
|
+
|
|
94
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
95
|
+
|
|
96
|
+
:param kind: The kind of this ShowNoticeRuleResponse.
|
|
97
|
+
:type kind: str
|
|
98
|
+
"""
|
|
99
|
+
self._kind = kind
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def spec(self):
|
|
103
|
+
r"""Gets the spec of this ShowNoticeRuleResponse.
|
|
104
|
+
|
|
105
|
+
:return: The spec of this ShowNoticeRuleResponse.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`
|
|
107
|
+
"""
|
|
108
|
+
return self._spec
|
|
109
|
+
|
|
110
|
+
@spec.setter
|
|
111
|
+
def spec(self, spec):
|
|
112
|
+
r"""Sets the spec of this ShowNoticeRuleResponse.
|
|
113
|
+
|
|
114
|
+
:param spec: The spec of this ShowNoticeRuleResponse.
|
|
115
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRespItem`
|
|
116
|
+
"""
|
|
117
|
+
self._spec = spec
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
import warnings
|
|
121
|
+
warnings.warn("ShowNoticeRuleResponse.to_dict() is deprecated and no longer maintained, "
|
|
122
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in self.openapi_types.items():
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, ShowNoticeRuleResponse):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
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 Source:
|
|
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
|
+
'code': 'Repo',
|
|
19
|
+
'type': 'str',
|
|
20
|
+
'sub_type': 'str',
|
|
21
|
+
'url': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'code': 'code',
|
|
26
|
+
'type': 'type',
|
|
27
|
+
'sub_type': 'sub_type',
|
|
28
|
+
'url': 'url'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, code=None, type=None, sub_type=None, url=None):
|
|
32
|
+
r"""Source
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param code:
|
|
37
|
+
:type code: :class:`huaweicloudsdkcae.v1.Repo`
|
|
38
|
+
:param type: 源类型。
|
|
39
|
+
:type type: str
|
|
40
|
+
:param sub_type: 源子类型。 - 源类型为code时,子类型表示不同的代码仓库,如DevCloud(CodeArts)、GitLab、GitHub、Gitee、Bitbucket。 - 源类型为softwarePackage时,子类型表示不同的软件包仓库,如BinObs、BinDevCloud(CodeArts软件发布库)。
|
|
41
|
+
:type sub_type: str
|
|
42
|
+
:param url: url地址。 - 源类型为image时,url地址为镜像地址。 - 源类型为code时,url地址为git地址。 - 源类型为softwarePackage时,url地址为软件包地址。
|
|
43
|
+
:type url: str
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._code = None
|
|
49
|
+
self._type = None
|
|
50
|
+
self._sub_type = None
|
|
51
|
+
self._url = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if code is not None:
|
|
55
|
+
self.code = code
|
|
56
|
+
self.type = type
|
|
57
|
+
if sub_type is not None:
|
|
58
|
+
self.sub_type = sub_type
|
|
59
|
+
self.url = url
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def code(self):
|
|
63
|
+
r"""Gets the code of this Source.
|
|
64
|
+
|
|
65
|
+
:return: The code of this Source.
|
|
66
|
+
:rtype: :class:`huaweicloudsdkcae.v1.Repo`
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
r"""Sets the code of this Source.
|
|
73
|
+
|
|
74
|
+
:param code: The code of this Source.
|
|
75
|
+
:type code: :class:`huaweicloudsdkcae.v1.Repo`
|
|
76
|
+
"""
|
|
77
|
+
self._code = code
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def type(self):
|
|
81
|
+
r"""Gets the type of this Source.
|
|
82
|
+
|
|
83
|
+
源类型。
|
|
84
|
+
|
|
85
|
+
:return: The type of this Source.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._type
|
|
89
|
+
|
|
90
|
+
@type.setter
|
|
91
|
+
def type(self, type):
|
|
92
|
+
r"""Sets the type of this Source.
|
|
93
|
+
|
|
94
|
+
源类型。
|
|
95
|
+
|
|
96
|
+
:param type: The type of this Source.
|
|
97
|
+
:type type: str
|
|
98
|
+
"""
|
|
99
|
+
self._type = type
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def sub_type(self):
|
|
103
|
+
r"""Gets the sub_type of this Source.
|
|
104
|
+
|
|
105
|
+
源子类型。 - 源类型为code时,子类型表示不同的代码仓库,如DevCloud(CodeArts)、GitLab、GitHub、Gitee、Bitbucket。 - 源类型为softwarePackage时,子类型表示不同的软件包仓库,如BinObs、BinDevCloud(CodeArts软件发布库)。
|
|
106
|
+
|
|
107
|
+
:return: The sub_type of this Source.
|
|
108
|
+
:rtype: str
|
|
109
|
+
"""
|
|
110
|
+
return self._sub_type
|
|
111
|
+
|
|
112
|
+
@sub_type.setter
|
|
113
|
+
def sub_type(self, sub_type):
|
|
114
|
+
r"""Sets the sub_type of this Source.
|
|
115
|
+
|
|
116
|
+
源子类型。 - 源类型为code时,子类型表示不同的代码仓库,如DevCloud(CodeArts)、GitLab、GitHub、Gitee、Bitbucket。 - 源类型为softwarePackage时,子类型表示不同的软件包仓库,如BinObs、BinDevCloud(CodeArts软件发布库)。
|
|
117
|
+
|
|
118
|
+
:param sub_type: The sub_type of this Source.
|
|
119
|
+
:type sub_type: str
|
|
120
|
+
"""
|
|
121
|
+
self._sub_type = sub_type
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def url(self):
|
|
125
|
+
r"""Gets the url of this Source.
|
|
126
|
+
|
|
127
|
+
url地址。 - 源类型为image时,url地址为镜像地址。 - 源类型为code时,url地址为git地址。 - 源类型为softwarePackage时,url地址为软件包地址。
|
|
128
|
+
|
|
129
|
+
:return: The url of this Source.
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._url
|
|
133
|
+
|
|
134
|
+
@url.setter
|
|
135
|
+
def url(self, url):
|
|
136
|
+
r"""Sets the url of this Source.
|
|
137
|
+
|
|
138
|
+
url地址。 - 源类型为image时,url地址为镜像地址。 - 源类型为code时,url地址为git地址。 - 源类型为softwarePackage时,url地址为软件包地址。
|
|
139
|
+
|
|
140
|
+
:param url: The url of this Source.
|
|
141
|
+
:type url: str
|
|
142
|
+
"""
|
|
143
|
+
self._url = url
|
|
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, Source):
|
|
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,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SpecCert:
|
|
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
|
+
'crt': 'str',
|
|
19
|
+
'key': 'str',
|
|
20
|
+
'created_at': 'datetime'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'crt': 'crt',
|
|
25
|
+
'key': 'key',
|
|
26
|
+
'created_at': 'created_at'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, crt=None, key=None, created_at=None):
|
|
30
|
+
r"""SpecCert
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param crt: 证书内容。
|
|
35
|
+
:type crt: str
|
|
36
|
+
:param key: 私钥内容。
|
|
37
|
+
:type key: str
|
|
38
|
+
:param created_at: 创建时间。
|
|
39
|
+
:type created_at: datetime
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._crt = None
|
|
45
|
+
self._key = None
|
|
46
|
+
self._created_at = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if crt is not None:
|
|
50
|
+
self.crt = crt
|
|
51
|
+
if key is not None:
|
|
52
|
+
self.key = key
|
|
53
|
+
if created_at is not None:
|
|
54
|
+
self.created_at = created_at
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def crt(self):
|
|
58
|
+
r"""Gets the crt of this SpecCert.
|
|
59
|
+
|
|
60
|
+
证书内容。
|
|
61
|
+
|
|
62
|
+
:return: The crt of this SpecCert.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._crt
|
|
66
|
+
|
|
67
|
+
@crt.setter
|
|
68
|
+
def crt(self, crt):
|
|
69
|
+
r"""Sets the crt of this SpecCert.
|
|
70
|
+
|
|
71
|
+
证书内容。
|
|
72
|
+
|
|
73
|
+
:param crt: The crt of this SpecCert.
|
|
74
|
+
:type crt: str
|
|
75
|
+
"""
|
|
76
|
+
self._crt = crt
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def key(self):
|
|
80
|
+
r"""Gets the key of this SpecCert.
|
|
81
|
+
|
|
82
|
+
私钥内容。
|
|
83
|
+
|
|
84
|
+
:return: The key of this SpecCert.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._key
|
|
88
|
+
|
|
89
|
+
@key.setter
|
|
90
|
+
def key(self, key):
|
|
91
|
+
r"""Sets the key of this SpecCert.
|
|
92
|
+
|
|
93
|
+
私钥内容。
|
|
94
|
+
|
|
95
|
+
:param key: The key of this SpecCert.
|
|
96
|
+
:type key: str
|
|
97
|
+
"""
|
|
98
|
+
self._key = key
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def created_at(self):
|
|
102
|
+
r"""Gets the created_at of this SpecCert.
|
|
103
|
+
|
|
104
|
+
创建时间。
|
|
105
|
+
|
|
106
|
+
:return: The created_at of this SpecCert.
|
|
107
|
+
:rtype: datetime
|
|
108
|
+
"""
|
|
109
|
+
return self._created_at
|
|
110
|
+
|
|
111
|
+
@created_at.setter
|
|
112
|
+
def created_at(self, created_at):
|
|
113
|
+
r"""Sets the created_at of this SpecCert.
|
|
114
|
+
|
|
115
|
+
创建时间。
|
|
116
|
+
|
|
117
|
+
:param created_at: The created_at of this SpecCert.
|
|
118
|
+
:type created_at: datetime
|
|
119
|
+
"""
|
|
120
|
+
self._created_at = created_at
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in self.openapi_types.items():
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, SpecCert):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|