33
44 Cosmo Tech Platform API # noqa: E501
55
6- The version of the OpenAPI document: 2.4.1-dev
6+ The version of the OpenAPI document: 2.3.8
77 Contact: platform@cosmotech.com
88 Generated by: https://openapi-generator.tech
99"""
@@ -49,8 +49,6 @@ def __init__(self, api_client=None):
4949 },
5050 params_map = {
5151 'all' : [
52- 'page' ,
53- 'size' ,
5452 ],
5553 'required' : [],
5654 'nullable' : [
@@ -66,18 +64,10 @@ def __init__(self, api_client=None):
6664 'allowed_values' : {
6765 },
6866 'openapi_types' : {
69- 'page' :
70- (int ,),
71- 'size' :
72- (int ,),
7367 },
7468 'attribute_map' : {
75- 'page' : 'page' ,
76- 'size' : 'size' ,
7769 },
7870 'location_map' : {
79- 'page' : 'query' ,
80- 'size' : 'query' ,
8171 },
8272 'collection_format_map' : {
8373 }
@@ -141,58 +131,6 @@ def __init__(self, api_client=None):
141131 },
142132 api_client = api_client
143133 )
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- )
196134 self .register_connector_endpoint = _Endpoint (
197135 settings = {
198136 'response_type' : (Connector ,),
@@ -310,8 +248,6 @@ def find_all_connectors(
310248
311249
312250 Keyword Args:
313- page (int): page number to query. [optional]
314- size (int): amount of result by page. [optional]
315251 _return_http_data_only (bool): response data without head status
316252 code and headers. Default is True.
317253 _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -447,83 +383,6 @@ def find_connector_by_id(
447383 connector_id
448384 return self .find_connector_by_id_endpoint .call_with_http_info (** kwargs )
449385
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-
527386 def register_connector (
528387 self ,
529388 connector ,
0 commit comments