arthur-client 1.4.0__py3-none-any.whl → 1.4.1186__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (982) hide show
  1. arthur_client/__version__.py +1 -0
  2. arthur_client/api_bindings/__init__.py +334 -0
  3. arthur_client/api_bindings/api/__init__.py +30 -0
  4. arthur_client/api_bindings/api/alert_rules_v1_api.py +1930 -0
  5. arthur_client/api_bindings/api/alerts_v1_api.py +1042 -0
  6. arthur_client/api_bindings/api/authorization_v1_api.py +3926 -0
  7. arthur_client/api_bindings/api/connector_schemas_v1_api.py +559 -0
  8. arthur_client/api_bindings/api/connectors_v1_api.py +2165 -0
  9. arthur_client/api_bindings/api/data_plane_associations_v1_api.py +1699 -0
  10. arthur_client/api_bindings/api/data_planes_v1_api.py +1832 -0
  11. arthur_client/api_bindings/api/data_retrieval_v1_api.py +2403 -0
  12. arthur_client/api_bindings/api/datasets_v1_api.py +4346 -0
  13. arthur_client/api_bindings/api/default_api.py +284 -0
  14. arthur_client/api_bindings/api/feature_flags_v1_api.py +284 -0
  15. arthur_client/api_bindings/api/groups_v1_api.py +2803 -0
  16. arthur_client/api_bindings/api/jobs_v1_api.py +3809 -0
  17. arthur_client/api_bindings/api/metric_functions_v1_api.py +285 -0
  18. arthur_client/api_bindings/api/metrics_v1_api.py +1297 -0
  19. arthur_client/api_bindings/api/models_v1_api.py +2739 -0
  20. arthur_client/api_bindings/api/o_auth_v1_api.py +284 -0
  21. arthur_client/api_bindings/api/organizations_v1_api.py +827 -0
  22. arthur_client/api_bindings/api/projects_v1_api.py +1541 -0
  23. arthur_client/api_bindings/api/registration_v1_api.py +319 -0
  24. arthur_client/api_bindings/api/roles_v1_api.py +307 -0
  25. arthur_client/api_bindings/api/tasks_v1_api.py +3173 -0
  26. arthur_client/api_bindings/api/upsolve_v1_api.py +320 -0
  27. arthur_client/api_bindings/api/users_v1_api.py +2930 -0
  28. arthur_client/api_bindings/api/webhooks_v1_api.py +1843 -0
  29. arthur_client/api_bindings/api/workspaces_v1_api.py +1511 -0
  30. arthur_client/api_bindings/api_client.py +797 -0
  31. arthur_client/api_bindings/api_response.py +21 -0
  32. arthur_client/api_bindings/configuration.py +458 -0
  33. arthur_client/api_bindings/docs/AggregationMetricType.md +12 -0
  34. arthur_client/api_bindings/docs/AggregationSpec.md +31 -0
  35. arthur_client/api_bindings/docs/AggregationSpecSchema.md +34 -0
  36. arthur_client/api_bindings/docs/AggregationSpecSchemaInitArgsInner.md +39 -0
  37. arthur_client/api_bindings/docs/Alert.md +44 -0
  38. arthur_client/api_bindings/docs/AlertBound.md +12 -0
  39. arthur_client/api_bindings/docs/AlertCheckJobSpec.md +32 -0
  40. arthur_client/api_bindings/docs/AlertRule.md +41 -0
  41. arthur_client/api_bindings/docs/AlertRuleInterval.md +30 -0
  42. arthur_client/api_bindings/docs/AlertRuleNotificationWebhook.md +30 -0
  43. arthur_client/api_bindings/docs/AlertRuleSQLValidationResp.md +32 -0
  44. arthur_client/api_bindings/docs/AlertRuleSort.md +12 -0
  45. arthur_client/api_bindings/docs/AlertRulesV1Api.md +514 -0
  46. arthur_client/api_bindings/docs/AlertSort.md +12 -0
  47. arthur_client/api_bindings/docs/AlertWebhookCalled.md +31 -0
  48. arthur_client/api_bindings/docs/AlertsV1Api.md +268 -0
  49. arthur_client/api_bindings/docs/AuthorizationV1Api.md +1039 -0
  50. arthur_client/api_bindings/docs/AvailableDataset.md +39 -0
  51. arthur_client/api_bindings/docs/AvailableDatasetsSort.md +14 -0
  52. arthur_client/api_bindings/docs/BadRequestError.md +29 -0
  53. arthur_client/api_bindings/docs/BaseRole.md +31 -0
  54. arthur_client/api_bindings/docs/BoundMember.md +30 -0
  55. arthur_client/api_bindings/docs/BoundMemberKind.md +12 -0
  56. arthur_client/api_bindings/docs/BoundResource.md +31 -0
  57. arthur_client/api_bindings/docs/BoundResourceKind.md +16 -0
  58. arthur_client/api_bindings/docs/BoundRole.md +30 -0
  59. arthur_client/api_bindings/docs/Config.md +37 -0
  60. arthur_client/api_bindings/docs/ConflictError.md +29 -0
  61. arthur_client/api_bindings/docs/ConnectorCheckJobSpec.md +30 -0
  62. arthur_client/api_bindings/docs/ConnectorCheckOutcome.md +12 -0
  63. arthur_client/api_bindings/docs/ConnectorCheckResult.md +30 -0
  64. arthur_client/api_bindings/docs/ConnectorFieldDataType.md +16 -0
  65. arthur_client/api_bindings/docs/ConnectorPaginationOptions.md +30 -0
  66. arthur_client/api_bindings/docs/ConnectorSchemasV1Api.md +161 -0
  67. arthur_client/api_bindings/docs/ConnectorSpec.md +39 -0
  68. arthur_client/api_bindings/docs/ConnectorSpecField.md +30 -0
  69. arthur_client/api_bindings/docs/ConnectorSpecFieldWithMetadata.md +32 -0
  70. arthur_client/api_bindings/docs/ConnectorSpecSchema.md +34 -0
  71. arthur_client/api_bindings/docs/ConnectorSpecSchemaField.md +34 -0
  72. arthur_client/api_bindings/docs/ConnectorType.md +18 -0
  73. arthur_client/api_bindings/docs/ConnectorsSort.md +14 -0
  74. arthur_client/api_bindings/docs/ConnectorsV1Api.md +586 -0
  75. arthur_client/api_bindings/docs/CreateModelLinkTaskJobSpec.md +32 -0
  76. arthur_client/api_bindings/docs/CreateModelTaskJobSpec.md +33 -0
  77. arthur_client/api_bindings/docs/CreatedAlerts.md +30 -0
  78. arthur_client/api_bindings/docs/Credentials.md +32 -0
  79. arthur_client/api_bindings/docs/DType.md +28 -0
  80. arthur_client/api_bindings/docs/DataPlane.md +37 -0
  81. arthur_client/api_bindings/docs/DataPlaneAssociation.md +35 -0
  82. arthur_client/api_bindings/docs/DataPlaneAssociationSort.md +12 -0
  83. arthur_client/api_bindings/docs/DataPlaneAssociationsV1Api.md +443 -0
  84. arthur_client/api_bindings/docs/DataPlaneCapabilities.md +29 -0
  85. arthur_client/api_bindings/docs/DataPlaneSort.md +14 -0
  86. arthur_client/api_bindings/docs/DataPlanesV1Api.md +502 -0
  87. arthur_client/api_bindings/docs/DataResultFilter.md +31 -0
  88. arthur_client/api_bindings/docs/DataResultFilterOp.md +24 -0
  89. arthur_client/api_bindings/docs/DataRetrievalData.md +30 -0
  90. arthur_client/api_bindings/docs/DataRetrievalOperation.md +32 -0
  91. arthur_client/api_bindings/docs/DataRetrievalStatus.md +14 -0
  92. arthur_client/api_bindings/docs/DataRetrievalV1Api.md +656 -0
  93. arthur_client/api_bindings/docs/Dataset.md +39 -0
  94. arthur_client/api_bindings/docs/DatasetColumn.md +31 -0
  95. arthur_client/api_bindings/docs/DatasetConnector.md +31 -0
  96. arthur_client/api_bindings/docs/DatasetJoinKind.md +16 -0
  97. arthur_client/api_bindings/docs/DatasetJoinSpec.md +31 -0
  98. arthur_client/api_bindings/docs/DatasetListType.md +32 -0
  99. arthur_client/api_bindings/docs/DatasetLocator.md +29 -0
  100. arthur_client/api_bindings/docs/DatasetLocatorField.md +30 -0
  101. arthur_client/api_bindings/docs/DatasetLocatorFieldDataType.md +16 -0
  102. arthur_client/api_bindings/docs/DatasetLocatorSchema.md +29 -0
  103. arthur_client/api_bindings/docs/DatasetLocatorSchemaField.md +33 -0
  104. arthur_client/api_bindings/docs/DatasetObjectType.md +32 -0
  105. arthur_client/api_bindings/docs/DatasetReference.md +31 -0
  106. arthur_client/api_bindings/docs/DatasetScalarType.md +32 -0
  107. arthur_client/api_bindings/docs/DatasetSchema.md +31 -0
  108. arthur_client/api_bindings/docs/DatasetsSort.md +12 -0
  109. arthur_client/api_bindings/docs/DatasetsV1Api.md +1175 -0
  110. arthur_client/api_bindings/docs/DefaultApi.md +74 -0
  111. arthur_client/api_bindings/docs/Definition.md +34 -0
  112. arthur_client/api_bindings/docs/DeleteGroupMembership.md +29 -0
  113. arthur_client/api_bindings/docs/DeleteModelTaskJobSpec.md +30 -0
  114. arthur_client/api_bindings/docs/Dimension.md +30 -0
  115. arthur_client/api_bindings/docs/ExampleConfig.md +30 -0
  116. arthur_client/api_bindings/docs/ExamplesConfig.md +30 -0
  117. arthur_client/api_bindings/docs/ExtendedRole.md +39 -0
  118. arthur_client/api_bindings/docs/FeatureFlagsV1Api.md +73 -0
  119. arthur_client/api_bindings/docs/FetchDataJobSpec.md +36 -0
  120. arthur_client/api_bindings/docs/FetchModelTaskJobSpec.md +30 -0
  121. arthur_client/api_bindings/docs/GenerateMetricsSpecRequest.md +29 -0
  122. arthur_client/api_bindings/docs/Group.md +35 -0
  123. arthur_client/api_bindings/docs/GroupMembership.md +33 -0
  124. arthur_client/api_bindings/docs/GroupSort.md +14 -0
  125. arthur_client/api_bindings/docs/GroupsV1Api.md +756 -0
  126. arthur_client/api_bindings/docs/HTTPValidationError.md +29 -0
  127. arthur_client/api_bindings/docs/HealthStatus.md +29 -0
  128. arthur_client/api_bindings/docs/InfinitePagination.md +30 -0
  129. arthur_client/api_bindings/docs/InfiniteResourceListAlert.md +30 -0
  130. arthur_client/api_bindings/docs/InfiniteResourceListJob.md +30 -0
  131. arthur_client/api_bindings/docs/InternalServerError.md +29 -0
  132. arthur_client/api_bindings/docs/IntervalUnit.md +16 -0
  133. arthur_client/api_bindings/docs/InviteNewUser.md +31 -0
  134. arthur_client/api_bindings/docs/Items.md +34 -0
  135. arthur_client/api_bindings/docs/Items1.md +31 -0
  136. arthur_client/api_bindings/docs/Job.md +48 -0
  137. arthur_client/api_bindings/docs/JobDequeueParameters.md +29 -0
  138. arthur_client/api_bindings/docs/JobError.md +29 -0
  139. arthur_client/api_bindings/docs/JobErrors.md +29 -0
  140. arthur_client/api_bindings/docs/JobKind.md +34 -0
  141. arthur_client/api_bindings/docs/JobLog.md +31 -0
  142. arthur_client/api_bindings/docs/JobLogLevel.md +18 -0
  143. arthur_client/api_bindings/docs/JobLogs.md +29 -0
  144. arthur_client/api_bindings/docs/JobPriority.md +16 -0
  145. arthur_client/api_bindings/docs/JobRun.md +34 -0
  146. arthur_client/api_bindings/docs/JobSpec.md +49 -0
  147. arthur_client/api_bindings/docs/JobState.md +18 -0
  148. arthur_client/api_bindings/docs/JobTrigger.md +14 -0
  149. arthur_client/api_bindings/docs/JobsBatch.md +29 -0
  150. arthur_client/api_bindings/docs/JobsSort.md +14 -0
  151. arthur_client/api_bindings/docs/JobsV1Api.md +960 -0
  152. arthur_client/api_bindings/docs/JoinedDataset.md +32 -0
  153. arthur_client/api_bindings/docs/KeywordsConfig.md +29 -0
  154. arthur_client/api_bindings/docs/ListDatasetsJobSpec.md +30 -0
  155. arthur_client/api_bindings/docs/ListType.md +29 -0
  156. arthur_client/api_bindings/docs/MetricFunctionsV1Api.md +81 -0
  157. arthur_client/api_bindings/docs/MetricsArgSpec.md +30 -0
  158. arthur_client/api_bindings/docs/MetricsCalculationJobSpec.md +32 -0
  159. arthur_client/api_bindings/docs/MetricsColumnListParameterSchema.md +37 -0
  160. arthur_client/api_bindings/docs/MetricsColumnListParameterSchemaAllowedColumnTypesInner.md +31 -0
  161. arthur_client/api_bindings/docs/MetricsColumnParameterSchema.md +37 -0
  162. arthur_client/api_bindings/docs/MetricsDatasetParameterSchema.md +34 -0
  163. arthur_client/api_bindings/docs/MetricsLiteralParameterSchema.md +34 -0
  164. arthur_client/api_bindings/docs/MetricsQueryResult.md +29 -0
  165. arthur_client/api_bindings/docs/MetricsResultFilterOp.md +24 -0
  166. arthur_client/api_bindings/docs/MetricsUpload.md +30 -0
  167. arthur_client/api_bindings/docs/MetricsUploadMetricsInner.md +31 -0
  168. arthur_client/api_bindings/docs/MetricsUploadResult.md +32 -0
  169. arthur_client/api_bindings/docs/MetricsV1Api.md +346 -0
  170. arthur_client/api_bindings/docs/MetricsVersion.md +34 -0
  171. arthur_client/api_bindings/docs/MetricsVersionsSort.md +16 -0
  172. arthur_client/api_bindings/docs/Model.md +41 -0
  173. arthur_client/api_bindings/docs/ModelMetricSpec.md +30 -0
  174. arthur_client/api_bindings/docs/ModelMetricsSchedule.md +32 -0
  175. arthur_client/api_bindings/docs/ModelProblemType.md +18 -0
  176. arthur_client/api_bindings/docs/ModelsSort.md +14 -0
  177. arthur_client/api_bindings/docs/ModelsV1Api.md +742 -0
  178. arthur_client/api_bindings/docs/NewRuleRequest.md +33 -0
  179. arthur_client/api_bindings/docs/NotFoundError.md +29 -0
  180. arthur_client/api_bindings/docs/NumericMetric.md +30 -0
  181. arthur_client/api_bindings/docs/NumericPoint.md +30 -0
  182. arthur_client/api_bindings/docs/NumericTimeSeries.md +30 -0
  183. arthur_client/api_bindings/docs/OAuthV1Api.md +73 -0
  184. arthur_client/api_bindings/docs/ObjectType.md +29 -0
  185. arthur_client/api_bindings/docs/ObjectValue.md +34 -0
  186. arthur_client/api_bindings/docs/Organization.md +32 -0
  187. arthur_client/api_bindings/docs/OrganizationsV1Api.md +234 -0
  188. arthur_client/api_bindings/docs/PIIConfig.md +31 -0
  189. arthur_client/api_bindings/docs/Pagination.md +32 -0
  190. arthur_client/api_bindings/docs/PatchAlertRule.md +36 -0
  191. arthur_client/api_bindings/docs/PatchConnectorSpec.md +31 -0
  192. arthur_client/api_bindings/docs/PatchDataPlane.md +31 -0
  193. arthur_client/api_bindings/docs/PatchDataPlaneCapabilities.md +29 -0
  194. arthur_client/api_bindings/docs/PatchDataset.md +31 -0
  195. arthur_client/api_bindings/docs/PatchDatasetLocator.md +29 -0
  196. arthur_client/api_bindings/docs/PatchGroup.md +30 -0
  197. arthur_client/api_bindings/docs/PatchJob.md +29 -0
  198. arthur_client/api_bindings/docs/PatchModel.md +31 -0
  199. arthur_client/api_bindings/docs/PatchOrganization.md +29 -0
  200. arthur_client/api_bindings/docs/PatchProject.md +30 -0
  201. arthur_client/api_bindings/docs/PatchServiceAccountUser.md +29 -0
  202. arthur_client/api_bindings/docs/PatchTaskRequest.md +32 -0
  203. arthur_client/api_bindings/docs/PatchUser.md +32 -0
  204. arthur_client/api_bindings/docs/PatchWebhook.md +32 -0
  205. arthur_client/api_bindings/docs/PatchWorkspace.md +29 -0
  206. arthur_client/api_bindings/docs/Permission.md +31 -0
  207. arthur_client/api_bindings/docs/PermissionName.md +272 -0
  208. arthur_client/api_bindings/docs/PermissionRequestItem.md +31 -0
  209. arthur_client/api_bindings/docs/PermissionResponseItem.md +32 -0
  210. arthur_client/api_bindings/docs/PermissionsRequest.md +29 -0
  211. arthur_client/api_bindings/docs/PermissionsResponse.md +29 -0
  212. arthur_client/api_bindings/docs/PostAlert.md +37 -0
  213. arthur_client/api_bindings/docs/PostAlertRule.md +36 -0
  214. arthur_client/api_bindings/docs/PostAlerts.md +29 -0
  215. arthur_client/api_bindings/docs/PostConnectorSpec.md +33 -0
  216. arthur_client/api_bindings/docs/PostDataPlane.md +31 -0
  217. arthur_client/api_bindings/docs/PostDataPlaneAssociation.md +30 -0
  218. arthur_client/api_bindings/docs/PostDataRetrievalOperation.md +32 -0
  219. arthur_client/api_bindings/docs/PostDataset.md +33 -0
  220. arthur_client/api_bindings/docs/PostDatasetJoinSpec.md +33 -0
  221. arthur_client/api_bindings/docs/PostEndUser.md +33 -0
  222. arthur_client/api_bindings/docs/PostGlobalRoleBinding.md +31 -0
  223. arthur_client/api_bindings/docs/PostGroup.md +30 -0
  224. arthur_client/api_bindings/docs/PostGroupMembership.md +29 -0
  225. arthur_client/api_bindings/docs/PostJob.md +34 -0
  226. arthur_client/api_bindings/docs/PostJobBatch.md +29 -0
  227. arthur_client/api_bindings/docs/PostJobKind.md +21 -0
  228. arthur_client/api_bindings/docs/PostJobSpec.md +37 -0
  229. arthur_client/api_bindings/docs/PostLinkTaskRequest.md +31 -0
  230. arthur_client/api_bindings/docs/PostMetricsQuery.md +33 -0
  231. arthur_client/api_bindings/docs/PostMetricsQueryResultFilter.md +31 -0
  232. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterAndGroup.md +29 -0
  233. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterAndGroupAndInner.md +33 -0
  234. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterOrGroup.md +29 -0
  235. arthur_client/api_bindings/docs/PostMetricsQueryResultFilterOrGroupOrInner.md +33 -0
  236. arthur_client/api_bindings/docs/PostMetricsQueryTimeRange.md +30 -0
  237. arthur_client/api_bindings/docs/PostMetricsVersions.md +30 -0
  238. arthur_client/api_bindings/docs/PostModel.md +33 -0
  239. arthur_client/api_bindings/docs/PostProject.md +30 -0
  240. arthur_client/api_bindings/docs/PostRoleBinding.md +31 -0
  241. arthur_client/api_bindings/docs/PostServiceAccount.md +29 -0
  242. arthur_client/api_bindings/docs/PostTaskRequest.md +32 -0
  243. arthur_client/api_bindings/docs/PostTaskValidationAPIKey.md +31 -0
  244. arthur_client/api_bindings/docs/PostUpsolveTenant.md +30 -0
  245. arthur_client/api_bindings/docs/PostWebhook.md +32 -0
  246. arthur_client/api_bindings/docs/PostWorkspace.md +29 -0
  247. arthur_client/api_bindings/docs/Project.md +35 -0
  248. arthur_client/api_bindings/docs/ProjectBoundResourceMetadata.md +30 -0
  249. arthur_client/api_bindings/docs/ProjectSort.md +14 -0
  250. arthur_client/api_bindings/docs/ProjectsV1Api.md +420 -0
  251. arthur_client/api_bindings/docs/PutAvailableDataset.md +33 -0
  252. arthur_client/api_bindings/docs/PutAvailableDatasets.md +29 -0
  253. arthur_client/api_bindings/docs/PutDatasetSchema.md +30 -0
  254. arthur_client/api_bindings/docs/PutJobState.md +29 -0
  255. arthur_client/api_bindings/docs/PutModelMetricSpec.md +29 -0
  256. arthur_client/api_bindings/docs/PutModelMetricsSchedule.md +31 -0
  257. arthur_client/api_bindings/docs/PutRetrievedData.md +29 -0
  258. arthur_client/api_bindings/docs/PutTaskConnectionInfo.md +30 -0
  259. arthur_client/api_bindings/docs/PutTaskStateCacheRequest.md +29 -0
  260. arthur_client/api_bindings/docs/RegenerateTaskValidationKeyJobSpec.md +30 -0
  261. arthur_client/api_bindings/docs/RegexConfig.md +29 -0
  262. arthur_client/api_bindings/docs/RegisterUser.md +29 -0
  263. arthur_client/api_bindings/docs/RegistrationV1Api.md +80 -0
  264. arthur_client/api_bindings/docs/ResourceKind.md +40 -0
  265. arthur_client/api_bindings/docs/ResourceListAggregationSpecSchema.md +30 -0
  266. arthur_client/api_bindings/docs/ResourceListAlertRule.md +30 -0
  267. arthur_client/api_bindings/docs/ResourceListAvailableDataset.md +30 -0
  268. arthur_client/api_bindings/docs/ResourceListConnectorSpec.md +30 -0
  269. arthur_client/api_bindings/docs/ResourceListConnectorType.md +30 -0
  270. arthur_client/api_bindings/docs/ResourceListDataPlane.md +30 -0
  271. arthur_client/api_bindings/docs/ResourceListDataPlaneAssociation.md +30 -0
  272. arthur_client/api_bindings/docs/ResourceListDataset.md +30 -0
  273. arthur_client/api_bindings/docs/ResourceListGroup.md +30 -0
  274. arthur_client/api_bindings/docs/ResourceListGroupMembership.md +30 -0
  275. arthur_client/api_bindings/docs/ResourceListJobError.md +30 -0
  276. arthur_client/api_bindings/docs/ResourceListJobLog.md +30 -0
  277. arthur_client/api_bindings/docs/ResourceListJobRun.md +30 -0
  278. arthur_client/api_bindings/docs/ResourceListMetricsVersion.md +30 -0
  279. arthur_client/api_bindings/docs/ResourceListModel.md +30 -0
  280. arthur_client/api_bindings/docs/ResourceListPermission.md +30 -0
  281. arthur_client/api_bindings/docs/ResourceListProject.md +30 -0
  282. arthur_client/api_bindings/docs/ResourceListRole.md +30 -0
  283. arthur_client/api_bindings/docs/ResourceListRoleBinding.md +30 -0
  284. arthur_client/api_bindings/docs/ResourceListUser.md +30 -0
  285. arthur_client/api_bindings/docs/ResourceListWebhook.md +30 -0
  286. arthur_client/api_bindings/docs/ResourceListWorkspace.md +30 -0
  287. arthur_client/api_bindings/docs/ResultFilter.md +34 -0
  288. arthur_client/api_bindings/docs/Role.md +39 -0
  289. arthur_client/api_bindings/docs/RoleBinding.md +36 -0
  290. arthur_client/api_bindings/docs/RoleSort.md +14 -0
  291. arthur_client/api_bindings/docs/RolesV1Api.md +87 -0
  292. arthur_client/api_bindings/docs/RuleResponse.md +38 -0
  293. arthur_client/api_bindings/docs/RuleResponseConfig.md +37 -0
  294. arthur_client/api_bindings/docs/RuleScope.md +12 -0
  295. arthur_client/api_bindings/docs/RuleType.md +26 -0
  296. arthur_client/api_bindings/docs/ScalarType.md +29 -0
  297. arthur_client/api_bindings/docs/ScheduleJobsJobSpec.md +31 -0
  298. arthur_client/api_bindings/docs/SchemaInspectionJobSpec.md +31 -0
  299. arthur_client/api_bindings/docs/ScopeSchemaTag.md +26 -0
  300. arthur_client/api_bindings/docs/SensitiveDataPlane.md +39 -0
  301. arthur_client/api_bindings/docs/SensitiveUser.md +41 -0
  302. arthur_client/api_bindings/docs/ServiceAccountCredentials.md +30 -0
  303. arthur_client/api_bindings/docs/SketchMetric.md +30 -0
  304. arthur_client/api_bindings/docs/SketchPoint.md +30 -0
  305. arthur_client/api_bindings/docs/SketchTimeSeries.md +30 -0
  306. arthur_client/api_bindings/docs/SortOrder.md +12 -0
  307. arthur_client/api_bindings/docs/TaskConnectionInfo.md +32 -0
  308. arthur_client/api_bindings/docs/TaskMutationResponse.md +29 -0
  309. arthur_client/api_bindings/docs/TaskReadResponse.md +31 -0
  310. arthur_client/api_bindings/docs/TaskResponse.md +33 -0
  311. arthur_client/api_bindings/docs/TaskValidationAPIKey.md +31 -0
  312. arthur_client/api_bindings/docs/TaskValidationKeyRegenerationResponse.md +29 -0
  313. arthur_client/api_bindings/docs/TasksV1Api.md +892 -0
  314. arthur_client/api_bindings/docs/ToxicityConfig.md +29 -0
  315. arthur_client/api_bindings/docs/UpdateModelTaskRulesJobSpec.md +34 -0
  316. arthur_client/api_bindings/docs/UpsolveToken.md +29 -0
  317. arthur_client/api_bindings/docs/UpsolveV1Api.md +88 -0
  318. arthur_client/api_bindings/docs/User.md +40 -0
  319. arthur_client/api_bindings/docs/UserCredentials.md +29 -0
  320. arthur_client/api_bindings/docs/UserServiceAccountCredentials.md +41 -0
  321. arthur_client/api_bindings/docs/UserSort.md +16 -0
  322. arthur_client/api_bindings/docs/UserType.md +14 -0
  323. arthur_client/api_bindings/docs/UsersV1Api.md +810 -0
  324. arthur_client/api_bindings/docs/ValidateAlertRuleQueryReq.md +29 -0
  325. arthur_client/api_bindings/docs/ValidationError.md +31 -0
  326. arthur_client/api_bindings/docs/ValidationErrorLocInner.md +28 -0
  327. arthur_client/api_bindings/docs/Webhook.md +37 -0
  328. arthur_client/api_bindings/docs/WebhookResponse.md +30 -0
  329. arthur_client/api_bindings/docs/WebhookResult.md +30 -0
  330. arthur_client/api_bindings/docs/WebhookSort.md +14 -0
  331. arthur_client/api_bindings/docs/WebhooksV1Api.md +503 -0
  332. arthur_client/api_bindings/docs/Workspace.md +33 -0
  333. arthur_client/api_bindings/docs/WorkspaceSort.md +14 -0
  334. arthur_client/api_bindings/docs/WorkspacesV1Api.md +416 -0
  335. arthur_client/api_bindings/exceptions.py +199 -0
  336. arthur_client/api_bindings/models/__init__.py +292 -0
  337. arthur_client/api_bindings/models/aggregation_metric_type.py +37 -0
  338. arthur_client/api_bindings/models/aggregation_spec.py +106 -0
  339. arthur_client/api_bindings/models/aggregation_spec_schema.py +113 -0
  340. arthur_client/api_bindings/models/aggregation_spec_schema_init_args_inner.py +164 -0
  341. arthur_client/api_bindings/models/alert.py +143 -0
  342. arthur_client/api_bindings/models/alert_bound.py +37 -0
  343. arthur_client/api_bindings/models/alert_check_job_spec.py +104 -0
  344. arthur_client/api_bindings/models/alert_rule.py +139 -0
  345. arthur_client/api_bindings/models/alert_rule_interval.py +90 -0
  346. arthur_client/api_bindings/models/alert_rule_notification_webhook.py +89 -0
  347. arthur_client/api_bindings/models/alert_rule_sort.py +37 -0
  348. arthur_client/api_bindings/models/alert_rule_sql_validation_resp.py +93 -0
  349. arthur_client/api_bindings/models/alert_sort.py +37 -0
  350. arthur_client/api_bindings/models/alert_webhook_called.py +95 -0
  351. arthur_client/api_bindings/models/available_dataset.py +151 -0
  352. arthur_client/api_bindings/models/available_datasets_sort.py +38 -0
  353. arthur_client/api_bindings/models/bad_request_error.py +87 -0
  354. arthur_client/api_bindings/models/base_role.py +96 -0
  355. arthur_client/api_bindings/models/bound_member.py +89 -0
  356. arthur_client/api_bindings/models/bound_member_kind.py +37 -0
  357. arthur_client/api_bindings/models/bound_resource.py +100 -0
  358. arthur_client/api_bindings/models/bound_resource_kind.py +39 -0
  359. arthur_client/api_bindings/models/bound_role.py +89 -0
  360. arthur_client/api_bindings/models/config.py +185 -0
  361. arthur_client/api_bindings/models/conflict_error.py +87 -0
  362. arthur_client/api_bindings/models/connector_check_job_spec.py +99 -0
  363. arthur_client/api_bindings/models/connector_check_outcome.py +37 -0
  364. arthur_client/api_bindings/models/connector_check_result.py +95 -0
  365. arthur_client/api_bindings/models/connector_field_data_type.py +39 -0
  366. arthur_client/api_bindings/models/connector_pagination_options.py +90 -0
  367. arthur_client/api_bindings/models/connector_spec.py +135 -0
  368. arthur_client/api_bindings/models/connector_spec_field.py +89 -0
  369. arthur_client/api_bindings/models/connector_spec_field_with_metadata.py +94 -0
  370. arthur_client/api_bindings/models/connector_spec_schema.py +111 -0
  371. arthur_client/api_bindings/models/connector_spec_schema_field.py +103 -0
  372. arthur_client/api_bindings/models/connector_type.py +40 -0
  373. arthur_client/api_bindings/models/connectors_sort.py +38 -0
  374. arthur_client/api_bindings/models/create_model_link_task_job_spec.py +108 -0
  375. arthur_client/api_bindings/models/create_model_task_job_spec.py +118 -0
  376. arthur_client/api_bindings/models/created_alerts.py +110 -0
  377. arthur_client/api_bindings/models/credentials.py +134 -0
  378. arthur_client/api_bindings/models/d_type.py +45 -0
  379. arthur_client/api_bindings/models/data_plane.py +113 -0
  380. arthur_client/api_bindings/models/data_plane_association.py +118 -0
  381. arthur_client/api_bindings/models/data_plane_association_sort.py +37 -0
  382. arthur_client/api_bindings/models/data_plane_capabilities.py +87 -0
  383. arthur_client/api_bindings/models/data_plane_sort.py +38 -0
  384. arthur_client/api_bindings/models/data_result_filter.py +97 -0
  385. arthur_client/api_bindings/models/data_result_filter_op.py +43 -0
  386. arthur_client/api_bindings/models/data_retrieval_data.py +94 -0
  387. arthur_client/api_bindings/models/data_retrieval_operation.py +103 -0
  388. arthur_client/api_bindings/models/data_retrieval_status.py +38 -0
  389. arthur_client/api_bindings/models/dataset.py +145 -0
  390. arthur_client/api_bindings/models/dataset_column.py +95 -0
  391. arthur_client/api_bindings/models/dataset_connector.py +92 -0
  392. arthur_client/api_bindings/models/dataset_join_kind.py +39 -0
  393. arthur_client/api_bindings/models/dataset_join_spec.py +99 -0
  394. arthur_client/api_bindings/models/dataset_list_type.py +105 -0
  395. arthur_client/api_bindings/models/dataset_locator.py +95 -0
  396. arthur_client/api_bindings/models/dataset_locator_field.py +89 -0
  397. arthur_client/api_bindings/models/dataset_locator_field_data_type.py +39 -0
  398. arthur_client/api_bindings/models/dataset_locator_schema.py +95 -0
  399. arthur_client/api_bindings/models/dataset_locator_schema_field.py +101 -0
  400. arthur_client/api_bindings/models/dataset_object_type.py +114 -0
  401. arthur_client/api_bindings/models/dataset_reference.py +97 -0
  402. arthur_client/api_bindings/models/dataset_scalar_type.py +100 -0
  403. arthur_client/api_bindings/models/dataset_schema.py +101 -0
  404. arthur_client/api_bindings/models/datasets_sort.py +37 -0
  405. arthur_client/api_bindings/models/definition.py +149 -0
  406. arthur_client/api_bindings/models/delete_group_membership.py +87 -0
  407. arthur_client/api_bindings/models/delete_model_task_job_spec.py +99 -0
  408. arthur_client/api_bindings/models/dimension.py +89 -0
  409. arthur_client/api_bindings/models/example_config.py +89 -0
  410. arthur_client/api_bindings/models/examples_config.py +102 -0
  411. arthur_client/api_bindings/models/extended_role.py +129 -0
  412. arthur_client/api_bindings/models/fetch_data_job_spec.py +134 -0
  413. arthur_client/api_bindings/models/fetch_model_task_job_spec.py +99 -0
  414. arthur_client/api_bindings/models/generate_metrics_spec_request.py +87 -0
  415. arthur_client/api_bindings/models/group.py +105 -0
  416. arthur_client/api_bindings/models/group_membership.py +100 -0
  417. arthur_client/api_bindings/models/group_sort.py +38 -0
  418. arthur_client/api_bindings/models/health_status.py +87 -0
  419. arthur_client/api_bindings/models/http_validation_error.py +95 -0
  420. arthur_client/api_bindings/models/infinite_pagination.py +89 -0
  421. arthur_client/api_bindings/models/infinite_resource_list_alert.py +101 -0
  422. arthur_client/api_bindings/models/infinite_resource_list_job.py +101 -0
  423. arthur_client/api_bindings/models/internal_server_error.py +87 -0
  424. arthur_client/api_bindings/models/interval_unit.py +39 -0
  425. arthur_client/api_bindings/models/invite_new_user.py +105 -0
  426. arthur_client/api_bindings/models/items.py +151 -0
  427. arthur_client/api_bindings/models/items1.py +151 -0
  428. arthur_client/api_bindings/models/job.py +178 -0
  429. arthur_client/api_bindings/models/job_dequeue_parameters.py +87 -0
  430. arthur_client/api_bindings/models/job_error.py +87 -0
  431. arthur_client/api_bindings/models/job_errors.py +95 -0
  432. arthur_client/api_bindings/models/job_kind.py +48 -0
  433. arthur_client/api_bindings/models/job_log.py +93 -0
  434. arthur_client/api_bindings/models/job_log_level.py +40 -0
  435. arthur_client/api_bindings/models/job_logs.py +95 -0
  436. arthur_client/api_bindings/models/job_priority.py +39 -0
  437. arthur_client/api_bindings/models/job_run.py +104 -0
  438. arthur_client/api_bindings/models/job_spec.py +299 -0
  439. arthur_client/api_bindings/models/job_state.py +40 -0
  440. arthur_client/api_bindings/models/job_trigger.py +38 -0
  441. arthur_client/api_bindings/models/jobs_batch.py +95 -0
  442. arthur_client/api_bindings/models/jobs_sort.py +38 -0
  443. arthur_client/api_bindings/models/joined_dataset.py +98 -0
  444. arthur_client/api_bindings/models/keywords_config.py +87 -0
  445. arthur_client/api_bindings/models/list_datasets_job_spec.py +99 -0
  446. arthur_client/api_bindings/models/list_type.py +93 -0
  447. arthur_client/api_bindings/models/metrics_arg_spec.py +94 -0
  448. arthur_client/api_bindings/models/metrics_calculation_job_spec.py +104 -0
  449. arthur_client/api_bindings/models/metrics_column_list_parameter_schema.py +127 -0
  450. arthur_client/api_bindings/models/metrics_column_list_parameter_schema_allowed_column_types_inner.py +151 -0
  451. arthur_client/api_bindings/models/metrics_column_parameter_schema.py +127 -0
  452. arthur_client/api_bindings/models/metrics_dataset_parameter_schema.py +113 -0
  453. arthur_client/api_bindings/models/metrics_literal_parameter_schema.py +108 -0
  454. arthur_client/api_bindings/models/metrics_query_result.py +87 -0
  455. arthur_client/api_bindings/models/metrics_result_filter_op.py +43 -0
  456. arthur_client/api_bindings/models/metrics_upload.py +95 -0
  457. arthur_client/api_bindings/models/metrics_upload_metrics_inner.py +134 -0
  458. arthur_client/api_bindings/models/metrics_upload_result.py +93 -0
  459. arthur_client/api_bindings/models/metrics_version.py +98 -0
  460. arthur_client/api_bindings/models/metrics_versions_sort.py +39 -0
  461. arthur_client/api_bindings/models/model.py +153 -0
  462. arthur_client/api_bindings/models/model_metric_spec.py +97 -0
  463. arthur_client/api_bindings/models/model_metrics_schedule.py +98 -0
  464. arthur_client/api_bindings/models/model_problem_type.py +40 -0
  465. arthur_client/api_bindings/models/models_sort.py +38 -0
  466. arthur_client/api_bindings/models/new_rule_request.py +104 -0
  467. arthur_client/api_bindings/models/not_found_error.py +87 -0
  468. arthur_client/api_bindings/models/numeric_metric.py +97 -0
  469. arthur_client/api_bindings/models/numeric_point.py +90 -0
  470. arthur_client/api_bindings/models/numeric_time_series.py +105 -0
  471. arthur_client/api_bindings/models/object_type.py +102 -0
  472. arthur_client/api_bindings/models/object_value.py +151 -0
  473. arthur_client/api_bindings/models/organization.py +94 -0
  474. arthur_client/api_bindings/models/pagination.py +93 -0
  475. arthur_client/api_bindings/models/patch_alert_rule.py +146 -0
  476. arthur_client/api_bindings/models/patch_connector_spec.py +109 -0
  477. arthur_client/api_bindings/models/patch_data_plane.py +110 -0
  478. arthur_client/api_bindings/models/patch_data_plane_capabilities.py +92 -0
  479. arthur_client/api_bindings/models/patch_dataset.py +111 -0
  480. arthur_client/api_bindings/models/patch_dataset_locator.py +100 -0
  481. arthur_client/api_bindings/models/patch_group.py +99 -0
  482. arthur_client/api_bindings/models/patch_job.py +92 -0
  483. arthur_client/api_bindings/models/patch_model.py +106 -0
  484. arthur_client/api_bindings/models/patch_organization.py +92 -0
  485. arthur_client/api_bindings/models/patch_project.py +99 -0
  486. arthur_client/api_bindings/models/patch_service_account_user.py +92 -0
  487. arthur_client/api_bindings/models/patch_task_request.py +101 -0
  488. arthur_client/api_bindings/models/patch_user.py +113 -0
  489. arthur_client/api_bindings/models/patch_webhook.py +113 -0
  490. arthur_client/api_bindings/models/patch_workspace.py +87 -0
  491. arthur_client/api_bindings/models/permission.py +93 -0
  492. arthur_client/api_bindings/models/permission_name.py +167 -0
  493. arthur_client/api_bindings/models/permission_request_item.py +93 -0
  494. arthur_client/api_bindings/models/permission_response_item.py +95 -0
  495. arthur_client/api_bindings/models/permissions_request.py +96 -0
  496. arthur_client/api_bindings/models/permissions_response.py +95 -0
  497. arthur_client/api_bindings/models/pii_config.py +106 -0
  498. arthur_client/api_bindings/models/post_alert.py +124 -0
  499. arthur_client/api_bindings/models/post_alert_rule.py +111 -0
  500. arthur_client/api_bindings/models/post_alerts.py +96 -0
  501. arthur_client/api_bindings/models/post_connector_spec.py +104 -0
  502. arthur_client/api_bindings/models/post_data_plane.py +95 -0
  503. arthur_client/api_bindings/models/post_data_plane_association.py +89 -0
  504. arthur_client/api_bindings/models/post_data_retrieval_operation.py +106 -0
  505. arthur_client/api_bindings/models/post_dataset.py +128 -0
  506. arthur_client/api_bindings/models/post_dataset_join_spec.py +96 -0
  507. arthur_client/api_bindings/models/post_end_user.py +105 -0
  508. arthur_client/api_bindings/models/post_global_role_binding.py +92 -0
  509. arthur_client/api_bindings/models/post_group.py +94 -0
  510. arthur_client/api_bindings/models/post_group_membership.py +87 -0
  511. arthur_client/api_bindings/models/post_job.py +124 -0
  512. arthur_client/api_bindings/models/post_job_batch.py +95 -0
  513. arthur_client/api_bindings/models/post_job_kind.py +41 -0
  514. arthur_client/api_bindings/models/post_job_spec.py +194 -0
  515. arthur_client/api_bindings/models/post_link_task_request.py +96 -0
  516. arthur_client/api_bindings/models/post_metrics_query.py +117 -0
  517. arthur_client/api_bindings/models/post_metrics_query_result_filter.py +97 -0
  518. arthur_client/api_bindings/models/post_metrics_query_result_filter_and_group.py +97 -0
  519. arthur_client/api_bindings/models/post_metrics_query_result_filter_and_group_and_inner.py +151 -0
  520. arthur_client/api_bindings/models/post_metrics_query_result_filter_or_group.py +97 -0
  521. arthur_client/api_bindings/models/post_metrics_query_result_filter_or_group_or_inner.py +151 -0
  522. arthur_client/api_bindings/models/post_metrics_query_time_range.py +90 -0
  523. arthur_client/api_bindings/models/post_metrics_versions.py +90 -0
  524. arthur_client/api_bindings/models/post_model.py +115 -0
  525. arthur_client/api_bindings/models/post_project.py +94 -0
  526. arthur_client/api_bindings/models/post_role_binding.py +101 -0
  527. arthur_client/api_bindings/models/post_service_account.py +87 -0
  528. arthur_client/api_bindings/models/post_task_request.py +107 -0
  529. arthur_client/api_bindings/models/post_task_validation_api_key.py +91 -0
  530. arthur_client/api_bindings/models/post_upsolve_tenant.py +90 -0
  531. arthur_client/api_bindings/models/post_webhook.py +93 -0
  532. arthur_client/api_bindings/models/post_workspace.py +87 -0
  533. arthur_client/api_bindings/models/project.py +105 -0
  534. arthur_client/api_bindings/models/project_bound_resource_metadata.py +89 -0
  535. arthur_client/api_bindings/models/project_sort.py +38 -0
  536. arthur_client/api_bindings/models/put_available_dataset.py +133 -0
  537. arthur_client/api_bindings/models/put_available_datasets.py +95 -0
  538. arthur_client/api_bindings/models/put_dataset_schema.py +97 -0
  539. arthur_client/api_bindings/models/put_job_state.py +88 -0
  540. arthur_client/api_bindings/models/put_model_metric_spec.py +95 -0
  541. arthur_client/api_bindings/models/put_model_metrics_schedule.py +96 -0
  542. arthur_client/api_bindings/models/put_retrieved_data.py +87 -0
  543. arthur_client/api_bindings/models/put_task_connection_info.py +93 -0
  544. arthur_client/api_bindings/models/put_task_state_cache_request.py +91 -0
  545. arthur_client/api_bindings/models/regenerate_task_validation_key_job_spec.py +99 -0
  546. arthur_client/api_bindings/models/regex_config.py +87 -0
  547. arthur_client/api_bindings/models/register_user.py +87 -0
  548. arthur_client/api_bindings/models/resource_kind.py +51 -0
  549. arthur_client/api_bindings/models/resource_list_aggregation_spec_schema.py +101 -0
  550. arthur_client/api_bindings/models/resource_list_alert_rule.py +101 -0
  551. arthur_client/api_bindings/models/resource_list_available_dataset.py +101 -0
  552. arthur_client/api_bindings/models/resource_list_connector_spec.py +101 -0
  553. arthur_client/api_bindings/models/resource_list_connector_type.py +94 -0
  554. arthur_client/api_bindings/models/resource_list_data_plane.py +101 -0
  555. arthur_client/api_bindings/models/resource_list_data_plane_association.py +101 -0
  556. arthur_client/api_bindings/models/resource_list_dataset.py +101 -0
  557. arthur_client/api_bindings/models/resource_list_group.py +101 -0
  558. arthur_client/api_bindings/models/resource_list_group_membership.py +101 -0
  559. arthur_client/api_bindings/models/resource_list_job_error.py +101 -0
  560. arthur_client/api_bindings/models/resource_list_job_log.py +101 -0
  561. arthur_client/api_bindings/models/resource_list_job_run.py +101 -0
  562. arthur_client/api_bindings/models/resource_list_metrics_version.py +101 -0
  563. arthur_client/api_bindings/models/resource_list_model.py +101 -0
  564. arthur_client/api_bindings/models/resource_list_permission.py +101 -0
  565. arthur_client/api_bindings/models/resource_list_project.py +101 -0
  566. arthur_client/api_bindings/models/resource_list_role.py +101 -0
  567. arthur_client/api_bindings/models/resource_list_role_binding.py +101 -0
  568. arthur_client/api_bindings/models/resource_list_user.py +101 -0
  569. arthur_client/api_bindings/models/resource_list_webhook.py +101 -0
  570. arthur_client/api_bindings/models/resource_list_workspace.py +101 -0
  571. arthur_client/api_bindings/models/result_filter.py +155 -0
  572. arthur_client/api_bindings/models/role.py +114 -0
  573. arthur_client/api_bindings/models/role_binding.py +116 -0
  574. arthur_client/api_bindings/models/role_sort.py +38 -0
  575. arthur_client/api_bindings/models/rule_response.py +121 -0
  576. arthur_client/api_bindings/models/rule_response_config.py +185 -0
  577. arthur_client/api_bindings/models/rule_scope.py +37 -0
  578. arthur_client/api_bindings/models/rule_type.py +44 -0
  579. arthur_client/api_bindings/models/scalar_type.py +88 -0
  580. arthur_client/api_bindings/models/schedule_jobs_job_spec.py +102 -0
  581. arthur_client/api_bindings/models/schema_inspection_job_spec.py +101 -0
  582. arthur_client/api_bindings/models/scope_schema_tag.py +44 -0
  583. arthur_client/api_bindings/models/sensitive_data_plane.py +117 -0
  584. arthur_client/api_bindings/models/sensitive_user.py +142 -0
  585. arthur_client/api_bindings/models/service_account_credentials.py +89 -0
  586. arthur_client/api_bindings/models/sketch_metric.py +97 -0
  587. arthur_client/api_bindings/models/sketch_point.py +90 -0
  588. arthur_client/api_bindings/models/sketch_time_series.py +105 -0
  589. arthur_client/api_bindings/models/sort_order.py +37 -0
  590. arthur_client/api_bindings/models/task_connection_info.py +98 -0
  591. arthur_client/api_bindings/models/task_mutation_response.py +87 -0
  592. arthur_client/api_bindings/models/task_read_response.py +106 -0
  593. arthur_client/api_bindings/models/task_response.py +103 -0
  594. arthur_client/api_bindings/models/task_validation_api_key.py +91 -0
  595. arthur_client/api_bindings/models/task_validation_key_regeneration_response.py +87 -0
  596. arthur_client/api_bindings/models/toxicity_config.py +100 -0
  597. arthur_client/api_bindings/models/update_model_task_rules_job_spec.py +115 -0
  598. arthur_client/api_bindings/models/upsolve_token.py +87 -0
  599. arthur_client/api_bindings/models/user.py +136 -0
  600. arthur_client/api_bindings/models/user_credentials.py +87 -0
  601. arthur_client/api_bindings/models/user_service_account_credentials.py +142 -0
  602. arthur_client/api_bindings/models/user_sort.py +39 -0
  603. arthur_client/api_bindings/models/user_type.py +38 -0
  604. arthur_client/api_bindings/models/validate_alert_rule_query_req.py +87 -0
  605. arthur_client/api_bindings/models/validation_error.py +99 -0
  606. arthur_client/api_bindings/models/validation_error_loc_inner.py +138 -0
  607. arthur_client/api_bindings/models/webhook.py +113 -0
  608. arthur_client/api_bindings/models/webhook_response.py +99 -0
  609. arthur_client/api_bindings/models/webhook_result.py +103 -0
  610. arthur_client/api_bindings/models/webhook_sort.py +38 -0
  611. arthur_client/api_bindings/models/workspace.py +96 -0
  612. arthur_client/api_bindings/models/workspace_sort.py +38 -0
  613. arthur_client/api_bindings/rest.py +257 -0
  614. arthur_client/api_bindings/test/test_aggregation_metric_type.py +33 -0
  615. arthur_client/api_bindings/test/test_aggregation_spec.py +72 -0
  616. arthur_client/api_bindings/test/test_aggregation_spec_schema.py +70 -0
  617. arthur_client/api_bindings/test/test_aggregation_spec_schema_init_args_inner.py +70 -0
  618. arthur_client/api_bindings/test/test_alert.py +84 -0
  619. arthur_client/api_bindings/test/test_alert_bound.py +33 -0
  620. arthur_client/api_bindings/test/test_alert_check_job_spec.py +57 -0
  621. arthur_client/api_bindings/test/test_alert_rule.py +98 -0
  622. arthur_client/api_bindings/test/test_alert_rule_interval.py +54 -0
  623. arthur_client/api_bindings/test/test_alert_rule_notification_webhook.py +54 -0
  624. arthur_client/api_bindings/test/test_alert_rule_sort.py +33 -0
  625. arthur_client/api_bindings/test/test_alert_rule_sql_validation_resp.py +58 -0
  626. arthur_client/api_bindings/test/test_alert_rules_v1_api.py +73 -0
  627. arthur_client/api_bindings/test/test_alert_sort.py +33 -0
  628. arthur_client/api_bindings/test/test_alert_webhook_called.py +64 -0
  629. arthur_client/api_bindings/test/test_alerts_v1_api.py +52 -0
  630. arthur_client/api_bindings/test/test_authorization_v1_api.py +115 -0
  631. arthur_client/api_bindings/test/test_available_dataset.py +94 -0
  632. arthur_client/api_bindings/test/test_available_datasets_sort.py +33 -0
  633. arthur_client/api_bindings/test/test_bad_request_error.py +51 -0
  634. arthur_client/api_bindings/test/test_base_role.py +56 -0
  635. arthur_client/api_bindings/test/test_bound_member.py +54 -0
  636. arthur_client/api_bindings/test/test_bound_member_kind.py +33 -0
  637. arthur_client/api_bindings/test/test_bound_resource.py +57 -0
  638. arthur_client/api_bindings/test/test_bound_resource_kind.py +33 -0
  639. arthur_client/api_bindings/test/test_bound_role.py +54 -0
  640. arthur_client/api_bindings/test/test_config.py +77 -0
  641. arthur_client/api_bindings/test/test_conflict_error.py +51 -0
  642. arthur_client/api_bindings/test/test_connector_check_job_spec.py +53 -0
  643. arthur_client/api_bindings/test/test_connector_check_outcome.py +33 -0
  644. arthur_client/api_bindings/test/test_connector_check_result.py +53 -0
  645. arthur_client/api_bindings/test/test_connector_field_data_type.py +33 -0
  646. arthur_client/api_bindings/test/test_connector_pagination_options.py +52 -0
  647. arthur_client/api_bindings/test/test_connector_schemas_v1_api.py +45 -0
  648. arthur_client/api_bindings/test/test_connector_spec.py +96 -0
  649. arthur_client/api_bindings/test/test_connector_spec_field.py +54 -0
  650. arthur_client/api_bindings/test/test_connector_spec_field_with_metadata.py +58 -0
  651. arthur_client/api_bindings/test/test_connector_spec_schema.py +102 -0
  652. arthur_client/api_bindings/test/test_connector_spec_schema_field.py +63 -0
  653. arthur_client/api_bindings/test/test_connector_type.py +33 -0
  654. arthur_client/api_bindings/test/test_connectors_sort.py +33 -0
  655. arthur_client/api_bindings/test/test_connectors_v1_api.py +80 -0
  656. arthur_client/api_bindings/test/test_create_model_link_task_job_spec.py +56 -0
  657. arthur_client/api_bindings/test/test_create_model_task_job_spec.py +72 -0
  658. arthur_client/api_bindings/test/test_created_alerts.py +102 -0
  659. arthur_client/api_bindings/test/test_credentials.py +56 -0
  660. arthur_client/api_bindings/test/test_d_type.py +33 -0
  661. arthur_client/api_bindings/test/test_data_plane.py +70 -0
  662. arthur_client/api_bindings/test/test_data_plane_association.py +79 -0
  663. arthur_client/api_bindings/test/test_data_plane_association_sort.py +33 -0
  664. arthur_client/api_bindings/test/test_data_plane_associations_v1_api.py +66 -0
  665. arthur_client/api_bindings/test/test_data_plane_capabilities.py +51 -0
  666. arthur_client/api_bindings/test/test_data_plane_sort.py +33 -0
  667. arthur_client/api_bindings/test/test_data_planes_v1_api.py +73 -0
  668. arthur_client/api_bindings/test/test_data_result_filter.py +56 -0
  669. arthur_client/api_bindings/test/test_data_result_filter_op.py +33 -0
  670. arthur_client/api_bindings/test/test_data_retrieval_data.py +54 -0
  671. arthur_client/api_bindings/test/test_data_retrieval_operation.py +59 -0
  672. arthur_client/api_bindings/test/test_data_retrieval_status.py +33 -0
  673. arthur_client/api_bindings/test/test_data_retrieval_v1_api.py +87 -0
  674. arthur_client/api_bindings/test/test_dataset.py +117 -0
  675. arthur_client/api_bindings/test/test_dataset_column.py +55 -0
  676. arthur_client/api_bindings/test/test_dataset_connector.py +56 -0
  677. arthur_client/api_bindings/test/test_dataset_join_kind.py +33 -0
  678. arthur_client/api_bindings/test/test_dataset_join_spec.py +71 -0
  679. arthur_client/api_bindings/test/test_dataset_list_type.py +57 -0
  680. arthur_client/api_bindings/test/test_dataset_locator.py +60 -0
  681. arthur_client/api_bindings/test/test_dataset_locator_field.py +54 -0
  682. arthur_client/api_bindings/test/test_dataset_locator_field_data_type.py +33 -0
  683. arthur_client/api_bindings/test/test_dataset_locator_schema.py +70 -0
  684. arthur_client/api_bindings/test/test_dataset_locator_schema_field.py +61 -0
  685. arthur_client/api_bindings/test/test_dataset_object_type.py +61 -0
  686. arthur_client/api_bindings/test/test_dataset_reference.py +56 -0
  687. arthur_client/api_bindings/test/test_dataset_scalar_type.py +57 -0
  688. arthur_client/api_bindings/test/test_dataset_schema.py +74 -0
  689. arthur_client/api_bindings/test/test_datasets_sort.py +33 -0
  690. arthur_client/api_bindings/test/test_datasets_v1_api.py +129 -0
  691. arthur_client/api_bindings/test/test_default_api.py +38 -0
  692. arthur_client/api_bindings/test/test_definition.py +65 -0
  693. arthur_client/api_bindings/test/test_delete_group_membership.py +56 -0
  694. arthur_client/api_bindings/test/test_delete_model_task_job_spec.py +53 -0
  695. arthur_client/api_bindings/test/test_dimension.py +54 -0
  696. arthur_client/api_bindings/test/test_example_config.py +54 -0
  697. arthur_client/api_bindings/test/test_examples_config.py +57 -0
  698. arthur_client/api_bindings/test/test_extended_role.py +92 -0
  699. arthur_client/api_bindings/test/test_feature_flags_v1_api.py +38 -0
  700. arthur_client/api_bindings/test/test_fetch_data_job_spec.py +77 -0
  701. arthur_client/api_bindings/test/test_fetch_model_task_job_spec.py +53 -0
  702. arthur_client/api_bindings/test/test_generate_metrics_spec_request.py +56 -0
  703. arthur_client/api_bindings/test/test_group.py +63 -0
  704. arthur_client/api_bindings/test/test_group_membership.py +74 -0
  705. arthur_client/api_bindings/test/test_group_sort.py +33 -0
  706. arthur_client/api_bindings/test/test_groups_v1_api.py +94 -0
  707. arthur_client/api_bindings/test/test_health_status.py +51 -0
  708. arthur_client/api_bindings/test/test_http_validation_error.py +58 -0
  709. arthur_client/api_bindings/test/test_infinite_pagination.py +52 -0
  710. arthur_client/api_bindings/test/test_infinite_resource_list_alert.py +98 -0
  711. arthur_client/api_bindings/test/test_infinite_resource_list_job.py +126 -0
  712. arthur_client/api_bindings/test/test_internal_server_error.py +51 -0
  713. arthur_client/api_bindings/test/test_interval_unit.py +33 -0
  714. arthur_client/api_bindings/test/test_invite_new_user.py +59 -0
  715. arthur_client/api_bindings/test/test_items.py +65 -0
  716. arthur_client/api_bindings/test/test_items1.py +60 -0
  717. arthur_client/api_bindings/test/test_job.py +94 -0
  718. arthur_client/api_bindings/test/test_job_dequeue_parameters.py +52 -0
  719. arthur_client/api_bindings/test/test_job_error.py +52 -0
  720. arthur_client/api_bindings/test/test_job_errors.py +58 -0
  721. arthur_client/api_bindings/test/test_job_kind.py +33 -0
  722. arthur_client/api_bindings/test/test_job_log.py +56 -0
  723. arthur_client/api_bindings/test/test_job_log_level.py +33 -0
  724. arthur_client/api_bindings/test/test_job_logs.py +62 -0
  725. arthur_client/api_bindings/test/test_job_priority.py +33 -0
  726. arthur_client/api_bindings/test/test_job_run.py +61 -0
  727. arthur_client/api_bindings/test/test_job_spec.py +124 -0
  728. arthur_client/api_bindings/test/test_job_state.py +33 -0
  729. arthur_client/api_bindings/test/test_job_trigger.py +33 -0
  730. arthur_client/api_bindings/test/test_jobs_batch.py +120 -0
  731. arthur_client/api_bindings/test/test_jobs_sort.py +33 -0
  732. arthur_client/api_bindings/test/test_jobs_v1_api.py +108 -0
  733. arthur_client/api_bindings/test/test_joined_dataset.py +58 -0
  734. arthur_client/api_bindings/test/test_keywords_config.py +56 -0
  735. arthur_client/api_bindings/test/test_list_datasets_job_spec.py +53 -0
  736. arthur_client/api_bindings/test/test_list_type.py +52 -0
  737. arthur_client/api_bindings/test/test_metric_functions_v1_api.py +38 -0
  738. arthur_client/api_bindings/test/test_metrics_arg_spec.py +54 -0
  739. arthur_client/api_bindings/test/test_metrics_calculation_job_spec.py +57 -0
  740. arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema.py +67 -0
  741. arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema_allowed_column_types_inner.py +60 -0
  742. arthur_client/api_bindings/test/test_metrics_column_parameter_schema.py +67 -0
  743. arthur_client/api_bindings/test/test_metrics_dataset_parameter_schema.py +59 -0
  744. arthur_client/api_bindings/test/test_metrics_literal_parameter_schema.py +60 -0
  745. arthur_client/api_bindings/test/test_metrics_query_result.py +56 -0
  746. arthur_client/api_bindings/test/test_metrics_result_filter_op.py +33 -0
  747. arthur_client/api_bindings/test/test_metrics_upload.py +56 -0
  748. arthur_client/api_bindings/test/test_metrics_upload_metrics_inner.py +104 -0
  749. arthur_client/api_bindings/test/test_metrics_upload_result.py +58 -0
  750. arthur_client/api_bindings/test/test_metrics_v1_api.py +59 -0
  751. arthur_client/api_bindings/test/test_metrics_version.py +62 -0
  752. arthur_client/api_bindings/test/test_metrics_versions_sort.py +33 -0
  753. arthur_client/api_bindings/test/test_model.py +133 -0
  754. arthur_client/api_bindings/test/test_model_metric_spec.py +80 -0
  755. arthur_client/api_bindings/test/test_model_metrics_schedule.py +57 -0
  756. arthur_client/api_bindings/test/test_model_problem_type.py +33 -0
  757. arthur_client/api_bindings/test/test_models_sort.py +33 -0
  758. arthur_client/api_bindings/test/test_models_v1_api.py +94 -0
  759. arthur_client/api_bindings/test/test_new_rule_request.py +59 -0
  760. arthur_client/api_bindings/test/test_not_found_error.py +51 -0
  761. arthur_client/api_bindings/test/test_numeric_metric.py +78 -0
  762. arthur_client/api_bindings/test/test_numeric_point.py +54 -0
  763. arthur_client/api_bindings/test/test_numeric_time_series.py +70 -0
  764. arthur_client/api_bindings/test/test_o_auth_v1_api.py +38 -0
  765. arthur_client/api_bindings/test/test_object_type.py +56 -0
  766. arthur_client/api_bindings/test/test_object_value.py +65 -0
  767. arthur_client/api_bindings/test/test_organization.py +58 -0
  768. arthur_client/api_bindings/test/test_organizations_v1_api.py +52 -0
  769. arthur_client/api_bindings/test/test_pagination.py +56 -0
  770. arthur_client/api_bindings/test/test_patch_alert_rule.py +62 -0
  771. arthur_client/api_bindings/test/test_patch_connector_spec.py +57 -0
  772. arthur_client/api_bindings/test/test_patch_data_plane.py +54 -0
  773. arthur_client/api_bindings/test/test_patch_data_plane_capabilities.py +51 -0
  774. arthur_client/api_bindings/test/test_patch_dataset.py +58 -0
  775. arthur_client/api_bindings/test/test_patch_dataset_locator.py +55 -0
  776. arthur_client/api_bindings/test/test_patch_group.py +52 -0
  777. arthur_client/api_bindings/test/test_patch_job.py +52 -0
  778. arthur_client/api_bindings/test/test_patch_model.py +55 -0
  779. arthur_client/api_bindings/test/test_patch_organization.py +51 -0
  780. arthur_client/api_bindings/test/test_patch_project.py +52 -0
  781. arthur_client/api_bindings/test/test_patch_service_account_user.py +51 -0
  782. arthur_client/api_bindings/test/test_patch_task_request.py +67 -0
  783. arthur_client/api_bindings/test/test_patch_user.py +54 -0
  784. arthur_client/api_bindings/test/test_patch_webhook.py +58 -0
  785. arthur_client/api_bindings/test/test_patch_workspace.py +52 -0
  786. arthur_client/api_bindings/test/test_permission.py +56 -0
  787. arthur_client/api_bindings/test/test_permission_name.py +33 -0
  788. arthur_client/api_bindings/test/test_permission_request_item.py +56 -0
  789. arthur_client/api_bindings/test/test_permission_response_item.py +58 -0
  790. arthur_client/api_bindings/test/test_permissions_request.py +62 -0
  791. arthur_client/api_bindings/test/test_permissions_response.py +64 -0
  792. arthur_client/api_bindings/test/test_pii_config.py +57 -0
  793. arthur_client/api_bindings/test/test_post_alert.py +71 -0
  794. arthur_client/api_bindings/test/test_post_alert_rule.py +70 -0
  795. arthur_client/api_bindings/test/test_post_alerts.py +78 -0
  796. arthur_client/api_bindings/test/test_post_connector_spec.py +67 -0
  797. arthur_client/api_bindings/test/test_post_data_plane.py +56 -0
  798. arthur_client/api_bindings/test/test_post_data_plane_association.py +54 -0
  799. arthur_client/api_bindings/test/test_post_data_retrieval_operation.py +63 -0
  800. arthur_client/api_bindings/test/test_post_dataset.py +75 -0
  801. arthur_client/api_bindings/test/test_post_dataset_join_spec.py +59 -0
  802. arthur_client/api_bindings/test/test_post_end_user.py +58 -0
  803. arthur_client/api_bindings/test/test_post_global_role_binding.py +56 -0
  804. arthur_client/api_bindings/test/test_post_group.py +53 -0
  805. arthur_client/api_bindings/test/test_post_group_membership.py +56 -0
  806. arthur_client/api_bindings/test/test_post_job.py +58 -0
  807. arthur_client/api_bindings/test/test_post_job_batch.py +68 -0
  808. arthur_client/api_bindings/test/test_post_job_kind.py +33 -0
  809. arthur_client/api_bindings/test/test_post_job_spec.py +65 -0
  810. arthur_client/api_bindings/test/test_post_link_task_request.py +55 -0
  811. arthur_client/api_bindings/test/test_post_metrics_query.py +63 -0
  812. arthur_client/api_bindings/test/test_post_metrics_query_result_filter.py +56 -0
  813. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_and_group.py +56 -0
  814. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_and_group_and_inner.py +68 -0
  815. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_or_group.py +56 -0
  816. arthur_client/api_bindings/test/test_post_metrics_query_result_filter_or_group_or_inner.py +68 -0
  817. arthur_client/api_bindings/test/test_post_metrics_query_time_range.py +54 -0
  818. arthur_client/api_bindings/test/test_post_metrics_versions.py +54 -0
  819. arthur_client/api_bindings/test/test_post_model.py +75 -0
  820. arthur_client/api_bindings/test/test_post_project.py +53 -0
  821. arthur_client/api_bindings/test/test_post_role_binding.py +54 -0
  822. arthur_client/api_bindings/test/test_post_service_account.py +52 -0
  823. arthur_client/api_bindings/test/test_post_task_request.py +63 -0
  824. arthur_client/api_bindings/test/test_post_task_validation_api_key.py +56 -0
  825. arthur_client/api_bindings/test/test_post_upsolve_tenant.py +54 -0
  826. arthur_client/api_bindings/test/test_post_webhook.py +61 -0
  827. arthur_client/api_bindings/test/test_post_workspace.py +52 -0
  828. arthur_client/api_bindings/test/test_project.py +63 -0
  829. arthur_client/api_bindings/test/test_project_bound_resource_metadata.py +54 -0
  830. arthur_client/api_bindings/test/test_project_sort.py +33 -0
  831. arthur_client/api_bindings/test/test_projects_v1_api.py +66 -0
  832. arthur_client/api_bindings/test/test_put_available_dataset.py +74 -0
  833. arthur_client/api_bindings/test/test_put_available_datasets.py +104 -0
  834. arthur_client/api_bindings/test/test_put_dataset_schema.py +68 -0
  835. arthur_client/api_bindings/test/test_put_job_state.py +52 -0
  836. arthur_client/api_bindings/test/test_put_model_metric_spec.py +78 -0
  837. arthur_client/api_bindings/test/test_put_model_metrics_schedule.py +55 -0
  838. arthur_client/api_bindings/test/test_put_retrieved_data.py +52 -0
  839. arthur_client/api_bindings/test/test_put_task_connection_info.py +60 -0
  840. arthur_client/api_bindings/test/test_put_task_state_cache_request.py +86 -0
  841. arthur_client/api_bindings/test/test_regenerate_task_validation_key_job_spec.py +53 -0
  842. arthur_client/api_bindings/test/test_regex_config.py +56 -0
  843. arthur_client/api_bindings/test/test_register_user.py +52 -0
  844. arthur_client/api_bindings/test/test_registration_v1_api.py +38 -0
  845. arthur_client/api_bindings/test/test_resource_kind.py +33 -0
  846. arthur_client/api_bindings/test/test_resource_list_aggregation_spec_schema.py +86 -0
  847. arthur_client/api_bindings/test/test_resource_list_alert_rule.py +128 -0
  848. arthur_client/api_bindings/test/test_resource_list_available_dataset.py +144 -0
  849. arthur_client/api_bindings/test/test_resource_list_connector_spec.py +128 -0
  850. arthur_client/api_bindings/test/test_resource_list_connector_type.py +66 -0
  851. arthur_client/api_bindings/test/test_resource_list_data_plane.py +86 -0
  852. arthur_client/api_bindings/test/test_resource_list_data_plane_association.py +114 -0
  853. arthur_client/api_bindings/test/test_resource_list_dataset.py +150 -0
  854. arthur_client/api_bindings/test/test_resource_list_group.py +80 -0
  855. arthur_client/api_bindings/test/test_resource_list_group_membership.py +90 -0
  856. arthur_client/api_bindings/test/test_resource_list_job_error.py +68 -0
  857. arthur_client/api_bindings/test/test_resource_list_job_log.py +72 -0
  858. arthur_client/api_bindings/test/test_resource_list_job_run.py +78 -0
  859. arthur_client/api_bindings/test/test_resource_list_metrics_version.py +78 -0
  860. arthur_client/api_bindings/test/test_resource_list_model.py +168 -0
  861. arthur_client/api_bindings/test/test_resource_list_permission.py +72 -0
  862. arthur_client/api_bindings/test/test_resource_list_project.py +80 -0
  863. arthur_client/api_bindings/test/test_resource_list_role.py +96 -0
  864. arthur_client/api_bindings/test/test_resource_list_role_binding.py +100 -0
  865. arthur_client/api_bindings/test/test_resource_list_user.py +90 -0
  866. arthur_client/api_bindings/test/test_resource_list_webhook.py +116 -0
  867. arthur_client/api_bindings/test/test_resource_list_workspace.py +76 -0
  868. arthur_client/api_bindings/test/test_result_filter.py +68 -0
  869. arthur_client/api_bindings/test/test_role.py +80 -0
  870. arthur_client/api_bindings/test/test_role_binding.py +84 -0
  871. arthur_client/api_bindings/test/test_role_sort.py +33 -0
  872. arthur_client/api_bindings/test/test_roles_v1_api.py +38 -0
  873. arthur_client/api_bindings/test/test_rule_response.py +68 -0
  874. arthur_client/api_bindings/test/test_rule_response_config.py +77 -0
  875. arthur_client/api_bindings/test/test_rule_scope.py +33 -0
  876. arthur_client/api_bindings/test/test_rule_type.py +33 -0
  877. arthur_client/api_bindings/test/test_scalar_type.py +52 -0
  878. arthur_client/api_bindings/test/test_schedule_jobs_job_spec.py +55 -0
  879. arthur_client/api_bindings/test/test_schema_inspection_job_spec.py +55 -0
  880. arthur_client/api_bindings/test/test_scope_schema_tag.py +33 -0
  881. arthur_client/api_bindings/test/test_sensitive_data_plane.py +74 -0
  882. arthur_client/api_bindings/test/test_sensitive_user.py +72 -0
  883. arthur_client/api_bindings/test/test_service_account_credentials.py +54 -0
  884. arthur_client/api_bindings/test/test_sketch_metric.py +78 -0
  885. arthur_client/api_bindings/test/test_sketch_point.py +54 -0
  886. arthur_client/api_bindings/test/test_sketch_time_series.py +70 -0
  887. arthur_client/api_bindings/test/test_sort_order.py +33 -0
  888. arthur_client/api_bindings/test/test_task_connection_info.py +64 -0
  889. arthur_client/api_bindings/test/test_task_mutation_response.py +52 -0
  890. arthur_client/api_bindings/test/test_task_read_response.py +71 -0
  891. arthur_client/api_bindings/test/test_task_response.py +84 -0
  892. arthur_client/api_bindings/test/test_task_validation_api_key.py +56 -0
  893. arthur_client/api_bindings/test/test_task_validation_key_regeneration_response.py +52 -0
  894. arthur_client/api_bindings/test/test_tasks_v1_api.py +108 -0
  895. arthur_client/api_bindings/test/test_toxicity_config.py +51 -0
  896. arthur_client/api_bindings/test/test_update_model_task_rules_job_spec.py +70 -0
  897. arthur_client/api_bindings/test/test_upsolve_token.py +52 -0
  898. arthur_client/api_bindings/test/test_upsolve_v1_api.py +38 -0
  899. arthur_client/api_bindings/test/test_user.py +70 -0
  900. arthur_client/api_bindings/test/test_user_credentials.py +52 -0
  901. arthur_client/api_bindings/test/test_user_service_account_credentials.py +76 -0
  902. arthur_client/api_bindings/test/test_user_sort.py +33 -0
  903. arthur_client/api_bindings/test/test_user_type.py +33 -0
  904. arthur_client/api_bindings/test/test_users_v1_api.py +101 -0
  905. arthur_client/api_bindings/test/test_validate_alert_rule_query_req.py +52 -0
  906. arthur_client/api_bindings/test/test_validation_error.py +60 -0
  907. arthur_client/api_bindings/test/test_validation_error_loc_inner.py +50 -0
  908. arthur_client/api_bindings/test/test_webhook.py +82 -0
  909. arthur_client/api_bindings/test/test_webhook_response.py +54 -0
  910. arthur_client/api_bindings/test/test_webhook_result.py +58 -0
  911. arthur_client/api_bindings/test/test_webhook_sort.py +33 -0
  912. arthur_client/api_bindings/test/test_webhooks_v1_api.py +73 -0
  913. arthur_client/api_bindings/test/test_workspace.py +60 -0
  914. arthur_client/api_bindings/test/test_workspace_sort.py +33 -0
  915. arthur_client/api_bindings/test/test_workspaces_v1_api.py +66 -0
  916. arthur_client/api_bindings_README.md +514 -0
  917. arthur_client/auth/__init__.py +4 -0
  918. arthur_client/auth/constants.py +1 -0
  919. arthur_client/auth/device_authorizer.py +74 -0
  920. arthur_client/auth/discovery.py +40 -0
  921. arthur_client/auth/oauth_api_config.py +38 -0
  922. arthur_client/auth/session.py +84 -0
  923. arthur_client-1.4.1186.dist-info/METADATA +40 -0
  924. arthur_client-1.4.1186.dist-info/RECORD +927 -0
  925. {arthur_client-1.4.0.dist-info → arthur_client-1.4.1186.dist-info}/WHEEL +1 -2
  926. arthur/client/__init__.py +0 -3
  927. arthur/client/auth/helpers.py +0 -123
  928. arthur/client/auth/refresh.py +0 -67
  929. arthur/client/helpers.py +0 -48
  930. arthur/client/http/helper.py +0 -47
  931. arthur/client/http/requests.py +0 -654
  932. arthur/client/http/validation.py +0 -197
  933. arthur/client/rest/__init__.py +0 -16
  934. arthur/client/rest/admin/__init__.py +0 -2
  935. arthur/client/rest/admin/client.py +0 -330
  936. arthur/client/rest/admin/models.py +0 -457
  937. arthur/client/rest/alerts/__init__.py +0 -2
  938. arthur/client/rest/alerts/client.py +0 -589
  939. arthur/client/rest/alerts/models.py +0 -695
  940. arthur/client/rest/bench/__init__.py +0 -2
  941. arthur/client/rest/bench/client.py +0 -280
  942. arthur/client/rest/bench/models.py +0 -229
  943. arthur/client/rest/client.py +0 -158
  944. arthur/client/rest/common/__init__.py +0 -2
  945. arthur/client/rest/common/client.py +0 -25
  946. arthur/client/rest/common/models.py +0 -317
  947. arthur/client/rest/enrichments/__init__.py +0 -2
  948. arthur/client/rest/enrichments/client.py +0 -352
  949. arthur/client/rest/enrichments/models.py +0 -483
  950. arthur/client/rest/inferences/__init__.py +0 -2
  951. arthur/client/rest/inferences/client.py +0 -268
  952. arthur/client/rest/inferences/models.py +0 -432
  953. arthur/client/rest/insights/__init__.py +0 -2
  954. arthur/client/rest/insights/client.py +0 -199
  955. arthur/client/rest/insights/models.py +0 -182
  956. arthur/client/rest/metrics/__init__.py +0 -2
  957. arthur/client/rest/metrics/client.py +0 -296
  958. arthur/client/rest/metrics/models.py +0 -325
  959. arthur/client/rest/model_groups/__init__.py +0 -2
  960. arthur/client/rest/model_groups/client.py +0 -153
  961. arthur/client/rest/model_groups/models.py +0 -80
  962. arthur/client/rest/models/__init__.py +0 -2
  963. arthur/client/rest/models/client.py +0 -534
  964. arthur/client/rest/models/models.py +0 -565
  965. arthur/client/rest/query/__init__.py +0 -2
  966. arthur/client/rest/query/client.py +0 -123
  967. arthur/client/rest/query/models.py +0 -133
  968. arthur/client/rest/users/__init__.py +0 -2
  969. arthur/client/rest/users/client.py +0 -171
  970. arthur/client/rest/users/models.py +0 -317
  971. arthur/client/types.py +0 -9
  972. arthur/client/version.py +0 -2
  973. arthur/common/__init__.py +0 -3
  974. arthur/common/constants.py +0 -5
  975. arthur/common/exceptions.py +0 -183
  976. arthur/common/log.py +0 -79
  977. arthur_client-1.4.0.dist-info/LICENSE +0 -21
  978. arthur_client-1.4.0.dist-info/METADATA +0 -49
  979. arthur_client-1.4.0.dist-info/RECORD +0 -58
  980. arthur_client-1.4.0.dist-info/top_level.txt +0 -1
  981. {arthur/client/auth → arthur_client}/__init__.py +0 -0
  982. {arthur/client/http → arthur_client/api_bindings/test}/__init__.py +0 -0
