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