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,192 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateNoticeRuleRequest:
|
|
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
|
+
'body': 'UpdateNoticeRuleReq'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
28
|
+
'x_environment_id': 'X-Environment-ID',
|
|
29
|
+
'rule_id': 'rule_id',
|
|
30
|
+
'body': 'body'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, rule_id=None, body=None):
|
|
34
|
+
"""UpdateNoticeRuleRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
39
|
+
:type x_enterprise_project_id: str
|
|
40
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
41
|
+
:type x_environment_id: str
|
|
42
|
+
:param rule_id:
|
|
43
|
+
:type rule_id: str
|
|
44
|
+
:param body: Body of the UpdateNoticeRuleRequest
|
|
45
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleReq`
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._x_enterprise_project_id = None
|
|
51
|
+
self._x_environment_id = None
|
|
52
|
+
self._rule_id = None
|
|
53
|
+
self._body = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
if x_enterprise_project_id is not None:
|
|
57
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
58
|
+
self.x_environment_id = x_environment_id
|
|
59
|
+
self.rule_id = rule_id
|
|
60
|
+
if body is not None:
|
|
61
|
+
self.body = body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def x_enterprise_project_id(self):
|
|
65
|
+
"""Gets the x_enterprise_project_id of this UpdateNoticeRuleRequest.
|
|
66
|
+
|
|
67
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
68
|
+
|
|
69
|
+
:return: The x_enterprise_project_id of this UpdateNoticeRuleRequest.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._x_enterprise_project_id
|
|
73
|
+
|
|
74
|
+
@x_enterprise_project_id.setter
|
|
75
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
76
|
+
"""Sets the x_enterprise_project_id of this UpdateNoticeRuleRequest.
|
|
77
|
+
|
|
78
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
79
|
+
|
|
80
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateNoticeRuleRequest.
|
|
81
|
+
:type x_enterprise_project_id: str
|
|
82
|
+
"""
|
|
83
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def x_environment_id(self):
|
|
87
|
+
"""Gets the x_environment_id of this UpdateNoticeRuleRequest.
|
|
88
|
+
|
|
89
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
90
|
+
|
|
91
|
+
:return: The x_environment_id of this UpdateNoticeRuleRequest.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._x_environment_id
|
|
95
|
+
|
|
96
|
+
@x_environment_id.setter
|
|
97
|
+
def x_environment_id(self, x_environment_id):
|
|
98
|
+
"""Sets the x_environment_id of this UpdateNoticeRuleRequest.
|
|
99
|
+
|
|
100
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
101
|
+
|
|
102
|
+
:param x_environment_id: The x_environment_id of this UpdateNoticeRuleRequest.
|
|
103
|
+
:type x_environment_id: str
|
|
104
|
+
"""
|
|
105
|
+
self._x_environment_id = x_environment_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def rule_id(self):
|
|
109
|
+
"""Gets the rule_id of this UpdateNoticeRuleRequest.
|
|
110
|
+
|
|
111
|
+
:return: The rule_id of this UpdateNoticeRuleRequest.
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._rule_id
|
|
115
|
+
|
|
116
|
+
@rule_id.setter
|
|
117
|
+
def rule_id(self, rule_id):
|
|
118
|
+
"""Sets the rule_id of this UpdateNoticeRuleRequest.
|
|
119
|
+
|
|
120
|
+
:param rule_id: The rule_id of this UpdateNoticeRuleRequest.
|
|
121
|
+
:type rule_id: str
|
|
122
|
+
"""
|
|
123
|
+
self._rule_id = rule_id
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def body(self):
|
|
127
|
+
"""Gets the body of this UpdateNoticeRuleRequest.
|
|
128
|
+
|
|
129
|
+
:return: The body of this UpdateNoticeRuleRequest.
|
|
130
|
+
:rtype: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleReq`
|
|
131
|
+
"""
|
|
132
|
+
return self._body
|
|
133
|
+
|
|
134
|
+
@body.setter
|
|
135
|
+
def body(self, body):
|
|
136
|
+
"""Sets the body of this UpdateNoticeRuleRequest.
|
|
137
|
+
|
|
138
|
+
:param body: The body of this UpdateNoticeRuleRequest.
|
|
139
|
+
:type body: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleReq`
|
|
140
|
+
"""
|
|
141
|
+
self._body = body
|
|
142
|
+
|
|
143
|
+
def to_dict(self):
|
|
144
|
+
"""Returns the model properties as a dict"""
|
|
145
|
+
result = {}
|
|
146
|
+
|
|
147
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
148
|
+
value = getattr(self, attr)
|
|
149
|
+
if isinstance(value, list):
|
|
150
|
+
result[attr] = list(map(
|
|
151
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
152
|
+
value
|
|
153
|
+
))
|
|
154
|
+
elif hasattr(value, "to_dict"):
|
|
155
|
+
result[attr] = value.to_dict()
|
|
156
|
+
elif isinstance(value, dict):
|
|
157
|
+
result[attr] = dict(map(
|
|
158
|
+
lambda item: (item[0], item[1].to_dict())
|
|
159
|
+
if hasattr(item[1], "to_dict") else item,
|
|
160
|
+
value.items()
|
|
161
|
+
))
|
|
162
|
+
else:
|
|
163
|
+
if attr in self.sensitive_list:
|
|
164
|
+
result[attr] = "****"
|
|
165
|
+
else:
|
|
166
|
+
result[attr] = value
|
|
167
|
+
|
|
168
|
+
return result
|
|
169
|
+
|
|
170
|
+
def to_str(self):
|
|
171
|
+
"""Returns the string representation of the model"""
|
|
172
|
+
import simplejson as json
|
|
173
|
+
if six.PY2:
|
|
174
|
+
import sys
|
|
175
|
+
reload(sys)
|
|
176
|
+
sys.setdefaultencoding("utf-8")
|
|
177
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
178
|
+
|
|
179
|
+
def __repr__(self):
|
|
180
|
+
"""For `print`"""
|
|
181
|
+
return self.to_str()
|
|
182
|
+
|
|
183
|
+
def __eq__(self, other):
|
|
184
|
+
"""Returns true if both objects are equal"""
|
|
185
|
+
if not isinstance(other, UpdateNoticeRuleRequest):
|
|
186
|
+
return False
|
|
187
|
+
|
|
188
|
+
return self.__dict__ == other.__dict__
|
|
189
|
+
|
|
190
|
+
def __ne__(self, other):
|
|
191
|
+
"""Returns true if both objects are not equal"""
|
|
192
|
+
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 UpdateNoticeRuleResponse(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
|
+
"""UpdateNoticeRuleResponse
|
|
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(UpdateNoticeRuleResponse, 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 UpdateNoticeRuleResponse.
|
|
62
|
+
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
|
+
|
|
65
|
+
:return: The api_version of this UpdateNoticeRuleResponse.
|
|
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 UpdateNoticeRuleResponse.
|
|
73
|
+
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
|
+
|
|
76
|
+
:param api_version: The api_version of this UpdateNoticeRuleResponse.
|
|
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 UpdateNoticeRuleResponse.
|
|
84
|
+
|
|
85
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
86
|
+
|
|
87
|
+
:return: The kind of this UpdateNoticeRuleResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._kind
|
|
91
|
+
|
|
92
|
+
@kind.setter
|
|
93
|
+
def kind(self, kind):
|
|
94
|
+
"""Sets the kind of this UpdateNoticeRuleResponse.
|
|
95
|
+
|
|
96
|
+
API类型,固定值“NoticeRule”,该值不可修改。
|
|
97
|
+
|
|
98
|
+
:param kind: The kind of this UpdateNoticeRuleResponse.
|
|
99
|
+
:type kind: str
|
|
100
|
+
"""
|
|
101
|
+
self._kind = kind
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def spec(self):
|
|
105
|
+
"""Gets the spec of this UpdateNoticeRuleResponse.
|
|
106
|
+
|
|
107
|
+
:return: The spec of this UpdateNoticeRuleResponse.
|
|
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 UpdateNoticeRuleResponse.
|
|
115
|
+
|
|
116
|
+
:param spec: The spec of this UpdateNoticeRuleResponse.
|
|
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, UpdateNoticeRuleResponse):
|
|
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
|
|
@@ -22,6 +22,7 @@ class Volume:
|
|
|
22
22
|
'resource_name': 'str',
|
|
23
23
|
'resource_type': 'str',
|
|
24
24
|
'resource_sub_type': 'str',
|
|
25
|
+
'access': 'str',
|
|
25
26
|
'time': 'str'
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -31,10 +32,11 @@ class Volume:
|
|
|
31
32
|
'resource_name': 'resource_name',
|
|
32
33
|
'resource_type': 'resource_type',
|
|
33
34
|
'resource_sub_type': 'resource_sub_type',
|
|
35
|
+
'access': 'access',
|
|
34
36
|
'time': 'time'
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
def __init__(self, id=None, resource_info=None, resource_name=None, resource_type=None, resource_sub_type=None, time=None):
|
|
39
|
+
def __init__(self, id=None, resource_info=None, resource_name=None, resource_type=None, resource_sub_type=None, access=None, time=None):
|
|
38
40
|
"""Volume
|
|
39
41
|
|
|
40
42
|
The model defined in huaweicloud sdk
|
|
@@ -49,6 +51,8 @@ class Volume:
|
|
|
49
51
|
:type resource_type: str
|
|
50
52
|
:param resource_sub_type: 存储资源子类型。
|
|
51
53
|
:type resource_sub_type: str
|
|
54
|
+
:param access: 用户access key。
|
|
55
|
+
:type access: str
|
|
52
56
|
:param time: 创建时间。
|
|
53
57
|
:type time: str
|
|
54
58
|
"""
|
|
@@ -60,6 +64,7 @@ class Volume:
|
|
|
60
64
|
self._resource_name = None
|
|
61
65
|
self._resource_type = None
|
|
62
66
|
self._resource_sub_type = None
|
|
67
|
+
self._access = None
|
|
63
68
|
self._time = None
|
|
64
69
|
self.discriminator = None
|
|
65
70
|
|
|
@@ -73,6 +78,8 @@ class Volume:
|
|
|
73
78
|
self.resource_type = resource_type
|
|
74
79
|
if resource_sub_type is not None:
|
|
75
80
|
self.resource_sub_type = resource_sub_type
|
|
81
|
+
if access is not None:
|
|
82
|
+
self.access = access
|
|
76
83
|
if time is not None:
|
|
77
84
|
self.time = time
|
|
78
85
|
|
|
@@ -186,6 +193,28 @@ class Volume:
|
|
|
186
193
|
"""
|
|
187
194
|
self._resource_sub_type = resource_sub_type
|
|
188
195
|
|
|
196
|
+
@property
|
|
197
|
+
def access(self):
|
|
198
|
+
"""Gets the access of this Volume.
|
|
199
|
+
|
|
200
|
+
用户access key。
|
|
201
|
+
|
|
202
|
+
:return: The access of this Volume.
|
|
203
|
+
:rtype: str
|
|
204
|
+
"""
|
|
205
|
+
return self._access
|
|
206
|
+
|
|
207
|
+
@access.setter
|
|
208
|
+
def access(self, access):
|
|
209
|
+
"""Sets the access of this Volume.
|
|
210
|
+
|
|
211
|
+
用户access key。
|
|
212
|
+
|
|
213
|
+
:param access: The access of this Volume.
|
|
214
|
+
:type access: str
|
|
215
|
+
"""
|
|
216
|
+
self._access = access
|
|
217
|
+
|
|
189
218
|
@property
|
|
190
219
|
def time(self):
|
|
191
220
|
"""Gets the time of this Volume.
|
|
@@ -19,16 +19,18 @@ class VolumeSpec:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'resource_type': 'str',
|
|
21
21
|
'resource_sub_type': 'str',
|
|
22
|
-
'resources': 'list[str]'
|
|
22
|
+
'resources': 'list[str]',
|
|
23
|
+
'resources_credentials': 'list[ResourcesCredential]'
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
attribute_map = {
|
|
26
27
|
'resource_type': 'resource_type',
|
|
27
28
|
'resource_sub_type': 'resource_sub_type',
|
|
28
|
-
'resources': 'resources'
|
|
29
|
+
'resources': 'resources',
|
|
30
|
+
'resources_credentials': 'resources_credentials'
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
def __init__(self, resource_type=None, resource_sub_type=None, resources=None):
|
|
33
|
+
def __init__(self, resource_type=None, resource_sub_type=None, resources=None, resources_credentials=None):
|
|
32
34
|
"""VolumeSpec
|
|
33
35
|
|
|
34
36
|
The model defined in huaweicloud sdk
|
|
@@ -39,6 +41,8 @@ class VolumeSpec:
|
|
|
39
41
|
:type resource_sub_type: str
|
|
40
42
|
:param resources: 云存储名称。
|
|
41
43
|
:type resources: list[str]
|
|
44
|
+
:param resources_credentials: 云存储和授权凭证,获取环境列表接口响应中env_category字段为v2时需添加该字段的值。
|
|
45
|
+
:type resources_credentials: list[:class:`huaweicloudsdkcae.v1.ResourcesCredential`]
|
|
42
46
|
"""
|
|
43
47
|
|
|
44
48
|
|
|
@@ -46,11 +50,14 @@ class VolumeSpec:
|
|
|
46
50
|
self._resource_type = None
|
|
47
51
|
self._resource_sub_type = None
|
|
48
52
|
self._resources = None
|
|
53
|
+
self._resources_credentials = None
|
|
49
54
|
self.discriminator = None
|
|
50
55
|
|
|
51
56
|
self.resource_type = resource_type
|
|
52
57
|
self.resource_sub_type = resource_sub_type
|
|
53
58
|
self.resources = resources
|
|
59
|
+
if resources_credentials is not None:
|
|
60
|
+
self.resources_credentials = resources_credentials
|
|
54
61
|
|
|
55
62
|
@property
|
|
56
63
|
def resource_type(self):
|
|
@@ -118,6 +125,28 @@ class VolumeSpec:
|
|
|
118
125
|
"""
|
|
119
126
|
self._resources = resources
|
|
120
127
|
|
|
128
|
+
@property
|
|
129
|
+
def resources_credentials(self):
|
|
130
|
+
"""Gets the resources_credentials of this VolumeSpec.
|
|
131
|
+
|
|
132
|
+
云存储和授权凭证,获取环境列表接口响应中env_category字段为v2时需添加该字段的值。
|
|
133
|
+
|
|
134
|
+
:return: The resources_credentials of this VolumeSpec.
|
|
135
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.ResourcesCredential`]
|
|
136
|
+
"""
|
|
137
|
+
return self._resources_credentials
|
|
138
|
+
|
|
139
|
+
@resources_credentials.setter
|
|
140
|
+
def resources_credentials(self, resources_credentials):
|
|
141
|
+
"""Sets the resources_credentials of this VolumeSpec.
|
|
142
|
+
|
|
143
|
+
云存储和授权凭证,获取环境列表接口响应中env_category字段为v2时需添加该字段的值。
|
|
144
|
+
|
|
145
|
+
:param resources_credentials: The resources_credentials of this VolumeSpec.
|
|
146
|
+
:type resources_credentials: list[:class:`huaweicloudsdkcae.v1.ResourcesCredential`]
|
|
147
|
+
"""
|
|
148
|
+
self._resources_credentials = resources_credentials
|
|
149
|
+
|
|
121
150
|
def to_dict(self):
|
|
122
151
|
"""Returns the model properties as a dict"""
|
|
123
152
|
result = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkcae
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.100
|
|
4
4
|
Summary: CAE
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.100
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|