huaweicloudsdkcae 3.1.85__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 +67 -9
- 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.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/RECORD +68 -36
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkcae/v1/model/event_item.py +0 -318
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.85.dist-info → huaweicloudsdkcae-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateNoticeRuleReq:
|
|
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': 'str',
|
|
21
|
+
'kind': 'str',
|
|
22
|
+
'spec': 'CreateNoticeRuleItem'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'api_version': 'api_version',
|
|
27
|
+
'kind': 'kind',
|
|
28
|
+
'spec': 'spec'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, api_version=None, kind=None, spec=None):
|
|
32
|
+
"""CreateNoticeRuleReq
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
37
|
+
:type api_version: str
|
|
38
|
+
:param kind: API类型,固定值“NoticeRule”,该值不可修改。
|
|
39
|
+
:type kind: str
|
|
40
|
+
:param spec:
|
|
41
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleItem`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._api_version = None
|
|
47
|
+
self._kind = None
|
|
48
|
+
self._spec = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.api_version = api_version
|
|
52
|
+
self.kind = kind
|
|
53
|
+
self.spec = spec
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def api_version(self):
|
|
57
|
+
"""Gets the api_version of this CreateNoticeRuleReq.
|
|
58
|
+
|
|
59
|
+
API版本,固定值“v1”,该值不可修改。
|
|
60
|
+
|
|
61
|
+
:return: The api_version of this CreateNoticeRuleReq.
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._api_version
|
|
65
|
+
|
|
66
|
+
@api_version.setter
|
|
67
|
+
def api_version(self, api_version):
|
|
68
|
+
"""Sets the api_version of this CreateNoticeRuleReq.
|
|
69
|
+
|
|
70
|
+
API版本,固定值“v1”,该值不可修改。
|
|
71
|
+
|
|
72
|
+
:param api_version: The api_version of this CreateNoticeRuleReq.
|
|
73
|
+
:type api_version: str
|
|
74
|
+
"""
|
|
75
|
+
self._api_version = api_version
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def kind(self):
|
|
79
|
+
"""Gets the kind of this CreateNoticeRuleReq.
|
|
80
|
+
|
|
81
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
82
|
+
|
|
83
|
+
:return: The kind of this CreateNoticeRuleReq.
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._kind
|
|
87
|
+
|
|
88
|
+
@kind.setter
|
|
89
|
+
def kind(self, kind):
|
|
90
|
+
"""Sets the kind of this CreateNoticeRuleReq.
|
|
91
|
+
|
|
92
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
93
|
+
|
|
94
|
+
:param kind: The kind of this CreateNoticeRuleReq.
|
|
95
|
+
:type kind: str
|
|
96
|
+
"""
|
|
97
|
+
self._kind = kind
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def spec(self):
|
|
101
|
+
"""Gets the spec of this CreateNoticeRuleReq.
|
|
102
|
+
|
|
103
|
+
:return: The spec of this CreateNoticeRuleReq.
|
|
104
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleItem`
|
|
105
|
+
"""
|
|
106
|
+
return self._spec
|
|
107
|
+
|
|
108
|
+
@spec.setter
|
|
109
|
+
def spec(self, spec):
|
|
110
|
+
"""Sets the spec of this CreateNoticeRuleReq.
|
|
111
|
+
|
|
112
|
+
:param spec: The spec of this CreateNoticeRuleReq.
|
|
113
|
+
:type spec: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleItem`
|
|
114
|
+
"""
|
|
115
|
+
self._spec = spec
|
|
116
|
+
|
|
117
|
+
def to_dict(self):
|
|
118
|
+
"""Returns the model properties as a dict"""
|
|
119
|
+
result = {}
|
|
120
|
+
|
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
122
|
+
value = getattr(self, attr)
|
|
123
|
+
if isinstance(value, list):
|
|
124
|
+
result[attr] = list(map(
|
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
126
|
+
value
|
|
127
|
+
))
|
|
128
|
+
elif hasattr(value, "to_dict"):
|
|
129
|
+
result[attr] = value.to_dict()
|
|
130
|
+
elif isinstance(value, dict):
|
|
131
|
+
result[attr] = dict(map(
|
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
|
134
|
+
value.items()
|
|
135
|
+
))
|
|
136
|
+
else:
|
|
137
|
+
if attr in self.sensitive_list:
|
|
138
|
+
result[attr] = "****"
|
|
139
|
+
else:
|
|
140
|
+
result[attr] = value
|
|
141
|
+
|
|
142
|
+
return result
|
|
143
|
+
|
|
144
|
+
def to_str(self):
|
|
145
|
+
"""Returns the string representation of the model"""
|
|
146
|
+
import simplejson as json
|
|
147
|
+
if six.PY2:
|
|
148
|
+
import sys
|
|
149
|
+
reload(sys)
|
|
150
|
+
sys.setdefaultencoding("utf-8")
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, CreateNoticeRuleReq):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
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 CreateNoticeRuleRequest:
|
|
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': 'CreateNoticeRuleReq'
|
|
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
|
+
"""CreateNoticeRuleRequest
|
|
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 CreateNoticeRuleRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleReq`
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
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 CreateNoticeRuleRequest.
|
|
104
|
+
|
|
105
|
+
:return: The body of this CreateNoticeRuleRequest.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleReq`
|
|
107
|
+
"""
|
|
108
|
+
return self._body
|
|
109
|
+
|
|
110
|
+
@body.setter
|
|
111
|
+
def body(self, body):
|
|
112
|
+
"""Sets the body of this CreateNoticeRuleRequest.
|
|
113
|
+
|
|
114
|
+
:param body: The body of this CreateNoticeRuleRequest.
|
|
115
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleReq`
|
|
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, CreateNoticeRuleRequest):
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
return self.__dict__ == other.__dict__
|
|
165
|
+
|
|
166
|
+
def __ne__(self, other):
|
|
167
|
+
"""Returns true if both objects are not equal"""
|
|
168
|
+
return not self == other
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateNoticeRuleRespItem:
|
|
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
|
+
'id': 'str',
|
|
21
|
+
'name': 'str',
|
|
22
|
+
'event_name': 'str',
|
|
23
|
+
'scope': 'NoticeRuleScope',
|
|
24
|
+
'trigger_policy': 'TriggerPolicy',
|
|
25
|
+
'notification': 'NoticeRuleNotification',
|
|
26
|
+
'enable': 'bool'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
attribute_map = {
|
|
30
|
+
'id': 'id',
|
|
31
|
+
'name': 'name',
|
|
32
|
+
'event_name': 'event_name',
|
|
33
|
+
'scope': 'scope',
|
|
34
|
+
'trigger_policy': 'trigger_policy',
|
|
35
|
+
'notification': 'notification',
|
|
36
|
+
'enable': 'enable'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def __init__(self, id=None, name=None, event_name=None, scope=None, trigger_policy=None, notification=None, enable=None):
|
|
40
|
+
"""CreateNoticeRuleRespItem
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param id: 通知规则的唯一标识。
|
|
45
|
+
:type id: str
|
|
46
|
+
:param name: 通知名称。
|
|
47
|
+
:type name: str
|
|
48
|
+
:param event_name: 触发事件名称。
|
|
49
|
+
:type event_name: str
|
|
50
|
+
:param scope:
|
|
51
|
+
:type scope: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
|
|
52
|
+
:param trigger_policy:
|
|
53
|
+
:type trigger_policy: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
|
|
54
|
+
:param notification:
|
|
55
|
+
:type notification: :class:`huaweicloudsdkcae.v1.NoticeRuleNotification`
|
|
56
|
+
:param enable: 是否启用。
|
|
57
|
+
:type enable: bool
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
self._id = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._event_name = None
|
|
65
|
+
self._scope = None
|
|
66
|
+
self._trigger_policy = None
|
|
67
|
+
self._notification = None
|
|
68
|
+
self._enable = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
|
|
71
|
+
if id is not None:
|
|
72
|
+
self.id = id
|
|
73
|
+
if name is not None:
|
|
74
|
+
self.name = name
|
|
75
|
+
if event_name is not None:
|
|
76
|
+
self.event_name = event_name
|
|
77
|
+
if scope is not None:
|
|
78
|
+
self.scope = scope
|
|
79
|
+
if trigger_policy is not None:
|
|
80
|
+
self.trigger_policy = trigger_policy
|
|
81
|
+
if notification is not None:
|
|
82
|
+
self.notification = notification
|
|
83
|
+
if enable is not None:
|
|
84
|
+
self.enable = enable
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def id(self):
|
|
88
|
+
"""Gets the id of this CreateNoticeRuleRespItem.
|
|
89
|
+
|
|
90
|
+
通知规则的唯一标识。
|
|
91
|
+
|
|
92
|
+
:return: The id of this CreateNoticeRuleRespItem.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._id
|
|
96
|
+
|
|
97
|
+
@id.setter
|
|
98
|
+
def id(self, id):
|
|
99
|
+
"""Sets the id of this CreateNoticeRuleRespItem.
|
|
100
|
+
|
|
101
|
+
通知规则的唯一标识。
|
|
102
|
+
|
|
103
|
+
:param id: The id of this CreateNoticeRuleRespItem.
|
|
104
|
+
:type id: str
|
|
105
|
+
"""
|
|
106
|
+
self._id = id
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def name(self):
|
|
110
|
+
"""Gets the name of this CreateNoticeRuleRespItem.
|
|
111
|
+
|
|
112
|
+
通知名称。
|
|
113
|
+
|
|
114
|
+
:return: The name of this CreateNoticeRuleRespItem.
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._name
|
|
118
|
+
|
|
119
|
+
@name.setter
|
|
120
|
+
def name(self, name):
|
|
121
|
+
"""Sets the name of this CreateNoticeRuleRespItem.
|
|
122
|
+
|
|
123
|
+
通知名称。
|
|
124
|
+
|
|
125
|
+
:param name: The name of this CreateNoticeRuleRespItem.
|
|
126
|
+
:type name: str
|
|
127
|
+
"""
|
|
128
|
+
self._name = name
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def event_name(self):
|
|
132
|
+
"""Gets the event_name of this CreateNoticeRuleRespItem.
|
|
133
|
+
|
|
134
|
+
触发事件名称。
|
|
135
|
+
|
|
136
|
+
:return: The event_name of this CreateNoticeRuleRespItem.
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._event_name
|
|
140
|
+
|
|
141
|
+
@event_name.setter
|
|
142
|
+
def event_name(self, event_name):
|
|
143
|
+
"""Sets the event_name of this CreateNoticeRuleRespItem.
|
|
144
|
+
|
|
145
|
+
触发事件名称。
|
|
146
|
+
|
|
147
|
+
:param event_name: The event_name of this CreateNoticeRuleRespItem.
|
|
148
|
+
:type event_name: str
|
|
149
|
+
"""
|
|
150
|
+
self._event_name = event_name
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def scope(self):
|
|
154
|
+
"""Gets the scope of this CreateNoticeRuleRespItem.
|
|
155
|
+
|
|
156
|
+
:return: The scope of this CreateNoticeRuleRespItem.
|
|
157
|
+
:rtype: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
|
|
158
|
+
"""
|
|
159
|
+
return self._scope
|
|
160
|
+
|
|
161
|
+
@scope.setter
|
|
162
|
+
def scope(self, scope):
|
|
163
|
+
"""Sets the scope of this CreateNoticeRuleRespItem.
|
|
164
|
+
|
|
165
|
+
:param scope: The scope of this CreateNoticeRuleRespItem.
|
|
166
|
+
:type scope: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
|
|
167
|
+
"""
|
|
168
|
+
self._scope = scope
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def trigger_policy(self):
|
|
172
|
+
"""Gets the trigger_policy of this CreateNoticeRuleRespItem.
|
|
173
|
+
|
|
174
|
+
:return: The trigger_policy of this CreateNoticeRuleRespItem.
|
|
175
|
+
:rtype: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
|
|
176
|
+
"""
|
|
177
|
+
return self._trigger_policy
|
|
178
|
+
|
|
179
|
+
@trigger_policy.setter
|
|
180
|
+
def trigger_policy(self, trigger_policy):
|
|
181
|
+
"""Sets the trigger_policy of this CreateNoticeRuleRespItem.
|
|
182
|
+
|
|
183
|
+
:param trigger_policy: The trigger_policy of this CreateNoticeRuleRespItem.
|
|
184
|
+
:type trigger_policy: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
|
|
185
|
+
"""
|
|
186
|
+
self._trigger_policy = trigger_policy
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def notification(self):
|
|
190
|
+
"""Gets the notification of this CreateNoticeRuleRespItem.
|
|
191
|
+
|
|
192
|
+
:return: The notification of this CreateNoticeRuleRespItem.
|
|
193
|
+
:rtype: :class:`huaweicloudsdkcae.v1.NoticeRuleNotification`
|
|
194
|
+
"""
|
|
195
|
+
return self._notification
|
|
196
|
+
|
|
197
|
+
@notification.setter
|
|
198
|
+
def notification(self, notification):
|
|
199
|
+
"""Sets the notification of this CreateNoticeRuleRespItem.
|
|
200
|
+
|
|
201
|
+
:param notification: The notification of this CreateNoticeRuleRespItem.
|
|
202
|
+
:type notification: :class:`huaweicloudsdkcae.v1.NoticeRuleNotification`
|
|
203
|
+
"""
|
|
204
|
+
self._notification = notification
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def enable(self):
|
|
208
|
+
"""Gets the enable of this CreateNoticeRuleRespItem.
|
|
209
|
+
|
|
210
|
+
是否启用。
|
|
211
|
+
|
|
212
|
+
:return: The enable of this CreateNoticeRuleRespItem.
|
|
213
|
+
:rtype: bool
|
|
214
|
+
"""
|
|
215
|
+
return self._enable
|
|
216
|
+
|
|
217
|
+
@enable.setter
|
|
218
|
+
def enable(self, enable):
|
|
219
|
+
"""Sets the enable of this CreateNoticeRuleRespItem.
|
|
220
|
+
|
|
221
|
+
是否启用。
|
|
222
|
+
|
|
223
|
+
:param enable: The enable of this CreateNoticeRuleRespItem.
|
|
224
|
+
:type enable: bool
|
|
225
|
+
"""
|
|
226
|
+
self._enable = enable
|
|
227
|
+
|
|
228
|
+
def to_dict(self):
|
|
229
|
+
"""Returns the model properties as a dict"""
|
|
230
|
+
result = {}
|
|
231
|
+
|
|
232
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
233
|
+
value = getattr(self, attr)
|
|
234
|
+
if isinstance(value, list):
|
|
235
|
+
result[attr] = list(map(
|
|
236
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
237
|
+
value
|
|
238
|
+
))
|
|
239
|
+
elif hasattr(value, "to_dict"):
|
|
240
|
+
result[attr] = value.to_dict()
|
|
241
|
+
elif isinstance(value, dict):
|
|
242
|
+
result[attr] = dict(map(
|
|
243
|
+
lambda item: (item[0], item[1].to_dict())
|
|
244
|
+
if hasattr(item[1], "to_dict") else item,
|
|
245
|
+
value.items()
|
|
246
|
+
))
|
|
247
|
+
else:
|
|
248
|
+
if attr in self.sensitive_list:
|
|
249
|
+
result[attr] = "****"
|
|
250
|
+
else:
|
|
251
|
+
result[attr] = value
|
|
252
|
+
|
|
253
|
+
return result
|
|
254
|
+
|
|
255
|
+
def to_str(self):
|
|
256
|
+
"""Returns the string representation of the model"""
|
|
257
|
+
import simplejson as json
|
|
258
|
+
if six.PY2:
|
|
259
|
+
import sys
|
|
260
|
+
reload(sys)
|
|
261
|
+
sys.setdefaultencoding("utf-8")
|
|
262
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
263
|
+
|
|
264
|
+
def __repr__(self):
|
|
265
|
+
"""For `print`"""
|
|
266
|
+
return self.to_str()
|
|
267
|
+
|
|
268
|
+
def __eq__(self, other):
|
|
269
|
+
"""Returns true if both objects are equal"""
|
|
270
|
+
if not isinstance(other, CreateNoticeRuleRespItem):
|
|
271
|
+
return False
|
|
272
|
+
|
|
273
|
+
return self.__dict__ == other.__dict__
|
|
274
|
+
|
|
275
|
+
def __ne__(self, other):
|
|
276
|
+
"""Returns true if both objects are not equal"""
|
|
277
|
+
return not self == other
|