huaweicloudsdkcae 3.1.138__py2.py3-none-any.whl → 3.1.139__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 +13 -0
- huaweicloudsdkcae/v1/cae_async_client.py +338 -0
- huaweicloudsdkcae/v1/cae_client.py +338 -0
- huaweicloudsdkcae/v1/model/__init__.py +13 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +142 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_secret_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_secret_response.py +170 -0
- huaweicloudsdkcae/v1/model/delete_component_response.py +32 -1
- huaweicloudsdkcae/v1/model/delete_secret_request.py +143 -0
- huaweicloudsdkcae/v1/model/delete_secret_response.py +85 -0
- huaweicloudsdkcae/v1/model/list_effective_components_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_effective_components_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_secrets_request.py +115 -0
- huaweicloudsdkcae/v1/model/list_secrets_response.py +174 -0
- huaweicloudsdkcae/v1/model/secret_detail.py +283 -0
- huaweicloudsdkcae/v1/model/update_secret_request.py +168 -0
- huaweicloudsdkcae/v1/model/update_secret_response.py +170 -0
- huaweicloudsdkcae/v1/region/cae_region.py +12 -0
- {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/METADATA +2 -2
- {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/RECORD +24 -11
- {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcae-3.1.138.dist-info → huaweicloudsdkcae-3.1.139.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SecretDetail:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'id': 'str',
|
|
21
|
+
'name': 'str',
|
|
22
|
+
'if_update_available': 'bool',
|
|
23
|
+
'secret_status': 'str',
|
|
24
|
+
'status': 'str',
|
|
25
|
+
'version_id': 'str',
|
|
26
|
+
'modified_time': 'int'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
attribute_map = {
|
|
30
|
+
'id': 'id',
|
|
31
|
+
'name': 'name',
|
|
32
|
+
'if_update_available': 'if_update_available',
|
|
33
|
+
'secret_status': 'secret_status',
|
|
34
|
+
'status': 'status',
|
|
35
|
+
'version_id': 'version_id',
|
|
36
|
+
'modified_time': 'modified_time'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def __init__(self, id=None, name=None, if_update_available=None, secret_status=None, status=None, version_id=None, modified_time=None):
|
|
40
|
+
"""SecretDetail
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param id: 凭据ID
|
|
45
|
+
:type id: str
|
|
46
|
+
:param name: 凭证名字。
|
|
47
|
+
:type name: str
|
|
48
|
+
:param if_update_available: 当前凭据是否有更新版本。
|
|
49
|
+
:type if_update_available: bool
|
|
50
|
+
:param secret_status: 凭据在DEW的状态。
|
|
51
|
+
:type secret_status: str
|
|
52
|
+
:param status: 凭据在CAE使用状态。
|
|
53
|
+
:type status: str
|
|
54
|
+
:param version_id: 当前使用的凭证版本号。
|
|
55
|
+
:type version_id: str
|
|
56
|
+
:param modified_time: 当前版本凭证在dew的创建时间。
|
|
57
|
+
:type modified_time: int
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
self._id = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._if_update_available = None
|
|
65
|
+
self._secret_status = None
|
|
66
|
+
self._status = None
|
|
67
|
+
self._version_id = None
|
|
68
|
+
self._modified_time = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
|
|
71
|
+
self.id = id
|
|
72
|
+
self.name = name
|
|
73
|
+
self.if_update_available = if_update_available
|
|
74
|
+
self.secret_status = secret_status
|
|
75
|
+
self.status = status
|
|
76
|
+
self.version_id = version_id
|
|
77
|
+
if modified_time is not None:
|
|
78
|
+
self.modified_time = modified_time
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def id(self):
|
|
82
|
+
"""Gets the id of this SecretDetail.
|
|
83
|
+
|
|
84
|
+
凭据ID
|
|
85
|
+
|
|
86
|
+
:return: The id of this SecretDetail.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._id
|
|
90
|
+
|
|
91
|
+
@id.setter
|
|
92
|
+
def id(self, id):
|
|
93
|
+
"""Sets the id of this SecretDetail.
|
|
94
|
+
|
|
95
|
+
凭据ID
|
|
96
|
+
|
|
97
|
+
:param id: The id of this SecretDetail.
|
|
98
|
+
:type id: str
|
|
99
|
+
"""
|
|
100
|
+
self._id = id
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def name(self):
|
|
104
|
+
"""Gets the name of this SecretDetail.
|
|
105
|
+
|
|
106
|
+
凭证名字。
|
|
107
|
+
|
|
108
|
+
:return: The name of this SecretDetail.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._name
|
|
112
|
+
|
|
113
|
+
@name.setter
|
|
114
|
+
def name(self, name):
|
|
115
|
+
"""Sets the name of this SecretDetail.
|
|
116
|
+
|
|
117
|
+
凭证名字。
|
|
118
|
+
|
|
119
|
+
:param name: The name of this SecretDetail.
|
|
120
|
+
:type name: str
|
|
121
|
+
"""
|
|
122
|
+
self._name = name
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def if_update_available(self):
|
|
126
|
+
"""Gets the if_update_available of this SecretDetail.
|
|
127
|
+
|
|
128
|
+
当前凭据是否有更新版本。
|
|
129
|
+
|
|
130
|
+
:return: The if_update_available of this SecretDetail.
|
|
131
|
+
:rtype: bool
|
|
132
|
+
"""
|
|
133
|
+
return self._if_update_available
|
|
134
|
+
|
|
135
|
+
@if_update_available.setter
|
|
136
|
+
def if_update_available(self, if_update_available):
|
|
137
|
+
"""Sets the if_update_available of this SecretDetail.
|
|
138
|
+
|
|
139
|
+
当前凭据是否有更新版本。
|
|
140
|
+
|
|
141
|
+
:param if_update_available: The if_update_available of this SecretDetail.
|
|
142
|
+
:type if_update_available: bool
|
|
143
|
+
"""
|
|
144
|
+
self._if_update_available = if_update_available
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def secret_status(self):
|
|
148
|
+
"""Gets the secret_status of this SecretDetail.
|
|
149
|
+
|
|
150
|
+
凭据在DEW的状态。
|
|
151
|
+
|
|
152
|
+
:return: The secret_status of this SecretDetail.
|
|
153
|
+
:rtype: str
|
|
154
|
+
"""
|
|
155
|
+
return self._secret_status
|
|
156
|
+
|
|
157
|
+
@secret_status.setter
|
|
158
|
+
def secret_status(self, secret_status):
|
|
159
|
+
"""Sets the secret_status of this SecretDetail.
|
|
160
|
+
|
|
161
|
+
凭据在DEW的状态。
|
|
162
|
+
|
|
163
|
+
:param secret_status: The secret_status of this SecretDetail.
|
|
164
|
+
:type secret_status: str
|
|
165
|
+
"""
|
|
166
|
+
self._secret_status = secret_status
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def status(self):
|
|
170
|
+
"""Gets the status of this SecretDetail.
|
|
171
|
+
|
|
172
|
+
凭据在CAE使用状态。
|
|
173
|
+
|
|
174
|
+
:return: The status of this SecretDetail.
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._status
|
|
178
|
+
|
|
179
|
+
@status.setter
|
|
180
|
+
def status(self, status):
|
|
181
|
+
"""Sets the status of this SecretDetail.
|
|
182
|
+
|
|
183
|
+
凭据在CAE使用状态。
|
|
184
|
+
|
|
185
|
+
:param status: The status of this SecretDetail.
|
|
186
|
+
:type status: str
|
|
187
|
+
"""
|
|
188
|
+
self._status = status
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def version_id(self):
|
|
192
|
+
"""Gets the version_id of this SecretDetail.
|
|
193
|
+
|
|
194
|
+
当前使用的凭证版本号。
|
|
195
|
+
|
|
196
|
+
:return: The version_id of this SecretDetail.
|
|
197
|
+
:rtype: str
|
|
198
|
+
"""
|
|
199
|
+
return self._version_id
|
|
200
|
+
|
|
201
|
+
@version_id.setter
|
|
202
|
+
def version_id(self, version_id):
|
|
203
|
+
"""Sets the version_id of this SecretDetail.
|
|
204
|
+
|
|
205
|
+
当前使用的凭证版本号。
|
|
206
|
+
|
|
207
|
+
:param version_id: The version_id of this SecretDetail.
|
|
208
|
+
:type version_id: str
|
|
209
|
+
"""
|
|
210
|
+
self._version_id = version_id
|
|
211
|
+
|
|
212
|
+
@property
|
|
213
|
+
def modified_time(self):
|
|
214
|
+
"""Gets the modified_time of this SecretDetail.
|
|
215
|
+
|
|
216
|
+
当前版本凭证在dew的创建时间。
|
|
217
|
+
|
|
218
|
+
:return: The modified_time of this SecretDetail.
|
|
219
|
+
:rtype: int
|
|
220
|
+
"""
|
|
221
|
+
return self._modified_time
|
|
222
|
+
|
|
223
|
+
@modified_time.setter
|
|
224
|
+
def modified_time(self, modified_time):
|
|
225
|
+
"""Sets the modified_time of this SecretDetail.
|
|
226
|
+
|
|
227
|
+
当前版本凭证在dew的创建时间。
|
|
228
|
+
|
|
229
|
+
:param modified_time: The modified_time of this SecretDetail.
|
|
230
|
+
:type modified_time: int
|
|
231
|
+
"""
|
|
232
|
+
self._modified_time = modified_time
|
|
233
|
+
|
|
234
|
+
def to_dict(self):
|
|
235
|
+
"""Returns the model properties as a dict"""
|
|
236
|
+
result = {}
|
|
237
|
+
|
|
238
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
239
|
+
value = getattr(self, attr)
|
|
240
|
+
if isinstance(value, list):
|
|
241
|
+
result[attr] = list(map(
|
|
242
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
243
|
+
value
|
|
244
|
+
))
|
|
245
|
+
elif hasattr(value, "to_dict"):
|
|
246
|
+
result[attr] = value.to_dict()
|
|
247
|
+
elif isinstance(value, dict):
|
|
248
|
+
result[attr] = dict(map(
|
|
249
|
+
lambda item: (item[0], item[1].to_dict())
|
|
250
|
+
if hasattr(item[1], "to_dict") else item,
|
|
251
|
+
value.items()
|
|
252
|
+
))
|
|
253
|
+
else:
|
|
254
|
+
if attr in self.sensitive_list:
|
|
255
|
+
result[attr] = "****"
|
|
256
|
+
else:
|
|
257
|
+
result[attr] = value
|
|
258
|
+
|
|
259
|
+
return result
|
|
260
|
+
|
|
261
|
+
def to_str(self):
|
|
262
|
+
"""Returns the string representation of the model"""
|
|
263
|
+
import simplejson as json
|
|
264
|
+
if six.PY2:
|
|
265
|
+
import sys
|
|
266
|
+
reload(sys)
|
|
267
|
+
sys.setdefaultencoding("utf-8")
|
|
268
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
269
|
+
|
|
270
|
+
def __repr__(self):
|
|
271
|
+
"""For `print`"""
|
|
272
|
+
return self.to_str()
|
|
273
|
+
|
|
274
|
+
def __eq__(self, other):
|
|
275
|
+
"""Returns true if both objects are equal"""
|
|
276
|
+
if not isinstance(other, SecretDetail):
|
|
277
|
+
return False
|
|
278
|
+
|
|
279
|
+
return self.__dict__ == other.__dict__
|
|
280
|
+
|
|
281
|
+
def __ne__(self, other):
|
|
282
|
+
"""Returns true if both objects are not equal"""
|
|
283
|
+
return not self == other
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateSecretRequest:
|
|
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
|
+
'secret_id': 'str',
|
|
21
|
+
'x_enterprise_project_id': 'str',
|
|
22
|
+
'body': 'CreateOrUpdateSecretReq'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'secret_id': 'secret_id',
|
|
27
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, secret_id=None, x_enterprise_project_id=None, body=None):
|
|
32
|
+
"""UpdateSecretRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param secret_id: 凭据ID。
|
|
37
|
+
:type secret_id: str
|
|
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 body: Body of the UpdateSecretRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateOrUpdateSecretReq`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._secret_id = None
|
|
47
|
+
self._x_enterprise_project_id = None
|
|
48
|
+
self._body = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.secret_id = secret_id
|
|
52
|
+
if x_enterprise_project_id is not None:
|
|
53
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
54
|
+
if body is not None:
|
|
55
|
+
self.body = body
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def secret_id(self):
|
|
59
|
+
"""Gets the secret_id of this UpdateSecretRequest.
|
|
60
|
+
|
|
61
|
+
凭据ID。
|
|
62
|
+
|
|
63
|
+
:return: The secret_id of this UpdateSecretRequest.
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._secret_id
|
|
67
|
+
|
|
68
|
+
@secret_id.setter
|
|
69
|
+
def secret_id(self, secret_id):
|
|
70
|
+
"""Sets the secret_id of this UpdateSecretRequest.
|
|
71
|
+
|
|
72
|
+
凭据ID。
|
|
73
|
+
|
|
74
|
+
:param secret_id: The secret_id of this UpdateSecretRequest.
|
|
75
|
+
:type secret_id: str
|
|
76
|
+
"""
|
|
77
|
+
self._secret_id = secret_id
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def x_enterprise_project_id(self):
|
|
81
|
+
"""Gets the x_enterprise_project_id of this UpdateSecretRequest.
|
|
82
|
+
|
|
83
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
84
|
+
|
|
85
|
+
:return: The x_enterprise_project_id of this UpdateSecretRequest.
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._x_enterprise_project_id
|
|
89
|
+
|
|
90
|
+
@x_enterprise_project_id.setter
|
|
91
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
92
|
+
"""Sets the x_enterprise_project_id of this UpdateSecretRequest.
|
|
93
|
+
|
|
94
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
95
|
+
|
|
96
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateSecretRequest.
|
|
97
|
+
:type x_enterprise_project_id: str
|
|
98
|
+
"""
|
|
99
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def body(self):
|
|
103
|
+
"""Gets the body of this UpdateSecretRequest.
|
|
104
|
+
|
|
105
|
+
:return: The body of this UpdateSecretRequest.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkcae.v1.CreateOrUpdateSecretReq`
|
|
107
|
+
"""
|
|
108
|
+
return self._body
|
|
109
|
+
|
|
110
|
+
@body.setter
|
|
111
|
+
def body(self, body):
|
|
112
|
+
"""Sets the body of this UpdateSecretRequest.
|
|
113
|
+
|
|
114
|
+
:param body: The body of this UpdateSecretRequest.
|
|
115
|
+
:type body: :class:`huaweicloudsdkcae.v1.CreateOrUpdateSecretReq`
|
|
116
|
+
"""
|
|
117
|
+
self._body = body
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
"""Returns the model properties as a dict"""
|
|
121
|
+
result = {}
|
|
122
|
+
|
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
124
|
+
value = getattr(self, attr)
|
|
125
|
+
if isinstance(value, list):
|
|
126
|
+
result[attr] = list(map(
|
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
128
|
+
value
|
|
129
|
+
))
|
|
130
|
+
elif hasattr(value, "to_dict"):
|
|
131
|
+
result[attr] = value.to_dict()
|
|
132
|
+
elif isinstance(value, dict):
|
|
133
|
+
result[attr] = dict(map(
|
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
|
136
|
+
value.items()
|
|
137
|
+
))
|
|
138
|
+
else:
|
|
139
|
+
if attr in self.sensitive_list:
|
|
140
|
+
result[attr] = "****"
|
|
141
|
+
else:
|
|
142
|
+
result[attr] = value
|
|
143
|
+
|
|
144
|
+
return result
|
|
145
|
+
|
|
146
|
+
def to_str(self):
|
|
147
|
+
"""Returns the string representation of the model"""
|
|
148
|
+
import simplejson as json
|
|
149
|
+
if six.PY2:
|
|
150
|
+
import sys
|
|
151
|
+
reload(sys)
|
|
152
|
+
sys.setdefaultencoding("utf-8")
|
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
154
|
+
|
|
155
|
+
def __repr__(self):
|
|
156
|
+
"""For `print`"""
|
|
157
|
+
return self.to_str()
|
|
158
|
+
|
|
159
|
+
def __eq__(self, other):
|
|
160
|
+
"""Returns true if both objects are equal"""
|
|
161
|
+
if not isinstance(other, UpdateSecretRequest):
|
|
162
|
+
return False
|
|
163
|
+
|
|
164
|
+
return self.__dict__ == other.__dict__
|
|
165
|
+
|
|
166
|
+
def __ne__(self, other):
|
|
167
|
+
"""Returns true if both objects are not equal"""
|
|
168
|
+
return not self == other
|
|
@@ -0,0 +1,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 UpdateSecretResponse(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': 'SecretDetail'
|
|
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
|
+
"""UpdateSecretResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param api_version: API版本,固定值“v1”,该值不可修改。
|
|
38
|
+
:type api_version: str
|
|
39
|
+
:param kind: 资源种类。
|
|
40
|
+
:type kind: str
|
|
41
|
+
:param spec:
|
|
42
|
+
:type spec: :class:`huaweicloudsdkcae.v1.SecretDetail`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(UpdateSecretResponse, 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 UpdateSecretResponse.
|
|
62
|
+
|
|
63
|
+
API版本,固定值“v1”,该值不可修改。
|
|
64
|
+
|
|
65
|
+
:return: The api_version of this UpdateSecretResponse.
|
|
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 UpdateSecretResponse.
|
|
73
|
+
|
|
74
|
+
API版本,固定值“v1”,该值不可修改。
|
|
75
|
+
|
|
76
|
+
:param api_version: The api_version of this UpdateSecretResponse.
|
|
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 UpdateSecretResponse.
|
|
84
|
+
|
|
85
|
+
资源种类。
|
|
86
|
+
|
|
87
|
+
:return: The kind of this UpdateSecretResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._kind
|
|
91
|
+
|
|
92
|
+
@kind.setter
|
|
93
|
+
def kind(self, kind):
|
|
94
|
+
"""Sets the kind of this UpdateSecretResponse.
|
|
95
|
+
|
|
96
|
+
资源种类。
|
|
97
|
+
|
|
98
|
+
:param kind: The kind of this UpdateSecretResponse.
|
|
99
|
+
:type kind: str
|
|
100
|
+
"""
|
|
101
|
+
self._kind = kind
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def spec(self):
|
|
105
|
+
"""Gets the spec of this UpdateSecretResponse.
|
|
106
|
+
|
|
107
|
+
:return: The spec of this UpdateSecretResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkcae.v1.SecretDetail`
|
|
109
|
+
"""
|
|
110
|
+
return self._spec
|
|
111
|
+
|
|
112
|
+
@spec.setter
|
|
113
|
+
def spec(self, spec):
|
|
114
|
+
"""Sets the spec of this UpdateSecretResponse.
|
|
115
|
+
|
|
116
|
+
:param spec: The spec of this UpdateSecretResponse.
|
|
117
|
+
:type spec: :class:`huaweicloudsdkcae.v1.SecretDetail`
|
|
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, UpdateSecretResponse):
|
|
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
|
|
@@ -21,6 +21,15 @@ class CaeRegion:
|
|
|
21
21
|
AF_SOUTH_1 = Region("af-south-1",
|
|
22
22
|
"https://cae.af-south-1.myhuaweicloud.com",
|
|
23
23
|
"https://cae.af-south-1.myhuaweicloud.cn")
|
|
24
|
+
ME_EAST_1 = Region("me-east-1",
|
|
25
|
+
"https://cae.me-east-1.myhuaweicloud.com",
|
|
26
|
+
"https://cae.me-east-1.myhuaweicloud.cn")
|
|
27
|
+
LA_NORTH_2 = Region("la-north-2",
|
|
28
|
+
"https://cae.la-north-2.myhuaweicloud.com",
|
|
29
|
+
"https://cae.la-north-2.myhuaweicloud.cn")
|
|
30
|
+
TR_WEST_1 = Region("tr-west-1",
|
|
31
|
+
"https://cae.tr-west-1.myhuaweicloud.com",
|
|
32
|
+
"https://cae.tr-west-1.myhuaweicloud.cn")
|
|
24
33
|
|
|
25
34
|
static_fields = {
|
|
26
35
|
"cn-north-4": CN_NORTH_4,
|
|
@@ -28,6 +37,9 @@ class CaeRegion:
|
|
|
28
37
|
"cn-south-1": CN_SOUTH_1,
|
|
29
38
|
"ap-southeast-3": AP_SOUTHEAST_3,
|
|
30
39
|
"af-south-1": AF_SOUTH_1,
|
|
40
|
+
"me-east-1": ME_EAST_1,
|
|
41
|
+
"la-north-2": LA_NORTH_2,
|
|
42
|
+
"tr-west-1": TR_WEST_1,
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkcae
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.139
|
|
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.139
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|