Skip to content

Commit 86045a7

Browse files
csmplatformsjoubert
andcommitted
Automatically update python client (ref: Cosmo-Tech/cosmotech-api@10e91bd)
Co-authored-by: sjoubert <sjoubert@users.noreply.github.com>
1 parent 2ddea0a commit 86045a7

File tree

14 files changed

+806
-0
lines changed

14 files changed

+806
-0
lines changed

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cosmotech_api/__init__.py
88
cosmotech_api/api/__init__.py
99
cosmotech_api/api/connector_api.py
1010
cosmotech_api/api/dataset_api.py
11+
cosmotech_api/api/meta_api.py
1112
cosmotech_api/api/organization_api.py
1213
cosmotech_api/api/run_api.py
1314
cosmotech_api/api/runner_api.py
@@ -18,6 +19,8 @@ cosmotech_api/api_response.py
1819
cosmotech_api/configuration.py
1920
cosmotech_api/exceptions.py
2021
cosmotech_api/models/__init__.py
22+
cosmotech_api/models/about_info.py
23+
cosmotech_api/models/about_info_version.py
2124
cosmotech_api/models/component_role_permissions.py
2225
cosmotech_api/models/connector.py
2326
cosmotech_api/models/connector_parameter.py
@@ -94,6 +97,8 @@ cosmotech_api/models/workspace_update_request.py
9497
cosmotech_api/models/workspace_web_app.py
9598
cosmotech_api/py.typed
9699
cosmotech_api/rest.py
100+
docs/AboutInfo.md
101+
docs/AboutInfoVersion.md
97102
docs/ComponentRolePermissions.md
98103
docs/Connector.md
99104
docs/ConnectorApi.md
@@ -120,6 +125,7 @@ docs/FileUploadValidation.md
120125
docs/GraphProperties.md
121126
docs/IngestionStatusEnum.md
122127
docs/IoTypesEnum.md
128+
docs/MetaApi.md
123129
docs/Organization.md
124130
docs/OrganizationAccessControl.md
125131
docs/OrganizationApi.md
@@ -182,6 +188,8 @@ setup.cfg
182188
setup.py
183189
test-requirements.txt
184190
test/__init__.py
191+
test/test_about_info.py
192+
test/test_about_info_version.py
185193
test/test_component_role_permissions.py
186194
test/test_connector.py
187195
test/test_connector_api.py
@@ -208,6 +216,7 @@ test/test_file_upload_validation.py
208216
test/test_graph_properties.py
209217
test/test_ingestion_status_enum.py
210218
test/test_io_types_enum.py
219+
test/test_meta_api.py
211220
test/test_organization.py
212221
test/test_organization_access_control.py
213222
test/test_organization_api.py

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Class | Method | HTTP request | Description
128128
*DatasetApi* | [**update_dataset_access_control**](docs/DatasetApi.md#update_dataset_access_control) | **PATCH** /organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id} | Update the specified access to User for a Dataset
129129
*DatasetApi* | [**update_twingraph_entities**](docs/DatasetApi.md#update_twingraph_entities) | **PATCH** /organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type} | Update entities in a graph instance
130130
*DatasetApi* | [**upload_twingraph**](docs/DatasetApi.md#upload_twingraph) | **POST** /organizations/{organization_id}/datasets/{dataset_id} | Upload data from zip file to dataset&#39;s twingraph
131+
*MetaApi* | [**about**](docs/MetaApi.md#about) | **GET** /about | Get various information about the API
131132
*OrganizationApi* | [**create_organization**](docs/OrganizationApi.md#create_organization) | **POST** /organizations | Create a new organization
132133
*OrganizationApi* | [**create_organization_access_control**](docs/OrganizationApi.md#create_organization_access_control) | **POST** /organizations/{organization_id}/security/access | Add a control access to the Organization
133134
*OrganizationApi* | [**delete_organization**](docs/OrganizationApi.md#delete_organization) | **DELETE** /organizations/{organization_id} | Delete an organization
@@ -208,6 +209,8 @@ Class | Method | HTTP request | Description
208209

209210
## Documentation For Models
210211

212+
- [AboutInfo](docs/AboutInfo.md)
213+
- [AboutInfoVersion](docs/AboutInfoVersion.md)
211214
- [ComponentRolePermissions](docs/ComponentRolePermissions.md)
212215
- [Connector](docs/Connector.md)
213216
- [ConnectorParameter](docs/ConnectorParameter.md)

cosmotech_api/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# import apis into sdk package
2121
from cosmotech_api.api.connector_api import ConnectorApi
2222
from cosmotech_api.api.dataset_api import DatasetApi
23+
from cosmotech_api.api.meta_api import MetaApi
2324
from cosmotech_api.api.organization_api import OrganizationApi
2425
from cosmotech_api.api.run_api import RunApi
2526
from cosmotech_api.api.runner_api import RunnerApi
@@ -38,6 +39,8 @@
3839
from cosmotech_api.exceptions import ApiException
3940

4041
# import models into sdk package
42+
from cosmotech_api.models.about_info import AboutInfo
43+
from cosmotech_api.models.about_info_version import AboutInfoVersion
4144
from cosmotech_api.models.component_role_permissions import ComponentRolePermissions
4245
from cosmotech_api.models.connector import Connector
4346
from cosmotech_api.models.connector_parameter import ConnectorParameter

cosmotech_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# import apis into api package
44
from cosmotech_api.api.connector_api import ConnectorApi
55
from cosmotech_api.api.dataset_api import DatasetApi
6+
from cosmotech_api.api.meta_api import MetaApi
67
from cosmotech_api.api.organization_api import OrganizationApi
78
from cosmotech_api.api.run_api import RunApi
89
from cosmotech_api.api.runner_api import RunnerApi

cosmotech_api/api/meta_api.py

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
# coding: utf-8
2+
3+
"""
4+
Cosmo Tech Platform API
5+
6+
Cosmo Tech Platform API
7+
8+
The version of the OpenAPI document: 4.0.1-SNAPSHOT
9+
Contact: platform@cosmotech.com
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
import warnings
16+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17+
from typing import Any, Dict, List, Optional, Tuple, Union
18+
from typing_extensions import Annotated
19+
20+
from cosmotech_api.models.about_info import AboutInfo
21+
22+
from cosmotech_api.api_client import ApiClient, RequestSerialized
23+
from cosmotech_api.api_response import ApiResponse
24+
from cosmotech_api.rest import RESTResponseType
25+
26+
27+
class MetaApi:
28+
"""NOTE: This class is auto generated by OpenAPI Generator
29+
Ref: https://openapi-generator.tech
30+
31+
Do not edit the class manually.
32+
"""
33+
34+
def __init__(self, api_client=None) -> None:
35+
if api_client is None:
36+
api_client = ApiClient.get_default()
37+
self.api_client = api_client
38+
39+
40+
@validate_call
41+
def about(
42+
self,
43+
_request_timeout: Union[
44+
None,
45+
Annotated[StrictFloat, Field(gt=0)],
46+
Tuple[
47+
Annotated[StrictFloat, Field(gt=0)],
48+
Annotated[StrictFloat, Field(gt=0)]
49+
]
50+
] = None,
51+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
52+
_content_type: Optional[StrictStr] = None,
53+
_headers: Optional[Dict[StrictStr, Any]] = None,
54+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55+
) -> AboutInfo:
56+
"""Get various information about the API
57+
58+
59+
:param _request_timeout: timeout setting for this request. If one
60+
number provided, it will be total request
61+
timeout. It can also be a pair (tuple) of
62+
(connection, read) timeouts.
63+
:type _request_timeout: int, tuple(int, int), optional
64+
:param _request_auth: set to override the auth_settings for an a single
65+
request; this effectively ignores the
66+
authentication in the spec for a single request.
67+
:type _request_auth: dict, optional
68+
:param _content_type: force content-type for the request.
69+
:type _content_type: str, Optional
70+
:param _headers: set to override the headers for a single
71+
request; this effectively ignores the headers
72+
in the spec for a single request.
73+
:type _headers: dict, optional
74+
:param _host_index: set to override the host_index for a single
75+
request; this effectively ignores the host_index
76+
in the spec for a single request.
77+
:type _host_index: int, optional
78+
:return: Returns the result object.
79+
""" # noqa: E501
80+
81+
_param = self._about_serialize(
82+
_request_auth=_request_auth,
83+
_content_type=_content_type,
84+
_headers=_headers,
85+
_host_index=_host_index
86+
)
87+
88+
_response_types_map: Dict[str, Optional[str]] = {
89+
'200': "AboutInfo",
90+
}
91+
response_data = self.api_client.call_api(
92+
*_param,
93+
_request_timeout=_request_timeout
94+
)
95+
response_data.read()
96+
return self.api_client.response_deserialize(
97+
response_data=response_data,
98+
response_types_map=_response_types_map,
99+
).data
100+
101+
102+
@validate_call
103+
def about_with_http_info(
104+
self,
105+
_request_timeout: Union[
106+
None,
107+
Annotated[StrictFloat, Field(gt=0)],
108+
Tuple[
109+
Annotated[StrictFloat, Field(gt=0)],
110+
Annotated[StrictFloat, Field(gt=0)]
111+
]
112+
] = None,
113+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
114+
_content_type: Optional[StrictStr] = None,
115+
_headers: Optional[Dict[StrictStr, Any]] = None,
116+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
117+
) -> ApiResponse[AboutInfo]:
118+
"""Get various information about the API
119+
120+
121+
:param _request_timeout: timeout setting for this request. If one
122+
number provided, it will be total request
123+
timeout. It can also be a pair (tuple) of
124+
(connection, read) timeouts.
125+
:type _request_timeout: int, tuple(int, int), optional
126+
:param _request_auth: set to override the auth_settings for an a single
127+
request; this effectively ignores the
128+
authentication in the spec for a single request.
129+
:type _request_auth: dict, optional
130+
:param _content_type: force content-type for the request.
131+
:type _content_type: str, Optional
132+
:param _headers: set to override the headers for a single
133+
request; this effectively ignores the headers
134+
in the spec for a single request.
135+
:type _headers: dict, optional
136+
:param _host_index: set to override the host_index for a single
137+
request; this effectively ignores the host_index
138+
in the spec for a single request.
139+
:type _host_index: int, optional
140+
:return: Returns the result object.
141+
""" # noqa: E501
142+
143+
_param = self._about_serialize(
144+
_request_auth=_request_auth,
145+
_content_type=_content_type,
146+
_headers=_headers,
147+
_host_index=_host_index
148+
)
149+
150+
_response_types_map: Dict[str, Optional[str]] = {
151+
'200': "AboutInfo",
152+
}
153+
response_data = self.api_client.call_api(
154+
*_param,
155+
_request_timeout=_request_timeout
156+
)
157+
response_data.read()
158+
return self.api_client.response_deserialize(
159+
response_data=response_data,
160+
response_types_map=_response_types_map,
161+
)
162+
163+
164+
@validate_call
165+
def about_without_preload_content(
166+
self,
167+
_request_timeout: Union[
168+
None,
169+
Annotated[StrictFloat, Field(gt=0)],
170+
Tuple[
171+
Annotated[StrictFloat, Field(gt=0)],
172+
Annotated[StrictFloat, Field(gt=0)]
173+
]
174+
] = None,
175+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
176+
_content_type: Optional[StrictStr] = None,
177+
_headers: Optional[Dict[StrictStr, Any]] = None,
178+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
179+
) -> RESTResponseType:
180+
"""Get various information about the API
181+
182+
183+
:param _request_timeout: timeout setting for this request. If one
184+
number provided, it will be total request
185+
timeout. It can also be a pair (tuple) of
186+
(connection, read) timeouts.
187+
:type _request_timeout: int, tuple(int, int), optional
188+
:param _request_auth: set to override the auth_settings for an a single
189+
request; this effectively ignores the
190+
authentication in the spec for a single request.
191+
:type _request_auth: dict, optional
192+
:param _content_type: force content-type for the request.
193+
:type _content_type: str, Optional
194+
:param _headers: set to override the headers for a single
195+
request; this effectively ignores the headers
196+
in the spec for a single request.
197+
:type _headers: dict, optional
198+
:param _host_index: set to override the host_index for a single
199+
request; this effectively ignores the host_index
200+
in the spec for a single request.
201+
:type _host_index: int, optional
202+
:return: Returns the result object.
203+
""" # noqa: E501
204+
205+
_param = self._about_serialize(
206+
_request_auth=_request_auth,
207+
_content_type=_content_type,
208+
_headers=_headers,
209+
_host_index=_host_index
210+
)
211+
212+
_response_types_map: Dict[str, Optional[str]] = {
213+
'200': "AboutInfo",
214+
}
215+
response_data = self.api_client.call_api(
216+
*_param,
217+
_request_timeout=_request_timeout
218+
)
219+
return response_data.response
220+
221+
222+
def _about_serialize(
223+
self,
224+
_request_auth,
225+
_content_type,
226+
_headers,
227+
_host_index,
228+
) -> RequestSerialized:
229+
230+
_host = None
231+
232+
_collection_formats: Dict[str, str] = {
233+
}
234+
235+
_path_params: Dict[str, str] = {}
236+
_query_params: List[Tuple[str, str]] = []
237+
_header_params: Dict[str, Optional[str]] = _headers or {}
238+
_form_params: List[Tuple[str, str]] = []
239+
_files: Dict[
240+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
241+
] = {}
242+
_body_params: Optional[bytes] = None
243+
244+
# process the path parameters
245+
# process the query parameters
246+
# process the header parameters
247+
# process the form parameters
248+
# process the body parameter
249+
250+
251+
# set the HTTP header `Accept`
252+
if 'Accept' not in _header_params:
253+
_header_params['Accept'] = self.api_client.select_header_accept(
254+
[
255+
'application/json',
256+
'application/yaml'
257+
]
258+
)
259+
260+
261+
# authentication setting
262+
_auth_settings: List[str] = [
263+
'oAuth2AuthCode'
264+
]
265+
266+
return self.api_client.param_serialize(
267+
method='GET',
268+
resource_path='/about',
269+
path_params=_path_params,
270+
query_params=_query_params,
271+
header_params=_header_params,
272+
body=_body_params,
273+
post_params=_form_params,
274+
files=_files,
275+
auth_settings=_auth_settings,
276+
collection_formats=_collection_formats,
277+
_host=_host,
278+
_request_auth=_request_auth
279+
)
280+
281+

cosmotech_api/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616

1717
# import models into model package
18+
from cosmotech_api.models.about_info import AboutInfo
19+
from cosmotech_api.models.about_info_version import AboutInfoVersion
1820
from cosmotech_api.models.component_role_permissions import ComponentRolePermissions
1921
from cosmotech_api.models.connector import Connector
2022
from cosmotech_api.models.connector_parameter import ConnectorParameter

0 commit comments

Comments
 (0)