huaweicloudsdkcae 3.1.86__py2.py3-none-any.whl → 3.1.132__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 +38 -6
- huaweicloudsdkcae/v1/cae_async_client.py +601 -45
- huaweicloudsdkcae/v1/cae_client.py +601 -45
- huaweicloudsdkcae/v1/model/__init__.py +38 -6
- huaweicloudsdkcae/v1/model/access_configuration_data_items.py +177 -7
- huaweicloudsdkcae/v1/model/access_configuration_metadata.py +115 -0
- huaweicloudsdkcae/v1/model/access_configuration_port.py +59 -1
- huaweicloudsdkcae/v1/model/agency_metadata.py +28 -3
- huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +144 -0
- huaweicloudsdkcae/v1/model/configuration.py +35 -6
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +37 -8
- huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +37 -8
- huaweicloudsdkcae/v1/model/create_component_request_body.py +10 -12
- huaweicloudsdkcae/v1/model/{list_component_events_request.py → create_component_with_configuration_request.py} +43 -46
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +213 -0
- huaweicloudsdkcae/v1/model/{create_component_request_body_metadata.py → create_component_with_configuration_request_body_metadata.py} +11 -11
- huaweicloudsdkcae/v1/model/{create_component_request_body_spec.py → create_component_with_configuration_request_body_spec.py} +27 -27
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +241 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +115 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/create_notice_rule_item.py +244 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +277 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +168 -0
- huaweicloudsdkcae/v1/model/{list_component_events_response.py → create_vpc_egress_response.py} +35 -39
- huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +167 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +85 -0
- huaweicloudsdkcae/v1/model/egress_cidr.py +171 -0
- huaweicloudsdkcae/v1/model/environment_item.py +3 -3
- huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +4 -4
- huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +4 -4
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +32 -3
- huaweicloudsdkcae/v1/model/list_components_request.py +61 -3
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +30 -1
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +30 -1
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +162 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +171 -0
- huaweicloudsdkcae/v1/model/notice_rule_scope.py +201 -0
- huaweicloudsdkcae/v1/model/resources_credential.py +144 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_request.py +167 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/trigger_policy.py +201 -0
- huaweicloudsdkcae/v1/model/update_component_request_body.py +2 -4
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +32 -3
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +32 -3
- huaweicloudsdkcae/v1/model/update_notice_rule_item.py +192 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_request.py +192 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/volume.py +30 -1
- huaweicloudsdkcae/v1/model/volume_spec.py +32 -3
- huaweicloudsdkcae/v1/model/{component_event_kind_obj.py → vpc_egress_kind_obj.py} +4 -4
- huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +114 -0
- huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +173 -0
- huaweicloudsdkcae/v1/region/cae_region.py +12 -4
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/RECORD +68 -36
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkcae/v1/model/event_item.py +0 -318
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.86.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@ import six
|
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class CreateComponentWithConfigurationRequest:
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
Attributes:
|
|
@@ -18,135 +18,132 @@ class ListComponentEventsRequest:
|
|
|
18
18
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'application_id': 'str',
|
|
21
|
-
'component_id': 'str',
|
|
22
21
|
'x_enterprise_project_id': 'str',
|
|
23
|
-
'x_environment_id': 'str'
|
|
22
|
+
'x_environment_id': 'str',
|
|
23
|
+
'body': 'CreateComponentWithConfigurationRequestBody'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
attribute_map = {
|
|
27
27
|
'application_id': 'application_id',
|
|
28
|
-
'component_id': 'component_id',
|
|
29
28
|
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
30
|
-
'x_environment_id': 'X-Environment-ID'
|
|
29
|
+
'x_environment_id': 'X-Environment-ID',
|
|
30
|
+
'body': 'body'
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
def __init__(self, application_id=None,
|
|
34
|
-
"""
|
|
33
|
+
def __init__(self, application_id=None, x_enterprise_project_id=None, x_environment_id=None, body=None):
|
|
34
|
+
"""CreateComponentWithConfigurationRequest
|
|
35
35
|
|
|
36
36
|
The model defined in huaweicloud sdk
|
|
37
37
|
|
|
38
38
|
:param application_id: 应用ID。
|
|
39
39
|
:type application_id: str
|
|
40
|
-
:param component_id: 组件ID。
|
|
41
|
-
:type component_id: str
|
|
42
40
|
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
43
41
|
:type x_enterprise_project_id: str
|
|
44
42
|
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
45
43
|
:type x_environment_id: str
|
|
44
|
+
:param body: Body of the CreateComponentWithConfigurationRequest
|
|
45
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBody`
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
self._application_id = None
|
|
51
|
-
self._component_id = None
|
|
52
51
|
self._x_enterprise_project_id = None
|
|
53
52
|
self._x_environment_id = None
|
|
53
|
+
self._body = None
|
|
54
54
|
self.discriminator = None
|
|
55
55
|
|
|
56
56
|
self.application_id = application_id
|
|
57
|
-
self.component_id = component_id
|
|
58
57
|
if x_enterprise_project_id is not None:
|
|
59
58
|
self.x_enterprise_project_id = x_enterprise_project_id
|
|
60
59
|
self.x_environment_id = x_environment_id
|
|
60
|
+
if body is not None:
|
|
61
|
+
self.body = body
|
|
61
62
|
|
|
62
63
|
@property
|
|
63
64
|
def application_id(self):
|
|
64
|
-
"""Gets the application_id of this
|
|
65
|
+
"""Gets the application_id of this CreateComponentWithConfigurationRequest.
|
|
65
66
|
|
|
66
67
|
应用ID。
|
|
67
68
|
|
|
68
|
-
:return: The application_id of this
|
|
69
|
+
:return: The application_id of this CreateComponentWithConfigurationRequest.
|
|
69
70
|
:rtype: str
|
|
70
71
|
"""
|
|
71
72
|
return self._application_id
|
|
72
73
|
|
|
73
74
|
@application_id.setter
|
|
74
75
|
def application_id(self, application_id):
|
|
75
|
-
"""Sets the application_id of this
|
|
76
|
+
"""Sets the application_id of this CreateComponentWithConfigurationRequest.
|
|
76
77
|
|
|
77
78
|
应用ID。
|
|
78
79
|
|
|
79
|
-
:param application_id: The application_id of this
|
|
80
|
+
:param application_id: The application_id of this CreateComponentWithConfigurationRequest.
|
|
80
81
|
:type application_id: str
|
|
81
82
|
"""
|
|
82
83
|
self._application_id = application_id
|
|
83
84
|
|
|
84
|
-
@property
|
|
85
|
-
def component_id(self):
|
|
86
|
-
"""Gets the component_id of this ListComponentEventsRequest.
|
|
87
|
-
|
|
88
|
-
组件ID。
|
|
89
|
-
|
|
90
|
-
:return: The component_id of this ListComponentEventsRequest.
|
|
91
|
-
:rtype: str
|
|
92
|
-
"""
|
|
93
|
-
return self._component_id
|
|
94
|
-
|
|
95
|
-
@component_id.setter
|
|
96
|
-
def component_id(self, component_id):
|
|
97
|
-
"""Sets the component_id of this ListComponentEventsRequest.
|
|
98
|
-
|
|
99
|
-
组件ID。
|
|
100
|
-
|
|
101
|
-
:param component_id: The component_id of this ListComponentEventsRequest.
|
|
102
|
-
:type component_id: str
|
|
103
|
-
"""
|
|
104
|
-
self._component_id = component_id
|
|
105
|
-
|
|
106
85
|
@property
|
|
107
86
|
def x_enterprise_project_id(self):
|
|
108
|
-
"""Gets the x_enterprise_project_id of this
|
|
87
|
+
"""Gets the x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
|
|
109
88
|
|
|
110
89
|
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
111
90
|
|
|
112
|
-
:return: The x_enterprise_project_id of this
|
|
91
|
+
:return: The x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
|
|
113
92
|
:rtype: str
|
|
114
93
|
"""
|
|
115
94
|
return self._x_enterprise_project_id
|
|
116
95
|
|
|
117
96
|
@x_enterprise_project_id.setter
|
|
118
97
|
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
119
|
-
"""Sets the x_enterprise_project_id of this
|
|
98
|
+
"""Sets the x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
|
|
120
99
|
|
|
121
100
|
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
122
101
|
|
|
123
|
-
:param x_enterprise_project_id: The x_enterprise_project_id of this
|
|
102
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
|
|
124
103
|
:type x_enterprise_project_id: str
|
|
125
104
|
"""
|
|
126
105
|
self._x_enterprise_project_id = x_enterprise_project_id
|
|
127
106
|
|
|
128
107
|
@property
|
|
129
108
|
def x_environment_id(self):
|
|
130
|
-
"""Gets the x_environment_id of this
|
|
109
|
+
"""Gets the x_environment_id of this CreateComponentWithConfigurationRequest.
|
|
131
110
|
|
|
132
111
|
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
133
112
|
|
|
134
|
-
:return: The x_environment_id of this
|
|
113
|
+
:return: The x_environment_id of this CreateComponentWithConfigurationRequest.
|
|
135
114
|
:rtype: str
|
|
136
115
|
"""
|
|
137
116
|
return self._x_environment_id
|
|
138
117
|
|
|
139
118
|
@x_environment_id.setter
|
|
140
119
|
def x_environment_id(self, x_environment_id):
|
|
141
|
-
"""Sets the x_environment_id of this
|
|
120
|
+
"""Sets the x_environment_id of this CreateComponentWithConfigurationRequest.
|
|
142
121
|
|
|
143
122
|
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
144
123
|
|
|
145
|
-
:param x_environment_id: The x_environment_id of this
|
|
124
|
+
:param x_environment_id: The x_environment_id of this CreateComponentWithConfigurationRequest.
|
|
146
125
|
:type x_environment_id: str
|
|
147
126
|
"""
|
|
148
127
|
self._x_environment_id = x_environment_id
|
|
149
128
|
|
|
129
|
+
@property
|
|
130
|
+
def body(self):
|
|
131
|
+
"""Gets the body of this CreateComponentWithConfigurationRequest.
|
|
132
|
+
|
|
133
|
+
:return: The body of this CreateComponentWithConfigurationRequest.
|
|
134
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBody`
|
|
135
|
+
"""
|
|
136
|
+
return self._body
|
|
137
|
+
|
|
138
|
+
@body.setter
|
|
139
|
+
def body(self, body):
|
|
140
|
+
"""Sets the body of this CreateComponentWithConfigurationRequest.
|
|
141
|
+
|
|
142
|
+
:param body: The body of this CreateComponentWithConfigurationRequest.
|
|
143
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBody`
|
|
144
|
+
"""
|
|
145
|
+
self._body = body
|
|
146
|
+
|
|
150
147
|
def to_dict(self):
|
|
151
148
|
"""Returns the model properties as a dict"""
|
|
152
149
|
result = {}
|
|
@@ -189,7 +186,7 @@ class ListComponentEventsRequest:
|
|
|
189
186
|
|
|
190
187
|
def __eq__(self, other):
|
|
191
188
|
"""Returns true if both objects are equal"""
|
|
192
|
-
if not isinstance(other,
|
|
189
|
+
if not isinstance(other, CreateComponentWithConfigurationRequest):
|
|
193
190
|
return False
|
|
194
191
|
|
|
195
192
|
return self.__dict__ == other.__dict__
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateComponentWithConfigurationRequestBody:
|
|
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
|
+
'api_version': 'ApiVersionObj',
|
|
21
|
+
'kind': 'ComponentKindObj',
|
|
22
|
+
'metadata': 'CreateComponentWithConfigurationRequestBodyMetadata',
|
|
23
|
+
'spec': 'CreateComponentWithConfigurationRequestBodySpec',
|
|
24
|
+
'configurations': 'list[ConfigurationItem]'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'api_version': 'api_version',
|
|
29
|
+
'kind': 'kind',
|
|
30
|
+
'metadata': 'metadata',
|
|
31
|
+
'spec': 'spec',
|
|
32
|
+
'configurations': 'configurations'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, configurations=None):
|
|
36
|
+
"""CreateComponentWithConfigurationRequestBody
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param api_version:
|
|
41
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
42
|
+
:param kind:
|
|
43
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
44
|
+
:param metadata:
|
|
45
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
|
|
46
|
+
:param spec:
|
|
47
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
|
|
48
|
+
:param configurations: 配置项列表。
|
|
49
|
+
:type configurations: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._api_version = None
|
|
55
|
+
self._kind = None
|
|
56
|
+
self._metadata = None
|
|
57
|
+
self._spec = None
|
|
58
|
+
self._configurations = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
self.api_version = api_version
|
|
62
|
+
self.kind = kind
|
|
63
|
+
if metadata is not None:
|
|
64
|
+
self.metadata = metadata
|
|
65
|
+
if spec is not None:
|
|
66
|
+
self.spec = spec
|
|
67
|
+
if configurations is not None:
|
|
68
|
+
self.configurations = configurations
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def api_version(self):
|
|
72
|
+
"""Gets the api_version of this CreateComponentWithConfigurationRequestBody.
|
|
73
|
+
|
|
74
|
+
:return: The api_version of this CreateComponentWithConfigurationRequestBody.
|
|
75
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
76
|
+
"""
|
|
77
|
+
return self._api_version
|
|
78
|
+
|
|
79
|
+
@api_version.setter
|
|
80
|
+
def api_version(self, api_version):
|
|
81
|
+
"""Sets the api_version of this CreateComponentWithConfigurationRequestBody.
|
|
82
|
+
|
|
83
|
+
:param api_version: The api_version of this CreateComponentWithConfigurationRequestBody.
|
|
84
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
85
|
+
"""
|
|
86
|
+
self._api_version = api_version
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def kind(self):
|
|
90
|
+
"""Gets the kind of this CreateComponentWithConfigurationRequestBody.
|
|
91
|
+
|
|
92
|
+
:return: The kind of this CreateComponentWithConfigurationRequestBody.
|
|
93
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
94
|
+
"""
|
|
95
|
+
return self._kind
|
|
96
|
+
|
|
97
|
+
@kind.setter
|
|
98
|
+
def kind(self, kind):
|
|
99
|
+
"""Sets the kind of this CreateComponentWithConfigurationRequestBody.
|
|
100
|
+
|
|
101
|
+
:param kind: The kind of this CreateComponentWithConfigurationRequestBody.
|
|
102
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
103
|
+
"""
|
|
104
|
+
self._kind = kind
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def metadata(self):
|
|
108
|
+
"""Gets the metadata of this CreateComponentWithConfigurationRequestBody.
|
|
109
|
+
|
|
110
|
+
:return: The metadata of this CreateComponentWithConfigurationRequestBody.
|
|
111
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
|
|
112
|
+
"""
|
|
113
|
+
return self._metadata
|
|
114
|
+
|
|
115
|
+
@metadata.setter
|
|
116
|
+
def metadata(self, metadata):
|
|
117
|
+
"""Sets the metadata of this CreateComponentWithConfigurationRequestBody.
|
|
118
|
+
|
|
119
|
+
:param metadata: The metadata of this CreateComponentWithConfigurationRequestBody.
|
|
120
|
+
:type metadata: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
|
|
121
|
+
"""
|
|
122
|
+
self._metadata = metadata
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def spec(self):
|
|
126
|
+
"""Gets the spec of this CreateComponentWithConfigurationRequestBody.
|
|
127
|
+
|
|
128
|
+
:return: The spec of this CreateComponentWithConfigurationRequestBody.
|
|
129
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
|
|
130
|
+
"""
|
|
131
|
+
return self._spec
|
|
132
|
+
|
|
133
|
+
@spec.setter
|
|
134
|
+
def spec(self, spec):
|
|
135
|
+
"""Sets the spec of this CreateComponentWithConfigurationRequestBody.
|
|
136
|
+
|
|
137
|
+
:param spec: The spec of this CreateComponentWithConfigurationRequestBody.
|
|
138
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
|
|
139
|
+
"""
|
|
140
|
+
self._spec = spec
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def configurations(self):
|
|
144
|
+
"""Gets the configurations of this CreateComponentWithConfigurationRequestBody.
|
|
145
|
+
|
|
146
|
+
配置项列表。
|
|
147
|
+
|
|
148
|
+
:return: The configurations of this CreateComponentWithConfigurationRequestBody.
|
|
149
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
|
|
150
|
+
"""
|
|
151
|
+
return self._configurations
|
|
152
|
+
|
|
153
|
+
@configurations.setter
|
|
154
|
+
def configurations(self, configurations):
|
|
155
|
+
"""Sets the configurations of this CreateComponentWithConfigurationRequestBody.
|
|
156
|
+
|
|
157
|
+
配置项列表。
|
|
158
|
+
|
|
159
|
+
:param configurations: The configurations of this CreateComponentWithConfigurationRequestBody.
|
|
160
|
+
:type configurations: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
|
|
161
|
+
"""
|
|
162
|
+
self._configurations = configurations
|
|
163
|
+
|
|
164
|
+
def to_dict(self):
|
|
165
|
+
"""Returns the model properties as a dict"""
|
|
166
|
+
result = {}
|
|
167
|
+
|
|
168
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
169
|
+
value = getattr(self, attr)
|
|
170
|
+
if isinstance(value, list):
|
|
171
|
+
result[attr] = list(map(
|
|
172
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
173
|
+
value
|
|
174
|
+
))
|
|
175
|
+
elif hasattr(value, "to_dict"):
|
|
176
|
+
result[attr] = value.to_dict()
|
|
177
|
+
elif isinstance(value, dict):
|
|
178
|
+
result[attr] = dict(map(
|
|
179
|
+
lambda item: (item[0], item[1].to_dict())
|
|
180
|
+
if hasattr(item[1], "to_dict") else item,
|
|
181
|
+
value.items()
|
|
182
|
+
))
|
|
183
|
+
else:
|
|
184
|
+
if attr in self.sensitive_list:
|
|
185
|
+
result[attr] = "****"
|
|
186
|
+
else:
|
|
187
|
+
result[attr] = value
|
|
188
|
+
|
|
189
|
+
return result
|
|
190
|
+
|
|
191
|
+
def to_str(self):
|
|
192
|
+
"""Returns the string representation of the model"""
|
|
193
|
+
import simplejson as json
|
|
194
|
+
if six.PY2:
|
|
195
|
+
import sys
|
|
196
|
+
reload(sys)
|
|
197
|
+
sys.setdefaultencoding("utf-8")
|
|
198
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
199
|
+
|
|
200
|
+
def __repr__(self):
|
|
201
|
+
"""For `print`"""
|
|
202
|
+
return self.to_str()
|
|
203
|
+
|
|
204
|
+
def __eq__(self, other):
|
|
205
|
+
"""Returns true if both objects are equal"""
|
|
206
|
+
if not isinstance(other, CreateComponentWithConfigurationRequestBody):
|
|
207
|
+
return False
|
|
208
|
+
|
|
209
|
+
return self.__dict__ == other.__dict__
|
|
210
|
+
|
|
211
|
+
def __ne__(self, other):
|
|
212
|
+
"""Returns true if both objects are not equal"""
|
|
213
|
+
return not self == other
|
|
@@ -5,7 +5,7 @@ import six
|
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class CreateComponentWithConfigurationRequestBodyMetadata:
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
Attributes:
|
|
@@ -27,7 +27,7 @@ class CreateComponentRequestBodyMetadata:
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
def __init__(self, name=None, annotations=None):
|
|
30
|
-
"""
|
|
30
|
+
"""CreateComponentWithConfigurationRequestBodyMetadata
|
|
31
31
|
|
|
32
32
|
The model defined in huaweicloud sdk
|
|
33
33
|
|
|
@@ -48,44 +48,44 @@ class CreateComponentRequestBodyMetadata:
|
|
|
48
48
|
|
|
49
49
|
@property
|
|
50
50
|
def name(self):
|
|
51
|
-
"""Gets the name of this
|
|
51
|
+
"""Gets the name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
52
52
|
|
|
53
53
|
组件名称。
|
|
54
54
|
|
|
55
|
-
:return: The name of this
|
|
55
|
+
:return: The name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
56
56
|
:rtype: str
|
|
57
57
|
"""
|
|
58
58
|
return self._name
|
|
59
59
|
|
|
60
60
|
@name.setter
|
|
61
61
|
def name(self, name):
|
|
62
|
-
"""Sets the name of this
|
|
62
|
+
"""Sets the name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
63
63
|
|
|
64
64
|
组件名称。
|
|
65
65
|
|
|
66
|
-
:param name: The name of this
|
|
66
|
+
:param name: The name of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
67
67
|
:type name: str
|
|
68
68
|
"""
|
|
69
69
|
self._name = name
|
|
70
70
|
|
|
71
71
|
@property
|
|
72
72
|
def annotations(self):
|
|
73
|
-
"""Gets the annotations of this
|
|
73
|
+
"""Gets the annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
74
74
|
|
|
75
75
|
创建组件请求体附加参数,当前只支持version参数,此参数必填。
|
|
76
76
|
|
|
77
|
-
:return: The annotations of this
|
|
77
|
+
:return: The annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
78
78
|
:rtype: dict(str, str)
|
|
79
79
|
"""
|
|
80
80
|
return self._annotations
|
|
81
81
|
|
|
82
82
|
@annotations.setter
|
|
83
83
|
def annotations(self, annotations):
|
|
84
|
-
"""Sets the annotations of this
|
|
84
|
+
"""Sets the annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
85
85
|
|
|
86
86
|
创建组件请求体附加参数,当前只支持version参数,此参数必填。
|
|
87
87
|
|
|
88
|
-
:param annotations: The annotations of this
|
|
88
|
+
:param annotations: The annotations of this CreateComponentWithConfigurationRequestBodyMetadata.
|
|
89
89
|
:type annotations: dict(str, str)
|
|
90
90
|
"""
|
|
91
91
|
self._annotations = annotations
|
|
@@ -132,7 +132,7 @@ class CreateComponentRequestBodyMetadata:
|
|
|
132
132
|
|
|
133
133
|
def __eq__(self, other):
|
|
134
134
|
"""Returns true if both objects are equal"""
|
|
135
|
-
if not isinstance(other,
|
|
135
|
+
if not isinstance(other, CreateComponentWithConfigurationRequestBodyMetadata):
|
|
136
136
|
return False
|
|
137
137
|
|
|
138
138
|
return self.__dict__ == other.__dict__
|
|
@@ -5,7 +5,7 @@ import six
|
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class CreateComponentWithConfigurationRequestBodySpec:
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
Attributes:
|
|
@@ -35,7 +35,7 @@ class CreateComponentRequestBodySpec:
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
def __init__(self, runtime=None, replica=None, build=None, source=None, resource_limit=None, image_url=None):
|
|
38
|
-
"""
|
|
38
|
+
"""CreateComponentWithConfigurationRequestBodySpec
|
|
39
39
|
|
|
40
40
|
The model defined in huaweicloud sdk
|
|
41
41
|
|
|
@@ -74,120 +74,120 @@ class CreateComponentRequestBodySpec:
|
|
|
74
74
|
|
|
75
75
|
@property
|
|
76
76
|
def runtime(self):
|
|
77
|
-
"""Gets the runtime of this
|
|
77
|
+
"""Gets the runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
78
78
|
|
|
79
79
|
语言/运行时。
|
|
80
80
|
|
|
81
|
-
:return: The runtime of this
|
|
81
|
+
:return: The runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
82
82
|
:rtype: str
|
|
83
83
|
"""
|
|
84
84
|
return self._runtime
|
|
85
85
|
|
|
86
86
|
@runtime.setter
|
|
87
87
|
def runtime(self, runtime):
|
|
88
|
-
"""Sets the runtime of this
|
|
88
|
+
"""Sets the runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
89
89
|
|
|
90
90
|
语言/运行时。
|
|
91
91
|
|
|
92
|
-
:param runtime: The runtime of this
|
|
92
|
+
:param runtime: The runtime of this CreateComponentWithConfigurationRequestBodySpec.
|
|
93
93
|
:type runtime: str
|
|
94
94
|
"""
|
|
95
95
|
self._runtime = runtime
|
|
96
96
|
|
|
97
97
|
@property
|
|
98
98
|
def replica(self):
|
|
99
|
-
"""Gets the replica of this
|
|
99
|
+
"""Gets the replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
100
100
|
|
|
101
101
|
实例个数。
|
|
102
102
|
|
|
103
|
-
:return: The replica of this
|
|
103
|
+
:return: The replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
104
104
|
:rtype: int
|
|
105
105
|
"""
|
|
106
106
|
return self._replica
|
|
107
107
|
|
|
108
108
|
@replica.setter
|
|
109
109
|
def replica(self, replica):
|
|
110
|
-
"""Sets the replica of this
|
|
110
|
+
"""Sets the replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
111
111
|
|
|
112
112
|
实例个数。
|
|
113
113
|
|
|
114
|
-
:param replica: The replica of this
|
|
114
|
+
:param replica: The replica of this CreateComponentWithConfigurationRequestBodySpec.
|
|
115
115
|
:type replica: int
|
|
116
116
|
"""
|
|
117
117
|
self._replica = replica
|
|
118
118
|
|
|
119
119
|
@property
|
|
120
120
|
def build(self):
|
|
121
|
-
"""Gets the build of this
|
|
121
|
+
"""Gets the build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
122
122
|
|
|
123
|
-
:return: The build of this
|
|
123
|
+
:return: The build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
124
124
|
:rtype: :class:`huaweicloudsdkcae.v1.Build`
|
|
125
125
|
"""
|
|
126
126
|
return self._build
|
|
127
127
|
|
|
128
128
|
@build.setter
|
|
129
129
|
def build(self, build):
|
|
130
|
-
"""Sets the build of this
|
|
130
|
+
"""Sets the build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
131
131
|
|
|
132
|
-
:param build: The build of this
|
|
132
|
+
:param build: The build of this CreateComponentWithConfigurationRequestBodySpec.
|
|
133
133
|
:type build: :class:`huaweicloudsdkcae.v1.Build`
|
|
134
134
|
"""
|
|
135
135
|
self._build = build
|
|
136
136
|
|
|
137
137
|
@property
|
|
138
138
|
def source(self):
|
|
139
|
-
"""Gets the source of this
|
|
139
|
+
"""Gets the source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
140
140
|
|
|
141
|
-
:return: The source of this
|
|
141
|
+
:return: The source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
142
142
|
:rtype: :class:`huaweicloudsdkcae.v1.Source`
|
|
143
143
|
"""
|
|
144
144
|
return self._source
|
|
145
145
|
|
|
146
146
|
@source.setter
|
|
147
147
|
def source(self, source):
|
|
148
|
-
"""Sets the source of this
|
|
148
|
+
"""Sets the source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
149
149
|
|
|
150
|
-
:param source: The source of this
|
|
150
|
+
:param source: The source of this CreateComponentWithConfigurationRequestBodySpec.
|
|
151
151
|
:type source: :class:`huaweicloudsdkcae.v1.Source`
|
|
152
152
|
"""
|
|
153
153
|
self._source = source
|
|
154
154
|
|
|
155
155
|
@property
|
|
156
156
|
def resource_limit(self):
|
|
157
|
-
"""Gets the resource_limit of this
|
|
157
|
+
"""Gets the resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
158
158
|
|
|
159
|
-
:return: The resource_limit of this
|
|
159
|
+
:return: The resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
160
160
|
:rtype: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
161
161
|
"""
|
|
162
162
|
return self._resource_limit
|
|
163
163
|
|
|
164
164
|
@resource_limit.setter
|
|
165
165
|
def resource_limit(self, resource_limit):
|
|
166
|
-
"""Sets the resource_limit of this
|
|
166
|
+
"""Sets the resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
167
167
|
|
|
168
|
-
:param resource_limit: The resource_limit of this
|
|
168
|
+
:param resource_limit: The resource_limit of this CreateComponentWithConfigurationRequestBodySpec.
|
|
169
169
|
:type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
|
|
170
170
|
"""
|
|
171
171
|
self._resource_limit = resource_limit
|
|
172
172
|
|
|
173
173
|
@property
|
|
174
174
|
def image_url(self):
|
|
175
|
-
"""Gets the image_url of this
|
|
175
|
+
"""Gets the image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
176
176
|
|
|
177
177
|
镜像地址。
|
|
178
178
|
|
|
179
|
-
:return: The image_url of this
|
|
179
|
+
:return: The image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
180
180
|
:rtype: str
|
|
181
181
|
"""
|
|
182
182
|
return self._image_url
|
|
183
183
|
|
|
184
184
|
@image_url.setter
|
|
185
185
|
def image_url(self, image_url):
|
|
186
|
-
"""Sets the image_url of this
|
|
186
|
+
"""Sets the image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
187
187
|
|
|
188
188
|
镜像地址。
|
|
189
189
|
|
|
190
|
-
:param image_url: The image_url of this
|
|
190
|
+
:param image_url: The image_url of this CreateComponentWithConfigurationRequestBodySpec.
|
|
191
191
|
:type image_url: str
|
|
192
192
|
"""
|
|
193
193
|
self._image_url = image_url
|
|
@@ -234,7 +234,7 @@ class CreateComponentRequestBodySpec:
|
|
|
234
234
|
|
|
235
235
|
def __eq__(self, other):
|
|
236
236
|
"""Returns true if both objects are equal"""
|
|
237
|
-
if not isinstance(other,
|
|
237
|
+
if not isinstance(other, CreateComponentWithConfigurationRequestBodySpec):
|
|
238
238
|
return False
|
|
239
239
|
|
|
240
240
|
return self.__dict__ == other.__dict__
|