arthur-client 1.3.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.3.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 -171
  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.3.0.dist-info/LICENSE +0 -21
  966. arthur_client-1.3.0.dist-info/METADATA +0 -49
  967. arthur_client-1.3.0.dist-info/RECORD +0 -58
  968. arthur_client-1.3.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,3173 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arthur Scope
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import StrictStr
20
+ from arthur_client.api_bindings.models.patch_task_request import PatchTaskRequest
21
+ from arthur_client.api_bindings.models.post_link_task_request import PostLinkTaskRequest
22
+ from arthur_client.api_bindings.models.post_task_request import PostTaskRequest
23
+ from arthur_client.api_bindings.models.put_task_connection_info import PutTaskConnectionInfo
24
+ from arthur_client.api_bindings.models.put_task_state_cache_request import PutTaskStateCacheRequest
25
+ from arthur_client.api_bindings.models.task_connection_info import TaskConnectionInfo
26
+ from arthur_client.api_bindings.models.task_mutation_response import TaskMutationResponse
27
+ from arthur_client.api_bindings.models.task_read_response import TaskReadResponse
28
+ from arthur_client.api_bindings.models.task_validation_key_regeneration_response import TaskValidationKeyRegenerationResponse
29
+
30
+ from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
31
+ from arthur_client.api_bindings.api_response import ApiResponse
32
+ from arthur_client.api_bindings.rest import RESTResponseType
33
+
34
+
35
+ class TasksV1Api:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+
48
+ @validate_call
49
+ def delete_connection_info(
50
+ self,
51
+ model_id: StrictStr,
52
+ _request_timeout: Union[
53
+ None,
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
59
+ ] = None,
60
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
+ _content_type: Optional[StrictStr] = None,
62
+ _headers: Optional[Dict[StrictStr, Any]] = None,
63
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
+ ) -> None:
65
+ """Delete Connection Info.
66
+
67
+ Deletes connection information for a model. Requires model_task_delete_connection_info permission.
68
+
69
+ :param model_id: (required)
70
+ :type model_id: str
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._delete_connection_info_serialize(
94
+ model_id=model_id,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '204': None,
103
+ '500': "InternalServerError",
104
+ '404': "NotFoundError",
105
+ '422': "HTTPValidationError",
106
+ }
107
+ response_data = self.api_client.call_api(
108
+ *_param,
109
+ _request_timeout=_request_timeout
110
+ )
111
+ response_data.read()
112
+ return self.api_client.response_deserialize(
113
+ response_data=response_data,
114
+ response_types_map=_response_types_map,
115
+ ).data
116
+
117
+
118
+ @validate_call
119
+ def delete_connection_info_with_http_info(
120
+ self,
121
+ model_id: StrictStr,
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[None]:
135
+ """Delete Connection Info.
136
+
137
+ Deletes connection information for a model. Requires model_task_delete_connection_info permission.
138
+
139
+ :param model_id: (required)
140
+ :type model_id: str
141
+ :param _request_timeout: timeout setting for this request. If one
142
+ number provided, it will be total request
143
+ timeout. It can also be a pair (tuple) of
144
+ (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
146
+ :param _request_auth: set to override the auth_settings for an a single
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
149
+ :type _request_auth: dict, optional
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
160
+ :return: Returns the result object.
161
+ """ # noqa: E501
162
+
163
+ _param = self._delete_connection_info_serialize(
164
+ model_id=model_id,
165
+ _request_auth=_request_auth,
166
+ _content_type=_content_type,
167
+ _headers=_headers,
168
+ _host_index=_host_index
169
+ )
170
+
171
+ _response_types_map: Dict[str, Optional[str]] = {
172
+ '204': None,
173
+ '500': "InternalServerError",
174
+ '404': "NotFoundError",
175
+ '422': "HTTPValidationError",
176
+ }
177
+ response_data = self.api_client.call_api(
178
+ *_param,
179
+ _request_timeout=_request_timeout
180
+ )
181
+ response_data.read()
182
+ return self.api_client.response_deserialize(
183
+ response_data=response_data,
184
+ response_types_map=_response_types_map,
185
+ )
186
+
187
+
188
+ @validate_call
189
+ def delete_connection_info_without_preload_content(
190
+ self,
191
+ model_id: StrictStr,
192
+ _request_timeout: Union[
193
+ None,
194
+ Annotated[StrictFloat, Field(gt=0)],
195
+ Tuple[
196
+ Annotated[StrictFloat, Field(gt=0)],
197
+ Annotated[StrictFloat, Field(gt=0)]
198
+ ]
199
+ ] = None,
200
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
201
+ _content_type: Optional[StrictStr] = None,
202
+ _headers: Optional[Dict[StrictStr, Any]] = None,
203
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
204
+ ) -> RESTResponseType:
205
+ """Delete Connection Info.
206
+
207
+ Deletes connection information for a model. Requires model_task_delete_connection_info permission.
208
+
209
+ :param model_id: (required)
210
+ :type model_id: str
211
+ :param _request_timeout: timeout setting for this request. If one
212
+ number provided, it will be total request
213
+ timeout. It can also be a pair (tuple) of
214
+ (connection, read) timeouts.
215
+ :type _request_timeout: int, tuple(int, int), optional
216
+ :param _request_auth: set to override the auth_settings for an a single
217
+ request; this effectively ignores the
218
+ authentication in the spec for a single request.
219
+ :type _request_auth: dict, optional
220
+ :param _content_type: force content-type for the request.
221
+ :type _content_type: str, Optional
222
+ :param _headers: set to override the headers for a single
223
+ request; this effectively ignores the headers
224
+ in the spec for a single request.
225
+ :type _headers: dict, optional
226
+ :param _host_index: set to override the host_index for a single
227
+ request; this effectively ignores the host_index
228
+ in the spec for a single request.
229
+ :type _host_index: int, optional
230
+ :return: Returns the result object.
231
+ """ # noqa: E501
232
+
233
+ _param = self._delete_connection_info_serialize(
234
+ model_id=model_id,
235
+ _request_auth=_request_auth,
236
+ _content_type=_content_type,
237
+ _headers=_headers,
238
+ _host_index=_host_index
239
+ )
240
+
241
+ _response_types_map: Dict[str, Optional[str]] = {
242
+ '204': None,
243
+ '500': "InternalServerError",
244
+ '404': "NotFoundError",
245
+ '422': "HTTPValidationError",
246
+ }
247
+ response_data = self.api_client.call_api(
248
+ *_param,
249
+ _request_timeout=_request_timeout
250
+ )
251
+ return response_data.response
252
+
253
+
254
+ def _delete_connection_info_serialize(
255
+ self,
256
+ model_id,
257
+ _request_auth,
258
+ _content_type,
259
+ _headers,
260
+ _host_index,
261
+ ) -> RequestSerialized:
262
+
263
+ _host = None
264
+
265
+ _collection_formats: Dict[str, str] = {
266
+ }
267
+
268
+ _path_params: Dict[str, str] = {}
269
+ _query_params: List[Tuple[str, str]] = []
270
+ _header_params: Dict[str, Optional[str]] = _headers or {}
271
+ _form_params: List[Tuple[str, str]] = []
272
+ _files: Dict[
273
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
274
+ ] = {}
275
+ _body_params: Optional[bytes] = None
276
+
277
+ # process the path parameters
278
+ if model_id is not None:
279
+ _path_params['model_id'] = model_id
280
+ # process the query parameters
281
+ # process the header parameters
282
+ # process the form parameters
283
+ # process the body parameter
284
+
285
+
286
+ # set the HTTP header `Accept`
287
+ if 'Accept' not in _header_params:
288
+ _header_params['Accept'] = self.api_client.select_header_accept(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
293
+
294
+
295
+ # authentication setting
296
+ _auth_settings: List[str] = [
297
+ 'OAuth2AuthorizationCode'
298
+ ]
299
+
300
+ return self.api_client.param_serialize(
301
+ method='DELETE',
302
+ resource_path='/api/v1/models/{model_id}/task/connection_info',
303
+ path_params=_path_params,
304
+ query_params=_query_params,
305
+ header_params=_header_params,
306
+ body=_body_params,
307
+ post_params=_form_params,
308
+ files=_files,
309
+ auth_settings=_auth_settings,
310
+ collection_formats=_collection_formats,
311
+ _host=_host,
312
+ _request_auth=_request_auth
313
+ )
314
+
315
+
316
+
317
+
318
+ @validate_call
319
+ def delete_task(
320
+ self,
321
+ model_id: StrictStr,
322
+ _request_timeout: Union[
323
+ None,
324
+ Annotated[StrictFloat, Field(gt=0)],
325
+ Tuple[
326
+ Annotated[StrictFloat, Field(gt=0)],
327
+ Annotated[StrictFloat, Field(gt=0)]
328
+ ]
329
+ ] = None,
330
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
331
+ _content_type: Optional[StrictStr] = None,
332
+ _headers: Optional[Dict[StrictStr, Any]] = None,
333
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
334
+ ) -> TaskMutationResponse:
335
+ """Delete A Task
336
+
337
+ Submits a job to delete the task and the corresponding platform model, and returns the job ID. Requires model_task_delete permission.
338
+
339
+ :param model_id: (required)
340
+ :type model_id: str
341
+ :param _request_timeout: timeout setting for this request. If one
342
+ number provided, it will be total request
343
+ timeout. It can also be a pair (tuple) of
344
+ (connection, read) timeouts.
345
+ :type _request_timeout: int, tuple(int, int), optional
346
+ :param _request_auth: set to override the auth_settings for an a single
347
+ request; this effectively ignores the
348
+ authentication in the spec for a single request.
349
+ :type _request_auth: dict, optional
350
+ :param _content_type: force content-type for the request.
351
+ :type _content_type: str, Optional
352
+ :param _headers: set to override the headers for a single
353
+ request; this effectively ignores the headers
354
+ in the spec for a single request.
355
+ :type _headers: dict, optional
356
+ :param _host_index: set to override the host_index for a single
357
+ request; this effectively ignores the host_index
358
+ in the spec for a single request.
359
+ :type _host_index: int, optional
360
+ :return: Returns the result object.
361
+ """ # noqa: E501
362
+
363
+ _param = self._delete_task_serialize(
364
+ model_id=model_id,
365
+ _request_auth=_request_auth,
366
+ _content_type=_content_type,
367
+ _headers=_headers,
368
+ _host_index=_host_index
369
+ )
370
+
371
+ _response_types_map: Dict[str, Optional[str]] = {
372
+ '200': "TaskMutationResponse",
373
+ '500': "InternalServerError",
374
+ '404': "NotFoundError",
375
+ '422': "HTTPValidationError",
376
+ }
377
+ response_data = self.api_client.call_api(
378
+ *_param,
379
+ _request_timeout=_request_timeout
380
+ )
381
+ response_data.read()
382
+ return self.api_client.response_deserialize(
383
+ response_data=response_data,
384
+ response_types_map=_response_types_map,
385
+ ).data
386
+
387
+
388
+ @validate_call
389
+ def delete_task_with_http_info(
390
+ self,
391
+ model_id: StrictStr,
392
+ _request_timeout: Union[
393
+ None,
394
+ Annotated[StrictFloat, Field(gt=0)],
395
+ Tuple[
396
+ Annotated[StrictFloat, Field(gt=0)],
397
+ Annotated[StrictFloat, Field(gt=0)]
398
+ ]
399
+ ] = None,
400
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
401
+ _content_type: Optional[StrictStr] = None,
402
+ _headers: Optional[Dict[StrictStr, Any]] = None,
403
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
404
+ ) -> ApiResponse[TaskMutationResponse]:
405
+ """Delete A Task
406
+
407
+ Submits a job to delete the task and the corresponding platform model, and returns the job ID. Requires model_task_delete permission.
408
+
409
+ :param model_id: (required)
410
+ :type model_id: str
411
+ :param _request_timeout: timeout setting for this request. If one
412
+ number provided, it will be total request
413
+ timeout. It can also be a pair (tuple) of
414
+ (connection, read) timeouts.
415
+ :type _request_timeout: int, tuple(int, int), optional
416
+ :param _request_auth: set to override the auth_settings for an a single
417
+ request; this effectively ignores the
418
+ authentication in the spec for a single request.
419
+ :type _request_auth: dict, optional
420
+ :param _content_type: force content-type for the request.
421
+ :type _content_type: str, Optional
422
+ :param _headers: set to override the headers for a single
423
+ request; this effectively ignores the headers
424
+ in the spec for a single request.
425
+ :type _headers: dict, optional
426
+ :param _host_index: set to override the host_index for a single
427
+ request; this effectively ignores the host_index
428
+ in the spec for a single request.
429
+ :type _host_index: int, optional
430
+ :return: Returns the result object.
431
+ """ # noqa: E501
432
+
433
+ _param = self._delete_task_serialize(
434
+ model_id=model_id,
435
+ _request_auth=_request_auth,
436
+ _content_type=_content_type,
437
+ _headers=_headers,
438
+ _host_index=_host_index
439
+ )
440
+
441
+ _response_types_map: Dict[str, Optional[str]] = {
442
+ '200': "TaskMutationResponse",
443
+ '500': "InternalServerError",
444
+ '404': "NotFoundError",
445
+ '422': "HTTPValidationError",
446
+ }
447
+ response_data = self.api_client.call_api(
448
+ *_param,
449
+ _request_timeout=_request_timeout
450
+ )
451
+ response_data.read()
452
+ return self.api_client.response_deserialize(
453
+ response_data=response_data,
454
+ response_types_map=_response_types_map,
455
+ )
456
+
457
+
458
+ @validate_call
459
+ def delete_task_without_preload_content(
460
+ self,
461
+ model_id: StrictStr,
462
+ _request_timeout: Union[
463
+ None,
464
+ Annotated[StrictFloat, Field(gt=0)],
465
+ Tuple[
466
+ Annotated[StrictFloat, Field(gt=0)],
467
+ Annotated[StrictFloat, Field(gt=0)]
468
+ ]
469
+ ] = None,
470
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
471
+ _content_type: Optional[StrictStr] = None,
472
+ _headers: Optional[Dict[StrictStr, Any]] = None,
473
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
474
+ ) -> RESTResponseType:
475
+ """Delete A Task
476
+
477
+ Submits a job to delete the task and the corresponding platform model, and returns the job ID. Requires model_task_delete permission.
478
+
479
+ :param model_id: (required)
480
+ :type model_id: str
481
+ :param _request_timeout: timeout setting for this request. If one
482
+ number provided, it will be total request
483
+ timeout. It can also be a pair (tuple) of
484
+ (connection, read) timeouts.
485
+ :type _request_timeout: int, tuple(int, int), optional
486
+ :param _request_auth: set to override the auth_settings for an a single
487
+ request; this effectively ignores the
488
+ authentication in the spec for a single request.
489
+ :type _request_auth: dict, optional
490
+ :param _content_type: force content-type for the request.
491
+ :type _content_type: str, Optional
492
+ :param _headers: set to override the headers for a single
493
+ request; this effectively ignores the headers
494
+ in the spec for a single request.
495
+ :type _headers: dict, optional
496
+ :param _host_index: set to override the host_index for a single
497
+ request; this effectively ignores the host_index
498
+ in the spec for a single request.
499
+ :type _host_index: int, optional
500
+ :return: Returns the result object.
501
+ """ # noqa: E501
502
+
503
+ _param = self._delete_task_serialize(
504
+ model_id=model_id,
505
+ _request_auth=_request_auth,
506
+ _content_type=_content_type,
507
+ _headers=_headers,
508
+ _host_index=_host_index
509
+ )
510
+
511
+ _response_types_map: Dict[str, Optional[str]] = {
512
+ '200': "TaskMutationResponse",
513
+ '500': "InternalServerError",
514
+ '404': "NotFoundError",
515
+ '422': "HTTPValidationError",
516
+ }
517
+ response_data = self.api_client.call_api(
518
+ *_param,
519
+ _request_timeout=_request_timeout
520
+ )
521
+ return response_data.response
522
+
523
+
524
+ def _delete_task_serialize(
525
+ self,
526
+ model_id,
527
+ _request_auth,
528
+ _content_type,
529
+ _headers,
530
+ _host_index,
531
+ ) -> RequestSerialized:
532
+
533
+ _host = None
534
+
535
+ _collection_formats: Dict[str, str] = {
536
+ }
537
+
538
+ _path_params: Dict[str, str] = {}
539
+ _query_params: List[Tuple[str, str]] = []
540
+ _header_params: Dict[str, Optional[str]] = _headers or {}
541
+ _form_params: List[Tuple[str, str]] = []
542
+ _files: Dict[
543
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
544
+ ] = {}
545
+ _body_params: Optional[bytes] = None
546
+
547
+ # process the path parameters
548
+ if model_id is not None:
549
+ _path_params['model_id'] = model_id
550
+ # process the query parameters
551
+ # process the header parameters
552
+ # process the form parameters
553
+ # process the body parameter
554
+
555
+
556
+ # set the HTTP header `Accept`
557
+ if 'Accept' not in _header_params:
558
+ _header_params['Accept'] = self.api_client.select_header_accept(
559
+ [
560
+ 'application/json'
561
+ ]
562
+ )
563
+
564
+
565
+ # authentication setting
566
+ _auth_settings: List[str] = [
567
+ 'OAuth2AuthorizationCode'
568
+ ]
569
+
570
+ return self.api_client.param_serialize(
571
+ method='DELETE',
572
+ resource_path='/api/v1/models/{model_id}/task',
573
+ path_params=_path_params,
574
+ query_params=_query_params,
575
+ header_params=_header_params,
576
+ body=_body_params,
577
+ post_params=_form_params,
578
+ files=_files,
579
+ auth_settings=_auth_settings,
580
+ collection_formats=_collection_formats,
581
+ _host=_host,
582
+ _request_auth=_request_auth
583
+ )
584
+
585
+
586
+
587
+
588
+ @validate_call
589
+ def get_task_connection_info(
590
+ self,
591
+ model_id: StrictStr,
592
+ _request_timeout: Union[
593
+ None,
594
+ Annotated[StrictFloat, Field(gt=0)],
595
+ Tuple[
596
+ Annotated[StrictFloat, Field(gt=0)],
597
+ Annotated[StrictFloat, Field(gt=0)]
598
+ ]
599
+ ] = None,
600
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
601
+ _content_type: Optional[StrictStr] = None,
602
+ _headers: Optional[Dict[StrictStr, Any]] = None,
603
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
604
+ ) -> TaskConnectionInfo:
605
+ """Get Task Connection Info
606
+
607
+ Retrieve the task connection information. Requires model_task_get_connection_info permission.
608
+
609
+ :param model_id: (required)
610
+ :type model_id: str
611
+ :param _request_timeout: timeout setting for this request. If one
612
+ number provided, it will be total request
613
+ timeout. It can also be a pair (tuple) of
614
+ (connection, read) timeouts.
615
+ :type _request_timeout: int, tuple(int, int), optional
616
+ :param _request_auth: set to override the auth_settings for an a single
617
+ request; this effectively ignores the
618
+ authentication in the spec for a single request.
619
+ :type _request_auth: dict, optional
620
+ :param _content_type: force content-type for the request.
621
+ :type _content_type: str, Optional
622
+ :param _headers: set to override the headers for a single
623
+ request; this effectively ignores the headers
624
+ in the spec for a single request.
625
+ :type _headers: dict, optional
626
+ :param _host_index: set to override the host_index for a single
627
+ request; this effectively ignores the host_index
628
+ in the spec for a single request.
629
+ :type _host_index: int, optional
630
+ :return: Returns the result object.
631
+ """ # noqa: E501
632
+
633
+ _param = self._get_task_connection_info_serialize(
634
+ model_id=model_id,
635
+ _request_auth=_request_auth,
636
+ _content_type=_content_type,
637
+ _headers=_headers,
638
+ _host_index=_host_index
639
+ )
640
+
641
+ _response_types_map: Dict[str, Optional[str]] = {
642
+ '200': "TaskConnectionInfo",
643
+ '500': "InternalServerError",
644
+ '404': "NotFoundError",
645
+ '422': "HTTPValidationError",
646
+ }
647
+ response_data = self.api_client.call_api(
648
+ *_param,
649
+ _request_timeout=_request_timeout
650
+ )
651
+ response_data.read()
652
+ return self.api_client.response_deserialize(
653
+ response_data=response_data,
654
+ response_types_map=_response_types_map,
655
+ ).data
656
+
657
+
658
+ @validate_call
659
+ def get_task_connection_info_with_http_info(
660
+ self,
661
+ model_id: StrictStr,
662
+ _request_timeout: Union[
663
+ None,
664
+ Annotated[StrictFloat, Field(gt=0)],
665
+ Tuple[
666
+ Annotated[StrictFloat, Field(gt=0)],
667
+ Annotated[StrictFloat, Field(gt=0)]
668
+ ]
669
+ ] = None,
670
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
671
+ _content_type: Optional[StrictStr] = None,
672
+ _headers: Optional[Dict[StrictStr, Any]] = None,
673
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
674
+ ) -> ApiResponse[TaskConnectionInfo]:
675
+ """Get Task Connection Info
676
+
677
+ Retrieve the task connection information. Requires model_task_get_connection_info permission.
678
+
679
+ :param model_id: (required)
680
+ :type model_id: str
681
+ :param _request_timeout: timeout setting for this request. If one
682
+ number provided, it will be total request
683
+ timeout. It can also be a pair (tuple) of
684
+ (connection, read) timeouts.
685
+ :type _request_timeout: int, tuple(int, int), optional
686
+ :param _request_auth: set to override the auth_settings for an a single
687
+ request; this effectively ignores the
688
+ authentication in the spec for a single request.
689
+ :type _request_auth: dict, optional
690
+ :param _content_type: force content-type for the request.
691
+ :type _content_type: str, Optional
692
+ :param _headers: set to override the headers for a single
693
+ request; this effectively ignores the headers
694
+ in the spec for a single request.
695
+ :type _headers: dict, optional
696
+ :param _host_index: set to override the host_index for a single
697
+ request; this effectively ignores the host_index
698
+ in the spec for a single request.
699
+ :type _host_index: int, optional
700
+ :return: Returns the result object.
701
+ """ # noqa: E501
702
+
703
+ _param = self._get_task_connection_info_serialize(
704
+ model_id=model_id,
705
+ _request_auth=_request_auth,
706
+ _content_type=_content_type,
707
+ _headers=_headers,
708
+ _host_index=_host_index
709
+ )
710
+
711
+ _response_types_map: Dict[str, Optional[str]] = {
712
+ '200': "TaskConnectionInfo",
713
+ '500': "InternalServerError",
714
+ '404': "NotFoundError",
715
+ '422': "HTTPValidationError",
716
+ }
717
+ response_data = self.api_client.call_api(
718
+ *_param,
719
+ _request_timeout=_request_timeout
720
+ )
721
+ response_data.read()
722
+ return self.api_client.response_deserialize(
723
+ response_data=response_data,
724
+ response_types_map=_response_types_map,
725
+ )
726
+
727
+
728
+ @validate_call
729
+ def get_task_connection_info_without_preload_content(
730
+ self,
731
+ model_id: StrictStr,
732
+ _request_timeout: Union[
733
+ None,
734
+ Annotated[StrictFloat, Field(gt=0)],
735
+ Tuple[
736
+ Annotated[StrictFloat, Field(gt=0)],
737
+ Annotated[StrictFloat, Field(gt=0)]
738
+ ]
739
+ ] = None,
740
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
741
+ _content_type: Optional[StrictStr] = None,
742
+ _headers: Optional[Dict[StrictStr, Any]] = None,
743
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
744
+ ) -> RESTResponseType:
745
+ """Get Task Connection Info
746
+
747
+ Retrieve the task connection information. Requires model_task_get_connection_info permission.
748
+
749
+ :param model_id: (required)
750
+ :type model_id: str
751
+ :param _request_timeout: timeout setting for this request. If one
752
+ number provided, it will be total request
753
+ timeout. It can also be a pair (tuple) of
754
+ (connection, read) timeouts.
755
+ :type _request_timeout: int, tuple(int, int), optional
756
+ :param _request_auth: set to override the auth_settings for an a single
757
+ request; this effectively ignores the
758
+ authentication in the spec for a single request.
759
+ :type _request_auth: dict, optional
760
+ :param _content_type: force content-type for the request.
761
+ :type _content_type: str, Optional
762
+ :param _headers: set to override the headers for a single
763
+ request; this effectively ignores the headers
764
+ in the spec for a single request.
765
+ :type _headers: dict, optional
766
+ :param _host_index: set to override the host_index for a single
767
+ request; this effectively ignores the host_index
768
+ in the spec for a single request.
769
+ :type _host_index: int, optional
770
+ :return: Returns the result object.
771
+ """ # noqa: E501
772
+
773
+ _param = self._get_task_connection_info_serialize(
774
+ model_id=model_id,
775
+ _request_auth=_request_auth,
776
+ _content_type=_content_type,
777
+ _headers=_headers,
778
+ _host_index=_host_index
779
+ )
780
+
781
+ _response_types_map: Dict[str, Optional[str]] = {
782
+ '200': "TaskConnectionInfo",
783
+ '500': "InternalServerError",
784
+ '404': "NotFoundError",
785
+ '422': "HTTPValidationError",
786
+ }
787
+ response_data = self.api_client.call_api(
788
+ *_param,
789
+ _request_timeout=_request_timeout
790
+ )
791
+ return response_data.response
792
+
793
+
794
+ def _get_task_connection_info_serialize(
795
+ self,
796
+ model_id,
797
+ _request_auth,
798
+ _content_type,
799
+ _headers,
800
+ _host_index,
801
+ ) -> RequestSerialized:
802
+
803
+ _host = None
804
+
805
+ _collection_formats: Dict[str, str] = {
806
+ }
807
+
808
+ _path_params: Dict[str, str] = {}
809
+ _query_params: List[Tuple[str, str]] = []
810
+ _header_params: Dict[str, Optional[str]] = _headers or {}
811
+ _form_params: List[Tuple[str, str]] = []
812
+ _files: Dict[
813
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
814
+ ] = {}
815
+ _body_params: Optional[bytes] = None
816
+
817
+ # process the path parameters
818
+ if model_id is not None:
819
+ _path_params['model_id'] = model_id
820
+ # process the query parameters
821
+ # process the header parameters
822
+ # process the form parameters
823
+ # process the body parameter
824
+
825
+
826
+ # set the HTTP header `Accept`
827
+ if 'Accept' not in _header_params:
828
+ _header_params['Accept'] = self.api_client.select_header_accept(
829
+ [
830
+ 'application/json'
831
+ ]
832
+ )
833
+
834
+
835
+ # authentication setting
836
+ _auth_settings: List[str] = [
837
+ 'OAuth2AuthorizationCode'
838
+ ]
839
+
840
+ return self.api_client.param_serialize(
841
+ method='GET',
842
+ resource_path='/api/v1/models/{model_id}/task/connection_info',
843
+ path_params=_path_params,
844
+ query_params=_query_params,
845
+ header_params=_header_params,
846
+ body=_body_params,
847
+ post_params=_form_params,
848
+ files=_files,
849
+ auth_settings=_auth_settings,
850
+ collection_formats=_collection_formats,
851
+ _host=_host,
852
+ _request_auth=_request_auth
853
+ )
854
+
855
+
856
+
857
+
858
+ @validate_call
859
+ def get_task_state_cache(
860
+ self,
861
+ model_id: StrictStr,
862
+ _request_timeout: Union[
863
+ None,
864
+ Annotated[StrictFloat, Field(gt=0)],
865
+ Tuple[
866
+ Annotated[StrictFloat, Field(gt=0)],
867
+ Annotated[StrictFloat, Field(gt=0)]
868
+ ]
869
+ ] = None,
870
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
871
+ _content_type: Optional[StrictStr] = None,
872
+ _headers: Optional[Dict[StrictStr, Any]] = None,
873
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
874
+ ) -> TaskReadResponse:
875
+ """Get Cached Task State
876
+
877
+ Retrieve the task state cached in the control plane. Requires model_task_read permission.
878
+
879
+ :param model_id: (required)
880
+ :type model_id: str
881
+ :param _request_timeout: timeout setting for this request. If one
882
+ number provided, it will be total request
883
+ timeout. It can also be a pair (tuple) of
884
+ (connection, read) timeouts.
885
+ :type _request_timeout: int, tuple(int, int), optional
886
+ :param _request_auth: set to override the auth_settings for an a single
887
+ request; this effectively ignores the
888
+ authentication in the spec for a single request.
889
+ :type _request_auth: dict, optional
890
+ :param _content_type: force content-type for the request.
891
+ :type _content_type: str, Optional
892
+ :param _headers: set to override the headers for a single
893
+ request; this effectively ignores the headers
894
+ in the spec for a single request.
895
+ :type _headers: dict, optional
896
+ :param _host_index: set to override the host_index for a single
897
+ request; this effectively ignores the host_index
898
+ in the spec for a single request.
899
+ :type _host_index: int, optional
900
+ :return: Returns the result object.
901
+ """ # noqa: E501
902
+
903
+ _param = self._get_task_state_cache_serialize(
904
+ model_id=model_id,
905
+ _request_auth=_request_auth,
906
+ _content_type=_content_type,
907
+ _headers=_headers,
908
+ _host_index=_host_index
909
+ )
910
+
911
+ _response_types_map: Dict[str, Optional[str]] = {
912
+ '200': "TaskReadResponse",
913
+ '500': "InternalServerError",
914
+ '404': "NotFoundError",
915
+ '422': "HTTPValidationError",
916
+ }
917
+ response_data = self.api_client.call_api(
918
+ *_param,
919
+ _request_timeout=_request_timeout
920
+ )
921
+ response_data.read()
922
+ return self.api_client.response_deserialize(
923
+ response_data=response_data,
924
+ response_types_map=_response_types_map,
925
+ ).data
926
+
927
+
928
+ @validate_call
929
+ def get_task_state_cache_with_http_info(
930
+ self,
931
+ model_id: StrictStr,
932
+ _request_timeout: Union[
933
+ None,
934
+ Annotated[StrictFloat, Field(gt=0)],
935
+ Tuple[
936
+ Annotated[StrictFloat, Field(gt=0)],
937
+ Annotated[StrictFloat, Field(gt=0)]
938
+ ]
939
+ ] = None,
940
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
941
+ _content_type: Optional[StrictStr] = None,
942
+ _headers: Optional[Dict[StrictStr, Any]] = None,
943
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
944
+ ) -> ApiResponse[TaskReadResponse]:
945
+ """Get Cached Task State
946
+
947
+ Retrieve the task state cached in the control plane. Requires model_task_read permission.
948
+
949
+ :param model_id: (required)
950
+ :type model_id: str
951
+ :param _request_timeout: timeout setting for this request. If one
952
+ number provided, it will be total request
953
+ timeout. It can also be a pair (tuple) of
954
+ (connection, read) timeouts.
955
+ :type _request_timeout: int, tuple(int, int), optional
956
+ :param _request_auth: set to override the auth_settings for an a single
957
+ request; this effectively ignores the
958
+ authentication in the spec for a single request.
959
+ :type _request_auth: dict, optional
960
+ :param _content_type: force content-type for the request.
961
+ :type _content_type: str, Optional
962
+ :param _headers: set to override the headers for a single
963
+ request; this effectively ignores the headers
964
+ in the spec for a single request.
965
+ :type _headers: dict, optional
966
+ :param _host_index: set to override the host_index for a single
967
+ request; this effectively ignores the host_index
968
+ in the spec for a single request.
969
+ :type _host_index: int, optional
970
+ :return: Returns the result object.
971
+ """ # noqa: E501
972
+
973
+ _param = self._get_task_state_cache_serialize(
974
+ model_id=model_id,
975
+ _request_auth=_request_auth,
976
+ _content_type=_content_type,
977
+ _headers=_headers,
978
+ _host_index=_host_index
979
+ )
980
+
981
+ _response_types_map: Dict[str, Optional[str]] = {
982
+ '200': "TaskReadResponse",
983
+ '500': "InternalServerError",
984
+ '404': "NotFoundError",
985
+ '422': "HTTPValidationError",
986
+ }
987
+ response_data = self.api_client.call_api(
988
+ *_param,
989
+ _request_timeout=_request_timeout
990
+ )
991
+ response_data.read()
992
+ return self.api_client.response_deserialize(
993
+ response_data=response_data,
994
+ response_types_map=_response_types_map,
995
+ )
996
+
997
+
998
+ @validate_call
999
+ def get_task_state_cache_without_preload_content(
1000
+ self,
1001
+ model_id: StrictStr,
1002
+ _request_timeout: Union[
1003
+ None,
1004
+ Annotated[StrictFloat, Field(gt=0)],
1005
+ Tuple[
1006
+ Annotated[StrictFloat, Field(gt=0)],
1007
+ Annotated[StrictFloat, Field(gt=0)]
1008
+ ]
1009
+ ] = None,
1010
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1011
+ _content_type: Optional[StrictStr] = None,
1012
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1013
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1014
+ ) -> RESTResponseType:
1015
+ """Get Cached Task State
1016
+
1017
+ Retrieve the task state cached in the control plane. Requires model_task_read permission.
1018
+
1019
+ :param model_id: (required)
1020
+ :type model_id: str
1021
+ :param _request_timeout: timeout setting for this request. If one
1022
+ number provided, it will be total request
1023
+ timeout. It can also be a pair (tuple) of
1024
+ (connection, read) timeouts.
1025
+ :type _request_timeout: int, tuple(int, int), optional
1026
+ :param _request_auth: set to override the auth_settings for an a single
1027
+ request; this effectively ignores the
1028
+ authentication in the spec for a single request.
1029
+ :type _request_auth: dict, optional
1030
+ :param _content_type: force content-type for the request.
1031
+ :type _content_type: str, Optional
1032
+ :param _headers: set to override the headers for a single
1033
+ request; this effectively ignores the headers
1034
+ in the spec for a single request.
1035
+ :type _headers: dict, optional
1036
+ :param _host_index: set to override the host_index for a single
1037
+ request; this effectively ignores the host_index
1038
+ in the spec for a single request.
1039
+ :type _host_index: int, optional
1040
+ :return: Returns the result object.
1041
+ """ # noqa: E501
1042
+
1043
+ _param = self._get_task_state_cache_serialize(
1044
+ model_id=model_id,
1045
+ _request_auth=_request_auth,
1046
+ _content_type=_content_type,
1047
+ _headers=_headers,
1048
+ _host_index=_host_index
1049
+ )
1050
+
1051
+ _response_types_map: Dict[str, Optional[str]] = {
1052
+ '200': "TaskReadResponse",
1053
+ '500': "InternalServerError",
1054
+ '404': "NotFoundError",
1055
+ '422': "HTTPValidationError",
1056
+ }
1057
+ response_data = self.api_client.call_api(
1058
+ *_param,
1059
+ _request_timeout=_request_timeout
1060
+ )
1061
+ return response_data.response
1062
+
1063
+
1064
+ def _get_task_state_cache_serialize(
1065
+ self,
1066
+ model_id,
1067
+ _request_auth,
1068
+ _content_type,
1069
+ _headers,
1070
+ _host_index,
1071
+ ) -> RequestSerialized:
1072
+
1073
+ _host = None
1074
+
1075
+ _collection_formats: Dict[str, str] = {
1076
+ }
1077
+
1078
+ _path_params: Dict[str, str] = {}
1079
+ _query_params: List[Tuple[str, str]] = []
1080
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1081
+ _form_params: List[Tuple[str, str]] = []
1082
+ _files: Dict[
1083
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1084
+ ] = {}
1085
+ _body_params: Optional[bytes] = None
1086
+
1087
+ # process the path parameters
1088
+ if model_id is not None:
1089
+ _path_params['model_id'] = model_id
1090
+ # process the query parameters
1091
+ # process the header parameters
1092
+ # process the form parameters
1093
+ # process the body parameter
1094
+
1095
+
1096
+ # set the HTTP header `Accept`
1097
+ if 'Accept' not in _header_params:
1098
+ _header_params['Accept'] = self.api_client.select_header_accept(
1099
+ [
1100
+ 'application/json'
1101
+ ]
1102
+ )
1103
+
1104
+
1105
+ # authentication setting
1106
+ _auth_settings: List[str] = [
1107
+ 'OAuth2AuthorizationCode'
1108
+ ]
1109
+
1110
+ return self.api_client.param_serialize(
1111
+ method='GET',
1112
+ resource_path='/api/v1/models/{model_id}/task',
1113
+ path_params=_path_params,
1114
+ query_params=_query_params,
1115
+ header_params=_header_params,
1116
+ body=_body_params,
1117
+ post_params=_form_params,
1118
+ files=_files,
1119
+ auth_settings=_auth_settings,
1120
+ collection_formats=_collection_formats,
1121
+ _host=_host,
1122
+ _request_auth=_request_auth
1123
+ )
1124
+
1125
+
1126
+
1127
+
1128
+ @validate_call
1129
+ def patch_task(
1130
+ self,
1131
+ model_id: StrictStr,
1132
+ patch_task_request: PatchTaskRequest,
1133
+ _request_timeout: Union[
1134
+ None,
1135
+ Annotated[StrictFloat, Field(gt=0)],
1136
+ Tuple[
1137
+ Annotated[StrictFloat, Field(gt=0)],
1138
+ Annotated[StrictFloat, Field(gt=0)]
1139
+ ]
1140
+ ] = None,
1141
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1142
+ _content_type: Optional[StrictStr] = None,
1143
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1144
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1145
+ ) -> TaskMutationResponse:
1146
+ """Update A Task
1147
+
1148
+ Submits a job to update the task definition for this model and returns the job ID. When the job finishes, it will upload the latest copy of the task state. Requires model_task_update permission.
1149
+
1150
+ :param model_id: (required)
1151
+ :type model_id: str
1152
+ :param patch_task_request: (required)
1153
+ :type patch_task_request: PatchTaskRequest
1154
+ :param _request_timeout: timeout setting for this request. If one
1155
+ number provided, it will be total request
1156
+ timeout. It can also be a pair (tuple) of
1157
+ (connection, read) timeouts.
1158
+ :type _request_timeout: int, tuple(int, int), optional
1159
+ :param _request_auth: set to override the auth_settings for an a single
1160
+ request; this effectively ignores the
1161
+ authentication in the spec for a single request.
1162
+ :type _request_auth: dict, optional
1163
+ :param _content_type: force content-type for the request.
1164
+ :type _content_type: str, Optional
1165
+ :param _headers: set to override the headers for a single
1166
+ request; this effectively ignores the headers
1167
+ in the spec for a single request.
1168
+ :type _headers: dict, optional
1169
+ :param _host_index: set to override the host_index for a single
1170
+ request; this effectively ignores the host_index
1171
+ in the spec for a single request.
1172
+ :type _host_index: int, optional
1173
+ :return: Returns the result object.
1174
+ """ # noqa: E501
1175
+
1176
+ _param = self._patch_task_serialize(
1177
+ model_id=model_id,
1178
+ patch_task_request=patch_task_request,
1179
+ _request_auth=_request_auth,
1180
+ _content_type=_content_type,
1181
+ _headers=_headers,
1182
+ _host_index=_host_index
1183
+ )
1184
+
1185
+ _response_types_map: Dict[str, Optional[str]] = {
1186
+ '200': "TaskMutationResponse",
1187
+ '500': "InternalServerError",
1188
+ '400': "BadRequestError",
1189
+ '404': "NotFoundError",
1190
+ '422': "HTTPValidationError",
1191
+ }
1192
+ response_data = self.api_client.call_api(
1193
+ *_param,
1194
+ _request_timeout=_request_timeout
1195
+ )
1196
+ response_data.read()
1197
+ return self.api_client.response_deserialize(
1198
+ response_data=response_data,
1199
+ response_types_map=_response_types_map,
1200
+ ).data
1201
+
1202
+
1203
+ @validate_call
1204
+ def patch_task_with_http_info(
1205
+ self,
1206
+ model_id: StrictStr,
1207
+ patch_task_request: PatchTaskRequest,
1208
+ _request_timeout: Union[
1209
+ None,
1210
+ Annotated[StrictFloat, Field(gt=0)],
1211
+ Tuple[
1212
+ Annotated[StrictFloat, Field(gt=0)],
1213
+ Annotated[StrictFloat, Field(gt=0)]
1214
+ ]
1215
+ ] = None,
1216
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1217
+ _content_type: Optional[StrictStr] = None,
1218
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1219
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1220
+ ) -> ApiResponse[TaskMutationResponse]:
1221
+ """Update A Task
1222
+
1223
+ Submits a job to update the task definition for this model and returns the job ID. When the job finishes, it will upload the latest copy of the task state. Requires model_task_update permission.
1224
+
1225
+ :param model_id: (required)
1226
+ :type model_id: str
1227
+ :param patch_task_request: (required)
1228
+ :type patch_task_request: PatchTaskRequest
1229
+ :param _request_timeout: timeout setting for this request. If one
1230
+ number provided, it will be total request
1231
+ timeout. It can also be a pair (tuple) of
1232
+ (connection, read) timeouts.
1233
+ :type _request_timeout: int, tuple(int, int), optional
1234
+ :param _request_auth: set to override the auth_settings for an a single
1235
+ request; this effectively ignores the
1236
+ authentication in the spec for a single request.
1237
+ :type _request_auth: dict, optional
1238
+ :param _content_type: force content-type for the request.
1239
+ :type _content_type: str, Optional
1240
+ :param _headers: set to override the headers for a single
1241
+ request; this effectively ignores the headers
1242
+ in the spec for a single request.
1243
+ :type _headers: dict, optional
1244
+ :param _host_index: set to override the host_index for a single
1245
+ request; this effectively ignores the host_index
1246
+ in the spec for a single request.
1247
+ :type _host_index: int, optional
1248
+ :return: Returns the result object.
1249
+ """ # noqa: E501
1250
+
1251
+ _param = self._patch_task_serialize(
1252
+ model_id=model_id,
1253
+ patch_task_request=patch_task_request,
1254
+ _request_auth=_request_auth,
1255
+ _content_type=_content_type,
1256
+ _headers=_headers,
1257
+ _host_index=_host_index
1258
+ )
1259
+
1260
+ _response_types_map: Dict[str, Optional[str]] = {
1261
+ '200': "TaskMutationResponse",
1262
+ '500': "InternalServerError",
1263
+ '400': "BadRequestError",
1264
+ '404': "NotFoundError",
1265
+ '422': "HTTPValidationError",
1266
+ }
1267
+ response_data = self.api_client.call_api(
1268
+ *_param,
1269
+ _request_timeout=_request_timeout
1270
+ )
1271
+ response_data.read()
1272
+ return self.api_client.response_deserialize(
1273
+ response_data=response_data,
1274
+ response_types_map=_response_types_map,
1275
+ )
1276
+
1277
+
1278
+ @validate_call
1279
+ def patch_task_without_preload_content(
1280
+ self,
1281
+ model_id: StrictStr,
1282
+ patch_task_request: PatchTaskRequest,
1283
+ _request_timeout: Union[
1284
+ None,
1285
+ Annotated[StrictFloat, Field(gt=0)],
1286
+ Tuple[
1287
+ Annotated[StrictFloat, Field(gt=0)],
1288
+ Annotated[StrictFloat, Field(gt=0)]
1289
+ ]
1290
+ ] = None,
1291
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1292
+ _content_type: Optional[StrictStr] = None,
1293
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1294
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1295
+ ) -> RESTResponseType:
1296
+ """Update A Task
1297
+
1298
+ Submits a job to update the task definition for this model and returns the job ID. When the job finishes, it will upload the latest copy of the task state. Requires model_task_update permission.
1299
+
1300
+ :param model_id: (required)
1301
+ :type model_id: str
1302
+ :param patch_task_request: (required)
1303
+ :type patch_task_request: PatchTaskRequest
1304
+ :param _request_timeout: timeout setting for this request. If one
1305
+ number provided, it will be total request
1306
+ timeout. It can also be a pair (tuple) of
1307
+ (connection, read) timeouts.
1308
+ :type _request_timeout: int, tuple(int, int), optional
1309
+ :param _request_auth: set to override the auth_settings for an a single
1310
+ request; this effectively ignores the
1311
+ authentication in the spec for a single request.
1312
+ :type _request_auth: dict, optional
1313
+ :param _content_type: force content-type for the request.
1314
+ :type _content_type: str, Optional
1315
+ :param _headers: set to override the headers for a single
1316
+ request; this effectively ignores the headers
1317
+ in the spec for a single request.
1318
+ :type _headers: dict, optional
1319
+ :param _host_index: set to override the host_index for a single
1320
+ request; this effectively ignores the host_index
1321
+ in the spec for a single request.
1322
+ :type _host_index: int, optional
1323
+ :return: Returns the result object.
1324
+ """ # noqa: E501
1325
+
1326
+ _param = self._patch_task_serialize(
1327
+ model_id=model_id,
1328
+ patch_task_request=patch_task_request,
1329
+ _request_auth=_request_auth,
1330
+ _content_type=_content_type,
1331
+ _headers=_headers,
1332
+ _host_index=_host_index
1333
+ )
1334
+
1335
+ _response_types_map: Dict[str, Optional[str]] = {
1336
+ '200': "TaskMutationResponse",
1337
+ '500': "InternalServerError",
1338
+ '400': "BadRequestError",
1339
+ '404': "NotFoundError",
1340
+ '422': "HTTPValidationError",
1341
+ }
1342
+ response_data = self.api_client.call_api(
1343
+ *_param,
1344
+ _request_timeout=_request_timeout
1345
+ )
1346
+ return response_data.response
1347
+
1348
+
1349
+ def _patch_task_serialize(
1350
+ self,
1351
+ model_id,
1352
+ patch_task_request,
1353
+ _request_auth,
1354
+ _content_type,
1355
+ _headers,
1356
+ _host_index,
1357
+ ) -> RequestSerialized:
1358
+
1359
+ _host = None
1360
+
1361
+ _collection_formats: Dict[str, str] = {
1362
+ }
1363
+
1364
+ _path_params: Dict[str, str] = {}
1365
+ _query_params: List[Tuple[str, str]] = []
1366
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1367
+ _form_params: List[Tuple[str, str]] = []
1368
+ _files: Dict[
1369
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1370
+ ] = {}
1371
+ _body_params: Optional[bytes] = None
1372
+
1373
+ # process the path parameters
1374
+ if model_id is not None:
1375
+ _path_params['model_id'] = model_id
1376
+ # process the query parameters
1377
+ # process the header parameters
1378
+ # process the form parameters
1379
+ # process the body parameter
1380
+ if patch_task_request is not None:
1381
+ _body_params = patch_task_request
1382
+
1383
+
1384
+ # set the HTTP header `Accept`
1385
+ if 'Accept' not in _header_params:
1386
+ _header_params['Accept'] = self.api_client.select_header_accept(
1387
+ [
1388
+ 'application/json'
1389
+ ]
1390
+ )
1391
+
1392
+ # set the HTTP header `Content-Type`
1393
+ if _content_type:
1394
+ _header_params['Content-Type'] = _content_type
1395
+ else:
1396
+ _default_content_type = (
1397
+ self.api_client.select_header_content_type(
1398
+ [
1399
+ 'application/json'
1400
+ ]
1401
+ )
1402
+ )
1403
+ if _default_content_type is not None:
1404
+ _header_params['Content-Type'] = _default_content_type
1405
+
1406
+ # authentication setting
1407
+ _auth_settings: List[str] = [
1408
+ 'OAuth2AuthorizationCode'
1409
+ ]
1410
+
1411
+ return self.api_client.param_serialize(
1412
+ method='PATCH',
1413
+ resource_path='/api/v1/models/{model_id}/task',
1414
+ path_params=_path_params,
1415
+ query_params=_query_params,
1416
+ header_params=_header_params,
1417
+ body=_body_params,
1418
+ post_params=_form_params,
1419
+ files=_files,
1420
+ auth_settings=_auth_settings,
1421
+ collection_formats=_collection_formats,
1422
+ _host=_host,
1423
+ _request_auth=_request_auth
1424
+ )
1425
+
1426
+
1427
+
1428
+
1429
+ @validate_call
1430
+ def post_regenerate_validation_key(
1431
+ self,
1432
+ model_id: StrictStr,
1433
+ _request_timeout: Union[
1434
+ None,
1435
+ Annotated[StrictFloat, Field(gt=0)],
1436
+ Tuple[
1437
+ Annotated[StrictFloat, Field(gt=0)],
1438
+ Annotated[StrictFloat, Field(gt=0)]
1439
+ ]
1440
+ ] = None,
1441
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1442
+ _content_type: Optional[StrictStr] = None,
1443
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1444
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1445
+ ) -> TaskValidationKeyRegenerationResponse:
1446
+ """Regenerate Task Validation Key
1447
+
1448
+ Regenerate the task validation key. Requires model_task_regenerate_validation_key permission.
1449
+
1450
+ :param model_id: (required)
1451
+ :type model_id: str
1452
+ :param _request_timeout: timeout setting for this request. If one
1453
+ number provided, it will be total request
1454
+ timeout. It can also be a pair (tuple) of
1455
+ (connection, read) timeouts.
1456
+ :type _request_timeout: int, tuple(int, int), optional
1457
+ :param _request_auth: set to override the auth_settings for an a single
1458
+ request; this effectively ignores the
1459
+ authentication in the spec for a single request.
1460
+ :type _request_auth: dict, optional
1461
+ :param _content_type: force content-type for the request.
1462
+ :type _content_type: str, Optional
1463
+ :param _headers: set to override the headers for a single
1464
+ request; this effectively ignores the headers
1465
+ in the spec for a single request.
1466
+ :type _headers: dict, optional
1467
+ :param _host_index: set to override the host_index for a single
1468
+ request; this effectively ignores the host_index
1469
+ in the spec for a single request.
1470
+ :type _host_index: int, optional
1471
+ :return: Returns the result object.
1472
+ """ # noqa: E501
1473
+
1474
+ _param = self._post_regenerate_validation_key_serialize(
1475
+ model_id=model_id,
1476
+ _request_auth=_request_auth,
1477
+ _content_type=_content_type,
1478
+ _headers=_headers,
1479
+ _host_index=_host_index
1480
+ )
1481
+
1482
+ _response_types_map: Dict[str, Optional[str]] = {
1483
+ '200': "TaskValidationKeyRegenerationResponse",
1484
+ '500': "InternalServerError",
1485
+ '404': "NotFoundError",
1486
+ '422': "HTTPValidationError",
1487
+ }
1488
+ response_data = self.api_client.call_api(
1489
+ *_param,
1490
+ _request_timeout=_request_timeout
1491
+ )
1492
+ response_data.read()
1493
+ return self.api_client.response_deserialize(
1494
+ response_data=response_data,
1495
+ response_types_map=_response_types_map,
1496
+ ).data
1497
+
1498
+
1499
+ @validate_call
1500
+ def post_regenerate_validation_key_with_http_info(
1501
+ self,
1502
+ model_id: StrictStr,
1503
+ _request_timeout: Union[
1504
+ None,
1505
+ Annotated[StrictFloat, Field(gt=0)],
1506
+ Tuple[
1507
+ Annotated[StrictFloat, Field(gt=0)],
1508
+ Annotated[StrictFloat, Field(gt=0)]
1509
+ ]
1510
+ ] = None,
1511
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1512
+ _content_type: Optional[StrictStr] = None,
1513
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1514
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1515
+ ) -> ApiResponse[TaskValidationKeyRegenerationResponse]:
1516
+ """Regenerate Task Validation Key
1517
+
1518
+ Regenerate the task validation key. Requires model_task_regenerate_validation_key permission.
1519
+
1520
+ :param model_id: (required)
1521
+ :type model_id: str
1522
+ :param _request_timeout: timeout setting for this request. If one
1523
+ number provided, it will be total request
1524
+ timeout. It can also be a pair (tuple) of
1525
+ (connection, read) timeouts.
1526
+ :type _request_timeout: int, tuple(int, int), optional
1527
+ :param _request_auth: set to override the auth_settings for an a single
1528
+ request; this effectively ignores the
1529
+ authentication in the spec for a single request.
1530
+ :type _request_auth: dict, optional
1531
+ :param _content_type: force content-type for the request.
1532
+ :type _content_type: str, Optional
1533
+ :param _headers: set to override the headers for a single
1534
+ request; this effectively ignores the headers
1535
+ in the spec for a single request.
1536
+ :type _headers: dict, optional
1537
+ :param _host_index: set to override the host_index for a single
1538
+ request; this effectively ignores the host_index
1539
+ in the spec for a single request.
1540
+ :type _host_index: int, optional
1541
+ :return: Returns the result object.
1542
+ """ # noqa: E501
1543
+
1544
+ _param = self._post_regenerate_validation_key_serialize(
1545
+ model_id=model_id,
1546
+ _request_auth=_request_auth,
1547
+ _content_type=_content_type,
1548
+ _headers=_headers,
1549
+ _host_index=_host_index
1550
+ )
1551
+
1552
+ _response_types_map: Dict[str, Optional[str]] = {
1553
+ '200': "TaskValidationKeyRegenerationResponse",
1554
+ '500': "InternalServerError",
1555
+ '404': "NotFoundError",
1556
+ '422': "HTTPValidationError",
1557
+ }
1558
+ response_data = self.api_client.call_api(
1559
+ *_param,
1560
+ _request_timeout=_request_timeout
1561
+ )
1562
+ response_data.read()
1563
+ return self.api_client.response_deserialize(
1564
+ response_data=response_data,
1565
+ response_types_map=_response_types_map,
1566
+ )
1567
+
1568
+
1569
+ @validate_call
1570
+ def post_regenerate_validation_key_without_preload_content(
1571
+ self,
1572
+ model_id: StrictStr,
1573
+ _request_timeout: Union[
1574
+ None,
1575
+ Annotated[StrictFloat, Field(gt=0)],
1576
+ Tuple[
1577
+ Annotated[StrictFloat, Field(gt=0)],
1578
+ Annotated[StrictFloat, Field(gt=0)]
1579
+ ]
1580
+ ] = None,
1581
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1582
+ _content_type: Optional[StrictStr] = None,
1583
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1584
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1585
+ ) -> RESTResponseType:
1586
+ """Regenerate Task Validation Key
1587
+
1588
+ Regenerate the task validation key. Requires model_task_regenerate_validation_key permission.
1589
+
1590
+ :param model_id: (required)
1591
+ :type model_id: str
1592
+ :param _request_timeout: timeout setting for this request. If one
1593
+ number provided, it will be total request
1594
+ timeout. It can also be a pair (tuple) of
1595
+ (connection, read) timeouts.
1596
+ :type _request_timeout: int, tuple(int, int), optional
1597
+ :param _request_auth: set to override the auth_settings for an a single
1598
+ request; this effectively ignores the
1599
+ authentication in the spec for a single request.
1600
+ :type _request_auth: dict, optional
1601
+ :param _content_type: force content-type for the request.
1602
+ :type _content_type: str, Optional
1603
+ :param _headers: set to override the headers for a single
1604
+ request; this effectively ignores the headers
1605
+ in the spec for a single request.
1606
+ :type _headers: dict, optional
1607
+ :param _host_index: set to override the host_index for a single
1608
+ request; this effectively ignores the host_index
1609
+ in the spec for a single request.
1610
+ :type _host_index: int, optional
1611
+ :return: Returns the result object.
1612
+ """ # noqa: E501
1613
+
1614
+ _param = self._post_regenerate_validation_key_serialize(
1615
+ model_id=model_id,
1616
+ _request_auth=_request_auth,
1617
+ _content_type=_content_type,
1618
+ _headers=_headers,
1619
+ _host_index=_host_index
1620
+ )
1621
+
1622
+ _response_types_map: Dict[str, Optional[str]] = {
1623
+ '200': "TaskValidationKeyRegenerationResponse",
1624
+ '500': "InternalServerError",
1625
+ '404': "NotFoundError",
1626
+ '422': "HTTPValidationError",
1627
+ }
1628
+ response_data = self.api_client.call_api(
1629
+ *_param,
1630
+ _request_timeout=_request_timeout
1631
+ )
1632
+ return response_data.response
1633
+
1634
+
1635
+ def _post_regenerate_validation_key_serialize(
1636
+ self,
1637
+ model_id,
1638
+ _request_auth,
1639
+ _content_type,
1640
+ _headers,
1641
+ _host_index,
1642
+ ) -> RequestSerialized:
1643
+
1644
+ _host = None
1645
+
1646
+ _collection_formats: Dict[str, str] = {
1647
+ }
1648
+
1649
+ _path_params: Dict[str, str] = {}
1650
+ _query_params: List[Tuple[str, str]] = []
1651
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1652
+ _form_params: List[Tuple[str, str]] = []
1653
+ _files: Dict[
1654
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1655
+ ] = {}
1656
+ _body_params: Optional[bytes] = None
1657
+
1658
+ # process the path parameters
1659
+ if model_id is not None:
1660
+ _path_params['model_id'] = model_id
1661
+ # process the query parameters
1662
+ # process the header parameters
1663
+ # process the form parameters
1664
+ # process the body parameter
1665
+
1666
+
1667
+ # set the HTTP header `Accept`
1668
+ if 'Accept' not in _header_params:
1669
+ _header_params['Accept'] = self.api_client.select_header_accept(
1670
+ [
1671
+ 'application/json'
1672
+ ]
1673
+ )
1674
+
1675
+
1676
+ # authentication setting
1677
+ _auth_settings: List[str] = [
1678
+ 'OAuth2AuthorizationCode'
1679
+ ]
1680
+
1681
+ return self.api_client.param_serialize(
1682
+ method='POST',
1683
+ resource_path='/api/v1/models/{model_id}/task/regenerate_validation_key',
1684
+ path_params=_path_params,
1685
+ query_params=_query_params,
1686
+ header_params=_header_params,
1687
+ body=_body_params,
1688
+ post_params=_form_params,
1689
+ files=_files,
1690
+ auth_settings=_auth_settings,
1691
+ collection_formats=_collection_formats,
1692
+ _host=_host,
1693
+ _request_auth=_request_auth
1694
+ )
1695
+
1696
+
1697
+
1698
+
1699
+ @validate_call
1700
+ def project_create_model_link_task(
1701
+ self,
1702
+ project_id: StrictStr,
1703
+ post_link_task_request: PostLinkTaskRequest,
1704
+ _request_timeout: Union[
1705
+ None,
1706
+ Annotated[StrictFloat, Field(gt=0)],
1707
+ Tuple[
1708
+ Annotated[StrictFloat, Field(gt=0)],
1709
+ Annotated[StrictFloat, Field(gt=0)]
1710
+ ]
1711
+ ] = None,
1712
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1713
+ _content_type: Optional[StrictStr] = None,
1714
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1715
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1716
+ ) -> TaskMutationResponse:
1717
+ """Link An Existing Task To A New Model.
1718
+
1719
+ Submits a job to link an existing task to a new model in the project and returns a job ID. When the job finishes, it will upload a copy of the task state. Requires the project_create_model_link_task permission.
1720
+
1721
+ :param project_id: (required)
1722
+ :type project_id: str
1723
+ :param post_link_task_request: (required)
1724
+ :type post_link_task_request: PostLinkTaskRequest
1725
+ :param _request_timeout: timeout setting for this request. If one
1726
+ number provided, it will be total request
1727
+ timeout. It can also be a pair (tuple) of
1728
+ (connection, read) timeouts.
1729
+ :type _request_timeout: int, tuple(int, int), optional
1730
+ :param _request_auth: set to override the auth_settings for an a single
1731
+ request; this effectively ignores the
1732
+ authentication in the spec for a single request.
1733
+ :type _request_auth: dict, optional
1734
+ :param _content_type: force content-type for the request.
1735
+ :type _content_type: str, Optional
1736
+ :param _headers: set to override the headers for a single
1737
+ request; this effectively ignores the headers
1738
+ in the spec for a single request.
1739
+ :type _headers: dict, optional
1740
+ :param _host_index: set to override the host_index for a single
1741
+ request; this effectively ignores the host_index
1742
+ in the spec for a single request.
1743
+ :type _host_index: int, optional
1744
+ :return: Returns the result object.
1745
+ """ # noqa: E501
1746
+
1747
+ _param = self._project_create_model_link_task_serialize(
1748
+ project_id=project_id,
1749
+ post_link_task_request=post_link_task_request,
1750
+ _request_auth=_request_auth,
1751
+ _content_type=_content_type,
1752
+ _headers=_headers,
1753
+ _host_index=_host_index
1754
+ )
1755
+
1756
+ _response_types_map: Dict[str, Optional[str]] = {
1757
+ '200': "TaskMutationResponse",
1758
+ '500': "InternalServerError",
1759
+ '400': "BadRequestError",
1760
+ '404': "NotFoundError",
1761
+ '422': "HTTPValidationError",
1762
+ }
1763
+ response_data = self.api_client.call_api(
1764
+ *_param,
1765
+ _request_timeout=_request_timeout
1766
+ )
1767
+ response_data.read()
1768
+ return self.api_client.response_deserialize(
1769
+ response_data=response_data,
1770
+ response_types_map=_response_types_map,
1771
+ ).data
1772
+
1773
+
1774
+ @validate_call
1775
+ def project_create_model_link_task_with_http_info(
1776
+ self,
1777
+ project_id: StrictStr,
1778
+ post_link_task_request: PostLinkTaskRequest,
1779
+ _request_timeout: Union[
1780
+ None,
1781
+ Annotated[StrictFloat, Field(gt=0)],
1782
+ Tuple[
1783
+ Annotated[StrictFloat, Field(gt=0)],
1784
+ Annotated[StrictFloat, Field(gt=0)]
1785
+ ]
1786
+ ] = None,
1787
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1788
+ _content_type: Optional[StrictStr] = None,
1789
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1790
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1791
+ ) -> ApiResponse[TaskMutationResponse]:
1792
+ """Link An Existing Task To A New Model.
1793
+
1794
+ Submits a job to link an existing task to a new model in the project and returns a job ID. When the job finishes, it will upload a copy of the task state. Requires the project_create_model_link_task permission.
1795
+
1796
+ :param project_id: (required)
1797
+ :type project_id: str
1798
+ :param post_link_task_request: (required)
1799
+ :type post_link_task_request: PostLinkTaskRequest
1800
+ :param _request_timeout: timeout setting for this request. If one
1801
+ number provided, it will be total request
1802
+ timeout. It can also be a pair (tuple) of
1803
+ (connection, read) timeouts.
1804
+ :type _request_timeout: int, tuple(int, int), optional
1805
+ :param _request_auth: set to override the auth_settings for an a single
1806
+ request; this effectively ignores the
1807
+ authentication in the spec for a single request.
1808
+ :type _request_auth: dict, optional
1809
+ :param _content_type: force content-type for the request.
1810
+ :type _content_type: str, Optional
1811
+ :param _headers: set to override the headers for a single
1812
+ request; this effectively ignores the headers
1813
+ in the spec for a single request.
1814
+ :type _headers: dict, optional
1815
+ :param _host_index: set to override the host_index for a single
1816
+ request; this effectively ignores the host_index
1817
+ in the spec for a single request.
1818
+ :type _host_index: int, optional
1819
+ :return: Returns the result object.
1820
+ """ # noqa: E501
1821
+
1822
+ _param = self._project_create_model_link_task_serialize(
1823
+ project_id=project_id,
1824
+ post_link_task_request=post_link_task_request,
1825
+ _request_auth=_request_auth,
1826
+ _content_type=_content_type,
1827
+ _headers=_headers,
1828
+ _host_index=_host_index
1829
+ )
1830
+
1831
+ _response_types_map: Dict[str, Optional[str]] = {
1832
+ '200': "TaskMutationResponse",
1833
+ '500': "InternalServerError",
1834
+ '400': "BadRequestError",
1835
+ '404': "NotFoundError",
1836
+ '422': "HTTPValidationError",
1837
+ }
1838
+ response_data = self.api_client.call_api(
1839
+ *_param,
1840
+ _request_timeout=_request_timeout
1841
+ )
1842
+ response_data.read()
1843
+ return self.api_client.response_deserialize(
1844
+ response_data=response_data,
1845
+ response_types_map=_response_types_map,
1846
+ )
1847
+
1848
+
1849
+ @validate_call
1850
+ def project_create_model_link_task_without_preload_content(
1851
+ self,
1852
+ project_id: StrictStr,
1853
+ post_link_task_request: PostLinkTaskRequest,
1854
+ _request_timeout: Union[
1855
+ None,
1856
+ Annotated[StrictFloat, Field(gt=0)],
1857
+ Tuple[
1858
+ Annotated[StrictFloat, Field(gt=0)],
1859
+ Annotated[StrictFloat, Field(gt=0)]
1860
+ ]
1861
+ ] = None,
1862
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1863
+ _content_type: Optional[StrictStr] = None,
1864
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1865
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1866
+ ) -> RESTResponseType:
1867
+ """Link An Existing Task To A New Model.
1868
+
1869
+ Submits a job to link an existing task to a new model in the project and returns a job ID. When the job finishes, it will upload a copy of the task state. Requires the project_create_model_link_task permission.
1870
+
1871
+ :param project_id: (required)
1872
+ :type project_id: str
1873
+ :param post_link_task_request: (required)
1874
+ :type post_link_task_request: PostLinkTaskRequest
1875
+ :param _request_timeout: timeout setting for this request. If one
1876
+ number provided, it will be total request
1877
+ timeout. It can also be a pair (tuple) of
1878
+ (connection, read) timeouts.
1879
+ :type _request_timeout: int, tuple(int, int), optional
1880
+ :param _request_auth: set to override the auth_settings for an a single
1881
+ request; this effectively ignores the
1882
+ authentication in the spec for a single request.
1883
+ :type _request_auth: dict, optional
1884
+ :param _content_type: force content-type for the request.
1885
+ :type _content_type: str, Optional
1886
+ :param _headers: set to override the headers for a single
1887
+ request; this effectively ignores the headers
1888
+ in the spec for a single request.
1889
+ :type _headers: dict, optional
1890
+ :param _host_index: set to override the host_index for a single
1891
+ request; this effectively ignores the host_index
1892
+ in the spec for a single request.
1893
+ :type _host_index: int, optional
1894
+ :return: Returns the result object.
1895
+ """ # noqa: E501
1896
+
1897
+ _param = self._project_create_model_link_task_serialize(
1898
+ project_id=project_id,
1899
+ post_link_task_request=post_link_task_request,
1900
+ _request_auth=_request_auth,
1901
+ _content_type=_content_type,
1902
+ _headers=_headers,
1903
+ _host_index=_host_index
1904
+ )
1905
+
1906
+ _response_types_map: Dict[str, Optional[str]] = {
1907
+ '200': "TaskMutationResponse",
1908
+ '500': "InternalServerError",
1909
+ '400': "BadRequestError",
1910
+ '404': "NotFoundError",
1911
+ '422': "HTTPValidationError",
1912
+ }
1913
+ response_data = self.api_client.call_api(
1914
+ *_param,
1915
+ _request_timeout=_request_timeout
1916
+ )
1917
+ return response_data.response
1918
+
1919
+
1920
+ def _project_create_model_link_task_serialize(
1921
+ self,
1922
+ project_id,
1923
+ post_link_task_request,
1924
+ _request_auth,
1925
+ _content_type,
1926
+ _headers,
1927
+ _host_index,
1928
+ ) -> RequestSerialized:
1929
+
1930
+ _host = None
1931
+
1932
+ _collection_formats: Dict[str, str] = {
1933
+ }
1934
+
1935
+ _path_params: Dict[str, str] = {}
1936
+ _query_params: List[Tuple[str, str]] = []
1937
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1938
+ _form_params: List[Tuple[str, str]] = []
1939
+ _files: Dict[
1940
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1941
+ ] = {}
1942
+ _body_params: Optional[bytes] = None
1943
+
1944
+ # process the path parameters
1945
+ if project_id is not None:
1946
+ _path_params['project_id'] = project_id
1947
+ # process the query parameters
1948
+ # process the header parameters
1949
+ # process the form parameters
1950
+ # process the body parameter
1951
+ if post_link_task_request is not None:
1952
+ _body_params = post_link_task_request
1953
+
1954
+
1955
+ # set the HTTP header `Accept`
1956
+ if 'Accept' not in _header_params:
1957
+ _header_params['Accept'] = self.api_client.select_header_accept(
1958
+ [
1959
+ 'application/json'
1960
+ ]
1961
+ )
1962
+
1963
+ # set the HTTP header `Content-Type`
1964
+ if _content_type:
1965
+ _header_params['Content-Type'] = _content_type
1966
+ else:
1967
+ _default_content_type = (
1968
+ self.api_client.select_header_content_type(
1969
+ [
1970
+ 'application/json'
1971
+ ]
1972
+ )
1973
+ )
1974
+ if _default_content_type is not None:
1975
+ _header_params['Content-Type'] = _default_content_type
1976
+
1977
+ # authentication setting
1978
+ _auth_settings: List[str] = [
1979
+ 'OAuth2AuthorizationCode'
1980
+ ]
1981
+
1982
+ return self.api_client.param_serialize(
1983
+ method='POST',
1984
+ resource_path='/api/v1/projects/{project_id}/link_task',
1985
+ path_params=_path_params,
1986
+ query_params=_query_params,
1987
+ header_params=_header_params,
1988
+ body=_body_params,
1989
+ post_params=_form_params,
1990
+ files=_files,
1991
+ auth_settings=_auth_settings,
1992
+ collection_formats=_collection_formats,
1993
+ _host=_host,
1994
+ _request_auth=_request_auth
1995
+ )
1996
+
1997
+
1998
+
1999
+
2000
+ @validate_call
2001
+ def project_create_model_task(
2002
+ self,
2003
+ project_id: StrictStr,
2004
+ post_task_request: PostTaskRequest,
2005
+ _request_timeout: Union[
2006
+ None,
2007
+ Annotated[StrictFloat, Field(gt=0)],
2008
+ Tuple[
2009
+ Annotated[StrictFloat, Field(gt=0)],
2010
+ Annotated[StrictFloat, Field(gt=0)]
2011
+ ]
2012
+ ] = None,
2013
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2014
+ _content_type: Optional[StrictStr] = None,
2015
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2016
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2017
+ ) -> TaskMutationResponse:
2018
+ """Create A Task.
2019
+
2020
+ Submits a job to create a task in the project and returns a job ID. When the job finishes, it will upload a copy of the task state. Requires the project_create_model_task permission.
2021
+
2022
+ :param project_id: (required)
2023
+ :type project_id: str
2024
+ :param post_task_request: (required)
2025
+ :type post_task_request: PostTaskRequest
2026
+ :param _request_timeout: timeout setting for this request. If one
2027
+ number provided, it will be total request
2028
+ timeout. It can also be a pair (tuple) of
2029
+ (connection, read) timeouts.
2030
+ :type _request_timeout: int, tuple(int, int), optional
2031
+ :param _request_auth: set to override the auth_settings for an a single
2032
+ request; this effectively ignores the
2033
+ authentication in the spec for a single request.
2034
+ :type _request_auth: dict, optional
2035
+ :param _content_type: force content-type for the request.
2036
+ :type _content_type: str, Optional
2037
+ :param _headers: set to override the headers for a single
2038
+ request; this effectively ignores the headers
2039
+ in the spec for a single request.
2040
+ :type _headers: dict, optional
2041
+ :param _host_index: set to override the host_index for a single
2042
+ request; this effectively ignores the host_index
2043
+ in the spec for a single request.
2044
+ :type _host_index: int, optional
2045
+ :return: Returns the result object.
2046
+ """ # noqa: E501
2047
+
2048
+ _param = self._project_create_model_task_serialize(
2049
+ project_id=project_id,
2050
+ post_task_request=post_task_request,
2051
+ _request_auth=_request_auth,
2052
+ _content_type=_content_type,
2053
+ _headers=_headers,
2054
+ _host_index=_host_index
2055
+ )
2056
+
2057
+ _response_types_map: Dict[str, Optional[str]] = {
2058
+ '200': "TaskMutationResponse",
2059
+ '500': "InternalServerError",
2060
+ '400': "BadRequestError",
2061
+ '404': "NotFoundError",
2062
+ '422': "HTTPValidationError",
2063
+ }
2064
+ response_data = self.api_client.call_api(
2065
+ *_param,
2066
+ _request_timeout=_request_timeout
2067
+ )
2068
+ response_data.read()
2069
+ return self.api_client.response_deserialize(
2070
+ response_data=response_data,
2071
+ response_types_map=_response_types_map,
2072
+ ).data
2073
+
2074
+
2075
+ @validate_call
2076
+ def project_create_model_task_with_http_info(
2077
+ self,
2078
+ project_id: StrictStr,
2079
+ post_task_request: PostTaskRequest,
2080
+ _request_timeout: Union[
2081
+ None,
2082
+ Annotated[StrictFloat, Field(gt=0)],
2083
+ Tuple[
2084
+ Annotated[StrictFloat, Field(gt=0)],
2085
+ Annotated[StrictFloat, Field(gt=0)]
2086
+ ]
2087
+ ] = None,
2088
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2089
+ _content_type: Optional[StrictStr] = None,
2090
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2091
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2092
+ ) -> ApiResponse[TaskMutationResponse]:
2093
+ """Create A Task.
2094
+
2095
+ Submits a job to create a task in the project and returns a job ID. When the job finishes, it will upload a copy of the task state. Requires the project_create_model_task permission.
2096
+
2097
+ :param project_id: (required)
2098
+ :type project_id: str
2099
+ :param post_task_request: (required)
2100
+ :type post_task_request: PostTaskRequest
2101
+ :param _request_timeout: timeout setting for this request. If one
2102
+ number provided, it will be total request
2103
+ timeout. It can also be a pair (tuple) of
2104
+ (connection, read) timeouts.
2105
+ :type _request_timeout: int, tuple(int, int), optional
2106
+ :param _request_auth: set to override the auth_settings for an a single
2107
+ request; this effectively ignores the
2108
+ authentication in the spec for a single request.
2109
+ :type _request_auth: dict, optional
2110
+ :param _content_type: force content-type for the request.
2111
+ :type _content_type: str, Optional
2112
+ :param _headers: set to override the headers for a single
2113
+ request; this effectively ignores the headers
2114
+ in the spec for a single request.
2115
+ :type _headers: dict, optional
2116
+ :param _host_index: set to override the host_index for a single
2117
+ request; this effectively ignores the host_index
2118
+ in the spec for a single request.
2119
+ :type _host_index: int, optional
2120
+ :return: Returns the result object.
2121
+ """ # noqa: E501
2122
+
2123
+ _param = self._project_create_model_task_serialize(
2124
+ project_id=project_id,
2125
+ post_task_request=post_task_request,
2126
+ _request_auth=_request_auth,
2127
+ _content_type=_content_type,
2128
+ _headers=_headers,
2129
+ _host_index=_host_index
2130
+ )
2131
+
2132
+ _response_types_map: Dict[str, Optional[str]] = {
2133
+ '200': "TaskMutationResponse",
2134
+ '500': "InternalServerError",
2135
+ '400': "BadRequestError",
2136
+ '404': "NotFoundError",
2137
+ '422': "HTTPValidationError",
2138
+ }
2139
+ response_data = self.api_client.call_api(
2140
+ *_param,
2141
+ _request_timeout=_request_timeout
2142
+ )
2143
+ response_data.read()
2144
+ return self.api_client.response_deserialize(
2145
+ response_data=response_data,
2146
+ response_types_map=_response_types_map,
2147
+ )
2148
+
2149
+
2150
+ @validate_call
2151
+ def project_create_model_task_without_preload_content(
2152
+ self,
2153
+ project_id: StrictStr,
2154
+ post_task_request: PostTaskRequest,
2155
+ _request_timeout: Union[
2156
+ None,
2157
+ Annotated[StrictFloat, Field(gt=0)],
2158
+ Tuple[
2159
+ Annotated[StrictFloat, Field(gt=0)],
2160
+ Annotated[StrictFloat, Field(gt=0)]
2161
+ ]
2162
+ ] = None,
2163
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2164
+ _content_type: Optional[StrictStr] = None,
2165
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2166
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2167
+ ) -> RESTResponseType:
2168
+ """Create A Task.
2169
+
2170
+ Submits a job to create a task in the project and returns a job ID. When the job finishes, it will upload a copy of the task state. Requires the project_create_model_task permission.
2171
+
2172
+ :param project_id: (required)
2173
+ :type project_id: str
2174
+ :param post_task_request: (required)
2175
+ :type post_task_request: PostTaskRequest
2176
+ :param _request_timeout: timeout setting for this request. If one
2177
+ number provided, it will be total request
2178
+ timeout. It can also be a pair (tuple) of
2179
+ (connection, read) timeouts.
2180
+ :type _request_timeout: int, tuple(int, int), optional
2181
+ :param _request_auth: set to override the auth_settings for an a single
2182
+ request; this effectively ignores the
2183
+ authentication in the spec for a single request.
2184
+ :type _request_auth: dict, optional
2185
+ :param _content_type: force content-type for the request.
2186
+ :type _content_type: str, Optional
2187
+ :param _headers: set to override the headers for a single
2188
+ request; this effectively ignores the headers
2189
+ in the spec for a single request.
2190
+ :type _headers: dict, optional
2191
+ :param _host_index: set to override the host_index for a single
2192
+ request; this effectively ignores the host_index
2193
+ in the spec for a single request.
2194
+ :type _host_index: int, optional
2195
+ :return: Returns the result object.
2196
+ """ # noqa: E501
2197
+
2198
+ _param = self._project_create_model_task_serialize(
2199
+ project_id=project_id,
2200
+ post_task_request=post_task_request,
2201
+ _request_auth=_request_auth,
2202
+ _content_type=_content_type,
2203
+ _headers=_headers,
2204
+ _host_index=_host_index
2205
+ )
2206
+
2207
+ _response_types_map: Dict[str, Optional[str]] = {
2208
+ '200': "TaskMutationResponse",
2209
+ '500': "InternalServerError",
2210
+ '400': "BadRequestError",
2211
+ '404': "NotFoundError",
2212
+ '422': "HTTPValidationError",
2213
+ }
2214
+ response_data = self.api_client.call_api(
2215
+ *_param,
2216
+ _request_timeout=_request_timeout
2217
+ )
2218
+ return response_data.response
2219
+
2220
+
2221
+ def _project_create_model_task_serialize(
2222
+ self,
2223
+ project_id,
2224
+ post_task_request,
2225
+ _request_auth,
2226
+ _content_type,
2227
+ _headers,
2228
+ _host_index,
2229
+ ) -> RequestSerialized:
2230
+
2231
+ _host = None
2232
+
2233
+ _collection_formats: Dict[str, str] = {
2234
+ }
2235
+
2236
+ _path_params: Dict[str, str] = {}
2237
+ _query_params: List[Tuple[str, str]] = []
2238
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2239
+ _form_params: List[Tuple[str, str]] = []
2240
+ _files: Dict[
2241
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2242
+ ] = {}
2243
+ _body_params: Optional[bytes] = None
2244
+
2245
+ # process the path parameters
2246
+ if project_id is not None:
2247
+ _path_params['project_id'] = project_id
2248
+ # process the query parameters
2249
+ # process the header parameters
2250
+ # process the form parameters
2251
+ # process the body parameter
2252
+ if post_task_request is not None:
2253
+ _body_params = post_task_request
2254
+
2255
+
2256
+ # set the HTTP header `Accept`
2257
+ if 'Accept' not in _header_params:
2258
+ _header_params['Accept'] = self.api_client.select_header_accept(
2259
+ [
2260
+ 'application/json'
2261
+ ]
2262
+ )
2263
+
2264
+ # set the HTTP header `Content-Type`
2265
+ if _content_type:
2266
+ _header_params['Content-Type'] = _content_type
2267
+ else:
2268
+ _default_content_type = (
2269
+ self.api_client.select_header_content_type(
2270
+ [
2271
+ 'application/json'
2272
+ ]
2273
+ )
2274
+ )
2275
+ if _default_content_type is not None:
2276
+ _header_params['Content-Type'] = _default_content_type
2277
+
2278
+ # authentication setting
2279
+ _auth_settings: List[str] = [
2280
+ 'OAuth2AuthorizationCode'
2281
+ ]
2282
+
2283
+ return self.api_client.param_serialize(
2284
+ method='POST',
2285
+ resource_path='/api/v1/projects/{project_id}/tasks',
2286
+ path_params=_path_params,
2287
+ query_params=_query_params,
2288
+ header_params=_header_params,
2289
+ body=_body_params,
2290
+ post_params=_form_params,
2291
+ files=_files,
2292
+ auth_settings=_auth_settings,
2293
+ collection_formats=_collection_formats,
2294
+ _host=_host,
2295
+ _request_auth=_request_auth
2296
+ )
2297
+
2298
+
2299
+
2300
+
2301
+ @validate_call
2302
+ def put_task_connection_info(
2303
+ self,
2304
+ model_id: StrictStr,
2305
+ put_task_connection_info: PutTaskConnectionInfo,
2306
+ _request_timeout: Union[
2307
+ None,
2308
+ Annotated[StrictFloat, Field(gt=0)],
2309
+ Tuple[
2310
+ Annotated[StrictFloat, Field(gt=0)],
2311
+ Annotated[StrictFloat, Field(gt=0)]
2312
+ ]
2313
+ ] = None,
2314
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2315
+ _content_type: Optional[StrictStr] = None,
2316
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2317
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2318
+ ) -> TaskConnectionInfo:
2319
+ """Upload Task State
2320
+
2321
+ Upload the task connection information. Requires model_task_put_connection_info permission.
2322
+
2323
+ :param model_id: (required)
2324
+ :type model_id: str
2325
+ :param put_task_connection_info: (required)
2326
+ :type put_task_connection_info: PutTaskConnectionInfo
2327
+ :param _request_timeout: timeout setting for this request. If one
2328
+ number provided, it will be total request
2329
+ timeout. It can also be a pair (tuple) of
2330
+ (connection, read) timeouts.
2331
+ :type _request_timeout: int, tuple(int, int), optional
2332
+ :param _request_auth: set to override the auth_settings for an a single
2333
+ request; this effectively ignores the
2334
+ authentication in the spec for a single request.
2335
+ :type _request_auth: dict, optional
2336
+ :param _content_type: force content-type for the request.
2337
+ :type _content_type: str, Optional
2338
+ :param _headers: set to override the headers for a single
2339
+ request; this effectively ignores the headers
2340
+ in the spec for a single request.
2341
+ :type _headers: dict, optional
2342
+ :param _host_index: set to override the host_index for a single
2343
+ request; this effectively ignores the host_index
2344
+ in the spec for a single request.
2345
+ :type _host_index: int, optional
2346
+ :return: Returns the result object.
2347
+ """ # noqa: E501
2348
+
2349
+ _param = self._put_task_connection_info_serialize(
2350
+ model_id=model_id,
2351
+ put_task_connection_info=put_task_connection_info,
2352
+ _request_auth=_request_auth,
2353
+ _content_type=_content_type,
2354
+ _headers=_headers,
2355
+ _host_index=_host_index
2356
+ )
2357
+
2358
+ _response_types_map: Dict[str, Optional[str]] = {
2359
+ '200': "TaskConnectionInfo",
2360
+ '500': "InternalServerError",
2361
+ '404': "NotFoundError",
2362
+ '400': "BadRequestError",
2363
+ '422': "HTTPValidationError",
2364
+ }
2365
+ response_data = self.api_client.call_api(
2366
+ *_param,
2367
+ _request_timeout=_request_timeout
2368
+ )
2369
+ response_data.read()
2370
+ return self.api_client.response_deserialize(
2371
+ response_data=response_data,
2372
+ response_types_map=_response_types_map,
2373
+ ).data
2374
+
2375
+
2376
+ @validate_call
2377
+ def put_task_connection_info_with_http_info(
2378
+ self,
2379
+ model_id: StrictStr,
2380
+ put_task_connection_info: PutTaskConnectionInfo,
2381
+ _request_timeout: Union[
2382
+ None,
2383
+ Annotated[StrictFloat, Field(gt=0)],
2384
+ Tuple[
2385
+ Annotated[StrictFloat, Field(gt=0)],
2386
+ Annotated[StrictFloat, Field(gt=0)]
2387
+ ]
2388
+ ] = None,
2389
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2390
+ _content_type: Optional[StrictStr] = None,
2391
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2392
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2393
+ ) -> ApiResponse[TaskConnectionInfo]:
2394
+ """Upload Task State
2395
+
2396
+ Upload the task connection information. Requires model_task_put_connection_info permission.
2397
+
2398
+ :param model_id: (required)
2399
+ :type model_id: str
2400
+ :param put_task_connection_info: (required)
2401
+ :type put_task_connection_info: PutTaskConnectionInfo
2402
+ :param _request_timeout: timeout setting for this request. If one
2403
+ number provided, it will be total request
2404
+ timeout. It can also be a pair (tuple) of
2405
+ (connection, read) timeouts.
2406
+ :type _request_timeout: int, tuple(int, int), optional
2407
+ :param _request_auth: set to override the auth_settings for an a single
2408
+ request; this effectively ignores the
2409
+ authentication in the spec for a single request.
2410
+ :type _request_auth: dict, optional
2411
+ :param _content_type: force content-type for the request.
2412
+ :type _content_type: str, Optional
2413
+ :param _headers: set to override the headers for a single
2414
+ request; this effectively ignores the headers
2415
+ in the spec for a single request.
2416
+ :type _headers: dict, optional
2417
+ :param _host_index: set to override the host_index for a single
2418
+ request; this effectively ignores the host_index
2419
+ in the spec for a single request.
2420
+ :type _host_index: int, optional
2421
+ :return: Returns the result object.
2422
+ """ # noqa: E501
2423
+
2424
+ _param = self._put_task_connection_info_serialize(
2425
+ model_id=model_id,
2426
+ put_task_connection_info=put_task_connection_info,
2427
+ _request_auth=_request_auth,
2428
+ _content_type=_content_type,
2429
+ _headers=_headers,
2430
+ _host_index=_host_index
2431
+ )
2432
+
2433
+ _response_types_map: Dict[str, Optional[str]] = {
2434
+ '200': "TaskConnectionInfo",
2435
+ '500': "InternalServerError",
2436
+ '404': "NotFoundError",
2437
+ '400': "BadRequestError",
2438
+ '422': "HTTPValidationError",
2439
+ }
2440
+ response_data = self.api_client.call_api(
2441
+ *_param,
2442
+ _request_timeout=_request_timeout
2443
+ )
2444
+ response_data.read()
2445
+ return self.api_client.response_deserialize(
2446
+ response_data=response_data,
2447
+ response_types_map=_response_types_map,
2448
+ )
2449
+
2450
+
2451
+ @validate_call
2452
+ def put_task_connection_info_without_preload_content(
2453
+ self,
2454
+ model_id: StrictStr,
2455
+ put_task_connection_info: PutTaskConnectionInfo,
2456
+ _request_timeout: Union[
2457
+ None,
2458
+ Annotated[StrictFloat, Field(gt=0)],
2459
+ Tuple[
2460
+ Annotated[StrictFloat, Field(gt=0)],
2461
+ Annotated[StrictFloat, Field(gt=0)]
2462
+ ]
2463
+ ] = None,
2464
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2465
+ _content_type: Optional[StrictStr] = None,
2466
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2467
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2468
+ ) -> RESTResponseType:
2469
+ """Upload Task State
2470
+
2471
+ Upload the task connection information. Requires model_task_put_connection_info permission.
2472
+
2473
+ :param model_id: (required)
2474
+ :type model_id: str
2475
+ :param put_task_connection_info: (required)
2476
+ :type put_task_connection_info: PutTaskConnectionInfo
2477
+ :param _request_timeout: timeout setting for this request. If one
2478
+ number provided, it will be total request
2479
+ timeout. It can also be a pair (tuple) of
2480
+ (connection, read) timeouts.
2481
+ :type _request_timeout: int, tuple(int, int), optional
2482
+ :param _request_auth: set to override the auth_settings for an a single
2483
+ request; this effectively ignores the
2484
+ authentication in the spec for a single request.
2485
+ :type _request_auth: dict, optional
2486
+ :param _content_type: force content-type for the request.
2487
+ :type _content_type: str, Optional
2488
+ :param _headers: set to override the headers for a single
2489
+ request; this effectively ignores the headers
2490
+ in the spec for a single request.
2491
+ :type _headers: dict, optional
2492
+ :param _host_index: set to override the host_index for a single
2493
+ request; this effectively ignores the host_index
2494
+ in the spec for a single request.
2495
+ :type _host_index: int, optional
2496
+ :return: Returns the result object.
2497
+ """ # noqa: E501
2498
+
2499
+ _param = self._put_task_connection_info_serialize(
2500
+ model_id=model_id,
2501
+ put_task_connection_info=put_task_connection_info,
2502
+ _request_auth=_request_auth,
2503
+ _content_type=_content_type,
2504
+ _headers=_headers,
2505
+ _host_index=_host_index
2506
+ )
2507
+
2508
+ _response_types_map: Dict[str, Optional[str]] = {
2509
+ '200': "TaskConnectionInfo",
2510
+ '500': "InternalServerError",
2511
+ '404': "NotFoundError",
2512
+ '400': "BadRequestError",
2513
+ '422': "HTTPValidationError",
2514
+ }
2515
+ response_data = self.api_client.call_api(
2516
+ *_param,
2517
+ _request_timeout=_request_timeout
2518
+ )
2519
+ return response_data.response
2520
+
2521
+
2522
+ def _put_task_connection_info_serialize(
2523
+ self,
2524
+ model_id,
2525
+ put_task_connection_info,
2526
+ _request_auth,
2527
+ _content_type,
2528
+ _headers,
2529
+ _host_index,
2530
+ ) -> RequestSerialized:
2531
+
2532
+ _host = None
2533
+
2534
+ _collection_formats: Dict[str, str] = {
2535
+ }
2536
+
2537
+ _path_params: Dict[str, str] = {}
2538
+ _query_params: List[Tuple[str, str]] = []
2539
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2540
+ _form_params: List[Tuple[str, str]] = []
2541
+ _files: Dict[
2542
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2543
+ ] = {}
2544
+ _body_params: Optional[bytes] = None
2545
+
2546
+ # process the path parameters
2547
+ if model_id is not None:
2548
+ _path_params['model_id'] = model_id
2549
+ # process the query parameters
2550
+ # process the header parameters
2551
+ # process the form parameters
2552
+ # process the body parameter
2553
+ if put_task_connection_info is not None:
2554
+ _body_params = put_task_connection_info
2555
+
2556
+
2557
+ # set the HTTP header `Accept`
2558
+ if 'Accept' not in _header_params:
2559
+ _header_params['Accept'] = self.api_client.select_header_accept(
2560
+ [
2561
+ 'application/json'
2562
+ ]
2563
+ )
2564
+
2565
+ # set the HTTP header `Content-Type`
2566
+ if _content_type:
2567
+ _header_params['Content-Type'] = _content_type
2568
+ else:
2569
+ _default_content_type = (
2570
+ self.api_client.select_header_content_type(
2571
+ [
2572
+ 'application/json'
2573
+ ]
2574
+ )
2575
+ )
2576
+ if _default_content_type is not None:
2577
+ _header_params['Content-Type'] = _default_content_type
2578
+
2579
+ # authentication setting
2580
+ _auth_settings: List[str] = [
2581
+ 'OAuth2AuthorizationCode'
2582
+ ]
2583
+
2584
+ return self.api_client.param_serialize(
2585
+ method='PUT',
2586
+ resource_path='/api/v1/models/{model_id}/task/connection_info',
2587
+ path_params=_path_params,
2588
+ query_params=_query_params,
2589
+ header_params=_header_params,
2590
+ body=_body_params,
2591
+ post_params=_form_params,
2592
+ files=_files,
2593
+ auth_settings=_auth_settings,
2594
+ collection_formats=_collection_formats,
2595
+ _host=_host,
2596
+ _request_auth=_request_auth
2597
+ )
2598
+
2599
+
2600
+
2601
+
2602
+ @validate_call
2603
+ def put_task_state_cache(
2604
+ self,
2605
+ model_id: StrictStr,
2606
+ put_task_state_cache_request: PutTaskStateCacheRequest,
2607
+ _request_timeout: Union[
2608
+ None,
2609
+ Annotated[StrictFloat, Field(gt=0)],
2610
+ Tuple[
2611
+ Annotated[StrictFloat, Field(gt=0)],
2612
+ Annotated[StrictFloat, Field(gt=0)]
2613
+ ]
2614
+ ] = None,
2615
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2616
+ _content_type: Optional[StrictStr] = None,
2617
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2618
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2619
+ ) -> None:
2620
+ """Upload Task State
2621
+
2622
+ Upload a copy of the task state to cache in the control plane. Requires model_task_put_state_cache permission.
2623
+
2624
+ :param model_id: (required)
2625
+ :type model_id: str
2626
+ :param put_task_state_cache_request: (required)
2627
+ :type put_task_state_cache_request: PutTaskStateCacheRequest
2628
+ :param _request_timeout: timeout setting for this request. If one
2629
+ number provided, it will be total request
2630
+ timeout. It can also be a pair (tuple) of
2631
+ (connection, read) timeouts.
2632
+ :type _request_timeout: int, tuple(int, int), optional
2633
+ :param _request_auth: set to override the auth_settings for an a single
2634
+ request; this effectively ignores the
2635
+ authentication in the spec for a single request.
2636
+ :type _request_auth: dict, optional
2637
+ :param _content_type: force content-type for the request.
2638
+ :type _content_type: str, Optional
2639
+ :param _headers: set to override the headers for a single
2640
+ request; this effectively ignores the headers
2641
+ in the spec for a single request.
2642
+ :type _headers: dict, optional
2643
+ :param _host_index: set to override the host_index for a single
2644
+ request; this effectively ignores the host_index
2645
+ in the spec for a single request.
2646
+ :type _host_index: int, optional
2647
+ :return: Returns the result object.
2648
+ """ # noqa: E501
2649
+
2650
+ _param = self._put_task_state_cache_serialize(
2651
+ model_id=model_id,
2652
+ put_task_state_cache_request=put_task_state_cache_request,
2653
+ _request_auth=_request_auth,
2654
+ _content_type=_content_type,
2655
+ _headers=_headers,
2656
+ _host_index=_host_index
2657
+ )
2658
+
2659
+ _response_types_map: Dict[str, Optional[str]] = {
2660
+ '204': None,
2661
+ '500': "InternalServerError",
2662
+ '404': "NotFoundError",
2663
+ '400': "BadRequestError",
2664
+ '422': "HTTPValidationError",
2665
+ }
2666
+ response_data = self.api_client.call_api(
2667
+ *_param,
2668
+ _request_timeout=_request_timeout
2669
+ )
2670
+ response_data.read()
2671
+ return self.api_client.response_deserialize(
2672
+ response_data=response_data,
2673
+ response_types_map=_response_types_map,
2674
+ ).data
2675
+
2676
+
2677
+ @validate_call
2678
+ def put_task_state_cache_with_http_info(
2679
+ self,
2680
+ model_id: StrictStr,
2681
+ put_task_state_cache_request: PutTaskStateCacheRequest,
2682
+ _request_timeout: Union[
2683
+ None,
2684
+ Annotated[StrictFloat, Field(gt=0)],
2685
+ Tuple[
2686
+ Annotated[StrictFloat, Field(gt=0)],
2687
+ Annotated[StrictFloat, Field(gt=0)]
2688
+ ]
2689
+ ] = None,
2690
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2691
+ _content_type: Optional[StrictStr] = None,
2692
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2693
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2694
+ ) -> ApiResponse[None]:
2695
+ """Upload Task State
2696
+
2697
+ Upload a copy of the task state to cache in the control plane. Requires model_task_put_state_cache permission.
2698
+
2699
+ :param model_id: (required)
2700
+ :type model_id: str
2701
+ :param put_task_state_cache_request: (required)
2702
+ :type put_task_state_cache_request: PutTaskStateCacheRequest
2703
+ :param _request_timeout: timeout setting for this request. If one
2704
+ number provided, it will be total request
2705
+ timeout. It can also be a pair (tuple) of
2706
+ (connection, read) timeouts.
2707
+ :type _request_timeout: int, tuple(int, int), optional
2708
+ :param _request_auth: set to override the auth_settings for an a single
2709
+ request; this effectively ignores the
2710
+ authentication in the spec for a single request.
2711
+ :type _request_auth: dict, optional
2712
+ :param _content_type: force content-type for the request.
2713
+ :type _content_type: str, Optional
2714
+ :param _headers: set to override the headers for a single
2715
+ request; this effectively ignores the headers
2716
+ in the spec for a single request.
2717
+ :type _headers: dict, optional
2718
+ :param _host_index: set to override the host_index for a single
2719
+ request; this effectively ignores the host_index
2720
+ in the spec for a single request.
2721
+ :type _host_index: int, optional
2722
+ :return: Returns the result object.
2723
+ """ # noqa: E501
2724
+
2725
+ _param = self._put_task_state_cache_serialize(
2726
+ model_id=model_id,
2727
+ put_task_state_cache_request=put_task_state_cache_request,
2728
+ _request_auth=_request_auth,
2729
+ _content_type=_content_type,
2730
+ _headers=_headers,
2731
+ _host_index=_host_index
2732
+ )
2733
+
2734
+ _response_types_map: Dict[str, Optional[str]] = {
2735
+ '204': None,
2736
+ '500': "InternalServerError",
2737
+ '404': "NotFoundError",
2738
+ '400': "BadRequestError",
2739
+ '422': "HTTPValidationError",
2740
+ }
2741
+ response_data = self.api_client.call_api(
2742
+ *_param,
2743
+ _request_timeout=_request_timeout
2744
+ )
2745
+ response_data.read()
2746
+ return self.api_client.response_deserialize(
2747
+ response_data=response_data,
2748
+ response_types_map=_response_types_map,
2749
+ )
2750
+
2751
+
2752
+ @validate_call
2753
+ def put_task_state_cache_without_preload_content(
2754
+ self,
2755
+ model_id: StrictStr,
2756
+ put_task_state_cache_request: PutTaskStateCacheRequest,
2757
+ _request_timeout: Union[
2758
+ None,
2759
+ Annotated[StrictFloat, Field(gt=0)],
2760
+ Tuple[
2761
+ Annotated[StrictFloat, Field(gt=0)],
2762
+ Annotated[StrictFloat, Field(gt=0)]
2763
+ ]
2764
+ ] = None,
2765
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2766
+ _content_type: Optional[StrictStr] = None,
2767
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2768
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2769
+ ) -> RESTResponseType:
2770
+ """Upload Task State
2771
+
2772
+ Upload a copy of the task state to cache in the control plane. Requires model_task_put_state_cache permission.
2773
+
2774
+ :param model_id: (required)
2775
+ :type model_id: str
2776
+ :param put_task_state_cache_request: (required)
2777
+ :type put_task_state_cache_request: PutTaskStateCacheRequest
2778
+ :param _request_timeout: timeout setting for this request. If one
2779
+ number provided, it will be total request
2780
+ timeout. It can also be a pair (tuple) of
2781
+ (connection, read) timeouts.
2782
+ :type _request_timeout: int, tuple(int, int), optional
2783
+ :param _request_auth: set to override the auth_settings for an a single
2784
+ request; this effectively ignores the
2785
+ authentication in the spec for a single request.
2786
+ :type _request_auth: dict, optional
2787
+ :param _content_type: force content-type for the request.
2788
+ :type _content_type: str, Optional
2789
+ :param _headers: set to override the headers for a single
2790
+ request; this effectively ignores the headers
2791
+ in the spec for a single request.
2792
+ :type _headers: dict, optional
2793
+ :param _host_index: set to override the host_index for a single
2794
+ request; this effectively ignores the host_index
2795
+ in the spec for a single request.
2796
+ :type _host_index: int, optional
2797
+ :return: Returns the result object.
2798
+ """ # noqa: E501
2799
+
2800
+ _param = self._put_task_state_cache_serialize(
2801
+ model_id=model_id,
2802
+ put_task_state_cache_request=put_task_state_cache_request,
2803
+ _request_auth=_request_auth,
2804
+ _content_type=_content_type,
2805
+ _headers=_headers,
2806
+ _host_index=_host_index
2807
+ )
2808
+
2809
+ _response_types_map: Dict[str, Optional[str]] = {
2810
+ '204': None,
2811
+ '500': "InternalServerError",
2812
+ '404': "NotFoundError",
2813
+ '400': "BadRequestError",
2814
+ '422': "HTTPValidationError",
2815
+ }
2816
+ response_data = self.api_client.call_api(
2817
+ *_param,
2818
+ _request_timeout=_request_timeout
2819
+ )
2820
+ return response_data.response
2821
+
2822
+
2823
+ def _put_task_state_cache_serialize(
2824
+ self,
2825
+ model_id,
2826
+ put_task_state_cache_request,
2827
+ _request_auth,
2828
+ _content_type,
2829
+ _headers,
2830
+ _host_index,
2831
+ ) -> RequestSerialized:
2832
+
2833
+ _host = None
2834
+
2835
+ _collection_formats: Dict[str, str] = {
2836
+ }
2837
+
2838
+ _path_params: Dict[str, str] = {}
2839
+ _query_params: List[Tuple[str, str]] = []
2840
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2841
+ _form_params: List[Tuple[str, str]] = []
2842
+ _files: Dict[
2843
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2844
+ ] = {}
2845
+ _body_params: Optional[bytes] = None
2846
+
2847
+ # process the path parameters
2848
+ if model_id is not None:
2849
+ _path_params['model_id'] = model_id
2850
+ # process the query parameters
2851
+ # process the header parameters
2852
+ # process the form parameters
2853
+ # process the body parameter
2854
+ if put_task_state_cache_request is not None:
2855
+ _body_params = put_task_state_cache_request
2856
+
2857
+
2858
+ # set the HTTP header `Accept`
2859
+ if 'Accept' not in _header_params:
2860
+ _header_params['Accept'] = self.api_client.select_header_accept(
2861
+ [
2862
+ 'application/json'
2863
+ ]
2864
+ )
2865
+
2866
+ # set the HTTP header `Content-Type`
2867
+ if _content_type:
2868
+ _header_params['Content-Type'] = _content_type
2869
+ else:
2870
+ _default_content_type = (
2871
+ self.api_client.select_header_content_type(
2872
+ [
2873
+ 'application/json'
2874
+ ]
2875
+ )
2876
+ )
2877
+ if _default_content_type is not None:
2878
+ _header_params['Content-Type'] = _default_content_type
2879
+
2880
+ # authentication setting
2881
+ _auth_settings: List[str] = [
2882
+ 'OAuth2AuthorizationCode'
2883
+ ]
2884
+
2885
+ return self.api_client.param_serialize(
2886
+ method='PUT',
2887
+ resource_path='/api/v1/models/{model_id}/task/cache',
2888
+ path_params=_path_params,
2889
+ query_params=_query_params,
2890
+ header_params=_header_params,
2891
+ body=_body_params,
2892
+ post_params=_form_params,
2893
+ files=_files,
2894
+ auth_settings=_auth_settings,
2895
+ collection_formats=_collection_formats,
2896
+ _host=_host,
2897
+ _request_auth=_request_auth
2898
+ )
2899
+
2900
+
2901
+
2902
+
2903
+ @validate_call
2904
+ def sync_task(
2905
+ self,
2906
+ model_id: StrictStr,
2907
+ _request_timeout: Union[
2908
+ None,
2909
+ Annotated[StrictFloat, Field(gt=0)],
2910
+ Tuple[
2911
+ Annotated[StrictFloat, Field(gt=0)],
2912
+ Annotated[StrictFloat, Field(gt=0)]
2913
+ ]
2914
+ ] = None,
2915
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2916
+ _content_type: Optional[StrictStr] = None,
2917
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2918
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2919
+ ) -> TaskMutationResponse:
2920
+ """Sync A Task
2921
+
2922
+ Submits a job to fetch the latest task state and returns the job ID. When the job finishes, it will upload the latest copy of the task state. Requires model_task_sync permission.
2923
+
2924
+ :param model_id: (required)
2925
+ :type model_id: str
2926
+ :param _request_timeout: timeout setting for this request. If one
2927
+ number provided, it will be total request
2928
+ timeout. It can also be a pair (tuple) of
2929
+ (connection, read) timeouts.
2930
+ :type _request_timeout: int, tuple(int, int), optional
2931
+ :param _request_auth: set to override the auth_settings for an a single
2932
+ request; this effectively ignores the
2933
+ authentication in the spec for a single request.
2934
+ :type _request_auth: dict, optional
2935
+ :param _content_type: force content-type for the request.
2936
+ :type _content_type: str, Optional
2937
+ :param _headers: set to override the headers for a single
2938
+ request; this effectively ignores the headers
2939
+ in the spec for a single request.
2940
+ :type _headers: dict, optional
2941
+ :param _host_index: set to override the host_index for a single
2942
+ request; this effectively ignores the host_index
2943
+ in the spec for a single request.
2944
+ :type _host_index: int, optional
2945
+ :return: Returns the result object.
2946
+ """ # noqa: E501
2947
+
2948
+ _param = self._sync_task_serialize(
2949
+ model_id=model_id,
2950
+ _request_auth=_request_auth,
2951
+ _content_type=_content_type,
2952
+ _headers=_headers,
2953
+ _host_index=_host_index
2954
+ )
2955
+
2956
+ _response_types_map: Dict[str, Optional[str]] = {
2957
+ '200': "TaskMutationResponse",
2958
+ '500': "InternalServerError",
2959
+ '400': "BadRequestError",
2960
+ '404': "NotFoundError",
2961
+ '422': "HTTPValidationError",
2962
+ }
2963
+ response_data = self.api_client.call_api(
2964
+ *_param,
2965
+ _request_timeout=_request_timeout
2966
+ )
2967
+ response_data.read()
2968
+ return self.api_client.response_deserialize(
2969
+ response_data=response_data,
2970
+ response_types_map=_response_types_map,
2971
+ ).data
2972
+
2973
+
2974
+ @validate_call
2975
+ def sync_task_with_http_info(
2976
+ self,
2977
+ model_id: StrictStr,
2978
+ _request_timeout: Union[
2979
+ None,
2980
+ Annotated[StrictFloat, Field(gt=0)],
2981
+ Tuple[
2982
+ Annotated[StrictFloat, Field(gt=0)],
2983
+ Annotated[StrictFloat, Field(gt=0)]
2984
+ ]
2985
+ ] = None,
2986
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2987
+ _content_type: Optional[StrictStr] = None,
2988
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2989
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2990
+ ) -> ApiResponse[TaskMutationResponse]:
2991
+ """Sync A Task
2992
+
2993
+ Submits a job to fetch the latest task state and returns the job ID. When the job finishes, it will upload the latest copy of the task state. Requires model_task_sync permission.
2994
+
2995
+ :param model_id: (required)
2996
+ :type model_id: str
2997
+ :param _request_timeout: timeout setting for this request. If one
2998
+ number provided, it will be total request
2999
+ timeout. It can also be a pair (tuple) of
3000
+ (connection, read) timeouts.
3001
+ :type _request_timeout: int, tuple(int, int), optional
3002
+ :param _request_auth: set to override the auth_settings for an a single
3003
+ request; this effectively ignores the
3004
+ authentication in the spec for a single request.
3005
+ :type _request_auth: dict, optional
3006
+ :param _content_type: force content-type for the request.
3007
+ :type _content_type: str, Optional
3008
+ :param _headers: set to override the headers for a single
3009
+ request; this effectively ignores the headers
3010
+ in the spec for a single request.
3011
+ :type _headers: dict, optional
3012
+ :param _host_index: set to override the host_index for a single
3013
+ request; this effectively ignores the host_index
3014
+ in the spec for a single request.
3015
+ :type _host_index: int, optional
3016
+ :return: Returns the result object.
3017
+ """ # noqa: E501
3018
+
3019
+ _param = self._sync_task_serialize(
3020
+ model_id=model_id,
3021
+ _request_auth=_request_auth,
3022
+ _content_type=_content_type,
3023
+ _headers=_headers,
3024
+ _host_index=_host_index
3025
+ )
3026
+
3027
+ _response_types_map: Dict[str, Optional[str]] = {
3028
+ '200': "TaskMutationResponse",
3029
+ '500': "InternalServerError",
3030
+ '400': "BadRequestError",
3031
+ '404': "NotFoundError",
3032
+ '422': "HTTPValidationError",
3033
+ }
3034
+ response_data = self.api_client.call_api(
3035
+ *_param,
3036
+ _request_timeout=_request_timeout
3037
+ )
3038
+ response_data.read()
3039
+ return self.api_client.response_deserialize(
3040
+ response_data=response_data,
3041
+ response_types_map=_response_types_map,
3042
+ )
3043
+
3044
+
3045
+ @validate_call
3046
+ def sync_task_without_preload_content(
3047
+ self,
3048
+ model_id: StrictStr,
3049
+ _request_timeout: Union[
3050
+ None,
3051
+ Annotated[StrictFloat, Field(gt=0)],
3052
+ Tuple[
3053
+ Annotated[StrictFloat, Field(gt=0)],
3054
+ Annotated[StrictFloat, Field(gt=0)]
3055
+ ]
3056
+ ] = None,
3057
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3058
+ _content_type: Optional[StrictStr] = None,
3059
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3060
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3061
+ ) -> RESTResponseType:
3062
+ """Sync A Task
3063
+
3064
+ Submits a job to fetch the latest task state and returns the job ID. When the job finishes, it will upload the latest copy of the task state. Requires model_task_sync permission.
3065
+
3066
+ :param model_id: (required)
3067
+ :type model_id: str
3068
+ :param _request_timeout: timeout setting for this request. If one
3069
+ number provided, it will be total request
3070
+ timeout. It can also be a pair (tuple) of
3071
+ (connection, read) timeouts.
3072
+ :type _request_timeout: int, tuple(int, int), optional
3073
+ :param _request_auth: set to override the auth_settings for an a single
3074
+ request; this effectively ignores the
3075
+ authentication in the spec for a single request.
3076
+ :type _request_auth: dict, optional
3077
+ :param _content_type: force content-type for the request.
3078
+ :type _content_type: str, Optional
3079
+ :param _headers: set to override the headers for a single
3080
+ request; this effectively ignores the headers
3081
+ in the spec for a single request.
3082
+ :type _headers: dict, optional
3083
+ :param _host_index: set to override the host_index for a single
3084
+ request; this effectively ignores the host_index
3085
+ in the spec for a single request.
3086
+ :type _host_index: int, optional
3087
+ :return: Returns the result object.
3088
+ """ # noqa: E501
3089
+
3090
+ _param = self._sync_task_serialize(
3091
+ model_id=model_id,
3092
+ _request_auth=_request_auth,
3093
+ _content_type=_content_type,
3094
+ _headers=_headers,
3095
+ _host_index=_host_index
3096
+ )
3097
+
3098
+ _response_types_map: Dict[str, Optional[str]] = {
3099
+ '200': "TaskMutationResponse",
3100
+ '500': "InternalServerError",
3101
+ '400': "BadRequestError",
3102
+ '404': "NotFoundError",
3103
+ '422': "HTTPValidationError",
3104
+ }
3105
+ response_data = self.api_client.call_api(
3106
+ *_param,
3107
+ _request_timeout=_request_timeout
3108
+ )
3109
+ return response_data.response
3110
+
3111
+
3112
+ def _sync_task_serialize(
3113
+ self,
3114
+ model_id,
3115
+ _request_auth,
3116
+ _content_type,
3117
+ _headers,
3118
+ _host_index,
3119
+ ) -> RequestSerialized:
3120
+
3121
+ _host = None
3122
+
3123
+ _collection_formats: Dict[str, str] = {
3124
+ }
3125
+
3126
+ _path_params: Dict[str, str] = {}
3127
+ _query_params: List[Tuple[str, str]] = []
3128
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3129
+ _form_params: List[Tuple[str, str]] = []
3130
+ _files: Dict[
3131
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3132
+ ] = {}
3133
+ _body_params: Optional[bytes] = None
3134
+
3135
+ # process the path parameters
3136
+ if model_id is not None:
3137
+ _path_params['model_id'] = model_id
3138
+ # process the query parameters
3139
+ # process the header parameters
3140
+ # process the form parameters
3141
+ # process the body parameter
3142
+
3143
+
3144
+ # set the HTTP header `Accept`
3145
+ if 'Accept' not in _header_params:
3146
+ _header_params['Accept'] = self.api_client.select_header_accept(
3147
+ [
3148
+ 'application/json'
3149
+ ]
3150
+ )
3151
+
3152
+
3153
+ # authentication setting
3154
+ _auth_settings: List[str] = [
3155
+ 'OAuth2AuthorizationCode'
3156
+ ]
3157
+
3158
+ return self.api_client.param_serialize(
3159
+ method='POST',
3160
+ resource_path='/api/v1/models/{model_id}/task/sync',
3161
+ path_params=_path_params,
3162
+ query_params=_query_params,
3163
+ header_params=_header_params,
3164
+ body=_body_params,
3165
+ post_params=_form_params,
3166
+ files=_files,
3167
+ auth_settings=_auth_settings,
3168
+ collection_formats=_collection_formats,
3169
+ _host=_host,
3170
+ _request_auth=_request_auth
3171
+ )
3172
+
3173
+