cosmotech-api 3.3.4__py3-none-any.whl → 4.0.0.dev8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cosmotech-api might be problematic. Click here for more details.
- cosmotech_api/__init__.py +3 -49
- cosmotech_api/api/__init__.py +0 -3
- cosmotech_api/api/connector_api.py +7 -263
- cosmotech_api/api/dataset_api.py +65 -69
- cosmotech_api/api/organization_api.py +15 -882
- cosmotech_api/api/run_api.py +9 -11
- cosmotech_api/api/runner_api.py +20 -21
- cosmotech_api/api/scenario_api.py +121 -141
- cosmotech_api/api/scenariorun_api.py +66 -76
- cosmotech_api/api/scenariorunresult_api.py +1 -1
- cosmotech_api/api/solution_api.py +397 -1053
- cosmotech_api/api/twingraph_api.py +72 -83
- cosmotech_api/api/validator_api.py +1 -1
- cosmotech_api/api/workspace_api.py +14 -312
- cosmotech_api/api_client.py +1 -1
- cosmotech_api/configuration.py +5 -13
- cosmotech_api/exceptions.py +1 -1
- cosmotech_api/model/component_role_permissions.py +1 -1
- cosmotech_api/model/connector.py +1 -1
- cosmotech_api/model/connector_parameter.py +1 -1
- cosmotech_api/model/connector_parameter_group.py +1 -1
- cosmotech_api/model/container_resource_size_info.py +1 -1
- cosmotech_api/model/container_resource_sizing.py +1 -1
- cosmotech_api/model/dataset.py +1 -1
- cosmotech_api/model/dataset_access_control.py +1 -1
- cosmotech_api/model/dataset_compatibility.py +1 -1
- cosmotech_api/model/dataset_connector.py +1 -1
- cosmotech_api/model/dataset_copy_parameters.py +1 -1
- cosmotech_api/model/dataset_role.py +1 -1
- cosmotech_api/model/dataset_search.py +1 -1
- cosmotech_api/model/dataset_security.py +1 -1
- cosmotech_api/model/dataset_source_type.py +1 -1
- cosmotech_api/model/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/model/dataset_twin_graph_info.py +1 -1
- cosmotech_api/model/dataset_twin_graph_query.py +1 -1
- cosmotech_api/model/delete_historical_data.py +1 -1
- cosmotech_api/model/file_upload_metadata.py +1 -1
- cosmotech_api/model/file_upload_validation.py +1 -1
- cosmotech_api/model/graph_properties.py +1 -1
- cosmotech_api/model/organization.py +1 -1
- cosmotech_api/model/organization_access_control.py +1 -1
- cosmotech_api/model/organization_role.py +1 -1
- cosmotech_api/model/organization_security.py +1 -1
- cosmotech_api/model/organization_service.py +1 -1
- cosmotech_api/model/organization_services.py +1 -1
- cosmotech_api/model/resource_size_info.py +1 -1
- cosmotech_api/model/run.py +1 -1
- cosmotech_api/model/run_container.py +1 -1
- cosmotech_api/model/run_container_artifact.py +1 -1
- cosmotech_api/model/run_container_logs.py +1 -1
- cosmotech_api/model/run_logs.py +1 -1
- cosmotech_api/model/run_resource_requested.py +1 -1
- cosmotech_api/model/run_search.py +1 -1
- cosmotech_api/model/run_start_containers.py +1 -1
- cosmotech_api/model/run_state.py +1 -1
- cosmotech_api/model/run_status.py +1 -1
- cosmotech_api/model/run_status_node.py +1 -1
- cosmotech_api/model/run_template.py +1 -1
- cosmotech_api/model/run_template_handler_id.py +1 -1
- cosmotech_api/model/run_template_orchestrator.py +1 -1
- cosmotech_api/model/run_template_parameter.py +1 -1
- cosmotech_api/model/run_template_parameter_group.py +1 -1
- cosmotech_api/model/run_template_parameter_value.py +1 -1
- cosmotech_api/model/run_template_resource_sizing.py +1 -1
- cosmotech_api/model/run_template_step_source.py +1 -1
- cosmotech_api/model/runner.py +1 -1
- cosmotech_api/model/runner_access_control.py +1 -1
- cosmotech_api/model/runner_changed_parameter_value.py +1 -1
- cosmotech_api/model/runner_comparison_result.py +1 -1
- cosmotech_api/model/runner_data_download_info.py +1 -1
- cosmotech_api/model/runner_data_download_job.py +1 -1
- cosmotech_api/model/runner_job_state.py +1 -1
- cosmotech_api/model/runner_last_run.py +1 -1
- cosmotech_api/model/runner_resource_sizing.py +1 -1
- cosmotech_api/model/runner_role.py +1 -1
- cosmotech_api/model/runner_run_template_parameter_value.py +1 -1
- cosmotech_api/model/runner_security.py +1 -1
- cosmotech_api/model/runner_validation_status.py +1 -1
- cosmotech_api/model/scenario.py +1 -1
- cosmotech_api/model/scenario_access_control.py +1 -1
- cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
- cosmotech_api/model/scenario_comparison_result.py +1 -1
- cosmotech_api/model/scenario_data_download_info.py +1 -1
- cosmotech_api/model/scenario_data_download_job.py +1 -1
- cosmotech_api/model/scenario_job_state.py +1 -1
- cosmotech_api/model/scenario_last_run.py +1 -1
- cosmotech_api/model/scenario_resource_sizing.py +1 -1
- cosmotech_api/model/scenario_role.py +1 -1
- cosmotech_api/model/scenario_run.py +1 -1
- cosmotech_api/model/scenario_run_container.py +1 -1
- cosmotech_api/model/scenario_run_container_artifact.py +1 -1
- cosmotech_api/model/scenario_run_container_logs.py +1 -1
- cosmotech_api/model/scenario_run_logs.py +1 -1
- cosmotech_api/model/scenario_run_resource_requested.py +1 -1
- cosmotech_api/model/scenario_run_result.py +1 -1
- cosmotech_api/model/scenario_run_search.py +1 -1
- cosmotech_api/model/scenario_run_start_containers.py +1 -1
- cosmotech_api/model/scenario_run_state.py +1 -1
- cosmotech_api/model/scenario_run_status.py +1 -1
- cosmotech_api/model/scenario_run_status_node.py +1 -1
- cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
- cosmotech_api/model/scenario_security.py +1 -1
- cosmotech_api/model/scenario_validation_status.py +1 -1
- cosmotech_api/model/solution.py +1 -1
- cosmotech_api/model/solution_access_control.py +1 -1
- cosmotech_api/model/solution_role.py +1 -1
- cosmotech_api/model/solution_security.py +1 -1
- cosmotech_api/model/source_info.py +1 -1
- cosmotech_api/model/sub_dataset_graph_query.py +1 -1
- cosmotech_api/model/translated_labels.py +1 -1
- cosmotech_api/model/twin_graph_batch_result.py +1 -1
- cosmotech_api/model/twin_graph_hash.py +1 -1
- cosmotech_api/model/twin_graph_query.py +1 -1
- cosmotech_api/model/validator.py +1 -1
- cosmotech_api/model/validator_run.py +1 -1
- cosmotech_api/model/workspace.py +1 -1
- cosmotech_api/model/workspace_access_control.py +1 -1
- cosmotech_api/model/workspace_file.py +1 -1
- cosmotech_api/model/workspace_role.py +1 -1
- cosmotech_api/model/workspace_secret.py +1 -1
- cosmotech_api/model/workspace_security.py +1 -1
- cosmotech_api/model/workspace_solution.py +1 -1
- cosmotech_api/model/workspace_web_app.py +1 -1
- cosmotech_api/model_utils.py +1 -1
- cosmotech_api/models/__init__.py +3 -46
- cosmotech_api/models/component_role_permissions.py +1 -1
- cosmotech_api/models/connector.py +3 -7
- cosmotech_api/models/connector_parameter.py +1 -1
- cosmotech_api/models/connector_parameter_group.py +1 -1
- cosmotech_api/models/container_resource_size_info.py +1 -1
- cosmotech_api/models/container_resource_sizing.py +1 -1
- cosmotech_api/models/created_run.py +1 -1
- cosmotech_api/models/dataset.py +1 -1
- cosmotech_api/models/dataset_access_control.py +1 -1
- cosmotech_api/models/dataset_compatibility.py +1 -1
- cosmotech_api/models/dataset_connector.py +1 -1
- cosmotech_api/models/dataset_copy_parameters.py +1 -1
- cosmotech_api/models/dataset_role.py +1 -1
- cosmotech_api/models/dataset_search.py +1 -1
- cosmotech_api/models/dataset_security.py +1 -1
- cosmotech_api/models/dataset_source_type.py +1 -1
- cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
- cosmotech_api/models/dataset_twin_graph_info.py +1 -1
- cosmotech_api/models/dataset_twin_graph_query.py +1 -1
- cosmotech_api/models/delete_historical_data.py +1 -1
- cosmotech_api/models/file_upload_metadata.py +1 -1
- cosmotech_api/models/file_upload_validation.py +1 -1
- cosmotech_api/models/graph_properties.py +1 -1
- cosmotech_api/models/ingestion_status_enum.py +1 -1
- cosmotech_api/models/io_types_enum.py +1 -1
- cosmotech_api/models/organization.py +2 -8
- cosmotech_api/models/organization_access_control.py +1 -1
- cosmotech_api/models/organization_role.py +1 -1
- cosmotech_api/models/organization_security.py +1 -1
- cosmotech_api/models/organization_service.py +7 -7
- cosmotech_api/models/organization_services.py +7 -7
- cosmotech_api/models/query_result.py +1 -1
- cosmotech_api/models/resource_size_info.py +1 -1
- cosmotech_api/models/run.py +1 -1
- cosmotech_api/models/run_container.py +3 -13
- cosmotech_api/models/run_container_artifact.py +7 -7
- cosmotech_api/models/run_container_logs.py +7 -7
- cosmotech_api/models/run_data.py +1 -1
- cosmotech_api/models/run_data_query.py +1 -1
- cosmotech_api/models/run_logs.py +16 -21
- cosmotech_api/models/run_logs_entry.py +1 -1
- cosmotech_api/models/run_resource_requested.py +1 -1
- cosmotech_api/models/run_search.py +7 -7
- cosmotech_api/models/run_search_state.py +1 -1
- cosmotech_api/models/run_start_containers.py +10 -10
- cosmotech_api/models/run_state.py +1 -1
- cosmotech_api/models/run_status.py +1 -1
- cosmotech_api/models/run_status_node.py +1 -1
- cosmotech_api/models/run_template.py +1 -1
- cosmotech_api/models/run_template_handler_id.py +1 -1
- cosmotech_api/models/run_template_orchestrator.py +1 -1
- cosmotech_api/models/run_template_parameter.py +1 -1
- cosmotech_api/models/run_template_parameter_group.py +1 -1
- cosmotech_api/models/run_template_parameter_value.py +1 -1
- cosmotech_api/models/run_template_resource_sizing.py +1 -1
- cosmotech_api/models/run_template_step_source.py +1 -1
- cosmotech_api/models/runner.py +5 -24
- cosmotech_api/models/runner_access_control.py +1 -1
- cosmotech_api/models/runner_changed_parameter_value.py +7 -7
- cosmotech_api/models/runner_comparison_result.py +10 -10
- cosmotech_api/models/runner_data_download_info.py +9 -12
- cosmotech_api/models/runner_data_download_job.py +7 -7
- cosmotech_api/models/runner_job_state.py +1 -1
- cosmotech_api/models/runner_last_run.py +7 -7
- cosmotech_api/models/runner_parent_last_run.py +7 -7
- cosmotech_api/models/runner_resource_sizing.py +1 -1
- cosmotech_api/models/runner_role.py +1 -1
- cosmotech_api/models/runner_root_last_run.py +7 -7
- cosmotech_api/models/runner_run_template_parameter_value.py +1 -1
- cosmotech_api/models/runner_security.py +1 -1
- cosmotech_api/models/runner_validation_status.py +1 -1
- cosmotech_api/models/scenario.py +10 -10
- cosmotech_api/models/scenario_access_control.py +7 -7
- cosmotech_api/models/scenario_changed_parameter_value.py +7 -7
- cosmotech_api/models/scenario_comparison_result.py +10 -10
- cosmotech_api/models/scenario_data_download_info.py +7 -7
- cosmotech_api/models/scenario_data_download_job.py +7 -7
- cosmotech_api/models/scenario_job_state.py +1 -1
- cosmotech_api/models/scenario_last_run.py +7 -7
- cosmotech_api/models/scenario_resource_sizing.py +7 -7
- cosmotech_api/models/scenario_role.py +7 -7
- cosmotech_api/models/scenario_run.py +13 -13
- cosmotech_api/models/scenario_run_container.py +10 -10
- cosmotech_api/models/scenario_run_container_artifact.py +7 -7
- cosmotech_api/models/scenario_run_container_logs.py +7 -7
- cosmotech_api/models/scenario_run_logs.py +10 -10
- cosmotech_api/models/scenario_run_resource_requested.py +7 -7
- cosmotech_api/models/scenario_run_search.py +7 -7
- cosmotech_api/models/scenario_run_search_state.py +1 -1
- cosmotech_api/models/scenario_run_start_containers.py +10 -10
- cosmotech_api/models/scenario_run_state.py +1 -1
- cosmotech_api/models/scenario_run_status.py +10 -10
- cosmotech_api/models/scenario_run_status_node.py +7 -7
- cosmotech_api/models/scenario_run_template_parameter_value.py +7 -7
- cosmotech_api/models/scenario_security.py +10 -10
- cosmotech_api/models/scenario_validation_status.py +1 -1
- cosmotech_api/models/send_run_data_request.py +1 -1
- cosmotech_api/models/solution.py +2 -2
- cosmotech_api/models/solution_access_control.py +1 -1
- cosmotech_api/models/solution_role.py +1 -1
- cosmotech_api/models/solution_security.py +1 -1
- cosmotech_api/models/source_info.py +1 -1
- cosmotech_api/models/sub_dataset_graph_query.py +1 -1
- cosmotech_api/models/twin_graph_batch_result.py +1 -1
- cosmotech_api/models/twin_graph_hash.py +7 -7
- cosmotech_api/models/twin_graph_query.py +7 -7
- cosmotech_api/models/twincache_status_enum.py +1 -1
- cosmotech_api/models/validator.py +7 -7
- cosmotech_api/models/workspace.py +2 -2
- cosmotech_api/models/workspace_access_control.py +1 -1
- cosmotech_api/models/workspace_file.py +1 -1
- cosmotech_api/models/workspace_role.py +1 -1
- cosmotech_api/models/workspace_secret.py +7 -7
- cosmotech_api/models/workspace_security.py +1 -1
- cosmotech_api/models/workspace_solution.py +1 -1
- cosmotech_api/models/workspace_web_app.py +1 -1
- cosmotech_api/rest.py +1 -1
- {cosmotech_api-3.3.4.dist-info → cosmotech_api-4.0.0.dev8.dist-info}/METADATA +5 -13
- cosmotech_api-4.0.0.dev8.dist-info/RECORD +262 -0
- {cosmotech_api-3.3.4.dist-info → cosmotech_api-4.0.0.dev8.dist-info}/WHEEL +1 -1
- cosmotech_api/api/meta_api.py +0 -281
- cosmotech_api/models/about_info.py +0 -92
- cosmotech_api/models/about_info_version.py +0 -100
- cosmotech_api/models/organization_create_request.py +0 -95
- cosmotech_api/models/organization_update_request.py +0 -89
- cosmotech_api/models/runner_create_request.py +0 -154
- cosmotech_api/models/runner_update_request.py +0 -123
- cosmotech_api/models/solution_create_request.py +0 -143
- cosmotech_api/models/solution_update_request.py +0 -107
- cosmotech_api/models/workspace_create_request.py +0 -117
- cosmotech_api/models/workspace_update_request.py +0 -109
- cosmotech_api-3.3.4.dist-info/RECORD +0 -273
- {cosmotech_api-3.3.4.dist-info → cosmotech_api-4.0.0.dev8.dist-info}/LICENSE +0 -0
- {cosmotech_api-3.3.4.dist-info → cosmotech_api-4.0.0.dev8.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Cosmo Tech Platform API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 4.0.0-onprem.8
|
|
9
9
|
Contact: platform@cosmotech.com
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -24,7 +24,6 @@ from cosmotech_api.models.workspace import Workspace
|
|
|
24
24
|
from cosmotech_api.models.workspace_access_control import WorkspaceAccessControl
|
|
25
25
|
from cosmotech_api.models.workspace_file import WorkspaceFile
|
|
26
26
|
from cosmotech_api.models.workspace_role import WorkspaceRole
|
|
27
|
-
from cosmotech_api.models.workspace_secret import WorkspaceSecret
|
|
28
27
|
from cosmotech_api.models.workspace_security import WorkspaceSecurity
|
|
29
28
|
|
|
30
29
|
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
@@ -348,302 +347,6 @@ class WorkspaceApi:
|
|
|
348
347
|
|
|
349
348
|
|
|
350
349
|
|
|
351
|
-
@validate_call
|
|
352
|
-
def create_secret(
|
|
353
|
-
self,
|
|
354
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
355
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
356
|
-
workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
|
|
357
|
-
_request_timeout: Union[
|
|
358
|
-
None,
|
|
359
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
360
|
-
Tuple[
|
|
361
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
362
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
363
|
-
]
|
|
364
|
-
] = None,
|
|
365
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
366
|
-
_content_type: Optional[StrictStr] = None,
|
|
367
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
368
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
369
|
-
) -> None:
|
|
370
|
-
"""Create a secret for the Workspace
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
:param organization_id: the Organization identifier (required)
|
|
374
|
-
:type organization_id: str
|
|
375
|
-
:param workspace_id: the Workspace identifier (required)
|
|
376
|
-
:type workspace_id: str
|
|
377
|
-
:param workspace_secret: the definition of the secret (required)
|
|
378
|
-
:type workspace_secret: WorkspaceSecret
|
|
379
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
380
|
-
number provided, it will be total request
|
|
381
|
-
timeout. It can also be a pair (tuple) of
|
|
382
|
-
(connection, read) timeouts.
|
|
383
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
384
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
385
|
-
request; this effectively ignores the
|
|
386
|
-
authentication in the spec for a single request.
|
|
387
|
-
:type _request_auth: dict, optional
|
|
388
|
-
:param _content_type: force content-type for the request.
|
|
389
|
-
:type _content_type: str, Optional
|
|
390
|
-
:param _headers: set to override the headers for a single
|
|
391
|
-
request; this effectively ignores the headers
|
|
392
|
-
in the spec for a single request.
|
|
393
|
-
:type _headers: dict, optional
|
|
394
|
-
:param _host_index: set to override the host_index for a single
|
|
395
|
-
request; this effectively ignores the host_index
|
|
396
|
-
in the spec for a single request.
|
|
397
|
-
:type _host_index: int, optional
|
|
398
|
-
:return: Returns the result object.
|
|
399
|
-
""" # noqa: E501
|
|
400
|
-
|
|
401
|
-
_param = self._create_secret_serialize(
|
|
402
|
-
organization_id=organization_id,
|
|
403
|
-
workspace_id=workspace_id,
|
|
404
|
-
workspace_secret=workspace_secret,
|
|
405
|
-
_request_auth=_request_auth,
|
|
406
|
-
_content_type=_content_type,
|
|
407
|
-
_headers=_headers,
|
|
408
|
-
_host_index=_host_index
|
|
409
|
-
)
|
|
410
|
-
|
|
411
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
412
|
-
'201': None,
|
|
413
|
-
'404': None,
|
|
414
|
-
}
|
|
415
|
-
response_data = self.api_client.call_api(
|
|
416
|
-
*_param,
|
|
417
|
-
_request_timeout=_request_timeout
|
|
418
|
-
)
|
|
419
|
-
response_data.read()
|
|
420
|
-
return self.api_client.response_deserialize(
|
|
421
|
-
response_data=response_data,
|
|
422
|
-
response_types_map=_response_types_map,
|
|
423
|
-
).data
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
@validate_call
|
|
427
|
-
def create_secret_with_http_info(
|
|
428
|
-
self,
|
|
429
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
430
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
431
|
-
workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
|
|
432
|
-
_request_timeout: Union[
|
|
433
|
-
None,
|
|
434
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
435
|
-
Tuple[
|
|
436
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
437
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
438
|
-
]
|
|
439
|
-
] = None,
|
|
440
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
441
|
-
_content_type: Optional[StrictStr] = None,
|
|
442
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
443
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
444
|
-
) -> ApiResponse[None]:
|
|
445
|
-
"""Create a secret for the Workspace
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
:param organization_id: the Organization identifier (required)
|
|
449
|
-
:type organization_id: str
|
|
450
|
-
:param workspace_id: the Workspace identifier (required)
|
|
451
|
-
:type workspace_id: str
|
|
452
|
-
:param workspace_secret: the definition of the secret (required)
|
|
453
|
-
:type workspace_secret: WorkspaceSecret
|
|
454
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
455
|
-
number provided, it will be total request
|
|
456
|
-
timeout. It can also be a pair (tuple) of
|
|
457
|
-
(connection, read) timeouts.
|
|
458
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
459
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
460
|
-
request; this effectively ignores the
|
|
461
|
-
authentication in the spec for a single request.
|
|
462
|
-
:type _request_auth: dict, optional
|
|
463
|
-
:param _content_type: force content-type for the request.
|
|
464
|
-
:type _content_type: str, Optional
|
|
465
|
-
:param _headers: set to override the headers for a single
|
|
466
|
-
request; this effectively ignores the headers
|
|
467
|
-
in the spec for a single request.
|
|
468
|
-
:type _headers: dict, optional
|
|
469
|
-
:param _host_index: set to override the host_index for a single
|
|
470
|
-
request; this effectively ignores the host_index
|
|
471
|
-
in the spec for a single request.
|
|
472
|
-
:type _host_index: int, optional
|
|
473
|
-
:return: Returns the result object.
|
|
474
|
-
""" # noqa: E501
|
|
475
|
-
|
|
476
|
-
_param = self._create_secret_serialize(
|
|
477
|
-
organization_id=organization_id,
|
|
478
|
-
workspace_id=workspace_id,
|
|
479
|
-
workspace_secret=workspace_secret,
|
|
480
|
-
_request_auth=_request_auth,
|
|
481
|
-
_content_type=_content_type,
|
|
482
|
-
_headers=_headers,
|
|
483
|
-
_host_index=_host_index
|
|
484
|
-
)
|
|
485
|
-
|
|
486
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
487
|
-
'201': None,
|
|
488
|
-
'404': None,
|
|
489
|
-
}
|
|
490
|
-
response_data = self.api_client.call_api(
|
|
491
|
-
*_param,
|
|
492
|
-
_request_timeout=_request_timeout
|
|
493
|
-
)
|
|
494
|
-
response_data.read()
|
|
495
|
-
return self.api_client.response_deserialize(
|
|
496
|
-
response_data=response_data,
|
|
497
|
-
response_types_map=_response_types_map,
|
|
498
|
-
)
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
@validate_call
|
|
502
|
-
def create_secret_without_preload_content(
|
|
503
|
-
self,
|
|
504
|
-
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
505
|
-
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
506
|
-
workspace_secret: Annotated[WorkspaceSecret, Field(description="the definition of the secret")],
|
|
507
|
-
_request_timeout: Union[
|
|
508
|
-
None,
|
|
509
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
510
|
-
Tuple[
|
|
511
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
512
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
513
|
-
]
|
|
514
|
-
] = None,
|
|
515
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
516
|
-
_content_type: Optional[StrictStr] = None,
|
|
517
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
518
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
519
|
-
) -> RESTResponseType:
|
|
520
|
-
"""Create a secret for the Workspace
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
:param organization_id: the Organization identifier (required)
|
|
524
|
-
:type organization_id: str
|
|
525
|
-
:param workspace_id: the Workspace identifier (required)
|
|
526
|
-
:type workspace_id: str
|
|
527
|
-
:param workspace_secret: the definition of the secret (required)
|
|
528
|
-
:type workspace_secret: WorkspaceSecret
|
|
529
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
530
|
-
number provided, it will be total request
|
|
531
|
-
timeout. It can also be a pair (tuple) of
|
|
532
|
-
(connection, read) timeouts.
|
|
533
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
534
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
535
|
-
request; this effectively ignores the
|
|
536
|
-
authentication in the spec for a single request.
|
|
537
|
-
:type _request_auth: dict, optional
|
|
538
|
-
:param _content_type: force content-type for the request.
|
|
539
|
-
:type _content_type: str, Optional
|
|
540
|
-
:param _headers: set to override the headers for a single
|
|
541
|
-
request; this effectively ignores the headers
|
|
542
|
-
in the spec for a single request.
|
|
543
|
-
:type _headers: dict, optional
|
|
544
|
-
:param _host_index: set to override the host_index for a single
|
|
545
|
-
request; this effectively ignores the host_index
|
|
546
|
-
in the spec for a single request.
|
|
547
|
-
:type _host_index: int, optional
|
|
548
|
-
:return: Returns the result object.
|
|
549
|
-
""" # noqa: E501
|
|
550
|
-
|
|
551
|
-
_param = self._create_secret_serialize(
|
|
552
|
-
organization_id=organization_id,
|
|
553
|
-
workspace_id=workspace_id,
|
|
554
|
-
workspace_secret=workspace_secret,
|
|
555
|
-
_request_auth=_request_auth,
|
|
556
|
-
_content_type=_content_type,
|
|
557
|
-
_headers=_headers,
|
|
558
|
-
_host_index=_host_index
|
|
559
|
-
)
|
|
560
|
-
|
|
561
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
562
|
-
'201': None,
|
|
563
|
-
'404': None,
|
|
564
|
-
}
|
|
565
|
-
response_data = self.api_client.call_api(
|
|
566
|
-
*_param,
|
|
567
|
-
_request_timeout=_request_timeout
|
|
568
|
-
)
|
|
569
|
-
return response_data.response
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
def _create_secret_serialize(
|
|
573
|
-
self,
|
|
574
|
-
organization_id,
|
|
575
|
-
workspace_id,
|
|
576
|
-
workspace_secret,
|
|
577
|
-
_request_auth,
|
|
578
|
-
_content_type,
|
|
579
|
-
_headers,
|
|
580
|
-
_host_index,
|
|
581
|
-
) -> RequestSerialized:
|
|
582
|
-
|
|
583
|
-
_host = None
|
|
584
|
-
|
|
585
|
-
_collection_formats: Dict[str, str] = {
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
_path_params: Dict[str, str] = {}
|
|
589
|
-
_query_params: List[Tuple[str, str]] = []
|
|
590
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
591
|
-
_form_params: List[Tuple[str, str]] = []
|
|
592
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
593
|
-
_body_params: Optional[bytes] = None
|
|
594
|
-
|
|
595
|
-
# process the path parameters
|
|
596
|
-
if organization_id is not None:
|
|
597
|
-
_path_params['organization_id'] = organization_id
|
|
598
|
-
if workspace_id is not None:
|
|
599
|
-
_path_params['workspace_id'] = workspace_id
|
|
600
|
-
# process the query parameters
|
|
601
|
-
# process the header parameters
|
|
602
|
-
# process the form parameters
|
|
603
|
-
# process the body parameter
|
|
604
|
-
if workspace_secret is not None:
|
|
605
|
-
_body_params = workspace_secret
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
# set the HTTP header `Content-Type`
|
|
610
|
-
if _content_type:
|
|
611
|
-
_header_params['Content-Type'] = _content_type
|
|
612
|
-
else:
|
|
613
|
-
_default_content_type = (
|
|
614
|
-
self.api_client.select_header_content_type(
|
|
615
|
-
[
|
|
616
|
-
'application/json',
|
|
617
|
-
'application/yaml'
|
|
618
|
-
]
|
|
619
|
-
)
|
|
620
|
-
)
|
|
621
|
-
if _default_content_type is not None:
|
|
622
|
-
_header_params['Content-Type'] = _default_content_type
|
|
623
|
-
|
|
624
|
-
# authentication setting
|
|
625
|
-
_auth_settings: List[str] = [
|
|
626
|
-
'oAuth2AuthCode'
|
|
627
|
-
]
|
|
628
|
-
|
|
629
|
-
return self.api_client.param_serialize(
|
|
630
|
-
method='POST',
|
|
631
|
-
resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/secret',
|
|
632
|
-
path_params=_path_params,
|
|
633
|
-
query_params=_query_params,
|
|
634
|
-
header_params=_header_params,
|
|
635
|
-
body=_body_params,
|
|
636
|
-
post_params=_form_params,
|
|
637
|
-
files=_files,
|
|
638
|
-
auth_settings=_auth_settings,
|
|
639
|
-
collection_formats=_collection_formats,
|
|
640
|
-
_host=_host,
|
|
641
|
-
_request_auth=_request_auth
|
|
642
|
-
)
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
350
|
@validate_call
|
|
648
351
|
def create_workspace(
|
|
649
352
|
self,
|
|
@@ -2322,7 +2025,7 @@ class WorkspaceApi:
|
|
|
2322
2025
|
def find_all_workspaces(
|
|
2323
2026
|
self,
|
|
2324
2027
|
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2325
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
2028
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
2326
2029
|
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
2327
2030
|
_request_timeout: Union[
|
|
2328
2031
|
None,
|
|
@@ -2342,7 +2045,7 @@ class WorkspaceApi:
|
|
|
2342
2045
|
|
|
2343
2046
|
:param organization_id: the Organization identifier (required)
|
|
2344
2047
|
:type organization_id: str
|
|
2345
|
-
:param page: page number to query
|
|
2048
|
+
:param page: page number to query (first page is at index 0)
|
|
2346
2049
|
:type page: int
|
|
2347
2050
|
:param size: amount of result by page
|
|
2348
2051
|
:type size: int
|
|
@@ -2396,7 +2099,7 @@ class WorkspaceApi:
|
|
|
2396
2099
|
def find_all_workspaces_with_http_info(
|
|
2397
2100
|
self,
|
|
2398
2101
|
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2399
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
2102
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
2400
2103
|
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
2401
2104
|
_request_timeout: Union[
|
|
2402
2105
|
None,
|
|
@@ -2416,7 +2119,7 @@ class WorkspaceApi:
|
|
|
2416
2119
|
|
|
2417
2120
|
:param organization_id: the Organization identifier (required)
|
|
2418
2121
|
:type organization_id: str
|
|
2419
|
-
:param page: page number to query
|
|
2122
|
+
:param page: page number to query (first page is at index 0)
|
|
2420
2123
|
:type page: int
|
|
2421
2124
|
:param size: amount of result by page
|
|
2422
2125
|
:type size: int
|
|
@@ -2470,7 +2173,7 @@ class WorkspaceApi:
|
|
|
2470
2173
|
def find_all_workspaces_without_preload_content(
|
|
2471
2174
|
self,
|
|
2472
2175
|
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2473
|
-
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
2176
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query (first page is at index 0)")] = None,
|
|
2474
2177
|
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
2475
2178
|
_request_timeout: Union[
|
|
2476
2179
|
None,
|
|
@@ -2490,7 +2193,7 @@ class WorkspaceApi:
|
|
|
2490
2193
|
|
|
2491
2194
|
:param organization_id: the Organization identifier (required)
|
|
2492
2195
|
:type organization_id: str
|
|
2493
|
-
:param page: page number to query
|
|
2196
|
+
:param page: page number to query (first page is at index 0)
|
|
2494
2197
|
:type page: int
|
|
2495
2198
|
:param size: amount of result by page
|
|
2496
2199
|
:type size: int
|
|
@@ -5183,7 +4886,7 @@ class WorkspaceApi:
|
|
|
5183
4886
|
self,
|
|
5184
4887
|
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
5185
4888
|
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
5186
|
-
workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update
|
|
4889
|
+
workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
|
|
5187
4890
|
_request_timeout: Union[
|
|
5188
4891
|
None,
|
|
5189
4892
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5204,7 +4907,7 @@ class WorkspaceApi:
|
|
|
5204
4907
|
:type organization_id: str
|
|
5205
4908
|
:param workspace_id: the Workspace identifier (required)
|
|
5206
4909
|
:type workspace_id: str
|
|
5207
|
-
:param workspace: The new Workspace details. This endpoint can't be used to update
|
|
4910
|
+
:param workspace: The new Workspace details. This endpoint can't be used to update security (required)
|
|
5208
4911
|
:type workspace: Workspace
|
|
5209
4912
|
:param _request_timeout: timeout setting for this request. If one
|
|
5210
4913
|
number provided, it will be total request
|
|
@@ -5259,7 +4962,7 @@ class WorkspaceApi:
|
|
|
5259
4962
|
self,
|
|
5260
4963
|
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
5261
4964
|
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
5262
|
-
workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update
|
|
4965
|
+
workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
|
|
5263
4966
|
_request_timeout: Union[
|
|
5264
4967
|
None,
|
|
5265
4968
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5280,7 +4983,7 @@ class WorkspaceApi:
|
|
|
5280
4983
|
:type organization_id: str
|
|
5281
4984
|
:param workspace_id: the Workspace identifier (required)
|
|
5282
4985
|
:type workspace_id: str
|
|
5283
|
-
:param workspace: The new Workspace details. This endpoint can't be used to update
|
|
4986
|
+
:param workspace: The new Workspace details. This endpoint can't be used to update security (required)
|
|
5284
4987
|
:type workspace: Workspace
|
|
5285
4988
|
:param _request_timeout: timeout setting for this request. If one
|
|
5286
4989
|
number provided, it will be total request
|
|
@@ -5335,7 +5038,7 @@ class WorkspaceApi:
|
|
|
5335
5038
|
self,
|
|
5336
5039
|
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
5337
5040
|
workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
|
|
5338
|
-
workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update
|
|
5041
|
+
workspace: Annotated[Workspace, Field(description="The new Workspace details. This endpoint can't be used to update security")],
|
|
5339
5042
|
_request_timeout: Union[
|
|
5340
5043
|
None,
|
|
5341
5044
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5356,7 +5059,7 @@ class WorkspaceApi:
|
|
|
5356
5059
|
:type organization_id: str
|
|
5357
5060
|
:param workspace_id: the Workspace identifier (required)
|
|
5358
5061
|
:type workspace_id: str
|
|
5359
|
-
:param workspace: The new Workspace details. This endpoint can't be used to update
|
|
5062
|
+
:param workspace: The new Workspace details. This endpoint can't be used to update security (required)
|
|
5360
5063
|
:type workspace: Workspace
|
|
5361
5064
|
:param _request_timeout: timeout setting for this request. If one
|
|
5362
5065
|
number provided, it will be total request
|
|
@@ -5771,8 +5474,7 @@ class WorkspaceApi:
|
|
|
5771
5474
|
_default_content_type = (
|
|
5772
5475
|
self.api_client.select_header_content_type(
|
|
5773
5476
|
[
|
|
5774
|
-
'application/json'
|
|
5775
|
-
'application/yaml'
|
|
5477
|
+
'application/json'
|
|
5776
5478
|
]
|
|
5777
5479
|
)
|
|
5778
5480
|
)
|
cosmotech_api/api_client.py
CHANGED
cosmotech_api/configuration.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Cosmo Tech Platform API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 4.0.0-onprem.8
|
|
9
9
|
Contact: platform@cosmotech.com
|
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
|
|
@@ -79,7 +79,7 @@ class Configuration:
|
|
|
79
79
|
) -> None:
|
|
80
80
|
"""Constructor
|
|
81
81
|
"""
|
|
82
|
-
self._base_path = "
|
|
82
|
+
self._base_path = "http://localhost" if host is None else host
|
|
83
83
|
"""Default Base url
|
|
84
84
|
"""
|
|
85
85
|
self.server_index = 0 if server_index is None and host is None else server_index
|
|
@@ -392,7 +392,7 @@ class Configuration:
|
|
|
392
392
|
return "Python SDK Debug Report:\n"\
|
|
393
393
|
"OS: {env}\n"\
|
|
394
394
|
"Python Version: {pyversion}\n"\
|
|
395
|
-
"Version of the API:
|
|
395
|
+
"Version of the API: 4.0.0-onprem.8\n"\
|
|
396
396
|
"SDK Package Version: 1.0.0".\
|
|
397
397
|
format(env=sys.platform, pyversion=sys.version)
|
|
398
398
|
|
|
@@ -403,16 +403,8 @@ class Configuration:
|
|
|
403
403
|
"""
|
|
404
404
|
return [
|
|
405
405
|
{
|
|
406
|
-
'url': "
|
|
407
|
-
'description': "
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
'url': "https://api.cosmotech.com",
|
|
411
|
-
'description': "Production",
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
'url': "https://staging.api.cosmotech.com",
|
|
415
|
-
'description': "Staging",
|
|
406
|
+
'url': "",
|
|
407
|
+
'description': "No description provided",
|
|
416
408
|
}
|
|
417
409
|
]
|
|
418
410
|
|
cosmotech_api/exceptions.py
CHANGED
cosmotech_api/model/connector.py
CHANGED
cosmotech_api/model/dataset.py
CHANGED