@@ -0,0 +1,1843 @@
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.patch_webhook import PatchWebhook
23
+ from arthur_client.api_bindings.models.post_webhook import PostWebhook
24
+ from arthur_client.api_bindings.models.resource_list_webhook import ResourceListWebhook
25
+ from arthur_client.api_bindings.models.sort_order import SortOrder
26
+ from arthur_client.api_bindings.models.webhook import Webhook
27
+ from arthur_client.api_bindings.models.webhook_result import WebhookResult
28
+ from arthur_client.api_bindings.models.webhook_sort import WebhookSort
29
+
30
+ from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
31
+ from arthur_client.api_bindings.api_response import ApiResponse
32
+ from arthur_client.api_bindings.rest import RESTResponseType
33
+
34
+
35
+ class WebhooksV1Api:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+
48
+ @validate_call
49
+ def delete_webhook(
50
+ self,
51
+ webhook_id: StrictStr,
52
+ _request_timeout: Union[
53
+ None,
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
59
+ ] = None,
60
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
+ _content_type: Optional[StrictStr] = None,
62
+ _headers: Optional[Dict[StrictStr, Any]] = None,
63
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
+ ) -> None:
65
+ """Delete Webhook.
66
+
67
+ Requires webhook_delete permission.
68
+
69
+ :param webhook_id: (required)
70
+ :type webhook_id: str
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._delete_webhook_serialize(
94
+ webhook_id=webhook_id,
95
+ _request_auth=_request_auth,
96
+ _content_type=_content_type,
97
+ _headers=_headers,
98
+ _host_index=_host_index
99
+ )
100
+
101
+ _response_types_map: Dict[str, Optional[str]] = {
102
+ '204': None,
103
+ '500': "InternalServerError",
104
+ '404': "NotFoundError",
105
+ '400': "BadRequestError",
106
+ '422': "HTTPValidationError",
107
+ }
108
+ response_data = self.api_client.call_api(
109
+ *_param,
110
+ _request_timeout=_request_timeout
111
+ )
112
+ response_data.read()
113
+ return self.api_client.response_deserialize(
114
+ response_data=response_data,
115
+ response_types_map=_response_types_map,
116
+ ).data
117
+
118
+
119
+ @validate_call
120
+ def delete_webhook_with_http_info(
121
+ self,
122
+ webhook_id: StrictStr,
123
+ _request_timeout: Union[
124
+ None,
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Tuple[
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Annotated[StrictFloat, Field(gt=0)]
129
+ ]
130
+ ] = None,
131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
132
+ _content_type: Optional[StrictStr] = None,
133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
135
+ ) -> ApiResponse[None]:
136
+ """Delete Webhook.
137
+
138
+ Requires webhook_delete permission.
139
+
140
+ :param webhook_id: (required)
141
+ :type webhook_id: str
142
+ :param _request_timeout: timeout setting for this request. If one
143
+ number provided, it will be total request
144
+ timeout. It can also be a pair (tuple) of
145
+ (connection, read) timeouts.
146
+ :type _request_timeout: int, tuple(int, int), optional
147
+ :param _request_auth: set to override the auth_settings for an a single
148
+ request; this effectively ignores the
149
+ authentication in the spec for a single request.
150
+ :type _request_auth: dict, optional
151
+ :param _content_type: force content-type for the request.
152
+ :type _content_type: str, Optional
153
+ :param _headers: set to override the headers for a single
154
+ request; this effectively ignores the headers
155
+ in the spec for a single request.
156
+ :type _headers: dict, optional
157
+ :param _host_index: set to override the host_index for a single
158
+ request; this effectively ignores the host_index
159
+ in the spec for a single request.
160
+ :type _host_index: int, optional
161
+ :return: Returns the result object.
162
+ """ # noqa: E501
163
+
164
+ _param = self._delete_webhook_serialize(
165
+ webhook_id=webhook_id,
166
+ _request_auth=_request_auth,
167
+ _content_type=_content_type,
168
+ _headers=_headers,
169
+ _host_index=_host_index
170
+ )
171
+
172
+ _response_types_map: Dict[str, Optional[str]] = {
173
+ '204': None,
174
+ '500': "InternalServerError",
175
+ '404': "NotFoundError",
176
+ '400': "BadRequestError",
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_webhook_without_preload_content(
192
+ self,
193
+ webhook_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 Webhook.
208
+
209
+ Requires webhook_delete permission.
210
+
211
+ :param webhook_id: (required)
212
+ :type webhook_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_webhook_serialize(
236
+ webhook_id=webhook_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
+ '400': "BadRequestError",
248
+ '422': "HTTPValidationError",
249
+ }
250
+ response_data = self.api_client.call_api(
251
+ *_param,
252
+ _request_timeout=_request_timeout
253
+ )
254
+ return response_data.response
255
+
256
+
257
+ def _delete_webhook_serialize(
258
+ self,
259
+ webhook_id,
260
+ _request_auth,
261
+ _content_type,
262
+ _headers,
263
+ _host_index,
264
+ ) -> RequestSerialized:
265
+
266
+ _host = None
267
+
268
+ _collection_formats: Dict[str, str] = {
269
+ }
270
+
271
+ _path_params: Dict[str, str] = {}
272
+ _query_params: List[Tuple[str, str]] = []
273
+ _header_params: Dict[str, Optional[str]] = _headers or {}
274
+ _form_params: List[Tuple[str, str]] = []
275
+ _files: Dict[
276
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
277
+ ] = {}
278
+ _body_params: Optional[bytes] = None
279
+
280
+ # process the path parameters
281
+ if webhook_id is not None:
282
+ _path_params['webhook_id'] = webhook_id
283
+ # process the query parameters
284
+ # process the header parameters
285
+ # process the form parameters
286
+ # process the body parameter
287
+
288
+
289
+ # set the HTTP header `Accept`
290
+ if 'Accept' not in _header_params:
291
+ _header_params['Accept'] = self.api_client.select_header_accept(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+
297
+
298
+ # authentication setting
299
+ _auth_settings: List[str] = [
300
+ 'OAuth2AuthorizationCode'
301
+ ]
302
+
303
+ return self.api_client.param_serialize(
304
+ method='DELETE',
305
+ resource_path='/api/v1/webhooks/{webhook_id}',
306
+ path_params=_path_params,
307
+ query_params=_query_params,
308
+ header_params=_header_params,
309
+ body=_body_params,
310
+ post_params=_form_params,
311
+ files=_files,
312
+ auth_settings=_auth_settings,
313
+ collection_formats=_collection_formats,
314
+ _host=_host,
315
+ _request_auth=_request_auth
316
+ )
317
+
318
+
319
+
320
+
321
+ @validate_call
322
+ def get_webhook(
323
+ self,
324
+ webhook_id: StrictStr,
325
+ _request_timeout: Union[
326
+ None,
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Tuple[
329
+ Annotated[StrictFloat, Field(gt=0)],
330
+ Annotated[StrictFloat, Field(gt=0)]
331
+ ]
332
+ ] = None,
333
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
334
+ _content_type: Optional[StrictStr] = None,
335
+ _headers: Optional[Dict[StrictStr, Any]] = None,
336
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
337
+ ) -> Webhook:
338
+ """Get Webhook.
339
+
340
+ Requires webhook_read permission.
341
+
342
+ :param webhook_id: (required)
343
+ :type webhook_id: str
344
+ :param _request_timeout: timeout setting for this request. If one
345
+ number provided, it will be total request
346
+ timeout. It can also be a pair (tuple) of
347
+ (connection, read) timeouts.
348
+ :type _request_timeout: int, tuple(int, int), optional
349
+ :param _request_auth: set to override the auth_settings for an a single
350
+ request; this effectively ignores the
351
+ authentication in the spec for a single request.
352
+ :type _request_auth: dict, optional
353
+ :param _content_type: force content-type for the request.
354
+ :type _content_type: str, Optional
355
+ :param _headers: set to override the headers for a single
356
+ request; this effectively ignores the headers
357
+ in the spec for a single request.
358
+ :type _headers: dict, optional
359
+ :param _host_index: set to override the host_index for a single
360
+ request; this effectively ignores the host_index
361
+ in the spec for a single request.
362
+ :type _host_index: int, optional
363
+ :return: Returns the result object.
364
+ """ # noqa: E501
365
+
366
+ _param = self._get_webhook_serialize(
367
+ webhook_id=webhook_id,
368
+ _request_auth=_request_auth,
369
+ _content_type=_content_type,
370
+ _headers=_headers,
371
+ _host_index=_host_index
372
+ )
373
+
374
+ _response_types_map: Dict[str, Optional[str]] = {
375
+ '200': "Webhook",
376
+ '500': "InternalServerError",
377
+ '404': "NotFoundError",
378
+ '422': "HTTPValidationError",
379
+ }
380
+ response_data = self.api_client.call_api(
381
+ *_param,
382
+ _request_timeout=_request_timeout
383
+ )
384
+ response_data.read()
385
+ return self.api_client.response_deserialize(
386
+ response_data=response_data,
387
+ response_types_map=_response_types_map,
388
+ ).data
389
+
390
+
391
+ @validate_call
392
+ def get_webhook_with_http_info(
393
+ self,
394
+ webhook_id: StrictStr,
395
+ _request_timeout: Union[
396
+ None,
397
+ Annotated[StrictFloat, Field(gt=0)],
398
+ Tuple[
399
+ Annotated[StrictFloat, Field(gt=0)],
400
+ Annotated[StrictFloat, Field(gt=0)]
401
+ ]
402
+ ] = None,
403
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
404
+ _content_type: Optional[StrictStr] = None,
405
+ _headers: Optional[Dict[StrictStr, Any]] = None,
406
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
407
+ ) -> ApiResponse[Webhook]:
408
+ """Get Webhook.
409
+
410
+ Requires webhook_read permission.
411
+
412
+ :param webhook_id: (required)
413
+ :type webhook_id: str
414
+ :param _request_timeout: timeout setting for this request. If one
415
+ number provided, it will be total request
416
+ timeout. It can also be a pair (tuple) of
417
+ (connection, read) timeouts.
418
+ :type _request_timeout: int, tuple(int, int), optional
419
+ :param _request_auth: set to override the auth_settings for an a single
420
+ request; this effectively ignores the
421
+ authentication in the spec for a single request.
422
+ :type _request_auth: dict, optional
423
+ :param _content_type: force content-type for the request.
424
+ :type _content_type: str, Optional
425
+ :param _headers: set to override the headers for a single
426
+ request; this effectively ignores the headers
427
+ in the spec for a single request.
428
+ :type _headers: dict, optional
429
+ :param _host_index: set to override the host_index for a single
430
+ request; this effectively ignores the host_index
431
+ in the spec for a single request.
432
+ :type _host_index: int, optional
433
+ :return: Returns the result object.
434
+ """ # noqa: E501
435
+
436
+ _param = self._get_webhook_serialize(
437
+ webhook_id=webhook_id,
438
+ _request_auth=_request_auth,
439
+ _content_type=_content_type,
440
+ _headers=_headers,
441
+ _host_index=_host_index
442
+ )
443
+
444
+ _response_types_map: Dict[str, Optional[str]] = {
445
+ '200': "Webhook",
446
+ '500': "InternalServerError",
447
+ '404': "NotFoundError",
448
+ '422': "HTTPValidationError",
449
+ }
450
+ response_data = self.api_client.call_api(
451
+ *_param,
452
+ _request_timeout=_request_timeout
453
+ )
454
+ response_data.read()
455
+ return self.api_client.response_deserialize(
456
+ response_data=response_data,
457
+ response_types_map=_response_types_map,
458
+ )
459
+
460
+
461
+ @validate_call
462
+ def get_webhook_without_preload_content(
463
+ self,
464
+ webhook_id: StrictStr,
465
+ _request_timeout: Union[
466
+ None,
467
+ Annotated[StrictFloat, Field(gt=0)],
468
+ Tuple[
469
+ Annotated[StrictFloat, Field(gt=0)],
470
+ Annotated[StrictFloat, Field(gt=0)]
471
+ ]
472
+ ] = None,
473
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
474
+ _content_type: Optional[StrictStr] = None,
475
+ _headers: Optional[Dict[StrictStr, Any]] = None,
476
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
477
+ ) -> RESTResponseType:
478
+ """Get Webhook.
479
+
480
+ Requires webhook_read permission.
481
+
482
+ :param webhook_id: (required)
483
+ :type webhook_id: str
484
+ :param _request_timeout: timeout setting for this request. If one
485
+ number provided, it will be total request
486
+ timeout. It can also be a pair (tuple) of
487
+ (connection, read) timeouts.
488
+ :type _request_timeout: int, tuple(int, int), optional
489
+ :param _request_auth: set to override the auth_settings for an a single
490
+ request; this effectively ignores the
491
+ authentication in the spec for a single request.
492
+ :type _request_auth: dict, optional
493
+ :param _content_type: force content-type for the request.
494
+ :type _content_type: str, Optional
495
+ :param _headers: set to override the headers for a single
496
+ request; this effectively ignores the headers
497
+ in the spec for a single request.
498
+ :type _headers: dict, optional
499
+ :param _host_index: set to override the host_index for a single
500
+ request; this effectively ignores the host_index
501
+ in the spec for a single request.
502
+ :type _host_index: int, optional
503
+ :return: Returns the result object.
504
+ """ # noqa: E501
505
+
506
+ _param = self._get_webhook_serialize(
507
+ webhook_id=webhook_id,
508
+ _request_auth=_request_auth,
509
+ _content_type=_content_type,
510
+ _headers=_headers,
511
+ _host_index=_host_index
512
+ )
513
+
514
+ _response_types_map: Dict[str, Optional[str]] = {
515
+ '200': "Webhook",
516
+ '500': "InternalServerError",
517
+ '404': "NotFoundError",
518
+ '422': "HTTPValidationError",
519
+ }
520
+ response_data = self.api_client.call_api(
521
+ *_param,
522
+ _request_timeout=_request_timeout
523
+ )
524
+ return response_data.response
525
+
526
+
527
+ def _get_webhook_serialize(
528
+ self,
529
+ webhook_id,
530
+ _request_auth,
531
+ _content_type,
532
+ _headers,
533
+ _host_index,
534
+ ) -> RequestSerialized:
535
+
536
+ _host = None
537
+
538
+ _collection_formats: Dict[str, str] = {
539
+ }
540
+
541
+ _path_params: Dict[str, str] = {}
542
+ _query_params: List[Tuple[str, str]] = []
543
+ _header_params: Dict[str, Optional[str]] = _headers or {}
544
+ _form_params: List[Tuple[str, str]] = []
545
+ _files: Dict[
546
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
547
+ ] = {}
548
+ _body_params: Optional[bytes] = None
549
+
550
+ # process the path parameters
551
+ if webhook_id is not None:
552
+ _path_params['webhook_id'] = webhook_id
553
+ # process the query parameters
554
+ # process the header parameters
555
+ # process the form parameters
556
+ # process the body parameter
557
+
558
+
559
+ # set the HTTP header `Accept`
560
+ if 'Accept' not in _header_params:
561
+ _header_params['Accept'] = self.api_client.select_header_accept(
562
+ [
563
+ 'application/json'
564
+ ]
565
+ )
566
+
567
+
568
+ # authentication setting
569
+ _auth_settings: List[str] = [
570
+ 'OAuth2AuthorizationCode'
571
+ ]
572
+
573
+ return self.api_client.param_serialize(
574
+ method='GET',
575
+ resource_path='/api/v1/webhooks/{webhook_id}',
576
+ path_params=_path_params,
577
+ query_params=_query_params,
578
+ header_params=_header_params,
579
+ body=_body_params,
580
+ post_params=_form_params,
581
+ files=_files,
582
+ auth_settings=_auth_settings,
583
+ collection_formats=_collection_formats,
584
+ _host=_host,
585
+ _request_auth=_request_auth
586
+ )
587
+
588
+
589
+
590
+
591
+ @validate_call
592
+ def get_workspace_webhooks(
593
+ self,
594
+ workspace_id: StrictStr,
595
+ sort: Annotated[Optional[WebhookSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
596
+ order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
597
+ name: Annotated[Optional[StrictStr], Field(description="Search term to filter webhooks by name.")] = None,
598
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
599
+ 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,
600
+ _request_timeout: Union[
601
+ None,
602
+ Annotated[StrictFloat, Field(gt=0)],
603
+ Tuple[
604
+ Annotated[StrictFloat, Field(gt=0)],
605
+ Annotated[StrictFloat, Field(gt=0)]
606
+ ]
607
+ ] = None,
608
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
609
+ _content_type: Optional[StrictStr] = None,
610
+ _headers: Optional[Dict[StrictStr, Any]] = None,
611
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
612
+ ) -> ResourceListWebhook:
613
+ """Get Webhooks.
614
+
615
+ Return a list of webhooks associated with a workspace. Requires workspace_list_webhooks permission.
616
+
617
+ :param workspace_id: (required)
618
+ :type workspace_id: str
619
+ :param sort: Override the field used for sorting the returned list. Optional.
620
+ :type sort: WebhookSort
621
+ :param order: Override the sort order used. Optional.
622
+ :type order: SortOrder
623
+ :param name: Search term to filter webhooks by name.
624
+ :type name: str
625
+ :param page: The page to return starting from 1 up to total_pages.
626
+ :type page: int
627
+ :param page_size: The number of records per page. The max is 1000.
628
+ :type page_size: int
629
+ :param _request_timeout: timeout setting for this request. If one
630
+ number provided, it will be total request
631
+ timeout. It can also be a pair (tuple) of
632
+ (connection, read) timeouts.
633
+ :type _request_timeout: int, tuple(int, int), optional
634
+ :param _request_auth: set to override the auth_settings for an a single
635
+ request; this effectively ignores the
636
+ authentication in the spec for a single request.
637
+ :type _request_auth: dict, optional
638
+ :param _content_type: force content-type for the request.
639
+ :type _content_type: str, Optional
640
+ :param _headers: set to override the headers for a single
641
+ request; this effectively ignores the headers
642
+ in the spec for a single request.
643
+ :type _headers: dict, optional
644
+ :param _host_index: set to override the host_index for a single
645
+ request; this effectively ignores the host_index
646
+ in the spec for a single request.
647
+ :type _host_index: int, optional
648
+ :return: Returns the result object.
649
+ """ # noqa: E501
650
+
651
+ _param = self._get_workspace_webhooks_serialize(
652
+ workspace_id=workspace_id,
653
+ sort=sort,
654
+ order=order,
655
+ name=name,
656
+ page=page,
657
+ page_size=page_size,
658
+ _request_auth=_request_auth,
659
+ _content_type=_content_type,
660
+ _headers=_headers,
661
+ _host_index=_host_index
662
+ )
663
+
664
+ _response_types_map: Dict[str, Optional[str]] = {
665
+ '200': "ResourceListWebhook",
666
+ '500': "InternalServerError",
667
+ '404': "NotFoundError",
668
+ '422': "HTTPValidationError",
669
+ }
670
+ response_data = self.api_client.call_api(
671
+ *_param,
672
+ _request_timeout=_request_timeout
673
+ )
674
+ response_data.read()
675
+ return self.api_client.response_deserialize(
676
+ response_data=response_data,
677
+ response_types_map=_response_types_map,
678
+ ).data
679
+
680
+
681
+ @validate_call
682
+ def get_workspace_webhooks_with_http_info(
683
+ self,
684
+ workspace_id: StrictStr,
685
+ sort: Annotated[Optional[WebhookSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
686
+ order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
687
+ name: Annotated[Optional[StrictStr], Field(description="Search term to filter webhooks by name.")] = None,
688
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
689
+ 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,
690
+ _request_timeout: Union[
691
+ None,
692
+ Annotated[StrictFloat, Field(gt=0)],
693
+ Tuple[
694
+ Annotated[StrictFloat, Field(gt=0)],
695
+ Annotated[StrictFloat, Field(gt=0)]
696
+ ]
697
+ ] = None,
698
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
699
+ _content_type: Optional[StrictStr] = None,
700
+ _headers: Optional[Dict[StrictStr, Any]] = None,
701
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
702
+ ) -> ApiResponse[ResourceListWebhook]:
703
+ """Get Webhooks.
704
+
705
+ Return a list of webhooks associated with a workspace. Requires workspace_list_webhooks permission.
706
+
707
+ :param workspace_id: (required)
708
+ :type workspace_id: str
709
+ :param sort: Override the field used for sorting the returned list. Optional.
710
+ :type sort: WebhookSort
711
+ :param order: Override the sort order used. Optional.
712
+ :type order: SortOrder
713
+ :param name: Search term to filter webhooks by name.
714
+ :type name: str
715
+ :param page: The page to return starting from 1 up to total_pages.
716
+ :type page: int
717
+ :param page_size: The number of records per page. The max is 1000.
718
+ :type page_size: int
719
+ :param _request_timeout: timeout setting for this request. If one
720
+ number provided, it will be total request
721
+ timeout. It can also be a pair (tuple) of
722
+ (connection, read) timeouts.
723
+ :type _request_timeout: int, tuple(int, int), optional
724
+ :param _request_auth: set to override the auth_settings for an a single
725
+ request; this effectively ignores the
726
+ authentication in the spec for a single request.
727
+ :type _request_auth: dict, optional
728
+ :param _content_type: force content-type for the request.
729
+ :type _content_type: str, Optional
730
+ :param _headers: set to override the headers for a single
731
+ request; this effectively ignores the headers
732
+ in the spec for a single request.
733
+ :type _headers: dict, optional
734
+ :param _host_index: set to override the host_index for a single
735
+ request; this effectively ignores the host_index
736
+ in the spec for a single request.
737
+ :type _host_index: int, optional
738
+ :return: Returns the result object.
739
+ """ # noqa: E501
740
+
741
+ _param = self._get_workspace_webhooks_serialize(
742
+ workspace_id=workspace_id,
743
+ sort=sort,
744
+ order=order,
745
+ name=name,
746
+ page=page,
747
+ page_size=page_size,
748
+ _request_auth=_request_auth,
749
+ _content_type=_content_type,
750
+ _headers=_headers,
751
+ _host_index=_host_index
752
+ )
753
+
754
+ _response_types_map: Dict[str, Optional[str]] = {
755
+ '200': "ResourceListWebhook",
756
+ '500': "InternalServerError",
757
+ '404': "NotFoundError",
758
+ '422': "HTTPValidationError",
759
+ }
760
+ response_data = self.api_client.call_api(
761
+ *_param,
762
+ _request_timeout=_request_timeout
763
+ )
764
+ response_data.read()
765
+ return self.api_client.response_deserialize(
766
+ response_data=response_data,
767
+ response_types_map=_response_types_map,
768
+ )
769
+
770
+
771
+ @validate_call
772
+ def get_workspace_webhooks_without_preload_content(
773
+ self,
774
+ workspace_id: StrictStr,
775
+ sort: Annotated[Optional[WebhookSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
776
+ order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
777
+ name: Annotated[Optional[StrictStr], Field(description="Search term to filter webhooks by name.")] = None,
778
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
779
+ 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,
780
+ _request_timeout: Union[
781
+ None,
782
+ Annotated[StrictFloat, Field(gt=0)],
783
+ Tuple[
784
+ Annotated[StrictFloat, Field(gt=0)],
785
+ Annotated[StrictFloat, Field(gt=0)]
786
+ ]
787
+ ] = None,
788
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
789
+ _content_type: Optional[StrictStr] = None,
790
+ _headers: Optional[Dict[StrictStr, Any]] = None,
791
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
792
+ ) -> RESTResponseType:
793
+ """Get Webhooks.
794
+
795
+ Return a list of webhooks associated with a workspace. Requires workspace_list_webhooks permission.
796
+
797
+ :param workspace_id: (required)
798
+ :type workspace_id: str
799
+ :param sort: Override the field used for sorting the returned list. Optional.
800
+ :type sort: WebhookSort
801
+ :param order: Override the sort order used. Optional.
802
+ :type order: SortOrder
803
+ :param name: Search term to filter webhooks by name.
804
+ :type name: str
805
+ :param page: The page to return starting from 1 up to total_pages.
806
+ :type page: int
807
+ :param page_size: The number of records per page. The max is 1000.
808
+ :type page_size: int
809
+ :param _request_timeout: timeout setting for this request. If one
810
+ number provided, it will be total request
811
+ timeout. It can also be a pair (tuple) of
812
+ (connection, read) timeouts.
813
+ :type _request_timeout: int, tuple(int, int), optional
814
+ :param _request_auth: set to override the auth_settings for an a single
815
+ request; this effectively ignores the
816
+ authentication in the spec for a single request.
817
+ :type _request_auth: dict, optional
818
+ :param _content_type: force content-type for the request.
819
+ :type _content_type: str, Optional
820
+ :param _headers: set to override the headers for a single
821
+ request; this effectively ignores the headers
822
+ in the spec for a single request.
823
+ :type _headers: dict, optional
824
+ :param _host_index: set to override the host_index for a single
825
+ request; this effectively ignores the host_index
826
+ in the spec for a single request.
827
+ :type _host_index: int, optional
828
+ :return: Returns the result object.
829
+ """ # noqa: E501
830
+
831
+ _param = self._get_workspace_webhooks_serialize(
832
+ workspace_id=workspace_id,
833
+ sort=sort,
834
+ order=order,
835
+ name=name,
836
+ page=page,
837
+ page_size=page_size,
838
+ _request_auth=_request_auth,
839
+ _content_type=_content_type,
840
+ _headers=_headers,
841
+ _host_index=_host_index
842
+ )
843
+
844
+ _response_types_map: Dict[str, Optional[str]] = {
845
+ '200': "ResourceListWebhook",
846
+ '500': "InternalServerError",
847
+ '404': "NotFoundError",
848
+ '422': "HTTPValidationError",
849
+ }
850
+ response_data = self.api_client.call_api(
851
+ *_param,
852
+ _request_timeout=_request_timeout
853
+ )
854
+ return response_data.response
855
+
856
+
857
+ def _get_workspace_webhooks_serialize(
858
+ self,
859
+ workspace_id,
860
+ sort,
861
+ order,
862
+ name,
863
+ page,
864
+ page_size,
865
+ _request_auth,
866
+ _content_type,
867
+ _headers,
868
+ _host_index,
869
+ ) -> RequestSerialized:
870
+
871
+ _host = None
872
+
873
+ _collection_formats: Dict[str, str] = {
874
+ }
875
+
876
+ _path_params: Dict[str, str] = {}
877
+ _query_params: List[Tuple[str, str]] = []
878
+ _header_params: Dict[str, Optional[str]] = _headers or {}
879
+ _form_params: List[Tuple[str, str]] = []
880
+ _files: Dict[
881
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
882
+ ] = {}
883
+ _body_params: Optional[bytes] = None
884
+
885
+ # process the path parameters
886
+ if workspace_id is not None:
887
+ _path_params['workspace_id'] = workspace_id
888
+ # process the query parameters
889
+ if sort is not None:
890
+
891
+ _query_params.append(('sort', sort.value))
892
+
893
+ if order is not None:
894
+
895
+ _query_params.append(('order', order.value))
896
+
897
+ if name is not None:
898
+
899
+ _query_params.append(('name', name))
900
+
901
+ if page is not None:
902
+
903
+ _query_params.append(('page', page))
904
+
905
+ if page_size is not None:
906
+
907
+ _query_params.append(('page_size', page_size))
908
+
909
+ # process the header parameters
910
+ # process the form parameters
911
+ # process the body parameter
912
+
913
+
914
+ # set the HTTP header `Accept`
915
+ if 'Accept' not in _header_params:
916
+ _header_params['Accept'] = self.api_client.select_header_accept(
917
+ [
918
+ 'application/json'
919
+ ]
920
+ )
921
+
922
+
923
+ # authentication setting
924
+ _auth_settings: List[str] = [
925
+ 'OAuth2AuthorizationCode'
926
+ ]
927
+
928
+ return self.api_client.param_serialize(
929
+ method='GET',
930
+ resource_path='/api/v1/workspaces/{workspace_id}/webhooks',
931
+ path_params=_path_params,
932
+ query_params=_query_params,
933
+ header_params=_header_params,
934
+ body=_body_params,
935
+ post_params=_form_params,
936
+ files=_files,
937
+ auth_settings=_auth_settings,
938
+ collection_formats=_collection_formats,
939
+ _host=_host,
940
+ _request_auth=_request_auth
941
+ )
942
+
943
+
944
+
945
+
946
+ @validate_call
947
+ def patch_webhook(
948
+ self,
949
+ webhook_id: StrictStr,
950
+ patch_webhook: PatchWebhook,
951
+ _request_timeout: Union[
952
+ None,
953
+ Annotated[StrictFloat, Field(gt=0)],
954
+ Tuple[
955
+ Annotated[StrictFloat, Field(gt=0)],
956
+ Annotated[StrictFloat, Field(gt=0)]
957
+ ]
958
+ ] = None,
959
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
960
+ _content_type: Optional[StrictStr] = None,
961
+ _headers: Optional[Dict[StrictStr, Any]] = None,
962
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
963
+ ) -> Webhook:
964
+ """Patch Webhook.
965
+
966
+ Requires webhook_update permission.
967
+
968
+ :param webhook_id: (required)
969
+ :type webhook_id: str
970
+ :param patch_webhook: (required)
971
+ :type patch_webhook: PatchWebhook
972
+ :param _request_timeout: timeout setting for this request. If one
973
+ number provided, it will be total request
974
+ timeout. It can also be a pair (tuple) of
975
+ (connection, read) timeouts.
976
+ :type _request_timeout: int, tuple(int, int), optional
977
+ :param _request_auth: set to override the auth_settings for an a single
978
+ request; this effectively ignores the
979
+ authentication in the spec for a single request.
980
+ :type _request_auth: dict, optional
981
+ :param _content_type: force content-type for the request.
982
+ :type _content_type: str, Optional
983
+ :param _headers: set to override the headers for a single
984
+ request; this effectively ignores the headers
985
+ in the spec for a single request.
986
+ :type _headers: dict, optional
987
+ :param _host_index: set to override the host_index for a single
988
+ request; this effectively ignores the host_index
989
+ in the spec for a single request.
990
+ :type _host_index: int, optional
991
+ :return: Returns the result object.
992
+ """ # noqa: E501
993
+
994
+ _param = self._patch_webhook_serialize(
995
+ webhook_id=webhook_id,
996
+ patch_webhook=patch_webhook,
997
+ _request_auth=_request_auth,
998
+ _content_type=_content_type,
999
+ _headers=_headers,
1000
+ _host_index=_host_index
1001
+ )
1002
+
1003
+ _response_types_map: Dict[str, Optional[str]] = {
1004
+ '200': "Webhook",
1005
+ '500': "InternalServerError",
1006
+ '404': "NotFoundError",
1007
+ '422': "HTTPValidationError",
1008
+ }
1009
+ response_data = self.api_client.call_api(
1010
+ *_param,
1011
+ _request_timeout=_request_timeout
1012
+ )
1013
+ response_data.read()
1014
+ return self.api_client.response_deserialize(
1015
+ response_data=response_data,
1016
+ response_types_map=_response_types_map,
1017
+ ).data
1018
+
1019
+
1020
+ @validate_call
1021
+ def patch_webhook_with_http_info(
1022
+ self,
1023
+ webhook_id: StrictStr,
1024
+ patch_webhook: PatchWebhook,
1025
+ _request_timeout: Union[
1026
+ None,
1027
+ Annotated[StrictFloat, Field(gt=0)],
1028
+ Tuple[
1029
+ Annotated[StrictFloat, Field(gt=0)],
1030
+ Annotated[StrictFloat, Field(gt=0)]
1031
+ ]
1032
+ ] = None,
1033
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1034
+ _content_type: Optional[StrictStr] = None,
1035
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1036
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1037
+ ) -> ApiResponse[Webhook]:
1038
+ """Patch Webhook.
1039
+
1040
+ Requires webhook_update permission.
1041
+
1042
+ :param webhook_id: (required)
1043
+ :type webhook_id: str
1044
+ :param patch_webhook: (required)
1045
+ :type patch_webhook: PatchWebhook
1046
+ :param _request_timeout: timeout setting for this request. If one
1047
+ number provided, it will be total request
1048
+ timeout. It can also be a pair (tuple) of
1049
+ (connection, read) timeouts.
1050
+ :type _request_timeout: int, tuple(int, int), optional
1051
+ :param _request_auth: set to override the auth_settings for an a single
1052
+ request; this effectively ignores the
1053
+ authentication in the spec for a single request.
1054
+ :type _request_auth: dict, optional
1055
+ :param _content_type: force content-type for the request.
1056
+ :type _content_type: str, Optional
1057
+ :param _headers: set to override the headers for a single
1058
+ request; this effectively ignores the headers
1059
+ in the spec for a single request.
1060
+ :type _headers: dict, optional
1061
+ :param _host_index: set to override the host_index for a single
1062
+ request; this effectively ignores the host_index
1063
+ in the spec for a single request.
1064
+ :type _host_index: int, optional
1065
+ :return: Returns the result object.
1066
+ """ # noqa: E501
1067
+
1068
+ _param = self._patch_webhook_serialize(
1069
+ webhook_id=webhook_id,
1070
+ patch_webhook=patch_webhook,
1071
+ _request_auth=_request_auth,
1072
+ _content_type=_content_type,
1073
+ _headers=_headers,
1074
+ _host_index=_host_index
1075
+ )
1076
+
1077
+ _response_types_map: Dict[str, Optional[str]] = {
1078
+ '200': "Webhook",
1079
+ '500': "InternalServerError",
1080
+ '404': "NotFoundError",
1081
+ '422': "HTTPValidationError",
1082
+ }
1083
+ response_data = self.api_client.call_api(
1084
+ *_param,
1085
+ _request_timeout=_request_timeout
1086
+ )
1087
+ response_data.read()
1088
+ return self.api_client.response_deserialize(
1089
+ response_data=response_data,
1090
+ response_types_map=_response_types_map,
1091
+ )
1092
+
1093
+
1094
+ @validate_call
1095
+ def patch_webhook_without_preload_content(
1096
+ self,
1097
+ webhook_id: StrictStr,
1098
+ patch_webhook: PatchWebhook,
1099
+ _request_timeout: Union[
1100
+ None,
1101
+ Annotated[StrictFloat, Field(gt=0)],
1102
+ Tuple[
1103
+ Annotated[StrictFloat, Field(gt=0)],
1104
+ Annotated[StrictFloat, Field(gt=0)]
1105
+ ]
1106
+ ] = None,
1107
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1108
+ _content_type: Optional[StrictStr] = None,
1109
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1110
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1111
+ ) -> RESTResponseType:
1112
+ """Patch Webhook.
1113
+
1114
+ Requires webhook_update permission.
1115
+
1116
+ :param webhook_id: (required)
1117
+ :type webhook_id: str
1118
+ :param patch_webhook: (required)
1119
+ :type patch_webhook: PatchWebhook
1120
+ :param _request_timeout: timeout setting for this request. If one
1121
+ number provided, it will be total request
1122
+ timeout. It can also be a pair (tuple) of
1123
+ (connection, read) timeouts.
1124
+ :type _request_timeout: int, tuple(int, int), optional
1125
+ :param _request_auth: set to override the auth_settings for an a single
1126
+ request; this effectively ignores the
1127
+ authentication in the spec for a single request.
1128
+ :type _request_auth: dict, optional
1129
+ :param _content_type: force content-type for the request.
1130
+ :type _content_type: str, Optional
1131
+ :param _headers: set to override the headers for a single
1132
+ request; this effectively ignores the headers
1133
+ in the spec for a single request.
1134
+ :type _headers: dict, optional
1135
+ :param _host_index: set to override the host_index for a single
1136
+ request; this effectively ignores the host_index
1137
+ in the spec for a single request.
1138
+ :type _host_index: int, optional
1139
+ :return: Returns the result object.
1140
+ """ # noqa: E501
1141
+
1142
+ _param = self._patch_webhook_serialize(
1143
+ webhook_id=webhook_id,
1144
+ patch_webhook=patch_webhook,
1145
+ _request_auth=_request_auth,
1146
+ _content_type=_content_type,
1147
+ _headers=_headers,
1148
+ _host_index=_host_index
1149
+ )
1150
+
1151
+ _response_types_map: Dict[str, Optional[str]] = {
1152
+ '200': "Webhook",
1153
+ '500': "InternalServerError",
1154
+ '404': "NotFoundError",
1155
+ '422': "HTTPValidationError",
1156
+ }
1157
+ response_data = self.api_client.call_api(
1158
+ *_param,
1159
+ _request_timeout=_request_timeout
1160
+ )
1161
+ return response_data.response
1162
+
1163
+
1164
+ def _patch_webhook_serialize(
1165
+ self,
1166
+ webhook_id,
1167
+ patch_webhook,
1168
+ _request_auth,
1169
+ _content_type,
1170
+ _headers,
1171
+ _host_index,
1172
+ ) -> RequestSerialized:
1173
+
1174
+ _host = None
1175
+
1176
+ _collection_formats: Dict[str, str] = {
1177
+ }
1178
+
1179
+ _path_params: Dict[str, str] = {}
1180
+ _query_params: List[Tuple[str, str]] = []
1181
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1182
+ _form_params: List[Tuple[str, str]] = []
1183
+ _files: Dict[
1184
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1185
+ ] = {}
1186
+ _body_params: Optional[bytes] = None
1187
+
1188
+ # process the path parameters
1189
+ if webhook_id is not None:
1190
+ _path_params['webhook_id'] = webhook_id
1191
+ # process the query parameters
1192
+ # process the header parameters
1193
+ # process the form parameters
1194
+ # process the body parameter
1195
+ if patch_webhook is not None:
1196
+ _body_params = patch_webhook
1197
+
1198
+
1199
+ # set the HTTP header `Accept`
1200
+ if 'Accept' not in _header_params:
1201
+ _header_params['Accept'] = self.api_client.select_header_accept(
1202
+ [
1203
+ 'application/json'
1204
+ ]
1205
+ )
1206
+
1207
+ # set the HTTP header `Content-Type`
1208
+ if _content_type:
1209
+ _header_params['Content-Type'] = _content_type
1210
+ else:
1211
+ _default_content_type = (
1212
+ self.api_client.select_header_content_type(
1213
+ [
1214
+ 'application/json'
1215
+ ]
1216
+ )
1217
+ )
1218
+ if _default_content_type is not None:
1219
+ _header_params['Content-Type'] = _default_content_type
1220
+
1221
+ # authentication setting
1222
+ _auth_settings: List[str] = [
1223
+ 'OAuth2AuthorizationCode'
1224
+ ]
1225
+
1226
+ return self.api_client.param_serialize(
1227
+ method='PATCH',
1228
+ resource_path='/api/v1/webhooks/{webhook_id}',
1229
+ path_params=_path_params,
1230
+ query_params=_query_params,
1231
+ header_params=_header_params,
1232
+ body=_body_params,
1233
+ post_params=_form_params,
1234
+ files=_files,
1235
+ auth_settings=_auth_settings,
1236
+ collection_formats=_collection_formats,
1237
+ _host=_host,
1238
+ _request_auth=_request_auth
1239
+ )
1240
+
1241
+
1242
+
1243
+
1244
+ @validate_call
1245
+ def post_test_webhook(
1246
+ self,
1247
+ workspace_id: StrictStr,
1248
+ post_webhook: PostWebhook,
1249
+ _request_timeout: Union[
1250
+ None,
1251
+ Annotated[StrictFloat, Field(gt=0)],
1252
+ Tuple[
1253
+ Annotated[StrictFloat, Field(gt=0)],
1254
+ Annotated[StrictFloat, Field(gt=0)]
1255
+ ]
1256
+ ] = None,
1257
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1258
+ _content_type: Optional[StrictStr] = None,
1259
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1260
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1261
+ ) -> WebhookResult:
1262
+ """Post Test Webhook.
1263
+
1264
+ Tests a webhook in a given workspace. Requires workspace_test_webhook permission.
1265
+
1266
+ :param workspace_id: (required)
1267
+ :type workspace_id: str
1268
+ :param post_webhook: (required)
1269
+ :type post_webhook: PostWebhook
1270
+ :param _request_timeout: timeout setting for this request. If one
1271
+ number provided, it will be total request
1272
+ timeout. It can also be a pair (tuple) of
1273
+ (connection, read) timeouts.
1274
+ :type _request_timeout: int, tuple(int, int), optional
1275
+ :param _request_auth: set to override the auth_settings for an a single
1276
+ request; this effectively ignores the
1277
+ authentication in the spec for a single request.
1278
+ :type _request_auth: dict, optional
1279
+ :param _content_type: force content-type for the request.
1280
+ :type _content_type: str, Optional
1281
+ :param _headers: set to override the headers for a single
1282
+ request; this effectively ignores the headers
1283
+ in the spec for a single request.
1284
+ :type _headers: dict, optional
1285
+ :param _host_index: set to override the host_index for a single
1286
+ request; this effectively ignores the host_index
1287
+ in the spec for a single request.
1288
+ :type _host_index: int, optional
1289
+ :return: Returns the result object.
1290
+ """ # noqa: E501
1291
+
1292
+ _param = self._post_test_webhook_serialize(
1293
+ workspace_id=workspace_id,
1294
+ post_webhook=post_webhook,
1295
+ _request_auth=_request_auth,
1296
+ _content_type=_content_type,
1297
+ _headers=_headers,
1298
+ _host_index=_host_index
1299
+ )
1300
+
1301
+ _response_types_map: Dict[str, Optional[str]] = {
1302
+ '200': "WebhookResult",
1303
+ '500': "InternalServerError",
1304
+ '400': "BadRequestError",
1305
+ '404': "NotFoundError",
1306
+ '422': "HTTPValidationError",
1307
+ }
1308
+ response_data = self.api_client.call_api(
1309
+ *_param,
1310
+ _request_timeout=_request_timeout
1311
+ )
1312
+ response_data.read()
1313
+ return self.api_client.response_deserialize(
1314
+ response_data=response_data,
1315
+ response_types_map=_response_types_map,
1316
+ ).data
1317
+
1318
+
1319
+ @validate_call
1320
+ def post_test_webhook_with_http_info(
1321
+ self,
1322
+ workspace_id: StrictStr,
1323
+ post_webhook: PostWebhook,
1324
+ _request_timeout: Union[
1325
+ None,
1326
+ Annotated[StrictFloat, Field(gt=0)],
1327
+ Tuple[
1328
+ Annotated[StrictFloat, Field(gt=0)],
1329
+ Annotated[StrictFloat, Field(gt=0)]
1330
+ ]
1331
+ ] = None,
1332
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1333
+ _content_type: Optional[StrictStr] = None,
1334
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1335
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1336
+ ) -> ApiResponse[WebhookResult]:
1337
+ """Post Test Webhook.
1338
+
1339
+ Tests a webhook in a given workspace. Requires workspace_test_webhook permission.
1340
+
1341
+ :param workspace_id: (required)
1342
+ :type workspace_id: str
1343
+ :param post_webhook: (required)
1344
+ :type post_webhook: PostWebhook
1345
+ :param _request_timeout: timeout setting for this request. If one
1346
+ number provided, it will be total request
1347
+ timeout. It can also be a pair (tuple) of
1348
+ (connection, read) timeouts.
1349
+ :type _request_timeout: int, tuple(int, int), optional
1350
+ :param _request_auth: set to override the auth_settings for an a single
1351
+ request; this effectively ignores the
1352
+ authentication in the spec for a single request.
1353
+ :type _request_auth: dict, optional
1354
+ :param _content_type: force content-type for the request.
1355
+ :type _content_type: str, Optional
1356
+ :param _headers: set to override the headers for a single
1357
+ request; this effectively ignores the headers
1358
+ in the spec for a single request.
1359
+ :type _headers: dict, optional
1360
+ :param _host_index: set to override the host_index for a single
1361
+ request; this effectively ignores the host_index
1362
+ in the spec for a single request.
1363
+ :type _host_index: int, optional
1364
+ :return: Returns the result object.
1365
+ """ # noqa: E501
1366
+
1367
+ _param = self._post_test_webhook_serialize(
1368
+ workspace_id=workspace_id,
1369
+ post_webhook=post_webhook,
1370
+ _request_auth=_request_auth,
1371
+ _content_type=_content_type,
1372
+ _headers=_headers,
1373
+ _host_index=_host_index
1374
+ )
1375
+
1376
+ _response_types_map: Dict[str, Optional[str]] = {
1377
+ '200': "WebhookResult",
1378
+ '500': "InternalServerError",
1379
+ '400': "BadRequestError",
1380
+ '404': "NotFoundError",
1381
+ '422': "HTTPValidationError",
1382
+ }
1383
+ response_data = self.api_client.call_api(
1384
+ *_param,
1385
+ _request_timeout=_request_timeout
1386
+ )
1387
+ response_data.read()
1388
+ return self.api_client.response_deserialize(
1389
+ response_data=response_data,
1390
+ response_types_map=_response_types_map,
1391
+ )
1392
+
1393
+
1394
+ @validate_call
1395
+ def post_test_webhook_without_preload_content(
1396
+ self,
1397
+ workspace_id: StrictStr,
1398
+ post_webhook: PostWebhook,
1399
+ _request_timeout: Union[
1400
+ None,
1401
+ Annotated[StrictFloat, Field(gt=0)],
1402
+ Tuple[
1403
+ Annotated[StrictFloat, Field(gt=0)],
1404
+ Annotated[StrictFloat, Field(gt=0)]
1405
+ ]
1406
+ ] = None,
1407
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1408
+ _content_type: Optional[StrictStr] = None,
1409
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1410
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1411
+ ) -> RESTResponseType:
1412
+ """Post Test Webhook.
1413
+
1414
+ Tests a webhook in a given workspace. Requires workspace_test_webhook permission.
1415
+
1416
+ :param workspace_id: (required)
1417
+ :type workspace_id: str
1418
+ :param post_webhook: (required)
1419
+ :type post_webhook: PostWebhook
1420
+ :param _request_timeout: timeout setting for this request. If one
1421
+ number provided, it will be total request
1422
+ timeout. It can also be a pair (tuple) of
1423
+ (connection, read) timeouts.
1424
+ :type _request_timeout: int, tuple(int, int), optional
1425
+ :param _request_auth: set to override the auth_settings for an a single
1426
+ request; this effectively ignores the
1427
+ authentication in the spec for a single request.
1428
+ :type _request_auth: dict, optional
1429
+ :param _content_type: force content-type for the request.
1430
+ :type _content_type: str, Optional
1431
+ :param _headers: set to override the headers for a single
1432
+ request; this effectively ignores the headers
1433
+ in the spec for a single request.
1434
+ :type _headers: dict, optional
1435
+ :param _host_index: set to override the host_index for a single
1436
+ request; this effectively ignores the host_index
1437
+ in the spec for a single request.
1438
+ :type _host_index: int, optional
1439
+ :return: Returns the result object.
1440
+ """ # noqa: E501
1441
+
1442
+ _param = self._post_test_webhook_serialize(
1443
+ workspace_id=workspace_id,
1444
+ post_webhook=post_webhook,
1445
+ _request_auth=_request_auth,
1446
+ _content_type=_content_type,
1447
+ _headers=_headers,
1448
+ _host_index=_host_index
1449
+ )
1450
+
1451
+ _response_types_map: Dict[str, Optional[str]] = {
1452
+ '200': "WebhookResult",
1453
+ '500': "InternalServerError",
1454
+ '400': "BadRequestError",
1455
+ '404': "NotFoundError",
1456
+ '422': "HTTPValidationError",
1457
+ }
1458
+ response_data = self.api_client.call_api(
1459
+ *_param,
1460
+ _request_timeout=_request_timeout
1461
+ )
1462
+ return response_data.response
1463
+
1464
+
1465
+ def _post_test_webhook_serialize(
1466
+ self,
1467
+ workspace_id,
1468
+ post_webhook,
1469
+ _request_auth,
1470
+ _content_type,
1471
+ _headers,
1472
+ _host_index,
1473
+ ) -> RequestSerialized:
1474
+
1475
+ _host = None
1476
+
1477
+ _collection_formats: Dict[str, str] = {
1478
+ }
1479
+
1480
+ _path_params: Dict[str, str] = {}
1481
+ _query_params: List[Tuple[str, str]] = []
1482
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1483
+ _form_params: List[Tuple[str, str]] = []
1484
+ _files: Dict[
1485
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1486
+ ] = {}
1487
+ _body_params: Optional[bytes] = None
1488
+
1489
+ # process the path parameters
1490
+ if workspace_id is not None:
1491
+ _path_params['workspace_id'] = workspace_id
1492
+ # process the query parameters
1493
+ # process the header parameters
1494
+ # process the form parameters
1495
+ # process the body parameter
1496
+ if post_webhook is not None:
1497
+ _body_params = post_webhook
1498
+
1499
+
1500
+ # set the HTTP header `Accept`
1501
+ if 'Accept' not in _header_params:
1502
+ _header_params['Accept'] = self.api_client.select_header_accept(
1503
+ [
1504
+ 'application/json'
1505
+ ]
1506
+ )
1507
+
1508
+ # set the HTTP header `Content-Type`
1509
+ if _content_type:
1510
+ _header_params['Content-Type'] = _content_type
1511
+ else:
1512
+ _default_content_type = (
1513
+ self.api_client.select_header_content_type(
1514
+ [
1515
+ 'application/json'
1516
+ ]
1517
+ )
1518
+ )
1519
+ if _default_content_type is not None:
1520
+ _header_params['Content-Type'] = _default_content_type
1521
+
1522
+ # authentication setting
1523
+ _auth_settings: List[str] = [
1524
+ 'OAuth2AuthorizationCode'
1525
+ ]
1526
+
1527
+ return self.api_client.param_serialize(
1528
+ method='POST',
1529
+ resource_path='/api/v1/workspaces/{workspace_id}/webhooks/test',
1530
+ path_params=_path_params,
1531
+ query_params=_query_params,
1532
+ header_params=_header_params,
1533
+ body=_body_params,
1534
+ post_params=_form_params,
1535
+ files=_files,
1536
+ auth_settings=_auth_settings,
1537
+ collection_formats=_collection_formats,
1538
+ _host=_host,
1539
+ _request_auth=_request_auth
1540
+ )
1541
+
1542
+
1543
+
1544
+
1545
+ @validate_call
1546
+ def post_webhook(
1547
+ self,
1548
+ workspace_id: StrictStr,
1549
+ post_webhook: PostWebhook,
1550
+ _request_timeout: Union[
1551
+ None,
1552
+ Annotated[StrictFloat, Field(gt=0)],
1553
+ Tuple[
1554
+ Annotated[StrictFloat, Field(gt=0)],
1555
+ Annotated[StrictFloat, Field(gt=0)]
1556
+ ]
1557
+ ] = None,
1558
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1559
+ _content_type: Optional[StrictStr] = None,
1560
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1561
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1562
+ ) -> Webhook:
1563
+ """Post Webhook.
1564
+
1565
+ Creates a webhook in a given workspace. Requires workspace_create_webhook permission.
1566
+
1567
+ :param workspace_id: (required)
1568
+ :type workspace_id: str
1569
+ :param post_webhook: (required)
1570
+ :type post_webhook: PostWebhook
1571
+ :param _request_timeout: timeout setting for this request. If one
1572
+ number provided, it will be total request
1573
+ timeout. It can also be a pair (tuple) of
1574
+ (connection, read) timeouts.
1575
+ :type _request_timeout: int, tuple(int, int), optional
1576
+ :param _request_auth: set to override the auth_settings for an a single
1577
+ request; this effectively ignores the
1578
+ authentication in the spec for a single request.
1579
+ :type _request_auth: dict, optional
1580
+ :param _content_type: force content-type for the request.
1581
+ :type _content_type: str, Optional
1582
+ :param _headers: set to override the headers for a single
1583
+ request; this effectively ignores the headers
1584
+ in the spec for a single request.
1585
+ :type _headers: dict, optional
1586
+ :param _host_index: set to override the host_index for a single
1587
+ request; this effectively ignores the host_index
1588
+ in the spec for a single request.
1589
+ :type _host_index: int, optional
1590
+ :return: Returns the result object.
1591
+ """ # noqa: E501
1592
+
1593
+ _param = self._post_webhook_serialize(
1594
+ workspace_id=workspace_id,
1595
+ post_webhook=post_webhook,
1596
+ _request_auth=_request_auth,
1597
+ _content_type=_content_type,
1598
+ _headers=_headers,
1599
+ _host_index=_host_index
1600
+ )
1601
+
1602
+ _response_types_map: Dict[str, Optional[str]] = {
1603
+ '200': "Webhook",
1604
+ '500': "InternalServerError",
1605
+ '400': "BadRequestError",
1606
+ '404': "NotFoundError",
1607
+ '422': "HTTPValidationError",
1608
+ }
1609
+ response_data = self.api_client.call_api(
1610
+ *_param,
1611
+ _request_timeout=_request_timeout
1612
+ )
1613
+ response_data.read()
1614
+ return self.api_client.response_deserialize(
1615
+ response_data=response_data,
1616
+ response_types_map=_response_types_map,
1617
+ ).data
1618
+
1619
+
1620
+ @validate_call
1621
+ def post_webhook_with_http_info(
1622
+ self,
1623
+ workspace_id: StrictStr,
1624
+ post_webhook: PostWebhook,
1625
+ _request_timeout: Union[
1626
+ None,
1627
+ Annotated[StrictFloat, Field(gt=0)],
1628
+ Tuple[
1629
+ Annotated[StrictFloat, Field(gt=0)],
1630
+ Annotated[StrictFloat, Field(gt=0)]
1631
+ ]
1632
+ ] = None,
1633
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1634
+ _content_type: Optional[StrictStr] = None,
1635
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1636
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1637
+ ) -> ApiResponse[Webhook]:
1638
+ """Post Webhook.
1639
+
1640
+ Creates a webhook in a given workspace. Requires workspace_create_webhook permission.
1641
+
1642
+ :param workspace_id: (required)
1643
+ :type workspace_id: str
1644
+ :param post_webhook: (required)
1645
+ :type post_webhook: PostWebhook
1646
+ :param _request_timeout: timeout setting for this request. If one
1647
+ number provided, it will be total request
1648
+ timeout. It can also be a pair (tuple) of
1649
+ (connection, read) timeouts.
1650
+ :type _request_timeout: int, tuple(int, int), optional
1651
+ :param _request_auth: set to override the auth_settings for an a single
1652
+ request; this effectively ignores the
1653
+ authentication in the spec for a single request.
1654
+ :type _request_auth: dict, optional
1655
+ :param _content_type: force content-type for the request.
1656
+ :type _content_type: str, Optional
1657
+ :param _headers: set to override the headers for a single
1658
+ request; this effectively ignores the headers
1659
+ in the spec for a single request.
1660
+ :type _headers: dict, optional
1661
+ :param _host_index: set to override the host_index for a single
1662
+ request; this effectively ignores the host_index
1663
+ in the spec for a single request.
1664
+ :type _host_index: int, optional
1665
+ :return: Returns the result object.
1666
+ """ # noqa: E501
1667
+
1668
+ _param = self._post_webhook_serialize(
1669
+ workspace_id=workspace_id,
1670
+ post_webhook=post_webhook,
1671
+ _request_auth=_request_auth,
1672
+ _content_type=_content_type,
1673
+ _headers=_headers,
1674
+ _host_index=_host_index
1675
+ )
1676
+
1677
+ _response_types_map: Dict[str, Optional[str]] = {
1678
+ '200': "Webhook",
1679
+ '500': "InternalServerError",
1680
+ '400': "BadRequestError",
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 post_webhook_without_preload_content(
1697
+ self,
1698
+ workspace_id: StrictStr,
1699
+ post_webhook: PostWebhook,
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
+ """Post Webhook.
1714
+
1715
+ Creates a webhook in a given workspace. Requires workspace_create_webhook permission.
1716
+
1717
+ :param workspace_id: (required)
1718
+ :type workspace_id: str
1719
+ :param post_webhook: (required)
1720
+ :type post_webhook: PostWebhook
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._post_webhook_serialize(
1744
+ workspace_id=workspace_id,
1745
+ post_webhook=post_webhook,
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': "Webhook",
1754
+ '500': "InternalServerError",
1755
+ '400': "BadRequestError",
1756
+ '404': "NotFoundError",
1757
+ '422': "HTTPValidationError",
1758
+ }
1759
+ response_data = self.api_client.call_api(
1760
+ *_param,
1761
+ _request_timeout=_request_timeout
1762
+ )
1763
+ return response_data.response
1764
+
1765
+
1766
+ def _post_webhook_serialize(
1767
+ self,
1768
+ workspace_id,
1769
+ post_webhook,
1770
+ _request_auth,
1771
+ _content_type,
1772
+ _headers,
1773
+ _host_index,
1774
+ ) -> RequestSerialized:
1775
+
1776
+ _host = None
1777
+
1778
+ _collection_formats: Dict[str, str] = {
1779
+ }
1780
+
1781
+ _path_params: Dict[str, str] = {}
1782
+ _query_params: List[Tuple[str, str]] = []
1783
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1784
+ _form_params: List[Tuple[str, str]] = []
1785
+ _files: Dict[
1786
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1787
+ ] = {}
1788
+ _body_params: Optional[bytes] = None
1789
+
1790
+ # process the path parameters
1791
+ if workspace_id is not None:
1792
+ _path_params['workspace_id'] = workspace_id
1793
+ # process the query parameters
1794
+ # process the header parameters
1795
+ # process the form parameters
1796
+ # process the body parameter
1797
+ if post_webhook is not None:
1798
+ _body_params = post_webhook
1799
+
1800
+
1801
+ # set the HTTP header `Accept`
1802
+ if 'Accept' not in _header_params:
1803
+ _header_params['Accept'] = self.api_client.select_header_accept(
1804
+ [
1805
+ 'application/json'
1806
+ ]
1807
+ )
1808
+
1809
+ # set the HTTP header `Content-Type`
1810
+ if _content_type:
1811
+ _header_params['Content-Type'] = _content_type
1812
+ else:
1813
+ _default_content_type = (
1814
+ self.api_client.select_header_content_type(
1815
+ [
1816
+ 'application/json'
1817
+ ]
1818
+ )
1819
+ )
1820
+ if _default_content_type is not None:
1821
+ _header_params['Content-Type'] = _default_content_type
1822
+
1823
+ # authentication setting
1824
+ _auth_settings: List[str] = [
1825
+ 'OAuth2AuthorizationCode'
1826
+ ]
1827
+
1828
+ return self.api_client.param_serialize(
1829
+ method='POST',
1830
+ resource_path='/api/v1/workspaces/{workspace_id}/webhooks',
1831
+ path_params=_path_params,
1832
+ query_params=_query_params,
1833
+ header_params=_header_params,
1834
+ body=_body_params,
1835
+ post_params=_form_params,
1836
+ files=_files,
1837
+ auth_settings=_auth_settings,
1838
+ collection_formats=_collection_formats,
1839
+ _host=_host,
1840
+ _request_auth=_request_auth
1841
+ )
1842
+
1843
+