Skip to content

Commit 81813b0

Browse files
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@c402a87)
Co-authored-by: jreynard-code <jreynard-code@users.noreply.github.com>
1 parent 0cd5dc7 commit 81813b0

File tree

178 files changed

+4741
-302
lines changed

Some content is hidden

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

178 files changed

+4741
-302
lines changed

README.md

Lines changed: 30 additions & 22 deletions
Large diffs are not rendered by default.

cosmotech_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Cosmo Tech Platform API # noqa: E501
77
8-
The version of the OpenAPI document: 2.3.15-private
8+
The version of the OpenAPI document: 2.4.7-private
99
Contact: platform@cosmotech.com
1010
Generated by: https://openapi-generator.tech
1111
"""

cosmotech_api/api/connector_api.py

Lines changed: 142 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.3.15-private
6+
The version of the OpenAPI document: 2.4.7-private
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""
@@ -49,6 +49,8 @@ def __init__(self, api_client=None):
4949
},
5050
params_map={
5151
'all': [
52+
'page',
53+
'size',
5254
],
5355
'required': [],
5456
'nullable': [
@@ -64,10 +66,18 @@ def __init__(self, api_client=None):
6466
'allowed_values': {
6567
},
6668
'openapi_types': {
69+
'page':
70+
(int,),
71+
'size':
72+
(int,),
6773
},
6874
'attribute_map': {
75+
'page': 'page',
76+
'size': 'size',
6977
},
7078
'location_map': {
79+
'page': 'query',
80+
'size': 'query',
7181
},
7282
'collection_format_map': {
7383
}
@@ -131,6 +141,58 @@ def __init__(self, api_client=None):
131141
},
132142
api_client=api_client
133143
)
144+
self.import_connector_endpoint = _Endpoint(
145+
settings={
146+
'response_type': (Connector,),
147+
'auth': [
148+
'oAuth2AuthCode'
149+
],
150+
'endpoint_path': '/connectors/import',
151+
'operation_id': 'import_connector',
152+
'http_method': 'POST',
153+
'servers': None,
154+
},
155+
params_map={
156+
'all': [
157+
'connector',
158+
],
159+
'required': [
160+
'connector',
161+
],
162+
'nullable': [
163+
],
164+
'enum': [
165+
],
166+
'validation': [
167+
]
168+
},
169+
root_map={
170+
'validations': {
171+
},
172+
'allowed_values': {
173+
},
174+
'openapi_types': {
175+
'connector':
176+
(Connector,),
177+
},
178+
'attribute_map': {
179+
},
180+
'location_map': {
181+
'connector': 'body',
182+
},
183+
'collection_format_map': {
184+
}
185+
},
186+
headers_map={
187+
'accept': [
188+
'application/json'
189+
],
190+
'content_type': [
191+
'application/json'
192+
]
193+
},
194+
api_client=api_client
195+
)
134196
self.register_connector_endpoint = _Endpoint(
135197
settings={
136198
'response_type': (Connector,),
@@ -248,6 +310,8 @@ def find_all_connectors(
248310
249311
250312
Keyword Args:
313+
page (int): page number to query. [optional]
314+
size (int): amount of result by page. [optional]
251315
_return_http_data_only (bool): response data without head status
252316
code and headers. Default is True.
253317
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -383,6 +447,83 @@ def find_connector_by_id(
383447
connector_id
384448
return self.find_connector_by_id_endpoint.call_with_http_info(**kwargs)
385449

450+
def import_connector(
451+
self,
452+
connector,
453+
**kwargs
454+
):
455+
"""Import existing connector # noqa: E501
456+
457+
This method makes a synchronous HTTP request by default. To make an
458+
asynchronous HTTP request, please pass async_req=True
459+
460+
>>> thread = api.import_connector(connector, async_req=True)
461+
>>> result = thread.get()
462+
463+
Args:
464+
connector (Connector): the Connector to import
465+
466+
Keyword Args:
467+
_return_http_data_only (bool): response data without head status
468+
code and headers. Default is True.
469+
_preload_content (bool): if False, the urllib3.HTTPResponse object
470+
will be returned without reading/decoding response data.
471+
Default is True.
472+
_request_timeout (int/float/tuple): timeout setting for this request. If
473+
one number provided, it will be total request timeout. It can also
474+
be a pair (tuple) of (connection, read) timeouts.
475+
Default is None.
476+
_check_input_type (bool): specifies if type checking
477+
should be done one the data sent to the server.
478+
Default is True.
479+
_check_return_type (bool): specifies if type checking
480+
should be done one the data received from the server.
481+
Default is True.
482+
_spec_property_naming (bool): True if the variable names in the input data
483+
are serialized names, as specified in the OpenAPI document.
484+
False if the variable names in the input data
485+
are pythonic names, e.g. snake case (default)
486+
_content_type (str/None): force body content-type.
487+
Default is None and content-type will be predicted by allowed
488+
content-types and body.
489+
_host_index (int/None): specifies the index of the server
490+
that we want to use.
491+
Default is read from the configuration.
492+
async_req (bool): execute request asynchronously
493+
494+
Returns:
495+
Connector
496+
If the method is called asynchronously, returns the request
497+
thread.
498+
"""
499+
kwargs['async_req'] = kwargs.get(
500+
'async_req', False
501+
)
502+
kwargs['_return_http_data_only'] = kwargs.get(
503+
'_return_http_data_only', True
504+
)
505+
kwargs['_preload_content'] = kwargs.get(
506+
'_preload_content', True
507+
)
508+
kwargs['_request_timeout'] = kwargs.get(
509+
'_request_timeout', None
510+
)
511+
kwargs['_check_input_type'] = kwargs.get(
512+
'_check_input_type', True
513+
)
514+
kwargs['_check_return_type'] = kwargs.get(
515+
'_check_return_type', True
516+
)
517+
kwargs['_spec_property_naming'] = kwargs.get(
518+
'_spec_property_naming', False
519+
)
520+
kwargs['_content_type'] = kwargs.get(
521+
'_content_type')
522+
kwargs['_host_index'] = kwargs.get('_host_index')
523+
kwargs['connector'] = \
524+
connector
525+
return self.import_connector_endpoint.call_with_http_info(**kwargs)
526+
386527
def register_connector(
387528
self,
388529
connector,

0 commit comments

Comments
 (0)