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