volcengine-python-sdk 5.0.37__py2.py3-none-any.whl → 5.0.38__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.
- {volcengine_python_sdk-5.0.37.dist-info → volcengine_python_sdk-5.0.38.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-5.0.37.dist-info → volcengine_python_sdk-5.0.38.dist-info}/RECORD +21 -11
- {volcengine_python_sdk-5.0.37.dist-info → volcengine_python_sdk-5.0.38.dist-info}/WHEEL +1 -1
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkiam/__init__.py +10 -0
- volcenginesdkiam/api/iam_api.py +388 -0
- volcenginesdkiam/models/__init__.py +10 -0
- volcenginesdkiam/models/api_key_for_create_api_key_output.py +279 -0
- volcenginesdkiam/models/api_key_for_list_api_keys_output.py +253 -0
- volcenginesdkiam/models/create_api_key_request.py +181 -0
- volcenginesdkiam/models/create_api_key_response.py +123 -0
- volcenginesdkiam/models/delete_api_key_request.py +150 -0
- volcenginesdkiam/models/delete_api_key_response.py +95 -0
- volcenginesdkiam/models/list_api_keys_request.py +187 -0
- volcenginesdkiam/models/list_api_keys_response.py +149 -0
- volcenginesdkiam/models/update_api_key_request.py +241 -0
- volcenginesdkiam/models/update_api_key_response.py +95 -0
- {volcengine_python_sdk-5.0.37.dist-info → volcengine_python_sdk-5.0.38.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-5.0.37.dist-info → volcengine_python_sdk-5.0.38.dist-info}/licenses/NOTICE.md +0 -0
- {volcengine_python_sdk-5.0.37.dist-info → volcengine_python_sdk-5.0.38.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
iam
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ApiKeyForCreateApiKeyOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'create_date': 'str',
|
|
37
|
+
'id': 'str',
|
|
38
|
+
'name': 'str',
|
|
39
|
+
'permissions_boundary': 'str',
|
|
40
|
+
'secret': 'str',
|
|
41
|
+
'status': 'str',
|
|
42
|
+
'update_date': 'str'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'create_date': 'CreateDate',
|
|
47
|
+
'id': 'Id',
|
|
48
|
+
'name': 'Name',
|
|
49
|
+
'permissions_boundary': 'PermissionsBoundary',
|
|
50
|
+
'secret': 'Secret',
|
|
51
|
+
'status': 'Status',
|
|
52
|
+
'update_date': 'UpdateDate'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, create_date=None, id=None, name=None, permissions_boundary=None, secret=None, status=None, update_date=None, _configuration=None): # noqa: E501
|
|
56
|
+
"""ApiKeyForCreateApiKeyOutput - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
if _configuration is None:
|
|
58
|
+
_configuration = Configuration()
|
|
59
|
+
self._configuration = _configuration
|
|
60
|
+
|
|
61
|
+
self._create_date = None
|
|
62
|
+
self._id = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._permissions_boundary = None
|
|
65
|
+
self._secret = None
|
|
66
|
+
self._status = None
|
|
67
|
+
self._update_date = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
|
|
70
|
+
if create_date is not None:
|
|
71
|
+
self.create_date = create_date
|
|
72
|
+
if id is not None:
|
|
73
|
+
self.id = id
|
|
74
|
+
if name is not None:
|
|
75
|
+
self.name = name
|
|
76
|
+
if permissions_boundary is not None:
|
|
77
|
+
self.permissions_boundary = permissions_boundary
|
|
78
|
+
if secret is not None:
|
|
79
|
+
self.secret = secret
|
|
80
|
+
if status is not None:
|
|
81
|
+
self.status = status
|
|
82
|
+
if update_date is not None:
|
|
83
|
+
self.update_date = update_date
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def create_date(self):
|
|
87
|
+
"""Gets the create_date of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The create_date of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._create_date
|
|
94
|
+
|
|
95
|
+
@create_date.setter
|
|
96
|
+
def create_date(self, create_date):
|
|
97
|
+
"""Sets the create_date of this ApiKeyForCreateApiKeyOutput.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param create_date: The create_date of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
self._create_date = create_date
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def id(self):
|
|
108
|
+
"""Gets the id of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:return: The id of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._id
|
|
115
|
+
|
|
116
|
+
@id.setter
|
|
117
|
+
def id(self, id):
|
|
118
|
+
"""Sets the id of this ApiKeyForCreateApiKeyOutput.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param id: The id of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
122
|
+
:type: str
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
self._id = id
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def name(self):
|
|
129
|
+
"""Gets the name of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:return: The name of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
133
|
+
:rtype: str
|
|
134
|
+
"""
|
|
135
|
+
return self._name
|
|
136
|
+
|
|
137
|
+
@name.setter
|
|
138
|
+
def name(self, name):
|
|
139
|
+
"""Sets the name of this ApiKeyForCreateApiKeyOutput.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:param name: The name of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
143
|
+
:type: str
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
self._name = name
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def permissions_boundary(self):
|
|
150
|
+
"""Gets the permissions_boundary of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:return: The permissions_boundary of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
154
|
+
:rtype: str
|
|
155
|
+
"""
|
|
156
|
+
return self._permissions_boundary
|
|
157
|
+
|
|
158
|
+
@permissions_boundary.setter
|
|
159
|
+
def permissions_boundary(self, permissions_boundary):
|
|
160
|
+
"""Sets the permissions_boundary of this ApiKeyForCreateApiKeyOutput.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:param permissions_boundary: The permissions_boundary of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
164
|
+
:type: str
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
self._permissions_boundary = permissions_boundary
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def secret(self):
|
|
171
|
+
"""Gets the secret of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:return: The secret of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._secret
|
|
178
|
+
|
|
179
|
+
@secret.setter
|
|
180
|
+
def secret(self, secret):
|
|
181
|
+
"""Sets the secret of this ApiKeyForCreateApiKeyOutput.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param secret: The secret of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
185
|
+
:type: str
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
self._secret = secret
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def status(self):
|
|
192
|
+
"""Gets the status of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:return: The status of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
196
|
+
:rtype: str
|
|
197
|
+
"""
|
|
198
|
+
return self._status
|
|
199
|
+
|
|
200
|
+
@status.setter
|
|
201
|
+
def status(self, status):
|
|
202
|
+
"""Sets the status of this ApiKeyForCreateApiKeyOutput.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:param status: The status of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
206
|
+
:type: str
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._status = status
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def update_date(self):
|
|
213
|
+
"""Gets the update_date of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
:return: The update_date of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
217
|
+
:rtype: str
|
|
218
|
+
"""
|
|
219
|
+
return self._update_date
|
|
220
|
+
|
|
221
|
+
@update_date.setter
|
|
222
|
+
def update_date(self, update_date):
|
|
223
|
+
"""Sets the update_date of this ApiKeyForCreateApiKeyOutput.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:param update_date: The update_date of this ApiKeyForCreateApiKeyOutput. # noqa: E501
|
|
227
|
+
:type: str
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
self._update_date = update_date
|
|
231
|
+
|
|
232
|
+
def to_dict(self):
|
|
233
|
+
"""Returns the model properties as a dict"""
|
|
234
|
+
result = {}
|
|
235
|
+
|
|
236
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
237
|
+
value = getattr(self, attr)
|
|
238
|
+
if isinstance(value, list):
|
|
239
|
+
result[attr] = list(map(
|
|
240
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
241
|
+
value
|
|
242
|
+
))
|
|
243
|
+
elif hasattr(value, "to_dict"):
|
|
244
|
+
result[attr] = value.to_dict()
|
|
245
|
+
elif isinstance(value, dict):
|
|
246
|
+
result[attr] = dict(map(
|
|
247
|
+
lambda item: (item[0], item[1].to_dict())
|
|
248
|
+
if hasattr(item[1], "to_dict") else item,
|
|
249
|
+
value.items()
|
|
250
|
+
))
|
|
251
|
+
else:
|
|
252
|
+
result[attr] = value
|
|
253
|
+
if issubclass(ApiKeyForCreateApiKeyOutput, dict):
|
|
254
|
+
for key, value in self.items():
|
|
255
|
+
result[key] = value
|
|
256
|
+
|
|
257
|
+
return result
|
|
258
|
+
|
|
259
|
+
def to_str(self):
|
|
260
|
+
"""Returns the string representation of the model"""
|
|
261
|
+
return pprint.pformat(self.to_dict())
|
|
262
|
+
|
|
263
|
+
def __repr__(self):
|
|
264
|
+
"""For `print` and `pprint`"""
|
|
265
|
+
return self.to_str()
|
|
266
|
+
|
|
267
|
+
def __eq__(self, other):
|
|
268
|
+
"""Returns true if both objects are equal"""
|
|
269
|
+
if not isinstance(other, ApiKeyForCreateApiKeyOutput):
|
|
270
|
+
return False
|
|
271
|
+
|
|
272
|
+
return self.to_dict() == other.to_dict()
|
|
273
|
+
|
|
274
|
+
def __ne__(self, other):
|
|
275
|
+
"""Returns true if both objects are not equal"""
|
|
276
|
+
if not isinstance(other, ApiKeyForCreateApiKeyOutput):
|
|
277
|
+
return True
|
|
278
|
+
|
|
279
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
iam
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ApiKeyForListApiKeysOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'create_date': 'str',
|
|
37
|
+
'id': 'str',
|
|
38
|
+
'name': 'str',
|
|
39
|
+
'permissions_boundary': 'str',
|
|
40
|
+
'status': 'str',
|
|
41
|
+
'update_date': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'create_date': 'CreateDate',
|
|
46
|
+
'id': 'Id',
|
|
47
|
+
'name': 'Name',
|
|
48
|
+
'permissions_boundary': 'PermissionsBoundary',
|
|
49
|
+
'status': 'Status',
|
|
50
|
+
'update_date': 'UpdateDate'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, create_date=None, id=None, name=None, permissions_boundary=None, status=None, update_date=None, _configuration=None): # noqa: E501
|
|
54
|
+
"""ApiKeyForListApiKeysOutput - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
if _configuration is None:
|
|
56
|
+
_configuration = Configuration()
|
|
57
|
+
self._configuration = _configuration
|
|
58
|
+
|
|
59
|
+
self._create_date = None
|
|
60
|
+
self._id = None
|
|
61
|
+
self._name = None
|
|
62
|
+
self._permissions_boundary = None
|
|
63
|
+
self._status = None
|
|
64
|
+
self._update_date = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
if create_date is not None:
|
|
68
|
+
self.create_date = create_date
|
|
69
|
+
if id is not None:
|
|
70
|
+
self.id = id
|
|
71
|
+
if name is not None:
|
|
72
|
+
self.name = name
|
|
73
|
+
if permissions_boundary is not None:
|
|
74
|
+
self.permissions_boundary = permissions_boundary
|
|
75
|
+
if status is not None:
|
|
76
|
+
self.status = status
|
|
77
|
+
if update_date is not None:
|
|
78
|
+
self.update_date = update_date
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def create_date(self):
|
|
82
|
+
"""Gets the create_date of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:return: The create_date of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
86
|
+
:rtype: str
|
|
87
|
+
"""
|
|
88
|
+
return self._create_date
|
|
89
|
+
|
|
90
|
+
@create_date.setter
|
|
91
|
+
def create_date(self, create_date):
|
|
92
|
+
"""Sets the create_date of this ApiKeyForListApiKeysOutput.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:param create_date: The create_date of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
96
|
+
:type: str
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._create_date = create_date
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def id(self):
|
|
103
|
+
"""Gets the id of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:return: The id of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._id
|
|
110
|
+
|
|
111
|
+
@id.setter
|
|
112
|
+
def id(self, id):
|
|
113
|
+
"""Sets the id of this ApiKeyForListApiKeysOutput.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param id: The id of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
117
|
+
:type: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._id = id
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def name(self):
|
|
124
|
+
"""Gets the name of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:return: The name of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
128
|
+
:rtype: str
|
|
129
|
+
"""
|
|
130
|
+
return self._name
|
|
131
|
+
|
|
132
|
+
@name.setter
|
|
133
|
+
def name(self, name):
|
|
134
|
+
"""Sets the name of this ApiKeyForListApiKeysOutput.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param name: The name of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
138
|
+
:type: str
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
self._name = name
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def permissions_boundary(self):
|
|
145
|
+
"""Gets the permissions_boundary of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:return: The permissions_boundary of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
149
|
+
:rtype: str
|
|
150
|
+
"""
|
|
151
|
+
return self._permissions_boundary
|
|
152
|
+
|
|
153
|
+
@permissions_boundary.setter
|
|
154
|
+
def permissions_boundary(self, permissions_boundary):
|
|
155
|
+
"""Sets the permissions_boundary of this ApiKeyForListApiKeysOutput.
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:param permissions_boundary: The permissions_boundary of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
159
|
+
:type: str
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
self._permissions_boundary = permissions_boundary
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def status(self):
|
|
166
|
+
"""Gets the status of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:return: The status of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
170
|
+
:rtype: str
|
|
171
|
+
"""
|
|
172
|
+
return self._status
|
|
173
|
+
|
|
174
|
+
@status.setter
|
|
175
|
+
def status(self, status):
|
|
176
|
+
"""Sets the status of this ApiKeyForListApiKeysOutput.
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:param status: The status of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
180
|
+
:type: str
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
self._status = status
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def update_date(self):
|
|
187
|
+
"""Gets the update_date of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The update_date of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
191
|
+
:rtype: str
|
|
192
|
+
"""
|
|
193
|
+
return self._update_date
|
|
194
|
+
|
|
195
|
+
@update_date.setter
|
|
196
|
+
def update_date(self, update_date):
|
|
197
|
+
"""Sets the update_date of this ApiKeyForListApiKeysOutput.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param update_date: The update_date of this ApiKeyForListApiKeysOutput. # noqa: E501
|
|
201
|
+
:type: str
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
self._update_date = update_date
|
|
205
|
+
|
|
206
|
+
def to_dict(self):
|
|
207
|
+
"""Returns the model properties as a dict"""
|
|
208
|
+
result = {}
|
|
209
|
+
|
|
210
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
211
|
+
value = getattr(self, attr)
|
|
212
|
+
if isinstance(value, list):
|
|
213
|
+
result[attr] = list(map(
|
|
214
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
215
|
+
value
|
|
216
|
+
))
|
|
217
|
+
elif hasattr(value, "to_dict"):
|
|
218
|
+
result[attr] = value.to_dict()
|
|
219
|
+
elif isinstance(value, dict):
|
|
220
|
+
result[attr] = dict(map(
|
|
221
|
+
lambda item: (item[0], item[1].to_dict())
|
|
222
|
+
if hasattr(item[1], "to_dict") else item,
|
|
223
|
+
value.items()
|
|
224
|
+
))
|
|
225
|
+
else:
|
|
226
|
+
result[attr] = value
|
|
227
|
+
if issubclass(ApiKeyForListApiKeysOutput, dict):
|
|
228
|
+
for key, value in self.items():
|
|
229
|
+
result[key] = value
|
|
230
|
+
|
|
231
|
+
return result
|
|
232
|
+
|
|
233
|
+
def to_str(self):
|
|
234
|
+
"""Returns the string representation of the model"""
|
|
235
|
+
return pprint.pformat(self.to_dict())
|
|
236
|
+
|
|
237
|
+
def __repr__(self):
|
|
238
|
+
"""For `print` and `pprint`"""
|
|
239
|
+
return self.to_str()
|
|
240
|
+
|
|
241
|
+
def __eq__(self, other):
|
|
242
|
+
"""Returns true if both objects are equal"""
|
|
243
|
+
if not isinstance(other, ApiKeyForListApiKeysOutput):
|
|
244
|
+
return False
|
|
245
|
+
|
|
246
|
+
return self.to_dict() == other.to_dict()
|
|
247
|
+
|
|
248
|
+
def __ne__(self, other):
|
|
249
|
+
"""Returns true if both objects are not equal"""
|
|
250
|
+
if not isinstance(other, ApiKeyForListApiKeysOutput):
|
|
251
|
+
return True
|
|
252
|
+
|
|
253
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
iam
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class CreateApiKeyRequest(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'name': 'str',
|
|
37
|
+
'permissions_boundary': 'str',
|
|
38
|
+
'user_name': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'name': 'Name',
|
|
43
|
+
'permissions_boundary': 'PermissionsBoundary',
|
|
44
|
+
'user_name': 'UserName'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, name=None, permissions_boundary=None, user_name=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""CreateApiKeyRequest - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._name = None
|
|
54
|
+
self._permissions_boundary = None
|
|
55
|
+
self._user_name = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if name is not None:
|
|
59
|
+
self.name = name
|
|
60
|
+
if permissions_boundary is not None:
|
|
61
|
+
self.permissions_boundary = permissions_boundary
|
|
62
|
+
if user_name is not None:
|
|
63
|
+
self.user_name = user_name
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def name(self):
|
|
67
|
+
"""Gets the name of this CreateApiKeyRequest. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The name of this CreateApiKeyRequest. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._name
|
|
74
|
+
|
|
75
|
+
@name.setter
|
|
76
|
+
def name(self, name):
|
|
77
|
+
"""Sets the name of this CreateApiKeyRequest.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param name: The name of this CreateApiKeyRequest. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
if (self._configuration.client_side_validation and
|
|
84
|
+
name is not None and len(name) > 128):
|
|
85
|
+
raise ValueError("Invalid value for `name`, length must be less than or equal to `128`") # noqa: E501
|
|
86
|
+
|
|
87
|
+
self._name = name
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def permissions_boundary(self):
|
|
91
|
+
"""Gets the permissions_boundary of this CreateApiKeyRequest. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The permissions_boundary of this CreateApiKeyRequest. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._permissions_boundary
|
|
98
|
+
|
|
99
|
+
@permissions_boundary.setter
|
|
100
|
+
def permissions_boundary(self, permissions_boundary):
|
|
101
|
+
"""Sets the permissions_boundary of this CreateApiKeyRequest.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param permissions_boundary: The permissions_boundary of this CreateApiKeyRequest. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
if (self._configuration.client_side_validation and
|
|
108
|
+
permissions_boundary is not None and len(permissions_boundary) > 2048):
|
|
109
|
+
raise ValueError("Invalid value for `permissions_boundary`, length must be less than or equal to `2048`") # noqa: E501
|
|
110
|
+
|
|
111
|
+
self._permissions_boundary = permissions_boundary
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def user_name(self):
|
|
115
|
+
"""Gets the user_name of this CreateApiKeyRequest. # noqa: E501
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:return: The user_name of this CreateApiKeyRequest. # noqa: E501
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._user_name
|
|
122
|
+
|
|
123
|
+
@user_name.setter
|
|
124
|
+
def user_name(self, user_name):
|
|
125
|
+
"""Sets the user_name of this CreateApiKeyRequest.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param user_name: The user_name of this CreateApiKeyRequest. # noqa: E501
|
|
129
|
+
:type: str
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._user_name = user_name
|
|
133
|
+
|
|
134
|
+
def to_dict(self):
|
|
135
|
+
"""Returns the model properties as a dict"""
|
|
136
|
+
result = {}
|
|
137
|
+
|
|
138
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
139
|
+
value = getattr(self, attr)
|
|
140
|
+
if isinstance(value, list):
|
|
141
|
+
result[attr] = list(map(
|
|
142
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
143
|
+
value
|
|
144
|
+
))
|
|
145
|
+
elif hasattr(value, "to_dict"):
|
|
146
|
+
result[attr] = value.to_dict()
|
|
147
|
+
elif isinstance(value, dict):
|
|
148
|
+
result[attr] = dict(map(
|
|
149
|
+
lambda item: (item[0], item[1].to_dict())
|
|
150
|
+
if hasattr(item[1], "to_dict") else item,
|
|
151
|
+
value.items()
|
|
152
|
+
))
|
|
153
|
+
else:
|
|
154
|
+
result[attr] = value
|
|
155
|
+
if issubclass(CreateApiKeyRequest, dict):
|
|
156
|
+
for key, value in self.items():
|
|
157
|
+
result[key] = value
|
|
158
|
+
|
|
159
|
+
return result
|
|
160
|
+
|
|
161
|
+
def to_str(self):
|
|
162
|
+
"""Returns the string representation of the model"""
|
|
163
|
+
return pprint.pformat(self.to_dict())
|
|
164
|
+
|
|
165
|
+
def __repr__(self):
|
|
166
|
+
"""For `print` and `pprint`"""
|
|
167
|
+
return self.to_str()
|
|
168
|
+
|
|
169
|
+
def __eq__(self, other):
|
|
170
|
+
"""Returns true if both objects are equal"""
|
|
171
|
+
if not isinstance(other, CreateApiKeyRequest):
|
|
172
|
+
return False
|
|
173
|
+
|
|
174
|
+
return self.to_dict() == other.to_dict()
|
|
175
|
+
|
|
176
|
+
def __ne__(self, other):
|
|
177
|
+
"""Returns true if both objects are not equal"""
|
|
178
|
+
if not isinstance(other, CreateApiKeyRequest):
|
|
179
|
+
return True
|
|
180
|
+
|
|
181
|
+
return self.to_dict() != other.to_dict()
|