Skip to content

Commit 21de465

Browse files
csmplatformvcarluer
andcommitted
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@16a22d3)
Co-authored-by: vcarluer <vcarluer@users.noreply.github.com>
1 parent 36465ee commit 21de465

File tree

165 files changed

+768
-330
lines changed

Some content is hidden

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

165 files changed

+768
-330
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Cosmo Tech Platform API
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: 2.2.1
6+
- API version: 2.3.6-SNAPSHOT
77
- Package version: 1.0.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://github.com/Cosmo-Tech/cosmotech-api](https://github.com/Cosmo-Tech/cosmotech-api)
@@ -171,6 +171,8 @@ Class | Method | HTTP request | Description
171171
*SolutionApi* | [**update_solution_run_template**](docs/SolutionApi.md#update_solution_run_template) | **PATCH** /organizations/{organization_id}/solutions/{solution_id}/runTemplates/{run_template_id} | Update the specified Solution Run Template
172172
*SolutionApi* | [**upload_run_template_handler**](docs/SolutionApi.md#upload_run_template_handler) | **POST** /organizations/{organization_id}/solutions/{solution_id}/runtemplates/{run_template_id}/handlers/{handler_id}/upload | Upload a Run Template step handler zip file
173173
*TwingraphApi* | [**delete**](docs/TwingraphApi.md#delete) | **DELETE** /organizations/{organization_id}/twingraph/{graph_id} |
174+
*TwingraphApi* | [**find_all_twingraphs**](docs/TwingraphApi.md#find_all_twingraphs) | **GET** /organizations/{organization_id}/twingraphs |
175+
*TwingraphApi* | [**get_graph_meta_data**](docs/TwingraphApi.md#get_graph_meta_data) | **GET** /organizations/{organization_id}/twingraph/{graph_id}/metadata |
174176
*TwingraphApi* | [**import_graph**](docs/TwingraphApi.md#import_graph) | **POST** /organizations/{organization_id}/twingraph/import |
175177
*TwingraphApi* | [**job_status**](docs/TwingraphApi.md#job_status) | **GET** /organizations/{organization_id}/job/{job_id}/status |
176178
*TwingraphApi* | [**query**](docs/TwingraphApi.md#query) | **POST** /organizations/{organization_id}/twingraph/{graph_id}/query |

cosmotech_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# flake8: noqa
22

33
"""
4-
Cosmo Tech Plaform API
4+
Cosmo Tech Platform API
55
66
Cosmo Tech Platform API # noqa: E501
77
8-
The version of the OpenAPI document: 2.2.1
8+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
99
Contact: platform@cosmotech.com
1010
Generated by: https://openapi-generator.tech
1111
"""

cosmotech_api/api/connector_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""

cosmotech_api/api/dataset_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""

cosmotech_api/api/organization_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""

cosmotech_api/api/scenario_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""

cosmotech_api/api/scenariorun_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""

cosmotech_api/api/solution_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""

cosmotech_api/api/twingraph_api.py

Lines changed: 270 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Cosmo Tech Plaform API
2+
Cosmo Tech Platform API
33
44
Cosmo Tech Platform API # noqa: E501
55
6-
The version of the OpenAPI document: 2.2.1
6+
The version of the OpenAPI document: 2.3.6-SNAPSHOT
77
Contact: platform@cosmotech.com
88
Generated by: https://openapi-generator.tech
99
"""
@@ -93,6 +93,114 @@ def __init__(self, api_client=None):
9393
},
9494
api_client=api_client
9595
)
96+
self.find_all_twingraphs_endpoint = _Endpoint(
97+
settings={
98+
'response_type': ([str],),
99+
'auth': [
100+
'oAuth2AuthCode'
101+
],
102+
'endpoint_path': '/organizations/{organization_id}/twingraphs',
103+
'operation_id': 'find_all_twingraphs',
104+
'http_method': 'GET',
105+
'servers': None,
106+
},
107+
params_map={
108+
'all': [
109+
'organization_id',
110+
],
111+
'required': [
112+
'organization_id',
113+
],
114+
'nullable': [
115+
],
116+
'enum': [
117+
],
118+
'validation': [
119+
]
120+
},
121+
root_map={
122+
'validations': {
123+
},
124+
'allowed_values': {
125+
},
126+
'openapi_types': {
127+
'organization_id':
128+
(str,),
129+
},
130+
'attribute_map': {
131+
'organization_id': 'organization_id',
132+
},
133+
'location_map': {
134+
'organization_id': 'path',
135+
},
136+
'collection_format_map': {
137+
}
138+
},
139+
headers_map={
140+
'accept': [
141+
'application/json'
142+
],
143+
'content_type': [],
144+
},
145+
api_client=api_client
146+
)
147+
self.get_graph_meta_data_endpoint = _Endpoint(
148+
settings={
149+
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
150+
'auth': [
151+
'oAuth2AuthCode'
152+
],
153+
'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/metadata',
154+
'operation_id': 'get_graph_meta_data',
155+
'http_method': 'GET',
156+
'servers': None,
157+
},
158+
params_map={
159+
'all': [
160+
'organization_id',
161+
'graph_id',
162+
],
163+
'required': [
164+
'organization_id',
165+
'graph_id',
166+
],
167+
'nullable': [
168+
],
169+
'enum': [
170+
],
171+
'validation': [
172+
]
173+
},
174+
root_map={
175+
'validations': {
176+
},
177+
'allowed_values': {
178+
},
179+
'openapi_types': {
180+
'organization_id':
181+
(str,),
182+
'graph_id':
183+
(str,),
184+
},
185+
'attribute_map': {
186+
'organization_id': 'organization_id',
187+
'graph_id': 'graph_id',
188+
},
189+
'location_map': {
190+
'organization_id': 'path',
191+
'graph_id': 'path',
192+
},
193+
'collection_format_map': {
194+
}
195+
},
196+
headers_map={
197+
'accept': [
198+
'application/json'
199+
],
200+
'content_type': [],
201+
},
202+
api_client=api_client
203+
)
96204
self.import_graph_endpoint = _Endpoint(
97205
settings={
98206
'response_type': (TwinGraphImportInfo,),
@@ -358,6 +466,166 @@ def delete(
358466
graph_id
359467
return self.delete_endpoint.call_with_http_info(**kwargs)
360468

469+
def find_all_twingraphs(
470+
self,
471+
organization_id,
472+
**kwargs
473+
):
474+
"""find_all_twingraphs # noqa: E501
475+
476+
Return the list of all graphs stored in the organization # noqa: E501
477+
This method makes a synchronous HTTP request by default. To make an
478+
asynchronous HTTP request, please pass async_req=True
479+
480+
>>> thread = api.find_all_twingraphs(organization_id, async_req=True)
481+
>>> result = thread.get()
482+
483+
Args:
484+
organization_id (str): the Organization identifier
485+
486+
Keyword Args:
487+
_return_http_data_only (bool): response data without head status
488+
code and headers. Default is True.
489+
_preload_content (bool): if False, the urllib3.HTTPResponse object
490+
will be returned without reading/decoding response data.
491+
Default is True.
492+
_request_timeout (int/float/tuple): timeout setting for this request. If
493+
one number provided, it will be total request timeout. It can also
494+
be a pair (tuple) of (connection, read) timeouts.
495+
Default is None.
496+
_check_input_type (bool): specifies if type checking
497+
should be done one the data sent to the server.
498+
Default is True.
499+
_check_return_type (bool): specifies if type checking
500+
should be done one the data received from the server.
501+
Default is True.
502+
_spec_property_naming (bool): True if the variable names in the input data
503+
are serialized names, as specified in the OpenAPI document.
504+
False if the variable names in the input data
505+
are pythonic names, e.g. snake case (default)
506+
_content_type (str/None): force body content-type.
507+
Default is None and content-type will be predicted by allowed
508+
content-types and body.
509+
_host_index (int/None): specifies the index of the server
510+
that we want to use.
511+
Default is read from the configuration.
512+
async_req (bool): execute request asynchronously
513+
514+
Returns:
515+
[str]
516+
If the method is called asynchronously, returns the request
517+
thread.
518+
"""
519+
kwargs['async_req'] = kwargs.get(
520+
'async_req', False
521+
)
522+
kwargs['_return_http_data_only'] = kwargs.get(
523+
'_return_http_data_only', True
524+
)
525+
kwargs['_preload_content'] = kwargs.get(
526+
'_preload_content', True
527+
)
528+
kwargs['_request_timeout'] = kwargs.get(
529+
'_request_timeout', None
530+
)
531+
kwargs['_check_input_type'] = kwargs.get(
532+
'_check_input_type', True
533+
)
534+
kwargs['_check_return_type'] = kwargs.get(
535+
'_check_return_type', True
536+
)
537+
kwargs['_spec_property_naming'] = kwargs.get(
538+
'_spec_property_naming', False
539+
)
540+
kwargs['_content_type'] = kwargs.get(
541+
'_content_type')
542+
kwargs['_host_index'] = kwargs.get('_host_index')
543+
kwargs['organization_id'] = \
544+
organization_id
545+
return self.find_all_twingraphs_endpoint.call_with_http_info(**kwargs)
546+
547+
def get_graph_meta_data(
548+
self,
549+
organization_id,
550+
graph_id,
551+
**kwargs
552+
):
553+
"""get_graph_meta_data # noqa: E501
554+
555+
Return the metaData of the specified graph # noqa: E501
556+
This method makes a synchronous HTTP request by default. To make an
557+
asynchronous HTTP request, please pass async_req=True
558+
559+
>>> thread = api.get_graph_meta_data(organization_id, graph_id, async_req=True)
560+
>>> result = thread.get()
561+
562+
Args:
563+
organization_id (str): the Organization identifier
564+
graph_id (str): the Graph Identifier
565+
566+
Keyword Args:
567+
_return_http_data_only (bool): response data without head status
568+
code and headers. Default is True.
569+
_preload_content (bool): if False, the urllib3.HTTPResponse object
570+
will be returned without reading/decoding response data.
571+
Default is True.
572+
_request_timeout (int/float/tuple): timeout setting for this request. If
573+
one number provided, it will be total request timeout. It can also
574+
be a pair (tuple) of (connection, read) timeouts.
575+
Default is None.
576+
_check_input_type (bool): specifies if type checking
577+
should be done one the data sent to the server.
578+
Default is True.
579+
_check_return_type (bool): specifies if type checking
580+
should be done one the data received from the server.
581+
Default is True.
582+
_spec_property_naming (bool): True if the variable names in the input data
583+
are serialized names, as specified in the OpenAPI document.
584+
False if the variable names in the input data
585+
are pythonic names, e.g. snake case (default)
586+
_content_type (str/None): force body content-type.
587+
Default is None and content-type will be predicted by allowed
588+
content-types and body.
589+
_host_index (int/None): specifies the index of the server
590+
that we want to use.
591+
Default is read from the configuration.
592+
async_req (bool): execute request asynchronously
593+
594+
Returns:
595+
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
596+
If the method is called asynchronously, returns the request
597+
thread.
598+
"""
599+
kwargs['async_req'] = kwargs.get(
600+
'async_req', False
601+
)
602+
kwargs['_return_http_data_only'] = kwargs.get(
603+
'_return_http_data_only', True
604+
)
605+
kwargs['_preload_content'] = kwargs.get(
606+
'_preload_content', True
607+
)
608+
kwargs['_request_timeout'] = kwargs.get(
609+
'_request_timeout', None
610+
)
611+
kwargs['_check_input_type'] = kwargs.get(
612+
'_check_input_type', True
613+
)
614+
kwargs['_check_return_type'] = kwargs.get(
615+
'_check_return_type', True
616+
)
617+
kwargs['_spec_property_naming'] = kwargs.get(
618+
'_spec_property_naming', False
619+
)
620+
kwargs['_content_type'] = kwargs.get(
621+
'_content_type')
622+
kwargs['_host_index'] = kwargs.get('_host_index')
623+
kwargs['organization_id'] = \
624+
organization_id
625+
kwargs['graph_id'] = \
626+
graph_id
627+
return self.get_graph_meta_data_endpoint.call_with_http_info(**kwargs)
628+
361629
def import_graph(
362630
self,
363631
organization_id,

0 commit comments

Comments
 (0)