cosmotech-api 3.2.0.post1__py3-none-any.whl → 3.2.6.dev0__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.

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