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,2566 @@
|
|
|
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.1.1-SNAPSHOT
|
|
9
|
+
Contact: platform@cosmotech.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from cosmotech_api.models.validator import Validator
|
|
23
|
+
from cosmotech_api.models.validator_run import ValidatorRun
|
|
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 ValidatorApi:
|
|
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 create_validator(
|
|
45
|
+
self,
|
|
46
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
47
|
+
validator: Annotated[Validator, Field(description="the Validator to create")],
|
|
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
|
+
) -> Validator:
|
|
61
|
+
"""Register a new validator
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:param organization_id: the Organization identifier (required)
|
|
65
|
+
:type organization_id: str
|
|
66
|
+
:param validator: the Validator to create (required)
|
|
67
|
+
:type validator: Validator
|
|
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._create_validator_serialize(
|
|
91
|
+
organization_id=organization_id,
|
|
92
|
+
validator=validator,
|
|
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
|
+
'201': "Validator",
|
|
101
|
+
'400': None,
|
|
102
|
+
}
|
|
103
|
+
response_data = self.api_client.call_api(
|
|
104
|
+
*_param,
|
|
105
|
+
_request_timeout=_request_timeout
|
|
106
|
+
)
|
|
107
|
+
response_data.read()
|
|
108
|
+
return self.api_client.response_deserialize(
|
|
109
|
+
response_data=response_data,
|
|
110
|
+
response_types_map=_response_types_map,
|
|
111
|
+
).data
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@validate_call
|
|
115
|
+
def create_validator_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
118
|
+
validator: Annotated[Validator, Field(description="the Validator to create")],
|
|
119
|
+
_request_timeout: Union[
|
|
120
|
+
None,
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Tuple[
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
125
|
+
]
|
|
126
|
+
] = None,
|
|
127
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
128
|
+
_content_type: Optional[StrictStr] = None,
|
|
129
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
130
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
131
|
+
) -> ApiResponse[Validator]:
|
|
132
|
+
"""Register a new validator
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param organization_id: the Organization identifier (required)
|
|
136
|
+
:type organization_id: str
|
|
137
|
+
:param validator: the Validator to create (required)
|
|
138
|
+
:type validator: Validator
|
|
139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
140
|
+
number provided, it will be total request
|
|
141
|
+
timeout. It can also be a pair (tuple) of
|
|
142
|
+
(connection, read) timeouts.
|
|
143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
145
|
+
request; this effectively ignores the
|
|
146
|
+
authentication in the spec for a single request.
|
|
147
|
+
:type _request_auth: dict, optional
|
|
148
|
+
:param _content_type: force content-type for the request.
|
|
149
|
+
:type _content_type: str, Optional
|
|
150
|
+
:param _headers: set to override the headers for a single
|
|
151
|
+
request; this effectively ignores the headers
|
|
152
|
+
in the spec for a single request.
|
|
153
|
+
:type _headers: dict, optional
|
|
154
|
+
:param _host_index: set to override the host_index for a single
|
|
155
|
+
request; this effectively ignores the host_index
|
|
156
|
+
in the spec for a single request.
|
|
157
|
+
:type _host_index: int, optional
|
|
158
|
+
:return: Returns the result object.
|
|
159
|
+
""" # noqa: E501
|
|
160
|
+
|
|
161
|
+
_param = self._create_validator_serialize(
|
|
162
|
+
organization_id=organization_id,
|
|
163
|
+
validator=validator,
|
|
164
|
+
_request_auth=_request_auth,
|
|
165
|
+
_content_type=_content_type,
|
|
166
|
+
_headers=_headers,
|
|
167
|
+
_host_index=_host_index
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
171
|
+
'201': "Validator",
|
|
172
|
+
'400': None,
|
|
173
|
+
}
|
|
174
|
+
response_data = self.api_client.call_api(
|
|
175
|
+
*_param,
|
|
176
|
+
_request_timeout=_request_timeout
|
|
177
|
+
)
|
|
178
|
+
response_data.read()
|
|
179
|
+
return self.api_client.response_deserialize(
|
|
180
|
+
response_data=response_data,
|
|
181
|
+
response_types_map=_response_types_map,
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
@validate_call
|
|
186
|
+
def create_validator_without_preload_content(
|
|
187
|
+
self,
|
|
188
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
189
|
+
validator: Annotated[Validator, Field(description="the Validator to create")],
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""Register a new validator
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
:param organization_id: the Organization identifier (required)
|
|
207
|
+
:type organization_id: str
|
|
208
|
+
:param validator: the Validator to create (required)
|
|
209
|
+
:type validator: Validator
|
|
210
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
211
|
+
number provided, it will be total request
|
|
212
|
+
timeout. It can also be a pair (tuple) of
|
|
213
|
+
(connection, read) timeouts.
|
|
214
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
215
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
216
|
+
request; this effectively ignores the
|
|
217
|
+
authentication in the spec for a single request.
|
|
218
|
+
:type _request_auth: dict, optional
|
|
219
|
+
:param _content_type: force content-type for the request.
|
|
220
|
+
:type _content_type: str, Optional
|
|
221
|
+
:param _headers: set to override the headers for a single
|
|
222
|
+
request; this effectively ignores the headers
|
|
223
|
+
in the spec for a single request.
|
|
224
|
+
:type _headers: dict, optional
|
|
225
|
+
:param _host_index: set to override the host_index for a single
|
|
226
|
+
request; this effectively ignores the host_index
|
|
227
|
+
in the spec for a single request.
|
|
228
|
+
:type _host_index: int, optional
|
|
229
|
+
:return: Returns the result object.
|
|
230
|
+
""" # noqa: E501
|
|
231
|
+
|
|
232
|
+
_param = self._create_validator_serialize(
|
|
233
|
+
organization_id=organization_id,
|
|
234
|
+
validator=validator,
|
|
235
|
+
_request_auth=_request_auth,
|
|
236
|
+
_content_type=_content_type,
|
|
237
|
+
_headers=_headers,
|
|
238
|
+
_host_index=_host_index
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
242
|
+
'201': "Validator",
|
|
243
|
+
'400': None,
|
|
244
|
+
}
|
|
245
|
+
response_data = self.api_client.call_api(
|
|
246
|
+
*_param,
|
|
247
|
+
_request_timeout=_request_timeout
|
|
248
|
+
)
|
|
249
|
+
return response_data.response
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
def _create_validator_serialize(
|
|
253
|
+
self,
|
|
254
|
+
organization_id,
|
|
255
|
+
validator,
|
|
256
|
+
_request_auth,
|
|
257
|
+
_content_type,
|
|
258
|
+
_headers,
|
|
259
|
+
_host_index,
|
|
260
|
+
) -> RequestSerialized:
|
|
261
|
+
|
|
262
|
+
_host = None
|
|
263
|
+
|
|
264
|
+
_collection_formats: Dict[str, str] = {
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
_path_params: Dict[str, str] = {}
|
|
268
|
+
_query_params: List[Tuple[str, str]] = []
|
|
269
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
270
|
+
_form_params: List[Tuple[str, str]] = []
|
|
271
|
+
_files: Dict[str, str] = {}
|
|
272
|
+
_body_params: Optional[bytes] = None
|
|
273
|
+
|
|
274
|
+
# process the path parameters
|
|
275
|
+
if organization_id is not None:
|
|
276
|
+
_path_params['organization_id'] = organization_id
|
|
277
|
+
# process the query parameters
|
|
278
|
+
# process the header parameters
|
|
279
|
+
# process the form parameters
|
|
280
|
+
# process the body parameter
|
|
281
|
+
if validator is not None:
|
|
282
|
+
_body_params = validator
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# set the HTTP header `Accept`
|
|
286
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
287
|
+
[
|
|
288
|
+
'application/json'
|
|
289
|
+
]
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
# set the HTTP header `Content-Type`
|
|
293
|
+
if _content_type:
|
|
294
|
+
_header_params['Content-Type'] = _content_type
|
|
295
|
+
else:
|
|
296
|
+
_default_content_type = (
|
|
297
|
+
self.api_client.select_header_content_type(
|
|
298
|
+
[
|
|
299
|
+
'application/json',
|
|
300
|
+
'application/yaml'
|
|
301
|
+
]
|
|
302
|
+
)
|
|
303
|
+
)
|
|
304
|
+
if _default_content_type is not None:
|
|
305
|
+
_header_params['Content-Type'] = _default_content_type
|
|
306
|
+
|
|
307
|
+
# authentication setting
|
|
308
|
+
_auth_settings: List[str] = [
|
|
309
|
+
'oAuth2AuthCode'
|
|
310
|
+
]
|
|
311
|
+
|
|
312
|
+
return self.api_client.param_serialize(
|
|
313
|
+
method='POST',
|
|
314
|
+
resource_path='/organizations/{organization_id}/datasets/validators',
|
|
315
|
+
path_params=_path_params,
|
|
316
|
+
query_params=_query_params,
|
|
317
|
+
header_params=_header_params,
|
|
318
|
+
body=_body_params,
|
|
319
|
+
post_params=_form_params,
|
|
320
|
+
files=_files,
|
|
321
|
+
auth_settings=_auth_settings,
|
|
322
|
+
collection_formats=_collection_formats,
|
|
323
|
+
_host=_host,
|
|
324
|
+
_request_auth=_request_auth
|
|
325
|
+
)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
@validate_call
|
|
331
|
+
def create_validator_run(
|
|
332
|
+
self,
|
|
333
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
334
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
335
|
+
validator_run: Annotated[ValidatorRun, Field(description="the Validator Run to create")],
|
|
336
|
+
_request_timeout: Union[
|
|
337
|
+
None,
|
|
338
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
339
|
+
Tuple[
|
|
340
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
341
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
342
|
+
]
|
|
343
|
+
] = None,
|
|
344
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
345
|
+
_content_type: Optional[StrictStr] = None,
|
|
346
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
347
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
348
|
+
) -> ValidatorRun:
|
|
349
|
+
"""Register a new validator run
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
:param organization_id: the Organization identifier (required)
|
|
353
|
+
:type organization_id: str
|
|
354
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
355
|
+
:type validator_id: str
|
|
356
|
+
:param validator_run: the Validator Run to create (required)
|
|
357
|
+
:type validator_run: ValidatorRun
|
|
358
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
359
|
+
number provided, it will be total request
|
|
360
|
+
timeout. It can also be a pair (tuple) of
|
|
361
|
+
(connection, read) timeouts.
|
|
362
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
363
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
364
|
+
request; this effectively ignores the
|
|
365
|
+
authentication in the spec for a single request.
|
|
366
|
+
:type _request_auth: dict, optional
|
|
367
|
+
:param _content_type: force content-type for the request.
|
|
368
|
+
:type _content_type: str, Optional
|
|
369
|
+
:param _headers: set to override the headers for a single
|
|
370
|
+
request; this effectively ignores the headers
|
|
371
|
+
in the spec for a single request.
|
|
372
|
+
:type _headers: dict, optional
|
|
373
|
+
:param _host_index: set to override the host_index for a single
|
|
374
|
+
request; this effectively ignores the host_index
|
|
375
|
+
in the spec for a single request.
|
|
376
|
+
:type _host_index: int, optional
|
|
377
|
+
:return: Returns the result object.
|
|
378
|
+
""" # noqa: E501
|
|
379
|
+
|
|
380
|
+
_param = self._create_validator_run_serialize(
|
|
381
|
+
organization_id=organization_id,
|
|
382
|
+
validator_id=validator_id,
|
|
383
|
+
validator_run=validator_run,
|
|
384
|
+
_request_auth=_request_auth,
|
|
385
|
+
_content_type=_content_type,
|
|
386
|
+
_headers=_headers,
|
|
387
|
+
_host_index=_host_index
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
391
|
+
'201': "ValidatorRun",
|
|
392
|
+
'400': None,
|
|
393
|
+
}
|
|
394
|
+
response_data = self.api_client.call_api(
|
|
395
|
+
*_param,
|
|
396
|
+
_request_timeout=_request_timeout
|
|
397
|
+
)
|
|
398
|
+
response_data.read()
|
|
399
|
+
return self.api_client.response_deserialize(
|
|
400
|
+
response_data=response_data,
|
|
401
|
+
response_types_map=_response_types_map,
|
|
402
|
+
).data
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
@validate_call
|
|
406
|
+
def create_validator_run_with_http_info(
|
|
407
|
+
self,
|
|
408
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
409
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
410
|
+
validator_run: Annotated[ValidatorRun, Field(description="the Validator Run to create")],
|
|
411
|
+
_request_timeout: Union[
|
|
412
|
+
None,
|
|
413
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
414
|
+
Tuple[
|
|
415
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
416
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
417
|
+
]
|
|
418
|
+
] = None,
|
|
419
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
420
|
+
_content_type: Optional[StrictStr] = None,
|
|
421
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
422
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
423
|
+
) -> ApiResponse[ValidatorRun]:
|
|
424
|
+
"""Register a new validator run
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
:param organization_id: the Organization identifier (required)
|
|
428
|
+
:type organization_id: str
|
|
429
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
430
|
+
:type validator_id: str
|
|
431
|
+
:param validator_run: the Validator Run to create (required)
|
|
432
|
+
:type validator_run: ValidatorRun
|
|
433
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
434
|
+
number provided, it will be total request
|
|
435
|
+
timeout. It can also be a pair (tuple) of
|
|
436
|
+
(connection, read) timeouts.
|
|
437
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
438
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
439
|
+
request; this effectively ignores the
|
|
440
|
+
authentication in the spec for a single request.
|
|
441
|
+
:type _request_auth: dict, optional
|
|
442
|
+
:param _content_type: force content-type for the request.
|
|
443
|
+
:type _content_type: str, Optional
|
|
444
|
+
:param _headers: set to override the headers for a single
|
|
445
|
+
request; this effectively ignores the headers
|
|
446
|
+
in the spec for a single request.
|
|
447
|
+
:type _headers: dict, optional
|
|
448
|
+
:param _host_index: set to override the host_index for a single
|
|
449
|
+
request; this effectively ignores the host_index
|
|
450
|
+
in the spec for a single request.
|
|
451
|
+
:type _host_index: int, optional
|
|
452
|
+
:return: Returns the result object.
|
|
453
|
+
""" # noqa: E501
|
|
454
|
+
|
|
455
|
+
_param = self._create_validator_run_serialize(
|
|
456
|
+
organization_id=organization_id,
|
|
457
|
+
validator_id=validator_id,
|
|
458
|
+
validator_run=validator_run,
|
|
459
|
+
_request_auth=_request_auth,
|
|
460
|
+
_content_type=_content_type,
|
|
461
|
+
_headers=_headers,
|
|
462
|
+
_host_index=_host_index
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
466
|
+
'201': "ValidatorRun",
|
|
467
|
+
'400': None,
|
|
468
|
+
}
|
|
469
|
+
response_data = self.api_client.call_api(
|
|
470
|
+
*_param,
|
|
471
|
+
_request_timeout=_request_timeout
|
|
472
|
+
)
|
|
473
|
+
response_data.read()
|
|
474
|
+
return self.api_client.response_deserialize(
|
|
475
|
+
response_data=response_data,
|
|
476
|
+
response_types_map=_response_types_map,
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
@validate_call
|
|
481
|
+
def create_validator_run_without_preload_content(
|
|
482
|
+
self,
|
|
483
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
484
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
485
|
+
validator_run: Annotated[ValidatorRun, Field(description="the Validator Run to create")],
|
|
486
|
+
_request_timeout: Union[
|
|
487
|
+
None,
|
|
488
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
489
|
+
Tuple[
|
|
490
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
491
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
492
|
+
]
|
|
493
|
+
] = None,
|
|
494
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
495
|
+
_content_type: Optional[StrictStr] = None,
|
|
496
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
497
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
498
|
+
) -> RESTResponseType:
|
|
499
|
+
"""Register a new validator run
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
:param organization_id: the Organization identifier (required)
|
|
503
|
+
:type organization_id: str
|
|
504
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
505
|
+
:type validator_id: str
|
|
506
|
+
:param validator_run: the Validator Run to create (required)
|
|
507
|
+
:type validator_run: ValidatorRun
|
|
508
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
509
|
+
number provided, it will be total request
|
|
510
|
+
timeout. It can also be a pair (tuple) of
|
|
511
|
+
(connection, read) timeouts.
|
|
512
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
513
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
514
|
+
request; this effectively ignores the
|
|
515
|
+
authentication in the spec for a single request.
|
|
516
|
+
:type _request_auth: dict, optional
|
|
517
|
+
:param _content_type: force content-type for the request.
|
|
518
|
+
:type _content_type: str, Optional
|
|
519
|
+
:param _headers: set to override the headers for a single
|
|
520
|
+
request; this effectively ignores the headers
|
|
521
|
+
in the spec for a single request.
|
|
522
|
+
:type _headers: dict, optional
|
|
523
|
+
:param _host_index: set to override the host_index for a single
|
|
524
|
+
request; this effectively ignores the host_index
|
|
525
|
+
in the spec for a single request.
|
|
526
|
+
:type _host_index: int, optional
|
|
527
|
+
:return: Returns the result object.
|
|
528
|
+
""" # noqa: E501
|
|
529
|
+
|
|
530
|
+
_param = self._create_validator_run_serialize(
|
|
531
|
+
organization_id=organization_id,
|
|
532
|
+
validator_id=validator_id,
|
|
533
|
+
validator_run=validator_run,
|
|
534
|
+
_request_auth=_request_auth,
|
|
535
|
+
_content_type=_content_type,
|
|
536
|
+
_headers=_headers,
|
|
537
|
+
_host_index=_host_index
|
|
538
|
+
)
|
|
539
|
+
|
|
540
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
541
|
+
'201': "ValidatorRun",
|
|
542
|
+
'400': None,
|
|
543
|
+
}
|
|
544
|
+
response_data = self.api_client.call_api(
|
|
545
|
+
*_param,
|
|
546
|
+
_request_timeout=_request_timeout
|
|
547
|
+
)
|
|
548
|
+
return response_data.response
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
def _create_validator_run_serialize(
|
|
552
|
+
self,
|
|
553
|
+
organization_id,
|
|
554
|
+
validator_id,
|
|
555
|
+
validator_run,
|
|
556
|
+
_request_auth,
|
|
557
|
+
_content_type,
|
|
558
|
+
_headers,
|
|
559
|
+
_host_index,
|
|
560
|
+
) -> RequestSerialized:
|
|
561
|
+
|
|
562
|
+
_host = None
|
|
563
|
+
|
|
564
|
+
_collection_formats: Dict[str, str] = {
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
_path_params: Dict[str, str] = {}
|
|
568
|
+
_query_params: List[Tuple[str, str]] = []
|
|
569
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
570
|
+
_form_params: List[Tuple[str, str]] = []
|
|
571
|
+
_files: Dict[str, str] = {}
|
|
572
|
+
_body_params: Optional[bytes] = None
|
|
573
|
+
|
|
574
|
+
# process the path parameters
|
|
575
|
+
if organization_id is not None:
|
|
576
|
+
_path_params['organization_id'] = organization_id
|
|
577
|
+
if validator_id is not None:
|
|
578
|
+
_path_params['validator_id'] = validator_id
|
|
579
|
+
# process the query parameters
|
|
580
|
+
# process the header parameters
|
|
581
|
+
# process the form parameters
|
|
582
|
+
# process the body parameter
|
|
583
|
+
if validator_run is not None:
|
|
584
|
+
_body_params = validator_run
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
# set the HTTP header `Accept`
|
|
588
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
589
|
+
[
|
|
590
|
+
'application/json'
|
|
591
|
+
]
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
# set the HTTP header `Content-Type`
|
|
595
|
+
if _content_type:
|
|
596
|
+
_header_params['Content-Type'] = _content_type
|
|
597
|
+
else:
|
|
598
|
+
_default_content_type = (
|
|
599
|
+
self.api_client.select_header_content_type(
|
|
600
|
+
[
|
|
601
|
+
'application/json',
|
|
602
|
+
'application/yaml'
|
|
603
|
+
]
|
|
604
|
+
)
|
|
605
|
+
)
|
|
606
|
+
if _default_content_type is not None:
|
|
607
|
+
_header_params['Content-Type'] = _default_content_type
|
|
608
|
+
|
|
609
|
+
# authentication setting
|
|
610
|
+
_auth_settings: List[str] = [
|
|
611
|
+
'oAuth2AuthCode'
|
|
612
|
+
]
|
|
613
|
+
|
|
614
|
+
return self.api_client.param_serialize(
|
|
615
|
+
method='POST',
|
|
616
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}/history',
|
|
617
|
+
path_params=_path_params,
|
|
618
|
+
query_params=_query_params,
|
|
619
|
+
header_params=_header_params,
|
|
620
|
+
body=_body_params,
|
|
621
|
+
post_params=_form_params,
|
|
622
|
+
files=_files,
|
|
623
|
+
auth_settings=_auth_settings,
|
|
624
|
+
collection_formats=_collection_formats,
|
|
625
|
+
_host=_host,
|
|
626
|
+
_request_auth=_request_auth
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
@validate_call
|
|
633
|
+
def delete_validator(
|
|
634
|
+
self,
|
|
635
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
636
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
637
|
+
_request_timeout: Union[
|
|
638
|
+
None,
|
|
639
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
640
|
+
Tuple[
|
|
641
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
642
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
643
|
+
]
|
|
644
|
+
] = None,
|
|
645
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
646
|
+
_content_type: Optional[StrictStr] = None,
|
|
647
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
648
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
649
|
+
) -> None:
|
|
650
|
+
"""Delete a validator
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
:param organization_id: the Organization identifier (required)
|
|
654
|
+
:type organization_id: str
|
|
655
|
+
:param validator_id: the Validator identifier (required)
|
|
656
|
+
:type validator_id: str
|
|
657
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
658
|
+
number provided, it will be total request
|
|
659
|
+
timeout. It can also be a pair (tuple) of
|
|
660
|
+
(connection, read) timeouts.
|
|
661
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
662
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
663
|
+
request; this effectively ignores the
|
|
664
|
+
authentication in the spec for a single request.
|
|
665
|
+
:type _request_auth: dict, optional
|
|
666
|
+
:param _content_type: force content-type for the request.
|
|
667
|
+
:type _content_type: str, Optional
|
|
668
|
+
:param _headers: set to override the headers for a single
|
|
669
|
+
request; this effectively ignores the headers
|
|
670
|
+
in the spec for a single request.
|
|
671
|
+
:type _headers: dict, optional
|
|
672
|
+
:param _host_index: set to override the host_index for a single
|
|
673
|
+
request; this effectively ignores the host_index
|
|
674
|
+
in the spec for a single request.
|
|
675
|
+
:type _host_index: int, optional
|
|
676
|
+
:return: Returns the result object.
|
|
677
|
+
""" # noqa: E501
|
|
678
|
+
|
|
679
|
+
_param = self._delete_validator_serialize(
|
|
680
|
+
organization_id=organization_id,
|
|
681
|
+
validator_id=validator_id,
|
|
682
|
+
_request_auth=_request_auth,
|
|
683
|
+
_content_type=_content_type,
|
|
684
|
+
_headers=_headers,
|
|
685
|
+
_host_index=_host_index
|
|
686
|
+
)
|
|
687
|
+
|
|
688
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
689
|
+
'204': None,
|
|
690
|
+
'404': None,
|
|
691
|
+
}
|
|
692
|
+
response_data = self.api_client.call_api(
|
|
693
|
+
*_param,
|
|
694
|
+
_request_timeout=_request_timeout
|
|
695
|
+
)
|
|
696
|
+
response_data.read()
|
|
697
|
+
return self.api_client.response_deserialize(
|
|
698
|
+
response_data=response_data,
|
|
699
|
+
response_types_map=_response_types_map,
|
|
700
|
+
).data
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
@validate_call
|
|
704
|
+
def delete_validator_with_http_info(
|
|
705
|
+
self,
|
|
706
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
707
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
708
|
+
_request_timeout: Union[
|
|
709
|
+
None,
|
|
710
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
711
|
+
Tuple[
|
|
712
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
713
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
714
|
+
]
|
|
715
|
+
] = None,
|
|
716
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
717
|
+
_content_type: Optional[StrictStr] = None,
|
|
718
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
719
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
720
|
+
) -> ApiResponse[None]:
|
|
721
|
+
"""Delete a validator
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
:param organization_id: the Organization identifier (required)
|
|
725
|
+
:type organization_id: str
|
|
726
|
+
:param validator_id: the Validator identifier (required)
|
|
727
|
+
:type validator_id: str
|
|
728
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
729
|
+
number provided, it will be total request
|
|
730
|
+
timeout. It can also be a pair (tuple) of
|
|
731
|
+
(connection, read) timeouts.
|
|
732
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
733
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
734
|
+
request; this effectively ignores the
|
|
735
|
+
authentication in the spec for a single request.
|
|
736
|
+
:type _request_auth: dict, optional
|
|
737
|
+
:param _content_type: force content-type for the request.
|
|
738
|
+
:type _content_type: str, Optional
|
|
739
|
+
:param _headers: set to override the headers for a single
|
|
740
|
+
request; this effectively ignores the headers
|
|
741
|
+
in the spec for a single request.
|
|
742
|
+
:type _headers: dict, optional
|
|
743
|
+
:param _host_index: set to override the host_index for a single
|
|
744
|
+
request; this effectively ignores the host_index
|
|
745
|
+
in the spec for a single request.
|
|
746
|
+
:type _host_index: int, optional
|
|
747
|
+
:return: Returns the result object.
|
|
748
|
+
""" # noqa: E501
|
|
749
|
+
|
|
750
|
+
_param = self._delete_validator_serialize(
|
|
751
|
+
organization_id=organization_id,
|
|
752
|
+
validator_id=validator_id,
|
|
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
|
+
'204': None,
|
|
761
|
+
'404': None,
|
|
762
|
+
}
|
|
763
|
+
response_data = self.api_client.call_api(
|
|
764
|
+
*_param,
|
|
765
|
+
_request_timeout=_request_timeout
|
|
766
|
+
)
|
|
767
|
+
response_data.read()
|
|
768
|
+
return self.api_client.response_deserialize(
|
|
769
|
+
response_data=response_data,
|
|
770
|
+
response_types_map=_response_types_map,
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
@validate_call
|
|
775
|
+
def delete_validator_without_preload_content(
|
|
776
|
+
self,
|
|
777
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
778
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
779
|
+
_request_timeout: Union[
|
|
780
|
+
None,
|
|
781
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
782
|
+
Tuple[
|
|
783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
784
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
785
|
+
]
|
|
786
|
+
] = None,
|
|
787
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
788
|
+
_content_type: Optional[StrictStr] = None,
|
|
789
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
790
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
791
|
+
) -> RESTResponseType:
|
|
792
|
+
"""Delete a validator
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
:param organization_id: the Organization identifier (required)
|
|
796
|
+
:type organization_id: str
|
|
797
|
+
:param validator_id: the Validator identifier (required)
|
|
798
|
+
:type validator_id: str
|
|
799
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
800
|
+
number provided, it will be total request
|
|
801
|
+
timeout. It can also be a pair (tuple) of
|
|
802
|
+
(connection, read) timeouts.
|
|
803
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
804
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
805
|
+
request; this effectively ignores the
|
|
806
|
+
authentication in the spec for a single request.
|
|
807
|
+
:type _request_auth: dict, optional
|
|
808
|
+
:param _content_type: force content-type for the request.
|
|
809
|
+
:type _content_type: str, Optional
|
|
810
|
+
:param _headers: set to override the headers for a single
|
|
811
|
+
request; this effectively ignores the headers
|
|
812
|
+
in the spec for a single request.
|
|
813
|
+
:type _headers: dict, optional
|
|
814
|
+
:param _host_index: set to override the host_index for a single
|
|
815
|
+
request; this effectively ignores the host_index
|
|
816
|
+
in the spec for a single request.
|
|
817
|
+
:type _host_index: int, optional
|
|
818
|
+
:return: Returns the result object.
|
|
819
|
+
""" # noqa: E501
|
|
820
|
+
|
|
821
|
+
_param = self._delete_validator_serialize(
|
|
822
|
+
organization_id=organization_id,
|
|
823
|
+
validator_id=validator_id,
|
|
824
|
+
_request_auth=_request_auth,
|
|
825
|
+
_content_type=_content_type,
|
|
826
|
+
_headers=_headers,
|
|
827
|
+
_host_index=_host_index
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
831
|
+
'204': None,
|
|
832
|
+
'404': None,
|
|
833
|
+
}
|
|
834
|
+
response_data = self.api_client.call_api(
|
|
835
|
+
*_param,
|
|
836
|
+
_request_timeout=_request_timeout
|
|
837
|
+
)
|
|
838
|
+
return response_data.response
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
def _delete_validator_serialize(
|
|
842
|
+
self,
|
|
843
|
+
organization_id,
|
|
844
|
+
validator_id,
|
|
845
|
+
_request_auth,
|
|
846
|
+
_content_type,
|
|
847
|
+
_headers,
|
|
848
|
+
_host_index,
|
|
849
|
+
) -> RequestSerialized:
|
|
850
|
+
|
|
851
|
+
_host = None
|
|
852
|
+
|
|
853
|
+
_collection_formats: Dict[str, str] = {
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
_path_params: Dict[str, str] = {}
|
|
857
|
+
_query_params: List[Tuple[str, str]] = []
|
|
858
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
859
|
+
_form_params: List[Tuple[str, str]] = []
|
|
860
|
+
_files: Dict[str, str] = {}
|
|
861
|
+
_body_params: Optional[bytes] = None
|
|
862
|
+
|
|
863
|
+
# process the path parameters
|
|
864
|
+
if organization_id is not None:
|
|
865
|
+
_path_params['organization_id'] = organization_id
|
|
866
|
+
if validator_id is not None:
|
|
867
|
+
_path_params['validator_id'] = validator_id
|
|
868
|
+
# process the query parameters
|
|
869
|
+
# process the header parameters
|
|
870
|
+
# process the form parameters
|
|
871
|
+
# process the body parameter
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
# authentication setting
|
|
877
|
+
_auth_settings: List[str] = [
|
|
878
|
+
'oAuth2AuthCode'
|
|
879
|
+
]
|
|
880
|
+
|
|
881
|
+
return self.api_client.param_serialize(
|
|
882
|
+
method='DELETE',
|
|
883
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}',
|
|
884
|
+
path_params=_path_params,
|
|
885
|
+
query_params=_query_params,
|
|
886
|
+
header_params=_header_params,
|
|
887
|
+
body=_body_params,
|
|
888
|
+
post_params=_form_params,
|
|
889
|
+
files=_files,
|
|
890
|
+
auth_settings=_auth_settings,
|
|
891
|
+
collection_formats=_collection_formats,
|
|
892
|
+
_host=_host,
|
|
893
|
+
_request_auth=_request_auth
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
@validate_call
|
|
900
|
+
def delete_validator_run(
|
|
901
|
+
self,
|
|
902
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
903
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
904
|
+
validatorrun_id: Annotated[StrictStr, Field(description="the Validator Run identifier")],
|
|
905
|
+
_request_timeout: Union[
|
|
906
|
+
None,
|
|
907
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
908
|
+
Tuple[
|
|
909
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
910
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
911
|
+
]
|
|
912
|
+
] = None,
|
|
913
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
914
|
+
_content_type: Optional[StrictStr] = None,
|
|
915
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
916
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
917
|
+
) -> None:
|
|
918
|
+
"""Delete a validator run
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
:param organization_id: the Organization identifier (required)
|
|
922
|
+
:type organization_id: str
|
|
923
|
+
:param validator_id: the Validator identifier (required)
|
|
924
|
+
:type validator_id: str
|
|
925
|
+
:param validatorrun_id: the Validator Run identifier (required)
|
|
926
|
+
:type validatorrun_id: str
|
|
927
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
928
|
+
number provided, it will be total request
|
|
929
|
+
timeout. It can also be a pair (tuple) of
|
|
930
|
+
(connection, read) timeouts.
|
|
931
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
932
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
933
|
+
request; this effectively ignores the
|
|
934
|
+
authentication in the spec for a single request.
|
|
935
|
+
:type _request_auth: dict, optional
|
|
936
|
+
:param _content_type: force content-type for the request.
|
|
937
|
+
:type _content_type: str, Optional
|
|
938
|
+
:param _headers: set to override the headers for a single
|
|
939
|
+
request; this effectively ignores the headers
|
|
940
|
+
in the spec for a single request.
|
|
941
|
+
:type _headers: dict, optional
|
|
942
|
+
:param _host_index: set to override the host_index for a single
|
|
943
|
+
request; this effectively ignores the host_index
|
|
944
|
+
in the spec for a single request.
|
|
945
|
+
:type _host_index: int, optional
|
|
946
|
+
:return: Returns the result object.
|
|
947
|
+
""" # noqa: E501
|
|
948
|
+
|
|
949
|
+
_param = self._delete_validator_run_serialize(
|
|
950
|
+
organization_id=organization_id,
|
|
951
|
+
validator_id=validator_id,
|
|
952
|
+
validatorrun_id=validatorrun_id,
|
|
953
|
+
_request_auth=_request_auth,
|
|
954
|
+
_content_type=_content_type,
|
|
955
|
+
_headers=_headers,
|
|
956
|
+
_host_index=_host_index
|
|
957
|
+
)
|
|
958
|
+
|
|
959
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
960
|
+
'204': None,
|
|
961
|
+
'404': None,
|
|
962
|
+
}
|
|
963
|
+
response_data = self.api_client.call_api(
|
|
964
|
+
*_param,
|
|
965
|
+
_request_timeout=_request_timeout
|
|
966
|
+
)
|
|
967
|
+
response_data.read()
|
|
968
|
+
return self.api_client.response_deserialize(
|
|
969
|
+
response_data=response_data,
|
|
970
|
+
response_types_map=_response_types_map,
|
|
971
|
+
).data
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
@validate_call
|
|
975
|
+
def delete_validator_run_with_http_info(
|
|
976
|
+
self,
|
|
977
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
978
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
979
|
+
validatorrun_id: Annotated[StrictStr, Field(description="the Validator Run identifier")],
|
|
980
|
+
_request_timeout: Union[
|
|
981
|
+
None,
|
|
982
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
983
|
+
Tuple[
|
|
984
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
985
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
986
|
+
]
|
|
987
|
+
] = None,
|
|
988
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
989
|
+
_content_type: Optional[StrictStr] = None,
|
|
990
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
991
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
992
|
+
) -> ApiResponse[None]:
|
|
993
|
+
"""Delete a validator run
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
:param organization_id: the Organization identifier (required)
|
|
997
|
+
:type organization_id: str
|
|
998
|
+
:param validator_id: the Validator identifier (required)
|
|
999
|
+
:type validator_id: str
|
|
1000
|
+
:param validatorrun_id: the Validator Run identifier (required)
|
|
1001
|
+
:type validatorrun_id: str
|
|
1002
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1003
|
+
number provided, it will be total request
|
|
1004
|
+
timeout. It can also be a pair (tuple) of
|
|
1005
|
+
(connection, read) timeouts.
|
|
1006
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1007
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1008
|
+
request; this effectively ignores the
|
|
1009
|
+
authentication in the spec for a single request.
|
|
1010
|
+
:type _request_auth: dict, optional
|
|
1011
|
+
:param _content_type: force content-type for the request.
|
|
1012
|
+
:type _content_type: str, Optional
|
|
1013
|
+
:param _headers: set to override the headers for a single
|
|
1014
|
+
request; this effectively ignores the headers
|
|
1015
|
+
in the spec for a single request.
|
|
1016
|
+
:type _headers: dict, optional
|
|
1017
|
+
:param _host_index: set to override the host_index for a single
|
|
1018
|
+
request; this effectively ignores the host_index
|
|
1019
|
+
in the spec for a single request.
|
|
1020
|
+
:type _host_index: int, optional
|
|
1021
|
+
:return: Returns the result object.
|
|
1022
|
+
""" # noqa: E501
|
|
1023
|
+
|
|
1024
|
+
_param = self._delete_validator_run_serialize(
|
|
1025
|
+
organization_id=organization_id,
|
|
1026
|
+
validator_id=validator_id,
|
|
1027
|
+
validatorrun_id=validatorrun_id,
|
|
1028
|
+
_request_auth=_request_auth,
|
|
1029
|
+
_content_type=_content_type,
|
|
1030
|
+
_headers=_headers,
|
|
1031
|
+
_host_index=_host_index
|
|
1032
|
+
)
|
|
1033
|
+
|
|
1034
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1035
|
+
'204': None,
|
|
1036
|
+
'404': None,
|
|
1037
|
+
}
|
|
1038
|
+
response_data = self.api_client.call_api(
|
|
1039
|
+
*_param,
|
|
1040
|
+
_request_timeout=_request_timeout
|
|
1041
|
+
)
|
|
1042
|
+
response_data.read()
|
|
1043
|
+
return self.api_client.response_deserialize(
|
|
1044
|
+
response_data=response_data,
|
|
1045
|
+
response_types_map=_response_types_map,
|
|
1046
|
+
)
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
@validate_call
|
|
1050
|
+
def delete_validator_run_without_preload_content(
|
|
1051
|
+
self,
|
|
1052
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1053
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
1054
|
+
validatorrun_id: Annotated[StrictStr, Field(description="the Validator Run identifier")],
|
|
1055
|
+
_request_timeout: Union[
|
|
1056
|
+
None,
|
|
1057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1058
|
+
Tuple[
|
|
1059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1061
|
+
]
|
|
1062
|
+
] = None,
|
|
1063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1064
|
+
_content_type: Optional[StrictStr] = None,
|
|
1065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1067
|
+
) -> RESTResponseType:
|
|
1068
|
+
"""Delete a validator run
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
:param organization_id: the Organization identifier (required)
|
|
1072
|
+
:type organization_id: str
|
|
1073
|
+
:param validator_id: the Validator identifier (required)
|
|
1074
|
+
:type validator_id: str
|
|
1075
|
+
:param validatorrun_id: the Validator Run identifier (required)
|
|
1076
|
+
:type validatorrun_id: str
|
|
1077
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1078
|
+
number provided, it will be total request
|
|
1079
|
+
timeout. It can also be a pair (tuple) of
|
|
1080
|
+
(connection, read) timeouts.
|
|
1081
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1082
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1083
|
+
request; this effectively ignores the
|
|
1084
|
+
authentication in the spec for a single request.
|
|
1085
|
+
:type _request_auth: dict, optional
|
|
1086
|
+
:param _content_type: force content-type for the request.
|
|
1087
|
+
:type _content_type: str, Optional
|
|
1088
|
+
:param _headers: set to override the headers for a single
|
|
1089
|
+
request; this effectively ignores the headers
|
|
1090
|
+
in the spec for a single request.
|
|
1091
|
+
:type _headers: dict, optional
|
|
1092
|
+
:param _host_index: set to override the host_index for a single
|
|
1093
|
+
request; this effectively ignores the host_index
|
|
1094
|
+
in the spec for a single request.
|
|
1095
|
+
:type _host_index: int, optional
|
|
1096
|
+
:return: Returns the result object.
|
|
1097
|
+
""" # noqa: E501
|
|
1098
|
+
|
|
1099
|
+
_param = self._delete_validator_run_serialize(
|
|
1100
|
+
organization_id=organization_id,
|
|
1101
|
+
validator_id=validator_id,
|
|
1102
|
+
validatorrun_id=validatorrun_id,
|
|
1103
|
+
_request_auth=_request_auth,
|
|
1104
|
+
_content_type=_content_type,
|
|
1105
|
+
_headers=_headers,
|
|
1106
|
+
_host_index=_host_index
|
|
1107
|
+
)
|
|
1108
|
+
|
|
1109
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1110
|
+
'204': None,
|
|
1111
|
+
'404': None,
|
|
1112
|
+
}
|
|
1113
|
+
response_data = self.api_client.call_api(
|
|
1114
|
+
*_param,
|
|
1115
|
+
_request_timeout=_request_timeout
|
|
1116
|
+
)
|
|
1117
|
+
return response_data.response
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
def _delete_validator_run_serialize(
|
|
1121
|
+
self,
|
|
1122
|
+
organization_id,
|
|
1123
|
+
validator_id,
|
|
1124
|
+
validatorrun_id,
|
|
1125
|
+
_request_auth,
|
|
1126
|
+
_content_type,
|
|
1127
|
+
_headers,
|
|
1128
|
+
_host_index,
|
|
1129
|
+
) -> RequestSerialized:
|
|
1130
|
+
|
|
1131
|
+
_host = None
|
|
1132
|
+
|
|
1133
|
+
_collection_formats: Dict[str, str] = {
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
_path_params: Dict[str, str] = {}
|
|
1137
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1138
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1139
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1140
|
+
_files: Dict[str, str] = {}
|
|
1141
|
+
_body_params: Optional[bytes] = None
|
|
1142
|
+
|
|
1143
|
+
# process the path parameters
|
|
1144
|
+
if organization_id is not None:
|
|
1145
|
+
_path_params['organization_id'] = organization_id
|
|
1146
|
+
if validator_id is not None:
|
|
1147
|
+
_path_params['validator_id'] = validator_id
|
|
1148
|
+
if validatorrun_id is not None:
|
|
1149
|
+
_path_params['validatorrun_id'] = validatorrun_id
|
|
1150
|
+
# process the query parameters
|
|
1151
|
+
# process the header parameters
|
|
1152
|
+
# process the form parameters
|
|
1153
|
+
# process the body parameter
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
# authentication setting
|
|
1159
|
+
_auth_settings: List[str] = [
|
|
1160
|
+
'oAuth2AuthCode'
|
|
1161
|
+
]
|
|
1162
|
+
|
|
1163
|
+
return self.api_client.param_serialize(
|
|
1164
|
+
method='DELETE',
|
|
1165
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}/history/{validatorrun_id}',
|
|
1166
|
+
path_params=_path_params,
|
|
1167
|
+
query_params=_query_params,
|
|
1168
|
+
header_params=_header_params,
|
|
1169
|
+
body=_body_params,
|
|
1170
|
+
post_params=_form_params,
|
|
1171
|
+
files=_files,
|
|
1172
|
+
auth_settings=_auth_settings,
|
|
1173
|
+
collection_formats=_collection_formats,
|
|
1174
|
+
_host=_host,
|
|
1175
|
+
_request_auth=_request_auth
|
|
1176
|
+
)
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
@validate_call
|
|
1182
|
+
def find_all_validator_runs(
|
|
1183
|
+
self,
|
|
1184
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1185
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
1186
|
+
_request_timeout: Union[
|
|
1187
|
+
None,
|
|
1188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1189
|
+
Tuple[
|
|
1190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1191
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1192
|
+
]
|
|
1193
|
+
] = None,
|
|
1194
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1195
|
+
_content_type: Optional[StrictStr] = None,
|
|
1196
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1197
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1198
|
+
) -> List[ValidatorRun]:
|
|
1199
|
+
"""List all Validator Runs
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
:param organization_id: the Organization identifier (required)
|
|
1203
|
+
:type organization_id: str
|
|
1204
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
1205
|
+
:type validator_id: str
|
|
1206
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1207
|
+
number provided, it will be total request
|
|
1208
|
+
timeout. It can also be a pair (tuple) of
|
|
1209
|
+
(connection, read) timeouts.
|
|
1210
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1211
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1212
|
+
request; this effectively ignores the
|
|
1213
|
+
authentication in the spec for a single request.
|
|
1214
|
+
:type _request_auth: dict, optional
|
|
1215
|
+
:param _content_type: force content-type for the request.
|
|
1216
|
+
:type _content_type: str, Optional
|
|
1217
|
+
:param _headers: set to override the headers for a single
|
|
1218
|
+
request; this effectively ignores the headers
|
|
1219
|
+
in the spec for a single request.
|
|
1220
|
+
:type _headers: dict, optional
|
|
1221
|
+
:param _host_index: set to override the host_index for a single
|
|
1222
|
+
request; this effectively ignores the host_index
|
|
1223
|
+
in the spec for a single request.
|
|
1224
|
+
:type _host_index: int, optional
|
|
1225
|
+
:return: Returns the result object.
|
|
1226
|
+
""" # noqa: E501
|
|
1227
|
+
|
|
1228
|
+
_param = self._find_all_validator_runs_serialize(
|
|
1229
|
+
organization_id=organization_id,
|
|
1230
|
+
validator_id=validator_id,
|
|
1231
|
+
_request_auth=_request_auth,
|
|
1232
|
+
_content_type=_content_type,
|
|
1233
|
+
_headers=_headers,
|
|
1234
|
+
_host_index=_host_index
|
|
1235
|
+
)
|
|
1236
|
+
|
|
1237
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1238
|
+
'200': "List[ValidatorRun]",
|
|
1239
|
+
}
|
|
1240
|
+
response_data = self.api_client.call_api(
|
|
1241
|
+
*_param,
|
|
1242
|
+
_request_timeout=_request_timeout
|
|
1243
|
+
)
|
|
1244
|
+
response_data.read()
|
|
1245
|
+
return self.api_client.response_deserialize(
|
|
1246
|
+
response_data=response_data,
|
|
1247
|
+
response_types_map=_response_types_map,
|
|
1248
|
+
).data
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
@validate_call
|
|
1252
|
+
def find_all_validator_runs_with_http_info(
|
|
1253
|
+
self,
|
|
1254
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1255
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
1256
|
+
_request_timeout: Union[
|
|
1257
|
+
None,
|
|
1258
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1259
|
+
Tuple[
|
|
1260
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1261
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1262
|
+
]
|
|
1263
|
+
] = None,
|
|
1264
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1265
|
+
_content_type: Optional[StrictStr] = None,
|
|
1266
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1267
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1268
|
+
) -> ApiResponse[List[ValidatorRun]]:
|
|
1269
|
+
"""List all Validator Runs
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
:param organization_id: the Organization identifier (required)
|
|
1273
|
+
:type organization_id: str
|
|
1274
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
1275
|
+
:type validator_id: str
|
|
1276
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1277
|
+
number provided, it will be total request
|
|
1278
|
+
timeout. It can also be a pair (tuple) of
|
|
1279
|
+
(connection, read) timeouts.
|
|
1280
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1281
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1282
|
+
request; this effectively ignores the
|
|
1283
|
+
authentication in the spec for a single request.
|
|
1284
|
+
:type _request_auth: dict, optional
|
|
1285
|
+
:param _content_type: force content-type for the request.
|
|
1286
|
+
:type _content_type: str, Optional
|
|
1287
|
+
:param _headers: set to override the headers for a single
|
|
1288
|
+
request; this effectively ignores the headers
|
|
1289
|
+
in the spec for a single request.
|
|
1290
|
+
:type _headers: dict, optional
|
|
1291
|
+
:param _host_index: set to override the host_index for a single
|
|
1292
|
+
request; this effectively ignores the host_index
|
|
1293
|
+
in the spec for a single request.
|
|
1294
|
+
:type _host_index: int, optional
|
|
1295
|
+
:return: Returns the result object.
|
|
1296
|
+
""" # noqa: E501
|
|
1297
|
+
|
|
1298
|
+
_param = self._find_all_validator_runs_serialize(
|
|
1299
|
+
organization_id=organization_id,
|
|
1300
|
+
validator_id=validator_id,
|
|
1301
|
+
_request_auth=_request_auth,
|
|
1302
|
+
_content_type=_content_type,
|
|
1303
|
+
_headers=_headers,
|
|
1304
|
+
_host_index=_host_index
|
|
1305
|
+
)
|
|
1306
|
+
|
|
1307
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1308
|
+
'200': "List[ValidatorRun]",
|
|
1309
|
+
}
|
|
1310
|
+
response_data = self.api_client.call_api(
|
|
1311
|
+
*_param,
|
|
1312
|
+
_request_timeout=_request_timeout
|
|
1313
|
+
)
|
|
1314
|
+
response_data.read()
|
|
1315
|
+
return self.api_client.response_deserialize(
|
|
1316
|
+
response_data=response_data,
|
|
1317
|
+
response_types_map=_response_types_map,
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
@validate_call
|
|
1322
|
+
def find_all_validator_runs_without_preload_content(
|
|
1323
|
+
self,
|
|
1324
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1325
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
1326
|
+
_request_timeout: Union[
|
|
1327
|
+
None,
|
|
1328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1329
|
+
Tuple[
|
|
1330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1332
|
+
]
|
|
1333
|
+
] = None,
|
|
1334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1335
|
+
_content_type: Optional[StrictStr] = None,
|
|
1336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1338
|
+
) -> RESTResponseType:
|
|
1339
|
+
"""List all Validator Runs
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
:param organization_id: the Organization identifier (required)
|
|
1343
|
+
:type organization_id: str
|
|
1344
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
1345
|
+
:type validator_id: str
|
|
1346
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1347
|
+
number provided, it will be total request
|
|
1348
|
+
timeout. It can also be a pair (tuple) of
|
|
1349
|
+
(connection, read) timeouts.
|
|
1350
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1351
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1352
|
+
request; this effectively ignores the
|
|
1353
|
+
authentication in the spec for a single request.
|
|
1354
|
+
:type _request_auth: dict, optional
|
|
1355
|
+
:param _content_type: force content-type for the request.
|
|
1356
|
+
:type _content_type: str, Optional
|
|
1357
|
+
:param _headers: set to override the headers for a single
|
|
1358
|
+
request; this effectively ignores the headers
|
|
1359
|
+
in the spec for a single request.
|
|
1360
|
+
:type _headers: dict, optional
|
|
1361
|
+
:param _host_index: set to override the host_index for a single
|
|
1362
|
+
request; this effectively ignores the host_index
|
|
1363
|
+
in the spec for a single request.
|
|
1364
|
+
:type _host_index: int, optional
|
|
1365
|
+
:return: Returns the result object.
|
|
1366
|
+
""" # noqa: E501
|
|
1367
|
+
|
|
1368
|
+
_param = self._find_all_validator_runs_serialize(
|
|
1369
|
+
organization_id=organization_id,
|
|
1370
|
+
validator_id=validator_id,
|
|
1371
|
+
_request_auth=_request_auth,
|
|
1372
|
+
_content_type=_content_type,
|
|
1373
|
+
_headers=_headers,
|
|
1374
|
+
_host_index=_host_index
|
|
1375
|
+
)
|
|
1376
|
+
|
|
1377
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1378
|
+
'200': "List[ValidatorRun]",
|
|
1379
|
+
}
|
|
1380
|
+
response_data = self.api_client.call_api(
|
|
1381
|
+
*_param,
|
|
1382
|
+
_request_timeout=_request_timeout
|
|
1383
|
+
)
|
|
1384
|
+
return response_data.response
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
def _find_all_validator_runs_serialize(
|
|
1388
|
+
self,
|
|
1389
|
+
organization_id,
|
|
1390
|
+
validator_id,
|
|
1391
|
+
_request_auth,
|
|
1392
|
+
_content_type,
|
|
1393
|
+
_headers,
|
|
1394
|
+
_host_index,
|
|
1395
|
+
) -> RequestSerialized:
|
|
1396
|
+
|
|
1397
|
+
_host = None
|
|
1398
|
+
|
|
1399
|
+
_collection_formats: Dict[str, str] = {
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
_path_params: Dict[str, str] = {}
|
|
1403
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1404
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1405
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1406
|
+
_files: Dict[str, str] = {}
|
|
1407
|
+
_body_params: Optional[bytes] = None
|
|
1408
|
+
|
|
1409
|
+
# process the path parameters
|
|
1410
|
+
if organization_id is not None:
|
|
1411
|
+
_path_params['organization_id'] = organization_id
|
|
1412
|
+
if validator_id is not None:
|
|
1413
|
+
_path_params['validator_id'] = validator_id
|
|
1414
|
+
# process the query parameters
|
|
1415
|
+
# process the header parameters
|
|
1416
|
+
# process the form parameters
|
|
1417
|
+
# process the body parameter
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
# set the HTTP header `Accept`
|
|
1421
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1422
|
+
[
|
|
1423
|
+
'application/json'
|
|
1424
|
+
]
|
|
1425
|
+
)
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
# authentication setting
|
|
1429
|
+
_auth_settings: List[str] = [
|
|
1430
|
+
'oAuth2AuthCode'
|
|
1431
|
+
]
|
|
1432
|
+
|
|
1433
|
+
return self.api_client.param_serialize(
|
|
1434
|
+
method='GET',
|
|
1435
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}/history',
|
|
1436
|
+
path_params=_path_params,
|
|
1437
|
+
query_params=_query_params,
|
|
1438
|
+
header_params=_header_params,
|
|
1439
|
+
body=_body_params,
|
|
1440
|
+
post_params=_form_params,
|
|
1441
|
+
files=_files,
|
|
1442
|
+
auth_settings=_auth_settings,
|
|
1443
|
+
collection_formats=_collection_formats,
|
|
1444
|
+
_host=_host,
|
|
1445
|
+
_request_auth=_request_auth
|
|
1446
|
+
)
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
@validate_call
|
|
1452
|
+
def find_all_validators(
|
|
1453
|
+
self,
|
|
1454
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1455
|
+
_request_timeout: Union[
|
|
1456
|
+
None,
|
|
1457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1458
|
+
Tuple[
|
|
1459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1460
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1461
|
+
]
|
|
1462
|
+
] = None,
|
|
1463
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1464
|
+
_content_type: Optional[StrictStr] = None,
|
|
1465
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1466
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1467
|
+
) -> List[Validator]:
|
|
1468
|
+
"""List all Validators
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
:param organization_id: the Organization identifier (required)
|
|
1472
|
+
:type organization_id: str
|
|
1473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1474
|
+
number provided, it will be total request
|
|
1475
|
+
timeout. It can also be a pair (tuple) of
|
|
1476
|
+
(connection, read) timeouts.
|
|
1477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1479
|
+
request; this effectively ignores the
|
|
1480
|
+
authentication in the spec for a single request.
|
|
1481
|
+
:type _request_auth: dict, optional
|
|
1482
|
+
:param _content_type: force content-type for the request.
|
|
1483
|
+
:type _content_type: str, Optional
|
|
1484
|
+
:param _headers: set to override the headers for a single
|
|
1485
|
+
request; this effectively ignores the headers
|
|
1486
|
+
in the spec for a single request.
|
|
1487
|
+
:type _headers: dict, optional
|
|
1488
|
+
:param _host_index: set to override the host_index for a single
|
|
1489
|
+
request; this effectively ignores the host_index
|
|
1490
|
+
in the spec for a single request.
|
|
1491
|
+
:type _host_index: int, optional
|
|
1492
|
+
:return: Returns the result object.
|
|
1493
|
+
""" # noqa: E501
|
|
1494
|
+
|
|
1495
|
+
_param = self._find_all_validators_serialize(
|
|
1496
|
+
organization_id=organization_id,
|
|
1497
|
+
_request_auth=_request_auth,
|
|
1498
|
+
_content_type=_content_type,
|
|
1499
|
+
_headers=_headers,
|
|
1500
|
+
_host_index=_host_index
|
|
1501
|
+
)
|
|
1502
|
+
|
|
1503
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1504
|
+
'200': "List[Validator]",
|
|
1505
|
+
}
|
|
1506
|
+
response_data = self.api_client.call_api(
|
|
1507
|
+
*_param,
|
|
1508
|
+
_request_timeout=_request_timeout
|
|
1509
|
+
)
|
|
1510
|
+
response_data.read()
|
|
1511
|
+
return self.api_client.response_deserialize(
|
|
1512
|
+
response_data=response_data,
|
|
1513
|
+
response_types_map=_response_types_map,
|
|
1514
|
+
).data
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
@validate_call
|
|
1518
|
+
def find_all_validators_with_http_info(
|
|
1519
|
+
self,
|
|
1520
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1521
|
+
_request_timeout: Union[
|
|
1522
|
+
None,
|
|
1523
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1524
|
+
Tuple[
|
|
1525
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1526
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1527
|
+
]
|
|
1528
|
+
] = None,
|
|
1529
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1530
|
+
_content_type: Optional[StrictStr] = None,
|
|
1531
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1532
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1533
|
+
) -> ApiResponse[List[Validator]]:
|
|
1534
|
+
"""List all Validators
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
:param organization_id: the Organization identifier (required)
|
|
1538
|
+
:type organization_id: str
|
|
1539
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1540
|
+
number provided, it will be total request
|
|
1541
|
+
timeout. It can also be a pair (tuple) of
|
|
1542
|
+
(connection, read) timeouts.
|
|
1543
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1544
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1545
|
+
request; this effectively ignores the
|
|
1546
|
+
authentication in the spec for a single request.
|
|
1547
|
+
:type _request_auth: dict, optional
|
|
1548
|
+
:param _content_type: force content-type for the request.
|
|
1549
|
+
:type _content_type: str, Optional
|
|
1550
|
+
:param _headers: set to override the headers for a single
|
|
1551
|
+
request; this effectively ignores the headers
|
|
1552
|
+
in the spec for a single request.
|
|
1553
|
+
:type _headers: dict, optional
|
|
1554
|
+
:param _host_index: set to override the host_index for a single
|
|
1555
|
+
request; this effectively ignores the host_index
|
|
1556
|
+
in the spec for a single request.
|
|
1557
|
+
:type _host_index: int, optional
|
|
1558
|
+
:return: Returns the result object.
|
|
1559
|
+
""" # noqa: E501
|
|
1560
|
+
|
|
1561
|
+
_param = self._find_all_validators_serialize(
|
|
1562
|
+
organization_id=organization_id,
|
|
1563
|
+
_request_auth=_request_auth,
|
|
1564
|
+
_content_type=_content_type,
|
|
1565
|
+
_headers=_headers,
|
|
1566
|
+
_host_index=_host_index
|
|
1567
|
+
)
|
|
1568
|
+
|
|
1569
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1570
|
+
'200': "List[Validator]",
|
|
1571
|
+
}
|
|
1572
|
+
response_data = self.api_client.call_api(
|
|
1573
|
+
*_param,
|
|
1574
|
+
_request_timeout=_request_timeout
|
|
1575
|
+
)
|
|
1576
|
+
response_data.read()
|
|
1577
|
+
return self.api_client.response_deserialize(
|
|
1578
|
+
response_data=response_data,
|
|
1579
|
+
response_types_map=_response_types_map,
|
|
1580
|
+
)
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
@validate_call
|
|
1584
|
+
def find_all_validators_without_preload_content(
|
|
1585
|
+
self,
|
|
1586
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1587
|
+
_request_timeout: Union[
|
|
1588
|
+
None,
|
|
1589
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1590
|
+
Tuple[
|
|
1591
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1592
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1593
|
+
]
|
|
1594
|
+
] = None,
|
|
1595
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1596
|
+
_content_type: Optional[StrictStr] = None,
|
|
1597
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1598
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1599
|
+
) -> RESTResponseType:
|
|
1600
|
+
"""List all Validators
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
:param organization_id: the Organization identifier (required)
|
|
1604
|
+
:type organization_id: str
|
|
1605
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1606
|
+
number provided, it will be total request
|
|
1607
|
+
timeout. It can also be a pair (tuple) of
|
|
1608
|
+
(connection, read) timeouts.
|
|
1609
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1610
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1611
|
+
request; this effectively ignores the
|
|
1612
|
+
authentication in the spec for a single request.
|
|
1613
|
+
:type _request_auth: dict, optional
|
|
1614
|
+
:param _content_type: force content-type for the request.
|
|
1615
|
+
:type _content_type: str, Optional
|
|
1616
|
+
:param _headers: set to override the headers for a single
|
|
1617
|
+
request; this effectively ignores the headers
|
|
1618
|
+
in the spec for a single request.
|
|
1619
|
+
:type _headers: dict, optional
|
|
1620
|
+
:param _host_index: set to override the host_index for a single
|
|
1621
|
+
request; this effectively ignores the host_index
|
|
1622
|
+
in the spec for a single request.
|
|
1623
|
+
:type _host_index: int, optional
|
|
1624
|
+
:return: Returns the result object.
|
|
1625
|
+
""" # noqa: E501
|
|
1626
|
+
|
|
1627
|
+
_param = self._find_all_validators_serialize(
|
|
1628
|
+
organization_id=organization_id,
|
|
1629
|
+
_request_auth=_request_auth,
|
|
1630
|
+
_content_type=_content_type,
|
|
1631
|
+
_headers=_headers,
|
|
1632
|
+
_host_index=_host_index
|
|
1633
|
+
)
|
|
1634
|
+
|
|
1635
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1636
|
+
'200': "List[Validator]",
|
|
1637
|
+
}
|
|
1638
|
+
response_data = self.api_client.call_api(
|
|
1639
|
+
*_param,
|
|
1640
|
+
_request_timeout=_request_timeout
|
|
1641
|
+
)
|
|
1642
|
+
return response_data.response
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
def _find_all_validators_serialize(
|
|
1646
|
+
self,
|
|
1647
|
+
organization_id,
|
|
1648
|
+
_request_auth,
|
|
1649
|
+
_content_type,
|
|
1650
|
+
_headers,
|
|
1651
|
+
_host_index,
|
|
1652
|
+
) -> RequestSerialized:
|
|
1653
|
+
|
|
1654
|
+
_host = None
|
|
1655
|
+
|
|
1656
|
+
_collection_formats: Dict[str, str] = {
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
_path_params: Dict[str, str] = {}
|
|
1660
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1661
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1662
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1663
|
+
_files: Dict[str, str] = {}
|
|
1664
|
+
_body_params: Optional[bytes] = None
|
|
1665
|
+
|
|
1666
|
+
# process the path parameters
|
|
1667
|
+
if organization_id is not None:
|
|
1668
|
+
_path_params['organization_id'] = organization_id
|
|
1669
|
+
# process the query parameters
|
|
1670
|
+
# process the header parameters
|
|
1671
|
+
# process the form parameters
|
|
1672
|
+
# process the body parameter
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
# set the HTTP header `Accept`
|
|
1676
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1677
|
+
[
|
|
1678
|
+
'application/json'
|
|
1679
|
+
]
|
|
1680
|
+
)
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
# authentication setting
|
|
1684
|
+
_auth_settings: List[str] = [
|
|
1685
|
+
'oAuth2AuthCode'
|
|
1686
|
+
]
|
|
1687
|
+
|
|
1688
|
+
return self.api_client.param_serialize(
|
|
1689
|
+
method='GET',
|
|
1690
|
+
resource_path='/organizations/{organization_id}/datasets/validators',
|
|
1691
|
+
path_params=_path_params,
|
|
1692
|
+
query_params=_query_params,
|
|
1693
|
+
header_params=_header_params,
|
|
1694
|
+
body=_body_params,
|
|
1695
|
+
post_params=_form_params,
|
|
1696
|
+
files=_files,
|
|
1697
|
+
auth_settings=_auth_settings,
|
|
1698
|
+
collection_formats=_collection_formats,
|
|
1699
|
+
_host=_host,
|
|
1700
|
+
_request_auth=_request_auth
|
|
1701
|
+
)
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
@validate_call
|
|
1707
|
+
def find_validator_by_id(
|
|
1708
|
+
self,
|
|
1709
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1710
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
1711
|
+
_request_timeout: Union[
|
|
1712
|
+
None,
|
|
1713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1714
|
+
Tuple[
|
|
1715
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1716
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1717
|
+
]
|
|
1718
|
+
] = None,
|
|
1719
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1720
|
+
_content_type: Optional[StrictStr] = None,
|
|
1721
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1722
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1723
|
+
) -> Validator:
|
|
1724
|
+
"""Get the details of a validator
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
:param organization_id: the Organization identifier (required)
|
|
1728
|
+
:type organization_id: str
|
|
1729
|
+
:param validator_id: the Validator identifier (required)
|
|
1730
|
+
:type validator_id: str
|
|
1731
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1732
|
+
number provided, it will be total request
|
|
1733
|
+
timeout. It can also be a pair (tuple) of
|
|
1734
|
+
(connection, read) timeouts.
|
|
1735
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1736
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1737
|
+
request; this effectively ignores the
|
|
1738
|
+
authentication in the spec for a single request.
|
|
1739
|
+
:type _request_auth: dict, optional
|
|
1740
|
+
:param _content_type: force content-type for the request.
|
|
1741
|
+
:type _content_type: str, Optional
|
|
1742
|
+
:param _headers: set to override the headers for a single
|
|
1743
|
+
request; this effectively ignores the headers
|
|
1744
|
+
in the spec for a single request.
|
|
1745
|
+
:type _headers: dict, optional
|
|
1746
|
+
:param _host_index: set to override the host_index for a single
|
|
1747
|
+
request; this effectively ignores the host_index
|
|
1748
|
+
in the spec for a single request.
|
|
1749
|
+
:type _host_index: int, optional
|
|
1750
|
+
:return: Returns the result object.
|
|
1751
|
+
""" # noqa: E501
|
|
1752
|
+
|
|
1753
|
+
_param = self._find_validator_by_id_serialize(
|
|
1754
|
+
organization_id=organization_id,
|
|
1755
|
+
validator_id=validator_id,
|
|
1756
|
+
_request_auth=_request_auth,
|
|
1757
|
+
_content_type=_content_type,
|
|
1758
|
+
_headers=_headers,
|
|
1759
|
+
_host_index=_host_index
|
|
1760
|
+
)
|
|
1761
|
+
|
|
1762
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1763
|
+
'200': "Validator",
|
|
1764
|
+
'404': None,
|
|
1765
|
+
}
|
|
1766
|
+
response_data = self.api_client.call_api(
|
|
1767
|
+
*_param,
|
|
1768
|
+
_request_timeout=_request_timeout
|
|
1769
|
+
)
|
|
1770
|
+
response_data.read()
|
|
1771
|
+
return self.api_client.response_deserialize(
|
|
1772
|
+
response_data=response_data,
|
|
1773
|
+
response_types_map=_response_types_map,
|
|
1774
|
+
).data
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
@validate_call
|
|
1778
|
+
def find_validator_by_id_with_http_info(
|
|
1779
|
+
self,
|
|
1780
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1781
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
1782
|
+
_request_timeout: Union[
|
|
1783
|
+
None,
|
|
1784
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1785
|
+
Tuple[
|
|
1786
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1787
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1788
|
+
]
|
|
1789
|
+
] = None,
|
|
1790
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1791
|
+
_content_type: Optional[StrictStr] = None,
|
|
1792
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1793
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1794
|
+
) -> ApiResponse[Validator]:
|
|
1795
|
+
"""Get the details of a validator
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
:param organization_id: the Organization identifier (required)
|
|
1799
|
+
:type organization_id: str
|
|
1800
|
+
:param validator_id: the Validator identifier (required)
|
|
1801
|
+
:type validator_id: str
|
|
1802
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1803
|
+
number provided, it will be total request
|
|
1804
|
+
timeout. It can also be a pair (tuple) of
|
|
1805
|
+
(connection, read) timeouts.
|
|
1806
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1807
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1808
|
+
request; this effectively ignores the
|
|
1809
|
+
authentication in the spec for a single request.
|
|
1810
|
+
:type _request_auth: dict, optional
|
|
1811
|
+
:param _content_type: force content-type for the request.
|
|
1812
|
+
:type _content_type: str, Optional
|
|
1813
|
+
:param _headers: set to override the headers for a single
|
|
1814
|
+
request; this effectively ignores the headers
|
|
1815
|
+
in the spec for a single request.
|
|
1816
|
+
:type _headers: dict, optional
|
|
1817
|
+
:param _host_index: set to override the host_index for a single
|
|
1818
|
+
request; this effectively ignores the host_index
|
|
1819
|
+
in the spec for a single request.
|
|
1820
|
+
:type _host_index: int, optional
|
|
1821
|
+
:return: Returns the result object.
|
|
1822
|
+
""" # noqa: E501
|
|
1823
|
+
|
|
1824
|
+
_param = self._find_validator_by_id_serialize(
|
|
1825
|
+
organization_id=organization_id,
|
|
1826
|
+
validator_id=validator_id,
|
|
1827
|
+
_request_auth=_request_auth,
|
|
1828
|
+
_content_type=_content_type,
|
|
1829
|
+
_headers=_headers,
|
|
1830
|
+
_host_index=_host_index
|
|
1831
|
+
)
|
|
1832
|
+
|
|
1833
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1834
|
+
'200': "Validator",
|
|
1835
|
+
'404': None,
|
|
1836
|
+
}
|
|
1837
|
+
response_data = self.api_client.call_api(
|
|
1838
|
+
*_param,
|
|
1839
|
+
_request_timeout=_request_timeout
|
|
1840
|
+
)
|
|
1841
|
+
response_data.read()
|
|
1842
|
+
return self.api_client.response_deserialize(
|
|
1843
|
+
response_data=response_data,
|
|
1844
|
+
response_types_map=_response_types_map,
|
|
1845
|
+
)
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
@validate_call
|
|
1849
|
+
def find_validator_by_id_without_preload_content(
|
|
1850
|
+
self,
|
|
1851
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1852
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
1853
|
+
_request_timeout: Union[
|
|
1854
|
+
None,
|
|
1855
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1856
|
+
Tuple[
|
|
1857
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1858
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1859
|
+
]
|
|
1860
|
+
] = None,
|
|
1861
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1862
|
+
_content_type: Optional[StrictStr] = None,
|
|
1863
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1864
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1865
|
+
) -> RESTResponseType:
|
|
1866
|
+
"""Get the details of a validator
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
:param organization_id: the Organization identifier (required)
|
|
1870
|
+
:type organization_id: str
|
|
1871
|
+
:param validator_id: the Validator identifier (required)
|
|
1872
|
+
:type validator_id: str
|
|
1873
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1874
|
+
number provided, it will be total request
|
|
1875
|
+
timeout. It can also be a pair (tuple) of
|
|
1876
|
+
(connection, read) timeouts.
|
|
1877
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1878
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1879
|
+
request; this effectively ignores the
|
|
1880
|
+
authentication in the spec for a single request.
|
|
1881
|
+
:type _request_auth: dict, optional
|
|
1882
|
+
:param _content_type: force content-type for the request.
|
|
1883
|
+
:type _content_type: str, Optional
|
|
1884
|
+
:param _headers: set to override the headers for a single
|
|
1885
|
+
request; this effectively ignores the headers
|
|
1886
|
+
in the spec for a single request.
|
|
1887
|
+
:type _headers: dict, optional
|
|
1888
|
+
:param _host_index: set to override the host_index for a single
|
|
1889
|
+
request; this effectively ignores the host_index
|
|
1890
|
+
in the spec for a single request.
|
|
1891
|
+
:type _host_index: int, optional
|
|
1892
|
+
:return: Returns the result object.
|
|
1893
|
+
""" # noqa: E501
|
|
1894
|
+
|
|
1895
|
+
_param = self._find_validator_by_id_serialize(
|
|
1896
|
+
organization_id=organization_id,
|
|
1897
|
+
validator_id=validator_id,
|
|
1898
|
+
_request_auth=_request_auth,
|
|
1899
|
+
_content_type=_content_type,
|
|
1900
|
+
_headers=_headers,
|
|
1901
|
+
_host_index=_host_index
|
|
1902
|
+
)
|
|
1903
|
+
|
|
1904
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1905
|
+
'200': "Validator",
|
|
1906
|
+
'404': None,
|
|
1907
|
+
}
|
|
1908
|
+
response_data = self.api_client.call_api(
|
|
1909
|
+
*_param,
|
|
1910
|
+
_request_timeout=_request_timeout
|
|
1911
|
+
)
|
|
1912
|
+
return response_data.response
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
def _find_validator_by_id_serialize(
|
|
1916
|
+
self,
|
|
1917
|
+
organization_id,
|
|
1918
|
+
validator_id,
|
|
1919
|
+
_request_auth,
|
|
1920
|
+
_content_type,
|
|
1921
|
+
_headers,
|
|
1922
|
+
_host_index,
|
|
1923
|
+
) -> RequestSerialized:
|
|
1924
|
+
|
|
1925
|
+
_host = None
|
|
1926
|
+
|
|
1927
|
+
_collection_formats: Dict[str, str] = {
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
_path_params: Dict[str, str] = {}
|
|
1931
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1932
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1933
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1934
|
+
_files: Dict[str, str] = {}
|
|
1935
|
+
_body_params: Optional[bytes] = None
|
|
1936
|
+
|
|
1937
|
+
# process the path parameters
|
|
1938
|
+
if organization_id is not None:
|
|
1939
|
+
_path_params['organization_id'] = organization_id
|
|
1940
|
+
if validator_id is not None:
|
|
1941
|
+
_path_params['validator_id'] = validator_id
|
|
1942
|
+
# process the query parameters
|
|
1943
|
+
# process the header parameters
|
|
1944
|
+
# process the form parameters
|
|
1945
|
+
# process the body parameter
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
# set the HTTP header `Accept`
|
|
1949
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1950
|
+
[
|
|
1951
|
+
'application/json'
|
|
1952
|
+
]
|
|
1953
|
+
)
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
# authentication setting
|
|
1957
|
+
_auth_settings: List[str] = [
|
|
1958
|
+
'oAuth2AuthCode'
|
|
1959
|
+
]
|
|
1960
|
+
|
|
1961
|
+
return self.api_client.param_serialize(
|
|
1962
|
+
method='GET',
|
|
1963
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}',
|
|
1964
|
+
path_params=_path_params,
|
|
1965
|
+
query_params=_query_params,
|
|
1966
|
+
header_params=_header_params,
|
|
1967
|
+
body=_body_params,
|
|
1968
|
+
post_params=_form_params,
|
|
1969
|
+
files=_files,
|
|
1970
|
+
auth_settings=_auth_settings,
|
|
1971
|
+
collection_formats=_collection_formats,
|
|
1972
|
+
_host=_host,
|
|
1973
|
+
_request_auth=_request_auth
|
|
1974
|
+
)
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
@validate_call
|
|
1980
|
+
def find_validator_run_by_id(
|
|
1981
|
+
self,
|
|
1982
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
1983
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
1984
|
+
validatorrun_id: Annotated[StrictStr, Field(description="the Validator Run identifier")],
|
|
1985
|
+
_request_timeout: Union[
|
|
1986
|
+
None,
|
|
1987
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1988
|
+
Tuple[
|
|
1989
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1990
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1991
|
+
]
|
|
1992
|
+
] = None,
|
|
1993
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1994
|
+
_content_type: Optional[StrictStr] = None,
|
|
1995
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1996
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1997
|
+
) -> ValidatorRun:
|
|
1998
|
+
"""Get the details of a validator run
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
:param organization_id: the Organization identifier (required)
|
|
2002
|
+
:type organization_id: str
|
|
2003
|
+
:param validator_id: the Validator identifier (required)
|
|
2004
|
+
:type validator_id: str
|
|
2005
|
+
:param validatorrun_id: the Validator Run identifier (required)
|
|
2006
|
+
:type validatorrun_id: str
|
|
2007
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2008
|
+
number provided, it will be total request
|
|
2009
|
+
timeout. It can also be a pair (tuple) of
|
|
2010
|
+
(connection, read) timeouts.
|
|
2011
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2012
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2013
|
+
request; this effectively ignores the
|
|
2014
|
+
authentication in the spec for a single request.
|
|
2015
|
+
:type _request_auth: dict, optional
|
|
2016
|
+
:param _content_type: force content-type for the request.
|
|
2017
|
+
:type _content_type: str, Optional
|
|
2018
|
+
:param _headers: set to override the headers for a single
|
|
2019
|
+
request; this effectively ignores the headers
|
|
2020
|
+
in the spec for a single request.
|
|
2021
|
+
:type _headers: dict, optional
|
|
2022
|
+
:param _host_index: set to override the host_index for a single
|
|
2023
|
+
request; this effectively ignores the host_index
|
|
2024
|
+
in the spec for a single request.
|
|
2025
|
+
:type _host_index: int, optional
|
|
2026
|
+
:return: Returns the result object.
|
|
2027
|
+
""" # noqa: E501
|
|
2028
|
+
|
|
2029
|
+
_param = self._find_validator_run_by_id_serialize(
|
|
2030
|
+
organization_id=organization_id,
|
|
2031
|
+
validator_id=validator_id,
|
|
2032
|
+
validatorrun_id=validatorrun_id,
|
|
2033
|
+
_request_auth=_request_auth,
|
|
2034
|
+
_content_type=_content_type,
|
|
2035
|
+
_headers=_headers,
|
|
2036
|
+
_host_index=_host_index
|
|
2037
|
+
)
|
|
2038
|
+
|
|
2039
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2040
|
+
'200': "ValidatorRun",
|
|
2041
|
+
'404': None,
|
|
2042
|
+
}
|
|
2043
|
+
response_data = self.api_client.call_api(
|
|
2044
|
+
*_param,
|
|
2045
|
+
_request_timeout=_request_timeout
|
|
2046
|
+
)
|
|
2047
|
+
response_data.read()
|
|
2048
|
+
return self.api_client.response_deserialize(
|
|
2049
|
+
response_data=response_data,
|
|
2050
|
+
response_types_map=_response_types_map,
|
|
2051
|
+
).data
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
@validate_call
|
|
2055
|
+
def find_validator_run_by_id_with_http_info(
|
|
2056
|
+
self,
|
|
2057
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2058
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
2059
|
+
validatorrun_id: Annotated[StrictStr, Field(description="the Validator Run identifier")],
|
|
2060
|
+
_request_timeout: Union[
|
|
2061
|
+
None,
|
|
2062
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2063
|
+
Tuple[
|
|
2064
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2065
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2066
|
+
]
|
|
2067
|
+
] = None,
|
|
2068
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2069
|
+
_content_type: Optional[StrictStr] = None,
|
|
2070
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2071
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2072
|
+
) -> ApiResponse[ValidatorRun]:
|
|
2073
|
+
"""Get the details of a validator run
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
:param organization_id: the Organization identifier (required)
|
|
2077
|
+
:type organization_id: str
|
|
2078
|
+
:param validator_id: the Validator identifier (required)
|
|
2079
|
+
:type validator_id: str
|
|
2080
|
+
:param validatorrun_id: the Validator Run identifier (required)
|
|
2081
|
+
:type validatorrun_id: str
|
|
2082
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2083
|
+
number provided, it will be total request
|
|
2084
|
+
timeout. It can also be a pair (tuple) of
|
|
2085
|
+
(connection, read) timeouts.
|
|
2086
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2087
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2088
|
+
request; this effectively ignores the
|
|
2089
|
+
authentication in the spec for a single request.
|
|
2090
|
+
:type _request_auth: dict, optional
|
|
2091
|
+
:param _content_type: force content-type for the request.
|
|
2092
|
+
:type _content_type: str, Optional
|
|
2093
|
+
:param _headers: set to override the headers for a single
|
|
2094
|
+
request; this effectively ignores the headers
|
|
2095
|
+
in the spec for a single request.
|
|
2096
|
+
:type _headers: dict, optional
|
|
2097
|
+
:param _host_index: set to override the host_index for a single
|
|
2098
|
+
request; this effectively ignores the host_index
|
|
2099
|
+
in the spec for a single request.
|
|
2100
|
+
:type _host_index: int, optional
|
|
2101
|
+
:return: Returns the result object.
|
|
2102
|
+
""" # noqa: E501
|
|
2103
|
+
|
|
2104
|
+
_param = self._find_validator_run_by_id_serialize(
|
|
2105
|
+
organization_id=organization_id,
|
|
2106
|
+
validator_id=validator_id,
|
|
2107
|
+
validatorrun_id=validatorrun_id,
|
|
2108
|
+
_request_auth=_request_auth,
|
|
2109
|
+
_content_type=_content_type,
|
|
2110
|
+
_headers=_headers,
|
|
2111
|
+
_host_index=_host_index
|
|
2112
|
+
)
|
|
2113
|
+
|
|
2114
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2115
|
+
'200': "ValidatorRun",
|
|
2116
|
+
'404': None,
|
|
2117
|
+
}
|
|
2118
|
+
response_data = self.api_client.call_api(
|
|
2119
|
+
*_param,
|
|
2120
|
+
_request_timeout=_request_timeout
|
|
2121
|
+
)
|
|
2122
|
+
response_data.read()
|
|
2123
|
+
return self.api_client.response_deserialize(
|
|
2124
|
+
response_data=response_data,
|
|
2125
|
+
response_types_map=_response_types_map,
|
|
2126
|
+
)
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
@validate_call
|
|
2130
|
+
def find_validator_run_by_id_without_preload_content(
|
|
2131
|
+
self,
|
|
2132
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2133
|
+
validator_id: Annotated[StrictStr, Field(description="the Validator identifier")],
|
|
2134
|
+
validatorrun_id: Annotated[StrictStr, Field(description="the Validator Run identifier")],
|
|
2135
|
+
_request_timeout: Union[
|
|
2136
|
+
None,
|
|
2137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2138
|
+
Tuple[
|
|
2139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2140
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2141
|
+
]
|
|
2142
|
+
] = None,
|
|
2143
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2144
|
+
_content_type: Optional[StrictStr] = None,
|
|
2145
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2146
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2147
|
+
) -> RESTResponseType:
|
|
2148
|
+
"""Get the details of a validator run
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
:param organization_id: the Organization identifier (required)
|
|
2152
|
+
:type organization_id: str
|
|
2153
|
+
:param validator_id: the Validator identifier (required)
|
|
2154
|
+
:type validator_id: str
|
|
2155
|
+
:param validatorrun_id: the Validator Run identifier (required)
|
|
2156
|
+
:type validatorrun_id: str
|
|
2157
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2158
|
+
number provided, it will be total request
|
|
2159
|
+
timeout. It can also be a pair (tuple) of
|
|
2160
|
+
(connection, read) timeouts.
|
|
2161
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2162
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2163
|
+
request; this effectively ignores the
|
|
2164
|
+
authentication in the spec for a single request.
|
|
2165
|
+
:type _request_auth: dict, optional
|
|
2166
|
+
:param _content_type: force content-type for the request.
|
|
2167
|
+
:type _content_type: str, Optional
|
|
2168
|
+
:param _headers: set to override the headers for a single
|
|
2169
|
+
request; this effectively ignores the headers
|
|
2170
|
+
in the spec for a single request.
|
|
2171
|
+
:type _headers: dict, optional
|
|
2172
|
+
:param _host_index: set to override the host_index for a single
|
|
2173
|
+
request; this effectively ignores the host_index
|
|
2174
|
+
in the spec for a single request.
|
|
2175
|
+
:type _host_index: int, optional
|
|
2176
|
+
:return: Returns the result object.
|
|
2177
|
+
""" # noqa: E501
|
|
2178
|
+
|
|
2179
|
+
_param = self._find_validator_run_by_id_serialize(
|
|
2180
|
+
organization_id=organization_id,
|
|
2181
|
+
validator_id=validator_id,
|
|
2182
|
+
validatorrun_id=validatorrun_id,
|
|
2183
|
+
_request_auth=_request_auth,
|
|
2184
|
+
_content_type=_content_type,
|
|
2185
|
+
_headers=_headers,
|
|
2186
|
+
_host_index=_host_index
|
|
2187
|
+
)
|
|
2188
|
+
|
|
2189
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2190
|
+
'200': "ValidatorRun",
|
|
2191
|
+
'404': None,
|
|
2192
|
+
}
|
|
2193
|
+
response_data = self.api_client.call_api(
|
|
2194
|
+
*_param,
|
|
2195
|
+
_request_timeout=_request_timeout
|
|
2196
|
+
)
|
|
2197
|
+
return response_data.response
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
def _find_validator_run_by_id_serialize(
|
|
2201
|
+
self,
|
|
2202
|
+
organization_id,
|
|
2203
|
+
validator_id,
|
|
2204
|
+
validatorrun_id,
|
|
2205
|
+
_request_auth,
|
|
2206
|
+
_content_type,
|
|
2207
|
+
_headers,
|
|
2208
|
+
_host_index,
|
|
2209
|
+
) -> RequestSerialized:
|
|
2210
|
+
|
|
2211
|
+
_host = None
|
|
2212
|
+
|
|
2213
|
+
_collection_formats: Dict[str, str] = {
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
_path_params: Dict[str, str] = {}
|
|
2217
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2218
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2219
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2220
|
+
_files: Dict[str, str] = {}
|
|
2221
|
+
_body_params: Optional[bytes] = None
|
|
2222
|
+
|
|
2223
|
+
# process the path parameters
|
|
2224
|
+
if organization_id is not None:
|
|
2225
|
+
_path_params['organization_id'] = organization_id
|
|
2226
|
+
if validator_id is not None:
|
|
2227
|
+
_path_params['validator_id'] = validator_id
|
|
2228
|
+
if validatorrun_id is not None:
|
|
2229
|
+
_path_params['validatorrun_id'] = validatorrun_id
|
|
2230
|
+
# process the query parameters
|
|
2231
|
+
# process the header parameters
|
|
2232
|
+
# process the form parameters
|
|
2233
|
+
# process the body parameter
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
# set the HTTP header `Accept`
|
|
2237
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2238
|
+
[
|
|
2239
|
+
'application/json'
|
|
2240
|
+
]
|
|
2241
|
+
)
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
# authentication setting
|
|
2245
|
+
_auth_settings: List[str] = [
|
|
2246
|
+
'oAuth2AuthCode'
|
|
2247
|
+
]
|
|
2248
|
+
|
|
2249
|
+
return self.api_client.param_serialize(
|
|
2250
|
+
method='GET',
|
|
2251
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}/history/{validatorrun_id}',
|
|
2252
|
+
path_params=_path_params,
|
|
2253
|
+
query_params=_query_params,
|
|
2254
|
+
header_params=_header_params,
|
|
2255
|
+
body=_body_params,
|
|
2256
|
+
post_params=_form_params,
|
|
2257
|
+
files=_files,
|
|
2258
|
+
auth_settings=_auth_settings,
|
|
2259
|
+
collection_formats=_collection_formats,
|
|
2260
|
+
_host=_host,
|
|
2261
|
+
_request_auth=_request_auth
|
|
2262
|
+
)
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
@validate_call
|
|
2268
|
+
def run_validator(
|
|
2269
|
+
self,
|
|
2270
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2271
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
2272
|
+
validator_run: Annotated[ValidatorRun, Field(description="the Validator to run")],
|
|
2273
|
+
_request_timeout: Union[
|
|
2274
|
+
None,
|
|
2275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2276
|
+
Tuple[
|
|
2277
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2278
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2279
|
+
]
|
|
2280
|
+
] = None,
|
|
2281
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2282
|
+
_content_type: Optional[StrictStr] = None,
|
|
2283
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2284
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2285
|
+
) -> ValidatorRun:
|
|
2286
|
+
"""Run a Validator
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
:param organization_id: the Organization identifier (required)
|
|
2290
|
+
:type organization_id: str
|
|
2291
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
2292
|
+
:type validator_id: str
|
|
2293
|
+
:param validator_run: the Validator to run (required)
|
|
2294
|
+
:type validator_run: ValidatorRun
|
|
2295
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2296
|
+
number provided, it will be total request
|
|
2297
|
+
timeout. It can also be a pair (tuple) of
|
|
2298
|
+
(connection, read) timeouts.
|
|
2299
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2300
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2301
|
+
request; this effectively ignores the
|
|
2302
|
+
authentication in the spec for a single request.
|
|
2303
|
+
:type _request_auth: dict, optional
|
|
2304
|
+
:param _content_type: force content-type for the request.
|
|
2305
|
+
:type _content_type: str, Optional
|
|
2306
|
+
:param _headers: set to override the headers for a single
|
|
2307
|
+
request; this effectively ignores the headers
|
|
2308
|
+
in the spec for a single request.
|
|
2309
|
+
:type _headers: dict, optional
|
|
2310
|
+
:param _host_index: set to override the host_index for a single
|
|
2311
|
+
request; this effectively ignores the host_index
|
|
2312
|
+
in the spec for a single request.
|
|
2313
|
+
:type _host_index: int, optional
|
|
2314
|
+
:return: Returns the result object.
|
|
2315
|
+
""" # noqa: E501
|
|
2316
|
+
|
|
2317
|
+
_param = self._run_validator_serialize(
|
|
2318
|
+
organization_id=organization_id,
|
|
2319
|
+
validator_id=validator_id,
|
|
2320
|
+
validator_run=validator_run,
|
|
2321
|
+
_request_auth=_request_auth,
|
|
2322
|
+
_content_type=_content_type,
|
|
2323
|
+
_headers=_headers,
|
|
2324
|
+
_host_index=_host_index
|
|
2325
|
+
)
|
|
2326
|
+
|
|
2327
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2328
|
+
'201': "ValidatorRun",
|
|
2329
|
+
'400': None,
|
|
2330
|
+
}
|
|
2331
|
+
response_data = self.api_client.call_api(
|
|
2332
|
+
*_param,
|
|
2333
|
+
_request_timeout=_request_timeout
|
|
2334
|
+
)
|
|
2335
|
+
response_data.read()
|
|
2336
|
+
return self.api_client.response_deserialize(
|
|
2337
|
+
response_data=response_data,
|
|
2338
|
+
response_types_map=_response_types_map,
|
|
2339
|
+
).data
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
@validate_call
|
|
2343
|
+
def run_validator_with_http_info(
|
|
2344
|
+
self,
|
|
2345
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2346
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
2347
|
+
validator_run: Annotated[ValidatorRun, Field(description="the Validator to run")],
|
|
2348
|
+
_request_timeout: Union[
|
|
2349
|
+
None,
|
|
2350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2351
|
+
Tuple[
|
|
2352
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2353
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2354
|
+
]
|
|
2355
|
+
] = None,
|
|
2356
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2357
|
+
_content_type: Optional[StrictStr] = None,
|
|
2358
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2359
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2360
|
+
) -> ApiResponse[ValidatorRun]:
|
|
2361
|
+
"""Run a Validator
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
:param organization_id: the Organization identifier (required)
|
|
2365
|
+
:type organization_id: str
|
|
2366
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
2367
|
+
:type validator_id: str
|
|
2368
|
+
:param validator_run: the Validator to run (required)
|
|
2369
|
+
:type validator_run: ValidatorRun
|
|
2370
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2371
|
+
number provided, it will be total request
|
|
2372
|
+
timeout. It can also be a pair (tuple) of
|
|
2373
|
+
(connection, read) timeouts.
|
|
2374
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2375
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2376
|
+
request; this effectively ignores the
|
|
2377
|
+
authentication in the spec for a single request.
|
|
2378
|
+
:type _request_auth: dict, optional
|
|
2379
|
+
:param _content_type: force content-type for the request.
|
|
2380
|
+
:type _content_type: str, Optional
|
|
2381
|
+
:param _headers: set to override the headers for a single
|
|
2382
|
+
request; this effectively ignores the headers
|
|
2383
|
+
in the spec for a single request.
|
|
2384
|
+
:type _headers: dict, optional
|
|
2385
|
+
:param _host_index: set to override the host_index for a single
|
|
2386
|
+
request; this effectively ignores the host_index
|
|
2387
|
+
in the spec for a single request.
|
|
2388
|
+
:type _host_index: int, optional
|
|
2389
|
+
:return: Returns the result object.
|
|
2390
|
+
""" # noqa: E501
|
|
2391
|
+
|
|
2392
|
+
_param = self._run_validator_serialize(
|
|
2393
|
+
organization_id=organization_id,
|
|
2394
|
+
validator_id=validator_id,
|
|
2395
|
+
validator_run=validator_run,
|
|
2396
|
+
_request_auth=_request_auth,
|
|
2397
|
+
_content_type=_content_type,
|
|
2398
|
+
_headers=_headers,
|
|
2399
|
+
_host_index=_host_index
|
|
2400
|
+
)
|
|
2401
|
+
|
|
2402
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2403
|
+
'201': "ValidatorRun",
|
|
2404
|
+
'400': None,
|
|
2405
|
+
}
|
|
2406
|
+
response_data = self.api_client.call_api(
|
|
2407
|
+
*_param,
|
|
2408
|
+
_request_timeout=_request_timeout
|
|
2409
|
+
)
|
|
2410
|
+
response_data.read()
|
|
2411
|
+
return self.api_client.response_deserialize(
|
|
2412
|
+
response_data=response_data,
|
|
2413
|
+
response_types_map=_response_types_map,
|
|
2414
|
+
)
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
@validate_call
|
|
2418
|
+
def run_validator_without_preload_content(
|
|
2419
|
+
self,
|
|
2420
|
+
organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
|
|
2421
|
+
validator_id: Annotated[StrictStr, Field(description="the ValidatorRun identifier")],
|
|
2422
|
+
validator_run: Annotated[ValidatorRun, Field(description="the Validator to run")],
|
|
2423
|
+
_request_timeout: Union[
|
|
2424
|
+
None,
|
|
2425
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2426
|
+
Tuple[
|
|
2427
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2428
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2429
|
+
]
|
|
2430
|
+
] = None,
|
|
2431
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2432
|
+
_content_type: Optional[StrictStr] = None,
|
|
2433
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2434
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2435
|
+
) -> RESTResponseType:
|
|
2436
|
+
"""Run a Validator
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
:param organization_id: the Organization identifier (required)
|
|
2440
|
+
:type organization_id: str
|
|
2441
|
+
:param validator_id: the ValidatorRun identifier (required)
|
|
2442
|
+
:type validator_id: str
|
|
2443
|
+
:param validator_run: the Validator to run (required)
|
|
2444
|
+
:type validator_run: ValidatorRun
|
|
2445
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2446
|
+
number provided, it will be total request
|
|
2447
|
+
timeout. It can also be a pair (tuple) of
|
|
2448
|
+
(connection, read) timeouts.
|
|
2449
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2450
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2451
|
+
request; this effectively ignores the
|
|
2452
|
+
authentication in the spec for a single request.
|
|
2453
|
+
:type _request_auth: dict, optional
|
|
2454
|
+
:param _content_type: force content-type for the request.
|
|
2455
|
+
:type _content_type: str, Optional
|
|
2456
|
+
:param _headers: set to override the headers for a single
|
|
2457
|
+
request; this effectively ignores the headers
|
|
2458
|
+
in the spec for a single request.
|
|
2459
|
+
:type _headers: dict, optional
|
|
2460
|
+
:param _host_index: set to override the host_index for a single
|
|
2461
|
+
request; this effectively ignores the host_index
|
|
2462
|
+
in the spec for a single request.
|
|
2463
|
+
:type _host_index: int, optional
|
|
2464
|
+
:return: Returns the result object.
|
|
2465
|
+
""" # noqa: E501
|
|
2466
|
+
|
|
2467
|
+
_param = self._run_validator_serialize(
|
|
2468
|
+
organization_id=organization_id,
|
|
2469
|
+
validator_id=validator_id,
|
|
2470
|
+
validator_run=validator_run,
|
|
2471
|
+
_request_auth=_request_auth,
|
|
2472
|
+
_content_type=_content_type,
|
|
2473
|
+
_headers=_headers,
|
|
2474
|
+
_host_index=_host_index
|
|
2475
|
+
)
|
|
2476
|
+
|
|
2477
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2478
|
+
'201': "ValidatorRun",
|
|
2479
|
+
'400': None,
|
|
2480
|
+
}
|
|
2481
|
+
response_data = self.api_client.call_api(
|
|
2482
|
+
*_param,
|
|
2483
|
+
_request_timeout=_request_timeout
|
|
2484
|
+
)
|
|
2485
|
+
return response_data.response
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
def _run_validator_serialize(
|
|
2489
|
+
self,
|
|
2490
|
+
organization_id,
|
|
2491
|
+
validator_id,
|
|
2492
|
+
validator_run,
|
|
2493
|
+
_request_auth,
|
|
2494
|
+
_content_type,
|
|
2495
|
+
_headers,
|
|
2496
|
+
_host_index,
|
|
2497
|
+
) -> RequestSerialized:
|
|
2498
|
+
|
|
2499
|
+
_host = None
|
|
2500
|
+
|
|
2501
|
+
_collection_formats: Dict[str, str] = {
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
_path_params: Dict[str, str] = {}
|
|
2505
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2506
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2507
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2508
|
+
_files: Dict[str, str] = {}
|
|
2509
|
+
_body_params: Optional[bytes] = None
|
|
2510
|
+
|
|
2511
|
+
# process the path parameters
|
|
2512
|
+
if organization_id is not None:
|
|
2513
|
+
_path_params['organization_id'] = organization_id
|
|
2514
|
+
if validator_id is not None:
|
|
2515
|
+
_path_params['validator_id'] = validator_id
|
|
2516
|
+
# process the query parameters
|
|
2517
|
+
# process the header parameters
|
|
2518
|
+
# process the form parameters
|
|
2519
|
+
# process the body parameter
|
|
2520
|
+
if validator_run is not None:
|
|
2521
|
+
_body_params = validator_run
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
# set the HTTP header `Accept`
|
|
2525
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2526
|
+
[
|
|
2527
|
+
'application/json'
|
|
2528
|
+
]
|
|
2529
|
+
)
|
|
2530
|
+
|
|
2531
|
+
# set the HTTP header `Content-Type`
|
|
2532
|
+
if _content_type:
|
|
2533
|
+
_header_params['Content-Type'] = _content_type
|
|
2534
|
+
else:
|
|
2535
|
+
_default_content_type = (
|
|
2536
|
+
self.api_client.select_header_content_type(
|
|
2537
|
+
[
|
|
2538
|
+
'application/json',
|
|
2539
|
+
'application/yaml'
|
|
2540
|
+
]
|
|
2541
|
+
)
|
|
2542
|
+
)
|
|
2543
|
+
if _default_content_type is not None:
|
|
2544
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2545
|
+
|
|
2546
|
+
# authentication setting
|
|
2547
|
+
_auth_settings: List[str] = [
|
|
2548
|
+
'oAuth2AuthCode'
|
|
2549
|
+
]
|
|
2550
|
+
|
|
2551
|
+
return self.api_client.param_serialize(
|
|
2552
|
+
method='POST',
|
|
2553
|
+
resource_path='/organizations/{organization_id}/datasets/validators/{validator_id}/run',
|
|
2554
|
+
path_params=_path_params,
|
|
2555
|
+
query_params=_query_params,
|
|
2556
|
+
header_params=_header_params,
|
|
2557
|
+
body=_body_params,
|
|
2558
|
+
post_params=_form_params,
|
|
2559
|
+
files=_files,
|
|
2560
|
+
auth_settings=_auth_settings,
|
|
2561
|
+
collection_formats=_collection_formats,
|
|
2562
|
+
_host=_host,
|
|
2563
|
+
_request_auth=_request_auth
|
|
2564
|
+
)
|
|
2565
|
+
|
|
2566
|
+
|