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