huaweicloudsdkcae 3.1.47__py2.py3-none-any.whl → 3.1.49__py2.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.
Potentially problematic release.
This version of huaweicloudsdkcae might be problematic. Click here for more details.
- huaweicloudsdkcae/v1/__init__.py +57 -13
- huaweicloudsdkcae/v1/cae_async_client.py +1049 -311
- huaweicloudsdkcae/v1/cae_client.py +1037 -311
- huaweicloudsdkcae/v1/model/__init__.py +56 -11
- huaweicloudsdkcae/v1/model/access.py +6 -6
- huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
- huaweicloudsdkcae/v1/model/action_on_component_spec.py +7 -7
- huaweicloudsdkcae/v1/model/agency.py +7 -8
- huaweicloudsdkcae/v1/model/agency_item.py +3 -3
- huaweicloudsdkcae/v1/model/agency_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/{log_strategy.py → app_info.py} +42 -42
- huaweicloudsdkcae/v1/model/application_item.py +96 -9
- huaweicloudsdkcae/v1/model/application_metadata.py +9 -9
- huaweicloudsdkcae/v1/model/archive.py +3 -3
- huaweicloudsdkcae/v1/model/build.py +5 -1
- huaweicloudsdkcae/v1/model/cert_item.py +136 -0
- huaweicloudsdkcae/v1/model/cert_req.py +190 -0
- huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
- huaweicloudsdkcae/v1/model/component_info.py +144 -0
- huaweicloudsdkcae/v1/model/component_item.py +62 -33
- huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
- huaweicloudsdkcae/v1/model/component_snapshot_item.py +70 -74
- huaweicloudsdkcae/v1/model/component_spec.py +126 -97
- huaweicloudsdkcae/v1/model/configuration.py +9 -9
- huaweicloudsdkcae/v1/model/configuration_item.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_request.py +32 -32
- huaweicloudsdkcae/v1/model/create_application_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +6 -6
- huaweicloudsdkcae/v1/model/create_application_response.py +6 -6
- huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_certificate_response.py +174 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request.py +53 -53
- huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_request.py +40 -40
- huaweicloudsdkcae/v1/model/create_component_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_request_body_metadata.py +4 -5
- huaweicloudsdkcae/v1/model/create_component_request_body_spec.py +6 -6
- huaweicloudsdkcae/v1/model/create_component_response.py +10 -10
- huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
- huaweicloudsdkcae/v1/model/create_domain_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_domain_response.py +174 -0
- huaweicloudsdkcae/v1/model/create_environment_request.py +3 -3
- huaweicloudsdkcae/v1/model/create_environment_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +6 -34
- huaweicloudsdkcae/v1/model/create_environment_response.py +20 -74
- huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
- huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
- huaweicloudsdkcae/v1/model/create_spec_cert.py +170 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_req.py +169 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_volume_req.py +6 -6
- huaweicloudsdkcae/v1/model/create_volume_request.py +32 -32
- huaweicloudsdkcae/v1/model/delete_application_request.py +37 -37
- huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +53 -53
- huaweicloudsdkcae/v1/model/delete_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_environment_request.py +6 -6
- huaweicloudsdkcae/v1/model/delete_environment_response.py +3 -3
- huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_volume_request.py +37 -37
- huaweicloudsdkcae/v1/model/delete_volume_response.py +9 -9
- huaweicloudsdkcae/v1/model/domain_item.py +111 -0
- huaweicloudsdkcae/v1/model/environment_item.py +13 -42
- huaweicloudsdkcae/v1/model/event_item.py +36 -7
- huaweicloudsdkcae/v1/model/execute_action_request.py +53 -53
- huaweicloudsdkcae/v1/model/execute_action_request_body.py +6 -6
- huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/execute_action_response.py +3 -3
- huaweicloudsdkcae/v1/model/execution_details.py +144 -0
- huaweicloudsdkcae/v1/model/instance.py +3 -3
- huaweicloudsdkcae/v1/model/job_spec.py +36 -7
- huaweicloudsdkcae/v1/model/{show_agency_request.py → list_agencies_request.py} +3 -3
- huaweicloudsdkcae/v1/model/list_agencies_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_applications_request.py +34 -34
- huaweicloudsdkcae/v1/model/list_applications_response.py +6 -6
- huaweicloudsdkcae/v1/model/{list_events_request.py → list_certificates_request.py} +29 -85
- huaweicloudsdkcae/v1/model/list_certificates_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_configurations_response.py → list_component_configurations_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_events_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_events_response.py → list_component_events_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
- huaweicloudsdkcae/v1/model/{list_instances_response.py → list_component_instances_response.py} +22 -22
- huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +53 -53
- huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +6 -6
- huaweicloudsdkcae/v1/model/list_components_request.py +52 -52
- huaweicloudsdkcae/v1/model/list_components_response.py +6 -6
- huaweicloudsdkcae/v1/model/{list_configurations_request.py → list_domains_request.py} +29 -85
- huaweicloudsdkcae/v1/model/list_domains_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_environments_request.py +3 -3
- huaweicloudsdkcae/v1/model/list_environments_response.py +9 -9
- huaweicloudsdkcae/v1/model/{list_instances_request.py → list_timer_rules_request.py} +29 -85
- huaweicloudsdkcae/v1/model/{show_agency_response.py → list_timer_rules_response.py} +27 -31
- huaweicloudsdkcae/v1/model/list_volumes_request.py +35 -35
- huaweicloudsdkcae/v1/model/list_volumes_response.py +9 -9
- huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
- huaweicloudsdkcae/v1/model/meta_domain.py +231 -0
- huaweicloudsdkcae/v1/model/metadata_response.py +46 -133
- huaweicloudsdkcae/v1/model/mount_component.py +9 -9
- huaweicloudsdkcae/v1/model/repo.py +6 -6
- huaweicloudsdkcae/v1/model/retry_job_request.py +63 -6
- huaweicloudsdkcae/v1/model/show_application_request.py +37 -37
- huaweicloudsdkcae/v1/model/show_application_response.py +6 -6
- huaweicloudsdkcae/v1/model/show_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/show_component_response.py +6 -6
- huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
- huaweicloudsdkcae/v1/model/show_execution_result_response.py +170 -0
- huaweicloudsdkcae/v1/model/show_job_request.py +37 -9
- huaweicloudsdkcae/v1/model/show_job_response.py +6 -6
- huaweicloudsdkcae/v1/model/source.py +9 -9
- huaweicloudsdkcae/v1/model/spec_cert.py +202 -0
- huaweicloudsdkcae/v1/model/task.py +68 -68
- huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
- huaweicloudsdkcae/v1/model/update_cert_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_component_request.py +53 -53
- huaweicloudsdkcae/v1/model/update_component_request_body.py +10 -10
- huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
- huaweicloudsdkcae/v1/model/update_component_request_spec.py +52 -19
- huaweicloudsdkcae/v1/model/update_spec_cert.py +170 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/volume.py +15 -15
- huaweicloudsdkcae/v1/model/volume_spec.py +3 -3
- huaweicloudsdkcae/v1/region/cae_region.py +3 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/METADATA +2 -2
- huaweicloudsdkcae-3.1.49.dist-info/RECORD +152 -0
- huaweicloudsdkcae/v1/model/environment_metadata.py +0 -318
- huaweicloudsdkcae/v1/model/metadata.py +0 -317
- huaweicloudsdkcae-3.1.47.dist-info/RECORD +0 -107
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.47.dist-info → huaweicloudsdkcae-3.1.49.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateCertificateRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'certificate_id': 'str',
|
|
21
|
+
'x_enterprise_project_id': 'str',
|
|
22
|
+
'x_environment_id': 'str',
|
|
23
|
+
'body': 'UpdateCertReq'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'certificate_id': 'certificate_id',
|
|
28
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
29
|
+
'x_environment_id': 'X-Environment-ID',
|
|
30
|
+
'body': 'body'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, certificate_id=None, x_enterprise_project_id=None, x_environment_id=None, body=None):
|
|
34
|
+
"""UpdateCertificateRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param certificate_id: 证书ID。
|
|
39
|
+
:type certificate_id: str
|
|
40
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
41
|
+
:type x_enterprise_project_id: str
|
|
42
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
43
|
+
:type x_environment_id: str
|
|
44
|
+
:param body: Body of the UpdateCertificateRequest
|
|
45
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateCertReq`
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._certificate_id = None
|
|
51
|
+
self._x_enterprise_project_id = None
|
|
52
|
+
self._x_environment_id = None
|
|
53
|
+
self._body = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.certificate_id = certificate_id
|
|
57
|
+
if x_enterprise_project_id is not None:
|
|
58
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
59
|
+
self.x_environment_id = x_environment_id
|
|
60
|
+
if body is not None:
|
|
61
|
+
self.body = body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def certificate_id(self):
|
|
65
|
+
"""Gets the certificate_id of this UpdateCertificateRequest.
|
|
66
|
+
|
|
67
|
+
证书ID。
|
|
68
|
+
|
|
69
|
+
:return: The certificate_id of this UpdateCertificateRequest.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._certificate_id
|
|
73
|
+
|
|
74
|
+
@certificate_id.setter
|
|
75
|
+
def certificate_id(self, certificate_id):
|
|
76
|
+
"""Sets the certificate_id of this UpdateCertificateRequest.
|
|
77
|
+
|
|
78
|
+
证书ID。
|
|
79
|
+
|
|
80
|
+
:param certificate_id: The certificate_id of this UpdateCertificateRequest.
|
|
81
|
+
:type certificate_id: str
|
|
82
|
+
"""
|
|
83
|
+
self._certificate_id = certificate_id
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def x_enterprise_project_id(self):
|
|
87
|
+
"""Gets the x_enterprise_project_id of this UpdateCertificateRequest.
|
|
88
|
+
|
|
89
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
90
|
+
|
|
91
|
+
:return: The x_enterprise_project_id of this UpdateCertificateRequest.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._x_enterprise_project_id
|
|
95
|
+
|
|
96
|
+
@x_enterprise_project_id.setter
|
|
97
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
98
|
+
"""Sets the x_enterprise_project_id of this UpdateCertificateRequest.
|
|
99
|
+
|
|
100
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
101
|
+
|
|
102
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateCertificateRequest.
|
|
103
|
+
:type x_enterprise_project_id: str
|
|
104
|
+
"""
|
|
105
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def x_environment_id(self):
|
|
109
|
+
"""Gets the x_environment_id of this UpdateCertificateRequest.
|
|
110
|
+
|
|
111
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
112
|
+
|
|
113
|
+
:return: The x_environment_id of this UpdateCertificateRequest.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._x_environment_id
|
|
117
|
+
|
|
118
|
+
@x_environment_id.setter
|
|
119
|
+
def x_environment_id(self, x_environment_id):
|
|
120
|
+
"""Sets the x_environment_id of this UpdateCertificateRequest.
|
|
121
|
+
|
|
122
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
123
|
+
|
|
124
|
+
:param x_environment_id: The x_environment_id of this UpdateCertificateRequest.
|
|
125
|
+
:type x_environment_id: str
|
|
126
|
+
"""
|
|
127
|
+
self._x_environment_id = x_environment_id
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def body(self):
|
|
131
|
+
"""Gets the body of this UpdateCertificateRequest.
|
|
132
|
+
|
|
133
|
+
:return: The body of this UpdateCertificateRequest.
|
|
134
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateCertReq`
|
|
135
|
+
"""
|
|
136
|
+
return self._body
|
|
137
|
+
|
|
138
|
+
@body.setter
|
|
139
|
+
def body(self, body):
|
|
140
|
+
"""Sets the body of this UpdateCertificateRequest.
|
|
141
|
+
|
|
142
|
+
:param body: The body of this UpdateCertificateRequest.
|
|
143
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateCertReq`
|
|
144
|
+
"""
|
|
145
|
+
self._body = body
|
|
146
|
+
|
|
147
|
+
def to_dict(self):
|
|
148
|
+
"""Returns the model properties as a dict"""
|
|
149
|
+
result = {}
|
|
150
|
+
|
|
151
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
152
|
+
value = getattr(self, attr)
|
|
153
|
+
if isinstance(value, list):
|
|
154
|
+
result[attr] = list(map(
|
|
155
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
156
|
+
value
|
|
157
|
+
))
|
|
158
|
+
elif hasattr(value, "to_dict"):
|
|
159
|
+
result[attr] = value.to_dict()
|
|
160
|
+
elif isinstance(value, dict):
|
|
161
|
+
result[attr] = dict(map(
|
|
162
|
+
lambda item: (item[0], item[1].to_dict())
|
|
163
|
+
if hasattr(item[1], "to_dict") else item,
|
|
164
|
+
value.items()
|
|
165
|
+
))
|
|
166
|
+
else:
|
|
167
|
+
if attr in self.sensitive_list:
|
|
168
|
+
result[attr] = "****"
|
|
169
|
+
else:
|
|
170
|
+
result[attr] = value
|
|
171
|
+
|
|
172
|
+
return result
|
|
173
|
+
|
|
174
|
+
def to_str(self):
|
|
175
|
+
"""Returns the string representation of the model"""
|
|
176
|
+
import simplejson as json
|
|
177
|
+
if six.PY2:
|
|
178
|
+
import sys
|
|
179
|
+
reload(sys)
|
|
180
|
+
sys.setdefaultencoding("utf-8")
|
|
181
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
182
|
+
|
|
183
|
+
def __repr__(self):
|
|
184
|
+
"""For `print`"""
|
|
185
|
+
return self.to_str()
|
|
186
|
+
|
|
187
|
+
def __eq__(self, other):
|
|
188
|
+
"""Returns true if both objects are equal"""
|
|
189
|
+
if not isinstance(other, UpdateCertificateRequest):
|
|
190
|
+
return False
|
|
191
|
+
|
|
192
|
+
return self.__dict__ == other.__dict__
|
|
193
|
+
|
|
194
|
+
def __ne__(self, other):
|
|
195
|
+
"""Returns true if both objects are not equal"""
|
|
196
|
+
return not self == other
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class UpdateCertificateResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
"""UpdateCertificateResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(UpdateCertificateResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
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
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, UpdateCertificateResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|
|
@@ -17,104 +17,104 @@ class UpdateComponentRequest:
|
|
|
17
17
|
sensitive_list = []
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
|
+
'application_id': 'str',
|
|
20
21
|
'component_id': 'str',
|
|
21
|
-
'x_environment_id': 'str',
|
|
22
22
|
'x_enterprise_project_id': 'str',
|
|
23
|
-
'
|
|
23
|
+
'x_environment_id': 'str',
|
|
24
24
|
'body': 'UpdateComponentRequestBody'
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
attribute_map = {
|
|
28
|
+
'application_id': 'application_id',
|
|
28
29
|
'component_id': 'component_id',
|
|
29
|
-
'x_environment_id': 'X-Environment-ID',
|
|
30
30
|
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
31
|
-
'
|
|
31
|
+
'x_environment_id': 'X-Environment-ID',
|
|
32
32
|
'body': 'body'
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
def __init__(self,
|
|
35
|
+
def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None, body=None):
|
|
36
36
|
"""UpdateComponentRequest
|
|
37
37
|
|
|
38
38
|
The model defined in huaweicloud sdk
|
|
39
39
|
|
|
40
|
-
:param
|
|
40
|
+
:param application_id: 应用ID。
|
|
41
|
+
:type application_id: str
|
|
42
|
+
:param component_id: 组件ID。
|
|
41
43
|
:type component_id: str
|
|
42
|
-
:param
|
|
43
|
-
:type x_environment_id: str
|
|
44
|
-
:param x_enterprise_project_id: 租户的企业项目id。
|
|
44
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
45
45
|
:type x_enterprise_project_id: str
|
|
46
|
-
:param
|
|
47
|
-
:type
|
|
46
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
47
|
+
:type x_environment_id: str
|
|
48
48
|
:param body: Body of the UpdateComponentRequest
|
|
49
49
|
:type body: :class:`huaweicloudsdkcae.v1.UpdateComponentRequestBody`
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
self._application_id = None
|
|
54
55
|
self._component_id = None
|
|
55
|
-
self._x_environment_id = None
|
|
56
56
|
self._x_enterprise_project_id = None
|
|
57
|
-
self.
|
|
57
|
+
self._x_environment_id = None
|
|
58
58
|
self._body = None
|
|
59
59
|
self.discriminator = None
|
|
60
60
|
|
|
61
|
+
self.application_id = application_id
|
|
61
62
|
self.component_id = component_id
|
|
62
|
-
self.x_environment_id = x_environment_id
|
|
63
63
|
if x_enterprise_project_id is not None:
|
|
64
64
|
self.x_enterprise_project_id = x_enterprise_project_id
|
|
65
|
-
self.
|
|
65
|
+
self.x_environment_id = x_environment_id
|
|
66
66
|
if body is not None:
|
|
67
67
|
self.body = body
|
|
68
68
|
|
|
69
69
|
@property
|
|
70
|
-
def
|
|
71
|
-
"""Gets the
|
|
70
|
+
def application_id(self):
|
|
71
|
+
"""Gets the application_id of this UpdateComponentRequest.
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
应用ID。
|
|
74
74
|
|
|
75
|
-
:return: The
|
|
75
|
+
:return: The application_id of this UpdateComponentRequest.
|
|
76
76
|
:rtype: str
|
|
77
77
|
"""
|
|
78
|
-
return self.
|
|
78
|
+
return self._application_id
|
|
79
79
|
|
|
80
|
-
@
|
|
81
|
-
def
|
|
82
|
-
"""Sets the
|
|
80
|
+
@application_id.setter
|
|
81
|
+
def application_id(self, application_id):
|
|
82
|
+
"""Sets the application_id of this UpdateComponentRequest.
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
应用ID。
|
|
85
85
|
|
|
86
|
-
:param
|
|
87
|
-
:type
|
|
86
|
+
:param application_id: The application_id of this UpdateComponentRequest.
|
|
87
|
+
:type application_id: str
|
|
88
88
|
"""
|
|
89
|
-
self.
|
|
89
|
+
self._application_id = application_id
|
|
90
90
|
|
|
91
91
|
@property
|
|
92
|
-
def
|
|
93
|
-
"""Gets the
|
|
92
|
+
def component_id(self):
|
|
93
|
+
"""Gets the component_id of this UpdateComponentRequest.
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
组件ID。
|
|
96
96
|
|
|
97
|
-
:return: The
|
|
97
|
+
:return: The component_id of this UpdateComponentRequest.
|
|
98
98
|
:rtype: str
|
|
99
99
|
"""
|
|
100
|
-
return self.
|
|
100
|
+
return self._component_id
|
|
101
101
|
|
|
102
|
-
@
|
|
103
|
-
def
|
|
104
|
-
"""Sets the
|
|
102
|
+
@component_id.setter
|
|
103
|
+
def component_id(self, component_id):
|
|
104
|
+
"""Sets the component_id of this UpdateComponentRequest.
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
组件ID。
|
|
107
107
|
|
|
108
|
-
:param
|
|
109
|
-
:type
|
|
108
|
+
:param component_id: The component_id of this UpdateComponentRequest.
|
|
109
|
+
:type component_id: str
|
|
110
110
|
"""
|
|
111
|
-
self.
|
|
111
|
+
self._component_id = component_id
|
|
112
112
|
|
|
113
113
|
@property
|
|
114
114
|
def x_enterprise_project_id(self):
|
|
115
115
|
"""Gets the x_enterprise_project_id of this UpdateComponentRequest.
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
118
118
|
|
|
119
119
|
:return: The x_enterprise_project_id of this UpdateComponentRequest.
|
|
120
120
|
:rtype: str
|
|
@@ -125,7 +125,7 @@ class UpdateComponentRequest:
|
|
|
125
125
|
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
126
126
|
"""Sets the x_enterprise_project_id of this UpdateComponentRequest.
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
129
129
|
|
|
130
130
|
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateComponentRequest.
|
|
131
131
|
:type x_enterprise_project_id: str
|
|
@@ -133,26 +133,26 @@ class UpdateComponentRequest:
|
|
|
133
133
|
self._x_enterprise_project_id = x_enterprise_project_id
|
|
134
134
|
|
|
135
135
|
@property
|
|
136
|
-
def
|
|
137
|
-
"""Gets the
|
|
136
|
+
def x_environment_id(self):
|
|
137
|
+
"""Gets the x_environment_id of this UpdateComponentRequest.
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
140
140
|
|
|
141
|
-
:return: The
|
|
141
|
+
:return: The x_environment_id of this UpdateComponentRequest.
|
|
142
142
|
:rtype: str
|
|
143
143
|
"""
|
|
144
|
-
return self.
|
|
144
|
+
return self._x_environment_id
|
|
145
145
|
|
|
146
|
-
@
|
|
147
|
-
def
|
|
148
|
-
"""Sets the
|
|
146
|
+
@x_environment_id.setter
|
|
147
|
+
def x_environment_id(self, x_environment_id):
|
|
148
|
+
"""Sets the x_environment_id of this UpdateComponentRequest.
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
151
151
|
|
|
152
|
-
:param
|
|
153
|
-
:type
|
|
152
|
+
:param x_environment_id: The x_environment_id of this UpdateComponentRequest.
|
|
153
|
+
:type x_environment_id: str
|
|
154
154
|
"""
|
|
155
|
-
self.
|
|
155
|
+
self._x_environment_id = x_environment_id
|
|
156
156
|
|
|
157
157
|
@property
|
|
158
158
|
def body(self):
|
|
@@ -19,7 +19,7 @@ class UpdateComponentRequestBody:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'api_version': 'str',
|
|
21
21
|
'kind': 'str',
|
|
22
|
-
'metadata': '
|
|
22
|
+
'metadata': 'UpdateComponentRequestMetadata',
|
|
23
23
|
'spec': 'UpdateComponentRequestSpec'
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -35,12 +35,12 @@ class UpdateComponentRequestBody:
|
|
|
35
35
|
|
|
36
36
|
The model defined in huaweicloud sdk
|
|
37
37
|
|
|
38
|
-
:param api_version: API
|
|
38
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
39
39
|
:type api_version: str
|
|
40
|
-
:param kind:
|
|
40
|
+
:param kind: API类型,固定值“Component”,该值不可修改。
|
|
41
41
|
:type kind: str
|
|
42
42
|
:param metadata:
|
|
43
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.
|
|
43
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.UpdateComponentRequestMetadata`
|
|
44
44
|
:param spec:
|
|
45
45
|
:type spec: :class:`huaweicloudsdkcae.v1.UpdateComponentRequestSpec`
|
|
46
46
|
"""
|
|
@@ -64,7 +64,7 @@ class UpdateComponentRequestBody:
|
|
|
64
64
|
def api_version(self):
|
|
65
65
|
"""Gets the api_version of this UpdateComponentRequestBody.
|
|
66
66
|
|
|
67
|
-
API
|
|
67
|
+
API版本,固定值“v1”,该值不可修改。
|
|
68
68
|
|
|
69
69
|
:return: The api_version of this UpdateComponentRequestBody.
|
|
70
70
|
:rtype: str
|
|
@@ -75,7 +75,7 @@ class UpdateComponentRequestBody:
|
|
|
75
75
|
def api_version(self, api_version):
|
|
76
76
|
"""Sets the api_version of this UpdateComponentRequestBody.
|
|
77
77
|
|
|
78
|
-
API
|
|
78
|
+
API版本,固定值“v1”,该值不可修改。
|
|
79
79
|
|
|
80
80
|
:param api_version: The api_version of this UpdateComponentRequestBody.
|
|
81
81
|
:type api_version: str
|
|
@@ -86,7 +86,7 @@ class UpdateComponentRequestBody:
|
|
|
86
86
|
def kind(self):
|
|
87
87
|
"""Gets the kind of this UpdateComponentRequestBody.
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
API类型,固定值“Component”,该值不可修改。
|
|
90
90
|
|
|
91
91
|
:return: The kind of this UpdateComponentRequestBody.
|
|
92
92
|
:rtype: str
|
|
@@ -97,7 +97,7 @@ class UpdateComponentRequestBody:
|
|
|
97
97
|
def kind(self, kind):
|
|
98
98
|
"""Sets the kind of this UpdateComponentRequestBody.
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
API类型,固定值“Component”,该值不可修改。
|
|
101
101
|
|
|
102
102
|
:param kind: The kind of this UpdateComponentRequestBody.
|
|
103
103
|
:type kind: str
|
|
@@ -109,7 +109,7 @@ class UpdateComponentRequestBody:
|
|
|
109
109
|
"""Gets the metadata of this UpdateComponentRequestBody.
|
|
110
110
|
|
|
111
111
|
:return: The metadata of this UpdateComponentRequestBody.
|
|
112
|
-
:rtype: :class:`huaweicloudsdkcae.v1.
|
|
112
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateComponentRequestMetadata`
|
|
113
113
|
"""
|
|
114
114
|
return self._metadata
|
|
115
115
|
|
|
@@ -118,7 +118,7 @@ class UpdateComponentRequestBody:
|
|
|
118
118
|
"""Sets the metadata of this UpdateComponentRequestBody.
|
|
119
119
|
|
|
120
120
|
:param metadata: The metadata of this UpdateComponentRequestBody.
|
|
121
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.
|
|
121
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.UpdateComponentRequestMetadata`
|
|
122
122
|
"""
|
|
123
123
|
self._metadata = metadata
|
|
124
124
|
|