arthur-client 1.4.0__py3-none-any.whl → 1.4.1186__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.
Files changed (982) hide show
  1. arthur_client/__version__.py +1 -0
  2. arthur_client/api_bindings/__init__.py +334 -0
  3. arthur_client/api_bindings/api/__init__.py +30 -0
  4. arthur_client/api_bindings/api/alert_rules_v1_api.py +1930 -0
  5. arthur_client/api_bindings/api/alerts_v1_api.py +1042 -0
  6. arthur_client/api_bindings/api/authorization_v1_api.py +3926 -0
  7. arthur_client/api_bindings/api/connector_schemas_v1_api.py +559 -0
  8. arthur_client/api_bindings/api/connectors_v1_api.py +2165 -0
  9. arthur_client/api_bindings/api/data_plane_associations_v1_api.py +1699 -0
  10. arthur_client/api_bindings/api/data_planes_v1_api.py +1832 -0
  11. arthur_client/api_bindings/api/data_retrieval_v1_api.py +2403 -0
  12. arthur_client/api_bindings/api/datasets_v1_api.py +4346 -0
  13. arthur_client/api_bindings/api/default_api.py +284 -0
  14. arthur_client/api_bindings/api/feature_flags_v1_api.py +284 -0
  15. arthur_client/api_bindings/api/groups_v1_api.py +2803 -0
  16. arthur_client/api_bindings/api/jobs_v1_api.py +3809 -0
  17. arthur_client/api_bindings/api/metric_functions_v1_api.py +285 -0
  18. arthur_client/api_bindings/api/metrics_v1_api.py +1297 -0
  19. arthur_client/api_bindings/api/models_v1_api.py +2739 -0
  20. arthur_client/api_bindings/api/o_auth_v1_api.py +284 -0
  21. arthur_client/api_bindings/api/organizations_v1_api.py +827 -0
  22. arthur_client/api_bindings/api/projects_v1_api.py +1541 -0
  23. arthur_client/api_bindings/api/registration_v1_api.py +319 -0
  24. arthur_client/api_bindings/api/roles_v1_api.py +307 -0
  25. arthur_client/api_bindings/api/tasks_v1_api.py +3173 -0
  26. arthur_client/api_bindings/api/upsolve_v1_api.py +320 -0
  27. arthur_client/api_bindings/api/users_v1_api.py +2930 -0
  28. arthur_client/api_bindings/api/webhooks_v1_api.py +1843 -0
  29. arthur_client/api_bindings/api/workspaces_v1_api.py +1511 -0
  30. arthur_client/api_bindings/api_client.py +797 -0
  31. arthur_client/api_bindings/api_response.py +21 -0
  32. arthur_client/api_bindings/configuration.py +458 -0
  33. arthur_client/api_bindings/docs/AggregationMetricType.md +12 -0
  34. arthur_client/api_bindings/docs/AggregationSpec.md +31 -0
  35. arthur_client/api_bindings/docs/AggregationSpecSchema.md +34 -0
  36. arthur_client/api_bindings/docs/AggregationSpecSchemaInitArgsInner.md +39 -0
  37. arthur_client/api_bindings/docs/Alert.md +44 -0
  38. arthur_client/api_bindings/docs/AlertBound.md +12 -0
  39. arthur_client/api_bindings/docs/AlertCheckJobSpec.md +32 -0
  40. arthur_client/api_bindings/docs/AlertRule.md +41 -0
  41. arthur_client/api_bindings/docs/AlertRuleInterval.md +30 -0
  42. arthur_client/api_bindings/docs/AlertRuleNotificationWebhook.md +30 -0
  43. arthur_client/api_bindings/docs/AlertRuleSQLValidationResp.md +32 -0
  44. arthur_client/api_bindings/docs/AlertRuleSort.md +12 -0
  45. arthur_client/api_bindings/docs/AlertRulesV1Api.md +514 -0
  46. arthur_client/api_bindings/docs/AlertSort.md +12 -0
  47. arthur_client/api_bindings/docs/AlertWebhookCalled.md +31 -0
  48. arthur_client/api_bindings/docs/AlertsV1Api.md +268 -0
  49. arthur_client/api_bindings/docs/AuthorizationV1Api.md +1039 -0
  50. arthur_client/api_bindings/docs/AvailableDataset.md +39 -0
  51. arthur_client/api_bindings/docs/AvailableDatasetsSort.md +14 -0
  52. arthur_client/api_bindings/docs/BadRequestError.md +29 -0
  53. arthur_client/api_bindings/docs/BaseRole.md +31 -0
  54. arthur_client/api_bindings/docs/BoundMember.md +30 -0
  55. arthur_client/api_bindings/docs/BoundMemberKind.md +12 -0
  56. arthur_client/api_bindings/docs/BoundResource.md +31 -0
  57. arthur_client/api_bindings/docs/BoundResourceKind.md +16 -0
  58. arthur_client/api_bindings/docs/BoundRole.md +30 -0
  59. arthur_client/api_bindings/docs/Config.md +37 -0
  60. arthur_client/api_bindings/docs/ConflictError.md +29 -0
  61. arthur_client/api_bindings/docs/ConnectorCheckJobSpec.md +30 -0
  62. arthur_client/api_bindings/docs/ConnectorCheckOutcome.md +12 -0
  63. arthur_client/api_bindings/docs/ConnectorCheckResult.md +30 -0
  64. arthur_client/api_bindings/docs/ConnectorFieldDataType.md +16 -0
  65. arthur_client/api_bindings/docs/ConnectorPaginationOptions.md +30 -0
  66. arthur_client/api_bindings/docs/ConnectorSchemasV1Api.md +161 -0
  67. arthur_client/api_bindings/docs/ConnectorSpec.md +39 -0
  68. arthur_client/api_bindings/docs/ConnectorSpecField.md +30 -0
  69. arthur_client/api_bindings/docs/ConnectorSpecFieldWithMetadata.md +32 -0
  70. arthur_client/api_bindings/docs/ConnectorSpecSchema.md +34 -0
  71. arthur_client/api_bindings/docs/ConnectorSpecSchemaField.md +34 -0
  72. arthur_client/api_bindings/docs/ConnectorType.md +18 -0
  73. arthur_client/api_bindings/docs/ConnectorsSort.md +14 -0
  74. arthur_client/api_bindings/docs/ConnectorsV1Api.md +586 -0
  75. arthur_client/api_bindings/docs/CreateModelLinkTaskJobSpec.md +32 -0
  76. arthur_client/api_bindings/docs/CreateModelTaskJobSpec.md +33 -0
  77. arthur_client/api_bindings/docs/CreatedAlerts.md +30 -0
  78. arthur_client/api_bindings/docs/Credentials.md +32 -0
  79. arthur_client/api_bindings/docs/DType.md +28 -0
  80. arthur_client/api_bindings/docs/DataPlane.md +37 -0
  81. arthur_client/api_bindings/docs/DataPlaneAssociation.md +35 -0
  82. arthur_client/api_bindings/docs/DataPlaneAssociationSort.md +12 -0
  83. arthur_client/api_bindings/docs/DataPlaneAssociationsV1Api.md +443 -0
  84. arthur_client/api_bindings/docs/DataPlaneCapabilities.md +29 -0
  85. arthur_client/api_bindings/docs/DataPlaneSort.md +14 -0
  86. arthur_client/api_bindings/docs/DataPlanesV1Api.md +502 -0
  87. arthur_client/api_bindings/docs/DataResultFilter.md +31 -0
  88. arthur_client/api_bindings/docs/DataResultFilterOp.md +24 -0
  89. arthur_client/api_bindings/docs/DataRetrievalData.md +30 -0
  90. arthur_client/api_bindings/docs/DataRetrievalOperation.md +32 -0
  91. arthur_client/api_bindings/docs/DataRetrievalStatus.md +14 -0
  92. arthur_client/api_bindings/docs/DataRetrievalV1Api.md +656 -0
  93. arthur_client/api_bindings/docs/Dataset.md +39 -0
  94. arthur_client/api_bindings/docs/DatasetColumn.md +31 -0
  95. arthur_client/api_bindings/docs/DatasetConnector.md +31 -0
  96. arthur_client/api_bindings/docs/DatasetJoinKind.md +16 -0
  97. arthur_client/api_bindings/docs/DatasetJoinSpec.md +31 -0
  98. arthur_client/api_bindings/docs/DatasetListType.md +32 -0
  99. arthur_client/api_bindings/docs/DatasetLocator.md +29 -0
  100. arthur_client/api_bindings/docs/DatasetLocatorField.md +30 -0
  101. arthur_client/api_bindings/docs/DatasetLocatorFieldDataType.md +16 -0
  102. arthur_client/api_bindings/docs/DatasetLocatorSchema.md +29 -0
  103. arthur_client/api_bindings/docs/DatasetLocatorSchemaField.md +33 -0
  104. arthur_client/api_bindings/docs/DatasetObjectType.md +32 -0
  105. arthur_client/api_bindings/docs/DatasetReference.md +31 -0
  106. arthur_client/api_bindings/docs/DatasetScalarType.md +32 -0
  107. arthur_client/api_bindings/docs/DatasetSchema.md +31 -0
  108. arthur_client/api_bindings/docs/DatasetsSort.md +12 -0
  109. arthur_client/api_bindings/docs/DatasetsV1Api.md +1175 -0
  110. arthur_client/api_bindings/docs/DefaultApi.md +74 -0
  111. arthur_client/api_bindings/docs/Definition.md +34 -0
  112. arthur_client/api_bindings/docs/DeleteGroupMembership.md +29 -0
  113. arthur_client/api_bindings/docs/DeleteModelTaskJobSpec.md +30 -0
  114. arthur_client/api_bindings/docs/Dimension.md +30 -0
  115. arthur_client/api_bindings/docs/ExampleConfig.md +30 -0
  116. arthur_client/api_bindings/docs/ExamplesConfig.md +30 -0
  117. arthur_client/api_bindings/docs/ExtendedRole.md +39 -0
  118. arthur_client/api_bindings/docs/FeatureFlagsV1Api.md +73 -0
  119. arthur_client/api_bindings/docs/FetchDataJobSpec.md +36 -0
  120. arthur_client/api_bindings/docs/FetchModelTaskJobSpec.md +30 -0
  121. arthur_client/api_bindings/docs/GenerateMetricsSpecRequest.md +29 -0
  122. arthur_client/api_bindings/docs/Group.md +35 -0
  123. arthur_client/api_bindings/docs/GroupMembership.md +33 -0
  124. arthur_client/api_bindings/docs/GroupSort.md +14 -0
  125. arthur_client/api_bindings/docs/GroupsV1Api.md +756 -0
  126. arthur_client/api_bindings/docs/HTTPValidationError.md +29 -0
  127. arthur_client/api_bindings/docs/HealthStatus.md +29 -0
  128. arthur_client/api_bindings/docs/InfinitePagination.md +30 -0
  129. arthur_client/api_bindings/docs/InfiniteResourceListAlert.md +30 -0
  130. arthur_client/api_bindings/docs/InfiniteResourceListJob.md +30 -0
  131. arthur_client/api_bindings/docs/InternalServerError.md +29 -0
  132. arthur_client/api_bindings/docs/IntervalUnit.md +16 -0
  133. arthur_client/api_bindings/docs/InviteNewUser.md +31 -0
  134. arthur_client/api_bindings/docs/Items.md +34 -0
  135. arthur_client/api_bindings/docs/Items1.md +31 -0
  136. arthur_client/api_bindings/docs/Job.md +48 -0
  137. arthur_client/api_bindings/docs/JobDequeueParameters.md +29 -0
  138. arthur_client/api_bindings/docs/JobError.md +29 -0
  139. arthur_client/api_bindings/docs/JobErrors.md +29 -0
  140. arthur_client/api_bindings/docs/JobKind.md +34 -0
  141. arthur_client/api_bindings/docs/JobLog.md +31 -0
  142. arthur_client/api_bindings/docs/JobLogLevel.md +18 -0
  143. arthur_client/api_bindings/docs/JobLogs.md +29 -0
  144. arthur_client/api_bindings/docs/JobPriority.md +16 -0
  145. arthur_client/api_bindings/docs/JobRun.md +34 -0
  146. arthur_client/api_bindings/docs/JobSpec.md +49 -0
  147. arthur_client/api_bindings/docs/JobState.md +18 -0
  148. arthur_client/api_bindings/docs/JobTrigger.md +14 -0
  149. arthur_client/api_bindings/docs/JobsBatch.md +29 -0
  150. arthur_client/api_bindings/docs/JobsSort.md +14 -0
  151. arthur_client/api_bindings/docs/JobsV1Api.md +960 -0
  152. arthur_client/api_bindings/docs/JoinedDataset.md +32 -0
  153. arthur_client/api_bindings/docs/KeywordsConfig.md +29 -0
  154. arthur_client/api_bindings/docs/ListDatasetsJobSpec.md +30 -0
  155. arthur_client/api_bindings/docs/ListType.md +29 -0
  156. arthur_client/api_bindings/docs/MetricFunctionsV1Api.md +81 -0
  157. arthur_client/api_bindings/docs/MetricsArgSpec.md +30 -0
  158. arthur_client/api_bindings/docs/MetricsCalculationJobSpec.md +32 -0
  159. arthur_client/api_bindings/docs/MetricsColumnListParameterSchema.md +37 -0
  160. arthur_client/api_bindings/docs/MetricsColumnListParameterSchemaAllowedColumnTypesInner.md +31 -0
  161. arthur_client/api_bindings/docs/MetricsColumnParameterSchema.md +37 -0
  162. arthur_client/api_bindings/docs/MetricsDatasetParameterSchema.md +34 -0
  163. arthur_client/api_bindings/docs/MetricsLiteralParameterSchema.md +34 -0
  164. arthur_client/api_bindings/docs/MetricsQueryResult.md +29 -0
  165. arthur_client/api_bindings/docs/MetricsResultFilterOp.md +24 -0
  166. arthur_client/api_bindings/docs/MetricsUpload.md +30 -0
  167. arthur_client/api_bindings/docs/MetricsUploadMetricsInner.md +31 -0
  168. arthur_client/api_bindings/docs/MetricsUploadResult.md +32 -0
  169. arthur_client/api_bindings/docs/MetricsV1Api.md +346 -0
  170. arthur_client/api_bindings/docs/MetricsVersion.md +34 -0
  171. arthur_client/api_bindings/docs/MetricsVersionsSort.md +16 -0
  172. arthur_client/api_bindings/docs/Model.md +41 -0
  173. arthur_client/api_bindings/docs/ModelMetricSpec.md +30 -0
  174. arthur_client/api_bindings/docs/ModelMetricsSchedule.md +32 -0
  175. arthur_client/api_bindings/docs/ModelProblemType.md +18 -0
  176. arthur_client/api_bindings/docs/ModelsSort.md +14 -0
  177. arthur_client/api_bindings/docs/ModelsV1Api.md +742 -0
  178. arthur_client/api_bindings/docs/NewRuleRequest.md +33 -0
  179. arthur_client/api_bindings/docs/NotFoundError.md +29 -0
  180. arthur_client/api_bindings/docs/NumericMetric.md +30 -0
  181. arthur_client/api_bindings/docs/NumericPoint.md +30 -0
  182. arthur_client/api_bindings/docs/NumericTimeSeries.md +30 -0
  183. arthur_client/api_bindings/docs/OAuthV1Api.md +73 -0
  184. arthur_client/api_bindings/docs/ObjectType.md +29 -0
  185. arthur_client/api_bindings/docs/ObjectValue.md +34 -0
  186. arthur_client/api_bindings/docs/Organization.md +32 -0
  187. arthur_client/api_bindings/docs/OrganizationsV1Api.md +234 -0
  188. arthur_client/api_bindings/docs/PIIConfig.md +31 -0
  189. arthur_client/api_bindings/docs/Pagination.md +32 -0
  190. arthur_client/api_bindings/docs/PatchAlertRule.md +36 -0
  191. arthur_client/api_bindings/docs/PatchConnectorSpec.md +31 -0
  192. arthur_client/api_bindings/docs/PatchDataPlane.md +31 -0
  193. arthur_client/api_bindings/docs/PatchDataPlaneCapabilities.md +29 -0
  194. arthur_client/api_bindings/docs/PatchDataset.md +31 -0
  195. arthur_client/api_bindings/docs/PatchDatasetLocator.md +29 -0
  196. arthur_client/api_bindings/docs/PatchGroup.md +30 -0
  197. arthur_client/api_bindings/docs/PatchJob.md +29 -0
  198. arthur_client/api_bindings/docs/PatchModel.md +31 -0
  199. arthur_client/api_bindings/docs/PatchOrganization.md +29 -0
  200. arthur_client/api_bindings/docs/PatchProject.md +30 -0
  201. arthur_client/api_bindings/docs/PatchServiceAccountUser.md +29 -0
  202. arthur_client/api_bindings/docs/PatchTaskRequest.md +32 -0
  203. arthur_client/api_bindings/docs/PatchUser.md +32 -0
  204. arthur_client/api_bindings/docs/PatchWebhook.md +32 -0
  205. arthur_client/api_bindings/docs/PatchWorkspace.md +29 -0
  206. arthur_client/api_bindings/docs/Permission.md +31 -0
  207. arthur_client/api_bindings/docs/PermissionName.md +272 -0
  208. arthur_client/api_bindings/docs/PermissionRequestItem.md +31 -0
  209. arthur_client/api_bindings/docs/PermissionResponseItem.md +32 -0
  210. arthur_client/api_bindings/docs/PermissionsRequest.md +29 -0
  211. arthur_client/api_bindings/docs/PermissionsResponse.md +29 -0
  212. arthur_client/api_bindings/docs/PostAlert.md +37 -0
  213. arthur_client/api_bindings/docs/PostAlertRule.md +36 -0
  214. arthur_client/api_bindings/docs/PostAlerts.md +29 -0
  215. arthur_client/api_bindings/docs/PostConnectorSpec.md +33 -0
  216. arthur_client/api_bindings/docs/PostDataPlane.md +31 -0
  217. arthur_client/api_bindings/docs/PostDataPlaneAssociation.md +30 -0
  218. arthur_client/api_bindings/docs/PostDataRetrievalOperation.md +32 -0
  219. arthur_client/api_bindings/docs/PostDataset.md +33 -0
  220. arthur_client/api_bindings/docs/PostDatasetJoinSpec.md +33 -0
  221. arthur_client/api_bindings/docs/PostEndUser.md +33 -0
  222. arthur_client/api_bindings/docs/PostGlobalRoleBinding.md +31 -0
  223. arthur_client/api_bindings/docs/PostGroup.md +30 -0
  224. arthur_client/api_bindings/docs/PostGroupMembership.md +29 -0
  225. arthur_client/api_bindings/docs/PostJob.md +34 -0
  226. arthur_client/api_bindings/docs/PostJobBatch.md +29 -0
  227. arthur_client/api_bindings/docs/PostJobKind.md +21 -0
  228. arthur_client/api_bindings/docs/PostJobSpec.md +37 -0
  229. arthur_client/api_bindings/docs/PostLinkTaskRequest.md +31 -0
  230. arthur_client/api_bindings/docs/PostMetricsQuery.md +33 -0
  231. arthur_client/api_bindings/docs/PostMetricsQueryResultFilter.md +31 -0
  232. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterAndGroup.md +29 -0
  233. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterAndGroupAndInner.md +33 -0
  234. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterOrGroup.md +29 -0
  235. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterOrGroupOrInner.md +33 -0
  236. arthur_client/api_bindings/docs/PostMetricsQueryTimeRange.md +30 -0
  237. arthur_client/api_bindings/docs/PostMetricsVersions.md +30 -0
  238. arthur_client/api_bindings/docs/PostModel.md +33 -0
  239. arthur_client/api_bindings/docs/PostProject.md +30 -0
  240. arthur_client/api_bindings/docs/PostRoleBinding.md +31 -0
  241. arthur_client/api_bindings/docs/PostServiceAccount.md +29 -0
  242. arthur_client/api_bindings/docs/PostTaskRequest.md +32 -0
  243. arthur_client/api_bindings/docs/PostTaskValidationAPIKey.md +31 -0
  244. arthur_client/api_bindings/docs/PostUpsolveTenant.md +30 -0
  245. arthur_client/api_bindings/docs/PostWebhook.md +32 -0
  246. arthur_client/api_bindings/docs/PostWorkspace.md +29 -0
  247. arthur_client/api_bindings/docs/Project.md +35 -0
  248. arthur_client/api_bindings/docs/ProjectBoundResourceMetadata.md +30 -0
  249. arthur_client/api_bindings/docs/ProjectSort.md +14 -0
  250. arthur_client/api_bindings/docs/ProjectsV1Api.md +420 -0
  251. arthur_client/api_bindings/docs/PutAvailableDataset.md +33 -0
  252. arthur_client/api_bindings/docs/PutAvailableDatasets.md +29 -0
  253. arthur_client/api_bindings/docs/PutDatasetSchema.md +30 -0
  254. arthur_client/api_bindings/docs/PutJobState.md +29 -0
  255. arthur_client/api_bindings/docs/PutModelMetricSpec.md +29 -0
  256. arthur_client/api_bindings/docs/PutModelMetricsSchedule.md +31 -0
  257. arthur_client/api_bindings/docs/PutRetrievedData.md +29 -0
  258. arthur_client/api_bindings/docs/PutTaskConnectionInfo.md +30 -0
  259. arthur_client/api_bindings/docs/PutTaskStateCacheRequest.md +29 -0
  260. arthur_client/api_bindings/docs/RegenerateTaskValidationKeyJobSpec.md +30 -0
  261. arthur_client/api_bindings/docs/RegexConfig.md +29 -0
  262. arthur_client/api_bindings/docs/RegisterUser.md +29 -0
  263. arthur_client/api_bindings/docs/RegistrationV1Api.md +80 -0
  264. arthur_client/api_bindings/docs/ResourceKind.md +40 -0
  265. arthur_client/api_bindings/docs/ResourceListAggregationSpecSchema.md +30 -0
  266. arthur_client/api_bindings/docs/ResourceListAlertRule.md +30 -0
  267. arthur_client/api_bindings/docs/ResourceListAvailableDataset.md +30 -0
  268. arthur_client/api_bindings/docs/ResourceListConnectorSpec.md +30 -0
  269. arthur_client/api_bindings/docs/ResourceListConnectorType.md +30 -0
  270. arthur_client/api_bindings/docs/ResourceListDataPlane.md +30 -0
  271. arthur_client/api_bindings/docs/ResourceListDataPlaneAssociation.md +30 -0
  272. arthur_client/api_bindings/docs/ResourceListDataset.md +30 -0
  273. arthur_client/api_bindings/docs/ResourceListGroup.md +30 -0
  274. arthur_client/api_bindings/docs/ResourceListGroupMembership.md +30 -0
  275. arthur_client/api_bindings/docs/ResourceListJobError.md +30 -0
  276. arthur_client/api_bindings/docs/ResourceListJobLog.md +30 -0
  277. arthur_client/api_bindings/docs/ResourceListJobRun.md +30 -0
  278. arthur_client/api_bindings/docs/ResourceListMetricsVersion.md +30 -0
  279. arthur_client/api_bindings/docs/ResourceListModel.md +30 -0
  280. arthur_client/api_bindings/docs/ResourceListPermission.md +30 -0
  281. arthur_client/api_bindings/docs/ResourceListProject.md +30 -0
  282. arthur_client/api_bindings/docs/ResourceListRole.md +30 -0
  283. arthur_client/api_bindings/docs/ResourceListRoleBinding.md +30 -0
  284. arthur_client/api_bindings/docs/ResourceListUser.md +30 -0
  285. arthur_client/api_bindings/docs/ResourceListWebhook.md +30 -0
  286. arthur_client/api_bindings/docs/ResourceListWorkspace.md +30 -0
  287. arthur_client/api_bindings/docs/ResultFilter.md +34 -0
  288. arthur_client/api_bindings/docs/Role.md +39 -0
  289. arthur_client/api_bindings/docs/RoleBinding.md +36 -0
  290. arthur_client/api_bindings/docs/RoleSort.md +14 -0
  291. arthur_client/api_bindings/docs/RolesV1Api.md +87 -0
  292. arthur_client/api_bindings/docs/RuleResponse.md +38 -0
  293. arthur_client/api_bindings/docs/RuleResponseConfig.md +37 -0
  294. arthur_client/api_bindings/docs/RuleScope.md +12 -0
  295. arthur_client/api_bindings/docs/RuleType.md +26 -0
  296. arthur_client/api_bindings/docs/ScalarType.md +29 -0
  297. arthur_client/api_bindings/docs/ScheduleJobsJobSpec.md +31 -0
  298. arthur_client/api_bindings/docs/SchemaInspectionJobSpec.md +31 -0
  299. arthur_client/api_bindings/docs/ScopeSchemaTag.md +26 -0
  300. arthur_client/api_bindings/docs/SensitiveDataPlane.md +39 -0
  301. arthur_client/api_bindings/docs/SensitiveUser.md +41 -0
  302. arthur_client/api_bindings/docs/ServiceAccountCredentials.md +30 -0
  303. arthur_client/api_bindings/docs/SketchMetric.md +30 -0
  304. arthur_client/api_bindings/docs/SketchPoint.md +30 -0
  305. arthur_client/api_bindings/docs/SketchTimeSeries.md +30 -0
  306. arthur_client/api_bindings/docs/SortOrder.md +12 -0
  307. arthur_client/api_bindings/docs/TaskConnectionInfo.md +32 -0
  308. arthur_client/api_bindings/docs/TaskMutationResponse.md +29 -0
  309. arthur_client/api_bindings/docs/TaskReadResponse.md +31 -0
  310. arthur_client/api_bindings/docs/TaskResponse.md +33 -0
  311. arthur_client/api_bindings/docs/TaskValidationAPIKey.md +31 -0
  312. arthur_client/api_bindings/docs/TaskValidationKeyRegenerationResponse.md +29 -0
  313. arthur_client/api_bindings/docs/TasksV1Api.md +892 -0
  314. arthur_client/api_bindings/docs/ToxicityConfig.md +29 -0
  315. arthur_client/api_bindings/docs/UpdateModelTaskRulesJobSpec.md +34 -0
  316. arthur_client/api_bindings/docs/UpsolveToken.md +29 -0
  317. arthur_client/api_bindings/docs/UpsolveV1Api.md +88 -0
  318. arthur_client/api_bindings/docs/User.md +40 -0
  319. arthur_client/api_bindings/docs/UserCredentials.md +29 -0
  320. arthur_client/api_bindings/docs/UserServiceAccountCredentials.md +41 -0
  321. arthur_client/api_bindings/docs/UserSort.md +16 -0
  322. arthur_client/api_bindings/docs/UserType.md +14 -0
  323. arthur_client/api_bindings/docs/UsersV1Api.md +810 -0
  324. arthur_client/api_bindings/docs/ValidateAlertRuleQueryReq.md +29 -0
  325. arthur_client/api_bindings/docs/ValidationError.md +31 -0
  326. arthur_client/api_bindings/docs/ValidationErrorLocInner.md +28 -0
  327. arthur_client/api_bindings/docs/Webhook.md +37 -0
  328. arthur_client/api_bindings/docs/WebhookResponse.md +30 -0
  329. arthur_client/api_bindings/docs/WebhookResult.md +30 -0
  330. arthur_client/api_bindings/docs/WebhookSort.md +14 -0
  331. arthur_client/api_bindings/docs/WebhooksV1Api.md +503 -0
  332. arthur_client/api_bindings/docs/Workspace.md +33 -0
  333. arthur_client/api_bindings/docs/WorkspaceSort.md +14 -0
  334. arthur_client/api_bindings/docs/WorkspacesV1Api.md +416 -0
  335. arthur_client/api_bindings/exceptions.py +199 -0
  336. arthur_client/api_bindings/models/__init__.py +292 -0
  337. arthur_client/api_bindings/models/aggregation_metric_type.py +37 -0
  338. arthur_client/api_bindings/models/aggregation_spec.py +106 -0
  339. arthur_client/api_bindings/models/aggregation_spec_schema.py +113 -0
  340. arthur_client/api_bindings/models/aggregation_spec_schema_init_args_inner.py +164 -0
  341. arthur_client/api_bindings/models/alert.py +143 -0
  342. arthur_client/api_bindings/models/alert_bound.py +37 -0
  343. arthur_client/api_bindings/models/alert_check_job_spec.py +104 -0
  344. arthur_client/api_bindings/models/alert_rule.py +139 -0
  345. arthur_client/api_bindings/models/alert_rule_interval.py +90 -0
  346. arthur_client/api_bindings/models/alert_rule_notification_webhook.py +89 -0
  347. arthur_client/api_bindings/models/alert_rule_sort.py +37 -0
  348. arthur_client/api_bindings/models/alert_rule_sql_validation_resp.py +93 -0
  349. arthur_client/api_bindings/models/alert_sort.py +37 -0
  350. arthur_client/api_bindings/models/alert_webhook_called.py +95 -0
  351. arthur_client/api_bindings/models/available_dataset.py +151 -0
  352. arthur_client/api_bindings/models/available_datasets_sort.py +38 -0
  353. arthur_client/api_bindings/models/bad_request_error.py +87 -0
  354. arthur_client/api_bindings/models/base_role.py +96 -0
  355. arthur_client/api_bindings/models/bound_member.py +89 -0
  356. arthur_client/api_bindings/models/bound_member_kind.py +37 -0
  357. arthur_client/api_bindings/models/bound_resource.py +100 -0
  358. arthur_client/api_bindings/models/bound_resource_kind.py +39 -0
  359. arthur_client/api_bindings/models/bound_role.py +89 -0
  360. arthur_client/api_bindings/models/config.py +185 -0
  361. arthur_client/api_bindings/models/conflict_error.py +87 -0
  362. arthur_client/api_bindings/models/connector_check_job_spec.py +99 -0
  363. arthur_client/api_bindings/models/connector_check_outcome.py +37 -0
  364. arthur_client/api_bindings/models/connector_check_result.py +95 -0
  365. arthur_client/api_bindings/models/connector_field_data_type.py +39 -0
  366. arthur_client/api_bindings/models/connector_pagination_options.py +90 -0
  367. arthur_client/api_bindings/models/connector_spec.py +135 -0
  368. arthur_client/api_bindings/models/connector_spec_field.py +89 -0
  369. arthur_client/api_bindings/models/connector_spec_field_with_metadata.py +94 -0
  370. arthur_client/api_bindings/models/connector_spec_schema.py +111 -0
  371. arthur_client/api_bindings/models/connector_spec_schema_field.py +103 -0
  372. arthur_client/api_bindings/models/connector_type.py +40 -0
  373. arthur_client/api_bindings/models/connectors_sort.py +38 -0
  374. arthur_client/api_bindings/models/create_model_link_task_job_spec.py +108 -0
  375. arthur_client/api_bindings/models/create_model_task_job_spec.py +118 -0
  376. arthur_client/api_bindings/models/created_alerts.py +110 -0
  377. arthur_client/api_bindings/models/credentials.py +134 -0
  378. arthur_client/api_bindings/models/d_type.py +45 -0
  379. arthur_client/api_bindings/models/data_plane.py +113 -0
  380. arthur_client/api_bindings/models/data_plane_association.py +118 -0
  381. arthur_client/api_bindings/models/data_plane_association_sort.py +37 -0
  382. arthur_client/api_bindings/models/data_plane_capabilities.py +87 -0
  383. arthur_client/api_bindings/models/data_plane_sort.py +38 -0
  384. arthur_client/api_bindings/models/data_result_filter.py +97 -0
  385. arthur_client/api_bindings/models/data_result_filter_op.py +43 -0
  386. arthur_client/api_bindings/models/data_retrieval_data.py +94 -0
  387. arthur_client/api_bindings/models/data_retrieval_operation.py +103 -0
  388. arthur_client/api_bindings/models/data_retrieval_status.py +38 -0
  389. arthur_client/api_bindings/models/dataset.py +145 -0
  390. arthur_client/api_bindings/models/dataset_column.py +95 -0
  391. arthur_client/api_bindings/models/dataset_connector.py +92 -0
  392. arthur_client/api_bindings/models/dataset_join_kind.py +39 -0
  393. arthur_client/api_bindings/models/dataset_join_spec.py +99 -0
  394. arthur_client/api_bindings/models/dataset_list_type.py +105 -0
  395. arthur_client/api_bindings/models/dataset_locator.py +95 -0
  396. arthur_client/api_bindings/models/dataset_locator_field.py +89 -0
  397. arthur_client/api_bindings/models/dataset_locator_field_data_type.py +39 -0
  398. arthur_client/api_bindings/models/dataset_locator_schema.py +95 -0
  399. arthur_client/api_bindings/models/dataset_locator_schema_field.py +101 -0
  400. arthur_client/api_bindings/models/dataset_object_type.py +114 -0
  401. arthur_client/api_bindings/models/dataset_reference.py +97 -0
  402. arthur_client/api_bindings/models/dataset_scalar_type.py +100 -0
  403. arthur_client/api_bindings/models/dataset_schema.py +101 -0
  404. arthur_client/api_bindings/models/datasets_sort.py +37 -0
  405. arthur_client/api_bindings/models/definition.py +149 -0
  406. arthur_client/api_bindings/models/delete_group_membership.py +87 -0
  407. arthur_client/api_bindings/models/delete_model_task_job_spec.py +99 -0
  408. arthur_client/api_bindings/models/dimension.py +89 -0
  409. arthur_client/api_bindings/models/example_config.py +89 -0
  410. arthur_client/api_bindings/models/examples_config.py +102 -0
  411. arthur_client/api_bindings/models/extended_role.py +129 -0
  412. arthur_client/api_bindings/models/fetch_data_job_spec.py +134 -0
  413. arthur_client/api_bindings/models/fetch_model_task_job_spec.py +99 -0
  414. arthur_client/api_bindings/models/generate_metrics_spec_request.py +87 -0
  415. arthur_client/api_bindings/models/group.py +105 -0
  416. arthur_client/api_bindings/models/group_membership.py +100 -0
  417. arthur_client/api_bindings/models/group_sort.py +38 -0
  418. arthur_client/api_bindings/models/health_status.py +87 -0
  419. arthur_client/api_bindings/models/http_validation_error.py +95 -0
  420. arthur_client/api_bindings/models/infinite_pagination.py +89 -0
  421. arthur_client/api_bindings/models/infinite_resource_list_alert.py +101 -0
  422. arthur_client/api_bindings/models/infinite_resource_list_job.py +101 -0
  423. arthur_client/api_bindings/models/internal_server_error.py +87 -0
  424. arthur_client/api_bindings/models/interval_unit.py +39 -0
  425. arthur_client/api_bindings/models/invite_new_user.py +105 -0
  426. arthur_client/api_bindings/models/items.py +151 -0
  427. arthur_client/api_bindings/models/items1.py +151 -0
  428. arthur_client/api_bindings/models/job.py +178 -0
  429. arthur_client/api_bindings/models/job_dequeue_parameters.py +87 -0
  430. arthur_client/api_bindings/models/job_error.py +87 -0
  431. arthur_client/api_bindings/models/job_errors.py +95 -0
  432. arthur_client/api_bindings/models/job_kind.py +48 -0
  433. arthur_client/api_bindings/models/job_log.py +93 -0
  434. arthur_client/api_bindings/models/job_log_level.py +40 -0
  435. arthur_client/api_bindings/models/job_logs.py +95 -0
  436. arthur_client/api_bindings/models/job_priority.py +39 -0
  437. arthur_client/api_bindings/models/job_run.py +104 -0
  438. arthur_client/api_bindings/models/job_spec.py +299 -0
  439. arthur_client/api_bindings/models/job_state.py +40 -0
  440. arthur_client/api_bindings/models/job_trigger.py +38 -0
  441. arthur_client/api_bindings/models/jobs_batch.py +95 -0
  442. arthur_client/api_bindings/models/jobs_sort.py +38 -0
  443. arthur_client/api_bindings/models/joined_dataset.py +98 -0
  444. arthur_client/api_bindings/models/keywords_config.py +87 -0
  445. arthur_client/api_bindings/models/list_datasets_job_spec.py +99 -0
  446. arthur_client/api_bindings/models/list_type.py +93 -0
  447. arthur_client/api_bindings/models/metrics_arg_spec.py +94 -0
  448. arthur_client/api_bindings/models/metrics_calculation_job_spec.py +104 -0
  449. arthur_client/api_bindings/models/metrics_column_list_parameter_schema.py +127 -0
  450. arthur_client/api_bindings/models/metrics_column_list_parameter_schema_allowed_column_types_inner.py +151 -0
  451. arthur_client/api_bindings/models/metrics_column_parameter_schema.py +127 -0
  452. arthur_client/api_bindings/models/metrics_dataset_parameter_schema.py +113 -0
  453. arthur_client/api_bindings/models/metrics_literal_parameter_schema.py +108 -0
  454. arthur_client/api_bindings/models/metrics_query_result.py +87 -0
  455. arthur_client/api_bindings/models/metrics_result_filter_op.py +43 -0
  456. arthur_client/api_bindings/models/metrics_upload.py +95 -0
  457. arthur_client/api_bindings/models/metrics_upload_metrics_inner.py +134 -0
  458. arthur_client/api_bindings/models/metrics_upload_result.py +93 -0
  459. arthur_client/api_bindings/models/metrics_version.py +98 -0
  460. arthur_client/api_bindings/models/metrics_versions_sort.py +39 -0
  461. arthur_client/api_bindings/models/model.py +153 -0
  462. arthur_client/api_bindings/models/model_metric_spec.py +97 -0
  463. arthur_client/api_bindings/models/model_metrics_schedule.py +98 -0
  464. arthur_client/api_bindings/models/model_problem_type.py +40 -0
  465. arthur_client/api_bindings/models/models_sort.py +38 -0
  466. arthur_client/api_bindings/models/new_rule_request.py +104 -0
  467. arthur_client/api_bindings/models/not_found_error.py +87 -0
  468. arthur_client/api_bindings/models/numeric_metric.py +97 -0
  469. arthur_client/api_bindings/models/numeric_point.py +90 -0
  470. arthur_client/api_bindings/models/numeric_time_series.py +105 -0
  471. arthur_client/api_bindings/models/object_type.py +102 -0
  472. arthur_client/api_bindings/models/object_value.py +151 -0
  473. arthur_client/api_bindings/models/organization.py +94 -0
  474. arthur_client/api_bindings/models/pagination.py +93 -0
  475. arthur_client/api_bindings/models/patch_alert_rule.py +146 -0
  476. arthur_client/api_bindings/models/patch_connector_spec.py +109 -0
  477. arthur_client/api_bindings/models/patch_data_plane.py +110 -0
  478. arthur_client/api_bindings/models/patch_data_plane_capabilities.py +92 -0
  479. arthur_client/api_bindings/models/patch_dataset.py +111 -0
  480. arthur_client/api_bindings/models/patch_dataset_locator.py +100 -0
  481. arthur_client/api_bindings/models/patch_group.py +99 -0
  482. arthur_client/api_bindings/models/patch_job.py +92 -0
  483. arthur_client/api_bindings/models/patch_model.py +106 -0
  484. arthur_client/api_bindings/models/patch_organization.py +92 -0
  485. arthur_client/api_bindings/models/patch_project.py +99 -0
  486. arthur_client/api_bindings/models/patch_service_account_user.py +92 -0
  487. arthur_client/api_bindings/models/patch_task_request.py +101 -0
  488. arthur_client/api_bindings/models/patch_user.py +113 -0
  489. arthur_client/api_bindings/models/patch_webhook.py +113 -0
  490. arthur_client/api_bindings/models/patch_workspace.py +87 -0
  491. arthur_client/api_bindings/models/permission.py +93 -0
  492. arthur_client/api_bindings/models/permission_name.py +167 -0
  493. arthur_client/api_bindings/models/permission_request_item.py +93 -0
  494. arthur_client/api_bindings/models/permission_response_item.py +95 -0
  495. arthur_client/api_bindings/models/permissions_request.py +96 -0
  496. arthur_client/api_bindings/models/permissions_response.py +95 -0
  497. arthur_client/api_bindings/models/pii_config.py +106 -0
  498. arthur_client/api_bindings/models/post_alert.py +124 -0
  499. arthur_client/api_bindings/models/post_alert_rule.py +111 -0
  500. arthur_client/api_bindings/models/post_alerts.py +96 -0
  501. arthur_client/api_bindings/models/post_connector_spec.py +104 -0
  502. arthur_client/api_bindings/models/post_data_plane.py +95 -0
  503. arthur_client/api_bindings/models/post_data_plane_association.py +89 -0
  504. arthur_client/api_bindings/models/post_data_retrieval_operation.py +106 -0
  505. arthur_client/api_bindings/models/post_dataset.py +128 -0
  506. arthur_client/api_bindings/models/post_dataset_join_spec.py +96 -0
  507. arthur_client/api_bindings/models/post_end_user.py +105 -0
  508. arthur_client/api_bindings/models/post_global_role_binding.py +92 -0
  509. arthur_client/api_bindings/models/post_group.py +94 -0
  510. arthur_client/api_bindings/models/post_group_membership.py +87 -0
  511. arthur_client/api_bindings/models/post_job.py +124 -0
  512. arthur_client/api_bindings/models/post_job_batch.py +95 -0
  513. arthur_client/api_bindings/models/post_job_kind.py +41 -0
  514. arthur_client/api_bindings/models/post_job_spec.py +194 -0
  515. arthur_client/api_bindings/models/post_link_task_request.py +96 -0
  516. arthur_client/api_bindings/models/post_metrics_query.py +117 -0
  517. arthur_client/api_bindings/models/post_metrics_query_result_filter.py +97 -0
  518. arthur_client/api_bindings/models/post_metrics_query_result_filter_and_group.py +97 -0
  519. arthur_client/api_bindings/models/post_metrics_query_result_filter_and_group_and_inner.py +151 -0
  520. arthur_client/api_bindings/models/post_metrics_query_result_filter_or_group.py +97 -0
  521. arthur_client/api_bindings/models/post_metrics_query_result_filter_or_group_or_inner.py +151 -0
  522. arthur_client/api_bindings/models/post_metrics_query_time_range.py +90 -0
  523. arthur_client/api_bindings/models/post_metrics_versions.py +90 -0
  524. arthur_client/api_bindings/models/post_model.py +115 -0
  525. arthur_client/api_bindings/models/post_project.py +94 -0
  526. arthur_client/api_bindings/models/post_role_binding.py +101 -0
  527. arthur_client/api_bindings/models/post_service_account.py +87 -0
  528. arthur_client/api_bindings/models/post_task_request.py +107 -0
  529. arthur_client/api_bindings/models/post_task_validation_api_key.py +91 -0
  530. arthur_client/api_bindings/models/post_upsolve_tenant.py +90 -0
  531. arthur_client/api_bindings/models/post_webhook.py +93 -0
  532. arthur_client/api_bindings/models/post_workspace.py +87 -0
  533. arthur_client/api_bindings/models/project.py +105 -0
  534. arthur_client/api_bindings/models/project_bound_resource_metadata.py +89 -0
  535. arthur_client/api_bindings/models/project_sort.py +38 -0
  536. arthur_client/api_bindings/models/put_available_dataset.py +133 -0
  537. arthur_client/api_bindings/models/put_available_datasets.py +95 -0
  538. arthur_client/api_bindings/models/put_dataset_schema.py +97 -0
  539. arthur_client/api_bindings/models/put_job_state.py +88 -0
  540. arthur_client/api_bindings/models/put_model_metric_spec.py +95 -0
  541. arthur_client/api_bindings/models/put_model_metrics_schedule.py +96 -0
  542. arthur_client/api_bindings/models/put_retrieved_data.py +87 -0
  543. arthur_client/api_bindings/models/put_task_connection_info.py +93 -0
  544. arthur_client/api_bindings/models/put_task_state_cache_request.py +91 -0
  545. arthur_client/api_bindings/models/regenerate_task_validation_key_job_spec.py +99 -0
  546. arthur_client/api_bindings/models/regex_config.py +87 -0
  547. arthur_client/api_bindings/models/register_user.py +87 -0
  548. arthur_client/api_bindings/models/resource_kind.py +51 -0
  549. arthur_client/api_bindings/models/resource_list_aggregation_spec_schema.py +101 -0
  550. arthur_client/api_bindings/models/resource_list_alert_rule.py +101 -0
  551. arthur_client/api_bindings/models/resource_list_available_dataset.py +101 -0
  552. arthur_client/api_bindings/models/resource_list_connector_spec.py +101 -0
  553. arthur_client/api_bindings/models/resource_list_connector_type.py +94 -0
  554. arthur_client/api_bindings/models/resource_list_data_plane.py +101 -0
  555. arthur_client/api_bindings/models/resource_list_data_plane_association.py +101 -0
  556. arthur_client/api_bindings/models/resource_list_dataset.py +101 -0
  557. arthur_client/api_bindings/models/resource_list_group.py +101 -0
  558. arthur_client/api_bindings/models/resource_list_group_membership.py +101 -0
  559. arthur_client/api_bindings/models/resource_list_job_error.py +101 -0
  560. arthur_client/api_bindings/models/resource_list_job_log.py +101 -0
  561. arthur_client/api_bindings/models/resource_list_job_run.py +101 -0
  562. arthur_client/api_bindings/models/resource_list_metrics_version.py +101 -0
  563. arthur_client/api_bindings/models/resource_list_model.py +101 -0
  564. arthur_client/api_bindings/models/resource_list_permission.py +101 -0
  565. arthur_client/api_bindings/models/resource_list_project.py +101 -0
  566. arthur_client/api_bindings/models/resource_list_role.py +101 -0
  567. arthur_client/api_bindings/models/resource_list_role_binding.py +101 -0
  568. arthur_client/api_bindings/models/resource_list_user.py +101 -0
  569. arthur_client/api_bindings/models/resource_list_webhook.py +101 -0
  570. arthur_client/api_bindings/models/resource_list_workspace.py +101 -0
  571. arthur_client/api_bindings/models/result_filter.py +155 -0
  572. arthur_client/api_bindings/models/role.py +114 -0
  573. arthur_client/api_bindings/models/role_binding.py +116 -0
  574. arthur_client/api_bindings/models/role_sort.py +38 -0
  575. arthur_client/api_bindings/models/rule_response.py +121 -0
  576. arthur_client/api_bindings/models/rule_response_config.py +185 -0
  577. arthur_client/api_bindings/models/rule_scope.py +37 -0
  578. arthur_client/api_bindings/models/rule_type.py +44 -0
  579. arthur_client/api_bindings/models/scalar_type.py +88 -0
  580. arthur_client/api_bindings/models/schedule_jobs_job_spec.py +102 -0
  581. arthur_client/api_bindings/models/schema_inspection_job_spec.py +101 -0
  582. arthur_client/api_bindings/models/scope_schema_tag.py +44 -0
  583. arthur_client/api_bindings/models/sensitive_data_plane.py +117 -0
  584. arthur_client/api_bindings/models/sensitive_user.py +142 -0
  585. arthur_client/api_bindings/models/service_account_credentials.py +89 -0
  586. arthur_client/api_bindings/models/sketch_metric.py +97 -0
  587. arthur_client/api_bindings/models/sketch_point.py +90 -0
  588. arthur_client/api_bindings/models/sketch_time_series.py +105 -0
  589. arthur_client/api_bindings/models/sort_order.py +37 -0
  590. arthur_client/api_bindings/models/task_connection_info.py +98 -0
  591. arthur_client/api_bindings/models/task_mutation_response.py +87 -0
  592. arthur_client/api_bindings/models/task_read_response.py +106 -0
  593. arthur_client/api_bindings/models/task_response.py +103 -0
  594. arthur_client/api_bindings/models/task_validation_api_key.py +91 -0
  595. arthur_client/api_bindings/models/task_validation_key_regeneration_response.py +87 -0
  596. arthur_client/api_bindings/models/toxicity_config.py +100 -0
  597. arthur_client/api_bindings/models/update_model_task_rules_job_spec.py +115 -0
  598. arthur_client/api_bindings/models/upsolve_token.py +87 -0
  599. arthur_client/api_bindings/models/user.py +136 -0
  600. arthur_client/api_bindings/models/user_credentials.py +87 -0
  601. arthur_client/api_bindings/models/user_service_account_credentials.py +142 -0
  602. arthur_client/api_bindings/models/user_sort.py +39 -0
  603. arthur_client/api_bindings/models/user_type.py +38 -0
  604. arthur_client/api_bindings/models/validate_alert_rule_query_req.py +87 -0
  605. arthur_client/api_bindings/models/validation_error.py +99 -0
  606. arthur_client/api_bindings/models/validation_error_loc_inner.py +138 -0
  607. arthur_client/api_bindings/models/webhook.py +113 -0
  608. arthur_client/api_bindings/models/webhook_response.py +99 -0
  609. arthur_client/api_bindings/models/webhook_result.py +103 -0
  610. arthur_client/api_bindings/models/webhook_sort.py +38 -0
  611. arthur_client/api_bindings/models/workspace.py +96 -0
  612. arthur_client/api_bindings/models/workspace_sort.py +38 -0
  613. arthur_client/api_bindings/rest.py +257 -0
  614. arthur_client/api_bindings/test/test_aggregation_metric_type.py +33 -0
  615. arthur_client/api_bindings/test/test_aggregation_spec.py +72 -0
  616. arthur_client/api_bindings/test/test_aggregation_spec_schema.py +70 -0
  617. arthur_client/api_bindings/test/test_aggregation_spec_schema_init_args_inner.py +70 -0
  618. arthur_client/api_bindings/test/test_alert.py +84 -0
  619. arthur_client/api_bindings/test/test_alert_bound.py +33 -0
  620. arthur_client/api_bindings/test/test_alert_check_job_spec.py +57 -0
  621. arthur_client/api_bindings/test/test_alert_rule.py +98 -0
  622. arthur_client/api_bindings/test/test_alert_rule_interval.py +54 -0
  623. arthur_client/api_bindings/test/test_alert_rule_notification_webhook.py +54 -0
  624. arthur_client/api_bindings/test/test_alert_rule_sort.py +33 -0
  625. arthur_client/api_bindings/test/test_alert_rule_sql_validation_resp.py +58 -0
  626. arthur_client/api_bindings/test/test_alert_rules_v1_api.py +73 -0
  627. arthur_client/api_bindings/test/test_alert_sort.py +33 -0
  628. arthur_client/api_bindings/test/test_alert_webhook_called.py +64 -0
  629. arthur_client/api_bindings/test/test_alerts_v1_api.py +52 -0
  630. arthur_client/api_bindings/test/test_authorization_v1_api.py +115 -0
  631. arthur_client/api_bindings/test/test_available_dataset.py +94 -0
  632. arthur_client/api_bindings/test/test_available_datasets_sort.py +33 -0
  633. arthur_client/api_bindings/test/test_bad_request_error.py +51 -0
  634. arthur_client/api_bindings/test/test_base_role.py +56 -0
  635. arthur_client/api_bindings/test/test_bound_member.py +54 -0
  636. arthur_client/api_bindings/test/test_bound_member_kind.py +33 -0
  637. arthur_client/api_bindings/test/test_bound_resource.py +57 -0
  638. arthur_client/api_bindings/test/test_bound_resource_kind.py +33 -0
  639. arthur_client/api_bindings/test/test_bound_role.py +54 -0
  640. arthur_client/api_bindings/test/test_config.py +77 -0
  641. arthur_client/api_bindings/test/test_conflict_error.py +51 -0
  642. arthur_client/api_bindings/test/test_connector_check_job_spec.py +53 -0
  643. arthur_client/api_bindings/test/test_connector_check_outcome.py +33 -0
  644. arthur_client/api_bindings/test/test_connector_check_result.py +53 -0
  645. arthur_client/api_bindings/test/test_connector_field_data_type.py +33 -0
  646. arthur_client/api_bindings/test/test_connector_pagination_options.py +52 -0
  647. arthur_client/api_bindings/test/test_connector_schemas_v1_api.py +45 -0
  648. arthur_client/api_bindings/test/test_connector_spec.py +96 -0
  649. arthur_client/api_bindings/test/test_connector_spec_field.py +54 -0
  650. arthur_client/api_bindings/test/test_connector_spec_field_with_metadata.py +58 -0
  651. arthur_client/api_bindings/test/test_connector_spec_schema.py +102 -0
  652. arthur_client/api_bindings/test/test_connector_spec_schema_field.py +63 -0
  653. arthur_client/api_bindings/test/test_connector_type.py +33 -0
  654. arthur_client/api_bindings/test/test_connectors_sort.py +33 -0
  655. arthur_client/api_bindings/test/test_connectors_v1_api.py +80 -0
  656. arthur_client/api_bindings/test/test_create_model_link_task_job_spec.py +56 -0
  657. arthur_client/api_bindings/test/test_create_model_task_job_spec.py +72 -0
  658. arthur_client/api_bindings/test/test_created_alerts.py +102 -0
  659. arthur_client/api_bindings/test/test_credentials.py +56 -0
  660. arthur_client/api_bindings/test/test_d_type.py +33 -0
  661. arthur_client/api_bindings/test/test_data_plane.py +70 -0
  662. arthur_client/api_bindings/test/test_data_plane_association.py +79 -0
  663. arthur_client/api_bindings/test/test_data_plane_association_sort.py +33 -0
  664. arthur_client/api_bindings/test/test_data_plane_associations_v1_api.py +66 -0
  665. arthur_client/api_bindings/test/test_data_plane_capabilities.py +51 -0
  666. arthur_client/api_bindings/test/test_data_plane_sort.py +33 -0
  667. arthur_client/api_bindings/test/test_data_planes_v1_api.py +73 -0
  668. arthur_client/api_bindings/test/test_data_result_filter.py +56 -0
  669. arthur_client/api_bindings/test/test_data_result_filter_op.py +33 -0
  670. arthur_client/api_bindings/test/test_data_retrieval_data.py +54 -0
  671. arthur_client/api_bindings/test/test_data_retrieval_operation.py +59 -0
  672. arthur_client/api_bindings/test/test_data_retrieval_status.py +33 -0
  673. arthur_client/api_bindings/test/test_data_retrieval_v1_api.py +87 -0
  674. arthur_client/api_bindings/test/test_dataset.py +117 -0
  675. arthur_client/api_bindings/test/test_dataset_column.py +55 -0
  676. arthur_client/api_bindings/test/test_dataset_connector.py +56 -0
  677. arthur_client/api_bindings/test/test_dataset_join_kind.py +33 -0
  678. arthur_client/api_bindings/test/test_dataset_join_spec.py +71 -0
  679. arthur_client/api_bindings/test/test_dataset_list_type.py +57 -0
  680. arthur_client/api_bindings/test/test_dataset_locator.py +60 -0
  681. arthur_client/api_bindings/test/test_dataset_locator_field.py +54 -0
  682. arthur_client/api_bindings/test/test_dataset_locator_field_data_type.py +33 -0
  683. arthur_client/api_bindings/test/test_dataset_locator_schema.py +70 -0
  684. arthur_client/api_bindings/test/test_dataset_locator_schema_field.py +61 -0
  685. arthur_client/api_bindings/test/test_dataset_object_type.py +61 -0
  686. arthur_client/api_bindings/test/test_dataset_reference.py +56 -0
  687. arthur_client/api_bindings/test/test_dataset_scalar_type.py +57 -0
  688. arthur_client/api_bindings/test/test_dataset_schema.py +74 -0
  689. arthur_client/api_bindings/test/test_datasets_sort.py +33 -0
  690. arthur_client/api_bindings/test/test_datasets_v1_api.py +129 -0
  691. arthur_client/api_bindings/test/test_default_api.py +38 -0
  692. arthur_client/api_bindings/test/test_definition.py +65 -0
  693. arthur_client/api_bindings/test/test_delete_group_membership.py +56 -0
  694. arthur_client/api_bindings/test/test_delete_model_task_job_spec.py +53 -0
  695. arthur_client/api_bindings/test/test_dimension.py +54 -0
  696. arthur_client/api_bindings/test/test_example_config.py +54 -0
  697. arthur_client/api_bindings/test/test_examples_config.py +57 -0
  698. arthur_client/api_bindings/test/test_extended_role.py +92 -0
  699. arthur_client/api_bindings/test/test_feature_flags_v1_api.py +38 -0
  700. arthur_client/api_bindings/test/test_fetch_data_job_spec.py +77 -0
  701. arthur_client/api_bindings/test/test_fetch_model_task_job_spec.py +53 -0
  702. arthur_client/api_bindings/test/test_generate_metrics_spec_request.py +56 -0
  703. arthur_client/api_bindings/test/test_group.py +63 -0
  704. arthur_client/api_bindings/test/test_group_membership.py +74 -0
  705. arthur_client/api_bindings/test/test_group_sort.py +33 -0
  706. arthur_client/api_bindings/test/test_groups_v1_api.py +94 -0
  707. arthur_client/api_bindings/test/test_health_status.py +51 -0
  708. arthur_client/api_bindings/test/test_http_validation_error.py +58 -0
  709. arthur_client/api_bindings/test/test_infinite_pagination.py +52 -0
  710. arthur_client/api_bindings/test/test_infinite_resource_list_alert.py +98 -0
  711. arthur_client/api_bindings/test/test_infinite_resource_list_job.py +126 -0
  712. arthur_client/api_bindings/test/test_internal_server_error.py +51 -0
  713. arthur_client/api_bindings/test/test_interval_unit.py +33 -0
  714. arthur_client/api_bindings/test/test_invite_new_user.py +59 -0
  715. arthur_client/api_bindings/test/test_items.py +65 -0
  716. arthur_client/api_bindings/test/test_items1.py +60 -0
  717. arthur_client/api_bindings/test/test_job.py +94 -0
  718. arthur_client/api_bindings/test/test_job_dequeue_parameters.py +52 -0
  719. arthur_client/api_bindings/test/test_job_error.py +52 -0
  720. arthur_client/api_bindings/test/test_job_errors.py +58 -0
  721. arthur_client/api_bindings/test/test_job_kind.py +33 -0
  722. arthur_client/api_bindings/test/test_job_log.py +56 -0
  723. arthur_client/api_bindings/test/test_job_log_level.py +33 -0
  724. arthur_client/api_bindings/test/test_job_logs.py +62 -0
  725. arthur_client/api_bindings/test/test_job_priority.py +33 -0
  726. arthur_client/api_bindings/test/test_job_run.py +61 -0
  727. arthur_client/api_bindings/test/test_job_spec.py +124 -0
  728. arthur_client/api_bindings/test/test_job_state.py +33 -0
  729. arthur_client/api_bindings/test/test_job_trigger.py +33 -0
  730. arthur_client/api_bindings/test/test_jobs_batch.py +120 -0
  731. arthur_client/api_bindings/test/test_jobs_sort.py +33 -0
  732. arthur_client/api_bindings/test/test_jobs_v1_api.py +108 -0
  733. arthur_client/api_bindings/test/test_joined_dataset.py +58 -0
  734. arthur_client/api_bindings/test/test_keywords_config.py +56 -0
  735. arthur_client/api_bindings/test/test_list_datasets_job_spec.py +53 -0
  736. arthur_client/api_bindings/test/test_list_type.py +52 -0
  737. arthur_client/api_bindings/test/test_metric_functions_v1_api.py +38 -0
  738. arthur_client/api_bindings/test/test_metrics_arg_spec.py +54 -0
  739. arthur_client/api_bindings/test/test_metrics_calculation_job_spec.py +57 -0
  740. arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema.py +67 -0
  741. arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema_allowed_column_types_inner.py +60 -0
  742. arthur_client/api_bindings/test/test_metrics_column_parameter_schema.py +67 -0
  743. arthur_client/api_bindings/test/test_metrics_dataset_parameter_schema.py +59 -0
  744. arthur_client/api_bindings/test/test_metrics_literal_parameter_schema.py +60 -0
  745. arthur_client/api_bindings/test/test_metrics_query_result.py +56 -0
  746. arthur_client/api_bindings/test/test_metrics_result_filter_op.py +33 -0
  747. arthur_client/api_bindings/test/test_metrics_upload.py +56 -0
  748. arthur_client/api_bindings/test/test_metrics_upload_metrics_inner.py +104 -0
  749. arthur_client/api_bindings/test/test_metrics_upload_result.py +58 -0
  750. arthur_client/api_bindings/test/test_metrics_v1_api.py +59 -0
  751. arthur_client/api_bindings/test/test_metrics_version.py +62 -0
  752. arthur_client/api_bindings/test/test_metrics_versions_sort.py +33 -0
  753. arthur_client/api_bindings/test/test_model.py +133 -0
  754. arthur_client/api_bindings/test/test_model_metric_spec.py +80 -0
  755. arthur_client/api_bindings/test/test_model_metrics_schedule.py +57 -0
  756. arthur_client/api_bindings/test/test_model_problem_type.py +33 -0
  757. arthur_client/api_bindings/test/test_models_sort.py +33 -0
  758. arthur_client/api_bindings/test/test_models_v1_api.py +94 -0
  759. arthur_client/api_bindings/test/test_new_rule_request.py +59 -0
  760. arthur_client/api_bindings/test/test_not_found_error.py +51 -0
  761. arthur_client/api_bindings/test/test_numeric_metric.py +78 -0
  762. arthur_client/api_bindings/test/test_numeric_point.py +54 -0
  763. arthur_client/api_bindings/test/test_numeric_time_series.py +70 -0
  764. arthur_client/api_bindings/test/test_o_auth_v1_api.py +38 -0
  765. arthur_client/api_bindings/test/test_object_type.py +56 -0
  766. arthur_client/api_bindings/test/test_object_value.py +65 -0
  767. arthur_client/api_bindings/test/test_organization.py +58 -0
  768. arthur_client/api_bindings/test/test_organizations_v1_api.py +52 -0
  769. arthur_client/api_bindings/test/test_pagination.py +56 -0
  770. arthur_client/api_bindings/test/test_patch_alert_rule.py +62 -0
  771. arthur_client/api_bindings/test/test_patch_connector_spec.py +57 -0
  772. arthur_client/api_bindings/test/test_patch_data_plane.py +54 -0
  773. arthur_client/api_bindings/test/test_patch_data_plane_capabilities.py +51 -0
  774. arthur_client/api_bindings/test/test_patch_dataset.py +58 -0
  775. arthur_client/api_bindings/test/test_patch_dataset_locator.py +55 -0
  776. arthur_client/api_bindings/test/test_patch_group.py +52 -0
  777. arthur_client/api_bindings/test/test_patch_job.py +52 -0
  778. arthur_client/api_bindings/test/test_patch_model.py +55 -0
  779. arthur_client/api_bindings/test/test_patch_organization.py +51 -0
  780. arthur_client/api_bindings/test/test_patch_project.py +52 -0
  781. arthur_client/api_bindings/test/test_patch_service_account_user.py +51 -0
  782. arthur_client/api_bindings/test/test_patch_task_request.py +67 -0
  783. arthur_client/api_bindings/test/test_patch_user.py +54 -0
  784. arthur_client/api_bindings/test/test_patch_webhook.py +58 -0
  785. arthur_client/api_bindings/test/test_patch_workspace.py +52 -0
  786. arthur_client/api_bindings/test/test_permission.py +56 -0
  787. arthur_client/api_bindings/test/test_permission_name.py +33 -0
  788. arthur_client/api_bindings/test/test_permission_request_item.py +56 -0
  789. arthur_client/api_bindings/test/test_permission_response_item.py +58 -0
  790. arthur_client/api_bindings/test/test_permissions_request.py +62 -0
  791. arthur_client/api_bindings/test/test_permissions_response.py +64 -0
  792. arthur_client/api_bindings/test/test_pii_config.py +57 -0
  793. arthur_client/api_bindings/test/test_post_alert.py +71 -0
  794. arthur_client/api_bindings/test/test_post_alert_rule.py +70 -0
  795. arthur_client/api_bindings/test/test_post_alerts.py +78 -0
  796. arthur_client/api_bindings/test/test_post_connector_spec.py +67 -0
  797. arthur_client/api_bindings/test/test_post_data_plane.py +56 -0
  798. arthur_client/api_bindings/test/test_post_data_plane_association.py +54 -0
  799. arthur_client/api_bindings/test/test_post_data_retrieval_operation.py +63 -0
  800. arthur_client/api_bindings/test/test_post_dataset.py +75 -0
  801. arthur_client/api_bindings/test/test_post_dataset_join_spec.py +59 -0
  802. arthur_client/api_bindings/test/test_post_end_user.py +58 -0
  803. arthur_client/api_bindings/test/test_post_global_role_binding.py +56 -0
  804. arthur_client/api_bindings/test/test_post_group.py +53 -0
  805. arthur_client/api_bindings/test/test_post_group_membership.py +56 -0
  806. arthur_client/api_bindings/test/test_post_job.py +58 -0
  807. arthur_client/api_bindings/test/test_post_job_batch.py +68 -0
  808. arthur_client/api_bindings/test/test_post_job_kind.py +33 -0
  809. arthur_client/api_bindings/test/test_post_job_spec.py +65 -0
  810. arthur_client/api_bindings/test/test_post_link_task_request.py +55 -0
  811. arthur_client/api_bindings/test/test_post_metrics_query.py +63 -0
  812. arthur_client/api_bindings/test/test_post_metrics_query_result_filter.py +56 -0
  813. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_and_group.py +56 -0
  814. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_and_group_and_inner.py +68 -0
  815. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_or_group.py +56 -0
  816. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_or_group_or_inner.py +68 -0
  817. arthur_client/api_bindings/test/test_post_metrics_query_time_range.py +54 -0
  818. arthur_client/api_bindings/test/test_post_metrics_versions.py +54 -0
  819. arthur_client/api_bindings/test/test_post_model.py +75 -0
  820. arthur_client/api_bindings/test/test_post_project.py +53 -0
  821. arthur_client/api_bindings/test/test_post_role_binding.py +54 -0
  822. arthur_client/api_bindings/test/test_post_service_account.py +52 -0
  823. arthur_client/api_bindings/test/test_post_task_request.py +63 -0
  824. arthur_client/api_bindings/test/test_post_task_validation_api_key.py +56 -0
  825. arthur_client/api_bindings/test/test_post_upsolve_tenant.py +54 -0
  826. arthur_client/api_bindings/test/test_post_webhook.py +61 -0
  827. arthur_client/api_bindings/test/test_post_workspace.py +52 -0
  828. arthur_client/api_bindings/test/test_project.py +63 -0
  829. arthur_client/api_bindings/test/test_project_bound_resource_metadata.py +54 -0
  830. arthur_client/api_bindings/test/test_project_sort.py +33 -0
  831. arthur_client/api_bindings/test/test_projects_v1_api.py +66 -0
  832. arthur_client/api_bindings/test/test_put_available_dataset.py +74 -0
  833. arthur_client/api_bindings/test/test_put_available_datasets.py +104 -0
  834. arthur_client/api_bindings/test/test_put_dataset_schema.py +68 -0
  835. arthur_client/api_bindings/test/test_put_job_state.py +52 -0
  836. arthur_client/api_bindings/test/test_put_model_metric_spec.py +78 -0
  837. arthur_client/api_bindings/test/test_put_model_metrics_schedule.py +55 -0
  838. arthur_client/api_bindings/test/test_put_retrieved_data.py +52 -0
  839. arthur_client/api_bindings/test/test_put_task_connection_info.py +60 -0
  840. arthur_client/api_bindings/test/test_put_task_state_cache_request.py +86 -0
  841. arthur_client/api_bindings/test/test_regenerate_task_validation_key_job_spec.py +53 -0
  842. arthur_client/api_bindings/test/test_regex_config.py +56 -0
  843. arthur_client/api_bindings/test/test_register_user.py +52 -0
  844. arthur_client/api_bindings/test/test_registration_v1_api.py +38 -0
  845. arthur_client/api_bindings/test/test_resource_kind.py +33 -0
  846. arthur_client/api_bindings/test/test_resource_list_aggregation_spec_schema.py +86 -0
  847. arthur_client/api_bindings/test/test_resource_list_alert_rule.py +128 -0
  848. arthur_client/api_bindings/test/test_resource_list_available_dataset.py +144 -0
  849. arthur_client/api_bindings/test/test_resource_list_connector_spec.py +128 -0
  850. arthur_client/api_bindings/test/test_resource_list_connector_type.py +66 -0
  851. arthur_client/api_bindings/test/test_resource_list_data_plane.py +86 -0
  852. arthur_client/api_bindings/test/test_resource_list_data_plane_association.py +114 -0
  853. arthur_client/api_bindings/test/test_resource_list_dataset.py +150 -0
  854. arthur_client/api_bindings/test/test_resource_list_group.py +80 -0
  855. arthur_client/api_bindings/test/test_resource_list_group_membership.py +90 -0
  856. arthur_client/api_bindings/test/test_resource_list_job_error.py +68 -0
  857. arthur_client/api_bindings/test/test_resource_list_job_log.py +72 -0
  858. arthur_client/api_bindings/test/test_resource_list_job_run.py +78 -0
  859. arthur_client/api_bindings/test/test_resource_list_metrics_version.py +78 -0
  860. arthur_client/api_bindings/test/test_resource_list_model.py +168 -0
  861. arthur_client/api_bindings/test/test_resource_list_permission.py +72 -0
  862. arthur_client/api_bindings/test/test_resource_list_project.py +80 -0
  863. arthur_client/api_bindings/test/test_resource_list_role.py +96 -0
  864. arthur_client/api_bindings/test/test_resource_list_role_binding.py +100 -0
  865. arthur_client/api_bindings/test/test_resource_list_user.py +90 -0
  866. arthur_client/api_bindings/test/test_resource_list_webhook.py +116 -0
  867. arthur_client/api_bindings/test/test_resource_list_workspace.py +76 -0
  868. arthur_client/api_bindings/test/test_result_filter.py +68 -0
  869. arthur_client/api_bindings/test/test_role.py +80 -0
  870. arthur_client/api_bindings/test/test_role_binding.py +84 -0
  871. arthur_client/api_bindings/test/test_role_sort.py +33 -0
  872. arthur_client/api_bindings/test/test_roles_v1_api.py +38 -0
  873. arthur_client/api_bindings/test/test_rule_response.py +68 -0
  874. arthur_client/api_bindings/test/test_rule_response_config.py +77 -0
  875. arthur_client/api_bindings/test/test_rule_scope.py +33 -0
  876. arthur_client/api_bindings/test/test_rule_type.py +33 -0
  877. arthur_client/api_bindings/test/test_scalar_type.py +52 -0
  878. arthur_client/api_bindings/test/test_schedule_jobs_job_spec.py +55 -0
  879. arthur_client/api_bindings/test/test_schema_inspection_job_spec.py +55 -0
  880. arthur_client/api_bindings/test/test_scope_schema_tag.py +33 -0
  881. arthur_client/api_bindings/test/test_sensitive_data_plane.py +74 -0
  882. arthur_client/api_bindings/test/test_sensitive_user.py +72 -0
  883. arthur_client/api_bindings/test/test_service_account_credentials.py +54 -0
  884. arthur_client/api_bindings/test/test_sketch_metric.py +78 -0
  885. arthur_client/api_bindings/test/test_sketch_point.py +54 -0
  886. arthur_client/api_bindings/test/test_sketch_time_series.py +70 -0
  887. arthur_client/api_bindings/test/test_sort_order.py +33 -0
  888. arthur_client/api_bindings/test/test_task_connection_info.py +64 -0
  889. arthur_client/api_bindings/test/test_task_mutation_response.py +52 -0
  890. arthur_client/api_bindings/test/test_task_read_response.py +71 -0
  891. arthur_client/api_bindings/test/test_task_response.py +84 -0
  892. arthur_client/api_bindings/test/test_task_validation_api_key.py +56 -0
  893. arthur_client/api_bindings/test/test_task_validation_key_regeneration_response.py +52 -0
  894. arthur_client/api_bindings/test/test_tasks_v1_api.py +108 -0
  895. arthur_client/api_bindings/test/test_toxicity_config.py +51 -0
  896. arthur_client/api_bindings/test/test_update_model_task_rules_job_spec.py +70 -0
  897. arthur_client/api_bindings/test/test_upsolve_token.py +52 -0
  898. arthur_client/api_bindings/test/test_upsolve_v1_api.py +38 -0
  899. arthur_client/api_bindings/test/test_user.py +70 -0
  900. arthur_client/api_bindings/test/test_user_credentials.py +52 -0
  901. arthur_client/api_bindings/test/test_user_service_account_credentials.py +76 -0
  902. arthur_client/api_bindings/test/test_user_sort.py +33 -0
  903. arthur_client/api_bindings/test/test_user_type.py +33 -0
  904. arthur_client/api_bindings/test/test_users_v1_api.py +101 -0
  905. arthur_client/api_bindings/test/test_validate_alert_rule_query_req.py +52 -0
  906. arthur_client/api_bindings/test/test_validation_error.py +60 -0
  907. arthur_client/api_bindings/test/test_validation_error_loc_inner.py +50 -0
  908. arthur_client/api_bindings/test/test_webhook.py +82 -0
  909. arthur_client/api_bindings/test/test_webhook_response.py +54 -0
  910. arthur_client/api_bindings/test/test_webhook_result.py +58 -0
  911. arthur_client/api_bindings/test/test_webhook_sort.py +33 -0
  912. arthur_client/api_bindings/test/test_webhooks_v1_api.py +73 -0
  913. arthur_client/api_bindings/test/test_workspace.py +60 -0
  914. arthur_client/api_bindings/test/test_workspace_sort.py +33 -0
  915. arthur_client/api_bindings/test/test_workspaces_v1_api.py +66 -0
  916. arthur_client/api_bindings_README.md +514 -0
  917. arthur_client/auth/__init__.py +4 -0
  918. arthur_client/auth/constants.py +1 -0
  919. arthur_client/auth/device_authorizer.py +74 -0
  920. arthur_client/auth/discovery.py +40 -0
  921. arthur_client/auth/oauth_api_config.py +38 -0
  922. arthur_client/auth/session.py +84 -0
  923. arthur_client-1.4.1186.dist-info/METADATA +40 -0
  924. arthur_client-1.4.1186.dist-info/RECORD +927 -0
  925. {arthur_client-1.4.0.dist-info → arthur_client-1.4.1186.dist-info}/WHEEL +1 -2
  926. arthur/client/__init__.py +0 -3
  927. arthur/client/auth/helpers.py +0 -123
  928. arthur/client/auth/refresh.py +0 -67
  929. arthur/client/helpers.py +0 -48
  930. arthur/client/http/helper.py +0 -47
  931. arthur/client/http/requests.py +0 -654
  932. arthur/client/http/validation.py +0 -197
  933. arthur/client/rest/__init__.py +0 -16
  934. arthur/client/rest/admin/__init__.py +0 -2
  935. arthur/client/rest/admin/client.py +0 -330
  936. arthur/client/rest/admin/models.py +0 -457
  937. arthur/client/rest/alerts/__init__.py +0 -2
  938. arthur/client/rest/alerts/client.py +0 -589
  939. arthur/client/rest/alerts/models.py +0 -695
  940. arthur/client/rest/bench/__init__.py +0 -2
  941. arthur/client/rest/bench/client.py +0 -280
  942. arthur/client/rest/bench/models.py +0 -229
  943. arthur/client/rest/client.py +0 -158
  944. arthur/client/rest/common/__init__.py +0 -2
  945. arthur/client/rest/common/client.py +0 -25
  946. arthur/client/rest/common/models.py +0 -317
  947. arthur/client/rest/enrichments/__init__.py +0 -2
  948. arthur/client/rest/enrichments/client.py +0 -352
  949. arthur/client/rest/enrichments/models.py +0 -483
  950. arthur/client/rest/inferences/__init__.py +0 -2
  951. arthur/client/rest/inferences/client.py +0 -268
  952. arthur/client/rest/inferences/models.py +0 -432
  953. arthur/client/rest/insights/__init__.py +0 -2
  954. arthur/client/rest/insights/client.py +0 -199
  955. arthur/client/rest/insights/models.py +0 -182
  956. arthur/client/rest/metrics/__init__.py +0 -2
  957. arthur/client/rest/metrics/client.py +0 -296
  958. arthur/client/rest/metrics/models.py +0 -325
  959. arthur/client/rest/model_groups/__init__.py +0 -2
  960. arthur/client/rest/model_groups/client.py +0 -153
  961. arthur/client/rest/model_groups/models.py +0 -80
  962. arthur/client/rest/models/__init__.py +0 -2
  963. arthur/client/rest/models/client.py +0 -534
  964. arthur/client/rest/models/models.py +0 -565
  965. arthur/client/rest/query/__init__.py +0 -2
  966. arthur/client/rest/query/client.py +0 -123
  967. arthur/client/rest/query/models.py +0 -133
  968. arthur/client/rest/users/__init__.py +0 -2
  969. arthur/client/rest/users/client.py +0 -171
  970. arthur/client/rest/users/models.py +0 -317
  971. arthur/client/types.py +0 -9
  972. arthur/client/version.py +0 -2
  973. arthur/common/__init__.py +0 -3
  974. arthur/common/constants.py +0 -5
  975. arthur/common/exceptions.py +0 -183
  976. arthur/common/log.py +0 -79
  977. arthur_client-1.4.0.dist-info/LICENSE +0 -21
  978. arthur_client-1.4.0.dist-info/METADATA +0 -49
  979. arthur_client-1.4.0.dist-info/RECORD +0 -58
  980. arthur_client-1.4.0.dist-info/top_level.txt +0 -1
  981. {arthur/client/auth → arthur_client}/__init__.py +0 -0
  982. {arthur/client/http → arthur_client/api_bindings/test}/__init__.py +0 -0
