arthur-client 1.4.0__py3-none-any.whl → 1.4.1055__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.4.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 -182
- 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.4.0.dist-info/LICENSE +0 -21
- arthur_client-1.4.0.dist-info/METADATA +0 -49
- arthur_client-1.4.0.dist-info/RECORD +0 -58
- arthur_client-1.4.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,1541 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
import warnings
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
|
+
from typing_extensions import Annotated
|
18
|
+
|
19
|
+
from pydantic import Field, StrictStr
|
20
|
+
from typing import Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from arthur_client.api_bindings.models.patch_project import PatchProject
|
23
|
+
from arthur_client.api_bindings.models.post_project import PostProject
|
24
|
+
from arthur_client.api_bindings.models.project import Project
|
25
|
+
from arthur_client.api_bindings.models.project_sort import ProjectSort
|
26
|
+
from arthur_client.api_bindings.models.resource_list_project import ResourceListProject
|
27
|
+
from arthur_client.api_bindings.models.sort_order import SortOrder
|
28
|
+
|
29
|
+
from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
|
30
|
+
from arthur_client.api_bindings.api_response import ApiResponse
|
31
|
+
from arthur_client.api_bindings.rest import RESTResponseType
|
32
|
+
|
33
|
+
|
34
|
+
class ProjectsV1Api:
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
36
|
+
Ref: https://openapi-generator.tech
|
37
|
+
|
38
|
+
Do not edit the class manually.
|
39
|
+
"""
|
40
|
+
|
41
|
+
def __init__(self, api_client=None) -> None:
|
42
|
+
if api_client is None:
|
43
|
+
api_client = ApiClient.get_default()
|
44
|
+
self.api_client = api_client
|
45
|
+
|
46
|
+
|
47
|
+
@validate_call
|
48
|
+
def delete_project(
|
49
|
+
self,
|
50
|
+
project_id: StrictStr,
|
51
|
+
_request_timeout: Union[
|
52
|
+
None,
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
54
|
+
Tuple[
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
57
|
+
]
|
58
|
+
] = None,
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
63
|
+
) -> None:
|
64
|
+
"""Delete Project.
|
65
|
+
|
66
|
+
Requires project_delete permission.
|
67
|
+
|
68
|
+
:param project_id: (required)
|
69
|
+
:type project_id: str
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
71
|
+
number provided, it will be total request
|
72
|
+
timeout. It can also be a pair (tuple) of
|
73
|
+
(connection, read) timeouts.
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
76
|
+
request; this effectively ignores the
|
77
|
+
authentication in the spec for a single request.
|
78
|
+
:type _request_auth: dict, optional
|
79
|
+
:param _content_type: force content-type for the request.
|
80
|
+
:type _content_type: str, Optional
|
81
|
+
:param _headers: set to override the headers for a single
|
82
|
+
request; this effectively ignores the headers
|
83
|
+
in the spec for a single request.
|
84
|
+
:type _headers: dict, optional
|
85
|
+
:param _host_index: set to override the host_index for a single
|
86
|
+
request; this effectively ignores the host_index
|
87
|
+
in the spec for a single request.
|
88
|
+
:type _host_index: int, optional
|
89
|
+
:return: Returns the result object.
|
90
|
+
""" # noqa: E501
|
91
|
+
|
92
|
+
_param = self._delete_project_serialize(
|
93
|
+
project_id=project_id,
|
94
|
+
_request_auth=_request_auth,
|
95
|
+
_content_type=_content_type,
|
96
|
+
_headers=_headers,
|
97
|
+
_host_index=_host_index
|
98
|
+
)
|
99
|
+
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
101
|
+
'204': None,
|
102
|
+
'500': "InternalServerError",
|
103
|
+
'404': "NotFoundError",
|
104
|
+
'400': "BadRequestError",
|
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_project_with_http_info(
|
120
|
+
self,
|
121
|
+
project_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 Project.
|
136
|
+
|
137
|
+
Requires project_delete permission.
|
138
|
+
|
139
|
+
:param project_id: (required)
|
140
|
+
:type project_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_project_serialize(
|
164
|
+
project_id=project_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
|
+
'400': "BadRequestError",
|
176
|
+
'422': "HTTPValidationError",
|
177
|
+
}
|
178
|
+
response_data = self.api_client.call_api(
|
179
|
+
*_param,
|
180
|
+
_request_timeout=_request_timeout
|
181
|
+
)
|
182
|
+
response_data.read()
|
183
|
+
return self.api_client.response_deserialize(
|
184
|
+
response_data=response_data,
|
185
|
+
response_types_map=_response_types_map,
|
186
|
+
)
|
187
|
+
|
188
|
+
|
189
|
+
@validate_call
|
190
|
+
def delete_project_without_preload_content(
|
191
|
+
self,
|
192
|
+
project_id: StrictStr,
|
193
|
+
_request_timeout: Union[
|
194
|
+
None,
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
196
|
+
Tuple[
|
197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
199
|
+
]
|
200
|
+
] = None,
|
201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
202
|
+
_content_type: Optional[StrictStr] = None,
|
203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
205
|
+
) -> RESTResponseType:
|
206
|
+
"""Delete Project.
|
207
|
+
|
208
|
+
Requires project_delete permission.
|
209
|
+
|
210
|
+
:param project_id: (required)
|
211
|
+
:type project_id: str
|
212
|
+
:param _request_timeout: timeout setting for this request. If one
|
213
|
+
number provided, it will be total request
|
214
|
+
timeout. It can also be a pair (tuple) of
|
215
|
+
(connection, read) timeouts.
|
216
|
+
:type _request_timeout: int, tuple(int, int), optional
|
217
|
+
:param _request_auth: set to override the auth_settings for an a single
|
218
|
+
request; this effectively ignores the
|
219
|
+
authentication in the spec for a single request.
|
220
|
+
:type _request_auth: dict, optional
|
221
|
+
:param _content_type: force content-type for the request.
|
222
|
+
:type _content_type: str, Optional
|
223
|
+
:param _headers: set to override the headers for a single
|
224
|
+
request; this effectively ignores the headers
|
225
|
+
in the spec for a single request.
|
226
|
+
:type _headers: dict, optional
|
227
|
+
:param _host_index: set to override the host_index for a single
|
228
|
+
request; this effectively ignores the host_index
|
229
|
+
in the spec for a single request.
|
230
|
+
:type _host_index: int, optional
|
231
|
+
:return: Returns the result object.
|
232
|
+
""" # noqa: E501
|
233
|
+
|
234
|
+
_param = self._delete_project_serialize(
|
235
|
+
project_id=project_id,
|
236
|
+
_request_auth=_request_auth,
|
237
|
+
_content_type=_content_type,
|
238
|
+
_headers=_headers,
|
239
|
+
_host_index=_host_index
|
240
|
+
)
|
241
|
+
|
242
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
243
|
+
'204': None,
|
244
|
+
'500': "InternalServerError",
|
245
|
+
'404': "NotFoundError",
|
246
|
+
'400': "BadRequestError",
|
247
|
+
'422': "HTTPValidationError",
|
248
|
+
}
|
249
|
+
response_data = self.api_client.call_api(
|
250
|
+
*_param,
|
251
|
+
_request_timeout=_request_timeout
|
252
|
+
)
|
253
|
+
return response_data.response
|
254
|
+
|
255
|
+
|
256
|
+
def _delete_project_serialize(
|
257
|
+
self,
|
258
|
+
project_id,
|
259
|
+
_request_auth,
|
260
|
+
_content_type,
|
261
|
+
_headers,
|
262
|
+
_host_index,
|
263
|
+
) -> RequestSerialized:
|
264
|
+
|
265
|
+
_host = None
|
266
|
+
|
267
|
+
_collection_formats: Dict[str, str] = {
|
268
|
+
}
|
269
|
+
|
270
|
+
_path_params: Dict[str, str] = {}
|
271
|
+
_query_params: List[Tuple[str, str]] = []
|
272
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
273
|
+
_form_params: List[Tuple[str, str]] = []
|
274
|
+
_files: Dict[
|
275
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
276
|
+
] = {}
|
277
|
+
_body_params: Optional[bytes] = None
|
278
|
+
|
279
|
+
# process the path parameters
|
280
|
+
if project_id is not None:
|
281
|
+
_path_params['project_id'] = project_id
|
282
|
+
# process the query parameters
|
283
|
+
# process the header parameters
|
284
|
+
# process the form parameters
|
285
|
+
# process the body parameter
|
286
|
+
|
287
|
+
|
288
|
+
# set the HTTP header `Accept`
|
289
|
+
if 'Accept' not in _header_params:
|
290
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
291
|
+
[
|
292
|
+
'application/json'
|
293
|
+
]
|
294
|
+
)
|
295
|
+
|
296
|
+
|
297
|
+
# authentication setting
|
298
|
+
_auth_settings: List[str] = [
|
299
|
+
'OAuth2AuthorizationCode'
|
300
|
+
]
|
301
|
+
|
302
|
+
return self.api_client.param_serialize(
|
303
|
+
method='DELETE',
|
304
|
+
resource_path='/api/v1/projects/{project_id}',
|
305
|
+
path_params=_path_params,
|
306
|
+
query_params=_query_params,
|
307
|
+
header_params=_header_params,
|
308
|
+
body=_body_params,
|
309
|
+
post_params=_form_params,
|
310
|
+
files=_files,
|
311
|
+
auth_settings=_auth_settings,
|
312
|
+
collection_formats=_collection_formats,
|
313
|
+
_host=_host,
|
314
|
+
_request_auth=_request_auth
|
315
|
+
)
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
@validate_call
|
321
|
+
def get_project(
|
322
|
+
self,
|
323
|
+
project_id: StrictStr,
|
324
|
+
_request_timeout: Union[
|
325
|
+
None,
|
326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
327
|
+
Tuple[
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
329
|
+
Annotated[StrictFloat, Field(gt=0)]
|
330
|
+
]
|
331
|
+
] = None,
|
332
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
333
|
+
_content_type: Optional[StrictStr] = None,
|
334
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
335
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
336
|
+
) -> Project:
|
337
|
+
"""Get Project
|
338
|
+
|
339
|
+
Fetches project by ID. Requires project_read permission.
|
340
|
+
|
341
|
+
:param project_id: (required)
|
342
|
+
:type project_id: str
|
343
|
+
:param _request_timeout: timeout setting for this request. If one
|
344
|
+
number provided, it will be total request
|
345
|
+
timeout. It can also be a pair (tuple) of
|
346
|
+
(connection, read) timeouts.
|
347
|
+
:type _request_timeout: int, tuple(int, int), optional
|
348
|
+
:param _request_auth: set to override the auth_settings for an a single
|
349
|
+
request; this effectively ignores the
|
350
|
+
authentication in the spec for a single request.
|
351
|
+
:type _request_auth: dict, optional
|
352
|
+
:param _content_type: force content-type for the request.
|
353
|
+
:type _content_type: str, Optional
|
354
|
+
:param _headers: set to override the headers for a single
|
355
|
+
request; this effectively ignores the headers
|
356
|
+
in the spec for a single request.
|
357
|
+
:type _headers: dict, optional
|
358
|
+
:param _host_index: set to override the host_index for a single
|
359
|
+
request; this effectively ignores the host_index
|
360
|
+
in the spec for a single request.
|
361
|
+
:type _host_index: int, optional
|
362
|
+
:return: Returns the result object.
|
363
|
+
""" # noqa: E501
|
364
|
+
|
365
|
+
_param = self._get_project_serialize(
|
366
|
+
project_id=project_id,
|
367
|
+
_request_auth=_request_auth,
|
368
|
+
_content_type=_content_type,
|
369
|
+
_headers=_headers,
|
370
|
+
_host_index=_host_index
|
371
|
+
)
|
372
|
+
|
373
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
374
|
+
'200': "Project",
|
375
|
+
'500': "InternalServerError",
|
376
|
+
'404': "NotFoundError",
|
377
|
+
'422': "HTTPValidationError",
|
378
|
+
}
|
379
|
+
response_data = self.api_client.call_api(
|
380
|
+
*_param,
|
381
|
+
_request_timeout=_request_timeout
|
382
|
+
)
|
383
|
+
response_data.read()
|
384
|
+
return self.api_client.response_deserialize(
|
385
|
+
response_data=response_data,
|
386
|
+
response_types_map=_response_types_map,
|
387
|
+
).data
|
388
|
+
|
389
|
+
|
390
|
+
@validate_call
|
391
|
+
def get_project_with_http_info(
|
392
|
+
self,
|
393
|
+
project_id: StrictStr,
|
394
|
+
_request_timeout: Union[
|
395
|
+
None,
|
396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
397
|
+
Tuple[
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
399
|
+
Annotated[StrictFloat, Field(gt=0)]
|
400
|
+
]
|
401
|
+
] = None,
|
402
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
403
|
+
_content_type: Optional[StrictStr] = None,
|
404
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
406
|
+
) -> ApiResponse[Project]:
|
407
|
+
"""Get Project
|
408
|
+
|
409
|
+
Fetches project by ID. Requires project_read permission.
|
410
|
+
|
411
|
+
:param project_id: (required)
|
412
|
+
:type project_id: str
|
413
|
+
:param _request_timeout: timeout setting for this request. If one
|
414
|
+
number provided, it will be total request
|
415
|
+
timeout. It can also be a pair (tuple) of
|
416
|
+
(connection, read) timeouts.
|
417
|
+
:type _request_timeout: int, tuple(int, int), optional
|
418
|
+
:param _request_auth: set to override the auth_settings for an a single
|
419
|
+
request; this effectively ignores the
|
420
|
+
authentication in the spec for a single request.
|
421
|
+
:type _request_auth: dict, optional
|
422
|
+
:param _content_type: force content-type for the request.
|
423
|
+
:type _content_type: str, Optional
|
424
|
+
:param _headers: set to override the headers for a single
|
425
|
+
request; this effectively ignores the headers
|
426
|
+
in the spec for a single request.
|
427
|
+
:type _headers: dict, optional
|
428
|
+
:param _host_index: set to override the host_index for a single
|
429
|
+
request; this effectively ignores the host_index
|
430
|
+
in the spec for a single request.
|
431
|
+
:type _host_index: int, optional
|
432
|
+
:return: Returns the result object.
|
433
|
+
""" # noqa: E501
|
434
|
+
|
435
|
+
_param = self._get_project_serialize(
|
436
|
+
project_id=project_id,
|
437
|
+
_request_auth=_request_auth,
|
438
|
+
_content_type=_content_type,
|
439
|
+
_headers=_headers,
|
440
|
+
_host_index=_host_index
|
441
|
+
)
|
442
|
+
|
443
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
444
|
+
'200': "Project",
|
445
|
+
'500': "InternalServerError",
|
446
|
+
'404': "NotFoundError",
|
447
|
+
'422': "HTTPValidationError",
|
448
|
+
}
|
449
|
+
response_data = self.api_client.call_api(
|
450
|
+
*_param,
|
451
|
+
_request_timeout=_request_timeout
|
452
|
+
)
|
453
|
+
response_data.read()
|
454
|
+
return self.api_client.response_deserialize(
|
455
|
+
response_data=response_data,
|
456
|
+
response_types_map=_response_types_map,
|
457
|
+
)
|
458
|
+
|
459
|
+
|
460
|
+
@validate_call
|
461
|
+
def get_project_without_preload_content(
|
462
|
+
self,
|
463
|
+
project_id: StrictStr,
|
464
|
+
_request_timeout: Union[
|
465
|
+
None,
|
466
|
+
Annotated[StrictFloat, Field(gt=0)],
|
467
|
+
Tuple[
|
468
|
+
Annotated[StrictFloat, Field(gt=0)],
|
469
|
+
Annotated[StrictFloat, Field(gt=0)]
|
470
|
+
]
|
471
|
+
] = None,
|
472
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
473
|
+
_content_type: Optional[StrictStr] = None,
|
474
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
475
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
476
|
+
) -> RESTResponseType:
|
477
|
+
"""Get Project
|
478
|
+
|
479
|
+
Fetches project by ID. Requires project_read permission.
|
480
|
+
|
481
|
+
:param project_id: (required)
|
482
|
+
:type project_id: str
|
483
|
+
:param _request_timeout: timeout setting for this request. If one
|
484
|
+
number provided, it will be total request
|
485
|
+
timeout. It can also be a pair (tuple) of
|
486
|
+
(connection, read) timeouts.
|
487
|
+
:type _request_timeout: int, tuple(int, int), optional
|
488
|
+
:param _request_auth: set to override the auth_settings for an a single
|
489
|
+
request; this effectively ignores the
|
490
|
+
authentication in the spec for a single request.
|
491
|
+
:type _request_auth: dict, optional
|
492
|
+
:param _content_type: force content-type for the request.
|
493
|
+
:type _content_type: str, Optional
|
494
|
+
:param _headers: set to override the headers for a single
|
495
|
+
request; this effectively ignores the headers
|
496
|
+
in the spec for a single request.
|
497
|
+
:type _headers: dict, optional
|
498
|
+
:param _host_index: set to override the host_index for a single
|
499
|
+
request; this effectively ignores the host_index
|
500
|
+
in the spec for a single request.
|
501
|
+
:type _host_index: int, optional
|
502
|
+
:return: Returns the result object.
|
503
|
+
""" # noqa: E501
|
504
|
+
|
505
|
+
_param = self._get_project_serialize(
|
506
|
+
project_id=project_id,
|
507
|
+
_request_auth=_request_auth,
|
508
|
+
_content_type=_content_type,
|
509
|
+
_headers=_headers,
|
510
|
+
_host_index=_host_index
|
511
|
+
)
|
512
|
+
|
513
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
514
|
+
'200': "Project",
|
515
|
+
'500': "InternalServerError",
|
516
|
+
'404': "NotFoundError",
|
517
|
+
'422': "HTTPValidationError",
|
518
|
+
}
|
519
|
+
response_data = self.api_client.call_api(
|
520
|
+
*_param,
|
521
|
+
_request_timeout=_request_timeout
|
522
|
+
)
|
523
|
+
return response_data.response
|
524
|
+
|
525
|
+
|
526
|
+
def _get_project_serialize(
|
527
|
+
self,
|
528
|
+
project_id,
|
529
|
+
_request_auth,
|
530
|
+
_content_type,
|
531
|
+
_headers,
|
532
|
+
_host_index,
|
533
|
+
) -> RequestSerialized:
|
534
|
+
|
535
|
+
_host = None
|
536
|
+
|
537
|
+
_collection_formats: Dict[str, str] = {
|
538
|
+
}
|
539
|
+
|
540
|
+
_path_params: Dict[str, str] = {}
|
541
|
+
_query_params: List[Tuple[str, str]] = []
|
542
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
543
|
+
_form_params: List[Tuple[str, str]] = []
|
544
|
+
_files: Dict[
|
545
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
546
|
+
] = {}
|
547
|
+
_body_params: Optional[bytes] = None
|
548
|
+
|
549
|
+
# process the path parameters
|
550
|
+
if project_id is not None:
|
551
|
+
_path_params['project_id'] = project_id
|
552
|
+
# process the query parameters
|
553
|
+
# process the header parameters
|
554
|
+
# process the form parameters
|
555
|
+
# process the body parameter
|
556
|
+
|
557
|
+
|
558
|
+
# set the HTTP header `Accept`
|
559
|
+
if 'Accept' not in _header_params:
|
560
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
561
|
+
[
|
562
|
+
'application/json'
|
563
|
+
]
|
564
|
+
)
|
565
|
+
|
566
|
+
|
567
|
+
# authentication setting
|
568
|
+
_auth_settings: List[str] = [
|
569
|
+
'OAuth2AuthorizationCode'
|
570
|
+
]
|
571
|
+
|
572
|
+
return self.api_client.param_serialize(
|
573
|
+
method='GET',
|
574
|
+
resource_path='/api/v1/projects/{project_id}',
|
575
|
+
path_params=_path_params,
|
576
|
+
query_params=_query_params,
|
577
|
+
header_params=_header_params,
|
578
|
+
body=_body_params,
|
579
|
+
post_params=_form_params,
|
580
|
+
files=_files,
|
581
|
+
auth_settings=_auth_settings,
|
582
|
+
collection_formats=_collection_formats,
|
583
|
+
_host=_host,
|
584
|
+
_request_auth=_request_auth
|
585
|
+
)
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
@validate_call
|
591
|
+
def get_projects(
|
592
|
+
self,
|
593
|
+
workspace_id: StrictStr,
|
594
|
+
sort: Annotated[Optional[ProjectSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
595
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
596
|
+
name: Annotated[Optional[StrictStr], Field(description="Search term to filter workspaces by name.")] = None,
|
597
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
598
|
+
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,
|
599
|
+
_request_timeout: Union[
|
600
|
+
None,
|
601
|
+
Annotated[StrictFloat, Field(gt=0)],
|
602
|
+
Tuple[
|
603
|
+
Annotated[StrictFloat, Field(gt=0)],
|
604
|
+
Annotated[StrictFloat, Field(gt=0)]
|
605
|
+
]
|
606
|
+
] = None,
|
607
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
608
|
+
_content_type: Optional[StrictStr] = None,
|
609
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
610
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
611
|
+
) -> ResourceListProject:
|
612
|
+
"""Get Projects.
|
613
|
+
|
614
|
+
Requires workspace_list_projects permission.
|
615
|
+
|
616
|
+
:param workspace_id: (required)
|
617
|
+
:type workspace_id: str
|
618
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
619
|
+
:type sort: ProjectSort
|
620
|
+
:param order: Override the sort order used. Optional.
|
621
|
+
:type order: SortOrder
|
622
|
+
:param name: Search term to filter workspaces by name.
|
623
|
+
:type name: str
|
624
|
+
:param page: The page to return starting from 1 up to total_pages.
|
625
|
+
:type page: int
|
626
|
+
:param page_size: The number of records per page. The max is 1000.
|
627
|
+
:type page_size: int
|
628
|
+
:param _request_timeout: timeout setting for this request. If one
|
629
|
+
number provided, it will be total request
|
630
|
+
timeout. It can also be a pair (tuple) of
|
631
|
+
(connection, read) timeouts.
|
632
|
+
:type _request_timeout: int, tuple(int, int), optional
|
633
|
+
:param _request_auth: set to override the auth_settings for an a single
|
634
|
+
request; this effectively ignores the
|
635
|
+
authentication in the spec for a single request.
|
636
|
+
:type _request_auth: dict, optional
|
637
|
+
:param _content_type: force content-type for the request.
|
638
|
+
:type _content_type: str, Optional
|
639
|
+
:param _headers: set to override the headers for a single
|
640
|
+
request; this effectively ignores the headers
|
641
|
+
in the spec for a single request.
|
642
|
+
:type _headers: dict, optional
|
643
|
+
:param _host_index: set to override the host_index for a single
|
644
|
+
request; this effectively ignores the host_index
|
645
|
+
in the spec for a single request.
|
646
|
+
:type _host_index: int, optional
|
647
|
+
:return: Returns the result object.
|
648
|
+
""" # noqa: E501
|
649
|
+
|
650
|
+
_param = self._get_projects_serialize(
|
651
|
+
workspace_id=workspace_id,
|
652
|
+
sort=sort,
|
653
|
+
order=order,
|
654
|
+
name=name,
|
655
|
+
page=page,
|
656
|
+
page_size=page_size,
|
657
|
+
_request_auth=_request_auth,
|
658
|
+
_content_type=_content_type,
|
659
|
+
_headers=_headers,
|
660
|
+
_host_index=_host_index
|
661
|
+
)
|
662
|
+
|
663
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
664
|
+
'200': "ResourceListProject",
|
665
|
+
'500': "InternalServerError",
|
666
|
+
'404': "NotFoundError",
|
667
|
+
'422': "HTTPValidationError",
|
668
|
+
}
|
669
|
+
response_data = self.api_client.call_api(
|
670
|
+
*_param,
|
671
|
+
_request_timeout=_request_timeout
|
672
|
+
)
|
673
|
+
response_data.read()
|
674
|
+
return self.api_client.response_deserialize(
|
675
|
+
response_data=response_data,
|
676
|
+
response_types_map=_response_types_map,
|
677
|
+
).data
|
678
|
+
|
679
|
+
|
680
|
+
@validate_call
|
681
|
+
def get_projects_with_http_info(
|
682
|
+
self,
|
683
|
+
workspace_id: StrictStr,
|
684
|
+
sort: Annotated[Optional[ProjectSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
685
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
686
|
+
name: Annotated[Optional[StrictStr], Field(description="Search term to filter workspaces by name.")] = None,
|
687
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
688
|
+
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,
|
689
|
+
_request_timeout: Union[
|
690
|
+
None,
|
691
|
+
Annotated[StrictFloat, Field(gt=0)],
|
692
|
+
Tuple[
|
693
|
+
Annotated[StrictFloat, Field(gt=0)],
|
694
|
+
Annotated[StrictFloat, Field(gt=0)]
|
695
|
+
]
|
696
|
+
] = None,
|
697
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
698
|
+
_content_type: Optional[StrictStr] = None,
|
699
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
700
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
701
|
+
) -> ApiResponse[ResourceListProject]:
|
702
|
+
"""Get Projects.
|
703
|
+
|
704
|
+
Requires workspace_list_projects permission.
|
705
|
+
|
706
|
+
:param workspace_id: (required)
|
707
|
+
:type workspace_id: str
|
708
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
709
|
+
:type sort: ProjectSort
|
710
|
+
:param order: Override the sort order used. Optional.
|
711
|
+
:type order: SortOrder
|
712
|
+
:param name: Search term to filter workspaces by name.
|
713
|
+
:type name: str
|
714
|
+
:param page: The page to return starting from 1 up to total_pages.
|
715
|
+
:type page: int
|
716
|
+
:param page_size: The number of records per page. The max is 1000.
|
717
|
+
:type page_size: int
|
718
|
+
:param _request_timeout: timeout setting for this request. If one
|
719
|
+
number provided, it will be total request
|
720
|
+
timeout. It can also be a pair (tuple) of
|
721
|
+
(connection, read) timeouts.
|
722
|
+
:type _request_timeout: int, tuple(int, int), optional
|
723
|
+
:param _request_auth: set to override the auth_settings for an a single
|
724
|
+
request; this effectively ignores the
|
725
|
+
authentication in the spec for a single request.
|
726
|
+
:type _request_auth: dict, optional
|
727
|
+
:param _content_type: force content-type for the request.
|
728
|
+
:type _content_type: str, Optional
|
729
|
+
:param _headers: set to override the headers for a single
|
730
|
+
request; this effectively ignores the headers
|
731
|
+
in the spec for a single request.
|
732
|
+
:type _headers: dict, optional
|
733
|
+
:param _host_index: set to override the host_index for a single
|
734
|
+
request; this effectively ignores the host_index
|
735
|
+
in the spec for a single request.
|
736
|
+
:type _host_index: int, optional
|
737
|
+
:return: Returns the result object.
|
738
|
+
""" # noqa: E501
|
739
|
+
|
740
|
+
_param = self._get_projects_serialize(
|
741
|
+
workspace_id=workspace_id,
|
742
|
+
sort=sort,
|
743
|
+
order=order,
|
744
|
+
name=name,
|
745
|
+
page=page,
|
746
|
+
page_size=page_size,
|
747
|
+
_request_auth=_request_auth,
|
748
|
+
_content_type=_content_type,
|
749
|
+
_headers=_headers,
|
750
|
+
_host_index=_host_index
|
751
|
+
)
|
752
|
+
|
753
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
754
|
+
'200': "ResourceListProject",
|
755
|
+
'500': "InternalServerError",
|
756
|
+
'404': "NotFoundError",
|
757
|
+
'422': "HTTPValidationError",
|
758
|
+
}
|
759
|
+
response_data = self.api_client.call_api(
|
760
|
+
*_param,
|
761
|
+
_request_timeout=_request_timeout
|
762
|
+
)
|
763
|
+
response_data.read()
|
764
|
+
return self.api_client.response_deserialize(
|
765
|
+
response_data=response_data,
|
766
|
+
response_types_map=_response_types_map,
|
767
|
+
)
|
768
|
+
|
769
|
+
|
770
|
+
@validate_call
|
771
|
+
def get_projects_without_preload_content(
|
772
|
+
self,
|
773
|
+
workspace_id: StrictStr,
|
774
|
+
sort: Annotated[Optional[ProjectSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
775
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
776
|
+
name: Annotated[Optional[StrictStr], Field(description="Search term to filter workspaces by name.")] = None,
|
777
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
778
|
+
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,
|
779
|
+
_request_timeout: Union[
|
780
|
+
None,
|
781
|
+
Annotated[StrictFloat, Field(gt=0)],
|
782
|
+
Tuple[
|
783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
784
|
+
Annotated[StrictFloat, Field(gt=0)]
|
785
|
+
]
|
786
|
+
] = None,
|
787
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
788
|
+
_content_type: Optional[StrictStr] = None,
|
789
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
790
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
791
|
+
) -> RESTResponseType:
|
792
|
+
"""Get Projects.
|
793
|
+
|
794
|
+
Requires workspace_list_projects permission.
|
795
|
+
|
796
|
+
:param workspace_id: (required)
|
797
|
+
:type workspace_id: str
|
798
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
799
|
+
:type sort: ProjectSort
|
800
|
+
:param order: Override the sort order used. Optional.
|
801
|
+
:type order: SortOrder
|
802
|
+
:param name: Search term to filter workspaces by name.
|
803
|
+
:type name: str
|
804
|
+
:param page: The page to return starting from 1 up to total_pages.
|
805
|
+
:type page: int
|
806
|
+
:param page_size: The number of records per page. The max is 1000.
|
807
|
+
:type page_size: int
|
808
|
+
:param _request_timeout: timeout setting for this request. If one
|
809
|
+
number provided, it will be total request
|
810
|
+
timeout. It can also be a pair (tuple) of
|
811
|
+
(connection, read) timeouts.
|
812
|
+
:type _request_timeout: int, tuple(int, int), optional
|
813
|
+
:param _request_auth: set to override the auth_settings for an a single
|
814
|
+
request; this effectively ignores the
|
815
|
+
authentication in the spec for a single request.
|
816
|
+
:type _request_auth: dict, optional
|
817
|
+
:param _content_type: force content-type for the request.
|
818
|
+
:type _content_type: str, Optional
|
819
|
+
:param _headers: set to override the headers for a single
|
820
|
+
request; this effectively ignores the headers
|
821
|
+
in the spec for a single request.
|
822
|
+
:type _headers: dict, optional
|
823
|
+
:param _host_index: set to override the host_index for a single
|
824
|
+
request; this effectively ignores the host_index
|
825
|
+
in the spec for a single request.
|
826
|
+
:type _host_index: int, optional
|
827
|
+
:return: Returns the result object.
|
828
|
+
""" # noqa: E501
|
829
|
+
|
830
|
+
_param = self._get_projects_serialize(
|
831
|
+
workspace_id=workspace_id,
|
832
|
+
sort=sort,
|
833
|
+
order=order,
|
834
|
+
name=name,
|
835
|
+
page=page,
|
836
|
+
page_size=page_size,
|
837
|
+
_request_auth=_request_auth,
|
838
|
+
_content_type=_content_type,
|
839
|
+
_headers=_headers,
|
840
|
+
_host_index=_host_index
|
841
|
+
)
|
842
|
+
|
843
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
844
|
+
'200': "ResourceListProject",
|
845
|
+
'500': "InternalServerError",
|
846
|
+
'404': "NotFoundError",
|
847
|
+
'422': "HTTPValidationError",
|
848
|
+
}
|
849
|
+
response_data = self.api_client.call_api(
|
850
|
+
*_param,
|
851
|
+
_request_timeout=_request_timeout
|
852
|
+
)
|
853
|
+
return response_data.response
|
854
|
+
|
855
|
+
|
856
|
+
def _get_projects_serialize(
|
857
|
+
self,
|
858
|
+
workspace_id,
|
859
|
+
sort,
|
860
|
+
order,
|
861
|
+
name,
|
862
|
+
page,
|
863
|
+
page_size,
|
864
|
+
_request_auth,
|
865
|
+
_content_type,
|
866
|
+
_headers,
|
867
|
+
_host_index,
|
868
|
+
) -> RequestSerialized:
|
869
|
+
|
870
|
+
_host = None
|
871
|
+
|
872
|
+
_collection_formats: Dict[str, str] = {
|
873
|
+
}
|
874
|
+
|
875
|
+
_path_params: Dict[str, str] = {}
|
876
|
+
_query_params: List[Tuple[str, str]] = []
|
877
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
878
|
+
_form_params: List[Tuple[str, str]] = []
|
879
|
+
_files: Dict[
|
880
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
881
|
+
] = {}
|
882
|
+
_body_params: Optional[bytes] = None
|
883
|
+
|
884
|
+
# process the path parameters
|
885
|
+
if workspace_id is not None:
|
886
|
+
_path_params['workspace_id'] = workspace_id
|
887
|
+
# process the query parameters
|
888
|
+
if sort is not None:
|
889
|
+
|
890
|
+
_query_params.append(('sort', sort.value))
|
891
|
+
|
892
|
+
if order is not None:
|
893
|
+
|
894
|
+
_query_params.append(('order', order.value))
|
895
|
+
|
896
|
+
if name is not None:
|
897
|
+
|
898
|
+
_query_params.append(('name', name))
|
899
|
+
|
900
|
+
if page is not None:
|
901
|
+
|
902
|
+
_query_params.append(('page', page))
|
903
|
+
|
904
|
+
if page_size is not None:
|
905
|
+
|
906
|
+
_query_params.append(('page_size', page_size))
|
907
|
+
|
908
|
+
# process the header parameters
|
909
|
+
# process the form parameters
|
910
|
+
# process the body parameter
|
911
|
+
|
912
|
+
|
913
|
+
# set the HTTP header `Accept`
|
914
|
+
if 'Accept' not in _header_params:
|
915
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
916
|
+
[
|
917
|
+
'application/json'
|
918
|
+
]
|
919
|
+
)
|
920
|
+
|
921
|
+
|
922
|
+
# authentication setting
|
923
|
+
_auth_settings: List[str] = [
|
924
|
+
'OAuth2AuthorizationCode'
|
925
|
+
]
|
926
|
+
|
927
|
+
return self.api_client.param_serialize(
|
928
|
+
method='GET',
|
929
|
+
resource_path='/api/v1/workspaces/{workspace_id}/projects',
|
930
|
+
path_params=_path_params,
|
931
|
+
query_params=_query_params,
|
932
|
+
header_params=_header_params,
|
933
|
+
body=_body_params,
|
934
|
+
post_params=_form_params,
|
935
|
+
files=_files,
|
936
|
+
auth_settings=_auth_settings,
|
937
|
+
collection_formats=_collection_formats,
|
938
|
+
_host=_host,
|
939
|
+
_request_auth=_request_auth
|
940
|
+
)
|
941
|
+
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
@validate_call
|
946
|
+
def patch_project(
|
947
|
+
self,
|
948
|
+
project_id: StrictStr,
|
949
|
+
patch_project: PatchProject,
|
950
|
+
_request_timeout: Union[
|
951
|
+
None,
|
952
|
+
Annotated[StrictFloat, Field(gt=0)],
|
953
|
+
Tuple[
|
954
|
+
Annotated[StrictFloat, Field(gt=0)],
|
955
|
+
Annotated[StrictFloat, Field(gt=0)]
|
956
|
+
]
|
957
|
+
] = None,
|
958
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
959
|
+
_content_type: Optional[StrictStr] = None,
|
960
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
961
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
962
|
+
) -> Project:
|
963
|
+
"""Patch Project.
|
964
|
+
|
965
|
+
Requires project_update permission.
|
966
|
+
|
967
|
+
:param project_id: (required)
|
968
|
+
:type project_id: str
|
969
|
+
:param patch_project: (required)
|
970
|
+
:type patch_project: PatchProject
|
971
|
+
:param _request_timeout: timeout setting for this request. If one
|
972
|
+
number provided, it will be total request
|
973
|
+
timeout. It can also be a pair (tuple) of
|
974
|
+
(connection, read) timeouts.
|
975
|
+
:type _request_timeout: int, tuple(int, int), optional
|
976
|
+
:param _request_auth: set to override the auth_settings for an a single
|
977
|
+
request; this effectively ignores the
|
978
|
+
authentication in the spec for a single request.
|
979
|
+
:type _request_auth: dict, optional
|
980
|
+
:param _content_type: force content-type for the request.
|
981
|
+
:type _content_type: str, Optional
|
982
|
+
:param _headers: set to override the headers for a single
|
983
|
+
request; this effectively ignores the headers
|
984
|
+
in the spec for a single request.
|
985
|
+
:type _headers: dict, optional
|
986
|
+
:param _host_index: set to override the host_index for a single
|
987
|
+
request; this effectively ignores the host_index
|
988
|
+
in the spec for a single request.
|
989
|
+
:type _host_index: int, optional
|
990
|
+
:return: Returns the result object.
|
991
|
+
""" # noqa: E501
|
992
|
+
|
993
|
+
_param = self._patch_project_serialize(
|
994
|
+
project_id=project_id,
|
995
|
+
patch_project=patch_project,
|
996
|
+
_request_auth=_request_auth,
|
997
|
+
_content_type=_content_type,
|
998
|
+
_headers=_headers,
|
999
|
+
_host_index=_host_index
|
1000
|
+
)
|
1001
|
+
|
1002
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1003
|
+
'200': "Project",
|
1004
|
+
'500': "InternalServerError",
|
1005
|
+
'404': "NotFoundError",
|
1006
|
+
'422': "HTTPValidationError",
|
1007
|
+
}
|
1008
|
+
response_data = self.api_client.call_api(
|
1009
|
+
*_param,
|
1010
|
+
_request_timeout=_request_timeout
|
1011
|
+
)
|
1012
|
+
response_data.read()
|
1013
|
+
return self.api_client.response_deserialize(
|
1014
|
+
response_data=response_data,
|
1015
|
+
response_types_map=_response_types_map,
|
1016
|
+
).data
|
1017
|
+
|
1018
|
+
|
1019
|
+
@validate_call
|
1020
|
+
def patch_project_with_http_info(
|
1021
|
+
self,
|
1022
|
+
project_id: StrictStr,
|
1023
|
+
patch_project: PatchProject,
|
1024
|
+
_request_timeout: Union[
|
1025
|
+
None,
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1027
|
+
Tuple[
|
1028
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1029
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1030
|
+
]
|
1031
|
+
] = None,
|
1032
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1033
|
+
_content_type: Optional[StrictStr] = None,
|
1034
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1035
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1036
|
+
) -> ApiResponse[Project]:
|
1037
|
+
"""Patch Project.
|
1038
|
+
|
1039
|
+
Requires project_update permission.
|
1040
|
+
|
1041
|
+
:param project_id: (required)
|
1042
|
+
:type project_id: str
|
1043
|
+
:param patch_project: (required)
|
1044
|
+
:type patch_project: PatchProject
|
1045
|
+
:param _request_timeout: timeout setting for this request. If one
|
1046
|
+
number provided, it will be total request
|
1047
|
+
timeout. It can also be a pair (tuple) of
|
1048
|
+
(connection, read) timeouts.
|
1049
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1050
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1051
|
+
request; this effectively ignores the
|
1052
|
+
authentication in the spec for a single request.
|
1053
|
+
:type _request_auth: dict, optional
|
1054
|
+
:param _content_type: force content-type for the request.
|
1055
|
+
:type _content_type: str, Optional
|
1056
|
+
:param _headers: set to override the headers for a single
|
1057
|
+
request; this effectively ignores the headers
|
1058
|
+
in the spec for a single request.
|
1059
|
+
:type _headers: dict, optional
|
1060
|
+
:param _host_index: set to override the host_index for a single
|
1061
|
+
request; this effectively ignores the host_index
|
1062
|
+
in the spec for a single request.
|
1063
|
+
:type _host_index: int, optional
|
1064
|
+
:return: Returns the result object.
|
1065
|
+
""" # noqa: E501
|
1066
|
+
|
1067
|
+
_param = self._patch_project_serialize(
|
1068
|
+
project_id=project_id,
|
1069
|
+
patch_project=patch_project,
|
1070
|
+
_request_auth=_request_auth,
|
1071
|
+
_content_type=_content_type,
|
1072
|
+
_headers=_headers,
|
1073
|
+
_host_index=_host_index
|
1074
|
+
)
|
1075
|
+
|
1076
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1077
|
+
'200': "Project",
|
1078
|
+
'500': "InternalServerError",
|
1079
|
+
'404': "NotFoundError",
|
1080
|
+
'422': "HTTPValidationError",
|
1081
|
+
}
|
1082
|
+
response_data = self.api_client.call_api(
|
1083
|
+
*_param,
|
1084
|
+
_request_timeout=_request_timeout
|
1085
|
+
)
|
1086
|
+
response_data.read()
|
1087
|
+
return self.api_client.response_deserialize(
|
1088
|
+
response_data=response_data,
|
1089
|
+
response_types_map=_response_types_map,
|
1090
|
+
)
|
1091
|
+
|
1092
|
+
|
1093
|
+
@validate_call
|
1094
|
+
def patch_project_without_preload_content(
|
1095
|
+
self,
|
1096
|
+
project_id: StrictStr,
|
1097
|
+
patch_project: PatchProject,
|
1098
|
+
_request_timeout: Union[
|
1099
|
+
None,
|
1100
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1101
|
+
Tuple[
|
1102
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1103
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1104
|
+
]
|
1105
|
+
] = None,
|
1106
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1107
|
+
_content_type: Optional[StrictStr] = None,
|
1108
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1109
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1110
|
+
) -> RESTResponseType:
|
1111
|
+
"""Patch Project.
|
1112
|
+
|
1113
|
+
Requires project_update permission.
|
1114
|
+
|
1115
|
+
:param project_id: (required)
|
1116
|
+
:type project_id: str
|
1117
|
+
:param patch_project: (required)
|
1118
|
+
:type patch_project: PatchProject
|
1119
|
+
:param _request_timeout: timeout setting for this request. If one
|
1120
|
+
number provided, it will be total request
|
1121
|
+
timeout. It can also be a pair (tuple) of
|
1122
|
+
(connection, read) timeouts.
|
1123
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1124
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1125
|
+
request; this effectively ignores the
|
1126
|
+
authentication in the spec for a single request.
|
1127
|
+
:type _request_auth: dict, optional
|
1128
|
+
:param _content_type: force content-type for the request.
|
1129
|
+
:type _content_type: str, Optional
|
1130
|
+
:param _headers: set to override the headers for a single
|
1131
|
+
request; this effectively ignores the headers
|
1132
|
+
in the spec for a single request.
|
1133
|
+
:type _headers: dict, optional
|
1134
|
+
:param _host_index: set to override the host_index for a single
|
1135
|
+
request; this effectively ignores the host_index
|
1136
|
+
in the spec for a single request.
|
1137
|
+
:type _host_index: int, optional
|
1138
|
+
:return: Returns the result object.
|
1139
|
+
""" # noqa: E501
|
1140
|
+
|
1141
|
+
_param = self._patch_project_serialize(
|
1142
|
+
project_id=project_id,
|
1143
|
+
patch_project=patch_project,
|
1144
|
+
_request_auth=_request_auth,
|
1145
|
+
_content_type=_content_type,
|
1146
|
+
_headers=_headers,
|
1147
|
+
_host_index=_host_index
|
1148
|
+
)
|
1149
|
+
|
1150
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1151
|
+
'200': "Project",
|
1152
|
+
'500': "InternalServerError",
|
1153
|
+
'404': "NotFoundError",
|
1154
|
+
'422': "HTTPValidationError",
|
1155
|
+
}
|
1156
|
+
response_data = self.api_client.call_api(
|
1157
|
+
*_param,
|
1158
|
+
_request_timeout=_request_timeout
|
1159
|
+
)
|
1160
|
+
return response_data.response
|
1161
|
+
|
1162
|
+
|
1163
|
+
def _patch_project_serialize(
|
1164
|
+
self,
|
1165
|
+
project_id,
|
1166
|
+
patch_project,
|
1167
|
+
_request_auth,
|
1168
|
+
_content_type,
|
1169
|
+
_headers,
|
1170
|
+
_host_index,
|
1171
|
+
) -> RequestSerialized:
|
1172
|
+
|
1173
|
+
_host = None
|
1174
|
+
|
1175
|
+
_collection_formats: Dict[str, str] = {
|
1176
|
+
}
|
1177
|
+
|
1178
|
+
_path_params: Dict[str, str] = {}
|
1179
|
+
_query_params: List[Tuple[str, str]] = []
|
1180
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1181
|
+
_form_params: List[Tuple[str, str]] = []
|
1182
|
+
_files: Dict[
|
1183
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1184
|
+
] = {}
|
1185
|
+
_body_params: Optional[bytes] = None
|
1186
|
+
|
1187
|
+
# process the path parameters
|
1188
|
+
if project_id is not None:
|
1189
|
+
_path_params['project_id'] = project_id
|
1190
|
+
# process the query parameters
|
1191
|
+
# process the header parameters
|
1192
|
+
# process the form parameters
|
1193
|
+
# process the body parameter
|
1194
|
+
if patch_project is not None:
|
1195
|
+
_body_params = patch_project
|
1196
|
+
|
1197
|
+
|
1198
|
+
# set the HTTP header `Accept`
|
1199
|
+
if 'Accept' not in _header_params:
|
1200
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1201
|
+
[
|
1202
|
+
'application/json'
|
1203
|
+
]
|
1204
|
+
)
|
1205
|
+
|
1206
|
+
# set the HTTP header `Content-Type`
|
1207
|
+
if _content_type:
|
1208
|
+
_header_params['Content-Type'] = _content_type
|
1209
|
+
else:
|
1210
|
+
_default_content_type = (
|
1211
|
+
self.api_client.select_header_content_type(
|
1212
|
+
[
|
1213
|
+
'application/json'
|
1214
|
+
]
|
1215
|
+
)
|
1216
|
+
)
|
1217
|
+
if _default_content_type is not None:
|
1218
|
+
_header_params['Content-Type'] = _default_content_type
|
1219
|
+
|
1220
|
+
# authentication setting
|
1221
|
+
_auth_settings: List[str] = [
|
1222
|
+
'OAuth2AuthorizationCode'
|
1223
|
+
]
|
1224
|
+
|
1225
|
+
return self.api_client.param_serialize(
|
1226
|
+
method='PATCH',
|
1227
|
+
resource_path='/api/v1/projects/{project_id}',
|
1228
|
+
path_params=_path_params,
|
1229
|
+
query_params=_query_params,
|
1230
|
+
header_params=_header_params,
|
1231
|
+
body=_body_params,
|
1232
|
+
post_params=_form_params,
|
1233
|
+
files=_files,
|
1234
|
+
auth_settings=_auth_settings,
|
1235
|
+
collection_formats=_collection_formats,
|
1236
|
+
_host=_host,
|
1237
|
+
_request_auth=_request_auth
|
1238
|
+
)
|
1239
|
+
|
1240
|
+
|
1241
|
+
|
1242
|
+
|
1243
|
+
@validate_call
|
1244
|
+
def post_project(
|
1245
|
+
self,
|
1246
|
+
workspace_id: StrictStr,
|
1247
|
+
post_project: PostProject,
|
1248
|
+
_request_timeout: Union[
|
1249
|
+
None,
|
1250
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1251
|
+
Tuple[
|
1252
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1253
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1254
|
+
]
|
1255
|
+
] = None,
|
1256
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1257
|
+
_content_type: Optional[StrictStr] = None,
|
1258
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1259
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1260
|
+
) -> Project:
|
1261
|
+
"""Post Project.
|
1262
|
+
|
1263
|
+
Requires workspace_create_project permission.
|
1264
|
+
|
1265
|
+
:param workspace_id: (required)
|
1266
|
+
:type workspace_id: str
|
1267
|
+
:param post_project: (required)
|
1268
|
+
:type post_project: PostProject
|
1269
|
+
:param _request_timeout: timeout setting for this request. If one
|
1270
|
+
number provided, it will be total request
|
1271
|
+
timeout. It can also be a pair (tuple) of
|
1272
|
+
(connection, read) timeouts.
|
1273
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1274
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1275
|
+
request; this effectively ignores the
|
1276
|
+
authentication in the spec for a single request.
|
1277
|
+
:type _request_auth: dict, optional
|
1278
|
+
:param _content_type: force content-type for the request.
|
1279
|
+
:type _content_type: str, Optional
|
1280
|
+
:param _headers: set to override the headers for a single
|
1281
|
+
request; this effectively ignores the headers
|
1282
|
+
in the spec for a single request.
|
1283
|
+
:type _headers: dict, optional
|
1284
|
+
:param _host_index: set to override the host_index for a single
|
1285
|
+
request; this effectively ignores the host_index
|
1286
|
+
in the spec for a single request.
|
1287
|
+
:type _host_index: int, optional
|
1288
|
+
:return: Returns the result object.
|
1289
|
+
""" # noqa: E501
|
1290
|
+
|
1291
|
+
_param = self._post_project_serialize(
|
1292
|
+
workspace_id=workspace_id,
|
1293
|
+
post_project=post_project,
|
1294
|
+
_request_auth=_request_auth,
|
1295
|
+
_content_type=_content_type,
|
1296
|
+
_headers=_headers,
|
1297
|
+
_host_index=_host_index
|
1298
|
+
)
|
1299
|
+
|
1300
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1301
|
+
'200': "Project",
|
1302
|
+
'500': "InternalServerError",
|
1303
|
+
'400': "BadRequestError",
|
1304
|
+
'404': "NotFoundError",
|
1305
|
+
'422': "HTTPValidationError",
|
1306
|
+
}
|
1307
|
+
response_data = self.api_client.call_api(
|
1308
|
+
*_param,
|
1309
|
+
_request_timeout=_request_timeout
|
1310
|
+
)
|
1311
|
+
response_data.read()
|
1312
|
+
return self.api_client.response_deserialize(
|
1313
|
+
response_data=response_data,
|
1314
|
+
response_types_map=_response_types_map,
|
1315
|
+
).data
|
1316
|
+
|
1317
|
+
|
1318
|
+
@validate_call
|
1319
|
+
def post_project_with_http_info(
|
1320
|
+
self,
|
1321
|
+
workspace_id: StrictStr,
|
1322
|
+
post_project: PostProject,
|
1323
|
+
_request_timeout: Union[
|
1324
|
+
None,
|
1325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1326
|
+
Tuple[
|
1327
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1328
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1329
|
+
]
|
1330
|
+
] = None,
|
1331
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1332
|
+
_content_type: Optional[StrictStr] = None,
|
1333
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1334
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1335
|
+
) -> ApiResponse[Project]:
|
1336
|
+
"""Post Project.
|
1337
|
+
|
1338
|
+
Requires workspace_create_project permission.
|
1339
|
+
|
1340
|
+
:param workspace_id: (required)
|
1341
|
+
:type workspace_id: str
|
1342
|
+
:param post_project: (required)
|
1343
|
+
:type post_project: PostProject
|
1344
|
+
:param _request_timeout: timeout setting for this request. If one
|
1345
|
+
number provided, it will be total request
|
1346
|
+
timeout. It can also be a pair (tuple) of
|
1347
|
+
(connection, read) timeouts.
|
1348
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1349
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1350
|
+
request; this effectively ignores the
|
1351
|
+
authentication in the spec for a single request.
|
1352
|
+
:type _request_auth: dict, optional
|
1353
|
+
:param _content_type: force content-type for the request.
|
1354
|
+
:type _content_type: str, Optional
|
1355
|
+
:param _headers: set to override the headers for a single
|
1356
|
+
request; this effectively ignores the headers
|
1357
|
+
in the spec for a single request.
|
1358
|
+
:type _headers: dict, optional
|
1359
|
+
:param _host_index: set to override the host_index for a single
|
1360
|
+
request; this effectively ignores the host_index
|
1361
|
+
in the spec for a single request.
|
1362
|
+
:type _host_index: int, optional
|
1363
|
+
:return: Returns the result object.
|
1364
|
+
""" # noqa: E501
|
1365
|
+
|
1366
|
+
_param = self._post_project_serialize(
|
1367
|
+
workspace_id=workspace_id,
|
1368
|
+
post_project=post_project,
|
1369
|
+
_request_auth=_request_auth,
|
1370
|
+
_content_type=_content_type,
|
1371
|
+
_headers=_headers,
|
1372
|
+
_host_index=_host_index
|
1373
|
+
)
|
1374
|
+
|
1375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1376
|
+
'200': "Project",
|
1377
|
+
'500': "InternalServerError",
|
1378
|
+
'400': "BadRequestError",
|
1379
|
+
'404': "NotFoundError",
|
1380
|
+
'422': "HTTPValidationError",
|
1381
|
+
}
|
1382
|
+
response_data = self.api_client.call_api(
|
1383
|
+
*_param,
|
1384
|
+
_request_timeout=_request_timeout
|
1385
|
+
)
|
1386
|
+
response_data.read()
|
1387
|
+
return self.api_client.response_deserialize(
|
1388
|
+
response_data=response_data,
|
1389
|
+
response_types_map=_response_types_map,
|
1390
|
+
)
|
1391
|
+
|
1392
|
+
|
1393
|
+
@validate_call
|
1394
|
+
def post_project_without_preload_content(
|
1395
|
+
self,
|
1396
|
+
workspace_id: StrictStr,
|
1397
|
+
post_project: PostProject,
|
1398
|
+
_request_timeout: Union[
|
1399
|
+
None,
|
1400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1401
|
+
Tuple[
|
1402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1403
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1404
|
+
]
|
1405
|
+
] = None,
|
1406
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1407
|
+
_content_type: Optional[StrictStr] = None,
|
1408
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1409
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1410
|
+
) -> RESTResponseType:
|
1411
|
+
"""Post Project.
|
1412
|
+
|
1413
|
+
Requires workspace_create_project permission.
|
1414
|
+
|
1415
|
+
:param workspace_id: (required)
|
1416
|
+
:type workspace_id: str
|
1417
|
+
:param post_project: (required)
|
1418
|
+
:type post_project: PostProject
|
1419
|
+
:param _request_timeout: timeout setting for this request. If one
|
1420
|
+
number provided, it will be total request
|
1421
|
+
timeout. It can also be a pair (tuple) of
|
1422
|
+
(connection, read) timeouts.
|
1423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1425
|
+
request; this effectively ignores the
|
1426
|
+
authentication in the spec for a single request.
|
1427
|
+
:type _request_auth: dict, optional
|
1428
|
+
:param _content_type: force content-type for the request.
|
1429
|
+
:type _content_type: str, Optional
|
1430
|
+
:param _headers: set to override the headers for a single
|
1431
|
+
request; this effectively ignores the headers
|
1432
|
+
in the spec for a single request.
|
1433
|
+
:type _headers: dict, optional
|
1434
|
+
:param _host_index: set to override the host_index for a single
|
1435
|
+
request; this effectively ignores the host_index
|
1436
|
+
in the spec for a single request.
|
1437
|
+
:type _host_index: int, optional
|
1438
|
+
:return: Returns the result object.
|
1439
|
+
""" # noqa: E501
|
1440
|
+
|
1441
|
+
_param = self._post_project_serialize(
|
1442
|
+
workspace_id=workspace_id,
|
1443
|
+
post_project=post_project,
|
1444
|
+
_request_auth=_request_auth,
|
1445
|
+
_content_type=_content_type,
|
1446
|
+
_headers=_headers,
|
1447
|
+
_host_index=_host_index
|
1448
|
+
)
|
1449
|
+
|
1450
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1451
|
+
'200': "Project",
|
1452
|
+
'500': "InternalServerError",
|
1453
|
+
'400': "BadRequestError",
|
1454
|
+
'404': "NotFoundError",
|
1455
|
+
'422': "HTTPValidationError",
|
1456
|
+
}
|
1457
|
+
response_data = self.api_client.call_api(
|
1458
|
+
*_param,
|
1459
|
+
_request_timeout=_request_timeout
|
1460
|
+
)
|
1461
|
+
return response_data.response
|
1462
|
+
|
1463
|
+
|
1464
|
+
def _post_project_serialize(
|
1465
|
+
self,
|
1466
|
+
workspace_id,
|
1467
|
+
post_project,
|
1468
|
+
_request_auth,
|
1469
|
+
_content_type,
|
1470
|
+
_headers,
|
1471
|
+
_host_index,
|
1472
|
+
) -> RequestSerialized:
|
1473
|
+
|
1474
|
+
_host = None
|
1475
|
+
|
1476
|
+
_collection_formats: Dict[str, str] = {
|
1477
|
+
}
|
1478
|
+
|
1479
|
+
_path_params: Dict[str, str] = {}
|
1480
|
+
_query_params: List[Tuple[str, str]] = []
|
1481
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1482
|
+
_form_params: List[Tuple[str, str]] = []
|
1483
|
+
_files: Dict[
|
1484
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1485
|
+
] = {}
|
1486
|
+
_body_params: Optional[bytes] = None
|
1487
|
+
|
1488
|
+
# process the path parameters
|
1489
|
+
if workspace_id is not None:
|
1490
|
+
_path_params['workspace_id'] = workspace_id
|
1491
|
+
# process the query parameters
|
1492
|
+
# process the header parameters
|
1493
|
+
# process the form parameters
|
1494
|
+
# process the body parameter
|
1495
|
+
if post_project is not None:
|
1496
|
+
_body_params = post_project
|
1497
|
+
|
1498
|
+
|
1499
|
+
# set the HTTP header `Accept`
|
1500
|
+
if 'Accept' not in _header_params:
|
1501
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1502
|
+
[
|
1503
|
+
'application/json'
|
1504
|
+
]
|
1505
|
+
)
|
1506
|
+
|
1507
|
+
# set the HTTP header `Content-Type`
|
1508
|
+
if _content_type:
|
1509
|
+
_header_params['Content-Type'] = _content_type
|
1510
|
+
else:
|
1511
|
+
_default_content_type = (
|
1512
|
+
self.api_client.select_header_content_type(
|
1513
|
+
[
|
1514
|
+
'application/json'
|
1515
|
+
]
|
1516
|
+
)
|
1517
|
+
)
|
1518
|
+
if _default_content_type is not None:
|
1519
|
+
_header_params['Content-Type'] = _default_content_type
|
1520
|
+
|
1521
|
+
# authentication setting
|
1522
|
+
_auth_settings: List[str] = [
|
1523
|
+
'OAuth2AuthorizationCode'
|
1524
|
+
]
|
1525
|
+
|
1526
|
+
return self.api_client.param_serialize(
|
1527
|
+
method='POST',
|
1528
|
+
resource_path='/api/v1/workspaces/{workspace_id}/projects',
|
1529
|
+
path_params=_path_params,
|
1530
|
+
query_params=_query_params,
|
1531
|
+
header_params=_header_params,
|
1532
|
+
body=_body_params,
|
1533
|
+
post_params=_form_params,
|
1534
|
+
files=_files,
|
1535
|
+
auth_settings=_auth_settings,
|
1536
|
+
collection_formats=_collection_formats,
|
1537
|
+
_host=_host,
|
1538
|
+
_request_auth=_request_auth
|
1539
|
+
)
|
1540
|
+
|
1541
|
+
|