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,168 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDomainRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
21
|
+
'x_environment_id': 'str',
|
|
22
|
+
'body': 'CreateDomainReq'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
27
|
+
'x_environment_id': 'X-Environment-ID',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, body=None):
|
|
32
|
+
"""CreateDomainRequest
|
|
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 body: Body of the CreateDomainRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateDomainReq`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._x_enterprise_project_id = None
|
|
47
|
+
self._x_environment_id = None
|
|
48
|
+
self._body = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if x_enterprise_project_id is not None:
|
|
52
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
53
|
+
self.x_environment_id = x_environment_id
|
|
54
|
+
if body is not None:
|
|
55
|
+
self.body = body
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def x_enterprise_project_id(self):
|
|
59
|
+
"""Gets the x_enterprise_project_id of this CreateDomainRequest.
|
|
60
|
+
|
|
61
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
62
|
+
|
|
63
|
+
:return: The x_enterprise_project_id of this CreateDomainRequest.
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._x_enterprise_project_id
|
|
67
|
+
|
|
68
|
+
@x_enterprise_project_id.setter
|
|
69
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
70
|
+
"""Sets the x_enterprise_project_id of this CreateDomainRequest.
|
|
71
|
+
|
|
72
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
73
|
+
|
|
74
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this CreateDomainRequest.
|
|
75
|
+
:type x_enterprise_project_id: str
|
|
76
|
+
"""
|
|
77
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def x_environment_id(self):
|
|
81
|
+
"""Gets the x_environment_id of this CreateDomainRequest.
|
|
82
|
+
|
|
83
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
84
|
+
|
|
85
|
+
:return: The x_environment_id of this CreateDomainRequest.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._x_environment_id
|
|
89
|
+
|
|
90
|
+
@x_environment_id.setter
|
|
91
|
+
def x_environment_id(self, x_environment_id):
|
|
92
|
+
"""Sets the x_environment_id of this CreateDomainRequest.
|
|
93
|
+
|
|
94
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
95
|
+
|
|
96
|
+
:param x_environment_id: The x_environment_id of this CreateDomainRequest.
|
|
97
|
+
:type x_environment_id: str
|
|
98
|
+
"""
|
|
99
|
+
self._x_environment_id = x_environment_id
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def body(self):
|
|
103
|
+
"""Gets the body of this CreateDomainRequest.
|
|
104
|
+
|
|
105
|
+
:return: The body of this CreateDomainRequest.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateDomainReq`
|
|
107
|
+
"""
|
|
108
|
+
return self._body
|
|
109
|
+
|
|
110
|
+
@body.setter
|
|
111
|
+
def body(self, body):
|
|
112
|
+
"""Sets the body of this CreateDomainRequest.
|
|
113
|
+
|
|
114
|
+
:param body: The body of this CreateDomainRequest.
|
|
115
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateDomainReq`
|
|
116
|
+
"""
|
|
117
|
+
self._body = body
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
"""Returns the model properties as a dict"""
|
|
121
|
+
result = {}
|
|
122
|
+
|
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
124
|
+
value = getattr(self, attr)
|
|
125
|
+
if isinstance(value, list):
|
|
126
|
+
result[attr] = list(map(
|
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
128
|
+
value
|
|
129
|
+
))
|
|
130
|
+
elif hasattr(value, "to_dict"):
|
|
131
|
+
result[attr] = value.to_dict()
|
|
132
|
+
elif isinstance(value, dict):
|
|
133
|
+
result[attr] = dict(map(
|
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
|
136
|
+
value.items()
|
|
137
|
+
))
|
|
138
|
+
else:
|
|
139
|
+
if attr in self.sensitive_list:
|
|
140
|
+
result[attr] = "****"
|
|
141
|
+
else:
|
|
142
|
+
result[attr] = value
|
|
143
|
+
|
|
144
|
+
return result
|
|
145
|
+
|
|
146
|
+
def to_str(self):
|
|
147
|
+
"""Returns the string representation of the model"""
|
|
148
|
+
import simplejson as json
|
|
149
|
+
if six.PY2:
|
|
150
|
+
import sys
|
|
151
|
+
reload(sys)
|
|
152
|
+
sys.setdefaultencoding("utf-8")
|
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
154
|
+
|
|
155
|
+
def __repr__(self):
|
|
156
|
+
"""For `print`"""
|
|
157
|
+
return self.to_str()
|
|
158
|
+
|
|
159
|
+
def __eq__(self, other):
|
|
160
|
+
"""Returns true if both objects are equal"""
|
|
161
|
+
if not isinstance(other, CreateDomainRequest):
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
return self.__dict__ == other.__dict__
|
|
165
|
+
|
|
166
|
+
def __ne__(self, other):
|
|
167
|
+
"""Returns true if both objects are not equal"""
|
|
168
|
+
return not self == other
|
|
@@ -0,0 +1,174 @@
|
|
|
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 CreateDomainResponse(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
|
+
'api_version': 'str',
|
|
22
|
+
'items': 'list[DomainItem]',
|
|
23
|
+
'kind': 'str'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'api_version': 'api_version',
|
|
28
|
+
'items': 'items',
|
|
29
|
+
'kind': 'kind'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, api_version=None, items=None, kind=None):
|
|
33
|
+
"""CreateDomainResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
38
|
+
:type api_version: str
|
|
39
|
+
:param items: 域名列表。
|
|
40
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.DomainItem`]
|
|
41
|
+
:param kind: API类型,固定值“Domain”,该值不可修改。
|
|
42
|
+
:type kind: str
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(CreateDomainResponse, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._api_version = None
|
|
48
|
+
self._items = None
|
|
49
|
+
self._kind = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if api_version is not None:
|
|
53
|
+
self.api_version = api_version
|
|
54
|
+
if items is not None:
|
|
55
|
+
self.items = items
|
|
56
|
+
if kind is not None:
|
|
57
|
+
self.kind = kind
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def api_version(self):
|
|
61
|
+
"""Gets the api_version of this CreateDomainResponse.
|
|
62
|
+
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
|
+
|
|
65
|
+
:return: The api_version of this CreateDomainResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._api_version
|
|
69
|
+
|
|
70
|
+
@api_version.setter
|
|
71
|
+
def api_version(self, api_version):
|
|
72
|
+
"""Sets the api_version of this CreateDomainResponse.
|
|
73
|
+
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
|
+
|
|
76
|
+
:param api_version: The api_version of this CreateDomainResponse.
|
|
77
|
+
:type api_version: str
|
|
78
|
+
"""
|
|
79
|
+
self._api_version = api_version
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def items(self):
|
|
83
|
+
"""Gets the items of this CreateDomainResponse.
|
|
84
|
+
|
|
85
|
+
域名列表。
|
|
86
|
+
|
|
87
|
+
:return: The items of this CreateDomainResponse.
|
|
88
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.DomainItem`]
|
|
89
|
+
"""
|
|
90
|
+
return self._items
|
|
91
|
+
|
|
92
|
+
@items.setter
|
|
93
|
+
def items(self, items):
|
|
94
|
+
"""Sets the items of this CreateDomainResponse.
|
|
95
|
+
|
|
96
|
+
域名列表。
|
|
97
|
+
|
|
98
|
+
:param items: The items of this CreateDomainResponse.
|
|
99
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.DomainItem`]
|
|
100
|
+
"""
|
|
101
|
+
self._items = items
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def kind(self):
|
|
105
|
+
"""Gets the kind of this CreateDomainResponse.
|
|
106
|
+
|
|
107
|
+
API类型,固定值“Domain”,该值不可修改。
|
|
108
|
+
|
|
109
|
+
:return: The kind of this CreateDomainResponse.
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._kind
|
|
113
|
+
|
|
114
|
+
@kind.setter
|
|
115
|
+
def kind(self, kind):
|
|
116
|
+
"""Sets the kind of this CreateDomainResponse.
|
|
117
|
+
|
|
118
|
+
API类型,固定值“Domain”,该值不可修改。
|
|
119
|
+
|
|
120
|
+
:param kind: The kind of this CreateDomainResponse.
|
|
121
|
+
:type kind: str
|
|
122
|
+
"""
|
|
123
|
+
self._kind = kind
|
|
124
|
+
|
|
125
|
+
def to_dict(self):
|
|
126
|
+
"""Returns the model properties as a dict"""
|
|
127
|
+
result = {}
|
|
128
|
+
|
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
130
|
+
value = getattr(self, attr)
|
|
131
|
+
if isinstance(value, list):
|
|
132
|
+
result[attr] = list(map(
|
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
134
|
+
value
|
|
135
|
+
))
|
|
136
|
+
elif hasattr(value, "to_dict"):
|
|
137
|
+
result[attr] = value.to_dict()
|
|
138
|
+
elif isinstance(value, dict):
|
|
139
|
+
result[attr] = dict(map(
|
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
|
142
|
+
value.items()
|
|
143
|
+
))
|
|
144
|
+
else:
|
|
145
|
+
if attr in self.sensitive_list:
|
|
146
|
+
result[attr] = "****"
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
|
|
150
|
+
return result
|
|
151
|
+
|
|
152
|
+
def to_str(self):
|
|
153
|
+
"""Returns the string representation of the model"""
|
|
154
|
+
import simplejson as json
|
|
155
|
+
if six.PY2:
|
|
156
|
+
import sys
|
|
157
|
+
reload(sys)
|
|
158
|
+
sys.setdefaultencoding("utf-8")
|
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
160
|
+
|
|
161
|
+
def __repr__(self):
|
|
162
|
+
"""For `print`"""
|
|
163
|
+
return self.to_str()
|
|
164
|
+
|
|
165
|
+
def __eq__(self, other):
|
|
166
|
+
"""Returns true if both objects are equal"""
|
|
167
|
+
if not isinstance(other, CreateDomainResponse):
|
|
168
|
+
return False
|
|
169
|
+
|
|
170
|
+
return self.__dict__ == other.__dict__
|
|
171
|
+
|
|
172
|
+
def __ne__(self, other):
|
|
173
|
+
"""Returns true if both objects are not equal"""
|
|
174
|
+
return not self == other
|
|
@@ -31,7 +31,7 @@ class CreateEnvironmentRequest:
|
|
|
31
31
|
|
|
32
32
|
The model defined in huaweicloud sdk
|
|
33
33
|
|
|
34
|
-
:param x_enterprise_project_id:
|
|
34
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
35
35
|
:type x_enterprise_project_id: str
|
|
36
36
|
:param body: Body of the CreateEnvironmentRequest
|
|
37
37
|
:type body: :class:`huaweicloudsdkcae.v1.CreateEnvironmentRequestBody`
|
|
@@ -52,7 +52,7 @@ class CreateEnvironmentRequest:
|
|
|
52
52
|
def x_enterprise_project_id(self):
|
|
53
53
|
"""Gets the x_enterprise_project_id of this CreateEnvironmentRequest.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
56
56
|
|
|
57
57
|
:return: The x_enterprise_project_id of this CreateEnvironmentRequest.
|
|
58
58
|
:rtype: str
|
|
@@ -63,7 +63,7 @@ class CreateEnvironmentRequest:
|
|
|
63
63
|
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
64
64
|
"""Sets the x_enterprise_project_id of this CreateEnvironmentRequest.
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
67
67
|
|
|
68
68
|
:param x_enterprise_project_id: The x_enterprise_project_id of this CreateEnvironmentRequest.
|
|
69
69
|
:type x_enterprise_project_id: str
|
|
@@ -33,9 +33,9 @@ class CreateEnvironmentRequestBody:
|
|
|
33
33
|
|
|
34
34
|
The model defined in huaweicloud sdk
|
|
35
35
|
|
|
36
|
-
:param api_version: API
|
|
36
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
37
37
|
:type api_version: str
|
|
38
|
-
:param kind:
|
|
38
|
+
:param kind: API类型,固定值“Environment”,该值不可修改。
|
|
39
39
|
:type kind: str
|
|
40
40
|
:param metadata:
|
|
41
41
|
:type metadata: :class:`huaweicloudsdkcae.v1.CreateEnvironmentRequestBodyMetadata`
|
|
@@ -56,7 +56,7 @@ class CreateEnvironmentRequestBody:
|
|
|
56
56
|
def api_version(self):
|
|
57
57
|
"""Gets the api_version of this CreateEnvironmentRequestBody.
|
|
58
58
|
|
|
59
|
-
API
|
|
59
|
+
API版本,固定值“v1”,该值不可修改。
|
|
60
60
|
|
|
61
61
|
:return: The api_version of this CreateEnvironmentRequestBody.
|
|
62
62
|
:rtype: str
|
|
@@ -67,7 +67,7 @@ class CreateEnvironmentRequestBody:
|
|
|
67
67
|
def api_version(self, api_version):
|
|
68
68
|
"""Sets the api_version of this CreateEnvironmentRequestBody.
|
|
69
69
|
|
|
70
|
-
API
|
|
70
|
+
API版本,固定值“v1”,该值不可修改。
|
|
71
71
|
|
|
72
72
|
:param api_version: The api_version of this CreateEnvironmentRequestBody.
|
|
73
73
|
:type api_version: str
|
|
@@ -78,7 +78,7 @@ class CreateEnvironmentRequestBody:
|
|
|
78
78
|
def kind(self):
|
|
79
79
|
"""Gets the kind of this CreateEnvironmentRequestBody.
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
API类型,固定值“Environment”,该值不可修改。
|
|
82
82
|
|
|
83
83
|
:return: The kind of this CreateEnvironmentRequestBody.
|
|
84
84
|
:rtype: str
|
|
@@ -89,7 +89,7 @@ class CreateEnvironmentRequestBody:
|
|
|
89
89
|
def kind(self, kind):
|
|
90
90
|
"""Sets the kind of this CreateEnvironmentRequestBody.
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
API类型,固定值“Environment”,该值不可修改。
|
|
93
93
|
|
|
94
94
|
:param kind: The kind of this CreateEnvironmentRequestBody.
|
|
95
95
|
:type kind: str
|
|
@@ -18,46 +18,40 @@ class CreateEnvironmentRequestBodyMetadata:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'annotations': 'dict(str, str)',
|
|
21
|
-
'name': 'str'
|
|
22
|
-
'type': 'str'
|
|
21
|
+
'name': 'str'
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
attribute_map = {
|
|
26
25
|
'annotations': 'annotations',
|
|
27
|
-
'name': 'name'
|
|
28
|
-
'type': 'type'
|
|
26
|
+
'name': 'name'
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
def __init__(self, annotations=None, name=None
|
|
29
|
+
def __init__(self, annotations=None, name=None):
|
|
32
30
|
"""CreateEnvironmentRequestBodyMetadata
|
|
33
31
|
|
|
34
32
|
The model defined in huaweicloud sdk
|
|
35
33
|
|
|
36
|
-
:param annotations:
|
|
34
|
+
:param annotations: 创建环境请求体附加参数。 - vpc_id:创建环境绑定的VPC的ID。 - group_name:创建环境绑定的SWR组织的组织名称。 - type:环境类型,当前仅支持exclusive类型。
|
|
37
35
|
:type annotations: dict(str, str)
|
|
38
36
|
:param name: 环境名称。
|
|
39
37
|
:type name: str
|
|
40
|
-
:param type: 环境类型。
|
|
41
|
-
:type type: str
|
|
42
38
|
"""
|
|
43
39
|
|
|
44
40
|
|
|
45
41
|
|
|
46
42
|
self._annotations = None
|
|
47
43
|
self._name = None
|
|
48
|
-
self._type = None
|
|
49
44
|
self.discriminator = None
|
|
50
45
|
|
|
51
46
|
if annotations is not None:
|
|
52
47
|
self.annotations = annotations
|
|
53
48
|
self.name = name
|
|
54
|
-
self.type = type
|
|
55
49
|
|
|
56
50
|
@property
|
|
57
51
|
def annotations(self):
|
|
58
52
|
"""Gets the annotations of this CreateEnvironmentRequestBodyMetadata.
|
|
59
53
|
|
|
60
|
-
|
|
54
|
+
创建环境请求体附加参数。 - vpc_id:创建环境绑定的VPC的ID。 - group_name:创建环境绑定的SWR组织的组织名称。 - type:环境类型,当前仅支持exclusive类型。
|
|
61
55
|
|
|
62
56
|
:return: The annotations of this CreateEnvironmentRequestBodyMetadata.
|
|
63
57
|
:rtype: dict(str, str)
|
|
@@ -68,7 +62,7 @@ class CreateEnvironmentRequestBodyMetadata:
|
|
|
68
62
|
def annotations(self, annotations):
|
|
69
63
|
"""Sets the annotations of this CreateEnvironmentRequestBodyMetadata.
|
|
70
64
|
|
|
71
|
-
|
|
65
|
+
创建环境请求体附加参数。 - vpc_id:创建环境绑定的VPC的ID。 - group_name:创建环境绑定的SWR组织的组织名称。 - type:环境类型,当前仅支持exclusive类型。
|
|
72
66
|
|
|
73
67
|
:param annotations: The annotations of this CreateEnvironmentRequestBodyMetadata.
|
|
74
68
|
:type annotations: dict(str, str)
|
|
@@ -97,28 +91,6 @@ class CreateEnvironmentRequestBodyMetadata:
|
|
|
97
91
|
"""
|
|
98
92
|
self._name = name
|
|
99
93
|
|
|
100
|
-
@property
|
|
101
|
-
def type(self):
|
|
102
|
-
"""Gets the type of this CreateEnvironmentRequestBodyMetadata.
|
|
103
|
-
|
|
104
|
-
环境类型。
|
|
105
|
-
|
|
106
|
-
:return: The type of this CreateEnvironmentRequestBodyMetadata.
|
|
107
|
-
:rtype: str
|
|
108
|
-
"""
|
|
109
|
-
return self._type
|
|
110
|
-
|
|
111
|
-
@type.setter
|
|
112
|
-
def type(self, type):
|
|
113
|
-
"""Sets the type of this CreateEnvironmentRequestBodyMetadata.
|
|
114
|
-
|
|
115
|
-
环境类型。
|
|
116
|
-
|
|
117
|
-
:param type: The type of this CreateEnvironmentRequestBodyMetadata.
|
|
118
|
-
:type type: str
|
|
119
|
-
"""
|
|
120
|
-
self._type = type
|
|
121
|
-
|
|
122
94
|
def to_dict(self):
|
|
123
95
|
"""Returns the model properties as a dict"""
|
|
124
96
|
result = {}
|
|
@@ -18,105 +18,51 @@ class CreateEnvironmentResponse(SdkResponse):
|
|
|
18
18
|
sensitive_list = []
|
|
19
19
|
|
|
20
20
|
openapi_types = {
|
|
21
|
-
'
|
|
22
|
-
'kind': 'str',
|
|
23
|
-
'metadata': 'EnvironmentMetadata'
|
|
21
|
+
'job_id': 'str'
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
attribute_map = {
|
|
27
|
-
'
|
|
28
|
-
'kind': 'kind',
|
|
29
|
-
'metadata': 'metadata'
|
|
25
|
+
'job_id': 'job_id'
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
def __init__(self,
|
|
28
|
+
def __init__(self, job_id=None):
|
|
33
29
|
"""CreateEnvironmentResponse
|
|
34
30
|
|
|
35
31
|
The model defined in huaweicloud sdk
|
|
36
32
|
|
|
37
|
-
:param
|
|
38
|
-
:type
|
|
39
|
-
:param kind: 资源种类
|
|
40
|
-
:type kind: str
|
|
41
|
-
:param metadata:
|
|
42
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.EnvironmentMetadata`
|
|
33
|
+
:param job_id: 任务ID。
|
|
34
|
+
:type job_id: str
|
|
43
35
|
"""
|
|
44
36
|
|
|
45
37
|
super(CreateEnvironmentResponse, self).__init__()
|
|
46
38
|
|
|
47
|
-
self.
|
|
48
|
-
self._kind = None
|
|
49
|
-
self._metadata = None
|
|
39
|
+
self._job_id = None
|
|
50
40
|
self.discriminator = None
|
|
51
41
|
|
|
52
|
-
if
|
|
53
|
-
self.
|
|
54
|
-
if kind is not None:
|
|
55
|
-
self.kind = kind
|
|
56
|
-
if metadata is not None:
|
|
57
|
-
self.metadata = metadata
|
|
42
|
+
if job_id is not None:
|
|
43
|
+
self.job_id = job_id
|
|
58
44
|
|
|
59
45
|
@property
|
|
60
|
-
def
|
|
61
|
-
"""Gets the
|
|
46
|
+
def job_id(self):
|
|
47
|
+
"""Gets the job_id of this CreateEnvironmentResponse.
|
|
62
48
|
|
|
63
|
-
|
|
49
|
+
任务ID。
|
|
64
50
|
|
|
65
|
-
:return: The
|
|
51
|
+
:return: The job_id of this CreateEnvironmentResponse.
|
|
66
52
|
:rtype: str
|
|
67
53
|
"""
|
|
68
|
-
return self.
|
|
54
|
+
return self._job_id
|
|
69
55
|
|
|
70
|
-
@
|
|
71
|
-
def
|
|
72
|
-
"""Sets the
|
|
56
|
+
@job_id.setter
|
|
57
|
+
def job_id(self, job_id):
|
|
58
|
+
"""Sets the job_id of this CreateEnvironmentResponse.
|
|
73
59
|
|
|
74
|
-
|
|
60
|
+
任务ID。
|
|
75
61
|
|
|
76
|
-
:param
|
|
77
|
-
:type
|
|
62
|
+
:param job_id: The job_id of this CreateEnvironmentResponse.
|
|
63
|
+
:type job_id: str
|
|
78
64
|
"""
|
|
79
|
-
self.
|
|
80
|
-
|
|
81
|
-
@property
|
|
82
|
-
def kind(self):
|
|
83
|
-
"""Gets the kind of this CreateEnvironmentResponse.
|
|
84
|
-
|
|
85
|
-
资源种类
|
|
86
|
-
|
|
87
|
-
:return: The kind of this CreateEnvironmentResponse.
|
|
88
|
-
:rtype: str
|
|
89
|
-
"""
|
|
90
|
-
return self._kind
|
|
91
|
-
|
|
92
|
-
@kind.setter
|
|
93
|
-
def kind(self, kind):
|
|
94
|
-
"""Sets the kind of this CreateEnvironmentResponse.
|
|
95
|
-
|
|
96
|
-
资源种类
|
|
97
|
-
|
|
98
|
-
:param kind: The kind of this CreateEnvironmentResponse.
|
|
99
|
-
:type kind: str
|
|
100
|
-
"""
|
|
101
|
-
self._kind = kind
|
|
102
|
-
|
|
103
|
-
@property
|
|
104
|
-
def metadata(self):
|
|
105
|
-
"""Gets the metadata of this CreateEnvironmentResponse.
|
|
106
|
-
|
|
107
|
-
:return: The metadata of this CreateEnvironmentResponse.
|
|
108
|
-
:rtype: :class:`huaweicloudsdkcae.v1.EnvironmentMetadata`
|
|
109
|
-
"""
|
|
110
|
-
return self._metadata
|
|
111
|
-
|
|
112
|
-
@metadata.setter
|
|
113
|
-
def metadata(self, metadata):
|
|
114
|
-
"""Sets the metadata of this CreateEnvironmentResponse.
|
|
115
|
-
|
|
116
|
-
:param metadata: The metadata of this CreateEnvironmentResponse.
|
|
117
|
-
:type metadata: :class:`huaweicloudsdkcae.v1.EnvironmentMetadata`
|
|
118
|
-
"""
|
|
119
|
-
self._metadata = metadata
|
|
65
|
+
self._job_id = job_id
|
|
120
66
|
|
|
121
67
|
def to_dict(self):
|
|
122
68
|
"""Returns the model properties as a dict"""
|