@@ -0,0 +1,4346 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arthur Scope
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBool, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from arthur_client.api_bindings.models.available_dataset import AvailableDataset
23
+ from arthur_client.api_bindings.models.available_datasets_sort import AvailableDatasetsSort
24
+ from arthur_client.api_bindings.models.connector_type import ConnectorType
25
+ from arthur_client.api_bindings.models.dataset import Dataset
26
+ from arthur_client.api_bindings.models.datasets_sort import DatasetsSort
27
+ from arthur_client.api_bindings.models.patch_dataset import PatchDataset
28
+ from arthur_client.api_bindings.models.post_dataset import PostDataset
29
+ from arthur_client.api_bindings.models.put_available_dataset import PutAvailableDataset
30
+ from arthur_client.api_bindings.models.put_available_datasets import PutAvailableDatasets
31
+ from arthur_client.api_bindings.models.put_dataset_schema import PutDatasetSchema
32
+ from arthur_client.api_bindings.models.resource_list_available_dataset import ResourceListAvailableDataset
33
+ from arthur_client.api_bindings.models.resource_list_dataset import ResourceListDataset
34
+ from arthur_client.api_bindings.models.sort_order import SortOrder
35
+
36
+ from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
37
+ from arthur_client.api_bindings.api_response import ApiResponse
38
+ from arthur_client.api_bindings.rest import RESTResponseType
39
+
40
+
41
+ class DatasetsV1Api:
42
+ """NOTE: This class is auto generated by OpenAPI Generator
43
+ Ref: https://openapi-generator.tech
44
+
45
+ Do not edit the class manually.
46
+ """
47
+
48
+ def __init__(self, api_client=None) -> None:
49
+ if api_client is None:
50
+ api_client = ApiClient.get_default()
51
+ self.api_client = api_client
52
+
53
+
54
+ @validate_call
55
+ def delete_dataset(
56
+ self,
57
+ dataset_id: StrictStr,
58
+ _request_timeout: Union[
59
+ None,
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Tuple[
62
+ Annotated[StrictFloat, Field(gt=0)],
63
+ Annotated[StrictFloat, Field(gt=0)]
64
+ ]
65
+ ] = None,
66
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
67
+ _content_type: Optional[StrictStr] = None,
68
+ _headers: Optional[Dict[StrictStr, Any]] = None,
69
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
70
+ ) -> None:
71
+ """Delete Dataset
72
+
73
+ Delete a dataset. Requires dataset_delete permission.
74
+
75
+ :param dataset_id: (required)
76
+ :type dataset_id: str
77
+ :param _request_timeout: timeout setting for this request. If one
78
+ number provided, it will be total request
79
+ timeout. It can also be a pair (tuple) of
80
+ (connection, read) timeouts.
81
+ :type _request_timeout: int, tuple(int, int), optional
82
+ :param _request_auth: set to override the auth_settings for an a single
83
+ request; this effectively ignores the
84
+ authentication in the spec for a single request.
85
+ :type _request_auth: dict, optional
86
+ :param _content_type: force content-type for the request.
87
+ :type _content_type: str, Optional
88
+ :param _headers: set to override the headers for a single
89
+ request; this effectively ignores the headers
90
+ in the spec for a single request.
91
+ :type _headers: dict, optional
92
+ :param _host_index: set to override the host_index for a single
93
+ request; this effectively ignores the host_index
94
+ in the spec for a single request.
95
+ :type _host_index: int, optional
96
+ :return: Returns the result object.
97
+ """ # noqa: E501
98
+
99
+ _param = self._delete_dataset_serialize(
100
+ dataset_id=dataset_id,
101
+ _request_auth=_request_auth,
102
+ _content_type=_content_type,
103
+ _headers=_headers,
104
+ _host_index=_host_index
105
+ )
106
+
107
+ _response_types_map: Dict[str, Optional[str]] = {
108
+ '204': None,
109
+ '500': "InternalServerError",
110
+ '400': "BadRequestError",
111
+ '422': "HTTPValidationError",
112
+ }
113
+ response_data = self.api_client.call_api(
114
+ *_param,
115
+ _request_timeout=_request_timeout
116
+ )
117
+ response_data.read()
118
+ return self.api_client.response_deserialize(
119
+ response_data=response_data,
120
+ response_types_map=_response_types_map,
121
+ ).data
122
+
123
+
124
+ @validate_call
125
+ def delete_dataset_with_http_info(
126
+ self,
127
+ dataset_id: StrictStr,
128
+ _request_timeout: Union[
129
+ None,
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Tuple[
132
+ Annotated[StrictFloat, Field(gt=0)],
133
+ Annotated[StrictFloat, Field(gt=0)]
134
+ ]
135
+ ] = None,
136
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
137
+ _content_type: Optional[StrictStr] = None,
138
+ _headers: Optional[Dict[StrictStr, Any]] = None,
139
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
140
+ ) -> ApiResponse[None]:
141
+ """Delete Dataset
142
+
143
+ Delete a dataset. Requires dataset_delete permission.
144
+
145
+ :param dataset_id: (required)
146
+ :type dataset_id: str
147
+ :param _request_timeout: timeout setting for this request. If one
148
+ number provided, it will be total request
149
+ timeout. It can also be a pair (tuple) of
150
+ (connection, read) timeouts.
151
+ :type _request_timeout: int, tuple(int, int), optional
152
+ :param _request_auth: set to override the auth_settings for an a single
153
+ request; this effectively ignores the
154
+ authentication in the spec for a single request.
155
+ :type _request_auth: dict, optional
156
+ :param _content_type: force content-type for the request.
157
+ :type _content_type: str, Optional
158
+ :param _headers: set to override the headers for a single
159
+ request; this effectively ignores the headers
160
+ in the spec for a single request.
161
+ :type _headers: dict, optional
162
+ :param _host_index: set to override the host_index for a single
163
+ request; this effectively ignores the host_index
164
+ in the spec for a single request.
165
+ :type _host_index: int, optional
166
+ :return: Returns the result object.
167
+ """ # noqa: E501
168
+
169
+ _param = self._delete_dataset_serialize(
170
+ dataset_id=dataset_id,
171
+ _request_auth=_request_auth,
172
+ _content_type=_content_type,
173
+ _headers=_headers,
174
+ _host_index=_host_index
175
+ )
176
+
177
+ _response_types_map: Dict[str, Optional[str]] = {
178
+ '204': None,
179
+ '500': "InternalServerError",
180
+ '400': "BadRequestError",
181
+ '422': "HTTPValidationError",
182
+ }
183
+ response_data = self.api_client.call_api(
184
+ *_param,
185
+ _request_timeout=_request_timeout
186
+ )
187
+ response_data.read()
188
+ return self.api_client.response_deserialize(
189
+ response_data=response_data,
190
+ response_types_map=_response_types_map,
191
+ )
192
+
193
+
194
+ @validate_call
195
+ def delete_dataset_without_preload_content(
196
+ self,
197
+ dataset_id: StrictStr,
198
+ _request_timeout: Union[
199
+ None,
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Tuple[
202
+ Annotated[StrictFloat, Field(gt=0)],
203
+ Annotated[StrictFloat, Field(gt=0)]
204
+ ]
205
+ ] = None,
206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
207
+ _content_type: Optional[StrictStr] = None,
208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
210
+ ) -> RESTResponseType:
211
+ """Delete Dataset
212
+
213
+ Delete a dataset. Requires dataset_delete permission.
214
+
215
+ :param dataset_id: (required)
216
+ :type dataset_id: str
217
+ :param _request_timeout: timeout setting for this request. If one
218
+ number provided, it will be total request
219
+ timeout. It can also be a pair (tuple) of
220
+ (connection, read) timeouts.
221
+ :type _request_timeout: int, tuple(int, int), optional
222
+ :param _request_auth: set to override the auth_settings for an a single
223
+ request; this effectively ignores the
224
+ authentication in the spec for a single request.
225
+ :type _request_auth: dict, optional
226
+ :param _content_type: force content-type for the request.
227
+ :type _content_type: str, Optional
228
+ :param _headers: set to override the headers for a single
229
+ request; this effectively ignores the headers
230
+ in the spec for a single request.
231
+ :type _headers: dict, optional
232
+ :param _host_index: set to override the host_index for a single
233
+ request; this effectively ignores the host_index
234
+ in the spec for a single request.
235
+ :type _host_index: int, optional
236
+ :return: Returns the result object.
237
+ """ # noqa: E501
238
+
239
+ _param = self._delete_dataset_serialize(
240
+ dataset_id=dataset_id,
241
+ _request_auth=_request_auth,
242
+ _content_type=_content_type,
243
+ _headers=_headers,
244
+ _host_index=_host_index
245
+ )
246
+
247
+ _response_types_map: Dict[str, Optional[str]] = {
248
+ '204': None,
249
+ '500': "InternalServerError",
250
+ '400': "BadRequestError",
251
+ '422': "HTTPValidationError",
252
+ }
253
+ response_data = self.api_client.call_api(
254
+ *_param,
255
+ _request_timeout=_request_timeout
256
+ )
257
+ return response_data.response
258
+
259
+
260
+ def _delete_dataset_serialize(
261
+ self,
262
+ dataset_id,
263
+ _request_auth,
264
+ _content_type,
265
+ _headers,
266
+ _host_index,
267
+ ) -> RequestSerialized:
268
+
269
+ _host = None
270
+
271
+ _collection_formats: Dict[str, str] = {
272
+ }
273
+
274
+ _path_params: Dict[str, str] = {}
275
+ _query_params: List[Tuple[str, str]] = []
276
+ _header_params: Dict[str, Optional[str]] = _headers or {}
277
+ _form_params: List[Tuple[str, str]] = []
278
+ _files: Dict[
279
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
280
+ ] = {}
281
+ _body_params: Optional[bytes] = None
282
+
283
+ # process the path parameters
284
+ if dataset_id is not None:
285
+ _path_params['dataset_id'] = dataset_id
286
+ # process the query parameters
287
+ # process the header parameters
288
+ # process the form parameters
289
+ # process the body parameter
290
+
291
+
292
+ # set the HTTP header `Accept`
293
+ if 'Accept' not in _header_params:
294
+ _header_params['Accept'] = self.api_client.select_header_accept(
295
+ [
296
+ 'application/json'
297
+ ]
298
+ )
299
+
300
+
301
+ # authentication setting
302
+ _auth_settings: List[str] = [
303
+ 'OAuth2AuthorizationCode'
304
+ ]
305
+
306
+ return self.api_client.param_serialize(
307
+ method='DELETE',
308
+ resource_path='/api/v1/datasets/{dataset_id}',
309
+ path_params=_path_params,
310
+ query_params=_query_params,
311
+ header_params=_header_params,
312
+ body=_body_params,
313
+ post_params=_form_params,
314
+ files=_files,
315
+ auth_settings=_auth_settings,
316
+ collection_formats=_collection_formats,
317
+ _host=_host,
318
+ _request_auth=_request_auth
319
+ )
320
+
321
+
322
+
323
+
324
+ @validate_call
325
+ def get_available_dataset(
326
+ self,
327
+ available_dataset_id: StrictStr,
328
+ _request_timeout: Union[
329
+ None,
330
+ Annotated[StrictFloat, Field(gt=0)],
331
+ Tuple[
332
+ Annotated[StrictFloat, Field(gt=0)],
333
+ Annotated[StrictFloat, Field(gt=0)]
334
+ ]
335
+ ] = None,
336
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
337
+ _content_type: Optional[StrictStr] = None,
338
+ _headers: Optional[Dict[StrictStr, Any]] = None,
339
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
340
+ ) -> AvailableDataset:
341
+ """Get Available Dataset By Id
342
+
343
+ Returns a single available dataset by ID. Requires available_dataset_read permission.
344
+
345
+ :param available_dataset_id: (required)
346
+ :type available_dataset_id: str
347
+ :param _request_timeout: timeout setting for this request. If one
348
+ number provided, it will be total request
349
+ timeout. It can also be a pair (tuple) of
350
+ (connection, read) timeouts.
351
+ :type _request_timeout: int, tuple(int, int), optional
352
+ :param _request_auth: set to override the auth_settings for an a single
353
+ request; this effectively ignores the
354
+ authentication in the spec for a single request.
355
+ :type _request_auth: dict, optional
356
+ :param _content_type: force content-type for the request.
357
+ :type _content_type: str, Optional
358
+ :param _headers: set to override the headers for a single
359
+ request; this effectively ignores the headers
360
+ in the spec for a single request.
361
+ :type _headers: dict, optional
362
+ :param _host_index: set to override the host_index for a single
363
+ request; this effectively ignores the host_index
364
+ in the spec for a single request.
365
+ :type _host_index: int, optional
366
+ :return: Returns the result object.
367
+ """ # noqa: E501
368
+
369
+ _param = self._get_available_dataset_serialize(
370
+ available_dataset_id=available_dataset_id,
371
+ _request_auth=_request_auth,
372
+ _content_type=_content_type,
373
+ _headers=_headers,
374
+ _host_index=_host_index
375
+ )
376
+
377
+ _response_types_map: Dict[str, Optional[str]] = {
378
+ '200': "AvailableDataset",
379
+ '500': "InternalServerError",
380
+ '404': "NotFoundError",
381
+ '422': "HTTPValidationError",
382
+ }
383
+ response_data = self.api_client.call_api(
384
+ *_param,
385
+ _request_timeout=_request_timeout
386
+ )
387
+ response_data.read()
388
+ return self.api_client.response_deserialize(
389
+ response_data=response_data,
390
+ response_types_map=_response_types_map,
391
+ ).data
392
+
393
+
394
+ @validate_call
395
+ def get_available_dataset_with_http_info(
396
+ self,
397
+ available_dataset_id: StrictStr,
398
+ _request_timeout: Union[
399
+ None,
400
+ Annotated[StrictFloat, Field(gt=0)],
401
+ Tuple[
402
+ Annotated[StrictFloat, Field(gt=0)],
403
+ Annotated[StrictFloat, Field(gt=0)]
404
+ ]
405
+ ] = None,
406
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
407
+ _content_type: Optional[StrictStr] = None,
408
+ _headers: Optional[Dict[StrictStr, Any]] = None,
409
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
410
+ ) -> ApiResponse[AvailableDataset]:
411
+ """Get Available Dataset By Id
412
+
413
+ Returns a single available dataset by ID. Requires available_dataset_read permission.
414
+
415
+ :param available_dataset_id: (required)
416
+ :type available_dataset_id: str
417
+ :param _request_timeout: timeout setting for this request. If one
418
+ number provided, it will be total request
419
+ timeout. It can also be a pair (tuple) of
420
+ (connection, read) timeouts.
421
+ :type _request_timeout: int, tuple(int, int), optional
422
+ :param _request_auth: set to override the auth_settings for an a single
423
+ request; this effectively ignores the
424
+ authentication in the spec for a single request.
425
+ :type _request_auth: dict, optional
426
+ :param _content_type: force content-type for the request.
427
+ :type _content_type: str, Optional
428
+ :param _headers: set to override the headers for a single
429
+ request; this effectively ignores the headers
430
+ in the spec for a single request.
431
+ :type _headers: dict, optional
432
+ :param _host_index: set to override the host_index for a single
433
+ request; this effectively ignores the host_index
434
+ in the spec for a single request.
435
+ :type _host_index: int, optional
436
+ :return: Returns the result object.
437
+ """ # noqa: E501
438
+
439
+ _param = self._get_available_dataset_serialize(
440
+ available_dataset_id=available_dataset_id,
441
+ _request_auth=_request_auth,
442
+ _content_type=_content_type,
443
+ _headers=_headers,
444
+ _host_index=_host_index
445
+ )
446
+
447
+ _response_types_map: Dict[str, Optional[str]] = {
448
+ '200': "AvailableDataset",
449
+ '500': "InternalServerError",
450
+ '404': "NotFoundError",
451
+ '422': "HTTPValidationError",
452
+ }
453
+ response_data = self.api_client.call_api(
454
+ *_param,
455
+ _request_timeout=_request_timeout
456
+ )
457
+ response_data.read()
458
+ return self.api_client.response_deserialize(
459
+ response_data=response_data,
460
+ response_types_map=_response_types_map,
461
+ )
462
+
463
+
464
+ @validate_call
465
+ def get_available_dataset_without_preload_content(
466
+ self,
467
+ available_dataset_id: StrictStr,
468
+ _request_timeout: Union[
469
+ None,
470
+ Annotated[StrictFloat, Field(gt=0)],
471
+ Tuple[
472
+ Annotated[StrictFloat, Field(gt=0)],
473
+ Annotated[StrictFloat, Field(gt=0)]
474
+ ]
475
+ ] = None,
476
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
477
+ _content_type: Optional[StrictStr] = None,
478
+ _headers: Optional[Dict[StrictStr, Any]] = None,
479
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
480
+ ) -> RESTResponseType:
481
+ """Get Available Dataset By Id
482
+
483
+ Returns a single available dataset by ID. Requires available_dataset_read permission.
484
+
485
+ :param available_dataset_id: (required)
486
+ :type available_dataset_id: str
487
+ :param _request_timeout: timeout setting for this request. If one
488
+ number provided, it will be total request
489
+ timeout. It can also be a pair (tuple) of
490
+ (connection, read) timeouts.
491
+ :type _request_timeout: int, tuple(int, int), optional
492
+ :param _request_auth: set to override the auth_settings for an a single
493
+ request; this effectively ignores the
494
+ authentication in the spec for a single request.
495
+ :type _request_auth: dict, optional
496
+ :param _content_type: force content-type for the request.
497
+ :type _content_type: str, Optional
498
+ :param _headers: set to override the headers for a single
499
+ request; this effectively ignores the headers
500
+ in the spec for a single request.
501
+ :type _headers: dict, optional
502
+ :param _host_index: set to override the host_index for a single
503
+ request; this effectively ignores the host_index
504
+ in the spec for a single request.
505
+ :type _host_index: int, optional
506
+ :return: Returns the result object.
507
+ """ # noqa: E501
508
+
509
+ _param = self._get_available_dataset_serialize(
510
+ available_dataset_id=available_dataset_id,
511
+ _request_auth=_request_auth,
512
+ _content_type=_content_type,
513
+ _headers=_headers,
514
+ _host_index=_host_index
515
+ )
516
+
517
+ _response_types_map: Dict[str, Optional[str]] = {
518
+ '200': "AvailableDataset",
519
+ '500': "InternalServerError",
520
+ '404': "NotFoundError",
521
+ '422': "HTTPValidationError",
522
+ }
523
+ response_data = self.api_client.call_api(
524
+ *_param,
525
+ _request_timeout=_request_timeout
526
+ )
527
+ return response_data.response
528
+
529
+
530
+ def _get_available_dataset_serialize(
531
+ self,
532
+ available_dataset_id,
533
+ _request_auth,
534
+ _content_type,
535
+ _headers,
536
+ _host_index,
537
+ ) -> RequestSerialized:
538
+
539
+ _host = None
540
+
541
+ _collection_formats: Dict[str, str] = {
542
+ }
543
+
544
+ _path_params: Dict[str, str] = {}
545
+ _query_params: List[Tuple[str, str]] = []
546
+ _header_params: Dict[str, Optional[str]] = _headers or {}
547
+ _form_params: List[Tuple[str, str]] = []
548
+ _files: Dict[
549
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
550
+ ] = {}
551
+ _body_params: Optional[bytes] = None
552
+
553
+ # process the path parameters
554
+ if available_dataset_id is not None:
555
+ _path_params['available_dataset_id'] = available_dataset_id
556
+ # process the query parameters
557
+ # process the header parameters
558
+ # process the form parameters
559
+ # process the body parameter
560
+
561
+
562
+ # set the HTTP header `Accept`
563
+ if 'Accept' not in _header_params:
564
+ _header_params['Accept'] = self.api_client.select_header_accept(
565
+ [
566
+ 'application/json'
567
+ ]
568
+ )
569
+
570
+
571
+ # authentication setting
572
+ _auth_settings: List[str] = [
573
+ 'OAuth2AuthorizationCode'
574
+ ]
575
+
576
+ return self.api_client.param_serialize(
577
+ method='GET',
578
+ resource_path='/api/v1/available_datasets/{available_dataset_id}',
579
+ path_params=_path_params,
580
+ query_params=_query_params,
581
+ header_params=_header_params,
582
+ body=_body_params,
583
+ post_params=_form_params,
584
+ files=_files,
585
+ auth_settings=_auth_settings,
586
+ collection_formats=_collection_formats,
587
+ _host=_host,
588
+ _request_auth=_request_auth
589
+ )
590
+
591
+
592
+
593
+
594
+ @validate_call
595
+ def get_connector_available_datasets(
596
+ self,
597
+ connector_id: StrictStr,
598
+ sort: Annotated[Optional[AvailableDatasetsSort], Field(description="The field to sort by.")] = None,
599
+ order: Annotated[Optional[SortOrder], Field(description="The order to sort by.")] = None,
600
+ search: Annotated[Optional[StrictStr], Field(description="Search term to filter by.")] = None,
601
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
602
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
603
+ _request_timeout: Union[
604
+ None,
605
+ Annotated[StrictFloat, Field(gt=0)],
606
+ Tuple[
607
+ Annotated[StrictFloat, Field(gt=0)],
608
+ Annotated[StrictFloat, Field(gt=0)]
609
+ ]
610
+ ] = None,
611
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
612
+ _content_type: Optional[StrictStr] = None,
613
+ _headers: Optional[Dict[StrictStr, Any]] = None,
614
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
615
+ ) -> ResourceListAvailableDataset:
616
+ """Get Available Datasets By Connector Id
617
+
618
+ Returns a list of available datasets for the connector. Requires connector_list_available_datasets permission.
619
+
620
+ :param connector_id: (required)
621
+ :type connector_id: str
622
+ :param sort: The field to sort by.
623
+ :type sort: AvailableDatasetsSort
624
+ :param order: The order to sort by.
625
+ :type order: SortOrder
626
+ :param search: Search term to filter by.
627
+ :type search: str
628
+ :param page: The page to return starting from 1 up to total_pages.
629
+ :type page: int
630
+ :param page_size: The number of records per page. The max is 1000.
631
+ :type page_size: int
632
+ :param _request_timeout: timeout setting for this request. If one
633
+ number provided, it will be total request
634
+ timeout. It can also be a pair (tuple) of
635
+ (connection, read) timeouts.
636
+ :type _request_timeout: int, tuple(int, int), optional
637
+ :param _request_auth: set to override the auth_settings for an a single
638
+ request; this effectively ignores the
639
+ authentication in the spec for a single request.
640
+ :type _request_auth: dict, optional
641
+ :param _content_type: force content-type for the request.
642
+ :type _content_type: str, Optional
643
+ :param _headers: set to override the headers for a single
644
+ request; this effectively ignores the headers
645
+ in the spec for a single request.
646
+ :type _headers: dict, optional
647
+ :param _host_index: set to override the host_index for a single
648
+ request; this effectively ignores the host_index
649
+ in the spec for a single request.
650
+ :type _host_index: int, optional
651
+ :return: Returns the result object.
652
+ """ # noqa: E501
653
+
654
+ _param = self._get_connector_available_datasets_serialize(
655
+ connector_id=connector_id,
656
+ sort=sort,
657
+ order=order,
658
+ search=search,
659
+ page=page,
660
+ page_size=page_size,
661
+ _request_auth=_request_auth,
662
+ _content_type=_content_type,
663
+ _headers=_headers,
664
+ _host_index=_host_index
665
+ )
666
+
667
+ _response_types_map: Dict[str, Optional[str]] = {
668
+ '200': "ResourceListAvailableDataset",
669
+ '500': "InternalServerError",
670
+ '404': "NotFoundError",
671
+ '422': "HTTPValidationError",
672
+ }
673
+ response_data = self.api_client.call_api(
674
+ *_param,
675
+ _request_timeout=_request_timeout
676
+ )
677
+ response_data.read()
678
+ return self.api_client.response_deserialize(
679
+ response_data=response_data,
680
+ response_types_map=_response_types_map,
681
+ ).data
682
+
683
+
684
+ @validate_call
685
+ def get_connector_available_datasets_with_http_info(
686
+ self,
687
+ connector_id: StrictStr,
688
+ sort: Annotated[Optional[AvailableDatasetsSort], Field(description="The field to sort by.")] = None,
689
+ order: Annotated[Optional[SortOrder], Field(description="The order to sort by.")] = None,
690
+ search: Annotated[Optional[StrictStr], Field(description="Search term to filter by.")] = None,
691
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
692
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
693
+ _request_timeout: Union[
694
+ None,
695
+ Annotated[StrictFloat, Field(gt=0)],
696
+ Tuple[
697
+ Annotated[StrictFloat, Field(gt=0)],
698
+ Annotated[StrictFloat, Field(gt=0)]
699
+ ]
700
+ ] = None,
701
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
702
+ _content_type: Optional[StrictStr] = None,
703
+ _headers: Optional[Dict[StrictStr, Any]] = None,
704
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
705
+ ) -> ApiResponse[ResourceListAvailableDataset]:
706
+ """Get Available Datasets By Connector Id
707
+
708
+ Returns a list of available datasets for the connector. Requires connector_list_available_datasets permission.
709
+
710
+ :param connector_id: (required)
711
+ :type connector_id: str
712
+ :param sort: The field to sort by.
713
+ :type sort: AvailableDatasetsSort
714
+ :param order: The order to sort by.
715
+ :type order: SortOrder
716
+ :param search: Search term to filter by.
717
+ :type search: str
718
+ :param page: The page to return starting from 1 up to total_pages.
719
+ :type page: int
720
+ :param page_size: The number of records per page. The max is 1000.
721
+ :type page_size: int
722
+ :param _request_timeout: timeout setting for this request. If one
723
+ number provided, it will be total request
724
+ timeout. It can also be a pair (tuple) of
725
+ (connection, read) timeouts.
726
+ :type _request_timeout: int, tuple(int, int), optional
727
+ :param _request_auth: set to override the auth_settings for an a single
728
+ request; this effectively ignores the
729
+ authentication in the spec for a single request.
730
+ :type _request_auth: dict, optional
731
+ :param _content_type: force content-type for the request.
732
+ :type _content_type: str, Optional
733
+ :param _headers: set to override the headers for a single
734
+ request; this effectively ignores the headers
735
+ in the spec for a single request.
736
+ :type _headers: dict, optional
737
+ :param _host_index: set to override the host_index for a single
738
+ request; this effectively ignores the host_index
739
+ in the spec for a single request.
740
+ :type _host_index: int, optional
741
+ :return: Returns the result object.
742
+ """ # noqa: E501
743
+
744
+ _param = self._get_connector_available_datasets_serialize(
745
+ connector_id=connector_id,
746
+ sort=sort,
747
+ order=order,
748
+ search=search,
749
+ page=page,
750
+ page_size=page_size,
751
+ _request_auth=_request_auth,
752
+ _content_type=_content_type,
753
+ _headers=_headers,
754
+ _host_index=_host_index
755
+ )
756
+
757
+ _response_types_map: Dict[str, Optional[str]] = {
758
+ '200': "ResourceListAvailableDataset",
759
+ '500': "InternalServerError",
760
+ '404': "NotFoundError",
761
+ '422': "HTTPValidationError",
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 get_connector_available_datasets_without_preload_content(
776
+ self,
777
+ connector_id: StrictStr,
778
+ sort: Annotated[Optional[AvailableDatasetsSort], Field(description="The field to sort by.")] = None,
779
+ order: Annotated[Optional[SortOrder], Field(description="The order to sort by.")] = None,
780
+ search: Annotated[Optional[StrictStr], Field(description="Search term to filter by.")] = None,
781
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
782
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
783
+ _request_timeout: Union[
784
+ None,
785
+ Annotated[StrictFloat, Field(gt=0)],
786
+ Tuple[
787
+ Annotated[StrictFloat, Field(gt=0)],
788
+ Annotated[StrictFloat, Field(gt=0)]
789
+ ]
790
+ ] = None,
791
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
792
+ _content_type: Optional[StrictStr] = None,
793
+ _headers: Optional[Dict[StrictStr, Any]] = None,
794
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
795
+ ) -> RESTResponseType:
796
+ """Get Available Datasets By Connector Id
797
+
798
+ Returns a list of available datasets for the connector. Requires connector_list_available_datasets permission.
799
+
800
+ :param connector_id: (required)
801
+ :type connector_id: str
802
+ :param sort: The field to sort by.
803
+ :type sort: AvailableDatasetsSort
804
+ :param order: The order to sort by.
805
+ :type order: SortOrder
806
+ :param search: Search term to filter by.
807
+ :type search: str
808
+ :param page: The page to return starting from 1 up to total_pages.
809
+ :type page: int
810
+ :param page_size: The number of records per page. The max is 1000.
811
+ :type page_size: int
812
+ :param _request_timeout: timeout setting for this request. If one
813
+ number provided, it will be total request
814
+ timeout. It can also be a pair (tuple) of
815
+ (connection, read) timeouts.
816
+ :type _request_timeout: int, tuple(int, int), optional
817
+ :param _request_auth: set to override the auth_settings for an a single
818
+ request; this effectively ignores the
819
+ authentication in the spec for a single request.
820
+ :type _request_auth: dict, optional
821
+ :param _content_type: force content-type for the request.
822
+ :type _content_type: str, Optional
823
+ :param _headers: set to override the headers for a single
824
+ request; this effectively ignores the headers
825
+ in the spec for a single request.
826
+ :type _headers: dict, optional
827
+ :param _host_index: set to override the host_index for a single
828
+ request; this effectively ignores the host_index
829
+ in the spec for a single request.
830
+ :type _host_index: int, optional
831
+ :return: Returns the result object.
832
+ """ # noqa: E501
833
+
834
+ _param = self._get_connector_available_datasets_serialize(
835
+ connector_id=connector_id,
836
+ sort=sort,
837
+ order=order,
838
+ search=search,
839
+ page=page,
840
+ page_size=page_size,
841
+ _request_auth=_request_auth,
842
+ _content_type=_content_type,
843
+ _headers=_headers,
844
+ _host_index=_host_index
845
+ )
846
+
847
+ _response_types_map: Dict[str, Optional[str]] = {
848
+ '200': "ResourceListAvailableDataset",
849
+ '500': "InternalServerError",
850
+ '404': "NotFoundError",
851
+ '422': "HTTPValidationError",
852
+ }
853
+ response_data = self.api_client.call_api(
854
+ *_param,
855
+ _request_timeout=_request_timeout
856
+ )
857
+ return response_data.response
858
+
859
+
860
+ def _get_connector_available_datasets_serialize(
861
+ self,
862
+ connector_id,
863
+ sort,
864
+ order,
865
+ search,
866
+ page,
867
+ page_size,
868
+ _request_auth,
869
+ _content_type,
870
+ _headers,
871
+ _host_index,
872
+ ) -> RequestSerialized:
873
+
874
+ _host = None
875
+
876
+ _collection_formats: Dict[str, str] = {
877
+ }
878
+
879
+ _path_params: Dict[str, str] = {}
880
+ _query_params: List[Tuple[str, str]] = []
881
+ _header_params: Dict[str, Optional[str]] = _headers or {}
882
+ _form_params: List[Tuple[str, str]] = []
883
+ _files: Dict[
884
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
885
+ ] = {}
886
+ _body_params: Optional[bytes] = None
887
+
888
+ # process the path parameters
889
+ if connector_id is not None:
890
+ _path_params['connector_id'] = connector_id
891
+ # process the query parameters
892
+ if sort is not None:
893
+
894
+ _query_params.append(('sort', sort.value))
895
+
896
+ if order is not None:
897
+
898
+ _query_params.append(('order', order.value))
899
+
900
+ if search is not None:
901
+
902
+ _query_params.append(('search', search))
903
+
904
+ if page is not None:
905
+
906
+ _query_params.append(('page', page))
907
+
908
+ if page_size is not None:
909
+
910
+ _query_params.append(('page_size', page_size))
911
+
912
+ # process the header parameters
913
+ # process the form parameters
914
+ # process the body parameter
915
+
916
+
917
+ # set the HTTP header `Accept`
918
+ if 'Accept' not in _header_params:
919
+ _header_params['Accept'] = self.api_client.select_header_accept(
920
+ [
921
+ 'application/json'
922
+ ]
923
+ )
924
+
925
+
926
+ # authentication setting
927
+ _auth_settings: List[str] = [
928
+ 'OAuth2AuthorizationCode'
929
+ ]
930
+
931
+ return self.api_client.param_serialize(
932
+ method='GET',
933
+ resource_path='/api/v1/connectors/{connector_id}/available_datasets',
934
+ path_params=_path_params,
935
+ query_params=_query_params,
936
+ header_params=_header_params,
937
+ body=_body_params,
938
+ post_params=_form_params,
939
+ files=_files,
940
+ auth_settings=_auth_settings,
941
+ collection_formats=_collection_formats,
942
+ _host=_host,
943
+ _request_auth=_request_auth
944
+ )
945
+
946
+
947
+
948
+
949
+ @validate_call
950
+ def get_connector_datasets(
951
+ self,
952
+ connector_id: StrictStr,
953
+ _request_timeout: Union[
954
+ None,
955
+ Annotated[StrictFloat, Field(gt=0)],
956
+ Tuple[
957
+ Annotated[StrictFloat, Field(gt=0)],
958
+ Annotated[StrictFloat, Field(gt=0)]
959
+ ]
960
+ ] = None,
961
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
962
+ _content_type: Optional[StrictStr] = None,
963
+ _headers: Optional[Dict[StrictStr, Any]] = None,
964
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
965
+ ) -> ResourceListDataset:
966
+ """Get Datasets By Connector Id
967
+
968
+ Returns a list of configured datasets for the connector. Requires connector_list_datasets permission.
969
+
970
+ :param connector_id: (required)
971
+ :type connector_id: str
972
+ :param _request_timeout: timeout setting for this request. If one
973
+ number provided, it will be total request
974
+ timeout. It can also be a pair (tuple) of
975
+ (connection, read) timeouts.
976
+ :type _request_timeout: int, tuple(int, int), optional
977
+ :param _request_auth: set to override the auth_settings for an a single
978
+ request; this effectively ignores the
979
+ authentication in the spec for a single request.
980
+ :type _request_auth: dict, optional
981
+ :param _content_type: force content-type for the request.
982
+ :type _content_type: str, Optional
983
+ :param _headers: set to override the headers for a single
984
+ request; this effectively ignores the headers
985
+ in the spec for a single request.
986
+ :type _headers: dict, optional
987
+ :param _host_index: set to override the host_index for a single
988
+ request; this effectively ignores the host_index
989
+ in the spec for a single request.
990
+ :type _host_index: int, optional
991
+ :return: Returns the result object.
992
+ """ # noqa: E501
993
+
994
+ _param = self._get_connector_datasets_serialize(
995
+ connector_id=connector_id,
996
+ _request_auth=_request_auth,
997
+ _content_type=_content_type,
998
+ _headers=_headers,
999
+ _host_index=_host_index
1000
+ )
1001
+
1002
+ _response_types_map: Dict[str, Optional[str]] = {
1003
+ '200': "ResourceListDataset",
1004
+ '500': "InternalServerError",
1005
+ '404': "NotFoundError",
1006
+ '422': "HTTPValidationError",
1007
+ }
1008
+ response_data = self.api_client.call_api(
1009
+ *_param,
1010
+ _request_timeout=_request_timeout
1011
+ )
1012
+ response_data.read()
1013
+ return self.api_client.response_deserialize(
1014
+ response_data=response_data,
1015
+ response_types_map=_response_types_map,
1016
+ ).data
1017
+
1018
+
1019
+ @validate_call
1020
+ def get_connector_datasets_with_http_info(
1021
+ self,
1022
+ connector_id: StrictStr,
1023
+ _request_timeout: Union[
1024
+ None,
1025
+ Annotated[StrictFloat, Field(gt=0)],
1026
+ Tuple[
1027
+ Annotated[StrictFloat, Field(gt=0)],
1028
+ Annotated[StrictFloat, Field(gt=0)]
1029
+ ]
1030
+ ] = None,
1031
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1032
+ _content_type: Optional[StrictStr] = None,
1033
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1034
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1035
+ ) -> ApiResponse[ResourceListDataset]:
1036
+ """Get Datasets By Connector Id
1037
+
1038
+ Returns a list of configured datasets for the connector. Requires connector_list_datasets permission.
1039
+
1040
+ :param connector_id: (required)
1041
+ :type connector_id: str
1042
+ :param _request_timeout: timeout setting for this request. If one
1043
+ number provided, it will be total request
1044
+ timeout. It can also be a pair (tuple) of
1045
+ (connection, read) timeouts.
1046
+ :type _request_timeout: int, tuple(int, int), optional
1047
+ :param _request_auth: set to override the auth_settings for an a single
1048
+ request; this effectively ignores the
1049
+ authentication in the spec for a single request.
1050
+ :type _request_auth: dict, optional
1051
+ :param _content_type: force content-type for the request.
1052
+ :type _content_type: str, Optional
1053
+ :param _headers: set to override the headers for a single
1054
+ request; this effectively ignores the headers
1055
+ in the spec for a single request.
1056
+ :type _headers: dict, optional
1057
+ :param _host_index: set to override the host_index for a single
1058
+ request; this effectively ignores the host_index
1059
+ in the spec for a single request.
1060
+ :type _host_index: int, optional
1061
+ :return: Returns the result object.
1062
+ """ # noqa: E501
1063
+
1064
+ _param = self._get_connector_datasets_serialize(
1065
+ connector_id=connector_id,
1066
+ _request_auth=_request_auth,
1067
+ _content_type=_content_type,
1068
+ _headers=_headers,
1069
+ _host_index=_host_index
1070
+ )
1071
+
1072
+ _response_types_map: Dict[str, Optional[str]] = {
1073
+ '200': "ResourceListDataset",
1074
+ '500': "InternalServerError",
1075
+ '404': "NotFoundError",
1076
+ '422': "HTTPValidationError",
1077
+ }
1078
+ response_data = self.api_client.call_api(
1079
+ *_param,
1080
+ _request_timeout=_request_timeout
1081
+ )
1082
+ response_data.read()
1083
+ return self.api_client.response_deserialize(
1084
+ response_data=response_data,
1085
+ response_types_map=_response_types_map,
1086
+ )
1087
+
1088
+
1089
+ @validate_call
1090
+ def get_connector_datasets_without_preload_content(
1091
+ self,
1092
+ connector_id: StrictStr,
1093
+ _request_timeout: Union[
1094
+ None,
1095
+ Annotated[StrictFloat, Field(gt=0)],
1096
+ Tuple[
1097
+ Annotated[StrictFloat, Field(gt=0)],
1098
+ Annotated[StrictFloat, Field(gt=0)]
1099
+ ]
1100
+ ] = None,
1101
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1102
+ _content_type: Optional[StrictStr] = None,
1103
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1104
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1105
+ ) -> RESTResponseType:
1106
+ """Get Datasets By Connector Id
1107
+
1108
+ Returns a list of configured datasets for the connector. Requires connector_list_datasets permission.
1109
+
1110
+ :param connector_id: (required)
1111
+ :type connector_id: str
1112
+ :param _request_timeout: timeout setting for this request. If one
1113
+ number provided, it will be total request
1114
+ timeout. It can also be a pair (tuple) of
1115
+ (connection, read) timeouts.
1116
+ :type _request_timeout: int, tuple(int, int), optional
1117
+ :param _request_auth: set to override the auth_settings for an a single
1118
+ request; this effectively ignores the
1119
+ authentication in the spec for a single request.
1120
+ :type _request_auth: dict, optional
1121
+ :param _content_type: force content-type for the request.
1122
+ :type _content_type: str, Optional
1123
+ :param _headers: set to override the headers for a single
1124
+ request; this effectively ignores the headers
1125
+ in the spec for a single request.
1126
+ :type _headers: dict, optional
1127
+ :param _host_index: set to override the host_index for a single
1128
+ request; this effectively ignores the host_index
1129
+ in the spec for a single request.
1130
+ :type _host_index: int, optional
1131
+ :return: Returns the result object.
1132
+ """ # noqa: E501
1133
+
1134
+ _param = self._get_connector_datasets_serialize(
1135
+ connector_id=connector_id,
1136
+ _request_auth=_request_auth,
1137
+ _content_type=_content_type,
1138
+ _headers=_headers,
1139
+ _host_index=_host_index
1140
+ )
1141
+
1142
+ _response_types_map: Dict[str, Optional[str]] = {
1143
+ '200': "ResourceListDataset",
1144
+ '500': "InternalServerError",
1145
+ '404': "NotFoundError",
1146
+ '422': "HTTPValidationError",
1147
+ }
1148
+ response_data = self.api_client.call_api(
1149
+ *_param,
1150
+ _request_timeout=_request_timeout
1151
+ )
1152
+ return response_data.response
1153
+
1154
+
1155
+ def _get_connector_datasets_serialize(
1156
+ self,
1157
+ connector_id,
1158
+ _request_auth,
1159
+ _content_type,
1160
+ _headers,
1161
+ _host_index,
1162
+ ) -> RequestSerialized:
1163
+
1164
+ _host = None
1165
+
1166
+ _collection_formats: Dict[str, str] = {
1167
+ }
1168
+
1169
+ _path_params: Dict[str, str] = {}
1170
+ _query_params: List[Tuple[str, str]] = []
1171
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1172
+ _form_params: List[Tuple[str, str]] = []
1173
+ _files: Dict[
1174
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1175
+ ] = {}
1176
+ _body_params: Optional[bytes] = None
1177
+
1178
+ # process the path parameters
1179
+ if connector_id is not None:
1180
+ _path_params['connector_id'] = connector_id
1181
+ # process the query parameters
1182
+ # process the header parameters
1183
+ # process the form parameters
1184
+ # process the body parameter
1185
+
1186
+
1187
+ # set the HTTP header `Accept`
1188
+ if 'Accept' not in _header_params:
1189
+ _header_params['Accept'] = self.api_client.select_header_accept(
1190
+ [
1191
+ 'application/json'
1192
+ ]
1193
+ )
1194
+
1195
+
1196
+ # authentication setting
1197
+ _auth_settings: List[str] = [
1198
+ 'OAuth2AuthorizationCode'
1199
+ ]
1200
+
1201
+ return self.api_client.param_serialize(
1202
+ method='GET',
1203
+ resource_path='/api/v1/connectors/{connector_id}/datasets',
1204
+ path_params=_path_params,
1205
+ query_params=_query_params,
1206
+ header_params=_header_params,
1207
+ body=_body_params,
1208
+ post_params=_form_params,
1209
+ files=_files,
1210
+ auth_settings=_auth_settings,
1211
+ collection_formats=_collection_formats,
1212
+ _host=_host,
1213
+ _request_auth=_request_auth
1214
+ )
1215
+
1216
+
1217
+
1218
+
1219
+ @validate_call
1220
+ def get_dataset(
1221
+ self,
1222
+ dataset_id: StrictStr,
1223
+ _request_timeout: Union[
1224
+ None,
1225
+ Annotated[StrictFloat, Field(gt=0)],
1226
+ Tuple[
1227
+ Annotated[StrictFloat, Field(gt=0)],
1228
+ Annotated[StrictFloat, Field(gt=0)]
1229
+ ]
1230
+ ] = None,
1231
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1232
+ _content_type: Optional[StrictStr] = None,
1233
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1234
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1235
+ ) -> Dataset:
1236
+ """Get Dataset By Id
1237
+
1238
+ Returns a single dataset by ID. Requires dataset_read permission.
1239
+
1240
+ :param dataset_id: (required)
1241
+ :type dataset_id: str
1242
+ :param _request_timeout: timeout setting for this request. If one
1243
+ number provided, it will be total request
1244
+ timeout. It can also be a pair (tuple) of
1245
+ (connection, read) timeouts.
1246
+ :type _request_timeout: int, tuple(int, int), optional
1247
+ :param _request_auth: set to override the auth_settings for an a single
1248
+ request; this effectively ignores the
1249
+ authentication in the spec for a single request.
1250
+ :type _request_auth: dict, optional
1251
+ :param _content_type: force content-type for the request.
1252
+ :type _content_type: str, Optional
1253
+ :param _headers: set to override the headers for a single
1254
+ request; this effectively ignores the headers
1255
+ in the spec for a single request.
1256
+ :type _headers: dict, optional
1257
+ :param _host_index: set to override the host_index for a single
1258
+ request; this effectively ignores the host_index
1259
+ in the spec for a single request.
1260
+ :type _host_index: int, optional
1261
+ :return: Returns the result object.
1262
+ """ # noqa: E501
1263
+
1264
+ _param = self._get_dataset_serialize(
1265
+ dataset_id=dataset_id,
1266
+ _request_auth=_request_auth,
1267
+ _content_type=_content_type,
1268
+ _headers=_headers,
1269
+ _host_index=_host_index
1270
+ )
1271
+
1272
+ _response_types_map: Dict[str, Optional[str]] = {
1273
+ '200': "Dataset",
1274
+ '500': "InternalServerError",
1275
+ '404': "NotFoundError",
1276
+ '422': "HTTPValidationError",
1277
+ }
1278
+ response_data = self.api_client.call_api(
1279
+ *_param,
1280
+ _request_timeout=_request_timeout
1281
+ )
1282
+ response_data.read()
1283
+ return self.api_client.response_deserialize(
1284
+ response_data=response_data,
1285
+ response_types_map=_response_types_map,
1286
+ ).data
1287
+
1288
+
1289
+ @validate_call
1290
+ def get_dataset_with_http_info(
1291
+ self,
1292
+ dataset_id: StrictStr,
1293
+ _request_timeout: Union[
1294
+ None,
1295
+ Annotated[StrictFloat, Field(gt=0)],
1296
+ Tuple[
1297
+ Annotated[StrictFloat, Field(gt=0)],
1298
+ Annotated[StrictFloat, Field(gt=0)]
1299
+ ]
1300
+ ] = None,
1301
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1302
+ _content_type: Optional[StrictStr] = None,
1303
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1304
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1305
+ ) -> ApiResponse[Dataset]:
1306
+ """Get Dataset By Id
1307
+
1308
+ Returns a single dataset by ID. Requires dataset_read permission.
1309
+
1310
+ :param dataset_id: (required)
1311
+ :type dataset_id: str
1312
+ :param _request_timeout: timeout setting for this request. If one
1313
+ number provided, it will be total request
1314
+ timeout. It can also be a pair (tuple) of
1315
+ (connection, read) timeouts.
1316
+ :type _request_timeout: int, tuple(int, int), optional
1317
+ :param _request_auth: set to override the auth_settings for an a single
1318
+ request; this effectively ignores the
1319
+ authentication in the spec for a single request.
1320
+ :type _request_auth: dict, optional
1321
+ :param _content_type: force content-type for the request.
1322
+ :type _content_type: str, Optional
1323
+ :param _headers: set to override the headers for a single
1324
+ request; this effectively ignores the headers
1325
+ in the spec for a single request.
1326
+ :type _headers: dict, optional
1327
+ :param _host_index: set to override the host_index for a single
1328
+ request; this effectively ignores the host_index
1329
+ in the spec for a single request.
1330
+ :type _host_index: int, optional
1331
+ :return: Returns the result object.
1332
+ """ # noqa: E501
1333
+
1334
+ _param = self._get_dataset_serialize(
1335
+ dataset_id=dataset_id,
1336
+ _request_auth=_request_auth,
1337
+ _content_type=_content_type,
1338
+ _headers=_headers,
1339
+ _host_index=_host_index
1340
+ )
1341
+
1342
+ _response_types_map: Dict[str, Optional[str]] = {
1343
+ '200': "Dataset",
1344
+ '500': "InternalServerError",
1345
+ '404': "NotFoundError",
1346
+ '422': "HTTPValidationError",
1347
+ }
1348
+ response_data = self.api_client.call_api(
1349
+ *_param,
1350
+ _request_timeout=_request_timeout
1351
+ )
1352
+ response_data.read()
1353
+ return self.api_client.response_deserialize(
1354
+ response_data=response_data,
1355
+ response_types_map=_response_types_map,
1356
+ )
1357
+
1358
+
1359
+ @validate_call
1360
+ def get_dataset_without_preload_content(
1361
+ self,
1362
+ dataset_id: StrictStr,
1363
+ _request_timeout: Union[
1364
+ None,
1365
+ Annotated[StrictFloat, Field(gt=0)],
1366
+ Tuple[
1367
+ Annotated[StrictFloat, Field(gt=0)],
1368
+ Annotated[StrictFloat, Field(gt=0)]
1369
+ ]
1370
+ ] = None,
1371
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1372
+ _content_type: Optional[StrictStr] = None,
1373
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1374
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1375
+ ) -> RESTResponseType:
1376
+ """Get Dataset By Id
1377
+
1378
+ Returns a single dataset by ID. Requires dataset_read permission.
1379
+
1380
+ :param dataset_id: (required)
1381
+ :type dataset_id: str
1382
+ :param _request_timeout: timeout setting for this request. If one
1383
+ number provided, it will be total request
1384
+ timeout. It can also be a pair (tuple) of
1385
+ (connection, read) timeouts.
1386
+ :type _request_timeout: int, tuple(int, int), optional
1387
+ :param _request_auth: set to override the auth_settings for an a single
1388
+ request; this effectively ignores the
1389
+ authentication in the spec for a single request.
1390
+ :type _request_auth: dict, optional
1391
+ :param _content_type: force content-type for the request.
1392
+ :type _content_type: str, Optional
1393
+ :param _headers: set to override the headers for a single
1394
+ request; this effectively ignores the headers
1395
+ in the spec for a single request.
1396
+ :type _headers: dict, optional
1397
+ :param _host_index: set to override the host_index for a single
1398
+ request; this effectively ignores the host_index
1399
+ in the spec for a single request.
1400
+ :type _host_index: int, optional
1401
+ :return: Returns the result object.
1402
+ """ # noqa: E501
1403
+
1404
+ _param = self._get_dataset_serialize(
1405
+ dataset_id=dataset_id,
1406
+ _request_auth=_request_auth,
1407
+ _content_type=_content_type,
1408
+ _headers=_headers,
1409
+ _host_index=_host_index
1410
+ )
1411
+
1412
+ _response_types_map: Dict[str, Optional[str]] = {
1413
+ '200': "Dataset",
1414
+ '500': "InternalServerError",
1415
+ '404': "NotFoundError",
1416
+ '422': "HTTPValidationError",
1417
+ }
1418
+ response_data = self.api_client.call_api(
1419
+ *_param,
1420
+ _request_timeout=_request_timeout
1421
+ )
1422
+ return response_data.response
1423
+
1424
+
1425
+ def _get_dataset_serialize(
1426
+ self,
1427
+ dataset_id,
1428
+ _request_auth,
1429
+ _content_type,
1430
+ _headers,
1431
+ _host_index,
1432
+ ) -> RequestSerialized:
1433
+
1434
+ _host = None
1435
+
1436
+ _collection_formats: Dict[str, str] = {
1437
+ }
1438
+
1439
+ _path_params: Dict[str, str] = {}
1440
+ _query_params: List[Tuple[str, str]] = []
1441
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1442
+ _form_params: List[Tuple[str, str]] = []
1443
+ _files: Dict[
1444
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1445
+ ] = {}
1446
+ _body_params: Optional[bytes] = None
1447
+
1448
+ # process the path parameters
1449
+ if dataset_id is not None:
1450
+ _path_params['dataset_id'] = dataset_id
1451
+ # process the query parameters
1452
+ # process the header parameters
1453
+ # process the form parameters
1454
+ # process the body parameter
1455
+
1456
+
1457
+ # set the HTTP header `Accept`
1458
+ if 'Accept' not in _header_params:
1459
+ _header_params['Accept'] = self.api_client.select_header_accept(
1460
+ [
1461
+ 'application/json'
1462
+ ]
1463
+ )
1464
+
1465
+
1466
+ # authentication setting
1467
+ _auth_settings: List[str] = [
1468
+ 'OAuth2AuthorizationCode'
1469
+ ]
1470
+
1471
+ return self.api_client.param_serialize(
1472
+ method='GET',
1473
+ resource_path='/api/v1/datasets/{dataset_id}',
1474
+ path_params=_path_params,
1475
+ query_params=_query_params,
1476
+ header_params=_header_params,
1477
+ body=_body_params,
1478
+ post_params=_form_params,
1479
+ files=_files,
1480
+ auth_settings=_auth_settings,
1481
+ collection_formats=_collection_formats,
1482
+ _host=_host,
1483
+ _request_auth=_request_auth
1484
+ )
1485
+
1486
+
1487
+
1488
+
1489
+ @validate_call
1490
+ def get_datasets(
1491
+ self,
1492
+ project_id: StrictStr,
1493
+ sort: Annotated[Optional[DatasetsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
1494
+ order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
1495
+ model_ids: Annotated[Optional[List[StrictStr]], Field(description="Filter the results for datasets that are used by these models. Optional.")] = None,
1496
+ search: Annotated[Optional[StrictStr], Field(description="Search for datasets by connector name or dataset name.")] = None,
1497
+ connector_type: Annotated[Optional[ConnectorType], Field(description="Filter datasets by connector type.")] = None,
1498
+ connector_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by connector name.")] = None,
1499
+ dataset_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by dataset name.")] = None,
1500
+ joined_datasets: Annotated[Optional[StrictBool], Field(description="Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.")] = None,
1501
+ data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter datasets by the data plane (engine) that backs them.")] = None,
1502
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
1503
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
1504
+ _request_timeout: Union[
1505
+ None,
1506
+ Annotated[StrictFloat, Field(gt=0)],
1507
+ Tuple[
1508
+ Annotated[StrictFloat, Field(gt=0)],
1509
+ Annotated[StrictFloat, Field(gt=0)]
1510
+ ]
1511
+ ] = None,
1512
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1513
+ _content_type: Optional[StrictStr] = None,
1514
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1515
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1516
+ ) -> ResourceListDataset:
1517
+ """Get Datasets
1518
+
1519
+ Returns a list of configured datasets. Requires project_list_datasets permission.
1520
+
1521
+ :param project_id: (required)
1522
+ :type project_id: str
1523
+ :param sort: Override the field used for sorting the returned list. Optional.
1524
+ :type sort: DatasetsSort
1525
+ :param order: Override the sort order used. Optional.
1526
+ :type order: SortOrder
1527
+ :param model_ids: Filter the results for datasets that are used by these models. Optional.
1528
+ :type model_ids: List[str]
1529
+ :param search: Search for datasets by connector name or dataset name.
1530
+ :type search: str
1531
+ :param connector_type: Filter datasets by connector type.
1532
+ :type connector_type: ConnectorType
1533
+ :param connector_name: Filter datasets by connector name.
1534
+ :type connector_name: str
1535
+ :param dataset_name: Filter datasets by dataset name.
1536
+ :type dataset_name: str
1537
+ :param joined_datasets: Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.
1538
+ :type joined_datasets: bool
1539
+ :param data_plane_id: Filter datasets by the data plane (engine) that backs them.
1540
+ :type data_plane_id: str
1541
+ :param page: The page to return starting from 1 up to total_pages.
1542
+ :type page: int
1543
+ :param page_size: The number of records per page. The max is 1000.
1544
+ :type page_size: int
1545
+ :param _request_timeout: timeout setting for this request. If one
1546
+ number provided, it will be total request
1547
+ timeout. It can also be a pair (tuple) of
1548
+ (connection, read) timeouts.
1549
+ :type _request_timeout: int, tuple(int, int), optional
1550
+ :param _request_auth: set to override the auth_settings for an a single
1551
+ request; this effectively ignores the
1552
+ authentication in the spec for a single request.
1553
+ :type _request_auth: dict, optional
1554
+ :param _content_type: force content-type for the request.
1555
+ :type _content_type: str, Optional
1556
+ :param _headers: set to override the headers for a single
1557
+ request; this effectively ignores the headers
1558
+ in the spec for a single request.
1559
+ :type _headers: dict, optional
1560
+ :param _host_index: set to override the host_index for a single
1561
+ request; this effectively ignores the host_index
1562
+ in the spec for a single request.
1563
+ :type _host_index: int, optional
1564
+ :return: Returns the result object.
1565
+ """ # noqa: E501
1566
+
1567
+ _param = self._get_datasets_serialize(
1568
+ project_id=project_id,
1569
+ sort=sort,
1570
+ order=order,
1571
+ model_ids=model_ids,
1572
+ search=search,
1573
+ connector_type=connector_type,
1574
+ connector_name=connector_name,
1575
+ dataset_name=dataset_name,
1576
+ joined_datasets=joined_datasets,
1577
+ data_plane_id=data_plane_id,
1578
+ page=page,
1579
+ page_size=page_size,
1580
+ _request_auth=_request_auth,
1581
+ _content_type=_content_type,
1582
+ _headers=_headers,
1583
+ _host_index=_host_index
1584
+ )
1585
+
1586
+ _response_types_map: Dict[str, Optional[str]] = {
1587
+ '200': "ResourceListDataset",
1588
+ '500': "InternalServerError",
1589
+ '404': "NotFoundError",
1590
+ '422': "HTTPValidationError",
1591
+ }
1592
+ response_data = self.api_client.call_api(
1593
+ *_param,
1594
+ _request_timeout=_request_timeout
1595
+ )
1596
+ response_data.read()
1597
+ return self.api_client.response_deserialize(
1598
+ response_data=response_data,
1599
+ response_types_map=_response_types_map,
1600
+ ).data
1601
+
1602
+
1603
+ @validate_call
1604
+ def get_datasets_with_http_info(
1605
+ self,
1606
+ project_id: StrictStr,
1607
+ sort: Annotated[Optional[DatasetsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
1608
+ order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
1609
+ model_ids: Annotated[Optional[List[StrictStr]], Field(description="Filter the results for datasets that are used by these models. Optional.")] = None,
1610
+ search: Annotated[Optional[StrictStr], Field(description="Search for datasets by connector name or dataset name.")] = None,
1611
+ connector_type: Annotated[Optional[ConnectorType], Field(description="Filter datasets by connector type.")] = None,
1612
+ connector_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by connector name.")] = None,
1613
+ dataset_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by dataset name.")] = None,
1614
+ joined_datasets: Annotated[Optional[StrictBool], Field(description="Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.")] = None,
1615
+ data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter datasets by the data plane (engine) that backs them.")] = None,
1616
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
1617
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
1618
+ _request_timeout: Union[
1619
+ None,
1620
+ Annotated[StrictFloat, Field(gt=0)],
1621
+ Tuple[
1622
+ Annotated[StrictFloat, Field(gt=0)],
1623
+ Annotated[StrictFloat, Field(gt=0)]
1624
+ ]
1625
+ ] = None,
1626
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1627
+ _content_type: Optional[StrictStr] = None,
1628
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1629
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1630
+ ) -> ApiResponse[ResourceListDataset]:
1631
+ """Get Datasets
1632
+
1633
+ Returns a list of configured datasets. Requires project_list_datasets permission.
1634
+
1635
+ :param project_id: (required)
1636
+ :type project_id: str
1637
+ :param sort: Override the field used for sorting the returned list. Optional.
1638
+ :type sort: DatasetsSort
1639
+ :param order: Override the sort order used. Optional.
1640
+ :type order: SortOrder
1641
+ :param model_ids: Filter the results for datasets that are used by these models. Optional.
1642
+ :type model_ids: List[str]
1643
+ :param search: Search for datasets by connector name or dataset name.
1644
+ :type search: str
1645
+ :param connector_type: Filter datasets by connector type.
1646
+ :type connector_type: ConnectorType
1647
+ :param connector_name: Filter datasets by connector name.
1648
+ :type connector_name: str
1649
+ :param dataset_name: Filter datasets by dataset name.
1650
+ :type dataset_name: str
1651
+ :param joined_datasets: Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.
1652
+ :type joined_datasets: bool
1653
+ :param data_plane_id: Filter datasets by the data plane (engine) that backs them.
1654
+ :type data_plane_id: str
1655
+ :param page: The page to return starting from 1 up to total_pages.
1656
+ :type page: int
1657
+ :param page_size: The number of records per page. The max is 1000.
1658
+ :type page_size: int
1659
+ :param _request_timeout: timeout setting for this request. If one
1660
+ number provided, it will be total request
1661
+ timeout. It can also be a pair (tuple) of
1662
+ (connection, read) timeouts.
1663
+ :type _request_timeout: int, tuple(int, int), optional
1664
+ :param _request_auth: set to override the auth_settings for an a single
1665
+ request; this effectively ignores the
1666
+ authentication in the spec for a single request.
1667
+ :type _request_auth: dict, optional
1668
+ :param _content_type: force content-type for the request.
1669
+ :type _content_type: str, Optional
1670
+ :param _headers: set to override the headers for a single
1671
+ request; this effectively ignores the headers
1672
+ in the spec for a single request.
1673
+ :type _headers: dict, optional
1674
+ :param _host_index: set to override the host_index for a single
1675
+ request; this effectively ignores the host_index
1676
+ in the spec for a single request.
1677
+ :type _host_index: int, optional
1678
+ :return: Returns the result object.
1679
+ """ # noqa: E501
1680
+
1681
+ _param = self._get_datasets_serialize(
1682
+ project_id=project_id,
1683
+ sort=sort,
1684
+ order=order,
1685
+ model_ids=model_ids,
1686
+ search=search,
1687
+ connector_type=connector_type,
1688
+ connector_name=connector_name,
1689
+ dataset_name=dataset_name,
1690
+ joined_datasets=joined_datasets,
1691
+ data_plane_id=data_plane_id,
1692
+ page=page,
1693
+ page_size=page_size,
1694
+ _request_auth=_request_auth,
1695
+ _content_type=_content_type,
1696
+ _headers=_headers,
1697
+ _host_index=_host_index
1698
+ )
1699
+
1700
+ _response_types_map: Dict[str, Optional[str]] = {
1701
+ '200': "ResourceListDataset",
1702
+ '500': "InternalServerError",
1703
+ '404': "NotFoundError",
1704
+ '422': "HTTPValidationError",
1705
+ }
1706
+ response_data = self.api_client.call_api(
1707
+ *_param,
1708
+ _request_timeout=_request_timeout
1709
+ )
1710
+ response_data.read()
1711
+ return self.api_client.response_deserialize(
1712
+ response_data=response_data,
1713
+ response_types_map=_response_types_map,
1714
+ )
1715
+
1716
+
1717
+ @validate_call
1718
+ def get_datasets_without_preload_content(
1719
+ self,
1720
+ project_id: StrictStr,
1721
+ sort: Annotated[Optional[DatasetsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
1722
+ order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
1723
+ model_ids: Annotated[Optional[List[StrictStr]], Field(description="Filter the results for datasets that are used by these models. Optional.")] = None,
1724
+ search: Annotated[Optional[StrictStr], Field(description="Search for datasets by connector name or dataset name.")] = None,
1725
+ connector_type: Annotated[Optional[ConnectorType], Field(description="Filter datasets by connector type.")] = None,
1726
+ connector_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by connector name.")] = None,
1727
+ dataset_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by dataset name.")] = None,
1728
+ joined_datasets: Annotated[Optional[StrictBool], Field(description="Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.")] = None,
1729
+ data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter datasets by the data plane (engine) that backs them.")] = None,
1730
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
1731
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
1732
+ _request_timeout: Union[
1733
+ None,
1734
+ Annotated[StrictFloat, Field(gt=0)],
1735
+ Tuple[
1736
+ Annotated[StrictFloat, Field(gt=0)],
1737
+ Annotated[StrictFloat, Field(gt=0)]
1738
+ ]
1739
+ ] = None,
1740
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1741
+ _content_type: Optional[StrictStr] = None,
1742
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1743
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1744
+ ) -> RESTResponseType:
1745
+ """Get Datasets
1746
+
1747
+ Returns a list of configured datasets. Requires project_list_datasets permission.
1748
+
1749
+ :param project_id: (required)
1750
+ :type project_id: str
1751
+ :param sort: Override the field used for sorting the returned list. Optional.
1752
+ :type sort: DatasetsSort
1753
+ :param order: Override the sort order used. Optional.
1754
+ :type order: SortOrder
1755
+ :param model_ids: Filter the results for datasets that are used by these models. Optional.
1756
+ :type model_ids: List[str]
1757
+ :param search: Search for datasets by connector name or dataset name.
1758
+ :type search: str
1759
+ :param connector_type: Filter datasets by connector type.
1760
+ :type connector_type: ConnectorType
1761
+ :param connector_name: Filter datasets by connector name.
1762
+ :type connector_name: str
1763
+ :param dataset_name: Filter datasets by dataset name.
1764
+ :type dataset_name: str
1765
+ :param joined_datasets: Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.
1766
+ :type joined_datasets: bool
1767
+ :param data_plane_id: Filter datasets by the data plane (engine) that backs them.
1768
+ :type data_plane_id: str
1769
+ :param page: The page to return starting from 1 up to total_pages.
1770
+ :type page: int
1771
+ :param page_size: The number of records per page. The max is 1000.
1772
+ :type page_size: int
1773
+ :param _request_timeout: timeout setting for this request. If one
1774
+ number provided, it will be total request
1775
+ timeout. It can also be a pair (tuple) of
1776
+ (connection, read) timeouts.
1777
+ :type _request_timeout: int, tuple(int, int), optional
1778
+ :param _request_auth: set to override the auth_settings for an a single
1779
+ request; this effectively ignores the
1780
+ authentication in the spec for a single request.
1781
+ :type _request_auth: dict, optional
1782
+ :param _content_type: force content-type for the request.
1783
+ :type _content_type: str, Optional
1784
+ :param _headers: set to override the headers for a single
1785
+ request; this effectively ignores the headers
1786
+ in the spec for a single request.
1787
+ :type _headers: dict, optional
1788
+ :param _host_index: set to override the host_index for a single
1789
+ request; this effectively ignores the host_index
1790
+ in the spec for a single request.
1791
+ :type _host_index: int, optional
1792
+ :return: Returns the result object.
1793
+ """ # noqa: E501
1794
+
1795
+ _param = self._get_datasets_serialize(
1796
+ project_id=project_id,
1797
+ sort=sort,
1798
+ order=order,
1799
+ model_ids=model_ids,
1800
+ search=search,
1801
+ connector_type=connector_type,
1802
+ connector_name=connector_name,
1803
+ dataset_name=dataset_name,
1804
+ joined_datasets=joined_datasets,
1805
+ data_plane_id=data_plane_id,
1806
+ page=page,
1807
+ page_size=page_size,
1808
+ _request_auth=_request_auth,
1809
+ _content_type=_content_type,
1810
+ _headers=_headers,
1811
+ _host_index=_host_index
1812
+ )
1813
+
1814
+ _response_types_map: Dict[str, Optional[str]] = {
1815
+ '200': "ResourceListDataset",
1816
+ '500': "InternalServerError",
1817
+ '404': "NotFoundError",
1818
+ '422': "HTTPValidationError",
1819
+ }
1820
+ response_data = self.api_client.call_api(
1821
+ *_param,
1822
+ _request_timeout=_request_timeout
1823
+ )
1824
+ return response_data.response
1825
+
1826
+
1827
+ def _get_datasets_serialize(
1828
+ self,
1829
+ project_id,
1830
+ sort,
1831
+ order,
1832
+ model_ids,
1833
+ search,
1834
+ connector_type,
1835
+ connector_name,
1836
+ dataset_name,
1837
+ joined_datasets,
1838
+ data_plane_id,
1839
+ page,
1840
+ page_size,
1841
+ _request_auth,
1842
+ _content_type,
1843
+ _headers,
1844
+ _host_index,
1845
+ ) -> RequestSerialized:
1846
+
1847
+ _host = None
1848
+
1849
+ _collection_formats: Dict[str, str] = {
1850
+ 'model_ids': 'multi',
1851
+ }
1852
+
1853
+ _path_params: Dict[str, str] = {}
1854
+ _query_params: List[Tuple[str, str]] = []
1855
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1856
+ _form_params: List[Tuple[str, str]] = []
1857
+ _files: Dict[
1858
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1859
+ ] = {}
1860
+ _body_params: Optional[bytes] = None
1861
+
1862
+ # process the path parameters
1863
+ if project_id is not None:
1864
+ _path_params['project_id'] = project_id
1865
+ # process the query parameters
1866
+ if sort is not None:
1867
+
1868
+ _query_params.append(('sort', sort.value))
1869
+
1870
+ if order is not None:
1871
+
1872
+ _query_params.append(('order', order.value))
1873
+
1874
+ if model_ids is not None:
1875
+
1876
+ _query_params.append(('model_ids', model_ids))
1877
+
1878
+ if search is not None:
1879
+
1880
+ _query_params.append(('search', search))
1881
+
1882
+ if connector_type is not None:
1883
+
1884
+ _query_params.append(('connector_type', connector_type.value))
1885
+
1886
+ if connector_name is not None:
1887
+
1888
+ _query_params.append(('connector_name', connector_name))
1889
+
1890
+ if dataset_name is not None:
1891
+
1892
+ _query_params.append(('dataset_name', dataset_name))
1893
+
1894
+ if joined_datasets is not None:
1895
+
1896
+ _query_params.append(('joined_datasets', joined_datasets))
1897
+
1898
+ if data_plane_id is not None:
1899
+
1900
+ _query_params.append(('data_plane_id', data_plane_id))
1901
+
1902
+ if page is not None:
1903
+
1904
+ _query_params.append(('page', page))
1905
+
1906
+ if page_size is not None:
1907
+
1908
+ _query_params.append(('page_size', page_size))
1909
+
1910
+ # process the header parameters
1911
+ # process the form parameters
1912
+ # process the body parameter
1913
+
1914
+
1915
+ # set the HTTP header `Accept`
1916
+ if 'Accept' not in _header_params:
1917
+ _header_params['Accept'] = self.api_client.select_header_accept(
1918
+ [
1919
+ 'application/json'
1920
+ ]
1921
+ )
1922
+
1923
+
1924
+ # authentication setting
1925
+ _auth_settings: List[str] = [
1926
+ 'OAuth2AuthorizationCode'
1927
+ ]
1928
+
1929
+ return self.api_client.param_serialize(
1930
+ method='GET',
1931
+ resource_path='/api/v1/projects/{project_id}/datasets',
1932
+ path_params=_path_params,
1933
+ query_params=_query_params,
1934
+ header_params=_header_params,
1935
+ body=_body_params,
1936
+ post_params=_form_params,
1937
+ files=_files,
1938
+ auth_settings=_auth_settings,
1939
+ collection_formats=_collection_formats,
1940
+ _host=_host,
1941
+ _request_auth=_request_auth
1942
+ )
1943
+
1944
+
1945
+
1946
+
1947
+ @validate_call
1948
+ def patch_dataset(
1949
+ self,
1950
+ dataset_id: StrictStr,
1951
+ patch_dataset: PatchDataset,
1952
+ _request_timeout: Union[
1953
+ None,
1954
+ Annotated[StrictFloat, Field(gt=0)],
1955
+ Tuple[
1956
+ Annotated[StrictFloat, Field(gt=0)],
1957
+ Annotated[StrictFloat, Field(gt=0)]
1958
+ ]
1959
+ ] = None,
1960
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1961
+ _content_type: Optional[StrictStr] = None,
1962
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1963
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1964
+ ) -> Dataset:
1965
+ """Update Dataset
1966
+
1967
+ Update a dataset. Requires dataset_update permission.
1968
+
1969
+ :param dataset_id: (required)
1970
+ :type dataset_id: str
1971
+ :param patch_dataset: (required)
1972
+ :type patch_dataset: PatchDataset
1973
+ :param _request_timeout: timeout setting for this request. If one
1974
+ number provided, it will be total request
1975
+ timeout. It can also be a pair (tuple) of
1976
+ (connection, read) timeouts.
1977
+ :type _request_timeout: int, tuple(int, int), optional
1978
+ :param _request_auth: set to override the auth_settings for an a single
1979
+ request; this effectively ignores the
1980
+ authentication in the spec for a single request.
1981
+ :type _request_auth: dict, optional
1982
+ :param _content_type: force content-type for the request.
1983
+ :type _content_type: str, Optional
1984
+ :param _headers: set to override the headers for a single
1985
+ request; this effectively ignores the headers
1986
+ in the spec for a single request.
1987
+ :type _headers: dict, optional
1988
+ :param _host_index: set to override the host_index for a single
1989
+ request; this effectively ignores the host_index
1990
+ in the spec for a single request.
1991
+ :type _host_index: int, optional
1992
+ :return: Returns the result object.
1993
+ """ # noqa: E501
1994
+
1995
+ _param = self._patch_dataset_serialize(
1996
+ dataset_id=dataset_id,
1997
+ patch_dataset=patch_dataset,
1998
+ _request_auth=_request_auth,
1999
+ _content_type=_content_type,
2000
+ _headers=_headers,
2001
+ _host_index=_host_index
2002
+ )
2003
+
2004
+ _response_types_map: Dict[str, Optional[str]] = {
2005
+ '200': "Dataset",
2006
+ '500': "InternalServerError",
2007
+ '404': "NotFoundError",
2008
+ '400': "BadRequestError",
2009
+ '422': "HTTPValidationError",
2010
+ }
2011
+ response_data = self.api_client.call_api(
2012
+ *_param,
2013
+ _request_timeout=_request_timeout
2014
+ )
2015
+ response_data.read()
2016
+ return self.api_client.response_deserialize(
2017
+ response_data=response_data,
2018
+ response_types_map=_response_types_map,
2019
+ ).data
2020
+
2021
+
2022
+ @validate_call
2023
+ def patch_dataset_with_http_info(
2024
+ self,
2025
+ dataset_id: StrictStr,
2026
+ patch_dataset: PatchDataset,
2027
+ _request_timeout: Union[
2028
+ None,
2029
+ Annotated[StrictFloat, Field(gt=0)],
2030
+ Tuple[
2031
+ Annotated[StrictFloat, Field(gt=0)],
2032
+ Annotated[StrictFloat, Field(gt=0)]
2033
+ ]
2034
+ ] = None,
2035
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2036
+ _content_type: Optional[StrictStr] = None,
2037
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2038
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2039
+ ) -> ApiResponse[Dataset]:
2040
+ """Update Dataset
2041
+
2042
+ Update a dataset. Requires dataset_update permission.
2043
+
2044
+ :param dataset_id: (required)
2045
+ :type dataset_id: str
2046
+ :param patch_dataset: (required)
2047
+ :type patch_dataset: PatchDataset
2048
+ :param _request_timeout: timeout setting for this request. If one
2049
+ number provided, it will be total request
2050
+ timeout. It can also be a pair (tuple) of
2051
+ (connection, read) timeouts.
2052
+ :type _request_timeout: int, tuple(int, int), optional
2053
+ :param _request_auth: set to override the auth_settings for an a single
2054
+ request; this effectively ignores the
2055
+ authentication in the spec for a single request.
2056
+ :type _request_auth: dict, optional
2057
+ :param _content_type: force content-type for the request.
2058
+ :type _content_type: str, Optional
2059
+ :param _headers: set to override the headers for a single
2060
+ request; this effectively ignores the headers
2061
+ in the spec for a single request.
2062
+ :type _headers: dict, optional
2063
+ :param _host_index: set to override the host_index for a single
2064
+ request; this effectively ignores the host_index
2065
+ in the spec for a single request.
2066
+ :type _host_index: int, optional
2067
+ :return: Returns the result object.
2068
+ """ # noqa: E501
2069
+
2070
+ _param = self._patch_dataset_serialize(
2071
+ dataset_id=dataset_id,
2072
+ patch_dataset=patch_dataset,
2073
+ _request_auth=_request_auth,
2074
+ _content_type=_content_type,
2075
+ _headers=_headers,
2076
+ _host_index=_host_index
2077
+ )
2078
+
2079
+ _response_types_map: Dict[str, Optional[str]] = {
2080
+ '200': "Dataset",
2081
+ '500': "InternalServerError",
2082
+ '404': "NotFoundError",
2083
+ '400': "BadRequestError",
2084
+ '422': "HTTPValidationError",
2085
+ }
2086
+ response_data = self.api_client.call_api(
2087
+ *_param,
2088
+ _request_timeout=_request_timeout
2089
+ )
2090
+ response_data.read()
2091
+ return self.api_client.response_deserialize(
2092
+ response_data=response_data,
2093
+ response_types_map=_response_types_map,
2094
+ )
2095
+
2096
+
2097
+ @validate_call
2098
+ def patch_dataset_without_preload_content(
2099
+ self,
2100
+ dataset_id: StrictStr,
2101
+ patch_dataset: PatchDataset,
2102
+ _request_timeout: Union[
2103
+ None,
2104
+ Annotated[StrictFloat, Field(gt=0)],
2105
+ Tuple[
2106
+ Annotated[StrictFloat, Field(gt=0)],
2107
+ Annotated[StrictFloat, Field(gt=0)]
2108
+ ]
2109
+ ] = None,
2110
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2111
+ _content_type: Optional[StrictStr] = None,
2112
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2113
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2114
+ ) -> RESTResponseType:
2115
+ """Update Dataset
2116
+
2117
+ Update a dataset. Requires dataset_update permission.
2118
+
2119
+ :param dataset_id: (required)
2120
+ :type dataset_id: str
2121
+ :param patch_dataset: (required)
2122
+ :type patch_dataset: PatchDataset
2123
+ :param _request_timeout: timeout setting for this request. If one
2124
+ number provided, it will be total request
2125
+ timeout. It can also be a pair (tuple) of
2126
+ (connection, read) timeouts.
2127
+ :type _request_timeout: int, tuple(int, int), optional
2128
+ :param _request_auth: set to override the auth_settings for an a single
2129
+ request; this effectively ignores the
2130
+ authentication in the spec for a single request.
2131
+ :type _request_auth: dict, optional
2132
+ :param _content_type: force content-type for the request.
2133
+ :type _content_type: str, Optional
2134
+ :param _headers: set to override the headers for a single
2135
+ request; this effectively ignores the headers
2136
+ in the spec for a single request.
2137
+ :type _headers: dict, optional
2138
+ :param _host_index: set to override the host_index for a single
2139
+ request; this effectively ignores the host_index
2140
+ in the spec for a single request.
2141
+ :type _host_index: int, optional
2142
+ :return: Returns the result object.
2143
+ """ # noqa: E501
2144
+
2145
+ _param = self._patch_dataset_serialize(
2146
+ dataset_id=dataset_id,
2147
+ patch_dataset=patch_dataset,
2148
+ _request_auth=_request_auth,
2149
+ _content_type=_content_type,
2150
+ _headers=_headers,
2151
+ _host_index=_host_index
2152
+ )
2153
+
2154
+ _response_types_map: Dict[str, Optional[str]] = {
2155
+ '200': "Dataset",
2156
+ '500': "InternalServerError",
2157
+ '404': "NotFoundError",
2158
+ '400': "BadRequestError",
2159
+ '422': "HTTPValidationError",
2160
+ }
2161
+ response_data = self.api_client.call_api(
2162
+ *_param,
2163
+ _request_timeout=_request_timeout
2164
+ )
2165
+ return response_data.response
2166
+
2167
+
2168
+ def _patch_dataset_serialize(
2169
+ self,
2170
+ dataset_id,
2171
+ patch_dataset,
2172
+ _request_auth,
2173
+ _content_type,
2174
+ _headers,
2175
+ _host_index,
2176
+ ) -> RequestSerialized:
2177
+
2178
+ _host = None
2179
+
2180
+ _collection_formats: Dict[str, str] = {
2181
+ }
2182
+
2183
+ _path_params: Dict[str, str] = {}
2184
+ _query_params: List[Tuple[str, str]] = []
2185
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2186
+ _form_params: List[Tuple[str, str]] = []
2187
+ _files: Dict[
2188
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2189
+ ] = {}
2190
+ _body_params: Optional[bytes] = None
2191
+
2192
+ # process the path parameters
2193
+ if dataset_id is not None:
2194
+ _path_params['dataset_id'] = dataset_id
2195
+ # process the query parameters
2196
+ # process the header parameters
2197
+ # process the form parameters
2198
+ # process the body parameter
2199
+ if patch_dataset is not None:
2200
+ _body_params = patch_dataset
2201
+
2202
+
2203
+ # set the HTTP header `Accept`
2204
+ if 'Accept' not in _header_params:
2205
+ _header_params['Accept'] = self.api_client.select_header_accept(
2206
+ [
2207
+ 'application/json'
2208
+ ]
2209
+ )
2210
+
2211
+ # set the HTTP header `Content-Type`
2212
+ if _content_type:
2213
+ _header_params['Content-Type'] = _content_type
2214
+ else:
2215
+ _default_content_type = (
2216
+ self.api_client.select_header_content_type(
2217
+ [
2218
+ 'application/json'
2219
+ ]
2220
+ )
2221
+ )
2222
+ if _default_content_type is not None:
2223
+ _header_params['Content-Type'] = _default_content_type
2224
+
2225
+ # authentication setting
2226
+ _auth_settings: List[str] = [
2227
+ 'OAuth2AuthorizationCode'
2228
+ ]
2229
+
2230
+ return self.api_client.param_serialize(
2231
+ method='PATCH',
2232
+ resource_path='/api/v1/datasets/{dataset_id}',
2233
+ path_params=_path_params,
2234
+ query_params=_query_params,
2235
+ header_params=_header_params,
2236
+ body=_body_params,
2237
+ post_params=_form_params,
2238
+ files=_files,
2239
+ auth_settings=_auth_settings,
2240
+ collection_formats=_collection_formats,
2241
+ _host=_host,
2242
+ _request_auth=_request_auth
2243
+ )
2244
+
2245
+
2246
+
2247
+
2248
+ @validate_call
2249
+ def post_available_dataset(
2250
+ self,
2251
+ connector_id: StrictStr,
2252
+ put_available_dataset: PutAvailableDataset,
2253
+ _request_timeout: Union[
2254
+ None,
2255
+ Annotated[StrictFloat, Field(gt=0)],
2256
+ Tuple[
2257
+ Annotated[StrictFloat, Field(gt=0)],
2258
+ Annotated[StrictFloat, Field(gt=0)]
2259
+ ]
2260
+ ] = None,
2261
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2262
+ _content_type: Optional[StrictStr] = None,
2263
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2264
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2265
+ ) -> AvailableDataset:
2266
+ """Create Single Available Dataset
2267
+
2268
+ Create a single available dataset for this connector. Requires connector_create_available_datasetpermission.
2269
+
2270
+ :param connector_id: (required)
2271
+ :type connector_id: str
2272
+ :param put_available_dataset: (required)
2273
+ :type put_available_dataset: PutAvailableDataset
2274
+ :param _request_timeout: timeout setting for this request. If one
2275
+ number provided, it will be total request
2276
+ timeout. It can also be a pair (tuple) of
2277
+ (connection, read) timeouts.
2278
+ :type _request_timeout: int, tuple(int, int), optional
2279
+ :param _request_auth: set to override the auth_settings for an a single
2280
+ request; this effectively ignores the
2281
+ authentication in the spec for a single request.
2282
+ :type _request_auth: dict, optional
2283
+ :param _content_type: force content-type for the request.
2284
+ :type _content_type: str, Optional
2285
+ :param _headers: set to override the headers for a single
2286
+ request; this effectively ignores the headers
2287
+ in the spec for a single request.
2288
+ :type _headers: dict, optional
2289
+ :param _host_index: set to override the host_index for a single
2290
+ request; this effectively ignores the host_index
2291
+ in the spec for a single request.
2292
+ :type _host_index: int, optional
2293
+ :return: Returns the result object.
2294
+ """ # noqa: E501
2295
+
2296
+ _param = self._post_available_dataset_serialize(
2297
+ connector_id=connector_id,
2298
+ put_available_dataset=put_available_dataset,
2299
+ _request_auth=_request_auth,
2300
+ _content_type=_content_type,
2301
+ _headers=_headers,
2302
+ _host_index=_host_index
2303
+ )
2304
+
2305
+ _response_types_map: Dict[str, Optional[str]] = {
2306
+ '200': "AvailableDataset",
2307
+ '500': "InternalServerError",
2308
+ '404': "NotFoundError",
2309
+ '400': "BadRequestError",
2310
+ '422': "HTTPValidationError",
2311
+ }
2312
+ response_data = self.api_client.call_api(
2313
+ *_param,
2314
+ _request_timeout=_request_timeout
2315
+ )
2316
+ response_data.read()
2317
+ return self.api_client.response_deserialize(
2318
+ response_data=response_data,
2319
+ response_types_map=_response_types_map,
2320
+ ).data
2321
+
2322
+
2323
+ @validate_call
2324
+ def post_available_dataset_with_http_info(
2325
+ self,
2326
+ connector_id: StrictStr,
2327
+ put_available_dataset: PutAvailableDataset,
2328
+ _request_timeout: Union[
2329
+ None,
2330
+ Annotated[StrictFloat, Field(gt=0)],
2331
+ Tuple[
2332
+ Annotated[StrictFloat, Field(gt=0)],
2333
+ Annotated[StrictFloat, Field(gt=0)]
2334
+ ]
2335
+ ] = None,
2336
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2337
+ _content_type: Optional[StrictStr] = None,
2338
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2339
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2340
+ ) -> ApiResponse[AvailableDataset]:
2341
+ """Create Single Available Dataset
2342
+
2343
+ Create a single available dataset for this connector. Requires connector_create_available_datasetpermission.
2344
+
2345
+ :param connector_id: (required)
2346
+ :type connector_id: str
2347
+ :param put_available_dataset: (required)
2348
+ :type put_available_dataset: PutAvailableDataset
2349
+ :param _request_timeout: timeout setting for this request. If one
2350
+ number provided, it will be total request
2351
+ timeout. It can also be a pair (tuple) of
2352
+ (connection, read) timeouts.
2353
+ :type _request_timeout: int, tuple(int, int), optional
2354
+ :param _request_auth: set to override the auth_settings for an a single
2355
+ request; this effectively ignores the
2356
+ authentication in the spec for a single request.
2357
+ :type _request_auth: dict, optional
2358
+ :param _content_type: force content-type for the request.
2359
+ :type _content_type: str, Optional
2360
+ :param _headers: set to override the headers for a single
2361
+ request; this effectively ignores the headers
2362
+ in the spec for a single request.
2363
+ :type _headers: dict, optional
2364
+ :param _host_index: set to override the host_index for a single
2365
+ request; this effectively ignores the host_index
2366
+ in the spec for a single request.
2367
+ :type _host_index: int, optional
2368
+ :return: Returns the result object.
2369
+ """ # noqa: E501
2370
+
2371
+ _param = self._post_available_dataset_serialize(
2372
+ connector_id=connector_id,
2373
+ put_available_dataset=put_available_dataset,
2374
+ _request_auth=_request_auth,
2375
+ _content_type=_content_type,
2376
+ _headers=_headers,
2377
+ _host_index=_host_index
2378
+ )
2379
+
2380
+ _response_types_map: Dict[str, Optional[str]] = {
2381
+ '200': "AvailableDataset",
2382
+ '500': "InternalServerError",
2383
+ '404': "NotFoundError",
2384
+ '400': "BadRequestError",
2385
+ '422': "HTTPValidationError",
2386
+ }
2387
+ response_data = self.api_client.call_api(
2388
+ *_param,
2389
+ _request_timeout=_request_timeout
2390
+ )
2391
+ response_data.read()
2392
+ return self.api_client.response_deserialize(
2393
+ response_data=response_data,
2394
+ response_types_map=_response_types_map,
2395
+ )
2396
+
2397
+
2398
+ @validate_call
2399
+ def post_available_dataset_without_preload_content(
2400
+ self,
2401
+ connector_id: StrictStr,
2402
+ put_available_dataset: PutAvailableDataset,
2403
+ _request_timeout: Union[
2404
+ None,
2405
+ Annotated[StrictFloat, Field(gt=0)],
2406
+ Tuple[
2407
+ Annotated[StrictFloat, Field(gt=0)],
2408
+ Annotated[StrictFloat, Field(gt=0)]
2409
+ ]
2410
+ ] = None,
2411
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2412
+ _content_type: Optional[StrictStr] = None,
2413
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2414
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2415
+ ) -> RESTResponseType:
2416
+ """Create Single Available Dataset
2417
+
2418
+ Create a single available dataset for this connector. Requires connector_create_available_datasetpermission.
2419
+
2420
+ :param connector_id: (required)
2421
+ :type connector_id: str
2422
+ :param put_available_dataset: (required)
2423
+ :type put_available_dataset: PutAvailableDataset
2424
+ :param _request_timeout: timeout setting for this request. If one
2425
+ number provided, it will be total request
2426
+ timeout. It can also be a pair (tuple) of
2427
+ (connection, read) timeouts.
2428
+ :type _request_timeout: int, tuple(int, int), optional
2429
+ :param _request_auth: set to override the auth_settings for an a single
2430
+ request; this effectively ignores the
2431
+ authentication in the spec for a single request.
2432
+ :type _request_auth: dict, optional
2433
+ :param _content_type: force content-type for the request.
2434
+ :type _content_type: str, Optional
2435
+ :param _headers: set to override the headers for a single
2436
+ request; this effectively ignores the headers
2437
+ in the spec for a single request.
2438
+ :type _headers: dict, optional
2439
+ :param _host_index: set to override the host_index for a single
2440
+ request; this effectively ignores the host_index
2441
+ in the spec for a single request.
2442
+ :type _host_index: int, optional
2443
+ :return: Returns the result object.
2444
+ """ # noqa: E501
2445
+
2446
+ _param = self._post_available_dataset_serialize(
2447
+ connector_id=connector_id,
2448
+ put_available_dataset=put_available_dataset,
2449
+ _request_auth=_request_auth,
2450
+ _content_type=_content_type,
2451
+ _headers=_headers,
2452
+ _host_index=_host_index
2453
+ )
2454
+
2455
+ _response_types_map: Dict[str, Optional[str]] = {
2456
+ '200': "AvailableDataset",
2457
+ '500': "InternalServerError",
2458
+ '404': "NotFoundError",
2459
+ '400': "BadRequestError",
2460
+ '422': "HTTPValidationError",
2461
+ }
2462
+ response_data = self.api_client.call_api(
2463
+ *_param,
2464
+ _request_timeout=_request_timeout
2465
+ )
2466
+ return response_data.response
2467
+
2468
+
2469
+ def _post_available_dataset_serialize(
2470
+ self,
2471
+ connector_id,
2472
+ put_available_dataset,
2473
+ _request_auth,
2474
+ _content_type,
2475
+ _headers,
2476
+ _host_index,
2477
+ ) -> RequestSerialized:
2478
+
2479
+ _host = None
2480
+
2481
+ _collection_formats: Dict[str, str] = {
2482
+ }
2483
+
2484
+ _path_params: Dict[str, str] = {}
2485
+ _query_params: List[Tuple[str, str]] = []
2486
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2487
+ _form_params: List[Tuple[str, str]] = []
2488
+ _files: Dict[
2489
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2490
+ ] = {}
2491
+ _body_params: Optional[bytes] = None
2492
+
2493
+ # process the path parameters
2494
+ if connector_id is not None:
2495
+ _path_params['connector_id'] = connector_id
2496
+ # process the query parameters
2497
+ # process the header parameters
2498
+ # process the form parameters
2499
+ # process the body parameter
2500
+ if put_available_dataset is not None:
2501
+ _body_params = put_available_dataset
2502
+
2503
+
2504
+ # set the HTTP header `Accept`
2505
+ if 'Accept' not in _header_params:
2506
+ _header_params['Accept'] = self.api_client.select_header_accept(
2507
+ [
2508
+ 'application/json'
2509
+ ]
2510
+ )
2511
+
2512
+ # set the HTTP header `Content-Type`
2513
+ if _content_type:
2514
+ _header_params['Content-Type'] = _content_type
2515
+ else:
2516
+ _default_content_type = (
2517
+ self.api_client.select_header_content_type(
2518
+ [
2519
+ 'application/json'
2520
+ ]
2521
+ )
2522
+ )
2523
+ if _default_content_type is not None:
2524
+ _header_params['Content-Type'] = _default_content_type
2525
+
2526
+ # authentication setting
2527
+ _auth_settings: List[str] = [
2528
+ 'OAuth2AuthorizationCode'
2529
+ ]
2530
+
2531
+ return self.api_client.param_serialize(
2532
+ method='POST',
2533
+ resource_path='/api/v1/connectors/{connector_id}/available_datasets',
2534
+ path_params=_path_params,
2535
+ query_params=_query_params,
2536
+ header_params=_header_params,
2537
+ body=_body_params,
2538
+ post_params=_form_params,
2539
+ files=_files,
2540
+ auth_settings=_auth_settings,
2541
+ collection_formats=_collection_formats,
2542
+ _host=_host,
2543
+ _request_auth=_request_auth
2544
+ )
2545
+
2546
+
2547
+
2548
+
2549
+ @validate_call
2550
+ def post_connector_dataset(
2551
+ self,
2552
+ connector_id: StrictStr,
2553
+ post_dataset: PostDataset,
2554
+ _request_timeout: Union[
2555
+ None,
2556
+ Annotated[StrictFloat, Field(gt=0)],
2557
+ Tuple[
2558
+ Annotated[StrictFloat, Field(gt=0)],
2559
+ Annotated[StrictFloat, Field(gt=0)]
2560
+ ]
2561
+ ] = None,
2562
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2563
+ _content_type: Optional[StrictStr] = None,
2564
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2565
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2566
+ ) -> Dataset:
2567
+ """Create Connector Dataset
2568
+
2569
+ Create connector dataset. Requires connector_create_dataset permission.
2570
+
2571
+ :param connector_id: (required)
2572
+ :type connector_id: str
2573
+ :param post_dataset: (required)
2574
+ :type post_dataset: PostDataset
2575
+ :param _request_timeout: timeout setting for this request. If one
2576
+ number provided, it will be total request
2577
+ timeout. It can also be a pair (tuple) of
2578
+ (connection, read) timeouts.
2579
+ :type _request_timeout: int, tuple(int, int), optional
2580
+ :param _request_auth: set to override the auth_settings for an a single
2581
+ request; this effectively ignores the
2582
+ authentication in the spec for a single request.
2583
+ :type _request_auth: dict, optional
2584
+ :param _content_type: force content-type for the request.
2585
+ :type _content_type: str, Optional
2586
+ :param _headers: set to override the headers for a single
2587
+ request; this effectively ignores the headers
2588
+ in the spec for a single request.
2589
+ :type _headers: dict, optional
2590
+ :param _host_index: set to override the host_index for a single
2591
+ request; this effectively ignores the host_index
2592
+ in the spec for a single request.
2593
+ :type _host_index: int, optional
2594
+ :return: Returns the result object.
2595
+ """ # noqa: E501
2596
+
2597
+ _param = self._post_connector_dataset_serialize(
2598
+ connector_id=connector_id,
2599
+ post_dataset=post_dataset,
2600
+ _request_auth=_request_auth,
2601
+ _content_type=_content_type,
2602
+ _headers=_headers,
2603
+ _host_index=_host_index
2604
+ )
2605
+
2606
+ _response_types_map: Dict[str, Optional[str]] = {
2607
+ '200': "Dataset",
2608
+ '500': "InternalServerError",
2609
+ '404': "NotFoundError",
2610
+ '400': "BadRequestError",
2611
+ '422': "HTTPValidationError",
2612
+ }
2613
+ response_data = self.api_client.call_api(
2614
+ *_param,
2615
+ _request_timeout=_request_timeout
2616
+ )
2617
+ response_data.read()
2618
+ return self.api_client.response_deserialize(
2619
+ response_data=response_data,
2620
+ response_types_map=_response_types_map,
2621
+ ).data
2622
+
2623
+
2624
+ @validate_call
2625
+ def post_connector_dataset_with_http_info(
2626
+ self,
2627
+ connector_id: StrictStr,
2628
+ post_dataset: PostDataset,
2629
+ _request_timeout: Union[
2630
+ None,
2631
+ Annotated[StrictFloat, Field(gt=0)],
2632
+ Tuple[
2633
+ Annotated[StrictFloat, Field(gt=0)],
2634
+ Annotated[StrictFloat, Field(gt=0)]
2635
+ ]
2636
+ ] = None,
2637
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2638
+ _content_type: Optional[StrictStr] = None,
2639
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2640
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2641
+ ) -> ApiResponse[Dataset]:
2642
+ """Create Connector Dataset
2643
+
2644
+ Create connector dataset. Requires connector_create_dataset permission.
2645
+
2646
+ :param connector_id: (required)
2647
+ :type connector_id: str
2648
+ :param post_dataset: (required)
2649
+ :type post_dataset: PostDataset
2650
+ :param _request_timeout: timeout setting for this request. If one
2651
+ number provided, it will be total request
2652
+ timeout. It can also be a pair (tuple) of
2653
+ (connection, read) timeouts.
2654
+ :type _request_timeout: int, tuple(int, int), optional
2655
+ :param _request_auth: set to override the auth_settings for an a single
2656
+ request; this effectively ignores the
2657
+ authentication in the spec for a single request.
2658
+ :type _request_auth: dict, optional
2659
+ :param _content_type: force content-type for the request.
2660
+ :type _content_type: str, Optional
2661
+ :param _headers: set to override the headers for a single
2662
+ request; this effectively ignores the headers
2663
+ in the spec for a single request.
2664
+ :type _headers: dict, optional
2665
+ :param _host_index: set to override the host_index for a single
2666
+ request; this effectively ignores the host_index
2667
+ in the spec for a single request.
2668
+ :type _host_index: int, optional
2669
+ :return: Returns the result object.
2670
+ """ # noqa: E501
2671
+
2672
+ _param = self._post_connector_dataset_serialize(
2673
+ connector_id=connector_id,
2674
+ post_dataset=post_dataset,
2675
+ _request_auth=_request_auth,
2676
+ _content_type=_content_type,
2677
+ _headers=_headers,
2678
+ _host_index=_host_index
2679
+ )
2680
+
2681
+ _response_types_map: Dict[str, Optional[str]] = {
2682
+ '200': "Dataset",
2683
+ '500': "InternalServerError",
2684
+ '404': "NotFoundError",
2685
+ '400': "BadRequestError",
2686
+ '422': "HTTPValidationError",
2687
+ }
2688
+ response_data = self.api_client.call_api(
2689
+ *_param,
2690
+ _request_timeout=_request_timeout
2691
+ )
2692
+ response_data.read()
2693
+ return self.api_client.response_deserialize(
2694
+ response_data=response_data,
2695
+ response_types_map=_response_types_map,
2696
+ )
2697
+
2698
+
2699
+ @validate_call
2700
+ def post_connector_dataset_without_preload_content(
2701
+ self,
2702
+ connector_id: StrictStr,
2703
+ post_dataset: PostDataset,
2704
+ _request_timeout: Union[
2705
+ None,
2706
+ Annotated[StrictFloat, Field(gt=0)],
2707
+ Tuple[
2708
+ Annotated[StrictFloat, Field(gt=0)],
2709
+ Annotated[StrictFloat, Field(gt=0)]
2710
+ ]
2711
+ ] = None,
2712
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2713
+ _content_type: Optional[StrictStr] = None,
2714
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2715
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2716
+ ) -> RESTResponseType:
2717
+ """Create Connector Dataset
2718
+
2719
+ Create connector dataset. Requires connector_create_dataset permission.
2720
+
2721
+ :param connector_id: (required)
2722
+ :type connector_id: str
2723
+ :param post_dataset: (required)
2724
+ :type post_dataset: PostDataset
2725
+ :param _request_timeout: timeout setting for this request. If one
2726
+ number provided, it will be total request
2727
+ timeout. It can also be a pair (tuple) of
2728
+ (connection, read) timeouts.
2729
+ :type _request_timeout: int, tuple(int, int), optional
2730
+ :param _request_auth: set to override the auth_settings for an a single
2731
+ request; this effectively ignores the
2732
+ authentication in the spec for a single request.
2733
+ :type _request_auth: dict, optional
2734
+ :param _content_type: force content-type for the request.
2735
+ :type _content_type: str, Optional
2736
+ :param _headers: set to override the headers for a single
2737
+ request; this effectively ignores the headers
2738
+ in the spec for a single request.
2739
+ :type _headers: dict, optional
2740
+ :param _host_index: set to override the host_index for a single
2741
+ request; this effectively ignores the host_index
2742
+ in the spec for a single request.
2743
+ :type _host_index: int, optional
2744
+ :return: Returns the result object.
2745
+ """ # noqa: E501
2746
+
2747
+ _param = self._post_connector_dataset_serialize(
2748
+ connector_id=connector_id,
2749
+ post_dataset=post_dataset,
2750
+ _request_auth=_request_auth,
2751
+ _content_type=_content_type,
2752
+ _headers=_headers,
2753
+ _host_index=_host_index
2754
+ )
2755
+
2756
+ _response_types_map: Dict[str, Optional[str]] = {
2757
+ '200': "Dataset",
2758
+ '500': "InternalServerError",
2759
+ '404': "NotFoundError",
2760
+ '400': "BadRequestError",
2761
+ '422': "HTTPValidationError",
2762
+ }
2763
+ response_data = self.api_client.call_api(
2764
+ *_param,
2765
+ _request_timeout=_request_timeout
2766
+ )
2767
+ return response_data.response
2768
+
2769
+
2770
+ def _post_connector_dataset_serialize(
2771
+ self,
2772
+ connector_id,
2773
+ post_dataset,
2774
+ _request_auth,
2775
+ _content_type,
2776
+ _headers,
2777
+ _host_index,
2778
+ ) -> RequestSerialized:
2779
+
2780
+ _host = None
2781
+
2782
+ _collection_formats: Dict[str, str] = {
2783
+ }
2784
+
2785
+ _path_params: Dict[str, str] = {}
2786
+ _query_params: List[Tuple[str, str]] = []
2787
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2788
+ _form_params: List[Tuple[str, str]] = []
2789
+ _files: Dict[
2790
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2791
+ ] = {}
2792
+ _body_params: Optional[bytes] = None
2793
+
2794
+ # process the path parameters
2795
+ if connector_id is not None:
2796
+ _path_params['connector_id'] = connector_id
2797
+ # process the query parameters
2798
+ # process the header parameters
2799
+ # process the form parameters
2800
+ # process the body parameter
2801
+ if post_dataset is not None:
2802
+ _body_params = post_dataset
2803
+
2804
+
2805
+ # set the HTTP header `Accept`
2806
+ if 'Accept' not in _header_params:
2807
+ _header_params['Accept'] = self.api_client.select_header_accept(
2808
+ [
2809
+ 'application/json'
2810
+ ]
2811
+ )
2812
+
2813
+ # set the HTTP header `Content-Type`
2814
+ if _content_type:
2815
+ _header_params['Content-Type'] = _content_type
2816
+ else:
2817
+ _default_content_type = (
2818
+ self.api_client.select_header_content_type(
2819
+ [
2820
+ 'application/json'
2821
+ ]
2822
+ )
2823
+ )
2824
+ if _default_content_type is not None:
2825
+ _header_params['Content-Type'] = _default_content_type
2826
+
2827
+ # authentication setting
2828
+ _auth_settings: List[str] = [
2829
+ 'OAuth2AuthorizationCode'
2830
+ ]
2831
+
2832
+ return self.api_client.param_serialize(
2833
+ method='POST',
2834
+ resource_path='/api/v1/connectors/{connector_id}/datasets',
2835
+ path_params=_path_params,
2836
+ query_params=_query_params,
2837
+ header_params=_header_params,
2838
+ body=_body_params,
2839
+ post_params=_form_params,
2840
+ files=_files,
2841
+ auth_settings=_auth_settings,
2842
+ collection_formats=_collection_formats,
2843
+ _host=_host,
2844
+ _request_auth=_request_auth
2845
+ )
2846
+
2847
+
2848
+
2849
+
2850
+ @validate_call
2851
+ def post_project_available_dataset(
2852
+ self,
2853
+ project_id: StrictStr,
2854
+ put_available_dataset: PutAvailableDataset,
2855
+ _request_timeout: Union[
2856
+ None,
2857
+ Annotated[StrictFloat, Field(gt=0)],
2858
+ Tuple[
2859
+ Annotated[StrictFloat, Field(gt=0)],
2860
+ Annotated[StrictFloat, Field(gt=0)]
2861
+ ]
2862
+ ] = None,
2863
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2864
+ _content_type: Optional[StrictStr] = None,
2865
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2866
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2867
+ ) -> AvailableDataset:
2868
+ """Create Project Available Dataset
2869
+
2870
+ Create project dataset. Requires project_create_available_dataset permission.
2871
+
2872
+ :param project_id: (required)
2873
+ :type project_id: str
2874
+ :param put_available_dataset: (required)
2875
+ :type put_available_dataset: PutAvailableDataset
2876
+ :param _request_timeout: timeout setting for this request. If one
2877
+ number provided, it will be total request
2878
+ timeout. It can also be a pair (tuple) of
2879
+ (connection, read) timeouts.
2880
+ :type _request_timeout: int, tuple(int, int), optional
2881
+ :param _request_auth: set to override the auth_settings for an a single
2882
+ request; this effectively ignores the
2883
+ authentication in the spec for a single request.
2884
+ :type _request_auth: dict, optional
2885
+ :param _content_type: force content-type for the request.
2886
+ :type _content_type: str, Optional
2887
+ :param _headers: set to override the headers for a single
2888
+ request; this effectively ignores the headers
2889
+ in the spec for a single request.
2890
+ :type _headers: dict, optional
2891
+ :param _host_index: set to override the host_index for a single
2892
+ request; this effectively ignores the host_index
2893
+ in the spec for a single request.
2894
+ :type _host_index: int, optional
2895
+ :return: Returns the result object.
2896
+ """ # noqa: E501
2897
+
2898
+ _param = self._post_project_available_dataset_serialize(
2899
+ project_id=project_id,
2900
+ put_available_dataset=put_available_dataset,
2901
+ _request_auth=_request_auth,
2902
+ _content_type=_content_type,
2903
+ _headers=_headers,
2904
+ _host_index=_host_index
2905
+ )
2906
+
2907
+ _response_types_map: Dict[str, Optional[str]] = {
2908
+ '200': "AvailableDataset",
2909
+ '500': "InternalServerError",
2910
+ '404': "NotFoundError",
2911
+ '400': "BadRequestError",
2912
+ '422': "HTTPValidationError",
2913
+ }
2914
+ response_data = self.api_client.call_api(
2915
+ *_param,
2916
+ _request_timeout=_request_timeout
2917
+ )
2918
+ response_data.read()
2919
+ return self.api_client.response_deserialize(
2920
+ response_data=response_data,
2921
+ response_types_map=_response_types_map,
2922
+ ).data
2923
+
2924
+
2925
+ @validate_call
2926
+ def post_project_available_dataset_with_http_info(
2927
+ self,
2928
+ project_id: StrictStr,
2929
+ put_available_dataset: PutAvailableDataset,
2930
+ _request_timeout: Union[
2931
+ None,
2932
+ Annotated[StrictFloat, Field(gt=0)],
2933
+ Tuple[
2934
+ Annotated[StrictFloat, Field(gt=0)],
2935
+ Annotated[StrictFloat, Field(gt=0)]
2936
+ ]
2937
+ ] = None,
2938
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2939
+ _content_type: Optional[StrictStr] = None,
2940
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2941
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2942
+ ) -> ApiResponse[AvailableDataset]:
2943
+ """Create Project Available Dataset
2944
+
2945
+ Create project dataset. Requires project_create_available_dataset permission.
2946
+
2947
+ :param project_id: (required)
2948
+ :type project_id: str
2949
+ :param put_available_dataset: (required)
2950
+ :type put_available_dataset: PutAvailableDataset
2951
+ :param _request_timeout: timeout setting for this request. If one
2952
+ number provided, it will be total request
2953
+ timeout. It can also be a pair (tuple) of
2954
+ (connection, read) timeouts.
2955
+ :type _request_timeout: int, tuple(int, int), optional
2956
+ :param _request_auth: set to override the auth_settings for an a single
2957
+ request; this effectively ignores the
2958
+ authentication in the spec for a single request.
2959
+ :type _request_auth: dict, optional
2960
+ :param _content_type: force content-type for the request.
2961
+ :type _content_type: str, Optional
2962
+ :param _headers: set to override the headers for a single
2963
+ request; this effectively ignores the headers
2964
+ in the spec for a single request.
2965
+ :type _headers: dict, optional
2966
+ :param _host_index: set to override the host_index for a single
2967
+ request; this effectively ignores the host_index
2968
+ in the spec for a single request.
2969
+ :type _host_index: int, optional
2970
+ :return: Returns the result object.
2971
+ """ # noqa: E501
2972
+
2973
+ _param = self._post_project_available_dataset_serialize(
2974
+ project_id=project_id,
2975
+ put_available_dataset=put_available_dataset,
2976
+ _request_auth=_request_auth,
2977
+ _content_type=_content_type,
2978
+ _headers=_headers,
2979
+ _host_index=_host_index
2980
+ )
2981
+
2982
+ _response_types_map: Dict[str, Optional[str]] = {
2983
+ '200': "AvailableDataset",
2984
+ '500': "InternalServerError",
2985
+ '404': "NotFoundError",
2986
+ '400': "BadRequestError",
2987
+ '422': "HTTPValidationError",
2988
+ }
2989
+ response_data = self.api_client.call_api(
2990
+ *_param,
2991
+ _request_timeout=_request_timeout
2992
+ )
2993
+ response_data.read()
2994
+ return self.api_client.response_deserialize(
2995
+ response_data=response_data,
2996
+ response_types_map=_response_types_map,
2997
+ )
2998
+
2999
+
3000
+ @validate_call
3001
+ def post_project_available_dataset_without_preload_content(
3002
+ self,
3003
+ project_id: StrictStr,
3004
+ put_available_dataset: PutAvailableDataset,
3005
+ _request_timeout: Union[
3006
+ None,
3007
+ Annotated[StrictFloat, Field(gt=0)],
3008
+ Tuple[
3009
+ Annotated[StrictFloat, Field(gt=0)],
3010
+ Annotated[StrictFloat, Field(gt=0)]
3011
+ ]
3012
+ ] = None,
3013
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3014
+ _content_type: Optional[StrictStr] = None,
3015
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3016
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3017
+ ) -> RESTResponseType:
3018
+ """Create Project Available Dataset
3019
+
3020
+ Create project dataset. Requires project_create_available_dataset permission.
3021
+
3022
+ :param project_id: (required)
3023
+ :type project_id: str
3024
+ :param put_available_dataset: (required)
3025
+ :type put_available_dataset: PutAvailableDataset
3026
+ :param _request_timeout: timeout setting for this request. If one
3027
+ number provided, it will be total request
3028
+ timeout. It can also be a pair (tuple) of
3029
+ (connection, read) timeouts.
3030
+ :type _request_timeout: int, tuple(int, int), optional
3031
+ :param _request_auth: set to override the auth_settings for an a single
3032
+ request; this effectively ignores the
3033
+ authentication in the spec for a single request.
3034
+ :type _request_auth: dict, optional
3035
+ :param _content_type: force content-type for the request.
3036
+ :type _content_type: str, Optional
3037
+ :param _headers: set to override the headers for a single
3038
+ request; this effectively ignores the headers
3039
+ in the spec for a single request.
3040
+ :type _headers: dict, optional
3041
+ :param _host_index: set to override the host_index for a single
3042
+ request; this effectively ignores the host_index
3043
+ in the spec for a single request.
3044
+ :type _host_index: int, optional
3045
+ :return: Returns the result object.
3046
+ """ # noqa: E501
3047
+
3048
+ _param = self._post_project_available_dataset_serialize(
3049
+ project_id=project_id,
3050
+ put_available_dataset=put_available_dataset,
3051
+ _request_auth=_request_auth,
3052
+ _content_type=_content_type,
3053
+ _headers=_headers,
3054
+ _host_index=_host_index
3055
+ )
3056
+
3057
+ _response_types_map: Dict[str, Optional[str]] = {
3058
+ '200': "AvailableDataset",
3059
+ '500': "InternalServerError",
3060
+ '404': "NotFoundError",
3061
+ '400': "BadRequestError",
3062
+ '422': "HTTPValidationError",
3063
+ }
3064
+ response_data = self.api_client.call_api(
3065
+ *_param,
3066
+ _request_timeout=_request_timeout
3067
+ )
3068
+ return response_data.response
3069
+
3070
+
3071
+ def _post_project_available_dataset_serialize(
3072
+ self,
3073
+ project_id,
3074
+ put_available_dataset,
3075
+ _request_auth,
3076
+ _content_type,
3077
+ _headers,
3078
+ _host_index,
3079
+ ) -> RequestSerialized:
3080
+
3081
+ _host = None
3082
+
3083
+ _collection_formats: Dict[str, str] = {
3084
+ }
3085
+
3086
+ _path_params: Dict[str, str] = {}
3087
+ _query_params: List[Tuple[str, str]] = []
3088
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3089
+ _form_params: List[Tuple[str, str]] = []
3090
+ _files: Dict[
3091
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3092
+ ] = {}
3093
+ _body_params: Optional[bytes] = None
3094
+
3095
+ # process the path parameters
3096
+ if project_id is not None:
3097
+ _path_params['project_id'] = project_id
3098
+ # process the query parameters
3099
+ # process the header parameters
3100
+ # process the form parameters
3101
+ # process the body parameter
3102
+ if put_available_dataset is not None:
3103
+ _body_params = put_available_dataset
3104
+
3105
+
3106
+ # set the HTTP header `Accept`
3107
+ if 'Accept' not in _header_params:
3108
+ _header_params['Accept'] = self.api_client.select_header_accept(
3109
+ [
3110
+ 'application/json'
3111
+ ]
3112
+ )
3113
+
3114
+ # set the HTTP header `Content-Type`
3115
+ if _content_type:
3116
+ _header_params['Content-Type'] = _content_type
3117
+ else:
3118
+ _default_content_type = (
3119
+ self.api_client.select_header_content_type(
3120
+ [
3121
+ 'application/json'
3122
+ ]
3123
+ )
3124
+ )
3125
+ if _default_content_type is not None:
3126
+ _header_params['Content-Type'] = _default_content_type
3127
+
3128
+ # authentication setting
3129
+ _auth_settings: List[str] = [
3130
+ 'OAuth2AuthorizationCode'
3131
+ ]
3132
+
3133
+ return self.api_client.param_serialize(
3134
+ method='POST',
3135
+ resource_path='/api/v1/projects/{project_id}/available_datasets',
3136
+ path_params=_path_params,
3137
+ query_params=_query_params,
3138
+ header_params=_header_params,
3139
+ body=_body_params,
3140
+ post_params=_form_params,
3141
+ files=_files,
3142
+ auth_settings=_auth_settings,
3143
+ collection_formats=_collection_formats,
3144
+ _host=_host,
3145
+ _request_auth=_request_auth
3146
+ )
3147
+
3148
+
3149
+
3150
+
3151
+ @validate_call
3152
+ def post_project_dataset(
3153
+ self,
3154
+ project_id: StrictStr,
3155
+ post_dataset: PostDataset,
3156
+ _request_timeout: Union[
3157
+ None,
3158
+ Annotated[StrictFloat, Field(gt=0)],
3159
+ Tuple[
3160
+ Annotated[StrictFloat, Field(gt=0)],
3161
+ Annotated[StrictFloat, Field(gt=0)]
3162
+ ]
3163
+ ] = None,
3164
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3165
+ _content_type: Optional[StrictStr] = None,
3166
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3167
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3168
+ ) -> Dataset:
3169
+ """Create Project Dataset
3170
+
3171
+ Create project dataset. Requires project_create_dataset permission.
3172
+
3173
+ :param project_id: (required)
3174
+ :type project_id: str
3175
+ :param post_dataset: (required)
3176
+ :type post_dataset: PostDataset
3177
+ :param _request_timeout: timeout setting for this request. If one
3178
+ number provided, it will be total request
3179
+ timeout. It can also be a pair (tuple) of
3180
+ (connection, read) timeouts.
3181
+ :type _request_timeout: int, tuple(int, int), optional
3182
+ :param _request_auth: set to override the auth_settings for an a single
3183
+ request; this effectively ignores the
3184
+ authentication in the spec for a single request.
3185
+ :type _request_auth: dict, optional
3186
+ :param _content_type: force content-type for the request.
3187
+ :type _content_type: str, Optional
3188
+ :param _headers: set to override the headers for a single
3189
+ request; this effectively ignores the headers
3190
+ in the spec for a single request.
3191
+ :type _headers: dict, optional
3192
+ :param _host_index: set to override the host_index for a single
3193
+ request; this effectively ignores the host_index
3194
+ in the spec for a single request.
3195
+ :type _host_index: int, optional
3196
+ :return: Returns the result object.
3197
+ """ # noqa: E501
3198
+
3199
+ _param = self._post_project_dataset_serialize(
3200
+ project_id=project_id,
3201
+ post_dataset=post_dataset,
3202
+ _request_auth=_request_auth,
3203
+ _content_type=_content_type,
3204
+ _headers=_headers,
3205
+ _host_index=_host_index
3206
+ )
3207
+
3208
+ _response_types_map: Dict[str, Optional[str]] = {
3209
+ '200': "Dataset",
3210
+ '500': "InternalServerError",
3211
+ '404': "NotFoundError",
3212
+ '400': "BadRequestError",
3213
+ '422': "HTTPValidationError",
3214
+ }
3215
+ response_data = self.api_client.call_api(
3216
+ *_param,
3217
+ _request_timeout=_request_timeout
3218
+ )
3219
+ response_data.read()
3220
+ return self.api_client.response_deserialize(
3221
+ response_data=response_data,
3222
+ response_types_map=_response_types_map,
3223
+ ).data
3224
+
3225
+
3226
+ @validate_call
3227
+ def post_project_dataset_with_http_info(
3228
+ self,
3229
+ project_id: StrictStr,
3230
+ post_dataset: PostDataset,
3231
+ _request_timeout: Union[
3232
+ None,
3233
+ Annotated[StrictFloat, Field(gt=0)],
3234
+ Tuple[
3235
+ Annotated[StrictFloat, Field(gt=0)],
3236
+ Annotated[StrictFloat, Field(gt=0)]
3237
+ ]
3238
+ ] = None,
3239
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3240
+ _content_type: Optional[StrictStr] = None,
3241
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3242
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3243
+ ) -> ApiResponse[Dataset]:
3244
+ """Create Project Dataset
3245
+
3246
+ Create project dataset. Requires project_create_dataset permission.
3247
+
3248
+ :param project_id: (required)
3249
+ :type project_id: str
3250
+ :param post_dataset: (required)
3251
+ :type post_dataset: PostDataset
3252
+ :param _request_timeout: timeout setting for this request. If one
3253
+ number provided, it will be total request
3254
+ timeout. It can also be a pair (tuple) of
3255
+ (connection, read) timeouts.
3256
+ :type _request_timeout: int, tuple(int, int), optional
3257
+ :param _request_auth: set to override the auth_settings for an a single
3258
+ request; this effectively ignores the
3259
+ authentication in the spec for a single request.
3260
+ :type _request_auth: dict, optional
3261
+ :param _content_type: force content-type for the request.
3262
+ :type _content_type: str, Optional
3263
+ :param _headers: set to override the headers for a single
3264
+ request; this effectively ignores the headers
3265
+ in the spec for a single request.
3266
+ :type _headers: dict, optional
3267
+ :param _host_index: set to override the host_index for a single
3268
+ request; this effectively ignores the host_index
3269
+ in the spec for a single request.
3270
+ :type _host_index: int, optional
3271
+ :return: Returns the result object.
3272
+ """ # noqa: E501
3273
+
3274
+ _param = self._post_project_dataset_serialize(
3275
+ project_id=project_id,
3276
+ post_dataset=post_dataset,
3277
+ _request_auth=_request_auth,
3278
+ _content_type=_content_type,
3279
+ _headers=_headers,
3280
+ _host_index=_host_index
3281
+ )
3282
+
3283
+ _response_types_map: Dict[str, Optional[str]] = {
3284
+ '200': "Dataset",
3285
+ '500': "InternalServerError",
3286
+ '404': "NotFoundError",
3287
+ '400': "BadRequestError",
3288
+ '422': "HTTPValidationError",
3289
+ }
3290
+ response_data = self.api_client.call_api(
3291
+ *_param,
3292
+ _request_timeout=_request_timeout
3293
+ )
3294
+ response_data.read()
3295
+ return self.api_client.response_deserialize(
3296
+ response_data=response_data,
3297
+ response_types_map=_response_types_map,
3298
+ )
3299
+
3300
+
3301
+ @validate_call
3302
+ def post_project_dataset_without_preload_content(
3303
+ self,
3304
+ project_id: StrictStr,
3305
+ post_dataset: PostDataset,
3306
+ _request_timeout: Union[
3307
+ None,
3308
+ Annotated[StrictFloat, Field(gt=0)],
3309
+ Tuple[
3310
+ Annotated[StrictFloat, Field(gt=0)],
3311
+ Annotated[StrictFloat, Field(gt=0)]
3312
+ ]
3313
+ ] = None,
3314
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3315
+ _content_type: Optional[StrictStr] = None,
3316
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3317
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3318
+ ) -> RESTResponseType:
3319
+ """Create Project Dataset
3320
+
3321
+ Create project dataset. Requires project_create_dataset permission.
3322
+
3323
+ :param project_id: (required)
3324
+ :type project_id: str
3325
+ :param post_dataset: (required)
3326
+ :type post_dataset: PostDataset
3327
+ :param _request_timeout: timeout setting for this request. If one
3328
+ number provided, it will be total request
3329
+ timeout. It can also be a pair (tuple) of
3330
+ (connection, read) timeouts.
3331
+ :type _request_timeout: int, tuple(int, int), optional
3332
+ :param _request_auth: set to override the auth_settings for an a single
3333
+ request; this effectively ignores the
3334
+ authentication in the spec for a single request.
3335
+ :type _request_auth: dict, optional
3336
+ :param _content_type: force content-type for the request.
3337
+ :type _content_type: str, Optional
3338
+ :param _headers: set to override the headers for a single
3339
+ request; this effectively ignores the headers
3340
+ in the spec for a single request.
3341
+ :type _headers: dict, optional
3342
+ :param _host_index: set to override the host_index for a single
3343
+ request; this effectively ignores the host_index
3344
+ in the spec for a single request.
3345
+ :type _host_index: int, optional
3346
+ :return: Returns the result object.
3347
+ """ # noqa: E501
3348
+
3349
+ _param = self._post_project_dataset_serialize(
3350
+ project_id=project_id,
3351
+ post_dataset=post_dataset,
3352
+ _request_auth=_request_auth,
3353
+ _content_type=_content_type,
3354
+ _headers=_headers,
3355
+ _host_index=_host_index
3356
+ )
3357
+
3358
+ _response_types_map: Dict[str, Optional[str]] = {
3359
+ '200': "Dataset",
3360
+ '500': "InternalServerError",
3361
+ '404': "NotFoundError",
3362
+ '400': "BadRequestError",
3363
+ '422': "HTTPValidationError",
3364
+ }
3365
+ response_data = self.api_client.call_api(
3366
+ *_param,
3367
+ _request_timeout=_request_timeout
3368
+ )
3369
+ return response_data.response
3370
+
3371
+
3372
+ def _post_project_dataset_serialize(
3373
+ self,
3374
+ project_id,
3375
+ post_dataset,
3376
+ _request_auth,
3377
+ _content_type,
3378
+ _headers,
3379
+ _host_index,
3380
+ ) -> RequestSerialized:
3381
+
3382
+ _host = None
3383
+
3384
+ _collection_formats: Dict[str, str] = {
3385
+ }
3386
+
3387
+ _path_params: Dict[str, str] = {}
3388
+ _query_params: List[Tuple[str, str]] = []
3389
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3390
+ _form_params: List[Tuple[str, str]] = []
3391
+ _files: Dict[
3392
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3393
+ ] = {}
3394
+ _body_params: Optional[bytes] = None
3395
+
3396
+ # process the path parameters
3397
+ if project_id is not None:
3398
+ _path_params['project_id'] = project_id
3399
+ # process the query parameters
3400
+ # process the header parameters
3401
+ # process the form parameters
3402
+ # process the body parameter
3403
+ if post_dataset is not None:
3404
+ _body_params = post_dataset
3405
+
3406
+
3407
+ # set the HTTP header `Accept`
3408
+ if 'Accept' not in _header_params:
3409
+ _header_params['Accept'] = self.api_client.select_header_accept(
3410
+ [
3411
+ 'application/json'
3412
+ ]
3413
+ )
3414
+
3415
+ # set the HTTP header `Content-Type`
3416
+ if _content_type:
3417
+ _header_params['Content-Type'] = _content_type
3418
+ else:
3419
+ _default_content_type = (
3420
+ self.api_client.select_header_content_type(
3421
+ [
3422
+ 'application/json'
3423
+ ]
3424
+ )
3425
+ )
3426
+ if _default_content_type is not None:
3427
+ _header_params['Content-Type'] = _default_content_type
3428
+
3429
+ # authentication setting
3430
+ _auth_settings: List[str] = [
3431
+ 'OAuth2AuthorizationCode'
3432
+ ]
3433
+
3434
+ return self.api_client.param_serialize(
3435
+ method='POST',
3436
+ resource_path='/api/v1/projects/{project_id}/datasets',
3437
+ path_params=_path_params,
3438
+ query_params=_query_params,
3439
+ header_params=_header_params,
3440
+ body=_body_params,
3441
+ post_params=_form_params,
3442
+ files=_files,
3443
+ auth_settings=_auth_settings,
3444
+ collection_formats=_collection_formats,
3445
+ _host=_host,
3446
+ _request_auth=_request_auth
3447
+ )
3448
+
3449
+
3450
+
3451
+
3452
+ @validate_call
3453
+ def put_available_dataset_schema(
3454
+ self,
3455
+ available_dataset_id: StrictStr,
3456
+ put_dataset_schema: PutDatasetSchema,
3457
+ _request_timeout: Union[
3458
+ None,
3459
+ Annotated[StrictFloat, Field(gt=0)],
3460
+ Tuple[
3461
+ Annotated[StrictFloat, Field(gt=0)],
3462
+ Annotated[StrictFloat, Field(gt=0)]
3463
+ ]
3464
+ ] = None,
3465
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3466
+ _content_type: Optional[StrictStr] = None,
3467
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3468
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3469
+ ) -> AvailableDataset:
3470
+ """Update Available Dataset Schema
3471
+
3472
+ Update a single available dataset schema. Requires available_dataset_put_schema permission.
3473
+
3474
+ :param available_dataset_id: (required)
3475
+ :type available_dataset_id: str
3476
+ :param put_dataset_schema: (required)
3477
+ :type put_dataset_schema: PutDatasetSchema
3478
+ :param _request_timeout: timeout setting for this request. If one
3479
+ number provided, it will be total request
3480
+ timeout. It can also be a pair (tuple) of
3481
+ (connection, read) timeouts.
3482
+ :type _request_timeout: int, tuple(int, int), optional
3483
+ :param _request_auth: set to override the auth_settings for an a single
3484
+ request; this effectively ignores the
3485
+ authentication in the spec for a single request.
3486
+ :type _request_auth: dict, optional
3487
+ :param _content_type: force content-type for the request.
3488
+ :type _content_type: str, Optional
3489
+ :param _headers: set to override the headers for a single
3490
+ request; this effectively ignores the headers
3491
+ in the spec for a single request.
3492
+ :type _headers: dict, optional
3493
+ :param _host_index: set to override the host_index for a single
3494
+ request; this effectively ignores the host_index
3495
+ in the spec for a single request.
3496
+ :type _host_index: int, optional
3497
+ :return: Returns the result object.
3498
+ """ # noqa: E501
3499
+
3500
+ _param = self._put_available_dataset_schema_serialize(
3501
+ available_dataset_id=available_dataset_id,
3502
+ put_dataset_schema=put_dataset_schema,
3503
+ _request_auth=_request_auth,
3504
+ _content_type=_content_type,
3505
+ _headers=_headers,
3506
+ _host_index=_host_index
3507
+ )
3508
+
3509
+ _response_types_map: Dict[str, Optional[str]] = {
3510
+ '200': "AvailableDataset",
3511
+ '500': "InternalServerError",
3512
+ '404': "NotFoundError",
3513
+ '422': "HTTPValidationError",
3514
+ }
3515
+ response_data = self.api_client.call_api(
3516
+ *_param,
3517
+ _request_timeout=_request_timeout
3518
+ )
3519
+ response_data.read()
3520
+ return self.api_client.response_deserialize(
3521
+ response_data=response_data,
3522
+ response_types_map=_response_types_map,
3523
+ ).data
3524
+
3525
+
3526
+ @validate_call
3527
+ def put_available_dataset_schema_with_http_info(
3528
+ self,
3529
+ available_dataset_id: StrictStr,
3530
+ put_dataset_schema: PutDatasetSchema,
3531
+ _request_timeout: Union[
3532
+ None,
3533
+ Annotated[StrictFloat, Field(gt=0)],
3534
+ Tuple[
3535
+ Annotated[StrictFloat, Field(gt=0)],
3536
+ Annotated[StrictFloat, Field(gt=0)]
3537
+ ]
3538
+ ] = None,
3539
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3540
+ _content_type: Optional[StrictStr] = None,
3541
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3542
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3543
+ ) -> ApiResponse[AvailableDataset]:
3544
+ """Update Available Dataset Schema
3545
+
3546
+ Update a single available dataset schema. Requires available_dataset_put_schema permission.
3547
+
3548
+ :param available_dataset_id: (required)
3549
+ :type available_dataset_id: str
3550
+ :param put_dataset_schema: (required)
3551
+ :type put_dataset_schema: PutDatasetSchema
3552
+ :param _request_timeout: timeout setting for this request. If one
3553
+ number provided, it will be total request
3554
+ timeout. It can also be a pair (tuple) of
3555
+ (connection, read) timeouts.
3556
+ :type _request_timeout: int, tuple(int, int), optional
3557
+ :param _request_auth: set to override the auth_settings for an a single
3558
+ request; this effectively ignores the
3559
+ authentication in the spec for a single request.
3560
+ :type _request_auth: dict, optional
3561
+ :param _content_type: force content-type for the request.
3562
+ :type _content_type: str, Optional
3563
+ :param _headers: set to override the headers for a single
3564
+ request; this effectively ignores the headers
3565
+ in the spec for a single request.
3566
+ :type _headers: dict, optional
3567
+ :param _host_index: set to override the host_index for a single
3568
+ request; this effectively ignores the host_index
3569
+ in the spec for a single request.
3570
+ :type _host_index: int, optional
3571
+ :return: Returns the result object.
3572
+ """ # noqa: E501
3573
+
3574
+ _param = self._put_available_dataset_schema_serialize(
3575
+ available_dataset_id=available_dataset_id,
3576
+ put_dataset_schema=put_dataset_schema,
3577
+ _request_auth=_request_auth,
3578
+ _content_type=_content_type,
3579
+ _headers=_headers,
3580
+ _host_index=_host_index
3581
+ )
3582
+
3583
+ _response_types_map: Dict[str, Optional[str]] = {
3584
+ '200': "AvailableDataset",
3585
+ '500': "InternalServerError",
3586
+ '404': "NotFoundError",
3587
+ '422': "HTTPValidationError",
3588
+ }
3589
+ response_data = self.api_client.call_api(
3590
+ *_param,
3591
+ _request_timeout=_request_timeout
3592
+ )
3593
+ response_data.read()
3594
+ return self.api_client.response_deserialize(
3595
+ response_data=response_data,
3596
+ response_types_map=_response_types_map,
3597
+ )
3598
+
3599
+
3600
+ @validate_call
3601
+ def put_available_dataset_schema_without_preload_content(
3602
+ self,
3603
+ available_dataset_id: StrictStr,
3604
+ put_dataset_schema: PutDatasetSchema,
3605
+ _request_timeout: Union[
3606
+ None,
3607
+ Annotated[StrictFloat, Field(gt=0)],
3608
+ Tuple[
3609
+ Annotated[StrictFloat, Field(gt=0)],
3610
+ Annotated[StrictFloat, Field(gt=0)]
3611
+ ]
3612
+ ] = None,
3613
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3614
+ _content_type: Optional[StrictStr] = None,
3615
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3616
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3617
+ ) -> RESTResponseType:
3618
+ """Update Available Dataset Schema
3619
+
3620
+ Update a single available dataset schema. Requires available_dataset_put_schema permission.
3621
+
3622
+ :param available_dataset_id: (required)
3623
+ :type available_dataset_id: str
3624
+ :param put_dataset_schema: (required)
3625
+ :type put_dataset_schema: PutDatasetSchema
3626
+ :param _request_timeout: timeout setting for this request. If one
3627
+ number provided, it will be total request
3628
+ timeout. It can also be a pair (tuple) of
3629
+ (connection, read) timeouts.
3630
+ :type _request_timeout: int, tuple(int, int), optional
3631
+ :param _request_auth: set to override the auth_settings for an a single
3632
+ request; this effectively ignores the
3633
+ authentication in the spec for a single request.
3634
+ :type _request_auth: dict, optional
3635
+ :param _content_type: force content-type for the request.
3636
+ :type _content_type: str, Optional
3637
+ :param _headers: set to override the headers for a single
3638
+ request; this effectively ignores the headers
3639
+ in the spec for a single request.
3640
+ :type _headers: dict, optional
3641
+ :param _host_index: set to override the host_index for a single
3642
+ request; this effectively ignores the host_index
3643
+ in the spec for a single request.
3644
+ :type _host_index: int, optional
3645
+ :return: Returns the result object.
3646
+ """ # noqa: E501
3647
+
3648
+ _param = self._put_available_dataset_schema_serialize(
3649
+ available_dataset_id=available_dataset_id,
3650
+ put_dataset_schema=put_dataset_schema,
3651
+ _request_auth=_request_auth,
3652
+ _content_type=_content_type,
3653
+ _headers=_headers,
3654
+ _host_index=_host_index
3655
+ )
3656
+
3657
+ _response_types_map: Dict[str, Optional[str]] = {
3658
+ '200': "AvailableDataset",
3659
+ '500': "InternalServerError",
3660
+ '404': "NotFoundError",
3661
+ '422': "HTTPValidationError",
3662
+ }
3663
+ response_data = self.api_client.call_api(
3664
+ *_param,
3665
+ _request_timeout=_request_timeout
3666
+ )
3667
+ return response_data.response
3668
+
3669
+
3670
+ def _put_available_dataset_schema_serialize(
3671
+ self,
3672
+ available_dataset_id,
3673
+ put_dataset_schema,
3674
+ _request_auth,
3675
+ _content_type,
3676
+ _headers,
3677
+ _host_index,
3678
+ ) -> RequestSerialized:
3679
+
3680
+ _host = None
3681
+
3682
+ _collection_formats: Dict[str, str] = {
3683
+ }
3684
+
3685
+ _path_params: Dict[str, str] = {}
3686
+ _query_params: List[Tuple[str, str]] = []
3687
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3688
+ _form_params: List[Tuple[str, str]] = []
3689
+ _files: Dict[
3690
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3691
+ ] = {}
3692
+ _body_params: Optional[bytes] = None
3693
+
3694
+ # process the path parameters
3695
+ if available_dataset_id is not None:
3696
+ _path_params['available_dataset_id'] = available_dataset_id
3697
+ # process the query parameters
3698
+ # process the header parameters
3699
+ # process the form parameters
3700
+ # process the body parameter
3701
+ if put_dataset_schema is not None:
3702
+ _body_params = put_dataset_schema
3703
+
3704
+
3705
+ # set the HTTP header `Accept`
3706
+ if 'Accept' not in _header_params:
3707
+ _header_params['Accept'] = self.api_client.select_header_accept(
3708
+ [
3709
+ 'application/json'
3710
+ ]
3711
+ )
3712
+
3713
+ # set the HTTP header `Content-Type`
3714
+ if _content_type:
3715
+ _header_params['Content-Type'] = _content_type
3716
+ else:
3717
+ _default_content_type = (
3718
+ self.api_client.select_header_content_type(
3719
+ [
3720
+ 'application/json'
3721
+ ]
3722
+ )
3723
+ )
3724
+ if _default_content_type is not None:
3725
+ _header_params['Content-Type'] = _default_content_type
3726
+
3727
+ # authentication setting
3728
+ _auth_settings: List[str] = [
3729
+ 'OAuth2AuthorizationCode'
3730
+ ]
3731
+
3732
+ return self.api_client.param_serialize(
3733
+ method='PUT',
3734
+ resource_path='/api/v1/available_datasets/{available_dataset_id}/schema',
3735
+ path_params=_path_params,
3736
+ query_params=_query_params,
3737
+ header_params=_header_params,
3738
+ body=_body_params,
3739
+ post_params=_form_params,
3740
+ files=_files,
3741
+ auth_settings=_auth_settings,
3742
+ collection_formats=_collection_formats,
3743
+ _host=_host,
3744
+ _request_auth=_request_auth
3745
+ )
3746
+
3747
+
3748
+
3749
+
3750
+ @validate_call
3751
+ def put_connector_available_datasets(
3752
+ self,
3753
+ connector_id: StrictStr,
3754
+ put_available_datasets: PutAvailableDatasets,
3755
+ _request_timeout: Union[
3756
+ None,
3757
+ Annotated[StrictFloat, Field(gt=0)],
3758
+ Tuple[
3759
+ Annotated[StrictFloat, Field(gt=0)],
3760
+ Annotated[StrictFloat, Field(gt=0)]
3761
+ ]
3762
+ ] = None,
3763
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3764
+ _content_type: Optional[StrictStr] = None,
3765
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3766
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3767
+ ) -> None:
3768
+ """Overwrite Connector Available Datasets
3769
+
3770
+ Overwrite all available datasets for this connector. Requires connector_put_available_datasets permission.
3771
+
3772
+ :param connector_id: (required)
3773
+ :type connector_id: str
3774
+ :param put_available_datasets: (required)
3775
+ :type put_available_datasets: PutAvailableDatasets
3776
+ :param _request_timeout: timeout setting for this request. If one
3777
+ number provided, it will be total request
3778
+ timeout. It can also be a pair (tuple) of
3779
+ (connection, read) timeouts.
3780
+ :type _request_timeout: int, tuple(int, int), optional
3781
+ :param _request_auth: set to override the auth_settings for an a single
3782
+ request; this effectively ignores the
3783
+ authentication in the spec for a single request.
3784
+ :type _request_auth: dict, optional
3785
+ :param _content_type: force content-type for the request.
3786
+ :type _content_type: str, Optional
3787
+ :param _headers: set to override the headers for a single
3788
+ request; this effectively ignores the headers
3789
+ in the spec for a single request.
3790
+ :type _headers: dict, optional
3791
+ :param _host_index: set to override the host_index for a single
3792
+ request; this effectively ignores the host_index
3793
+ in the spec for a single request.
3794
+ :type _host_index: int, optional
3795
+ :return: Returns the result object.
3796
+ """ # noqa: E501
3797
+
3798
+ _param = self._put_connector_available_datasets_serialize(
3799
+ connector_id=connector_id,
3800
+ put_available_datasets=put_available_datasets,
3801
+ _request_auth=_request_auth,
3802
+ _content_type=_content_type,
3803
+ _headers=_headers,
3804
+ _host_index=_host_index
3805
+ )
3806
+
3807
+ _response_types_map: Dict[str, Optional[str]] = {
3808
+ '204': None,
3809
+ '500': "InternalServerError",
3810
+ '404': "NotFoundError",
3811
+ '400': "BadRequestError",
3812
+ '422': "HTTPValidationError",
3813
+ }
3814
+ response_data = self.api_client.call_api(
3815
+ *_param,
3816
+ _request_timeout=_request_timeout
3817
+ )
3818
+ response_data.read()
3819
+ return self.api_client.response_deserialize(
3820
+ response_data=response_data,
3821
+ response_types_map=_response_types_map,
3822
+ ).data
3823
+
3824
+
3825
+ @validate_call
3826
+ def put_connector_available_datasets_with_http_info(
3827
+ self,
3828
+ connector_id: StrictStr,
3829
+ put_available_datasets: PutAvailableDatasets,
3830
+ _request_timeout: Union[
3831
+ None,
3832
+ Annotated[StrictFloat, Field(gt=0)],
3833
+ Tuple[
3834
+ Annotated[StrictFloat, Field(gt=0)],
3835
+ Annotated[StrictFloat, Field(gt=0)]
3836
+ ]
3837
+ ] = None,
3838
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3839
+ _content_type: Optional[StrictStr] = None,
3840
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3841
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3842
+ ) -> ApiResponse[None]:
3843
+ """Overwrite Connector Available Datasets
3844
+
3845
+ Overwrite all available datasets for this connector. Requires connector_put_available_datasets permission.
3846
+
3847
+ :param connector_id: (required)
3848
+ :type connector_id: str
3849
+ :param put_available_datasets: (required)
3850
+ :type put_available_datasets: PutAvailableDatasets
3851
+ :param _request_timeout: timeout setting for this request. If one
3852
+ number provided, it will be total request
3853
+ timeout. It can also be a pair (tuple) of
3854
+ (connection, read) timeouts.
3855
+ :type _request_timeout: int, tuple(int, int), optional
3856
+ :param _request_auth: set to override the auth_settings for an a single
3857
+ request; this effectively ignores the
3858
+ authentication in the spec for a single request.
3859
+ :type _request_auth: dict, optional
3860
+ :param _content_type: force content-type for the request.
3861
+ :type _content_type: str, Optional
3862
+ :param _headers: set to override the headers for a single
3863
+ request; this effectively ignores the headers
3864
+ in the spec for a single request.
3865
+ :type _headers: dict, optional
3866
+ :param _host_index: set to override the host_index for a single
3867
+ request; this effectively ignores the host_index
3868
+ in the spec for a single request.
3869
+ :type _host_index: int, optional
3870
+ :return: Returns the result object.
3871
+ """ # noqa: E501
3872
+
3873
+ _param = self._put_connector_available_datasets_serialize(
3874
+ connector_id=connector_id,
3875
+ put_available_datasets=put_available_datasets,
3876
+ _request_auth=_request_auth,
3877
+ _content_type=_content_type,
3878
+ _headers=_headers,
3879
+ _host_index=_host_index
3880
+ )
3881
+
3882
+ _response_types_map: Dict[str, Optional[str]] = {
3883
+ '204': None,
3884
+ '500': "InternalServerError",
3885
+ '404': "NotFoundError",
3886
+ '400': "BadRequestError",
3887
+ '422': "HTTPValidationError",
3888
+ }
3889
+ response_data = self.api_client.call_api(
3890
+ *_param,
3891
+ _request_timeout=_request_timeout
3892
+ )
3893
+ response_data.read()
3894
+ return self.api_client.response_deserialize(
3895
+ response_data=response_data,
3896
+ response_types_map=_response_types_map,
3897
+ )
3898
+
3899
+
3900
+ @validate_call
3901
+ def put_connector_available_datasets_without_preload_content(
3902
+ self,
3903
+ connector_id: StrictStr,
3904
+ put_available_datasets: PutAvailableDatasets,
3905
+ _request_timeout: Union[
3906
+ None,
3907
+ Annotated[StrictFloat, Field(gt=0)],
3908
+ Tuple[
3909
+ Annotated[StrictFloat, Field(gt=0)],
3910
+ Annotated[StrictFloat, Field(gt=0)]
3911
+ ]
3912
+ ] = None,
3913
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3914
+ _content_type: Optional[StrictStr] = None,
3915
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3916
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3917
+ ) -> RESTResponseType:
3918
+ """Overwrite Connector Available Datasets
3919
+
3920
+ Overwrite all available datasets for this connector. Requires connector_put_available_datasets permission.
3921
+
3922
+ :param connector_id: (required)
3923
+ :type connector_id: str
3924
+ :param put_available_datasets: (required)
3925
+ :type put_available_datasets: PutAvailableDatasets
3926
+ :param _request_timeout: timeout setting for this request. If one
3927
+ number provided, it will be total request
3928
+ timeout. It can also be a pair (tuple) of
3929
+ (connection, read) timeouts.
3930
+ :type _request_timeout: int, tuple(int, int), optional
3931
+ :param _request_auth: set to override the auth_settings for an a single
3932
+ request; this effectively ignores the
3933
+ authentication in the spec for a single request.
3934
+ :type _request_auth: dict, optional
3935
+ :param _content_type: force content-type for the request.
3936
+ :type _content_type: str, Optional
3937
+ :param _headers: set to override the headers for a single
3938
+ request; this effectively ignores the headers
3939
+ in the spec for a single request.
3940
+ :type _headers: dict, optional
3941
+ :param _host_index: set to override the host_index for a single
3942
+ request; this effectively ignores the host_index
3943
+ in the spec for a single request.
3944
+ :type _host_index: int, optional
3945
+ :return: Returns the result object.
3946
+ """ # noqa: E501
3947
+
3948
+ _param = self._put_connector_available_datasets_serialize(
3949
+ connector_id=connector_id,
3950
+ put_available_datasets=put_available_datasets,
3951
+ _request_auth=_request_auth,
3952
+ _content_type=_content_type,
3953
+ _headers=_headers,
3954
+ _host_index=_host_index
3955
+ )
3956
+
3957
+ _response_types_map: Dict[str, Optional[str]] = {
3958
+ '204': None,
3959
+ '500': "InternalServerError",
3960
+ '404': "NotFoundError",
3961
+ '400': "BadRequestError",
3962
+ '422': "HTTPValidationError",
3963
+ }
3964
+ response_data = self.api_client.call_api(
3965
+ *_param,
3966
+ _request_timeout=_request_timeout
3967
+ )
3968
+ return response_data.response
3969
+
3970
+
3971
+ def _put_connector_available_datasets_serialize(
3972
+ self,
3973
+ connector_id,
3974
+ put_available_datasets,
3975
+ _request_auth,
3976
+ _content_type,
3977
+ _headers,
3978
+ _host_index,
3979
+ ) -> RequestSerialized:
3980
+
3981
+ _host = None
3982
+
3983
+ _collection_formats: Dict[str, str] = {
3984
+ }
3985
+
3986
+ _path_params: Dict[str, str] = {}
3987
+ _query_params: List[Tuple[str, str]] = []
3988
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3989
+ _form_params: List[Tuple[str, str]] = []
3990
+ _files: Dict[
3991
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3992
+ ] = {}
3993
+ _body_params: Optional[bytes] = None
3994
+
3995
+ # process the path parameters
3996
+ if connector_id is not None:
3997
+ _path_params['connector_id'] = connector_id
3998
+ # process the query parameters
3999
+ # process the header parameters
4000
+ # process the form parameters
4001
+ # process the body parameter
4002
+ if put_available_datasets is not None:
4003
+ _body_params = put_available_datasets
4004
+
4005
+
4006
+ # set the HTTP header `Accept`
4007
+ if 'Accept' not in _header_params:
4008
+ _header_params['Accept'] = self.api_client.select_header_accept(
4009
+ [
4010
+ 'application/json'
4011
+ ]
4012
+ )
4013
+
4014
+ # set the HTTP header `Content-Type`
4015
+ if _content_type:
4016
+ _header_params['Content-Type'] = _content_type
4017
+ else:
4018
+ _default_content_type = (
4019
+ self.api_client.select_header_content_type(
4020
+ [
4021
+ 'application/json'
4022
+ ]
4023
+ )
4024
+ )
4025
+ if _default_content_type is not None:
4026
+ _header_params['Content-Type'] = _default_content_type
4027
+
4028
+ # authentication setting
4029
+ _auth_settings: List[str] = [
4030
+ 'OAuth2AuthorizationCode'
4031
+ ]
4032
+
4033
+ return self.api_client.param_serialize(
4034
+ method='PUT',
4035
+ resource_path='/api/v1/connectors/{connector_id}/available_datasets',
4036
+ path_params=_path_params,
4037
+ query_params=_query_params,
4038
+ header_params=_header_params,
4039
+ body=_body_params,
4040
+ post_params=_form_params,
4041
+ files=_files,
4042
+ auth_settings=_auth_settings,
4043
+ collection_formats=_collection_formats,
4044
+ _host=_host,
4045
+ _request_auth=_request_auth
4046
+ )
4047
+
4048
+
4049
+
4050
+
4051
+ @validate_call
4052
+ def put_dataset_schema(
4053
+ self,
4054
+ dataset_id: StrictStr,
4055
+ put_dataset_schema: PutDatasetSchema,
4056
+ _request_timeout: Union[
4057
+ None,
4058
+ Annotated[StrictFloat, Field(gt=0)],
4059
+ Tuple[
4060
+ Annotated[StrictFloat, Field(gt=0)],
4061
+ Annotated[StrictFloat, Field(gt=0)]
4062
+ ]
4063
+ ] = None,
4064
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4065
+ _content_type: Optional[StrictStr] = None,
4066
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4067
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4068
+ ) -> Dataset:
4069
+ """Update Dataset Schema
4070
+
4071
+ Update a dataset schema. Requires dataset_put_schema permission.
4072
+
4073
+ :param dataset_id: (required)
4074
+ :type dataset_id: str
4075
+ :param put_dataset_schema: (required)
4076
+ :type put_dataset_schema: PutDatasetSchema
4077
+ :param _request_timeout: timeout setting for this request. If one
4078
+ number provided, it will be total request
4079
+ timeout. It can also be a pair (tuple) of
4080
+ (connection, read) timeouts.
4081
+ :type _request_timeout: int, tuple(int, int), optional
4082
+ :param _request_auth: set to override the auth_settings for an a single
4083
+ request; this effectively ignores the
4084
+ authentication in the spec for a single request.
4085
+ :type _request_auth: dict, optional
4086
+ :param _content_type: force content-type for the request.
4087
+ :type _content_type: str, Optional
4088
+ :param _headers: set to override the headers for a single
4089
+ request; this effectively ignores the headers
4090
+ in the spec for a single request.
4091
+ :type _headers: dict, optional
4092
+ :param _host_index: set to override the host_index for a single
4093
+ request; this effectively ignores the host_index
4094
+ in the spec for a single request.
4095
+ :type _host_index: int, optional
4096
+ :return: Returns the result object.
4097
+ """ # noqa: E501
4098
+
4099
+ _param = self._put_dataset_schema_serialize(
4100
+ dataset_id=dataset_id,
4101
+ put_dataset_schema=put_dataset_schema,
4102
+ _request_auth=_request_auth,
4103
+ _content_type=_content_type,
4104
+ _headers=_headers,
4105
+ _host_index=_host_index
4106
+ )
4107
+
4108
+ _response_types_map: Dict[str, Optional[str]] = {
4109
+ '200': "Dataset",
4110
+ '500': "InternalServerError",
4111
+ '404': "NotFoundError",
4112
+ '422': "HTTPValidationError",
4113
+ }
4114
+ response_data = self.api_client.call_api(
4115
+ *_param,
4116
+ _request_timeout=_request_timeout
4117
+ )
4118
+ response_data.read()
4119
+ return self.api_client.response_deserialize(
4120
+ response_data=response_data,
4121
+ response_types_map=_response_types_map,
4122
+ ).data
4123
+
4124
+
4125
+ @validate_call
4126
+ def put_dataset_schema_with_http_info(
4127
+ self,
4128
+ dataset_id: StrictStr,
4129
+ put_dataset_schema: PutDatasetSchema,
4130
+ _request_timeout: Union[
4131
+ None,
4132
+ Annotated[StrictFloat, Field(gt=0)],
4133
+ Tuple[
4134
+ Annotated[StrictFloat, Field(gt=0)],
4135
+ Annotated[StrictFloat, Field(gt=0)]
4136
+ ]
4137
+ ] = None,
4138
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4139
+ _content_type: Optional[StrictStr] = None,
4140
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4141
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4142
+ ) -> ApiResponse[Dataset]:
4143
+ """Update Dataset Schema
4144
+
4145
+ Update a dataset schema. Requires dataset_put_schema permission.
4146
+
4147
+ :param dataset_id: (required)
4148
+ :type dataset_id: str
4149
+ :param put_dataset_schema: (required)
4150
+ :type put_dataset_schema: PutDatasetSchema
4151
+ :param _request_timeout: timeout setting for this request. If one
4152
+ number provided, it will be total request
4153
+ timeout. It can also be a pair (tuple) of
4154
+ (connection, read) timeouts.
4155
+ :type _request_timeout: int, tuple(int, int), optional
4156
+ :param _request_auth: set to override the auth_settings for an a single
4157
+ request; this effectively ignores the
4158
+ authentication in the spec for a single request.
4159
+ :type _request_auth: dict, optional
4160
+ :param _content_type: force content-type for the request.
4161
+ :type _content_type: str, Optional
4162
+ :param _headers: set to override the headers for a single
4163
+ request; this effectively ignores the headers
4164
+ in the spec for a single request.
4165
+ :type _headers: dict, optional
4166
+ :param _host_index: set to override the host_index for a single
4167
+ request; this effectively ignores the host_index
4168
+ in the spec for a single request.
4169
+ :type _host_index: int, optional
4170
+ :return: Returns the result object.
4171
+ """ # noqa: E501
4172
+
4173
+ _param = self._put_dataset_schema_serialize(
4174
+ dataset_id=dataset_id,
4175
+ put_dataset_schema=put_dataset_schema,
4176
+ _request_auth=_request_auth,
4177
+ _content_type=_content_type,
4178
+ _headers=_headers,
4179
+ _host_index=_host_index
4180
+ )
4181
+
4182
+ _response_types_map: Dict[str, Optional[str]] = {
4183
+ '200': "Dataset",
4184
+ '500': "InternalServerError",
4185
+ '404': "NotFoundError",
4186
+ '422': "HTTPValidationError",
4187
+ }
4188
+ response_data = self.api_client.call_api(
4189
+ *_param,
4190
+ _request_timeout=_request_timeout
4191
+ )
4192
+ response_data.read()
4193
+ return self.api_client.response_deserialize(
4194
+ response_data=response_data,
4195
+ response_types_map=_response_types_map,
4196
+ )
4197
+
4198
+
4199
+ @validate_call
4200
+ def put_dataset_schema_without_preload_content(
4201
+ self,
4202
+ dataset_id: StrictStr,
4203
+ put_dataset_schema: PutDatasetSchema,
4204
+ _request_timeout: Union[
4205
+ None,
4206
+ Annotated[StrictFloat, Field(gt=0)],
4207
+ Tuple[
4208
+ Annotated[StrictFloat, Field(gt=0)],
4209
+ Annotated[StrictFloat, Field(gt=0)]
4210
+ ]
4211
+ ] = None,
4212
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4213
+ _content_type: Optional[StrictStr] = None,
4214
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4215
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4216
+ ) -> RESTResponseType:
4217
+ """Update Dataset Schema
4218
+
4219
+ Update a dataset schema. Requires dataset_put_schema permission.
4220
+
4221
+ :param dataset_id: (required)
4222
+ :type dataset_id: str
4223
+ :param put_dataset_schema: (required)
4224
+ :type put_dataset_schema: PutDatasetSchema
4225
+ :param _request_timeout: timeout setting for this request. If one
4226
+ number provided, it will be total request
4227
+ timeout. It can also be a pair (tuple) of
4228
+ (connection, read) timeouts.
4229
+ :type _request_timeout: int, tuple(int, int), optional
4230
+ :param _request_auth: set to override the auth_settings for an a single
4231
+ request; this effectively ignores the
4232
+ authentication in the spec for a single request.
4233
+ :type _request_auth: dict, optional
4234
+ :param _content_type: force content-type for the request.
4235
+ :type _content_type: str, Optional
4236
+ :param _headers: set to override the headers for a single
4237
+ request; this effectively ignores the headers
4238
+ in the spec for a single request.
4239
+ :type _headers: dict, optional
4240
+ :param _host_index: set to override the host_index for a single
4241
+ request; this effectively ignores the host_index
4242
+ in the spec for a single request.
4243
+ :type _host_index: int, optional
4244
+ :return: Returns the result object.
4245
+ """ # noqa: E501
4246
+
4247
+ _param = self._put_dataset_schema_serialize(
4248
+ dataset_id=dataset_id,
4249
+ put_dataset_schema=put_dataset_schema,
4250
+ _request_auth=_request_auth,
4251
+ _content_type=_content_type,
4252
+ _headers=_headers,
4253
+ _host_index=_host_index
4254
+ )
4255
+
4256
+ _response_types_map: Dict[str, Optional[str]] = {
4257
+ '200': "Dataset",
4258
+ '500': "InternalServerError",
4259
+ '404': "NotFoundError",
4260
+ '422': "HTTPValidationError",
4261
+ }
4262
+ response_data = self.api_client.call_api(
4263
+ *_param,
4264
+ _request_timeout=_request_timeout
4265
+ )
4266
+ return response_data.response
4267
+
4268
+
4269
+ def _put_dataset_schema_serialize(
4270
+ self,
4271
+ dataset_id,
4272
+ put_dataset_schema,
4273
+ _request_auth,
4274
+ _content_type,
4275
+ _headers,
4276
+ _host_index,
4277
+ ) -> RequestSerialized:
4278
+
4279
+ _host = None
4280
+
4281
+ _collection_formats: Dict[str, str] = {
4282
+ }
4283
+
4284
+ _path_params: Dict[str, str] = {}
4285
+ _query_params: List[Tuple[str, str]] = []
4286
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4287
+ _form_params: List[Tuple[str, str]] = []
4288
+ _files: Dict[
4289
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4290
+ ] = {}
4291
+ _body_params: Optional[bytes] = None
4292
+
4293
+ # process the path parameters
4294
+ if dataset_id is not None:
4295
+ _path_params['dataset_id'] = dataset_id
4296
+ # process the query parameters
4297
+ # process the header parameters
4298
+ # process the form parameters
4299
+ # process the body parameter
4300
+ if put_dataset_schema is not None:
4301
+ _body_params = put_dataset_schema
4302
+
4303
+
4304
+ # set the HTTP header `Accept`
4305
+ if 'Accept' not in _header_params:
4306
+ _header_params['Accept'] = self.api_client.select_header_accept(
4307
+ [
4308
+ 'application/json'
4309
+ ]
4310
+ )
4311
+
4312
+ # set the HTTP header `Content-Type`
4313
+ if _content_type:
4314
+ _header_params['Content-Type'] = _content_type
4315
+ else:
4316
+ _default_content_type = (
4317
+ self.api_client.select_header_content_type(
4318
+ [
4319
+ 'application/json'
4320
+ ]
4321
+ )
4322
+ )
4323
+ if _default_content_type is not None:
4324
+ _header_params['Content-Type'] = _default_content_type
4325
+
4326
+ # authentication setting
4327
+ _auth_settings: List[str] = [
4328
+ 'OAuth2AuthorizationCode'
4329
+ ]
4330
+
4331
+ return self.api_client.param_serialize(
4332
+ method='PUT',
4333
+ resource_path='/api/v1/datasets/{dataset_id}/schema',
4334
+ path_params=_path_params,
4335
+ query_params=_query_params,
4336
+ header_params=_header_params,
4337
+ body=_body_params,
4338
+ post_params=_form_params,
4339
+ files=_files,
4340
+ auth_settings=_auth_settings,
4341
+ collection_formats=_collection_formats,
4342
+ _host=_host,
4343
+ _request_auth=_request_auth
4344
+ )
4345
+
4346
+