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