cosmotech-api 3.1.0.dev0__py3-none-any.whl → 3.2.0__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 +134 -9
- cosmotech_api/api/__init__.py +14 -3
- cosmotech_api/api/connector_api.py +1313 -641
- cosmotech_api/api/dataset_api.py +8974 -4465
- cosmotech_api/api/organization_api.py +4633 -2269
- cosmotech_api/api/run_api.py +2174 -778
- cosmotech_api/api/runner_api.py +4483 -2280
- cosmotech_api/api/scenario_api.py +6544 -3265
- cosmotech_api/api/scenariorun_api.py +4007 -1960
- cosmotech_api/api/scenariorunresult_api.py +659 -341
- cosmotech_api/api/solution_api.py +6341 -3140
- cosmotech_api/api/twingraph_api.py +4134 -2077
- cosmotech_api/api/validator_api.py +2501 -1249
- cosmotech_api/api/workspace_api.py +5999 -2977
- cosmotech_api/api_client.py +529 -637
- cosmotech_api/api_response.py +21 -0
- cosmotech_api/configuration.py +63 -73
- cosmotech_api/exceptions.py +71 -31
- 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 +9 -7
- 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_import.py +1 -1
- cosmotech_api/model/twin_graph_import_info.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 +124 -114
- 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 +139 -230
- {cosmotech_api-3.1.0.dev0.dist-info → cosmotech_api-3.2.0.dist-info}/METADATA +6 -4
- cosmotech_api-3.2.0.dist-info/RECORD +255 -0
- {cosmotech_api-3.1.0.dev0.dist-info → cosmotech_api-3.2.0.dist-info}/WHEEL +1 -1
- cosmotech_api-3.1.0.dev0.dist-info/RECORD +0 -142
- {cosmotech_api-3.1.0.dev0.dist-info → cosmotech_api-3.2.0.dist-info}/LICENSE +0 -0
- {cosmotech_api-3.1.0.dev0.dist-info → cosmotech_api-3.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,679 +1,1351 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
1
3
|
"""
|
|
2
4
|
Cosmo Tech Platform API
|
|
3
5
|
|
|
4
|
-
Cosmo Tech Platform API
|
|
6
|
+
Cosmo Tech Platform API
|
|
5
7
|
|
|
6
|
-
The version of the OpenAPI document: 3.
|
|
8
|
+
The version of the OpenAPI document: 3.2.0
|
|
7
9
|
Contact: platform@cosmotech.com
|
|
8
|
-
Generated by
|
|
9
|
-
"""
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
11
|
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
11
14
|
|
|
12
|
-
import
|
|
13
|
-
import
|
|
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
|
|
14
19
|
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
date,
|
|
20
|
-
datetime,
|
|
21
|
-
file_type,
|
|
22
|
-
none_type,
|
|
23
|
-
validate_and_convert_types
|
|
24
|
-
)
|
|
25
|
-
from cosmotech_api.model.connector import Connector
|
|
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
|
|
26
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
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
|
|
30
|
+
class ConnectorApi:
|
|
29
31
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
32
|
Ref: https://openapi-generator.tech
|
|
31
33
|
|
|
32
34
|
Do not edit the class manually.
|
|
33
35
|
"""
|
|
34
36
|
|
|
35
|
-
def __init__(self, api_client=None):
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
36
38
|
if api_client is None:
|
|
37
|
-
api_client = ApiClient()
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
38
40
|
self.api_client = api_client
|
|
39
|
-
self.find_all_connectors_endpoint = _Endpoint(
|
|
40
|
-
settings={
|
|
41
|
-
'response_type': ([Connector],),
|
|
42
|
-
'auth': [
|
|
43
|
-
'oAuth2AuthCode'
|
|
44
|
-
],
|
|
45
|
-
'endpoint_path': '/connectors',
|
|
46
|
-
'operation_id': 'find_all_connectors',
|
|
47
|
-
'http_method': 'GET',
|
|
48
|
-
'servers': None,
|
|
49
|
-
},
|
|
50
|
-
params_map={
|
|
51
|
-
'all': [
|
|
52
|
-
'page',
|
|
53
|
-
'size',
|
|
54
|
-
],
|
|
55
|
-
'required': [],
|
|
56
|
-
'nullable': [
|
|
57
|
-
],
|
|
58
|
-
'enum': [
|
|
59
|
-
],
|
|
60
|
-
'validation': [
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
root_map={
|
|
64
|
-
'validations': {
|
|
65
|
-
},
|
|
66
|
-
'allowed_values': {
|
|
67
|
-
},
|
|
68
|
-
'openapi_types': {
|
|
69
|
-
'page':
|
|
70
|
-
(int,),
|
|
71
|
-
'size':
|
|
72
|
-
(int,),
|
|
73
|
-
},
|
|
74
|
-
'attribute_map': {
|
|
75
|
-
'page': 'page',
|
|
76
|
-
'size': 'size',
|
|
77
|
-
},
|
|
78
|
-
'location_map': {
|
|
79
|
-
'page': 'query',
|
|
80
|
-
'size': 'query',
|
|
81
|
-
},
|
|
82
|
-
'collection_format_map': {
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
headers_map={
|
|
86
|
-
'accept': [
|
|
87
|
-
'application/json'
|
|
88
|
-
],
|
|
89
|
-
'content_type': [],
|
|
90
|
-
},
|
|
91
|
-
api_client=api_client
|
|
92
|
-
)
|
|
93
|
-
self.find_connector_by_id_endpoint = _Endpoint(
|
|
94
|
-
settings={
|
|
95
|
-
'response_type': (Connector,),
|
|
96
|
-
'auth': [
|
|
97
|
-
'oAuth2AuthCode'
|
|
98
|
-
],
|
|
99
|
-
'endpoint_path': '/connectors/{connector_id}',
|
|
100
|
-
'operation_id': 'find_connector_by_id',
|
|
101
|
-
'http_method': 'GET',
|
|
102
|
-
'servers': None,
|
|
103
|
-
},
|
|
104
|
-
params_map={
|
|
105
|
-
'all': [
|
|
106
|
-
'connector_id',
|
|
107
|
-
],
|
|
108
|
-
'required': [
|
|
109
|
-
'connector_id',
|
|
110
|
-
],
|
|
111
|
-
'nullable': [
|
|
112
|
-
],
|
|
113
|
-
'enum': [
|
|
114
|
-
],
|
|
115
|
-
'validation': [
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
root_map={
|
|
119
|
-
'validations': {
|
|
120
|
-
},
|
|
121
|
-
'allowed_values': {
|
|
122
|
-
},
|
|
123
|
-
'openapi_types': {
|
|
124
|
-
'connector_id':
|
|
125
|
-
(str,),
|
|
126
|
-
},
|
|
127
|
-
'attribute_map': {
|
|
128
|
-
'connector_id': 'connector_id',
|
|
129
|
-
},
|
|
130
|
-
'location_map': {
|
|
131
|
-
'connector_id': 'path',
|
|
132
|
-
},
|
|
133
|
-
'collection_format_map': {
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
headers_map={
|
|
137
|
-
'accept': [
|
|
138
|
-
'application/json'
|
|
139
|
-
],
|
|
140
|
-
'content_type': [],
|
|
141
|
-
},
|
|
142
|
-
api_client=api_client
|
|
143
|
-
)
|
|
144
|
-
self.find_connector_by_name_endpoint = _Endpoint(
|
|
145
|
-
settings={
|
|
146
|
-
'response_type': (Connector,),
|
|
147
|
-
'auth': [
|
|
148
|
-
'oAuth2AuthCode'
|
|
149
|
-
],
|
|
150
|
-
'endpoint_path': '/connectors/name/{connector_name}',
|
|
151
|
-
'operation_id': 'find_connector_by_name',
|
|
152
|
-
'http_method': 'GET',
|
|
153
|
-
'servers': None,
|
|
154
|
-
},
|
|
155
|
-
params_map={
|
|
156
|
-
'all': [
|
|
157
|
-
'connector_name',
|
|
158
|
-
],
|
|
159
|
-
'required': [
|
|
160
|
-
'connector_name',
|
|
161
|
-
],
|
|
162
|
-
'nullable': [
|
|
163
|
-
],
|
|
164
|
-
'enum': [
|
|
165
|
-
],
|
|
166
|
-
'validation': [
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
root_map={
|
|
170
|
-
'validations': {
|
|
171
|
-
},
|
|
172
|
-
'allowed_values': {
|
|
173
|
-
},
|
|
174
|
-
'openapi_types': {
|
|
175
|
-
'connector_name':
|
|
176
|
-
(str,),
|
|
177
|
-
},
|
|
178
|
-
'attribute_map': {
|
|
179
|
-
'connector_name': 'connector_name',
|
|
180
|
-
},
|
|
181
|
-
'location_map': {
|
|
182
|
-
'connector_name': 'path',
|
|
183
|
-
},
|
|
184
|
-
'collection_format_map': {
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
headers_map={
|
|
188
|
-
'accept': [
|
|
189
|
-
'application/json'
|
|
190
|
-
],
|
|
191
|
-
'content_type': [],
|
|
192
|
-
},
|
|
193
|
-
api_client=api_client
|
|
194
|
-
)
|
|
195
|
-
self.register_connector_endpoint = _Endpoint(
|
|
196
|
-
settings={
|
|
197
|
-
'response_type': (Connector,),
|
|
198
|
-
'auth': [
|
|
199
|
-
'oAuth2AuthCode'
|
|
200
|
-
],
|
|
201
|
-
'endpoint_path': '/connectors',
|
|
202
|
-
'operation_id': 'register_connector',
|
|
203
|
-
'http_method': 'POST',
|
|
204
|
-
'servers': None,
|
|
205
|
-
},
|
|
206
|
-
params_map={
|
|
207
|
-
'all': [
|
|
208
|
-
'connector',
|
|
209
|
-
],
|
|
210
|
-
'required': [
|
|
211
|
-
'connector',
|
|
212
|
-
],
|
|
213
|
-
'nullable': [
|
|
214
|
-
],
|
|
215
|
-
'enum': [
|
|
216
|
-
],
|
|
217
|
-
'validation': [
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
root_map={
|
|
221
|
-
'validations': {
|
|
222
|
-
},
|
|
223
|
-
'allowed_values': {
|
|
224
|
-
},
|
|
225
|
-
'openapi_types': {
|
|
226
|
-
'connector':
|
|
227
|
-
(Connector,),
|
|
228
|
-
},
|
|
229
|
-
'attribute_map': {
|
|
230
|
-
},
|
|
231
|
-
'location_map': {
|
|
232
|
-
'connector': 'body',
|
|
233
|
-
},
|
|
234
|
-
'collection_format_map': {
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
headers_map={
|
|
238
|
-
'accept': [
|
|
239
|
-
'application/json'
|
|
240
|
-
],
|
|
241
|
-
'content_type': [
|
|
242
|
-
'application/json',
|
|
243
|
-
'application/yaml'
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
api_client=api_client
|
|
247
|
-
)
|
|
248
|
-
self.unregister_connector_endpoint = _Endpoint(
|
|
249
|
-
settings={
|
|
250
|
-
'response_type': None,
|
|
251
|
-
'auth': [
|
|
252
|
-
'oAuth2AuthCode'
|
|
253
|
-
],
|
|
254
|
-
'endpoint_path': '/connectors/{connector_id}',
|
|
255
|
-
'operation_id': 'unregister_connector',
|
|
256
|
-
'http_method': 'DELETE',
|
|
257
|
-
'servers': None,
|
|
258
|
-
},
|
|
259
|
-
params_map={
|
|
260
|
-
'all': [
|
|
261
|
-
'connector_id',
|
|
262
|
-
],
|
|
263
|
-
'required': [
|
|
264
|
-
'connector_id',
|
|
265
|
-
],
|
|
266
|
-
'nullable': [
|
|
267
|
-
],
|
|
268
|
-
'enum': [
|
|
269
|
-
],
|
|
270
|
-
'validation': [
|
|
271
|
-
]
|
|
272
|
-
},
|
|
273
|
-
root_map={
|
|
274
|
-
'validations': {
|
|
275
|
-
},
|
|
276
|
-
'allowed_values': {
|
|
277
|
-
},
|
|
278
|
-
'openapi_types': {
|
|
279
|
-
'connector_id':
|
|
280
|
-
(str,),
|
|
281
|
-
},
|
|
282
|
-
'attribute_map': {
|
|
283
|
-
'connector_id': 'connector_id',
|
|
284
|
-
},
|
|
285
|
-
'location_map': {
|
|
286
|
-
'connector_id': 'path',
|
|
287
|
-
},
|
|
288
|
-
'collection_format_map': {
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
headers_map={
|
|
292
|
-
'accept': [],
|
|
293
|
-
'content_type': [],
|
|
294
|
-
},
|
|
295
|
-
api_client=api_client
|
|
296
|
-
)
|
|
297
41
|
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
298
44
|
def find_all_connectors(
|
|
299
45
|
self,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
Returns
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
)
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
)
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
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
|
|
371
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
|
|
372
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(
|
|
373
515
|
self,
|
|
374
516
|
connector_id,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
Default is True.
|
|
401
|
-
_check_return_type (bool): specifies if type checking
|
|
402
|
-
should be done one the data received from the server.
|
|
403
|
-
Default is True.
|
|
404
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
405
|
-
are serialized names, as specified in the OpenAPI document.
|
|
406
|
-
False if the variable names in the input data
|
|
407
|
-
are pythonic names, e.g. snake case (default)
|
|
408
|
-
_content_type (str/None): force body content-type.
|
|
409
|
-
Default is None and content-type will be predicted by allowed
|
|
410
|
-
content-types and body.
|
|
411
|
-
_host_index (int/None): specifies the index of the server
|
|
412
|
-
that we want to use.
|
|
413
|
-
Default is read from the configuration.
|
|
414
|
-
async_req (bool): execute request asynchronously
|
|
415
|
-
|
|
416
|
-
Returns:
|
|
417
|
-
Connector
|
|
418
|
-
If the method is called asynchronously, returns the request
|
|
419
|
-
thread.
|
|
420
|
-
"""
|
|
421
|
-
kwargs['async_req'] = kwargs.get(
|
|
422
|
-
'async_req', False
|
|
423
|
-
)
|
|
424
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
425
|
-
'_return_http_data_only', True
|
|
426
|
-
)
|
|
427
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
428
|
-
'_preload_content', True
|
|
429
|
-
)
|
|
430
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
431
|
-
'_request_timeout', None
|
|
432
|
-
)
|
|
433
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
434
|
-
'_check_input_type', True
|
|
435
|
-
)
|
|
436
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
437
|
-
'_check_return_type', True
|
|
438
|
-
)
|
|
439
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
440
|
-
'_spec_property_naming', False
|
|
441
|
-
)
|
|
442
|
-
kwargs['_content_type'] = kwargs.get(
|
|
443
|
-
'_content_type')
|
|
444
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
445
|
-
kwargs['connector_id'] = \
|
|
446
|
-
connector_id
|
|
447
|
-
return self.find_connector_by_id_endpoint.call_with_http_info(**kwargs)
|
|
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
|
|
448
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
|
|
449
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(
|
|
450
770
|
self,
|
|
451
771
|
connector_name,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
Args:
|
|
463
|
-
connector_name (str): the Connector name
|
|
464
|
-
|
|
465
|
-
Keyword Args:
|
|
466
|
-
_return_http_data_only (bool): response data without head status
|
|
467
|
-
code and headers. Default is True.
|
|
468
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
469
|
-
will be returned without reading/decoding response data.
|
|
470
|
-
Default is True.
|
|
471
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
472
|
-
one number provided, it will be total request timeout. It can also
|
|
473
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
474
|
-
Default is None.
|
|
475
|
-
_check_input_type (bool): specifies if type checking
|
|
476
|
-
should be done one the data sent to the server.
|
|
477
|
-
Default is True.
|
|
478
|
-
_check_return_type (bool): specifies if type checking
|
|
479
|
-
should be done one the data received from the server.
|
|
480
|
-
Default is True.
|
|
481
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
482
|
-
are serialized names, as specified in the OpenAPI document.
|
|
483
|
-
False if the variable names in the input data
|
|
484
|
-
are pythonic names, e.g. snake case (default)
|
|
485
|
-
_content_type (str/None): force body content-type.
|
|
486
|
-
Default is None and content-type will be predicted by allowed
|
|
487
|
-
content-types and body.
|
|
488
|
-
_host_index (int/None): specifies the index of the server
|
|
489
|
-
that we want to use.
|
|
490
|
-
Default is read from the configuration.
|
|
491
|
-
async_req (bool): execute request asynchronously
|
|
492
|
-
|
|
493
|
-
Returns:
|
|
494
|
-
Connector
|
|
495
|
-
If the method is called asynchronously, returns the request
|
|
496
|
-
thread.
|
|
497
|
-
"""
|
|
498
|
-
kwargs['async_req'] = kwargs.get(
|
|
499
|
-
'async_req', False
|
|
500
|
-
)
|
|
501
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
502
|
-
'_return_http_data_only', True
|
|
503
|
-
)
|
|
504
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
505
|
-
'_preload_content', True
|
|
506
|
-
)
|
|
507
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
508
|
-
'_request_timeout', None
|
|
509
|
-
)
|
|
510
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
511
|
-
'_check_input_type', True
|
|
512
|
-
)
|
|
513
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
514
|
-
'_check_return_type', True
|
|
515
|
-
)
|
|
516
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
517
|
-
'_spec_property_naming', False
|
|
518
|
-
)
|
|
519
|
-
kwargs['_content_type'] = kwargs.get(
|
|
520
|
-
'_content_type')
|
|
521
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
522
|
-
kwargs['connector_name'] = \
|
|
523
|
-
connector_name
|
|
524
|
-
return self.find_connector_by_name_endpoint.call_with_http_info(**kwargs)
|
|
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
|
+
}
|
|
525
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
|
|
526
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(
|
|
527
1028
|
self,
|
|
528
1029
|
connector,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
asynchronous HTTP request, please pass async_req=True
|
|
535
|
-
|
|
536
|
-
>>> thread = api.register_connector(connector, async_req=True)
|
|
537
|
-
>>> result = thread.get()
|
|
538
|
-
|
|
539
|
-
Args:
|
|
540
|
-
connector (Connector): the Connector to register
|
|
541
|
-
|
|
542
|
-
Keyword Args:
|
|
543
|
-
_return_http_data_only (bool): response data without head status
|
|
544
|
-
code and headers. Default is True.
|
|
545
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
546
|
-
will be returned without reading/decoding response data.
|
|
547
|
-
Default is True.
|
|
548
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
549
|
-
one number provided, it will be total request timeout. It can also
|
|
550
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
551
|
-
Default is None.
|
|
552
|
-
_check_input_type (bool): specifies if type checking
|
|
553
|
-
should be done one the data sent to the server.
|
|
554
|
-
Default is True.
|
|
555
|
-
_check_return_type (bool): specifies if type checking
|
|
556
|
-
should be done one the data received from the server.
|
|
557
|
-
Default is True.
|
|
558
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
559
|
-
are serialized names, as specified in the OpenAPI document.
|
|
560
|
-
False if the variable names in the input data
|
|
561
|
-
are pythonic names, e.g. snake case (default)
|
|
562
|
-
_content_type (str/None): force body content-type.
|
|
563
|
-
Default is None and content-type will be predicted by allowed
|
|
564
|
-
content-types and body.
|
|
565
|
-
_host_index (int/None): specifies the index of the server
|
|
566
|
-
that we want to use.
|
|
567
|
-
Default is read from the configuration.
|
|
568
|
-
async_req (bool): execute request asynchronously
|
|
569
|
-
|
|
570
|
-
Returns:
|
|
571
|
-
Connector
|
|
572
|
-
If the method is called asynchronously, returns the request
|
|
573
|
-
thread.
|
|
574
|
-
"""
|
|
575
|
-
kwargs['async_req'] = kwargs.get(
|
|
576
|
-
'async_req', False
|
|
577
|
-
)
|
|
578
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
579
|
-
'_return_http_data_only', True
|
|
580
|
-
)
|
|
581
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
582
|
-
'_preload_content', True
|
|
583
|
-
)
|
|
584
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
585
|
-
'_request_timeout', None
|
|
586
|
-
)
|
|
587
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
588
|
-
'_check_input_type', True
|
|
589
|
-
)
|
|
590
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
591
|
-
'_check_return_type', True
|
|
592
|
-
)
|
|
593
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
594
|
-
'_spec_property_naming', False
|
|
595
|
-
)
|
|
596
|
-
kwargs['_content_type'] = kwargs.get(
|
|
597
|
-
'_content_type')
|
|
598
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
599
|
-
kwargs['connector'] = \
|
|
600
|
-
connector
|
|
601
|
-
return self.register_connector_endpoint.call_with_http_info(**kwargs)
|
|
1030
|
+
_request_auth,
|
|
1031
|
+
_content_type,
|
|
1032
|
+
_headers,
|
|
1033
|
+
_host_index,
|
|
1034
|
+
) -> RequestSerialized:
|
|
602
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
|
|
603
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(
|
|
604
1300
|
self,
|
|
605
1301
|
connector_id,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
656
|
-
'_return_http_data_only', True
|
|
657
|
-
)
|
|
658
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
659
|
-
'_preload_content', True
|
|
660
|
-
)
|
|
661
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
662
|
-
'_request_timeout', None
|
|
663
|
-
)
|
|
664
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
665
|
-
'_check_input_type', True
|
|
666
|
-
)
|
|
667
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
668
|
-
'_check_return_type', True
|
|
669
|
-
)
|
|
670
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
671
|
-
'_spec_property_naming', False
|
|
672
|
-
)
|
|
673
|
-
kwargs['_content_type'] = kwargs.get(
|
|
674
|
-
'_content_type')
|
|
675
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
676
|
-
kwargs['connector_id'] = \
|
|
677
|
-
connector_id
|
|
678
|
-
return self.unregister_connector_endpoint.call_with_http_info(**kwargs)
|
|
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
|
+
|
|
679
1351
|
|