huaweicloudsdkcae 3.1.98__py2.py3-none-any.whl → 3.1.100__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 +25 -2
- huaweicloudsdkcae/v1/cae_async_client.py +416 -0
- huaweicloudsdkcae/v1/cae_client.py +416 -0
- huaweicloudsdkcae/v1/model/__init__.py +25 -2
- huaweicloudsdkcae/v1/model/access_configuration_port.py +32 -3
- huaweicloudsdkcae/v1/model/agency_metadata.py +28 -3
- huaweicloudsdkcae/v1/model/configuration_data_metadata.py +3 -3
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +30 -1
- huaweicloudsdkcae/v1/model/create_component_request_body.py +8 -8
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +196 -0
- 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_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/delete_notice_rule_request.py +167 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
- huaweicloudsdkcae/v1/model/environment_item.py +3 -3
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +142 -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_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-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/RECORD +42 -19
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.98.dist-info → huaweicloudsdkcae-3.1.100.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
@@ -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
|