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,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListVpcEgressRequest:
|
|
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
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
26
|
+
'x_environment_id': 'X-Environment-ID'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None):
|
|
30
|
+
"""ListVpcEgressRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
35
|
+
:type x_enterprise_project_id: str
|
|
36
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
37
|
+
:type x_environment_id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._x_enterprise_project_id = None
|
|
43
|
+
self._x_environment_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if x_enterprise_project_id is not None:
|
|
47
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
48
|
+
self.x_environment_id = x_environment_id
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def x_enterprise_project_id(self):
|
|
52
|
+
"""Gets the x_enterprise_project_id of this ListVpcEgressRequest.
|
|
53
|
+
|
|
54
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
55
|
+
|
|
56
|
+
:return: The x_enterprise_project_id of this ListVpcEgressRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._x_enterprise_project_id
|
|
60
|
+
|
|
61
|
+
@x_enterprise_project_id.setter
|
|
62
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
63
|
+
"""Sets the x_enterprise_project_id of this ListVpcEgressRequest.
|
|
64
|
+
|
|
65
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
66
|
+
|
|
67
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this ListVpcEgressRequest.
|
|
68
|
+
:type x_enterprise_project_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def x_environment_id(self):
|
|
74
|
+
"""Gets the x_environment_id of this ListVpcEgressRequest.
|
|
75
|
+
|
|
76
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
77
|
+
|
|
78
|
+
:return: The x_environment_id of this ListVpcEgressRequest.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._x_environment_id
|
|
82
|
+
|
|
83
|
+
@x_environment_id.setter
|
|
84
|
+
def x_environment_id(self, x_environment_id):
|
|
85
|
+
"""Sets the x_environment_id of this ListVpcEgressRequest.
|
|
86
|
+
|
|
87
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
88
|
+
|
|
89
|
+
:param x_environment_id: The x_environment_id of this ListVpcEgressRequest.
|
|
90
|
+
:type x_environment_id: str
|
|
91
|
+
"""
|
|
92
|
+
self._x_environment_id = x_environment_id
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, ListVpcEgressRequest):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|
|
@@ -0,0 +1,162 @@
|
|
|
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 ListVpcEgressResponse(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': 'ApiVersionObj',
|
|
22
|
+
'kind': 'VpcEgressKindObj',
|
|
23
|
+
'spec': 'VpcEgressResponseBodySpec'
|
|
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
|
+
"""ListVpcEgressResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param api_version:
|
|
38
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
39
|
+
:param kind:
|
|
40
|
+
:type kind: :class:`huaweicloudsdkcae.v1.VpcEgressKindObj`
|
|
41
|
+
:param spec:
|
|
42
|
+
:type spec: :class:`huaweicloudsdkcae.v1.VpcEgressResponseBodySpec`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ListVpcEgressResponse, 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 ListVpcEgressResponse.
|
|
62
|
+
|
|
63
|
+
:return: The api_version of this ListVpcEgressResponse.
|
|
64
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
65
|
+
"""
|
|
66
|
+
return self._api_version
|
|
67
|
+
|
|
68
|
+
@api_version.setter
|
|
69
|
+
def api_version(self, api_version):
|
|
70
|
+
"""Sets the api_version of this ListVpcEgressResponse.
|
|
71
|
+
|
|
72
|
+
:param api_version: The api_version of this ListVpcEgressResponse.
|
|
73
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
74
|
+
"""
|
|
75
|
+
self._api_version = api_version
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def kind(self):
|
|
79
|
+
"""Gets the kind of this ListVpcEgressResponse.
|
|
80
|
+
|
|
81
|
+
:return: The kind of this ListVpcEgressResponse.
|
|
82
|
+
:rtype: :class:`huaweicloudsdkcae.v1.VpcEgressKindObj`
|
|
83
|
+
"""
|
|
84
|
+
return self._kind
|
|
85
|
+
|
|
86
|
+
@kind.setter
|
|
87
|
+
def kind(self, kind):
|
|
88
|
+
"""Sets the kind of this ListVpcEgressResponse.
|
|
89
|
+
|
|
90
|
+
:param kind: The kind of this ListVpcEgressResponse.
|
|
91
|
+
:type kind: :class:`huaweicloudsdkcae.v1.VpcEgressKindObj`
|
|
92
|
+
"""
|
|
93
|
+
self._kind = kind
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def spec(self):
|
|
97
|
+
"""Gets the spec of this ListVpcEgressResponse.
|
|
98
|
+
|
|
99
|
+
:return: The spec of this ListVpcEgressResponse.
|
|
100
|
+
:rtype: :class:`huaweicloudsdkcae.v1.VpcEgressResponseBodySpec`
|
|
101
|
+
"""
|
|
102
|
+
return self._spec
|
|
103
|
+
|
|
104
|
+
@spec.setter
|
|
105
|
+
def spec(self, spec):
|
|
106
|
+
"""Sets the spec of this ListVpcEgressResponse.
|
|
107
|
+
|
|
108
|
+
:param spec: The spec of this ListVpcEgressResponse.
|
|
109
|
+
:type spec: :class:`huaweicloudsdkcae.v1.VpcEgressResponseBodySpec`
|
|
110
|
+
"""
|
|
111
|
+
self._spec = spec
|
|
112
|
+
|
|
113
|
+
def to_dict(self):
|
|
114
|
+
"""Returns the model properties as a dict"""
|
|
115
|
+
result = {}
|
|
116
|
+
|
|
117
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
118
|
+
value = getattr(self, attr)
|
|
119
|
+
if isinstance(value, list):
|
|
120
|
+
result[attr] = list(map(
|
|
121
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
122
|
+
value
|
|
123
|
+
))
|
|
124
|
+
elif hasattr(value, "to_dict"):
|
|
125
|
+
result[attr] = value.to_dict()
|
|
126
|
+
elif isinstance(value, dict):
|
|
127
|
+
result[attr] = dict(map(
|
|
128
|
+
lambda item: (item[0], item[1].to_dict())
|
|
129
|
+
if hasattr(item[1], "to_dict") else item,
|
|
130
|
+
value.items()
|
|
131
|
+
))
|
|
132
|
+
else:
|
|
133
|
+
if attr in self.sensitive_list:
|
|
134
|
+
result[attr] = "****"
|
|
135
|
+
else:
|
|
136
|
+
result[attr] = value
|
|
137
|
+
|
|
138
|
+
return result
|
|
139
|
+
|
|
140
|
+
def to_str(self):
|
|
141
|
+
"""Returns the string representation of the model"""
|
|
142
|
+
import simplejson as json
|
|
143
|
+
if six.PY2:
|
|
144
|
+
import sys
|
|
145
|
+
reload(sys)
|
|
146
|
+
sys.setdefaultencoding("utf-8")
|
|
147
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
148
|
+
|
|
149
|
+
def __repr__(self):
|
|
150
|
+
"""For `print`"""
|
|
151
|
+
return self.to_str()
|
|
152
|
+
|
|
153
|
+
def __eq__(self, other):
|
|
154
|
+
"""Returns true if both objects are equal"""
|
|
155
|
+
if not isinstance(other, ListVpcEgressResponse):
|
|
156
|
+
return False
|
|
157
|
+
|
|
158
|
+
return self.__dict__ == other.__dict__
|
|
159
|
+
|
|
160
|
+
def __ne__(self, other):
|
|
161
|
+
"""Returns true if both objects are not equal"""
|
|
162
|
+
return not self == other
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NoticeRuleNotification:
|
|
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
|
+
'protocol': 'str',
|
|
21
|
+
'endpoint': 'str',
|
|
22
|
+
'template': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'protocol': 'protocol',
|
|
27
|
+
'endpoint': 'endpoint',
|
|
28
|
+
'template': 'template'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, protocol=None, endpoint=None, template=None):
|
|
32
|
+
"""NoticeRuleNotification
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param protocol: 通知的协议类型,包括短信,邮件,企业微信群消息等。
|
|
37
|
+
:type protocol: str
|
|
38
|
+
:param endpoint: 通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
|
|
39
|
+
:type endpoint: str
|
|
40
|
+
:param template: 通知的模板语言。 ZH,中文。 EN,英文。
|
|
41
|
+
:type template: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._protocol = None
|
|
47
|
+
self._endpoint = None
|
|
48
|
+
self._template = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.protocol = protocol
|
|
52
|
+
self.endpoint = endpoint
|
|
53
|
+
if template is not None:
|
|
54
|
+
self.template = template
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def protocol(self):
|
|
58
|
+
"""Gets the protocol of this NoticeRuleNotification.
|
|
59
|
+
|
|
60
|
+
通知的协议类型,包括短信,邮件,企业微信群消息等。
|
|
61
|
+
|
|
62
|
+
:return: The protocol of this NoticeRuleNotification.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._protocol
|
|
66
|
+
|
|
67
|
+
@protocol.setter
|
|
68
|
+
def protocol(self, protocol):
|
|
69
|
+
"""Sets the protocol of this NoticeRuleNotification.
|
|
70
|
+
|
|
71
|
+
通知的协议类型,包括短信,邮件,企业微信群消息等。
|
|
72
|
+
|
|
73
|
+
:param protocol: The protocol of this NoticeRuleNotification.
|
|
74
|
+
:type protocol: str
|
|
75
|
+
"""
|
|
76
|
+
self._protocol = protocol
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def endpoint(self):
|
|
80
|
+
"""Gets the endpoint of this NoticeRuleNotification.
|
|
81
|
+
|
|
82
|
+
通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
|
|
83
|
+
|
|
84
|
+
:return: The endpoint of this NoticeRuleNotification.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._endpoint
|
|
88
|
+
|
|
89
|
+
@endpoint.setter
|
|
90
|
+
def endpoint(self, endpoint):
|
|
91
|
+
"""Sets the endpoint of this NoticeRuleNotification.
|
|
92
|
+
|
|
93
|
+
通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
|
|
94
|
+
|
|
95
|
+
:param endpoint: The endpoint of this NoticeRuleNotification.
|
|
96
|
+
:type endpoint: str
|
|
97
|
+
"""
|
|
98
|
+
self._endpoint = endpoint
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def template(self):
|
|
102
|
+
"""Gets the template of this NoticeRuleNotification.
|
|
103
|
+
|
|
104
|
+
通知的模板语言。 ZH,中文。 EN,英文。
|
|
105
|
+
|
|
106
|
+
:return: The template of this NoticeRuleNotification.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._template
|
|
110
|
+
|
|
111
|
+
@template.setter
|
|
112
|
+
def template(self, template):
|
|
113
|
+
"""Sets the template of this NoticeRuleNotification.
|
|
114
|
+
|
|
115
|
+
通知的模板语言。 ZH,中文。 EN,英文。
|
|
116
|
+
|
|
117
|
+
:param template: The template of this NoticeRuleNotification.
|
|
118
|
+
:type template: str
|
|
119
|
+
"""
|
|
120
|
+
self._template = template
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
"""Returns the model properties as a dict"""
|
|
124
|
+
result = {}
|
|
125
|
+
|
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
127
|
+
value = getattr(self, attr)
|
|
128
|
+
if isinstance(value, list):
|
|
129
|
+
result[attr] = list(map(
|
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
131
|
+
value
|
|
132
|
+
))
|
|
133
|
+
elif hasattr(value, "to_dict"):
|
|
134
|
+
result[attr] = value.to_dict()
|
|
135
|
+
elif isinstance(value, dict):
|
|
136
|
+
result[attr] = dict(map(
|
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
|
139
|
+
value.items()
|
|
140
|
+
))
|
|
141
|
+
else:
|
|
142
|
+
if attr in self.sensitive_list:
|
|
143
|
+
result[attr] = "****"
|
|
144
|
+
else:
|
|
145
|
+
result[attr] = value
|
|
146
|
+
|
|
147
|
+
return result
|
|
148
|
+
|
|
149
|
+
def to_str(self):
|
|
150
|
+
"""Returns the string representation of the model"""
|
|
151
|
+
import simplejson as json
|
|
152
|
+
if six.PY2:
|
|
153
|
+
import sys
|
|
154
|
+
reload(sys)
|
|
155
|
+
sys.setdefaultencoding("utf-8")
|
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
157
|
+
|
|
158
|
+
def __repr__(self):
|
|
159
|
+
"""For `print`"""
|
|
160
|
+
return self.to_str()
|
|
161
|
+
|
|
162
|
+
def __eq__(self, other):
|
|
163
|
+
"""Returns true if both objects are equal"""
|
|
164
|
+
if not isinstance(other, NoticeRuleNotification):
|
|
165
|
+
return False
|
|
166
|
+
|
|
167
|
+
return self.__dict__ == other.__dict__
|
|
168
|
+
|
|
169
|
+
def __ne__(self, other):
|
|
170
|
+
"""Returns true if both objects are not equal"""
|
|
171
|
+
return not self == other
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NoticeRuleScope:
|
|
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
|
+
'type': 'str',
|
|
21
|
+
'environments': 'list[str]',
|
|
22
|
+
'applications': 'list[str]',
|
|
23
|
+
'components': 'list[str]'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'type': 'type',
|
|
28
|
+
'environments': 'environments',
|
|
29
|
+
'applications': 'applications',
|
|
30
|
+
'components': 'components'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, type=None, environments=None, applications=None, components=None):
|
|
34
|
+
"""NoticeRuleScope
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param type: 生效范围的类型。包括environments(对指定环境下所有组件生效),applications(对指定应用下所有组件生效),components(对指定的组件生效)。
|
|
39
|
+
:type type: str
|
|
40
|
+
:param environments: 生效的环境id列表。
|
|
41
|
+
:type environments: list[str]
|
|
42
|
+
:param applications: 生效的应用id列表。
|
|
43
|
+
:type applications: list[str]
|
|
44
|
+
:param components: 生效的组件id列表。
|
|
45
|
+
:type components: list[str]
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._type = None
|
|
51
|
+
self._environments = None
|
|
52
|
+
self._applications = None
|
|
53
|
+
self._components = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.type = type
|
|
57
|
+
if environments is not None:
|
|
58
|
+
self.environments = environments
|
|
59
|
+
if applications is not None:
|
|
60
|
+
self.applications = applications
|
|
61
|
+
if components is not None:
|
|
62
|
+
self.components = components
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def type(self):
|
|
66
|
+
"""Gets the type of this NoticeRuleScope.
|
|
67
|
+
|
|
68
|
+
生效范围的类型。包括environments(对指定环境下所有组件生效),applications(对指定应用下所有组件生效),components(对指定的组件生效)。
|
|
69
|
+
|
|
70
|
+
:return: The type of this NoticeRuleScope.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._type
|
|
74
|
+
|
|
75
|
+
@type.setter
|
|
76
|
+
def type(self, type):
|
|
77
|
+
"""Sets the type of this NoticeRuleScope.
|
|
78
|
+
|
|
79
|
+
生效范围的类型。包括environments(对指定环境下所有组件生效),applications(对指定应用下所有组件生效),components(对指定的组件生效)。
|
|
80
|
+
|
|
81
|
+
:param type: The type of this NoticeRuleScope.
|
|
82
|
+
:type type: str
|
|
83
|
+
"""
|
|
84
|
+
self._type = type
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def environments(self):
|
|
88
|
+
"""Gets the environments of this NoticeRuleScope.
|
|
89
|
+
|
|
90
|
+
生效的环境id列表。
|
|
91
|
+
|
|
92
|
+
:return: The environments of this NoticeRuleScope.
|
|
93
|
+
:rtype: list[str]
|
|
94
|
+
"""
|
|
95
|
+
return self._environments
|
|
96
|
+
|
|
97
|
+
@environments.setter
|
|
98
|
+
def environments(self, environments):
|
|
99
|
+
"""Sets the environments of this NoticeRuleScope.
|
|
100
|
+
|
|
101
|
+
生效的环境id列表。
|
|
102
|
+
|
|
103
|
+
:param environments: The environments of this NoticeRuleScope.
|
|
104
|
+
:type environments: list[str]
|
|
105
|
+
"""
|
|
106
|
+
self._environments = environments
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def applications(self):
|
|
110
|
+
"""Gets the applications of this NoticeRuleScope.
|
|
111
|
+
|
|
112
|
+
生效的应用id列表。
|
|
113
|
+
|
|
114
|
+
:return: The applications of this NoticeRuleScope.
|
|
115
|
+
:rtype: list[str]
|
|
116
|
+
"""
|
|
117
|
+
return self._applications
|
|
118
|
+
|
|
119
|
+
@applications.setter
|
|
120
|
+
def applications(self, applications):
|
|
121
|
+
"""Sets the applications of this NoticeRuleScope.
|
|
122
|
+
|
|
123
|
+
生效的应用id列表。
|
|
124
|
+
|
|
125
|
+
:param applications: The applications of this NoticeRuleScope.
|
|
126
|
+
:type applications: list[str]
|
|
127
|
+
"""
|
|
128
|
+
self._applications = applications
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def components(self):
|
|
132
|
+
"""Gets the components of this NoticeRuleScope.
|
|
133
|
+
|
|
134
|
+
生效的组件id列表。
|
|
135
|
+
|
|
136
|
+
:return: The components of this NoticeRuleScope.
|
|
137
|
+
:rtype: list[str]
|
|
138
|
+
"""
|
|
139
|
+
return self._components
|
|
140
|
+
|
|
141
|
+
@components.setter
|
|
142
|
+
def components(self, components):
|
|
143
|
+
"""Sets the components of this NoticeRuleScope.
|
|
144
|
+
|
|
145
|
+
生效的组件id列表。
|
|
146
|
+
|
|
147
|
+
:param components: The components of this NoticeRuleScope.
|
|
148
|
+
:type components: list[str]
|
|
149
|
+
"""
|
|
150
|
+
self._components = components
|
|
151
|
+
|
|
152
|
+
def to_dict(self):
|
|
153
|
+
"""Returns the model properties as a dict"""
|
|
154
|
+
result = {}
|
|
155
|
+
|
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
157
|
+
value = getattr(self, attr)
|
|
158
|
+
if isinstance(value, list):
|
|
159
|
+
result[attr] = list(map(
|
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
161
|
+
value
|
|
162
|
+
))
|
|
163
|
+
elif hasattr(value, "to_dict"):
|
|
164
|
+
result[attr] = value.to_dict()
|
|
165
|
+
elif isinstance(value, dict):
|
|
166
|
+
result[attr] = dict(map(
|
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
|
169
|
+
value.items()
|
|
170
|
+
))
|
|
171
|
+
else:
|
|
172
|
+
if attr in self.sensitive_list:
|
|
173
|
+
result[attr] = "****"
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
|
|
177
|
+
return result
|
|
178
|
+
|
|
179
|
+
def to_str(self):
|
|
180
|
+
"""Returns the string representation of the model"""
|
|
181
|
+
import simplejson as json
|
|
182
|
+
if six.PY2:
|
|
183
|
+
import sys
|
|
184
|
+
reload(sys)
|
|
185
|
+
sys.setdefaultencoding("utf-8")
|
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
187
|
+
|
|
188
|
+
def __repr__(self):
|
|
189
|
+
"""For `print`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other):
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, NoticeRuleScope):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other):
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|