cosmotech-api 3.2.0__2-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 +153 -0
- cosmotech_api/api/__init__.py +14 -0
- cosmotech_api/api/connector_api.py +1351 -0
- cosmotech_api/api/dataset_api.py +9148 -0
- cosmotech_api/api/organization_api.py +4692 -0
- cosmotech_api/api/run_api.py +2227 -0
- cosmotech_api/api/runner_api.py +4551 -0
- cosmotech_api/api/scenario_api.py +6688 -0
- cosmotech_api/api/scenariorun_api.py +4092 -0
- cosmotech_api/api/scenariorunresult_api.py +704 -0
- cosmotech_api/api/solution_api.py +6472 -0
- cosmotech_api/api/twingraph_api.py +4201 -0
- cosmotech_api/api/user_api.py +1291 -0
- cosmotech_api/api/validator_api.py +2566 -0
- cosmotech_api/api/workspace_api.py +6123 -0
- cosmotech_api/api_client.py +759 -0
- cosmotech_api/api_response.py +21 -0
- cosmotech_api/apis/__init__.py +28 -0
- cosmotech_api/configuration.py +453 -0
- cosmotech_api/exceptions.py +200 -0
- cosmotech_api/model/__init__.py +5 -0
- cosmotech_api/model/component_role_permissions.py +260 -0
- cosmotech_api/model/connector.py +330 -0
- cosmotech_api/model/connector_parameter.py +284 -0
- cosmotech_api/model/connector_parameter_group.py +280 -0
- cosmotech_api/model/container_resource_size_info.py +268 -0
- cosmotech_api/model/container_resource_sizing.py +274 -0
- cosmotech_api/model/dataset.py +376 -0
- cosmotech_api/model/dataset_access_control.py +268 -0
- cosmotech_api/model/dataset_compatibility.py +270 -0
- cosmotech_api/model/dataset_connector.py +268 -0
- cosmotech_api/model/dataset_copy_parameters.py +264 -0
- cosmotech_api/model/dataset_role.py +262 -0
- cosmotech_api/model/dataset_search.py +262 -0
- cosmotech_api/model/dataset_security.py +274 -0
- cosmotech_api/model/dataset_source_type.py +287 -0
- cosmotech_api/model/dataset_twin_graph_hash.py +256 -0
- cosmotech_api/model/dataset_twin_graph_info.py +264 -0
- cosmotech_api/model/dataset_twin_graph_query.py +262 -0
- cosmotech_api/model/delete_historical_data.py +272 -0
- cosmotech_api/model/file_upload_metadata.py +260 -0
- cosmotech_api/model/file_upload_validation.py +266 -0
- cosmotech_api/model/graph_properties.py +272 -0
- cosmotech_api/model/organization.py +282 -0
- cosmotech_api/model/organization_access_control.py +268 -0
- cosmotech_api/model/organization_role.py +262 -0
- cosmotech_api/model/organization_security.py +274 -0
- cosmotech_api/model/organization_service.py +272 -0
- cosmotech_api/model/organization_services.py +270 -0
- cosmotech_api/model/organization_user.py +277 -0
- cosmotech_api/model/resource_size_info.py +268 -0
- cosmotech_api/model/run.py +351 -0
- cosmotech_api/model/run_container.py +318 -0
- cosmotech_api/model/run_container_artifact.py +260 -0
- cosmotech_api/model/run_container_logs.py +272 -0
- cosmotech_api/model/run_logs.py +268 -0
- cosmotech_api/model/run_resource_requested.py +260 -0
- cosmotech_api/model/run_search.py +296 -0
- cosmotech_api/model/run_start_containers.py +286 -0
- cosmotech_api/model/run_state.py +285 -0
- cosmotech_api/model/run_status.py +316 -0
- cosmotech_api/model/run_status_node.py +307 -0
- cosmotech_api/model/run_template.py +408 -0
- cosmotech_api/model/run_template_handler_id.py +287 -0
- cosmotech_api/model/run_template_orchestrator.py +283 -0
- cosmotech_api/model/run_template_parameter.py +296 -0
- cosmotech_api/model/run_template_parameter_group.py +288 -0
- cosmotech_api/model/run_template_parameter_value.py +273 -0
- cosmotech_api/model/run_template_resource_sizing.py +274 -0
- cosmotech_api/model/run_template_step_source.py +285 -0
- cosmotech_api/model/runner.py +379 -0
- cosmotech_api/model/runner_access_control.py +268 -0
- cosmotech_api/model/runner_changed_parameter_value.py +272 -0
- cosmotech_api/model/runner_comparison_result.py +273 -0
- cosmotech_api/model/runner_data_download_info.py +267 -0
- cosmotech_api/model/runner_data_download_job.py +257 -0
- cosmotech_api/model/runner_job_state.py +287 -0
- cosmotech_api/model/runner_last_run.py +268 -0
- cosmotech_api/model/runner_resource_sizing.py +274 -0
- cosmotech_api/model/runner_role.py +262 -0
- cosmotech_api/model/runner_run_template_parameter_value.py +277 -0
- cosmotech_api/model/runner_security.py +274 -0
- cosmotech_api/model/runner_validation_status.py +285 -0
- cosmotech_api/model/scenario.py +379 -0
- cosmotech_api/model/scenario_access_control.py +268 -0
- cosmotech_api/model/scenario_changed_parameter_value.py +272 -0
- cosmotech_api/model/scenario_comparison_result.py +273 -0
- cosmotech_api/model/scenario_data_download_info.py +267 -0
- cosmotech_api/model/scenario_data_download_job.py +257 -0
- cosmotech_api/model/scenario_job_state.py +287 -0
- cosmotech_api/model/scenario_last_run.py +268 -0
- cosmotech_api/model/scenario_resource_sizing.py +274 -0
- cosmotech_api/model/scenario_role.py +262 -0
- cosmotech_api/model/scenario_run.py +369 -0
- cosmotech_api/model/scenario_run_container.py +318 -0
- cosmotech_api/model/scenario_run_container_artifact.py +260 -0
- cosmotech_api/model/scenario_run_container_logs.py +272 -0
- cosmotech_api/model/scenario_run_logs.py +268 -0
- cosmotech_api/model/scenario_run_resource_requested.py +260 -0
- cosmotech_api/model/scenario_run_result.py +260 -0
- cosmotech_api/model/scenario_run_search.py +296 -0
- cosmotech_api/model/scenario_run_start_containers.py +286 -0
- cosmotech_api/model/scenario_run_state.py +287 -0
- cosmotech_api/model/scenario_run_status.py +308 -0
- cosmotech_api/model/scenario_run_status_node.py +307 -0
- cosmotech_api/model/scenario_run_template_parameter_value.py +277 -0
- cosmotech_api/model/scenario_security.py +274 -0
- cosmotech_api/model/scenario_user.py +277 -0
- cosmotech_api/model/scenario_validation_status.py +285 -0
- cosmotech_api/model/solution.py +335 -0
- cosmotech_api/model/solution_access_control.py +268 -0
- cosmotech_api/model/solution_role.py +262 -0
- cosmotech_api/model/solution_security.py +274 -0
- cosmotech_api/model/source_info.py +274 -0
- cosmotech_api/model/sub_dataset_graph_query.py +268 -0
- cosmotech_api/model/translated_labels.py +252 -0
- cosmotech_api/model/twin_graph_batch_result.py +274 -0
- cosmotech_api/model/twin_graph_hash.py +256 -0
- cosmotech_api/model/twin_graph_import.py +278 -0
- cosmotech_api/model/twin_graph_import_info.py +260 -0
- cosmotech_api/model/twin_graph_query.py +266 -0
- cosmotech_api/model/user.py +281 -0
- cosmotech_api/model/user_organization.py +275 -0
- cosmotech_api/model/user_workspace.py +266 -0
- cosmotech_api/model/validator.py +295 -0
- cosmotech_api/model/validator_run.py +302 -0
- cosmotech_api/model/workspace.py +351 -0
- cosmotech_api/model/workspace_access_control.py +268 -0
- cosmotech_api/model/workspace_file.py +256 -0
- cosmotech_api/model/workspace_role.py +262 -0
- cosmotech_api/model/workspace_secret.py +256 -0
- cosmotech_api/model/workspace_security.py +274 -0
- cosmotech_api/model/workspace_solution.py +264 -0
- cosmotech_api/model/workspace_user.py +278 -0
- cosmotech_api/model/workspace_web_app.py +270 -0
- cosmotech_api/model_utils.py +2038 -0
- cosmotech_api/models/__init__.py +127 -0
- cosmotech_api/models/component_role_permissions.py +90 -0
- cosmotech_api/models/connector.py +135 -0
- cosmotech_api/models/connector_parameter.py +98 -0
- cosmotech_api/models/connector_parameter_group.py +100 -0
- cosmotech_api/models/container_resource_size_info.py +90 -0
- cosmotech_api/models/container_resource_sizing.py +97 -0
- cosmotech_api/models/dataset.py +195 -0
- cosmotech_api/models/dataset_access_control.py +90 -0
- cosmotech_api/models/dataset_compatibility.py +92 -0
- cosmotech_api/models/dataset_connector.py +94 -0
- cosmotech_api/models/dataset_copy_parameters.py +92 -0
- cosmotech_api/models/dataset_role.py +88 -0
- cosmotech_api/models/dataset_search.py +88 -0
- cosmotech_api/models/dataset_security.py +98 -0
- cosmotech_api/models/dataset_source_type.py +42 -0
- cosmotech_api/models/dataset_twin_graph_hash.py +88 -0
- cosmotech_api/models/dataset_twin_graph_info.py +92 -0
- cosmotech_api/models/dataset_twin_graph_query.py +88 -0
- cosmotech_api/models/delete_historical_data.py +92 -0
- cosmotech_api/models/file_upload_metadata.py +90 -0
- cosmotech_api/models/file_upload_validation.py +105 -0
- cosmotech_api/models/graph_properties.py +96 -0
- cosmotech_api/models/organization.py +108 -0
- cosmotech_api/models/organization_access_control.py +90 -0
- cosmotech_api/models/organization_role.py +88 -0
- cosmotech_api/models/organization_security.py +98 -0
- cosmotech_api/models/organization_service.py +96 -0
- cosmotech_api/models/organization_services.py +99 -0
- cosmotech_api/models/query_result.py +88 -0
- cosmotech_api/models/resource_size_info.py +90 -0
- cosmotech_api/models/run.py +167 -0
- cosmotech_api/models/run_container.py +126 -0
- cosmotech_api/models/run_container_artifact.py +90 -0
- cosmotech_api/models/run_container_logs.py +102 -0
- cosmotech_api/models/run_data.py +92 -0
- cosmotech_api/models/run_data_query.py +88 -0
- cosmotech_api/models/run_logs.py +107 -0
- cosmotech_api/models/run_resource_requested.py +90 -0
- cosmotech_api/models/run_search.py +112 -0
- cosmotech_api/models/run_start_containers.py +104 -0
- cosmotech_api/models/run_state.py +40 -0
- cosmotech_api/models/run_status.py +123 -0
- cosmotech_api/models/run_status_node.py +116 -0
- cosmotech_api/models/run_template.py +164 -0
- cosmotech_api/models/run_template_handler_id.py +42 -0
- cosmotech_api/models/run_template_orchestrator.py +38 -0
- cosmotech_api/models/run_template_parameter.py +102 -0
- cosmotech_api/models/run_template_parameter_group.py +98 -0
- cosmotech_api/models/run_template_parameter_value.py +94 -0
- cosmotech_api/models/run_template_resource_sizing.py +97 -0
- cosmotech_api/models/run_template_step_source.py +40 -0
- cosmotech_api/models/runner.py +188 -0
- cosmotech_api/models/runner_access_control.py +90 -0
- cosmotech_api/models/runner_changed_parameter_value.py +102 -0
- cosmotech_api/models/runner_comparison_result.py +106 -0
- cosmotech_api/models/runner_data_download_info.py +93 -0
- cosmotech_api/models/runner_data_download_job.py +90 -0
- cosmotech_api/models/runner_job_state.py +42 -0
- cosmotech_api/models/runner_last_run.py +94 -0
- cosmotech_api/models/runner_parent_last_run.py +94 -0
- cosmotech_api/models/runner_resource_sizing.py +97 -0
- cosmotech_api/models/runner_role.py +88 -0
- cosmotech_api/models/runner_root_last_run.py +94 -0
- cosmotech_api/models/runner_run_template_parameter_value.py +96 -0
- cosmotech_api/models/runner_security.py +98 -0
- cosmotech_api/models/runner_validation_status.py +40 -0
- cosmotech_api/models/scenario.py +186 -0
- cosmotech_api/models/scenario_access_control.py +90 -0
- cosmotech_api/models/scenario_changed_parameter_value.py +102 -0
- cosmotech_api/models/scenario_comparison_result.py +106 -0
- cosmotech_api/models/scenario_data_download_info.py +93 -0
- cosmotech_api/models/scenario_data_download_job.py +90 -0
- cosmotech_api/models/scenario_job_state.py +42 -0
- cosmotech_api/models/scenario_last_run.py +94 -0
- cosmotech_api/models/scenario_resource_sizing.py +97 -0
- cosmotech_api/models/scenario_role.py +88 -0
- cosmotech_api/models/scenario_run.py +179 -0
- cosmotech_api/models/scenario_run_container.py +126 -0
- cosmotech_api/models/scenario_run_container_artifact.py +90 -0
- cosmotech_api/models/scenario_run_container_logs.py +102 -0
- cosmotech_api/models/scenario_run_logs.py +107 -0
- cosmotech_api/models/scenario_run_resource_requested.py +90 -0
- cosmotech_api/models/scenario_run_result.py +90 -0
- cosmotech_api/models/scenario_run_search.py +112 -0
- cosmotech_api/models/scenario_run_start_containers.py +104 -0
- cosmotech_api/models/scenario_run_state.py +42 -0
- cosmotech_api/models/scenario_run_status.py +119 -0
- cosmotech_api/models/scenario_run_status_node.py +116 -0
- cosmotech_api/models/scenario_run_template_parameter_value.py +96 -0
- cosmotech_api/models/scenario_security.py +98 -0
- cosmotech_api/models/scenario_validation_status.py +40 -0
- cosmotech_api/models/send_run_data_request.py +90 -0
- cosmotech_api/models/solution.py +154 -0
- cosmotech_api/models/solution_access_control.py +90 -0
- cosmotech_api/models/solution_role.py +88 -0
- cosmotech_api/models/solution_security.py +98 -0
- cosmotech_api/models/source_info.py +94 -0
- cosmotech_api/models/sub_dataset_graph_query.py +94 -0
- cosmotech_api/models/twin_graph_batch_result.py +92 -0
- cosmotech_api/models/twin_graph_hash.py +88 -0
- cosmotech_api/models/twin_graph_query.py +90 -0
- cosmotech_api/models/validator.py +106 -0
- cosmotech_api/models/validator_run.py +126 -0
- cosmotech_api/models/workspace.py +142 -0
- cosmotech_api/models/workspace_access_control.py +90 -0
- cosmotech_api/models/workspace_file.py +88 -0
- cosmotech_api/models/workspace_role.py +88 -0
- cosmotech_api/models/workspace_secret.py +88 -0
- cosmotech_api/models/workspace_security.py +98 -0
- cosmotech_api/models/workspace_solution.py +92 -0
- cosmotech_api/models/workspace_web_app.py +92 -0
- cosmotech_api/py.typed +0 -0
- cosmotech_api/rest.py +256 -0
- cosmotech_api-3.2.0.dist-info/LICENSE +17 -0
- cosmotech_api-3.2.0.dist-info/METADATA +18 -0
- cosmotech_api-3.2.0.dist-info/RECORD +255 -0
- cosmotech_api-3.2.0.dist-info/WHEEL +5 -0
- cosmotech_api-3.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1351 @@
|
|
|
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: 3.2.0
|
|
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 pydantic import Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from cosmotech_api.models.connector import Connector
|
|
24
|
+
|
|
25
|
+
from cosmotech_api.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from cosmotech_api.api_response import ApiResponse
|
|
27
|
+
from cosmotech_api.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ConnectorApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def find_all_connectors(
|
|
45
|
+
self,
|
|
46
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
47
|
+
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
48
|
+
_request_timeout: Union[
|
|
49
|
+
None,
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Tuple[
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
+
]
|
|
55
|
+
] = None,
|
|
56
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_content_type: Optional[StrictStr] = None,
|
|
58
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
+
) -> List[Connector]:
|
|
61
|
+
"""List all Connectors
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param page: page number to query
|
|
65
|
+
:type page: int
|
|
66
|
+
:param size: amount of result by page
|
|
67
|
+
:type size: int
|
|
68
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
69
|
+
number provided, it will be total request
|
|
70
|
+
timeout. It can also be a pair (tuple) of
|
|
71
|
+
(connection, read) timeouts.
|
|
72
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
73
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
74
|
+
request; this effectively ignores the
|
|
75
|
+
authentication in the spec for a single request.
|
|
76
|
+
:type _request_auth: dict, optional
|
|
77
|
+
:param _content_type: force content-type for the request.
|
|
78
|
+
:type _content_type: str, Optional
|
|
79
|
+
:param _headers: set to override the headers for a single
|
|
80
|
+
request; this effectively ignores the headers
|
|
81
|
+
in the spec for a single request.
|
|
82
|
+
:type _headers: dict, optional
|
|
83
|
+
:param _host_index: set to override the host_index for a single
|
|
84
|
+
request; this effectively ignores the host_index
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _host_index: int, optional
|
|
87
|
+
:return: Returns the result object.
|
|
88
|
+
""" # noqa: E501
|
|
89
|
+
|
|
90
|
+
_param = self._find_all_connectors_serialize(
|
|
91
|
+
page=page,
|
|
92
|
+
size=size,
|
|
93
|
+
_request_auth=_request_auth,
|
|
94
|
+
_content_type=_content_type,
|
|
95
|
+
_headers=_headers,
|
|
96
|
+
_host_index=_host_index
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
100
|
+
'200': "List[Connector]",
|
|
101
|
+
}
|
|
102
|
+
response_data = self.api_client.call_api(
|
|
103
|
+
*_param,
|
|
104
|
+
_request_timeout=_request_timeout
|
|
105
|
+
)
|
|
106
|
+
response_data.read()
|
|
107
|
+
return self.api_client.response_deserialize(
|
|
108
|
+
response_data=response_data,
|
|
109
|
+
response_types_map=_response_types_map,
|
|
110
|
+
).data
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@validate_call
|
|
114
|
+
def find_all_connectors_with_http_info(
|
|
115
|
+
self,
|
|
116
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
117
|
+
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
118
|
+
_request_timeout: Union[
|
|
119
|
+
None,
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Tuple[
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
]
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[List[Connector]]:
|
|
131
|
+
"""List all Connectors
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param page: page number to query
|
|
135
|
+
:type page: int
|
|
136
|
+
:param size: amount of result by page
|
|
137
|
+
:type size: int
|
|
138
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
139
|
+
number provided, it will be total request
|
|
140
|
+
timeout. It can also be a pair (tuple) of
|
|
141
|
+
(connection, read) timeouts.
|
|
142
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
143
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
144
|
+
request; this effectively ignores the
|
|
145
|
+
authentication in the spec for a single request.
|
|
146
|
+
:type _request_auth: dict, optional
|
|
147
|
+
:param _content_type: force content-type for the request.
|
|
148
|
+
:type _content_type: str, Optional
|
|
149
|
+
:param _headers: set to override the headers for a single
|
|
150
|
+
request; this effectively ignores the headers
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _headers: dict, optional
|
|
153
|
+
:param _host_index: set to override the host_index for a single
|
|
154
|
+
request; this effectively ignores the host_index
|
|
155
|
+
in the spec for a single request.
|
|
156
|
+
:type _host_index: int, optional
|
|
157
|
+
:return: Returns the result object.
|
|
158
|
+
""" # noqa: E501
|
|
159
|
+
|
|
160
|
+
_param = self._find_all_connectors_serialize(
|
|
161
|
+
page=page,
|
|
162
|
+
size=size,
|
|
163
|
+
_request_auth=_request_auth,
|
|
164
|
+
_content_type=_content_type,
|
|
165
|
+
_headers=_headers,
|
|
166
|
+
_host_index=_host_index
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
+
'200': "List[Connector]",
|
|
171
|
+
}
|
|
172
|
+
response_data = self.api_client.call_api(
|
|
173
|
+
*_param,
|
|
174
|
+
_request_timeout=_request_timeout
|
|
175
|
+
)
|
|
176
|
+
response_data.read()
|
|
177
|
+
return self.api_client.response_deserialize(
|
|
178
|
+
response_data=response_data,
|
|
179
|
+
response_types_map=_response_types_map,
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
@validate_call
|
|
184
|
+
def find_all_connectors_without_preload_content(
|
|
185
|
+
self,
|
|
186
|
+
page: Annotated[Optional[StrictInt], Field(description="page number to query")] = None,
|
|
187
|
+
size: Annotated[Optional[StrictInt], Field(description="amount of result by page")] = None,
|
|
188
|
+
_request_timeout: Union[
|
|
189
|
+
None,
|
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
191
|
+
Tuple[
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
194
|
+
]
|
|
195
|
+
] = None,
|
|
196
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
197
|
+
_content_type: Optional[StrictStr] = None,
|
|
198
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
200
|
+
) -> RESTResponseType:
|
|
201
|
+
"""List all Connectors
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
:param page: page number to query
|
|
205
|
+
:type page: int
|
|
206
|
+
:param size: amount of result by page
|
|
207
|
+
:type size: int
|
|
208
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
209
|
+
number provided, it will be total request
|
|
210
|
+
timeout. It can also be a pair (tuple) of
|
|
211
|
+
(connection, read) timeouts.
|
|
212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
214
|
+
request; this effectively ignores the
|
|
215
|
+
authentication in the spec for a single request.
|
|
216
|
+
:type _request_auth: dict, optional
|
|
217
|
+
:param _content_type: force content-type for the request.
|
|
218
|
+
:type _content_type: str, Optional
|
|
219
|
+
:param _headers: set to override the headers for a single
|
|
220
|
+
request; this effectively ignores the headers
|
|
221
|
+
in the spec for a single request.
|
|
222
|
+
:type _headers: dict, optional
|
|
223
|
+
:param _host_index: set to override the host_index for a single
|
|
224
|
+
request; this effectively ignores the host_index
|
|
225
|
+
in the spec for a single request.
|
|
226
|
+
:type _host_index: int, optional
|
|
227
|
+
:return: Returns the result object.
|
|
228
|
+
""" # noqa: E501
|
|
229
|
+
|
|
230
|
+
_param = self._find_all_connectors_serialize(
|
|
231
|
+
page=page,
|
|
232
|
+
size=size,
|
|
233
|
+
_request_auth=_request_auth,
|
|
234
|
+
_content_type=_content_type,
|
|
235
|
+
_headers=_headers,
|
|
236
|
+
_host_index=_host_index
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
+
'200': "List[Connector]",
|
|
241
|
+
}
|
|
242
|
+
response_data = self.api_client.call_api(
|
|
243
|
+
*_param,
|
|
244
|
+
_request_timeout=_request_timeout
|
|
245
|
+
)
|
|
246
|
+
return response_data.response
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def _find_all_connectors_serialize(
|
|
250
|
+
self,
|
|
251
|
+
page,
|
|
252
|
+
size,
|
|
253
|
+
_request_auth,
|
|
254
|
+
_content_type,
|
|
255
|
+
_headers,
|
|
256
|
+
_host_index,
|
|
257
|
+
) -> RequestSerialized:
|
|
258
|
+
|
|
259
|
+
_host = None
|
|
260
|
+
|
|
261
|
+
_collection_formats: Dict[str, str] = {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
_path_params: Dict[str, str] = {}
|
|
265
|
+
_query_params: List[Tuple[str, str]] = []
|
|
266
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
267
|
+
_form_params: List[Tuple[str, str]] = []
|
|
268
|
+
_files: Dict[str, str] = {}
|
|
269
|
+
_body_params: Optional[bytes] = None
|
|
270
|
+
|
|
271
|
+
# process the path parameters
|
|
272
|
+
# process the query parameters
|
|
273
|
+
if page is not None:
|
|
274
|
+
|
|
275
|
+
_query_params.append(('page', page))
|
|
276
|
+
|
|
277
|
+
if size is not None:
|
|
278
|
+
|
|
279
|
+
_query_params.append(('size', size))
|
|
280
|
+
|
|
281
|
+
# process the header parameters
|
|
282
|
+
# process the form parameters
|
|
283
|
+
# process the body parameter
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# set the HTTP header `Accept`
|
|
287
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
288
|
+
[
|
|
289
|
+
'application/json'
|
|
290
|
+
]
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
# authentication setting
|
|
295
|
+
_auth_settings: List[str] = [
|
|
296
|
+
'oAuth2AuthCode'
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
return self.api_client.param_serialize(
|
|
300
|
+
method='GET',
|
|
301
|
+
resource_path='/connectors',
|
|
302
|
+
path_params=_path_params,
|
|
303
|
+
query_params=_query_params,
|
|
304
|
+
header_params=_header_params,
|
|
305
|
+
body=_body_params,
|
|
306
|
+
post_params=_form_params,
|
|
307
|
+
files=_files,
|
|
308
|
+
auth_settings=_auth_settings,
|
|
309
|
+
collection_formats=_collection_formats,
|
|
310
|
+
_host=_host,
|
|
311
|
+
_request_auth=_request_auth
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
@validate_call
|
|
318
|
+
def find_connector_by_id(
|
|
319
|
+
self,
|
|
320
|
+
connector_id: Annotated[StrictStr, Field(description="the Connector identifier")],
|
|
321
|
+
_request_timeout: Union[
|
|
322
|
+
None,
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Tuple[
|
|
325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
327
|
+
]
|
|
328
|
+
] = None,
|
|
329
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_content_type: Optional[StrictStr] = None,
|
|
331
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
332
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
333
|
+
) -> Connector:
|
|
334
|
+
"""Get the details of a connector
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param connector_id: the Connector identifier (required)
|
|
338
|
+
:type connector_id: str
|
|
339
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
340
|
+
number provided, it will be total request
|
|
341
|
+
timeout. It can also be a pair (tuple) of
|
|
342
|
+
(connection, read) timeouts.
|
|
343
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
344
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
345
|
+
request; this effectively ignores the
|
|
346
|
+
authentication in the spec for a single request.
|
|
347
|
+
:type _request_auth: dict, optional
|
|
348
|
+
:param _content_type: force content-type for the request.
|
|
349
|
+
:type _content_type: str, Optional
|
|
350
|
+
:param _headers: set to override the headers for a single
|
|
351
|
+
request; this effectively ignores the headers
|
|
352
|
+
in the spec for a single request.
|
|
353
|
+
:type _headers: dict, optional
|
|
354
|
+
:param _host_index: set to override the host_index for a single
|
|
355
|
+
request; this effectively ignores the host_index
|
|
356
|
+
in the spec for a single request.
|
|
357
|
+
:type _host_index: int, optional
|
|
358
|
+
:return: Returns the result object.
|
|
359
|
+
""" # noqa: E501
|
|
360
|
+
|
|
361
|
+
_param = self._find_connector_by_id_serialize(
|
|
362
|
+
connector_id=connector_id,
|
|
363
|
+
_request_auth=_request_auth,
|
|
364
|
+
_content_type=_content_type,
|
|
365
|
+
_headers=_headers,
|
|
366
|
+
_host_index=_host_index
|
|
367
|
+
)
|
|
368
|
+
|
|
369
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
370
|
+
'200': "Connector",
|
|
371
|
+
'404': None,
|
|
372
|
+
}
|
|
373
|
+
response_data = self.api_client.call_api(
|
|
374
|
+
*_param,
|
|
375
|
+
_request_timeout=_request_timeout
|
|
376
|
+
)
|
|
377
|
+
response_data.read()
|
|
378
|
+
return self.api_client.response_deserialize(
|
|
379
|
+
response_data=response_data,
|
|
380
|
+
response_types_map=_response_types_map,
|
|
381
|
+
).data
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
@validate_call
|
|
385
|
+
def find_connector_by_id_with_http_info(
|
|
386
|
+
self,
|
|
387
|
+
connector_id: Annotated[StrictStr, Field(description="the Connector identifier")],
|
|
388
|
+
_request_timeout: Union[
|
|
389
|
+
None,
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
391
|
+
Tuple[
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
393
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
394
|
+
]
|
|
395
|
+
] = None,
|
|
396
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
397
|
+
_content_type: Optional[StrictStr] = None,
|
|
398
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
399
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
400
|
+
) -> ApiResponse[Connector]:
|
|
401
|
+
"""Get the details of a connector
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
:param connector_id: the Connector identifier (required)
|
|
405
|
+
:type connector_id: str
|
|
406
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
407
|
+
number provided, it will be total request
|
|
408
|
+
timeout. It can also be a pair (tuple) of
|
|
409
|
+
(connection, read) timeouts.
|
|
410
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
411
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
412
|
+
request; this effectively ignores the
|
|
413
|
+
authentication in the spec for a single request.
|
|
414
|
+
:type _request_auth: dict, optional
|
|
415
|
+
:param _content_type: force content-type for the request.
|
|
416
|
+
:type _content_type: str, Optional
|
|
417
|
+
:param _headers: set to override the headers for a single
|
|
418
|
+
request; this effectively ignores the headers
|
|
419
|
+
in the spec for a single request.
|
|
420
|
+
:type _headers: dict, optional
|
|
421
|
+
:param _host_index: set to override the host_index for a single
|
|
422
|
+
request; this effectively ignores the host_index
|
|
423
|
+
in the spec for a single request.
|
|
424
|
+
:type _host_index: int, optional
|
|
425
|
+
:return: Returns the result object.
|
|
426
|
+
""" # noqa: E501
|
|
427
|
+
|
|
428
|
+
_param = self._find_connector_by_id_serialize(
|
|
429
|
+
connector_id=connector_id,
|
|
430
|
+
_request_auth=_request_auth,
|
|
431
|
+
_content_type=_content_type,
|
|
432
|
+
_headers=_headers,
|
|
433
|
+
_host_index=_host_index
|
|
434
|
+
)
|
|
435
|
+
|
|
436
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
437
|
+
'200': "Connector",
|
|
438
|
+
'404': None,
|
|
439
|
+
}
|
|
440
|
+
response_data = self.api_client.call_api(
|
|
441
|
+
*_param,
|
|
442
|
+
_request_timeout=_request_timeout
|
|
443
|
+
)
|
|
444
|
+
response_data.read()
|
|
445
|
+
return self.api_client.response_deserialize(
|
|
446
|
+
response_data=response_data,
|
|
447
|
+
response_types_map=_response_types_map,
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
@validate_call
|
|
452
|
+
def find_connector_by_id_without_preload_content(
|
|
453
|
+
self,
|
|
454
|
+
connector_id: Annotated[StrictStr, Field(description="the Connector identifier")],
|
|
455
|
+
_request_timeout: Union[
|
|
456
|
+
None,
|
|
457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
458
|
+
Tuple[
|
|
459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
461
|
+
]
|
|
462
|
+
] = None,
|
|
463
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
464
|
+
_content_type: Optional[StrictStr] = None,
|
|
465
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
466
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
467
|
+
) -> RESTResponseType:
|
|
468
|
+
"""Get the details of a connector
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
:param connector_id: the Connector identifier (required)
|
|
472
|
+
:type connector_id: str
|
|
473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
474
|
+
number provided, it will be total request
|
|
475
|
+
timeout. It can also be a pair (tuple) of
|
|
476
|
+
(connection, read) timeouts.
|
|
477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
479
|
+
request; this effectively ignores the
|
|
480
|
+
authentication in the spec for a single request.
|
|
481
|
+
:type _request_auth: dict, optional
|
|
482
|
+
:param _content_type: force content-type for the request.
|
|
483
|
+
:type _content_type: str, Optional
|
|
484
|
+
:param _headers: set to override the headers for a single
|
|
485
|
+
request; this effectively ignores the headers
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _headers: dict, optional
|
|
488
|
+
:param _host_index: set to override the host_index for a single
|
|
489
|
+
request; this effectively ignores the host_index
|
|
490
|
+
in the spec for a single request.
|
|
491
|
+
:type _host_index: int, optional
|
|
492
|
+
:return: Returns the result object.
|
|
493
|
+
""" # noqa: E501
|
|
494
|
+
|
|
495
|
+
_param = self._find_connector_by_id_serialize(
|
|
496
|
+
connector_id=connector_id,
|
|
497
|
+
_request_auth=_request_auth,
|
|
498
|
+
_content_type=_content_type,
|
|
499
|
+
_headers=_headers,
|
|
500
|
+
_host_index=_host_index
|
|
501
|
+
)
|
|
502
|
+
|
|
503
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
504
|
+
'200': "Connector",
|
|
505
|
+
'404': None,
|
|
506
|
+
}
|
|
507
|
+
response_data = self.api_client.call_api(
|
|
508
|
+
*_param,
|
|
509
|
+
_request_timeout=_request_timeout
|
|
510
|
+
)
|
|
511
|
+
return response_data.response
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
def _find_connector_by_id_serialize(
|
|
515
|
+
self,
|
|
516
|
+
connector_id,
|
|
517
|
+
_request_auth,
|
|
518
|
+
_content_type,
|
|
519
|
+
_headers,
|
|
520
|
+
_host_index,
|
|
521
|
+
) -> RequestSerialized:
|
|
522
|
+
|
|
523
|
+
_host = None
|
|
524
|
+
|
|
525
|
+
_collection_formats: Dict[str, str] = {
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
_path_params: Dict[str, str] = {}
|
|
529
|
+
_query_params: List[Tuple[str, str]] = []
|
|
530
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
531
|
+
_form_params: List[Tuple[str, str]] = []
|
|
532
|
+
_files: Dict[str, str] = {}
|
|
533
|
+
_body_params: Optional[bytes] = None
|
|
534
|
+
|
|
535
|
+
# process the path parameters
|
|
536
|
+
if connector_id is not None:
|
|
537
|
+
_path_params['connector_id'] = connector_id
|
|
538
|
+
# process the query parameters
|
|
539
|
+
# process the header parameters
|
|
540
|
+
# process the form parameters
|
|
541
|
+
# process the body parameter
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
# set the HTTP header `Accept`
|
|
545
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
546
|
+
[
|
|
547
|
+
'application/json'
|
|
548
|
+
]
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
# authentication setting
|
|
553
|
+
_auth_settings: List[str] = [
|
|
554
|
+
'oAuth2AuthCode'
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
return self.api_client.param_serialize(
|
|
558
|
+
method='GET',
|
|
559
|
+
resource_path='/connectors/{connector_id}',
|
|
560
|
+
path_params=_path_params,
|
|
561
|
+
query_params=_query_params,
|
|
562
|
+
header_params=_header_params,
|
|
563
|
+
body=_body_params,
|
|
564
|
+
post_params=_form_params,
|
|
565
|
+
files=_files,
|
|
566
|
+
auth_settings=_auth_settings,
|
|
567
|
+
collection_formats=_collection_formats,
|
|
568
|
+
_host=_host,
|
|
569
|
+
_request_auth=_request_auth
|
|
570
|
+
)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
@validate_call
|
|
576
|
+
def find_connector_by_name(
|
|
577
|
+
self,
|
|
578
|
+
connector_name: Annotated[StrictStr, Field(description="the Connector name")],
|
|
579
|
+
_request_timeout: Union[
|
|
580
|
+
None,
|
|
581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
582
|
+
Tuple[
|
|
583
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
584
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
585
|
+
]
|
|
586
|
+
] = None,
|
|
587
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
588
|
+
_content_type: Optional[StrictStr] = None,
|
|
589
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
590
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
591
|
+
) -> Connector:
|
|
592
|
+
"""Get the details of a connector
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
:param connector_name: the Connector name (required)
|
|
596
|
+
:type connector_name: str
|
|
597
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
598
|
+
number provided, it will be total request
|
|
599
|
+
timeout. It can also be a pair (tuple) of
|
|
600
|
+
(connection, read) timeouts.
|
|
601
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
602
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
603
|
+
request; this effectively ignores the
|
|
604
|
+
authentication in the spec for a single request.
|
|
605
|
+
:type _request_auth: dict, optional
|
|
606
|
+
:param _content_type: force content-type for the request.
|
|
607
|
+
:type _content_type: str, Optional
|
|
608
|
+
:param _headers: set to override the headers for a single
|
|
609
|
+
request; this effectively ignores the headers
|
|
610
|
+
in the spec for a single request.
|
|
611
|
+
:type _headers: dict, optional
|
|
612
|
+
:param _host_index: set to override the host_index for a single
|
|
613
|
+
request; this effectively ignores the host_index
|
|
614
|
+
in the spec for a single request.
|
|
615
|
+
:type _host_index: int, optional
|
|
616
|
+
:return: Returns the result object.
|
|
617
|
+
""" # noqa: E501
|
|
618
|
+
|
|
619
|
+
_param = self._find_connector_by_name_serialize(
|
|
620
|
+
connector_name=connector_name,
|
|
621
|
+
_request_auth=_request_auth,
|
|
622
|
+
_content_type=_content_type,
|
|
623
|
+
_headers=_headers,
|
|
624
|
+
_host_index=_host_index
|
|
625
|
+
)
|
|
626
|
+
|
|
627
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
628
|
+
'200': "Connector",
|
|
629
|
+
}
|
|
630
|
+
response_data = self.api_client.call_api(
|
|
631
|
+
*_param,
|
|
632
|
+
_request_timeout=_request_timeout
|
|
633
|
+
)
|
|
634
|
+
response_data.read()
|
|
635
|
+
return self.api_client.response_deserialize(
|
|
636
|
+
response_data=response_data,
|
|
637
|
+
response_types_map=_response_types_map,
|
|
638
|
+
).data
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
@validate_call
|
|
642
|
+
def find_connector_by_name_with_http_info(
|
|
643
|
+
self,
|
|
644
|
+
connector_name: Annotated[StrictStr, Field(description="the Connector name")],
|
|
645
|
+
_request_timeout: Union[
|
|
646
|
+
None,
|
|
647
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
648
|
+
Tuple[
|
|
649
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
650
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
651
|
+
]
|
|
652
|
+
] = None,
|
|
653
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
654
|
+
_content_type: Optional[StrictStr] = None,
|
|
655
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
656
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
657
|
+
) -> ApiResponse[Connector]:
|
|
658
|
+
"""Get the details of a connector
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
:param connector_name: the Connector name (required)
|
|
662
|
+
:type connector_name: str
|
|
663
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
664
|
+
number provided, it will be total request
|
|
665
|
+
timeout. It can also be a pair (tuple) of
|
|
666
|
+
(connection, read) timeouts.
|
|
667
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
668
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
669
|
+
request; this effectively ignores the
|
|
670
|
+
authentication in the spec for a single request.
|
|
671
|
+
:type _request_auth: dict, optional
|
|
672
|
+
:param _content_type: force content-type for the request.
|
|
673
|
+
:type _content_type: str, Optional
|
|
674
|
+
:param _headers: set to override the headers for a single
|
|
675
|
+
request; this effectively ignores the headers
|
|
676
|
+
in the spec for a single request.
|
|
677
|
+
:type _headers: dict, optional
|
|
678
|
+
:param _host_index: set to override the host_index for a single
|
|
679
|
+
request; this effectively ignores the host_index
|
|
680
|
+
in the spec for a single request.
|
|
681
|
+
:type _host_index: int, optional
|
|
682
|
+
:return: Returns the result object.
|
|
683
|
+
""" # noqa: E501
|
|
684
|
+
|
|
685
|
+
_param = self._find_connector_by_name_serialize(
|
|
686
|
+
connector_name=connector_name,
|
|
687
|
+
_request_auth=_request_auth,
|
|
688
|
+
_content_type=_content_type,
|
|
689
|
+
_headers=_headers,
|
|
690
|
+
_host_index=_host_index
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
694
|
+
'200': "Connector",
|
|
695
|
+
}
|
|
696
|
+
response_data = self.api_client.call_api(
|
|
697
|
+
*_param,
|
|
698
|
+
_request_timeout=_request_timeout
|
|
699
|
+
)
|
|
700
|
+
response_data.read()
|
|
701
|
+
return self.api_client.response_deserialize(
|
|
702
|
+
response_data=response_data,
|
|
703
|
+
response_types_map=_response_types_map,
|
|
704
|
+
)
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
@validate_call
|
|
708
|
+
def find_connector_by_name_without_preload_content(
|
|
709
|
+
self,
|
|
710
|
+
connector_name: Annotated[StrictStr, Field(description="the Connector name")],
|
|
711
|
+
_request_timeout: Union[
|
|
712
|
+
None,
|
|
713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
714
|
+
Tuple[
|
|
715
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
716
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
717
|
+
]
|
|
718
|
+
] = None,
|
|
719
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
720
|
+
_content_type: Optional[StrictStr] = None,
|
|
721
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
722
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
723
|
+
) -> RESTResponseType:
|
|
724
|
+
"""Get the details of a connector
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
:param connector_name: the Connector name (required)
|
|
728
|
+
:type connector_name: str
|
|
729
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
730
|
+
number provided, it will be total request
|
|
731
|
+
timeout. It can also be a pair (tuple) of
|
|
732
|
+
(connection, read) timeouts.
|
|
733
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
734
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
735
|
+
request; this effectively ignores the
|
|
736
|
+
authentication in the spec for a single request.
|
|
737
|
+
:type _request_auth: dict, optional
|
|
738
|
+
:param _content_type: force content-type for the request.
|
|
739
|
+
:type _content_type: str, Optional
|
|
740
|
+
:param _headers: set to override the headers for a single
|
|
741
|
+
request; this effectively ignores the headers
|
|
742
|
+
in the spec for a single request.
|
|
743
|
+
:type _headers: dict, optional
|
|
744
|
+
:param _host_index: set to override the host_index for a single
|
|
745
|
+
request; this effectively ignores the host_index
|
|
746
|
+
in the spec for a single request.
|
|
747
|
+
:type _host_index: int, optional
|
|
748
|
+
:return: Returns the result object.
|
|
749
|
+
""" # noqa: E501
|
|
750
|
+
|
|
751
|
+
_param = self._find_connector_by_name_serialize(
|
|
752
|
+
connector_name=connector_name,
|
|
753
|
+
_request_auth=_request_auth,
|
|
754
|
+
_content_type=_content_type,
|
|
755
|
+
_headers=_headers,
|
|
756
|
+
_host_index=_host_index
|
|
757
|
+
)
|
|
758
|
+
|
|
759
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
760
|
+
'200': "Connector",
|
|
761
|
+
}
|
|
762
|
+
response_data = self.api_client.call_api(
|
|
763
|
+
*_param,
|
|
764
|
+
_request_timeout=_request_timeout
|
|
765
|
+
)
|
|
766
|
+
return response_data.response
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
def _find_connector_by_name_serialize(
|
|
770
|
+
self,
|
|
771
|
+
connector_name,
|
|
772
|
+
_request_auth,
|
|
773
|
+
_content_type,
|
|
774
|
+
_headers,
|
|
775
|
+
_host_index,
|
|
776
|
+
) -> RequestSerialized:
|
|
777
|
+
|
|
778
|
+
_host = None
|
|
779
|
+
|
|
780
|
+
_collection_formats: Dict[str, str] = {
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
_path_params: Dict[str, str] = {}
|
|
784
|
+
_query_params: List[Tuple[str, str]] = []
|
|
785
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
786
|
+
_form_params: List[Tuple[str, str]] = []
|
|
787
|
+
_files: Dict[str, str] = {}
|
|
788
|
+
_body_params: Optional[bytes] = None
|
|
789
|
+
|
|
790
|
+
# process the path parameters
|
|
791
|
+
if connector_name is not None:
|
|
792
|
+
_path_params['connector_name'] = connector_name
|
|
793
|
+
# process the query parameters
|
|
794
|
+
# process the header parameters
|
|
795
|
+
# process the form parameters
|
|
796
|
+
# process the body parameter
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
# set the HTTP header `Accept`
|
|
800
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
801
|
+
[
|
|
802
|
+
'application/json'
|
|
803
|
+
]
|
|
804
|
+
)
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
# authentication setting
|
|
808
|
+
_auth_settings: List[str] = [
|
|
809
|
+
'oAuth2AuthCode'
|
|
810
|
+
]
|
|
811
|
+
|
|
812
|
+
return self.api_client.param_serialize(
|
|
813
|
+
method='GET',
|
|
814
|
+
resource_path='/connectors/name/{connector_name}',
|
|
815
|
+
path_params=_path_params,
|
|
816
|
+
query_params=_query_params,
|
|
817
|
+
header_params=_header_params,
|
|
818
|
+
body=_body_params,
|
|
819
|
+
post_params=_form_params,
|
|
820
|
+
files=_files,
|
|
821
|
+
auth_settings=_auth_settings,
|
|
822
|
+
collection_formats=_collection_formats,
|
|
823
|
+
_host=_host,
|
|
824
|
+
_request_auth=_request_auth
|
|
825
|
+
)
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
@validate_call
|
|
831
|
+
def register_connector(
|
|
832
|
+
self,
|
|
833
|
+
connector: Annotated[Connector, Field(description="the Connector to register")],
|
|
834
|
+
_request_timeout: Union[
|
|
835
|
+
None,
|
|
836
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
837
|
+
Tuple[
|
|
838
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
839
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
840
|
+
]
|
|
841
|
+
] = None,
|
|
842
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
843
|
+
_content_type: Optional[StrictStr] = None,
|
|
844
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
845
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
846
|
+
) -> Connector:
|
|
847
|
+
"""Register a new connector
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
:param connector: the Connector to register (required)
|
|
851
|
+
:type connector: Connector
|
|
852
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
853
|
+
number provided, it will be total request
|
|
854
|
+
timeout. It can also be a pair (tuple) of
|
|
855
|
+
(connection, read) timeouts.
|
|
856
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
857
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
858
|
+
request; this effectively ignores the
|
|
859
|
+
authentication in the spec for a single request.
|
|
860
|
+
:type _request_auth: dict, optional
|
|
861
|
+
:param _content_type: force content-type for the request.
|
|
862
|
+
:type _content_type: str, Optional
|
|
863
|
+
:param _headers: set to override the headers for a single
|
|
864
|
+
request; this effectively ignores the headers
|
|
865
|
+
in the spec for a single request.
|
|
866
|
+
:type _headers: dict, optional
|
|
867
|
+
:param _host_index: set to override the host_index for a single
|
|
868
|
+
request; this effectively ignores the host_index
|
|
869
|
+
in the spec for a single request.
|
|
870
|
+
:type _host_index: int, optional
|
|
871
|
+
:return: Returns the result object.
|
|
872
|
+
""" # noqa: E501
|
|
873
|
+
|
|
874
|
+
_param = self._register_connector_serialize(
|
|
875
|
+
connector=connector,
|
|
876
|
+
_request_auth=_request_auth,
|
|
877
|
+
_content_type=_content_type,
|
|
878
|
+
_headers=_headers,
|
|
879
|
+
_host_index=_host_index
|
|
880
|
+
)
|
|
881
|
+
|
|
882
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
883
|
+
'201': "Connector",
|
|
884
|
+
'400': None,
|
|
885
|
+
}
|
|
886
|
+
response_data = self.api_client.call_api(
|
|
887
|
+
*_param,
|
|
888
|
+
_request_timeout=_request_timeout
|
|
889
|
+
)
|
|
890
|
+
response_data.read()
|
|
891
|
+
return self.api_client.response_deserialize(
|
|
892
|
+
response_data=response_data,
|
|
893
|
+
response_types_map=_response_types_map,
|
|
894
|
+
).data
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
@validate_call
|
|
898
|
+
def register_connector_with_http_info(
|
|
899
|
+
self,
|
|
900
|
+
connector: Annotated[Connector, Field(description="the Connector to register")],
|
|
901
|
+
_request_timeout: Union[
|
|
902
|
+
None,
|
|
903
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
904
|
+
Tuple[
|
|
905
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
906
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
907
|
+
]
|
|
908
|
+
] = None,
|
|
909
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
910
|
+
_content_type: Optional[StrictStr] = None,
|
|
911
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
912
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
913
|
+
) -> ApiResponse[Connector]:
|
|
914
|
+
"""Register a new connector
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
:param connector: the Connector to register (required)
|
|
918
|
+
:type connector: Connector
|
|
919
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
920
|
+
number provided, it will be total request
|
|
921
|
+
timeout. It can also be a pair (tuple) of
|
|
922
|
+
(connection, read) timeouts.
|
|
923
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
924
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
925
|
+
request; this effectively ignores the
|
|
926
|
+
authentication in the spec for a single request.
|
|
927
|
+
:type _request_auth: dict, optional
|
|
928
|
+
:param _content_type: force content-type for the request.
|
|
929
|
+
:type _content_type: str, Optional
|
|
930
|
+
:param _headers: set to override the headers for a single
|
|
931
|
+
request; this effectively ignores the headers
|
|
932
|
+
in the spec for a single request.
|
|
933
|
+
:type _headers: dict, optional
|
|
934
|
+
:param _host_index: set to override the host_index for a single
|
|
935
|
+
request; this effectively ignores the host_index
|
|
936
|
+
in the spec for a single request.
|
|
937
|
+
:type _host_index: int, optional
|
|
938
|
+
:return: Returns the result object.
|
|
939
|
+
""" # noqa: E501
|
|
940
|
+
|
|
941
|
+
_param = self._register_connector_serialize(
|
|
942
|
+
connector=connector,
|
|
943
|
+
_request_auth=_request_auth,
|
|
944
|
+
_content_type=_content_type,
|
|
945
|
+
_headers=_headers,
|
|
946
|
+
_host_index=_host_index
|
|
947
|
+
)
|
|
948
|
+
|
|
949
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
950
|
+
'201': "Connector",
|
|
951
|
+
'400': None,
|
|
952
|
+
}
|
|
953
|
+
response_data = self.api_client.call_api(
|
|
954
|
+
*_param,
|
|
955
|
+
_request_timeout=_request_timeout
|
|
956
|
+
)
|
|
957
|
+
response_data.read()
|
|
958
|
+
return self.api_client.response_deserialize(
|
|
959
|
+
response_data=response_data,
|
|
960
|
+
response_types_map=_response_types_map,
|
|
961
|
+
)
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
@validate_call
|
|
965
|
+
def register_connector_without_preload_content(
|
|
966
|
+
self,
|
|
967
|
+
connector: Annotated[Connector, Field(description="the Connector to register")],
|
|
968
|
+
_request_timeout: Union[
|
|
969
|
+
None,
|
|
970
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
971
|
+
Tuple[
|
|
972
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
973
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
974
|
+
]
|
|
975
|
+
] = None,
|
|
976
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
977
|
+
_content_type: Optional[StrictStr] = None,
|
|
978
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
979
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
980
|
+
) -> RESTResponseType:
|
|
981
|
+
"""Register a new connector
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
:param connector: the Connector to register (required)
|
|
985
|
+
:type connector: Connector
|
|
986
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
987
|
+
number provided, it will be total request
|
|
988
|
+
timeout. It can also be a pair (tuple) of
|
|
989
|
+
(connection, read) timeouts.
|
|
990
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
991
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
992
|
+
request; this effectively ignores the
|
|
993
|
+
authentication in the spec for a single request.
|
|
994
|
+
:type _request_auth: dict, optional
|
|
995
|
+
:param _content_type: force content-type for the request.
|
|
996
|
+
:type _content_type: str, Optional
|
|
997
|
+
:param _headers: set to override the headers for a single
|
|
998
|
+
request; this effectively ignores the headers
|
|
999
|
+
in the spec for a single request.
|
|
1000
|
+
:type _headers: dict, optional
|
|
1001
|
+
:param _host_index: set to override the host_index for a single
|
|
1002
|
+
request; this effectively ignores the host_index
|
|
1003
|
+
in the spec for a single request.
|
|
1004
|
+
:type _host_index: int, optional
|
|
1005
|
+
:return: Returns the result object.
|
|
1006
|
+
""" # noqa: E501
|
|
1007
|
+
|
|
1008
|
+
_param = self._register_connector_serialize(
|
|
1009
|
+
connector=connector,
|
|
1010
|
+
_request_auth=_request_auth,
|
|
1011
|
+
_content_type=_content_type,
|
|
1012
|
+
_headers=_headers,
|
|
1013
|
+
_host_index=_host_index
|
|
1014
|
+
)
|
|
1015
|
+
|
|
1016
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1017
|
+
'201': "Connector",
|
|
1018
|
+
'400': None,
|
|
1019
|
+
}
|
|
1020
|
+
response_data = self.api_client.call_api(
|
|
1021
|
+
*_param,
|
|
1022
|
+
_request_timeout=_request_timeout
|
|
1023
|
+
)
|
|
1024
|
+
return response_data.response
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
def _register_connector_serialize(
|
|
1028
|
+
self,
|
|
1029
|
+
connector,
|
|
1030
|
+
_request_auth,
|
|
1031
|
+
_content_type,
|
|
1032
|
+
_headers,
|
|
1033
|
+
_host_index,
|
|
1034
|
+
) -> RequestSerialized:
|
|
1035
|
+
|
|
1036
|
+
_host = None
|
|
1037
|
+
|
|
1038
|
+
_collection_formats: Dict[str, str] = {
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
_path_params: Dict[str, str] = {}
|
|
1042
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1043
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1044
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1045
|
+
_files: Dict[str, str] = {}
|
|
1046
|
+
_body_params: Optional[bytes] = None
|
|
1047
|
+
|
|
1048
|
+
# process the path parameters
|
|
1049
|
+
# process the query parameters
|
|
1050
|
+
# process the header parameters
|
|
1051
|
+
# process the form parameters
|
|
1052
|
+
# process the body parameter
|
|
1053
|
+
if connector is not None:
|
|
1054
|
+
_body_params = connector
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
# set the HTTP header `Accept`
|
|
1058
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1059
|
+
[
|
|
1060
|
+
'application/json'
|
|
1061
|
+
]
|
|
1062
|
+
)
|
|
1063
|
+
|
|
1064
|
+
# set the HTTP header `Content-Type`
|
|
1065
|
+
if _content_type:
|
|
1066
|
+
_header_params['Content-Type'] = _content_type
|
|
1067
|
+
else:
|
|
1068
|
+
_default_content_type = (
|
|
1069
|
+
self.api_client.select_header_content_type(
|
|
1070
|
+
[
|
|
1071
|
+
'application/json',
|
|
1072
|
+
'application/yaml'
|
|
1073
|
+
]
|
|
1074
|
+
)
|
|
1075
|
+
)
|
|
1076
|
+
if _default_content_type is not None:
|
|
1077
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1078
|
+
|
|
1079
|
+
# authentication setting
|
|
1080
|
+
_auth_settings: List[str] = [
|
|
1081
|
+
'oAuth2AuthCode'
|
|
1082
|
+
]
|
|
1083
|
+
|
|
1084
|
+
return self.api_client.param_serialize(
|
|
1085
|
+
method='POST',
|
|
1086
|
+
resource_path='/connectors',
|
|
1087
|
+
path_params=_path_params,
|
|
1088
|
+
query_params=_query_params,
|
|
1089
|
+
header_params=_header_params,
|
|
1090
|
+
body=_body_params,
|
|
1091
|
+
post_params=_form_params,
|
|
1092
|
+
files=_files,
|
|
1093
|
+
auth_settings=_auth_settings,
|
|
1094
|
+
collection_formats=_collection_formats,
|
|
1095
|
+
_host=_host,
|
|
1096
|
+
_request_auth=_request_auth
|
|
1097
|
+
)
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
@validate_call
|
|
1103
|
+
def unregister_connector(
|
|
1104
|
+
self,
|
|
1105
|
+
connector_id: Annotated[StrictStr, Field(description="the Connector identifier")],
|
|
1106
|
+
_request_timeout: Union[
|
|
1107
|
+
None,
|
|
1108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1109
|
+
Tuple[
|
|
1110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1112
|
+
]
|
|
1113
|
+
] = None,
|
|
1114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1115
|
+
_content_type: Optional[StrictStr] = None,
|
|
1116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1118
|
+
) -> None:
|
|
1119
|
+
"""Unregister a connector
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
:param connector_id: the Connector identifier (required)
|
|
1123
|
+
:type connector_id: str
|
|
1124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1125
|
+
number provided, it will be total request
|
|
1126
|
+
timeout. It can also be a pair (tuple) of
|
|
1127
|
+
(connection, read) timeouts.
|
|
1128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1130
|
+
request; this effectively ignores the
|
|
1131
|
+
authentication in the spec for a single request.
|
|
1132
|
+
:type _request_auth: dict, optional
|
|
1133
|
+
:param _content_type: force content-type for the request.
|
|
1134
|
+
:type _content_type: str, Optional
|
|
1135
|
+
:param _headers: set to override the headers for a single
|
|
1136
|
+
request; this effectively ignores the headers
|
|
1137
|
+
in the spec for a single request.
|
|
1138
|
+
:type _headers: dict, optional
|
|
1139
|
+
:param _host_index: set to override the host_index for a single
|
|
1140
|
+
request; this effectively ignores the host_index
|
|
1141
|
+
in the spec for a single request.
|
|
1142
|
+
:type _host_index: int, optional
|
|
1143
|
+
:return: Returns the result object.
|
|
1144
|
+
""" # noqa: E501
|
|
1145
|
+
|
|
1146
|
+
_param = self._unregister_connector_serialize(
|
|
1147
|
+
connector_id=connector_id,
|
|
1148
|
+
_request_auth=_request_auth,
|
|
1149
|
+
_content_type=_content_type,
|
|
1150
|
+
_headers=_headers,
|
|
1151
|
+
_host_index=_host_index
|
|
1152
|
+
)
|
|
1153
|
+
|
|
1154
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1155
|
+
'204': None,
|
|
1156
|
+
'404': None,
|
|
1157
|
+
}
|
|
1158
|
+
response_data = self.api_client.call_api(
|
|
1159
|
+
*_param,
|
|
1160
|
+
_request_timeout=_request_timeout
|
|
1161
|
+
)
|
|
1162
|
+
response_data.read()
|
|
1163
|
+
return self.api_client.response_deserialize(
|
|
1164
|
+
response_data=response_data,
|
|
1165
|
+
response_types_map=_response_types_map,
|
|
1166
|
+
).data
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
@validate_call
|
|
1170
|
+
def unregister_connector_with_http_info(
|
|
1171
|
+
self,
|
|
1172
|
+
connector_id: Annotated[StrictStr, Field(description="the Connector identifier")],
|
|
1173
|
+
_request_timeout: Union[
|
|
1174
|
+
None,
|
|
1175
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1176
|
+
Tuple[
|
|
1177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1178
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1179
|
+
]
|
|
1180
|
+
] = None,
|
|
1181
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1182
|
+
_content_type: Optional[StrictStr] = None,
|
|
1183
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1184
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1185
|
+
) -> ApiResponse[None]:
|
|
1186
|
+
"""Unregister a connector
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
:param connector_id: the Connector identifier (required)
|
|
1190
|
+
:type connector_id: str
|
|
1191
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1192
|
+
number provided, it will be total request
|
|
1193
|
+
timeout. It can also be a pair (tuple) of
|
|
1194
|
+
(connection, read) timeouts.
|
|
1195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1197
|
+
request; this effectively ignores the
|
|
1198
|
+
authentication in the spec for a single request.
|
|
1199
|
+
:type _request_auth: dict, optional
|
|
1200
|
+
:param _content_type: force content-type for the request.
|
|
1201
|
+
:type _content_type: str, Optional
|
|
1202
|
+
:param _headers: set to override the headers for a single
|
|
1203
|
+
request; this effectively ignores the headers
|
|
1204
|
+
in the spec for a single request.
|
|
1205
|
+
:type _headers: dict, optional
|
|
1206
|
+
:param _host_index: set to override the host_index for a single
|
|
1207
|
+
request; this effectively ignores the host_index
|
|
1208
|
+
in the spec for a single request.
|
|
1209
|
+
:type _host_index: int, optional
|
|
1210
|
+
:return: Returns the result object.
|
|
1211
|
+
""" # noqa: E501
|
|
1212
|
+
|
|
1213
|
+
_param = self._unregister_connector_serialize(
|
|
1214
|
+
connector_id=connector_id,
|
|
1215
|
+
_request_auth=_request_auth,
|
|
1216
|
+
_content_type=_content_type,
|
|
1217
|
+
_headers=_headers,
|
|
1218
|
+
_host_index=_host_index
|
|
1219
|
+
)
|
|
1220
|
+
|
|
1221
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1222
|
+
'204': None,
|
|
1223
|
+
'404': None,
|
|
1224
|
+
}
|
|
1225
|
+
response_data = self.api_client.call_api(
|
|
1226
|
+
*_param,
|
|
1227
|
+
_request_timeout=_request_timeout
|
|
1228
|
+
)
|
|
1229
|
+
response_data.read()
|
|
1230
|
+
return self.api_client.response_deserialize(
|
|
1231
|
+
response_data=response_data,
|
|
1232
|
+
response_types_map=_response_types_map,
|
|
1233
|
+
)
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
@validate_call
|
|
1237
|
+
def unregister_connector_without_preload_content(
|
|
1238
|
+
self,
|
|
1239
|
+
connector_id: Annotated[StrictStr, Field(description="the Connector identifier")],
|
|
1240
|
+
_request_timeout: Union[
|
|
1241
|
+
None,
|
|
1242
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1243
|
+
Tuple[
|
|
1244
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1245
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1246
|
+
]
|
|
1247
|
+
] = None,
|
|
1248
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1249
|
+
_content_type: Optional[StrictStr] = None,
|
|
1250
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1251
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1252
|
+
) -> RESTResponseType:
|
|
1253
|
+
"""Unregister a connector
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
:param connector_id: the Connector identifier (required)
|
|
1257
|
+
:type connector_id: str
|
|
1258
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1259
|
+
number provided, it will be total request
|
|
1260
|
+
timeout. It can also be a pair (tuple) of
|
|
1261
|
+
(connection, read) timeouts.
|
|
1262
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1263
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1264
|
+
request; this effectively ignores the
|
|
1265
|
+
authentication in the spec for a single request.
|
|
1266
|
+
:type _request_auth: dict, optional
|
|
1267
|
+
:param _content_type: force content-type for the request.
|
|
1268
|
+
:type _content_type: str, Optional
|
|
1269
|
+
:param _headers: set to override the headers for a single
|
|
1270
|
+
request; this effectively ignores the headers
|
|
1271
|
+
in the spec for a single request.
|
|
1272
|
+
:type _headers: dict, optional
|
|
1273
|
+
:param _host_index: set to override the host_index for a single
|
|
1274
|
+
request; this effectively ignores the host_index
|
|
1275
|
+
in the spec for a single request.
|
|
1276
|
+
:type _host_index: int, optional
|
|
1277
|
+
:return: Returns the result object.
|
|
1278
|
+
""" # noqa: E501
|
|
1279
|
+
|
|
1280
|
+
_param = self._unregister_connector_serialize(
|
|
1281
|
+
connector_id=connector_id,
|
|
1282
|
+
_request_auth=_request_auth,
|
|
1283
|
+
_content_type=_content_type,
|
|
1284
|
+
_headers=_headers,
|
|
1285
|
+
_host_index=_host_index
|
|
1286
|
+
)
|
|
1287
|
+
|
|
1288
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1289
|
+
'204': None,
|
|
1290
|
+
'404': None,
|
|
1291
|
+
}
|
|
1292
|
+
response_data = self.api_client.call_api(
|
|
1293
|
+
*_param,
|
|
1294
|
+
_request_timeout=_request_timeout
|
|
1295
|
+
)
|
|
1296
|
+
return response_data.response
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
def _unregister_connector_serialize(
|
|
1300
|
+
self,
|
|
1301
|
+
connector_id,
|
|
1302
|
+
_request_auth,
|
|
1303
|
+
_content_type,
|
|
1304
|
+
_headers,
|
|
1305
|
+
_host_index,
|
|
1306
|
+
) -> RequestSerialized:
|
|
1307
|
+
|
|
1308
|
+
_host = None
|
|
1309
|
+
|
|
1310
|
+
_collection_formats: Dict[str, str] = {
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
_path_params: Dict[str, str] = {}
|
|
1314
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1315
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1316
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1317
|
+
_files: Dict[str, str] = {}
|
|
1318
|
+
_body_params: Optional[bytes] = None
|
|
1319
|
+
|
|
1320
|
+
# process the path parameters
|
|
1321
|
+
if connector_id is not None:
|
|
1322
|
+
_path_params['connector_id'] = connector_id
|
|
1323
|
+
# process the query parameters
|
|
1324
|
+
# process the header parameters
|
|
1325
|
+
# process the form parameters
|
|
1326
|
+
# process the body parameter
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
# authentication setting
|
|
1332
|
+
_auth_settings: List[str] = [
|
|
1333
|
+
'oAuth2AuthCode'
|
|
1334
|
+
]
|
|
1335
|
+
|
|
1336
|
+
return self.api_client.param_serialize(
|
|
1337
|
+
method='DELETE',
|
|
1338
|
+
resource_path='/connectors/{connector_id}',
|
|
1339
|
+
path_params=_path_params,
|
|
1340
|
+
query_params=_query_params,
|
|
1341
|
+
header_params=_header_params,
|
|
1342
|
+
body=_body_params,
|
|
1343
|
+
post_params=_form_params,
|
|
1344
|
+
files=_files,
|
|
1345
|
+
auth_settings=_auth_settings,
|
|
1346
|
+
collection_formats=_collection_formats,
|
|
1347
|
+
_host=_host,
|
|
1348
|
+
_request_auth=_request_auth
|
|
1349
|
+
)
|
|
1350
|
+
|
|
1351
|
+
|