Skip to content

Commit c329a7b

Browse files
committed
update
2 parents 1b957d0 + f393905 commit c329a7b

File tree

92 files changed

+8712
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+8712
-57
lines changed

meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"lasted": "1.0.78",
33
"meta_commit": "47356c17fece2006e8b3a1348f420fdf1de04d4e"
4-
}
4+
}

volcenginesdkark/__init__.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
ark
7+
8+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
9+
10+
OpenAPI spec version: common-version
11+
12+
Generated by: https://github.com/swagger-api/swagger-codegen.git
13+
"""
14+
15+
16+
from __future__ import absolute_import
17+
18+
# import apis into sdk package
19+
from volcenginesdkark.api.ark_api import ARKApi
20+
21+
# import models into sdk package
22+
from volcenginesdkark.models.get_api_key_request import GetApiKeyRequest
23+
from volcenginesdkark.models.get_api_key_response import GetApiKeyResponse

volcenginesdkark/api/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from __future__ import absolute_import
2+
3+
# flake8: noqa
4+
5+
# import apis into api package
6+
from volcenginesdkark.api.ark_api import ARKApi

volcenginesdkark/api/ark_api.py

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# coding: utf-8
2+
3+
"""
4+
ark
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+
from __future__ import absolute_import
15+
16+
import re # noqa: F401
17+
18+
# python 2 and python 3 compatibility library
19+
import six
20+
21+
import volcenginesdkcore
22+
23+
24+
class ARKApi(object):
25+
"""NOTE: This class is auto generated by the swagger code generator program.
26+
27+
Do not edit the class manually.
28+
Ref: https://github.com/swagger-api/swagger-codegen
29+
"""
30+
31+
def __init__(self, api_client=None):
32+
if api_client is None:
33+
api_client = volcenginesdkcore.ApiClient()
34+
self.api_client = api_client
35+
36+
def get_api_key(self, body, **kwargs): # noqa: E501
37+
"""get_api_key # noqa: E501
38+
39+
This method makes a synchronous HTTP request by default. To make an
40+
asynchronous HTTP request, please pass async_req=True
41+
>>> thread = api.get_api_key(body, async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool
45+
:param GetApiKeyRequest body: (required)
46+
:return: GetApiKeyResponse
47+
If the method is called asynchronously,
48+
returns the request thread.
49+
"""
50+
kwargs['_return_http_data_only'] = True
51+
if kwargs.get('async_req'):
52+
return self.get_api_key_with_http_info(body, **kwargs) # noqa: E501
53+
else:
54+
(data) = self.get_api_key_with_http_info(body, **kwargs) # noqa: E501
55+
return data
56+
57+
def get_api_key_with_http_info(self, body, **kwargs): # noqa: E501
58+
"""get_api_key # noqa: E501
59+
60+
This method makes a synchronous HTTP request by default. To make an
61+
asynchronous HTTP request, please pass async_req=True
62+
>>> thread = api.get_api_key_with_http_info(body, async_req=True)
63+
>>> result = thread.get()
64+
65+
:param async_req bool
66+
:param GetApiKeyRequest body: (required)
67+
:return: GetApiKeyResponse
68+
If the method is called asynchronously,
69+
returns the request thread.
70+
"""
71+
72+
all_params = ['body'] # noqa: E501
73+
all_params.append('async_req')
74+
all_params.append('_return_http_data_only')
75+
all_params.append('_preload_content')
76+
all_params.append('_request_timeout')
77+
78+
params = locals()
79+
for key, val in six.iteritems(params['kwargs']):
80+
if key not in all_params:
81+
raise TypeError(
82+
"Got an unexpected keyword argument '%s'"
83+
" to method get_api_key" % key
84+
)
85+
params[key] = val
86+
del params['kwargs']
87+
# verify the required parameter 'body' is set
88+
if self.api_client.client_side_validation and ('body' not in params or
89+
params['body'] is None): # noqa: E501
90+
raise ValueError("Missing the required parameter `body` when calling `get_api_key`") # noqa: E501
91+
92+
collection_formats = {}
93+
94+
path_params = {}
95+
96+
query_params = []
97+
98+
header_params = {}
99+
100+
form_params = []
101+
local_var_files = {}
102+
103+
body_params = None
104+
if 'body' in params:
105+
body_params = params['body']
106+
# HTTP header `Accept`
107+
header_params['Accept'] = self.api_client.select_header_accept(
108+
['application/json']) # noqa: E501
109+
110+
# HTTP header `Content-Type`
111+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112+
['application/json']) # noqa: E501
113+
114+
# Authentication setting
115+
auth_settings = ['volcengineSign'] # noqa: E501
116+
117+
return self.api_client.call_api(
118+
'/GetApiKey/2024-01-01/ark/post/application_json/', 'POST',
119+
path_params,
120+
query_params,
121+
header_params,
122+
body=body_params,
123+
post_params=form_params,
124+
files=local_var_files,
125+
response_type='GetApiKeyResponse', # noqa: E501
126+
auth_settings=auth_settings,
127+
async_req=params.get('async_req'),
128+
_return_http_data_only=params.get('_return_http_data_only'),
129+
_preload_content=params.get('_preload_content', True),
130+
_request_timeout=params.get('_request_timeout'),
131+
collection_formats=collection_formats)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
"""
5+
ark
6+
7+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8+
9+
OpenAPI spec version: common-version
10+
11+
Generated by: https://github.com/swagger-api/swagger-codegen.git
12+
"""
13+
14+
15+
from __future__ import absolute_import
16+
17+
# import models into model package
18+
from volcenginesdkark.models.get_api_key_request import GetApiKeyRequest
19+
from volcenginesdkark.models.get_api_key_response import GetApiKeyResponse
Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# coding: utf-8
2+
3+
"""
4+
ark
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 GetApiKeyRequest(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+
'duration_seconds': 'int',
37+
'resource_ids': 'list[str]',
38+
'resource_type': 'str'
39+
}
40+
41+
attribute_map = {
42+
'duration_seconds': 'DurationSeconds',
43+
'resource_ids': 'ResourceIds',
44+
'resource_type': 'ResourceType'
45+
}
46+
47+
def __init__(self, duration_seconds=None, resource_ids=None, resource_type=None, _configuration=None): # noqa: E501
48+
"""GetApiKeyRequest - a model defined in Swagger""" # noqa: E501
49+
if _configuration is None:
50+
_configuration = Configuration()
51+
self._configuration = _configuration
52+
53+
self._duration_seconds = None
54+
self._resource_ids = None
55+
self._resource_type = None
56+
self.discriminator = None
57+
58+
self.duration_seconds = duration_seconds
59+
if resource_ids is not None:
60+
self.resource_ids = resource_ids
61+
self.resource_type = resource_type
62+
63+
@property
64+
def duration_seconds(self):
65+
"""Gets the duration_seconds of this GetApiKeyRequest. # noqa: E501
66+
67+
68+
:return: The duration_seconds of this GetApiKeyRequest. # noqa: E501
69+
:rtype: int
70+
"""
71+
return self._duration_seconds
72+
73+
@duration_seconds.setter
74+
def duration_seconds(self, duration_seconds):
75+
"""Sets the duration_seconds of this GetApiKeyRequest.
76+
77+
78+
:param duration_seconds: The duration_seconds of this GetApiKeyRequest. # noqa: E501
79+
:type: int
80+
"""
81+
if self._configuration.client_side_validation and duration_seconds is None:
82+
raise ValueError("Invalid value for `duration_seconds`, must not be `None`") # noqa: E501
83+
84+
self._duration_seconds = duration_seconds
85+
86+
@property
87+
def resource_ids(self):
88+
"""Gets the resource_ids of this GetApiKeyRequest. # noqa: E501
89+
90+
91+
:return: The resource_ids of this GetApiKeyRequest. # noqa: E501
92+
:rtype: list[str]
93+
"""
94+
return self._resource_ids
95+
96+
@resource_ids.setter
97+
def resource_ids(self, resource_ids):
98+
"""Sets the resource_ids of this GetApiKeyRequest.
99+
100+
101+
:param resource_ids: The resource_ids of this GetApiKeyRequest. # noqa: E501
102+
:type: list[str]
103+
"""
104+
105+
self._resource_ids = resource_ids
106+
107+
@property
108+
def resource_type(self):
109+
"""Gets the resource_type of this GetApiKeyRequest. # noqa: E501
110+
111+
112+
:return: The resource_type of this GetApiKeyRequest. # noqa: E501
113+
:rtype: str
114+
"""
115+
return self._resource_type
116+
117+
@resource_type.setter
118+
def resource_type(self, resource_type):
119+
"""Sets the resource_type of this GetApiKeyRequest.
120+
121+
122+
:param resource_type: The resource_type of this GetApiKeyRequest. # noqa: E501
123+
:type: str
124+
"""
125+
if self._configuration.client_side_validation and resource_type is None:
126+
raise ValueError("Invalid value for `resource_type`, must not be `None`") # noqa: E501
127+
128+
self._resource_type = resource_type
129+
130+
def to_dict(self):
131+
"""Returns the model properties as a dict"""
132+
result = {}
133+
134+
for attr, _ in six.iteritems(self.swagger_types):
135+
value = getattr(self, attr)
136+
if isinstance(value, list):
137+
result[attr] = list(map(
138+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
139+
value
140+
))
141+
elif hasattr(value, "to_dict"):
142+
result[attr] = value.to_dict()
143+
elif isinstance(value, dict):
144+
result[attr] = dict(map(
145+
lambda item: (item[0], item[1].to_dict())
146+
if hasattr(item[1], "to_dict") else item,
147+
value.items()
148+
))
149+
else:
150+
result[attr] = value
151+
if issubclass(GetApiKeyRequest, dict):
152+
for key, value in self.items():
153+
result[key] = value
154+
155+
return result
156+
157+
def to_str(self):
158+
"""Returns the string representation of the model"""
159+
return pprint.pformat(self.to_dict())
160+
161+
def __repr__(self):
162+
"""For `print` and `pprint`"""
163+
return self.to_str()
164+
165+
def __eq__(self, other):
166+
"""Returns true if both objects are equal"""
167+
if not isinstance(other, GetApiKeyRequest):
168+
return False
169+
170+
return self.to_dict() == other.to_dict()
171+
172+
def __ne__(self, other):
173+
"""Returns true if both objects are not equal"""
174+
if not isinstance(other, GetApiKeyRequest):
175+
return True
176+
177+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)