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
|
@@ -18,46 +18,46 @@ class DeleteVolumeRequest:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'id': 'str',
|
|
21
|
-
'
|
|
22
|
-
'
|
|
21
|
+
'x_enterprise_project_id': 'str',
|
|
22
|
+
'x_environment_id': 'str'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
attribute_map = {
|
|
26
26
|
'id': 'id',
|
|
27
|
-
'
|
|
28
|
-
'
|
|
27
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
28
|
+
'x_environment_id': 'X-Environment-ID'
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
def __init__(self, id=None,
|
|
31
|
+
def __init__(self, id=None, x_enterprise_project_id=None, x_environment_id=None):
|
|
32
32
|
"""DeleteVolumeRequest
|
|
33
33
|
|
|
34
34
|
The model defined in huaweicloud sdk
|
|
35
35
|
|
|
36
|
-
:param id:
|
|
36
|
+
:param id: 云存储ID。
|
|
37
37
|
:type id: str
|
|
38
|
-
:param
|
|
39
|
-
:type x_environment_id: str
|
|
40
|
-
:param x_enterprise_project_id: 租户的企业项目id。
|
|
38
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
41
39
|
:type x_enterprise_project_id: str
|
|
40
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
41
|
+
:type x_environment_id: str
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
self._id = None
|
|
47
|
-
self._x_environment_id = None
|
|
48
47
|
self._x_enterprise_project_id = None
|
|
48
|
+
self._x_environment_id = None
|
|
49
49
|
self.discriminator = None
|
|
50
50
|
|
|
51
51
|
self.id = id
|
|
52
|
-
self.x_environment_id = x_environment_id
|
|
53
52
|
if x_enterprise_project_id is not None:
|
|
54
53
|
self.x_enterprise_project_id = x_enterprise_project_id
|
|
54
|
+
self.x_environment_id = x_environment_id
|
|
55
55
|
|
|
56
56
|
@property
|
|
57
57
|
def id(self):
|
|
58
58
|
"""Gets the id of this DeleteVolumeRequest.
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
云存储ID。
|
|
61
61
|
|
|
62
62
|
:return: The id of this DeleteVolumeRequest.
|
|
63
63
|
:rtype: str
|
|
@@ -68,40 +68,18 @@ class DeleteVolumeRequest:
|
|
|
68
68
|
def id(self, id):
|
|
69
69
|
"""Sets the id of this DeleteVolumeRequest.
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
云存储ID。
|
|
72
72
|
|
|
73
73
|
:param id: The id of this DeleteVolumeRequest.
|
|
74
74
|
:type id: str
|
|
75
75
|
"""
|
|
76
76
|
self._id = id
|
|
77
77
|
|
|
78
|
-
@property
|
|
79
|
-
def x_environment_id(self):
|
|
80
|
-
"""Gets the x_environment_id of this DeleteVolumeRequest.
|
|
81
|
-
|
|
82
|
-
环境id。
|
|
83
|
-
|
|
84
|
-
:return: The x_environment_id of this DeleteVolumeRequest.
|
|
85
|
-
:rtype: str
|
|
86
|
-
"""
|
|
87
|
-
return self._x_environment_id
|
|
88
|
-
|
|
89
|
-
@x_environment_id.setter
|
|
90
|
-
def x_environment_id(self, x_environment_id):
|
|
91
|
-
"""Sets the x_environment_id of this DeleteVolumeRequest.
|
|
92
|
-
|
|
93
|
-
环境id。
|
|
94
|
-
|
|
95
|
-
:param x_environment_id: The x_environment_id of this DeleteVolumeRequest.
|
|
96
|
-
:type x_environment_id: str
|
|
97
|
-
"""
|
|
98
|
-
self._x_environment_id = x_environment_id
|
|
99
|
-
|
|
100
78
|
@property
|
|
101
79
|
def x_enterprise_project_id(self):
|
|
102
80
|
"""Gets the x_enterprise_project_id of this DeleteVolumeRequest.
|
|
103
81
|
|
|
104
|
-
|
|
82
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
105
83
|
|
|
106
84
|
:return: The x_enterprise_project_id of this DeleteVolumeRequest.
|
|
107
85
|
:rtype: str
|
|
@@ -112,13 +90,35 @@ class DeleteVolumeRequest:
|
|
|
112
90
|
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
113
91
|
"""Sets the x_enterprise_project_id of this DeleteVolumeRequest.
|
|
114
92
|
|
|
115
|
-
|
|
93
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
116
94
|
|
|
117
95
|
:param x_enterprise_project_id: The x_enterprise_project_id of this DeleteVolumeRequest.
|
|
118
96
|
:type x_enterprise_project_id: str
|
|
119
97
|
"""
|
|
120
98
|
self._x_enterprise_project_id = x_enterprise_project_id
|
|
121
99
|
|
|
100
|
+
@property
|
|
101
|
+
def x_environment_id(self):
|
|
102
|
+
"""Gets the x_environment_id of this DeleteVolumeRequest.
|
|
103
|
+
|
|
104
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
105
|
+
|
|
106
|
+
:return: The x_environment_id of this DeleteVolumeRequest.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._x_environment_id
|
|
110
|
+
|
|
111
|
+
@x_environment_id.setter
|
|
112
|
+
def x_environment_id(self, x_environment_id):
|
|
113
|
+
"""Sets the x_environment_id of this DeleteVolumeRequest.
|
|
114
|
+
|
|
115
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
116
|
+
|
|
117
|
+
:param x_environment_id: The x_environment_id of this DeleteVolumeRequest.
|
|
118
|
+
:type x_environment_id: str
|
|
119
|
+
"""
|
|
120
|
+
self._x_environment_id = x_environment_id
|
|
121
|
+
|
|
122
122
|
def to_dict(self):
|
|
123
123
|
"""Returns the model properties as a dict"""
|
|
124
124
|
result = {}
|
|
@@ -34,11 +34,11 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
34
34
|
|
|
35
35
|
The model defined in huaweicloud sdk
|
|
36
36
|
|
|
37
|
-
:param api_version: API
|
|
37
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
38
38
|
:type api_version: str
|
|
39
|
-
:param kind:
|
|
39
|
+
:param kind: API类型,固定值“Component”,该值不可修改。
|
|
40
40
|
:type kind: str
|
|
41
|
-
:param items:
|
|
41
|
+
:param items: 挂载组件列表。
|
|
42
42
|
:type items: list[:class:`huaweicloudsdkcae.v1.MountComponent`]
|
|
43
43
|
"""
|
|
44
44
|
|
|
@@ -60,7 +60,7 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
60
60
|
def api_version(self):
|
|
61
61
|
"""Gets the api_version of this DeleteVolumeResponse.
|
|
62
62
|
|
|
63
|
-
API
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
64
|
|
|
65
65
|
:return: The api_version of this DeleteVolumeResponse.
|
|
66
66
|
:rtype: str
|
|
@@ -71,7 +71,7 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
71
71
|
def api_version(self, api_version):
|
|
72
72
|
"""Sets the api_version of this DeleteVolumeResponse.
|
|
73
73
|
|
|
74
|
-
API
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
75
|
|
|
76
76
|
:param api_version: The api_version of this DeleteVolumeResponse.
|
|
77
77
|
:type api_version: str
|
|
@@ -82,7 +82,7 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
82
82
|
def kind(self):
|
|
83
83
|
"""Gets the kind of this DeleteVolumeResponse.
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
API类型,固定值“Component”,该值不可修改。
|
|
86
86
|
|
|
87
87
|
:return: The kind of this DeleteVolumeResponse.
|
|
88
88
|
:rtype: str
|
|
@@ -93,7 +93,7 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
93
93
|
def kind(self, kind):
|
|
94
94
|
"""Sets the kind of this DeleteVolumeResponse.
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
API类型,固定值“Component”,该值不可修改。
|
|
97
97
|
|
|
98
98
|
:param kind: The kind of this DeleteVolumeResponse.
|
|
99
99
|
:type kind: str
|
|
@@ -104,7 +104,7 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
104
104
|
def items(self):
|
|
105
105
|
"""Gets the items of this DeleteVolumeResponse.
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
挂载组件列表。
|
|
108
108
|
|
|
109
109
|
:return: The items of this DeleteVolumeResponse.
|
|
110
110
|
:rtype: list[:class:`huaweicloudsdkcae.v1.MountComponent`]
|
|
@@ -115,7 +115,7 @@ class DeleteVolumeResponse(SdkResponse):
|
|
|
115
115
|
def items(self, items):
|
|
116
116
|
"""Sets the items of this DeleteVolumeResponse.
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
挂载组件列表。
|
|
119
119
|
|
|
120
120
|
:param items: The items of this DeleteVolumeResponse.
|
|
121
121
|
:type items: list[:class:`huaweicloudsdkcae.v1.MountComponent`]
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DomainItem:
|
|
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
|
+
'metadata': 'MetaDomain'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'metadata': 'metadata'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, metadata=None):
|
|
28
|
+
"""DomainItem
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param metadata:
|
|
33
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.MetaDomain`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._metadata = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if metadata is not None:
|
|
42
|
+
self.metadata = metadata
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def metadata(self):
|
|
46
|
+
"""Gets the metadata of this DomainItem.
|
|
47
|
+
|
|
48
|
+
:return: The metadata of this DomainItem.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkcae.v1.MetaDomain`
|
|
50
|
+
"""
|
|
51
|
+
return self._metadata
|
|
52
|
+
|
|
53
|
+
@metadata.setter
|
|
54
|
+
def metadata(self, metadata):
|
|
55
|
+
"""Sets the metadata of this DomainItem.
|
|
56
|
+
|
|
57
|
+
:param metadata: The metadata of this DomainItem.
|
|
58
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.MetaDomain`
|
|
59
|
+
"""
|
|
60
|
+
self._metadata = metadata
|
|
61
|
+
|
|
62
|
+
def to_dict(self):
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
if six.PY2:
|
|
93
|
+
import sys
|
|
94
|
+
reload(sys)
|
|
95
|
+
sys.setdefaultencoding("utf-8")
|
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
97
|
+
|
|
98
|
+
def __repr__(self):
|
|
99
|
+
"""For `print`"""
|
|
100
|
+
return self.to_str()
|
|
101
|
+
|
|
102
|
+
def __eq__(self, other):
|
|
103
|
+
"""Returns true if both objects are equal"""
|
|
104
|
+
if not isinstance(other, DomainItem):
|
|
105
|
+
return False
|
|
106
|
+
|
|
107
|
+
return self.__dict__ == other.__dict__
|
|
108
|
+
|
|
109
|
+
def __ne__(self, other):
|
|
110
|
+
"""Returns true if both objects are not equal"""
|
|
111
|
+
return not self == other
|
|
@@ -21,7 +21,6 @@ class EnvironmentItem:
|
|
|
21
21
|
'name': 'str',
|
|
22
22
|
'job_id': 'str',
|
|
23
23
|
'status': 'str',
|
|
24
|
-
'type': 'str',
|
|
25
24
|
'annotations': 'dict(str, str)',
|
|
26
25
|
'created_at': 'str',
|
|
27
26
|
'updated_at': 'str'
|
|
@@ -32,32 +31,29 @@ class EnvironmentItem:
|
|
|
32
31
|
'name': 'name',
|
|
33
32
|
'job_id': 'job_id',
|
|
34
33
|
'status': 'status',
|
|
35
|
-
'type': 'type',
|
|
36
34
|
'annotations': 'annotations',
|
|
37
35
|
'created_at': 'created_at',
|
|
38
36
|
'updated_at': 'updated_at'
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
def __init__(self, id=None, name=None, job_id=None, status=None,
|
|
39
|
+
def __init__(self, id=None, name=None, job_id=None, status=None, annotations=None, created_at=None, updated_at=None):
|
|
42
40
|
"""EnvironmentItem
|
|
43
41
|
|
|
44
42
|
The model defined in huaweicloud sdk
|
|
45
43
|
|
|
46
|
-
:param id: 环境
|
|
44
|
+
:param id: 环境ID。
|
|
47
45
|
:type id: str
|
|
48
46
|
:param name: 环境名称。
|
|
49
47
|
:type name: str
|
|
50
|
-
:param job_id: 任务
|
|
48
|
+
:param job_id: 任务ID。
|
|
51
49
|
:type job_id: str
|
|
52
50
|
:param status: 环境状态。
|
|
53
51
|
:type status: str
|
|
54
|
-
:param
|
|
55
|
-
:type type: str
|
|
56
|
-
:param annotations: 环境信息。
|
|
52
|
+
:param annotations: 环境附加属性。 - cluster_id:CCE集群ID。 - description: 环境描述信息。 - enterprise_project_id:企业项目ID。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
|
|
57
53
|
:type annotations: dict(str, str)
|
|
58
54
|
:param created_at: 创建时间。
|
|
59
55
|
:type created_at: str
|
|
60
|
-
:param updated_at:
|
|
56
|
+
:param updated_at: 更新时间。
|
|
61
57
|
:type updated_at: str
|
|
62
58
|
"""
|
|
63
59
|
|
|
@@ -67,7 +63,6 @@ class EnvironmentItem:
|
|
|
67
63
|
self._name = None
|
|
68
64
|
self._job_id = None
|
|
69
65
|
self._status = None
|
|
70
|
-
self._type = None
|
|
71
66
|
self._annotations = None
|
|
72
67
|
self._created_at = None
|
|
73
68
|
self._updated_at = None
|
|
@@ -81,8 +76,6 @@ class EnvironmentItem:
|
|
|
81
76
|
self.job_id = job_id
|
|
82
77
|
if status is not None:
|
|
83
78
|
self.status = status
|
|
84
|
-
if type is not None:
|
|
85
|
-
self.type = type
|
|
86
79
|
if annotations is not None:
|
|
87
80
|
self.annotations = annotations
|
|
88
81
|
if created_at is not None:
|
|
@@ -94,7 +87,7 @@ class EnvironmentItem:
|
|
|
94
87
|
def id(self):
|
|
95
88
|
"""Gets the id of this EnvironmentItem.
|
|
96
89
|
|
|
97
|
-
环境
|
|
90
|
+
环境ID。
|
|
98
91
|
|
|
99
92
|
:return: The id of this EnvironmentItem.
|
|
100
93
|
:rtype: str
|
|
@@ -105,7 +98,7 @@ class EnvironmentItem:
|
|
|
105
98
|
def id(self, id):
|
|
106
99
|
"""Sets the id of this EnvironmentItem.
|
|
107
100
|
|
|
108
|
-
环境
|
|
101
|
+
环境ID。
|
|
109
102
|
|
|
110
103
|
:param id: The id of this EnvironmentItem.
|
|
111
104
|
:type id: str
|
|
@@ -138,7 +131,7 @@ class EnvironmentItem:
|
|
|
138
131
|
def job_id(self):
|
|
139
132
|
"""Gets the job_id of this EnvironmentItem.
|
|
140
133
|
|
|
141
|
-
任务
|
|
134
|
+
任务ID。
|
|
142
135
|
|
|
143
136
|
:return: The job_id of this EnvironmentItem.
|
|
144
137
|
:rtype: str
|
|
@@ -149,7 +142,7 @@ class EnvironmentItem:
|
|
|
149
142
|
def job_id(self, job_id):
|
|
150
143
|
"""Sets the job_id of this EnvironmentItem.
|
|
151
144
|
|
|
152
|
-
任务
|
|
145
|
+
任务ID。
|
|
153
146
|
|
|
154
147
|
:param job_id: The job_id of this EnvironmentItem.
|
|
155
148
|
:type job_id: str
|
|
@@ -178,33 +171,11 @@ class EnvironmentItem:
|
|
|
178
171
|
"""
|
|
179
172
|
self._status = status
|
|
180
173
|
|
|
181
|
-
@property
|
|
182
|
-
def type(self):
|
|
183
|
-
"""Gets the type of this EnvironmentItem.
|
|
184
|
-
|
|
185
|
-
环境类型。
|
|
186
|
-
|
|
187
|
-
:return: The type of this EnvironmentItem.
|
|
188
|
-
:rtype: str
|
|
189
|
-
"""
|
|
190
|
-
return self._type
|
|
191
|
-
|
|
192
|
-
@type.setter
|
|
193
|
-
def type(self, type):
|
|
194
|
-
"""Sets the type of this EnvironmentItem.
|
|
195
|
-
|
|
196
|
-
环境类型。
|
|
197
|
-
|
|
198
|
-
:param type: The type of this EnvironmentItem.
|
|
199
|
-
:type type: str
|
|
200
|
-
"""
|
|
201
|
-
self._type = type
|
|
202
|
-
|
|
203
174
|
@property
|
|
204
175
|
def annotations(self):
|
|
205
176
|
"""Gets the annotations of this EnvironmentItem.
|
|
206
177
|
|
|
207
|
-
|
|
178
|
+
环境附加属性。 - cluster_id:CCE集群ID。 - description: 环境描述信息。 - enterprise_project_id:企业项目ID。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
|
|
208
179
|
|
|
209
180
|
:return: The annotations of this EnvironmentItem.
|
|
210
181
|
:rtype: dict(str, str)
|
|
@@ -215,7 +186,7 @@ class EnvironmentItem:
|
|
|
215
186
|
def annotations(self, annotations):
|
|
216
187
|
"""Sets the annotations of this EnvironmentItem.
|
|
217
188
|
|
|
218
|
-
|
|
189
|
+
环境附加属性。 - cluster_id:CCE集群ID。 - description: 环境描述信息。 - enterprise_project_id:企业项目ID。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
|
|
219
190
|
|
|
220
191
|
:param annotations: The annotations of this EnvironmentItem.
|
|
221
192
|
:type annotations: dict(str, str)
|
|
@@ -248,7 +219,7 @@ class EnvironmentItem:
|
|
|
248
219
|
def updated_at(self):
|
|
249
220
|
"""Gets the updated_at of this EnvironmentItem.
|
|
250
221
|
|
|
251
|
-
|
|
222
|
+
更新时间。
|
|
252
223
|
|
|
253
224
|
:return: The updated_at of this EnvironmentItem.
|
|
254
225
|
:rtype: str
|
|
@@ -259,7 +230,7 @@ class EnvironmentItem:
|
|
|
259
230
|
def updated_at(self, updated_at):
|
|
260
231
|
"""Sets the updated_at of this EnvironmentItem.
|
|
261
232
|
|
|
262
|
-
|
|
233
|
+
更新时间。
|
|
263
234
|
|
|
264
235
|
:param updated_at: The updated_at of this EnvironmentItem.
|
|
265
236
|
:type updated_at: str
|
|
@@ -18,6 +18,7 @@ class EventItem:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'name': 'str',
|
|
21
|
+
'involved_object_kind': 'str',
|
|
21
22
|
'involved_object': 'str',
|
|
22
23
|
'message': 'str',
|
|
23
24
|
'created_at': 'str',
|
|
@@ -28,6 +29,7 @@ class EventItem:
|
|
|
28
29
|
|
|
29
30
|
attribute_map = {
|
|
30
31
|
'name': 'name',
|
|
32
|
+
'involved_object_kind': 'involved_object_kind',
|
|
31
33
|
'involved_object': 'involved_object',
|
|
32
34
|
'message': 'message',
|
|
33
35
|
'created_at': 'created_at',
|
|
@@ -36,20 +38,22 @@ class EventItem:
|
|
|
36
38
|
'count': 'count'
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
def __init__(self, name=None, involved_object=None, message=None, created_at=None, updated_at=None, status=None, count=None):
|
|
41
|
+
def __init__(self, name=None, involved_object_kind=None, involved_object=None, message=None, created_at=None, updated_at=None, status=None, count=None):
|
|
40
42
|
"""EventItem
|
|
41
43
|
|
|
42
44
|
The model defined in huaweicloud sdk
|
|
43
45
|
|
|
44
|
-
:param name:
|
|
46
|
+
:param name: 事件名称。
|
|
45
47
|
:type name: str
|
|
48
|
+
:param involved_object_kind: 涉及对象类型。
|
|
49
|
+
:type involved_object_kind: str
|
|
46
50
|
:param involved_object: 涉及对象。
|
|
47
51
|
:type involved_object: str
|
|
48
52
|
:param message: 组件事件信息。
|
|
49
53
|
:type message: str
|
|
50
54
|
:param created_at: 创建时间。
|
|
51
55
|
:type created_at: str
|
|
52
|
-
:param updated_at:
|
|
56
|
+
:param updated_at: 更新时间。
|
|
53
57
|
:type updated_at: str
|
|
54
58
|
:param status: 组件事件状态。
|
|
55
59
|
:type status: str
|
|
@@ -60,6 +64,7 @@ class EventItem:
|
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
self._name = None
|
|
67
|
+
self._involved_object_kind = None
|
|
63
68
|
self._involved_object = None
|
|
64
69
|
self._message = None
|
|
65
70
|
self._created_at = None
|
|
@@ -70,6 +75,8 @@ class EventItem:
|
|
|
70
75
|
|
|
71
76
|
if name is not None:
|
|
72
77
|
self.name = name
|
|
78
|
+
if involved_object_kind is not None:
|
|
79
|
+
self.involved_object_kind = involved_object_kind
|
|
73
80
|
if involved_object is not None:
|
|
74
81
|
self.involved_object = involved_object
|
|
75
82
|
if message is not None:
|
|
@@ -87,7 +94,7 @@ class EventItem:
|
|
|
87
94
|
def name(self):
|
|
88
95
|
"""Gets the name of this EventItem.
|
|
89
96
|
|
|
90
|
-
|
|
97
|
+
事件名称。
|
|
91
98
|
|
|
92
99
|
:return: The name of this EventItem.
|
|
93
100
|
:rtype: str
|
|
@@ -98,13 +105,35 @@ class EventItem:
|
|
|
98
105
|
def name(self, name):
|
|
99
106
|
"""Sets the name of this EventItem.
|
|
100
107
|
|
|
101
|
-
|
|
108
|
+
事件名称。
|
|
102
109
|
|
|
103
110
|
:param name: The name of this EventItem.
|
|
104
111
|
:type name: str
|
|
105
112
|
"""
|
|
106
113
|
self._name = name
|
|
107
114
|
|
|
115
|
+
@property
|
|
116
|
+
def involved_object_kind(self):
|
|
117
|
+
"""Gets the involved_object_kind of this EventItem.
|
|
118
|
+
|
|
119
|
+
涉及对象类型。
|
|
120
|
+
|
|
121
|
+
:return: The involved_object_kind of this EventItem.
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._involved_object_kind
|
|
125
|
+
|
|
126
|
+
@involved_object_kind.setter
|
|
127
|
+
def involved_object_kind(self, involved_object_kind):
|
|
128
|
+
"""Sets the involved_object_kind of this EventItem.
|
|
129
|
+
|
|
130
|
+
涉及对象类型。
|
|
131
|
+
|
|
132
|
+
:param involved_object_kind: The involved_object_kind of this EventItem.
|
|
133
|
+
:type involved_object_kind: str
|
|
134
|
+
"""
|
|
135
|
+
self._involved_object_kind = involved_object_kind
|
|
136
|
+
|
|
108
137
|
@property
|
|
109
138
|
def involved_object(self):
|
|
110
139
|
"""Gets the involved_object of this EventItem.
|
|
@@ -175,7 +204,7 @@ class EventItem:
|
|
|
175
204
|
def updated_at(self):
|
|
176
205
|
"""Gets the updated_at of this EventItem.
|
|
177
206
|
|
|
178
|
-
|
|
207
|
+
更新时间。
|
|
179
208
|
|
|
180
209
|
:return: The updated_at of this EventItem.
|
|
181
210
|
:rtype: str
|
|
@@ -186,7 +215,7 @@ class EventItem:
|
|
|
186
215
|
def updated_at(self, updated_at):
|
|
187
216
|
"""Sets the updated_at of this EventItem.
|
|
188
217
|
|
|
189
|
-
|
|
218
|
+
更新时间。
|
|
190
219
|
|
|
191
220
|
:param updated_at: The updated_at of this EventItem.
|
|
192
221
|
:type updated_at: str
|