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,144 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ResourcesCredential:
|
|
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
|
+
'access': 'str',
|
|
21
|
+
'secret': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'access': 'access',
|
|
26
|
+
'secret': 'secret'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, access=None, secret=None):
|
|
30
|
+
"""ResourcesCredential
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param access: 用户access key,当前access key应该包含访问授权云存储的权限。
|
|
35
|
+
:type access: str
|
|
36
|
+
:param secret: 用户secret key,当前secret key应该包含访问授权云存储的权限。
|
|
37
|
+
:type secret: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._access = None
|
|
43
|
+
self._secret = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if access is not None:
|
|
47
|
+
self.access = access
|
|
48
|
+
if secret is not None:
|
|
49
|
+
self.secret = secret
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def access(self):
|
|
53
|
+
"""Gets the access of this ResourcesCredential.
|
|
54
|
+
|
|
55
|
+
用户access key,当前access key应该包含访问授权云存储的权限。
|
|
56
|
+
|
|
57
|
+
:return: The access of this ResourcesCredential.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._access
|
|
61
|
+
|
|
62
|
+
@access.setter
|
|
63
|
+
def access(self, access):
|
|
64
|
+
"""Sets the access of this ResourcesCredential.
|
|
65
|
+
|
|
66
|
+
用户access key,当前access key应该包含访问授权云存储的权限。
|
|
67
|
+
|
|
68
|
+
:param access: The access of this ResourcesCredential.
|
|
69
|
+
:type access: str
|
|
70
|
+
"""
|
|
71
|
+
self._access = access
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def secret(self):
|
|
75
|
+
"""Gets the secret of this ResourcesCredential.
|
|
76
|
+
|
|
77
|
+
用户secret key,当前secret key应该包含访问授权云存储的权限。
|
|
78
|
+
|
|
79
|
+
:return: The secret of this ResourcesCredential.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._secret
|
|
83
|
+
|
|
84
|
+
@secret.setter
|
|
85
|
+
def secret(self, secret):
|
|
86
|
+
"""Sets the secret of this ResourcesCredential.
|
|
87
|
+
|
|
88
|
+
用户secret key,当前secret key应该包含访问授权云存储的权限。
|
|
89
|
+
|
|
90
|
+
:param secret: The secret of this ResourcesCredential.
|
|
91
|
+
:type secret: str
|
|
92
|
+
"""
|
|
93
|
+
self._secret = secret
|
|
94
|
+
|
|
95
|
+
def to_dict(self):
|
|
96
|
+
"""Returns the model properties as a dict"""
|
|
97
|
+
result = {}
|
|
98
|
+
|
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
100
|
+
value = getattr(self, attr)
|
|
101
|
+
if isinstance(value, list):
|
|
102
|
+
result[attr] = list(map(
|
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
104
|
+
value
|
|
105
|
+
))
|
|
106
|
+
elif hasattr(value, "to_dict"):
|
|
107
|
+
result[attr] = value.to_dict()
|
|
108
|
+
elif isinstance(value, dict):
|
|
109
|
+
result[attr] = dict(map(
|
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
|
112
|
+
value.items()
|
|
113
|
+
))
|
|
114
|
+
else:
|
|
115
|
+
if attr in self.sensitive_list:
|
|
116
|
+
result[attr] = "****"
|
|
117
|
+
else:
|
|
118
|
+
result[attr] = value
|
|
119
|
+
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def to_str(self):
|
|
123
|
+
"""Returns the string representation of the model"""
|
|
124
|
+
import simplejson as json
|
|
125
|
+
if six.PY2:
|
|
126
|
+
import sys
|
|
127
|
+
reload(sys)
|
|
128
|
+
sys.setdefaultencoding("utf-8")
|
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
130
|
+
|
|
131
|
+
def __repr__(self):
|
|
132
|
+
"""For `print`"""
|
|
133
|
+
return self.to_str()
|
|
134
|
+
|
|
135
|
+
def __eq__(self, other):
|
|
136
|
+
"""Returns true if both objects are equal"""
|
|
137
|
+
if not isinstance(other, ResourcesCredential):
|
|
138
|
+
return False
|
|
139
|
+
|
|
140
|
+
return self.__dict__ == other.__dict__
|
|
141
|
+
|
|
142
|
+
def __ne__(self, other):
|
|
143
|
+
"""Returns true if both objects are not equal"""
|
|
144
|
+
return not self == other
|
|
@@ -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 ShowNoticeRuleRequest:
|
|
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
|
+
"""ShowNoticeRuleRequest
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
103
|
+
|
|
104
|
+
:return: The rule_id of this ShowNoticeRuleRequest.
|
|
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 ShowNoticeRuleRequest.
|
|
112
|
+
|
|
113
|
+
:param rule_id: The rule_id of this ShowNoticeRuleRequest.
|
|
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, ShowNoticeRuleRequest):
|
|
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
|
|
@@ -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 ShowNoticeRuleResponse(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
|
+
"""ShowNoticeRuleResponse
|
|
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(ShowNoticeRuleResponse, 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 ShowNoticeRuleResponse.
|
|
62
|
+
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
|
+
|
|
65
|
+
:return: The api_version of this ShowNoticeRuleResponse.
|
|
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 ShowNoticeRuleResponse.
|
|
73
|
+
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
|
+
|
|
76
|
+
:param api_version: The api_version of this ShowNoticeRuleResponse.
|
|
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 ShowNoticeRuleResponse.
|
|
84
|
+
|
|
85
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
86
|
+
|
|
87
|
+
:return: The kind of this ShowNoticeRuleResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._kind
|
|
91
|
+
|
|
92
|
+
@kind.setter
|
|
93
|
+
def kind(self, kind):
|
|
94
|
+
"""Sets the kind of this ShowNoticeRuleResponse.
|
|
95
|
+
|
|
96
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
97
|
+
|
|
98
|
+
:param kind: The kind of this ShowNoticeRuleResponse.
|
|
99
|
+
:type kind: str
|
|
100
|
+
"""
|
|
101
|
+
self._kind = kind
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def spec(self):
|
|
105
|
+
"""Gets the spec of this ShowNoticeRuleResponse.
|
|
106
|
+
|
|
107
|
+
:return: The spec of this ShowNoticeRuleResponse.
|
|
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 ShowNoticeRuleResponse.
|
|
115
|
+
|
|
116
|
+
:param spec: The spec of this ShowNoticeRuleResponse.
|
|
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, ShowNoticeRuleResponse):
|
|
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,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TriggerPolicy:
|
|
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
|
+
'trigger_type': 'str',
|
|
21
|
+
'period': 'int',
|
|
22
|
+
'operator': 'str',
|
|
23
|
+
'count': 'int'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'trigger_type': 'trigger_type',
|
|
28
|
+
'period': 'period',
|
|
29
|
+
'operator': 'operator',
|
|
30
|
+
'count': 'count'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, trigger_type=None, period=None, operator=None, count=None):
|
|
34
|
+
"""TriggerPolicy
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param trigger_type: 触发类型,accumulative: 累计触发,immediately: 立即触发。
|
|
39
|
+
:type trigger_type: str
|
|
40
|
+
:param period: 触发周期,选择累计触发时需设置该参数,默认单位为s,支持5分钟、20分钟、1小时、4小时、24小时。
|
|
41
|
+
:type period: int
|
|
42
|
+
:param operator: 比较符,支持'>'和'>='。
|
|
43
|
+
:type operator: str
|
|
44
|
+
:param count: 触发次数,选择累计触发时需设置该参数。
|
|
45
|
+
:type count: int
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._trigger_type = None
|
|
51
|
+
self._period = None
|
|
52
|
+
self._operator = None
|
|
53
|
+
self._count = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.trigger_type = trigger_type
|
|
57
|
+
if period is not None:
|
|
58
|
+
self.period = period
|
|
59
|
+
if operator is not None:
|
|
60
|
+
self.operator = operator
|
|
61
|
+
if count is not None:
|
|
62
|
+
self.count = count
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def trigger_type(self):
|
|
66
|
+
"""Gets the trigger_type of this TriggerPolicy.
|
|
67
|
+
|
|
68
|
+
触发类型,accumulative: 累计触发,immediately: 立即触发。
|
|
69
|
+
|
|
70
|
+
:return: The trigger_type of this TriggerPolicy.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._trigger_type
|
|
74
|
+
|
|
75
|
+
@trigger_type.setter
|
|
76
|
+
def trigger_type(self, trigger_type):
|
|
77
|
+
"""Sets the trigger_type of this TriggerPolicy.
|
|
78
|
+
|
|
79
|
+
触发类型,accumulative: 累计触发,immediately: 立即触发。
|
|
80
|
+
|
|
81
|
+
:param trigger_type: The trigger_type of this TriggerPolicy.
|
|
82
|
+
:type trigger_type: str
|
|
83
|
+
"""
|
|
84
|
+
self._trigger_type = trigger_type
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def period(self):
|
|
88
|
+
"""Gets the period of this TriggerPolicy.
|
|
89
|
+
|
|
90
|
+
触发周期,选择累计触发时需设置该参数,默认单位为s,支持5分钟、20分钟、1小时、4小时、24小时。
|
|
91
|
+
|
|
92
|
+
:return: The period of this TriggerPolicy.
|
|
93
|
+
:rtype: int
|
|
94
|
+
"""
|
|
95
|
+
return self._period
|
|
96
|
+
|
|
97
|
+
@period.setter
|
|
98
|
+
def period(self, period):
|
|
99
|
+
"""Sets the period of this TriggerPolicy.
|
|
100
|
+
|
|
101
|
+
触发周期,选择累计触发时需设置该参数,默认单位为s,支持5分钟、20分钟、1小时、4小时、24小时。
|
|
102
|
+
|
|
103
|
+
:param period: The period of this TriggerPolicy.
|
|
104
|
+
:type period: int
|
|
105
|
+
"""
|
|
106
|
+
self._period = period
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def operator(self):
|
|
110
|
+
"""Gets the operator of this TriggerPolicy.
|
|
111
|
+
|
|
112
|
+
比较符,支持'>'和'>='。
|
|
113
|
+
|
|
114
|
+
:return: The operator of this TriggerPolicy.
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._operator
|
|
118
|
+
|
|
119
|
+
@operator.setter
|
|
120
|
+
def operator(self, operator):
|
|
121
|
+
"""Sets the operator of this TriggerPolicy.
|
|
122
|
+
|
|
123
|
+
比较符,支持'>'和'>='。
|
|
124
|
+
|
|
125
|
+
:param operator: The operator of this TriggerPolicy.
|
|
126
|
+
:type operator: str
|
|
127
|
+
"""
|
|
128
|
+
self._operator = operator
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def count(self):
|
|
132
|
+
"""Gets the count of this TriggerPolicy.
|
|
133
|
+
|
|
134
|
+
触发次数,选择累计触发时需设置该参数。
|
|
135
|
+
|
|
136
|
+
:return: The count of this TriggerPolicy.
|
|
137
|
+
:rtype: int
|
|
138
|
+
"""
|
|
139
|
+
return self._count
|
|
140
|
+
|
|
141
|
+
@count.setter
|
|
142
|
+
def count(self, count):
|
|
143
|
+
"""Sets the count of this TriggerPolicy.
|
|
144
|
+
|
|
145
|
+
触发次数,选择累计触发时需设置该参数。
|
|
146
|
+
|
|
147
|
+
:param count: The count of this TriggerPolicy.
|
|
148
|
+
:type count: int
|
|
149
|
+
"""
|
|
150
|
+
self._count = count
|
|
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, TriggerPolicy):
|
|
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
|
|
@@ -55,10 +55,8 @@ class UpdateComponentRequestBody:
|
|
|
55
55
|
|
|
56
56
|
self.api_version = api_version
|
|
57
57
|
self.kind = kind
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if spec is not None:
|
|
61
|
-
self.spec = spec
|
|
58
|
+
self.metadata = metadata
|
|
59
|
+
self.spec = spec
|
|
62
60
|
|
|
63
61
|
@property
|
|
64
62
|
def api_version(self):
|