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,4343 @@
|
|
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, StrictBool, StrictStr
|
20
|
+
from typing import List, Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from arthur_client.api_bindings.models.available_dataset import AvailableDataset
|
23
|
+
from arthur_client.api_bindings.models.available_datasets_sort import AvailableDatasetsSort
|
24
|
+
from arthur_client.api_bindings.models.connector_type import ConnectorType
|
25
|
+
from arthur_client.api_bindings.models.dataset import Dataset
|
26
|
+
from arthur_client.api_bindings.models.datasets_sort import DatasetsSort
|
27
|
+
from arthur_client.api_bindings.models.patch_dataset import PatchDataset
|
28
|
+
from arthur_client.api_bindings.models.post_dataset import PostDataset
|
29
|
+
from arthur_client.api_bindings.models.put_available_dataset import PutAvailableDataset
|
30
|
+
from arthur_client.api_bindings.models.put_available_datasets import PutAvailableDatasets
|
31
|
+
from arthur_client.api_bindings.models.put_dataset_schema import PutDatasetSchema
|
32
|
+
from arthur_client.api_bindings.models.resource_list_available_dataset import ResourceListAvailableDataset
|
33
|
+
from arthur_client.api_bindings.models.resource_list_dataset import ResourceListDataset
|
34
|
+
from arthur_client.api_bindings.models.sort_order import SortOrder
|
35
|
+
|
36
|
+
from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
|
37
|
+
from arthur_client.api_bindings.api_response import ApiResponse
|
38
|
+
from arthur_client.api_bindings.rest import RESTResponseType
|
39
|
+
|
40
|
+
|
41
|
+
class DatasetsV1Api:
|
42
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
43
|
+
Ref: https://openapi-generator.tech
|
44
|
+
|
45
|
+
Do not edit the class manually.
|
46
|
+
"""
|
47
|
+
|
48
|
+
def __init__(self, api_client=None) -> None:
|
49
|
+
if api_client is None:
|
50
|
+
api_client = ApiClient.get_default()
|
51
|
+
self.api_client = api_client
|
52
|
+
|
53
|
+
|
54
|
+
@validate_call
|
55
|
+
def delete_dataset(
|
56
|
+
self,
|
57
|
+
dataset_id: StrictStr,
|
58
|
+
_request_timeout: Union[
|
59
|
+
None,
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
61
|
+
Tuple[
|
62
|
+
Annotated[StrictFloat, Field(gt=0)],
|
63
|
+
Annotated[StrictFloat, Field(gt=0)]
|
64
|
+
]
|
65
|
+
] = None,
|
66
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
67
|
+
_content_type: Optional[StrictStr] = None,
|
68
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
69
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
70
|
+
) -> None:
|
71
|
+
"""Delete Dataset
|
72
|
+
|
73
|
+
Delete a dataset. Requires dataset_delete permission.
|
74
|
+
|
75
|
+
:param dataset_id: (required)
|
76
|
+
:type dataset_id: str
|
77
|
+
:param _request_timeout: timeout setting for this request. If one
|
78
|
+
number provided, it will be total request
|
79
|
+
timeout. It can also be a pair (tuple) of
|
80
|
+
(connection, read) timeouts.
|
81
|
+
:type _request_timeout: int, tuple(int, int), optional
|
82
|
+
:param _request_auth: set to override the auth_settings for an a single
|
83
|
+
request; this effectively ignores the
|
84
|
+
authentication in the spec for a single request.
|
85
|
+
:type _request_auth: dict, optional
|
86
|
+
:param _content_type: force content-type for the request.
|
87
|
+
:type _content_type: str, Optional
|
88
|
+
:param _headers: set to override the headers for a single
|
89
|
+
request; this effectively ignores the headers
|
90
|
+
in the spec for a single request.
|
91
|
+
:type _headers: dict, optional
|
92
|
+
:param _host_index: set to override the host_index for a single
|
93
|
+
request; this effectively ignores the host_index
|
94
|
+
in the spec for a single request.
|
95
|
+
:type _host_index: int, optional
|
96
|
+
:return: Returns the result object.
|
97
|
+
""" # noqa: E501
|
98
|
+
|
99
|
+
_param = self._delete_dataset_serialize(
|
100
|
+
dataset_id=dataset_id,
|
101
|
+
_request_auth=_request_auth,
|
102
|
+
_content_type=_content_type,
|
103
|
+
_headers=_headers,
|
104
|
+
_host_index=_host_index
|
105
|
+
)
|
106
|
+
|
107
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
108
|
+
'204': None,
|
109
|
+
'500': "InternalServerError",
|
110
|
+
'400': "BadRequestError",
|
111
|
+
'422': "HTTPValidationError",
|
112
|
+
}
|
113
|
+
response_data = self.api_client.call_api(
|
114
|
+
*_param,
|
115
|
+
_request_timeout=_request_timeout
|
116
|
+
)
|
117
|
+
response_data.read()
|
118
|
+
return self.api_client.response_deserialize(
|
119
|
+
response_data=response_data,
|
120
|
+
response_types_map=_response_types_map,
|
121
|
+
).data
|
122
|
+
|
123
|
+
|
124
|
+
@validate_call
|
125
|
+
def delete_dataset_with_http_info(
|
126
|
+
self,
|
127
|
+
dataset_id: StrictStr,
|
128
|
+
_request_timeout: Union[
|
129
|
+
None,
|
130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
131
|
+
Tuple[
|
132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
134
|
+
]
|
135
|
+
] = None,
|
136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
137
|
+
_content_type: Optional[StrictStr] = None,
|
138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
140
|
+
) -> ApiResponse[None]:
|
141
|
+
"""Delete Dataset
|
142
|
+
|
143
|
+
Delete a dataset. Requires dataset_delete permission.
|
144
|
+
|
145
|
+
:param dataset_id: (required)
|
146
|
+
:type dataset_id: str
|
147
|
+
:param _request_timeout: timeout setting for this request. If one
|
148
|
+
number provided, it will be total request
|
149
|
+
timeout. It can also be a pair (tuple) of
|
150
|
+
(connection, read) timeouts.
|
151
|
+
:type _request_timeout: int, tuple(int, int), optional
|
152
|
+
:param _request_auth: set to override the auth_settings for an a single
|
153
|
+
request; this effectively ignores the
|
154
|
+
authentication in the spec for a single request.
|
155
|
+
:type _request_auth: dict, optional
|
156
|
+
:param _content_type: force content-type for the request.
|
157
|
+
:type _content_type: str, Optional
|
158
|
+
:param _headers: set to override the headers for a single
|
159
|
+
request; this effectively ignores the headers
|
160
|
+
in the spec for a single request.
|
161
|
+
:type _headers: dict, optional
|
162
|
+
:param _host_index: set to override the host_index for a single
|
163
|
+
request; this effectively ignores the host_index
|
164
|
+
in the spec for a single request.
|
165
|
+
:type _host_index: int, optional
|
166
|
+
:return: Returns the result object.
|
167
|
+
""" # noqa: E501
|
168
|
+
|
169
|
+
_param = self._delete_dataset_serialize(
|
170
|
+
dataset_id=dataset_id,
|
171
|
+
_request_auth=_request_auth,
|
172
|
+
_content_type=_content_type,
|
173
|
+
_headers=_headers,
|
174
|
+
_host_index=_host_index
|
175
|
+
)
|
176
|
+
|
177
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
178
|
+
'204': None,
|
179
|
+
'500': "InternalServerError",
|
180
|
+
'400': "BadRequestError",
|
181
|
+
'422': "HTTPValidationError",
|
182
|
+
}
|
183
|
+
response_data = self.api_client.call_api(
|
184
|
+
*_param,
|
185
|
+
_request_timeout=_request_timeout
|
186
|
+
)
|
187
|
+
response_data.read()
|
188
|
+
return self.api_client.response_deserialize(
|
189
|
+
response_data=response_data,
|
190
|
+
response_types_map=_response_types_map,
|
191
|
+
)
|
192
|
+
|
193
|
+
|
194
|
+
@validate_call
|
195
|
+
def delete_dataset_without_preload_content(
|
196
|
+
self,
|
197
|
+
dataset_id: StrictStr,
|
198
|
+
_request_timeout: Union[
|
199
|
+
None,
|
200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
201
|
+
Tuple[
|
202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
203
|
+
Annotated[StrictFloat, Field(gt=0)]
|
204
|
+
]
|
205
|
+
] = None,
|
206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
207
|
+
_content_type: Optional[StrictStr] = None,
|
208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
210
|
+
) -> RESTResponseType:
|
211
|
+
"""Delete Dataset
|
212
|
+
|
213
|
+
Delete a dataset. Requires dataset_delete permission.
|
214
|
+
|
215
|
+
:param dataset_id: (required)
|
216
|
+
:type dataset_id: str
|
217
|
+
:param _request_timeout: timeout setting for this request. If one
|
218
|
+
number provided, it will be total request
|
219
|
+
timeout. It can also be a pair (tuple) of
|
220
|
+
(connection, read) timeouts.
|
221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
223
|
+
request; this effectively ignores the
|
224
|
+
authentication in the spec for a single request.
|
225
|
+
:type _request_auth: dict, optional
|
226
|
+
:param _content_type: force content-type for the request.
|
227
|
+
:type _content_type: str, Optional
|
228
|
+
:param _headers: set to override the headers for a single
|
229
|
+
request; this effectively ignores the headers
|
230
|
+
in the spec for a single request.
|
231
|
+
:type _headers: dict, optional
|
232
|
+
:param _host_index: set to override the host_index for a single
|
233
|
+
request; this effectively ignores the host_index
|
234
|
+
in the spec for a single request.
|
235
|
+
:type _host_index: int, optional
|
236
|
+
:return: Returns the result object.
|
237
|
+
""" # noqa: E501
|
238
|
+
|
239
|
+
_param = self._delete_dataset_serialize(
|
240
|
+
dataset_id=dataset_id,
|
241
|
+
_request_auth=_request_auth,
|
242
|
+
_content_type=_content_type,
|
243
|
+
_headers=_headers,
|
244
|
+
_host_index=_host_index
|
245
|
+
)
|
246
|
+
|
247
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
248
|
+
'204': None,
|
249
|
+
'500': "InternalServerError",
|
250
|
+
'400': "BadRequestError",
|
251
|
+
'422': "HTTPValidationError",
|
252
|
+
}
|
253
|
+
response_data = self.api_client.call_api(
|
254
|
+
*_param,
|
255
|
+
_request_timeout=_request_timeout
|
256
|
+
)
|
257
|
+
return response_data.response
|
258
|
+
|
259
|
+
|
260
|
+
def _delete_dataset_serialize(
|
261
|
+
self,
|
262
|
+
dataset_id,
|
263
|
+
_request_auth,
|
264
|
+
_content_type,
|
265
|
+
_headers,
|
266
|
+
_host_index,
|
267
|
+
) -> RequestSerialized:
|
268
|
+
|
269
|
+
_host = None
|
270
|
+
|
271
|
+
_collection_formats: Dict[str, str] = {
|
272
|
+
}
|
273
|
+
|
274
|
+
_path_params: Dict[str, str] = {}
|
275
|
+
_query_params: List[Tuple[str, str]] = []
|
276
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
277
|
+
_form_params: List[Tuple[str, str]] = []
|
278
|
+
_files: Dict[
|
279
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
280
|
+
] = {}
|
281
|
+
_body_params: Optional[bytes] = None
|
282
|
+
|
283
|
+
# process the path parameters
|
284
|
+
if dataset_id is not None:
|
285
|
+
_path_params['dataset_id'] = dataset_id
|
286
|
+
# process the query parameters
|
287
|
+
# process the header parameters
|
288
|
+
# process the form parameters
|
289
|
+
# process the body parameter
|
290
|
+
|
291
|
+
|
292
|
+
# set the HTTP header `Accept`
|
293
|
+
if 'Accept' not in _header_params:
|
294
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
295
|
+
[
|
296
|
+
'application/json'
|
297
|
+
]
|
298
|
+
)
|
299
|
+
|
300
|
+
|
301
|
+
# authentication setting
|
302
|
+
_auth_settings: List[str] = [
|
303
|
+
'OAuth2AuthorizationCode'
|
304
|
+
]
|
305
|
+
|
306
|
+
return self.api_client.param_serialize(
|
307
|
+
method='DELETE',
|
308
|
+
resource_path='/api/v1/datasets/{dataset_id}',
|
309
|
+
path_params=_path_params,
|
310
|
+
query_params=_query_params,
|
311
|
+
header_params=_header_params,
|
312
|
+
body=_body_params,
|
313
|
+
post_params=_form_params,
|
314
|
+
files=_files,
|
315
|
+
auth_settings=_auth_settings,
|
316
|
+
collection_formats=_collection_formats,
|
317
|
+
_host=_host,
|
318
|
+
_request_auth=_request_auth
|
319
|
+
)
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
@validate_call
|
325
|
+
def get_available_dataset(
|
326
|
+
self,
|
327
|
+
available_dataset_id: StrictStr,
|
328
|
+
_request_timeout: Union[
|
329
|
+
None,
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
331
|
+
Tuple[
|
332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
334
|
+
]
|
335
|
+
] = None,
|
336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
337
|
+
_content_type: Optional[StrictStr] = None,
|
338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
340
|
+
) -> AvailableDataset:
|
341
|
+
"""Get Available Dataset By Id
|
342
|
+
|
343
|
+
Returns a single available dataset by ID. Requires available_dataset_read permission.
|
344
|
+
|
345
|
+
:param available_dataset_id: (required)
|
346
|
+
:type available_dataset_id: str
|
347
|
+
:param _request_timeout: timeout setting for this request. If one
|
348
|
+
number provided, it will be total request
|
349
|
+
timeout. It can also be a pair (tuple) of
|
350
|
+
(connection, read) timeouts.
|
351
|
+
:type _request_timeout: int, tuple(int, int), optional
|
352
|
+
:param _request_auth: set to override the auth_settings for an a single
|
353
|
+
request; this effectively ignores the
|
354
|
+
authentication in the spec for a single request.
|
355
|
+
:type _request_auth: dict, optional
|
356
|
+
:param _content_type: force content-type for the request.
|
357
|
+
:type _content_type: str, Optional
|
358
|
+
:param _headers: set to override the headers for a single
|
359
|
+
request; this effectively ignores the headers
|
360
|
+
in the spec for a single request.
|
361
|
+
:type _headers: dict, optional
|
362
|
+
:param _host_index: set to override the host_index for a single
|
363
|
+
request; this effectively ignores the host_index
|
364
|
+
in the spec for a single request.
|
365
|
+
:type _host_index: int, optional
|
366
|
+
:return: Returns the result object.
|
367
|
+
""" # noqa: E501
|
368
|
+
|
369
|
+
_param = self._get_available_dataset_serialize(
|
370
|
+
available_dataset_id=available_dataset_id,
|
371
|
+
_request_auth=_request_auth,
|
372
|
+
_content_type=_content_type,
|
373
|
+
_headers=_headers,
|
374
|
+
_host_index=_host_index
|
375
|
+
)
|
376
|
+
|
377
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
378
|
+
'200': "AvailableDataset",
|
379
|
+
'500': "InternalServerError",
|
380
|
+
'404': "NotFoundError",
|
381
|
+
'422': "HTTPValidationError",
|
382
|
+
}
|
383
|
+
response_data = self.api_client.call_api(
|
384
|
+
*_param,
|
385
|
+
_request_timeout=_request_timeout
|
386
|
+
)
|
387
|
+
response_data.read()
|
388
|
+
return self.api_client.response_deserialize(
|
389
|
+
response_data=response_data,
|
390
|
+
response_types_map=_response_types_map,
|
391
|
+
).data
|
392
|
+
|
393
|
+
|
394
|
+
@validate_call
|
395
|
+
def get_available_dataset_with_http_info(
|
396
|
+
self,
|
397
|
+
available_dataset_id: StrictStr,
|
398
|
+
_request_timeout: Union[
|
399
|
+
None,
|
400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
401
|
+
Tuple[
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
403
|
+
Annotated[StrictFloat, Field(gt=0)]
|
404
|
+
]
|
405
|
+
] = None,
|
406
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
407
|
+
_content_type: Optional[StrictStr] = None,
|
408
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
409
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
410
|
+
) -> ApiResponse[AvailableDataset]:
|
411
|
+
"""Get Available Dataset By Id
|
412
|
+
|
413
|
+
Returns a single available dataset by ID. Requires available_dataset_read permission.
|
414
|
+
|
415
|
+
:param available_dataset_id: (required)
|
416
|
+
:type available_dataset_id: str
|
417
|
+
:param _request_timeout: timeout setting for this request. If one
|
418
|
+
number provided, it will be total request
|
419
|
+
timeout. It can also be a pair (tuple) of
|
420
|
+
(connection, read) timeouts.
|
421
|
+
:type _request_timeout: int, tuple(int, int), optional
|
422
|
+
:param _request_auth: set to override the auth_settings for an a single
|
423
|
+
request; this effectively ignores the
|
424
|
+
authentication in the spec for a single request.
|
425
|
+
:type _request_auth: dict, optional
|
426
|
+
:param _content_type: force content-type for the request.
|
427
|
+
:type _content_type: str, Optional
|
428
|
+
:param _headers: set to override the headers for a single
|
429
|
+
request; this effectively ignores the headers
|
430
|
+
in the spec for a single request.
|
431
|
+
:type _headers: dict, optional
|
432
|
+
:param _host_index: set to override the host_index for a single
|
433
|
+
request; this effectively ignores the host_index
|
434
|
+
in the spec for a single request.
|
435
|
+
:type _host_index: int, optional
|
436
|
+
:return: Returns the result object.
|
437
|
+
""" # noqa: E501
|
438
|
+
|
439
|
+
_param = self._get_available_dataset_serialize(
|
440
|
+
available_dataset_id=available_dataset_id,
|
441
|
+
_request_auth=_request_auth,
|
442
|
+
_content_type=_content_type,
|
443
|
+
_headers=_headers,
|
444
|
+
_host_index=_host_index
|
445
|
+
)
|
446
|
+
|
447
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
448
|
+
'200': "AvailableDataset",
|
449
|
+
'500': "InternalServerError",
|
450
|
+
'404': "NotFoundError",
|
451
|
+
'422': "HTTPValidationError",
|
452
|
+
}
|
453
|
+
response_data = self.api_client.call_api(
|
454
|
+
*_param,
|
455
|
+
_request_timeout=_request_timeout
|
456
|
+
)
|
457
|
+
response_data.read()
|
458
|
+
return self.api_client.response_deserialize(
|
459
|
+
response_data=response_data,
|
460
|
+
response_types_map=_response_types_map,
|
461
|
+
)
|
462
|
+
|
463
|
+
|
464
|
+
@validate_call
|
465
|
+
def get_available_dataset_without_preload_content(
|
466
|
+
self,
|
467
|
+
available_dataset_id: StrictStr,
|
468
|
+
_request_timeout: Union[
|
469
|
+
None,
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
471
|
+
Tuple[
|
472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
473
|
+
Annotated[StrictFloat, Field(gt=0)]
|
474
|
+
]
|
475
|
+
] = None,
|
476
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
477
|
+
_content_type: Optional[StrictStr] = None,
|
478
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
479
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
480
|
+
) -> RESTResponseType:
|
481
|
+
"""Get Available Dataset By Id
|
482
|
+
|
483
|
+
Returns a single available dataset by ID. Requires available_dataset_read permission.
|
484
|
+
|
485
|
+
:param available_dataset_id: (required)
|
486
|
+
:type available_dataset_id: str
|
487
|
+
:param _request_timeout: timeout setting for this request. If one
|
488
|
+
number provided, it will be total request
|
489
|
+
timeout. It can also be a pair (tuple) of
|
490
|
+
(connection, read) timeouts.
|
491
|
+
:type _request_timeout: int, tuple(int, int), optional
|
492
|
+
:param _request_auth: set to override the auth_settings for an a single
|
493
|
+
request; this effectively ignores the
|
494
|
+
authentication in the spec for a single request.
|
495
|
+
:type _request_auth: dict, optional
|
496
|
+
:param _content_type: force content-type for the request.
|
497
|
+
:type _content_type: str, Optional
|
498
|
+
:param _headers: set to override the headers for a single
|
499
|
+
request; this effectively ignores the headers
|
500
|
+
in the spec for a single request.
|
501
|
+
:type _headers: dict, optional
|
502
|
+
:param _host_index: set to override the host_index for a single
|
503
|
+
request; this effectively ignores the host_index
|
504
|
+
in the spec for a single request.
|
505
|
+
:type _host_index: int, optional
|
506
|
+
:return: Returns the result object.
|
507
|
+
""" # noqa: E501
|
508
|
+
|
509
|
+
_param = self._get_available_dataset_serialize(
|
510
|
+
available_dataset_id=available_dataset_id,
|
511
|
+
_request_auth=_request_auth,
|
512
|
+
_content_type=_content_type,
|
513
|
+
_headers=_headers,
|
514
|
+
_host_index=_host_index
|
515
|
+
)
|
516
|
+
|
517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
518
|
+
'200': "AvailableDataset",
|
519
|
+
'500': "InternalServerError",
|
520
|
+
'404': "NotFoundError",
|
521
|
+
'422': "HTTPValidationError",
|
522
|
+
}
|
523
|
+
response_data = self.api_client.call_api(
|
524
|
+
*_param,
|
525
|
+
_request_timeout=_request_timeout
|
526
|
+
)
|
527
|
+
return response_data.response
|
528
|
+
|
529
|
+
|
530
|
+
def _get_available_dataset_serialize(
|
531
|
+
self,
|
532
|
+
available_dataset_id,
|
533
|
+
_request_auth,
|
534
|
+
_content_type,
|
535
|
+
_headers,
|
536
|
+
_host_index,
|
537
|
+
) -> RequestSerialized:
|
538
|
+
|
539
|
+
_host = None
|
540
|
+
|
541
|
+
_collection_formats: Dict[str, str] = {
|
542
|
+
}
|
543
|
+
|
544
|
+
_path_params: Dict[str, str] = {}
|
545
|
+
_query_params: List[Tuple[str, str]] = []
|
546
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
547
|
+
_form_params: List[Tuple[str, str]] = []
|
548
|
+
_files: Dict[
|
549
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
550
|
+
] = {}
|
551
|
+
_body_params: Optional[bytes] = None
|
552
|
+
|
553
|
+
# process the path parameters
|
554
|
+
if available_dataset_id is not None:
|
555
|
+
_path_params['available_dataset_id'] = available_dataset_id
|
556
|
+
# process the query parameters
|
557
|
+
# process the header parameters
|
558
|
+
# process the form parameters
|
559
|
+
# process the body parameter
|
560
|
+
|
561
|
+
|
562
|
+
# set the HTTP header `Accept`
|
563
|
+
if 'Accept' not in _header_params:
|
564
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
565
|
+
[
|
566
|
+
'application/json'
|
567
|
+
]
|
568
|
+
)
|
569
|
+
|
570
|
+
|
571
|
+
# authentication setting
|
572
|
+
_auth_settings: List[str] = [
|
573
|
+
'OAuth2AuthorizationCode'
|
574
|
+
]
|
575
|
+
|
576
|
+
return self.api_client.param_serialize(
|
577
|
+
method='GET',
|
578
|
+
resource_path='/api/v1/available_datasets/{available_dataset_id}',
|
579
|
+
path_params=_path_params,
|
580
|
+
query_params=_query_params,
|
581
|
+
header_params=_header_params,
|
582
|
+
body=_body_params,
|
583
|
+
post_params=_form_params,
|
584
|
+
files=_files,
|
585
|
+
auth_settings=_auth_settings,
|
586
|
+
collection_formats=_collection_formats,
|
587
|
+
_host=_host,
|
588
|
+
_request_auth=_request_auth
|
589
|
+
)
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
@validate_call
|
595
|
+
def get_connector_available_datasets(
|
596
|
+
self,
|
597
|
+
connector_id: StrictStr,
|
598
|
+
sort: Annotated[Optional[AvailableDatasetsSort], Field(description="The field to sort by.")] = None,
|
599
|
+
order: Annotated[Optional[SortOrder], Field(description="The order to sort by.")] = None,
|
600
|
+
search: Annotated[Optional[StrictStr], Field(description="Search term to filter by.")] = None,
|
601
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
602
|
+
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,
|
603
|
+
_request_timeout: Union[
|
604
|
+
None,
|
605
|
+
Annotated[StrictFloat, Field(gt=0)],
|
606
|
+
Tuple[
|
607
|
+
Annotated[StrictFloat, Field(gt=0)],
|
608
|
+
Annotated[StrictFloat, Field(gt=0)]
|
609
|
+
]
|
610
|
+
] = None,
|
611
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
612
|
+
_content_type: Optional[StrictStr] = None,
|
613
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
614
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
615
|
+
) -> ResourceListAvailableDataset:
|
616
|
+
"""Get Available Datasets By Connector Id
|
617
|
+
|
618
|
+
Returns a list of available datasets for the connector. Requires connector_list_available_datasets permission.
|
619
|
+
|
620
|
+
:param connector_id: (required)
|
621
|
+
:type connector_id: str
|
622
|
+
:param sort: The field to sort by.
|
623
|
+
:type sort: AvailableDatasetsSort
|
624
|
+
:param order: The order to sort by.
|
625
|
+
:type order: SortOrder
|
626
|
+
:param search: Search term to filter by.
|
627
|
+
:type search: str
|
628
|
+
:param page: The page to return starting from 1 up to total_pages.
|
629
|
+
:type page: int
|
630
|
+
:param page_size: The number of records per page. The max is 1000.
|
631
|
+
:type page_size: int
|
632
|
+
:param _request_timeout: timeout setting for this request. If one
|
633
|
+
number provided, it will be total request
|
634
|
+
timeout. It can also be a pair (tuple) of
|
635
|
+
(connection, read) timeouts.
|
636
|
+
:type _request_timeout: int, tuple(int, int), optional
|
637
|
+
:param _request_auth: set to override the auth_settings for an a single
|
638
|
+
request; this effectively ignores the
|
639
|
+
authentication in the spec for a single request.
|
640
|
+
:type _request_auth: dict, optional
|
641
|
+
:param _content_type: force content-type for the request.
|
642
|
+
:type _content_type: str, Optional
|
643
|
+
:param _headers: set to override the headers for a single
|
644
|
+
request; this effectively ignores the headers
|
645
|
+
in the spec for a single request.
|
646
|
+
:type _headers: dict, optional
|
647
|
+
:param _host_index: set to override the host_index for a single
|
648
|
+
request; this effectively ignores the host_index
|
649
|
+
in the spec for a single request.
|
650
|
+
:type _host_index: int, optional
|
651
|
+
:return: Returns the result object.
|
652
|
+
""" # noqa: E501
|
653
|
+
|
654
|
+
_param = self._get_connector_available_datasets_serialize(
|
655
|
+
connector_id=connector_id,
|
656
|
+
sort=sort,
|
657
|
+
order=order,
|
658
|
+
search=search,
|
659
|
+
page=page,
|
660
|
+
page_size=page_size,
|
661
|
+
_request_auth=_request_auth,
|
662
|
+
_content_type=_content_type,
|
663
|
+
_headers=_headers,
|
664
|
+
_host_index=_host_index
|
665
|
+
)
|
666
|
+
|
667
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
668
|
+
'200': "ResourceListAvailableDataset",
|
669
|
+
'500': "InternalServerError",
|
670
|
+
'404': "NotFoundError",
|
671
|
+
'422': "HTTPValidationError",
|
672
|
+
}
|
673
|
+
response_data = self.api_client.call_api(
|
674
|
+
*_param,
|
675
|
+
_request_timeout=_request_timeout
|
676
|
+
)
|
677
|
+
response_data.read()
|
678
|
+
return self.api_client.response_deserialize(
|
679
|
+
response_data=response_data,
|
680
|
+
response_types_map=_response_types_map,
|
681
|
+
).data
|
682
|
+
|
683
|
+
|
684
|
+
@validate_call
|
685
|
+
def get_connector_available_datasets_with_http_info(
|
686
|
+
self,
|
687
|
+
connector_id: StrictStr,
|
688
|
+
sort: Annotated[Optional[AvailableDatasetsSort], Field(description="The field to sort by.")] = None,
|
689
|
+
order: Annotated[Optional[SortOrder], Field(description="The order to sort by.")] = None,
|
690
|
+
search: Annotated[Optional[StrictStr], Field(description="Search term to filter by.")] = None,
|
691
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
692
|
+
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,
|
693
|
+
_request_timeout: Union[
|
694
|
+
None,
|
695
|
+
Annotated[StrictFloat, Field(gt=0)],
|
696
|
+
Tuple[
|
697
|
+
Annotated[StrictFloat, Field(gt=0)],
|
698
|
+
Annotated[StrictFloat, Field(gt=0)]
|
699
|
+
]
|
700
|
+
] = None,
|
701
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
702
|
+
_content_type: Optional[StrictStr] = None,
|
703
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
704
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
705
|
+
) -> ApiResponse[ResourceListAvailableDataset]:
|
706
|
+
"""Get Available Datasets By Connector Id
|
707
|
+
|
708
|
+
Returns a list of available datasets for the connector. Requires connector_list_available_datasets permission.
|
709
|
+
|
710
|
+
:param connector_id: (required)
|
711
|
+
:type connector_id: str
|
712
|
+
:param sort: The field to sort by.
|
713
|
+
:type sort: AvailableDatasetsSort
|
714
|
+
:param order: The order to sort by.
|
715
|
+
:type order: SortOrder
|
716
|
+
:param search: Search term to filter by.
|
717
|
+
:type search: str
|
718
|
+
:param page: The page to return starting from 1 up to total_pages.
|
719
|
+
:type page: int
|
720
|
+
:param page_size: The number of records per page. The max is 1000.
|
721
|
+
:type page_size: int
|
722
|
+
:param _request_timeout: timeout setting for this request. If one
|
723
|
+
number provided, it will be total request
|
724
|
+
timeout. It can also be a pair (tuple) of
|
725
|
+
(connection, read) timeouts.
|
726
|
+
:type _request_timeout: int, tuple(int, int), optional
|
727
|
+
:param _request_auth: set to override the auth_settings for an a single
|
728
|
+
request; this effectively ignores the
|
729
|
+
authentication in the spec for a single request.
|
730
|
+
:type _request_auth: dict, optional
|
731
|
+
:param _content_type: force content-type for the request.
|
732
|
+
:type _content_type: str, Optional
|
733
|
+
:param _headers: set to override the headers for a single
|
734
|
+
request; this effectively ignores the headers
|
735
|
+
in the spec for a single request.
|
736
|
+
:type _headers: dict, optional
|
737
|
+
:param _host_index: set to override the host_index for a single
|
738
|
+
request; this effectively ignores the host_index
|
739
|
+
in the spec for a single request.
|
740
|
+
:type _host_index: int, optional
|
741
|
+
:return: Returns the result object.
|
742
|
+
""" # noqa: E501
|
743
|
+
|
744
|
+
_param = self._get_connector_available_datasets_serialize(
|
745
|
+
connector_id=connector_id,
|
746
|
+
sort=sort,
|
747
|
+
order=order,
|
748
|
+
search=search,
|
749
|
+
page=page,
|
750
|
+
page_size=page_size,
|
751
|
+
_request_auth=_request_auth,
|
752
|
+
_content_type=_content_type,
|
753
|
+
_headers=_headers,
|
754
|
+
_host_index=_host_index
|
755
|
+
)
|
756
|
+
|
757
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
758
|
+
'200': "ResourceListAvailableDataset",
|
759
|
+
'500': "InternalServerError",
|
760
|
+
'404': "NotFoundError",
|
761
|
+
'422': "HTTPValidationError",
|
762
|
+
}
|
763
|
+
response_data = self.api_client.call_api(
|
764
|
+
*_param,
|
765
|
+
_request_timeout=_request_timeout
|
766
|
+
)
|
767
|
+
response_data.read()
|
768
|
+
return self.api_client.response_deserialize(
|
769
|
+
response_data=response_data,
|
770
|
+
response_types_map=_response_types_map,
|
771
|
+
)
|
772
|
+
|
773
|
+
|
774
|
+
@validate_call
|
775
|
+
def get_connector_available_datasets_without_preload_content(
|
776
|
+
self,
|
777
|
+
connector_id: StrictStr,
|
778
|
+
sort: Annotated[Optional[AvailableDatasetsSort], Field(description="The field to sort by.")] = None,
|
779
|
+
order: Annotated[Optional[SortOrder], Field(description="The order to sort by.")] = None,
|
780
|
+
search: Annotated[Optional[StrictStr], Field(description="Search term to filter by.")] = None,
|
781
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
782
|
+
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,
|
783
|
+
_request_timeout: Union[
|
784
|
+
None,
|
785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
786
|
+
Tuple[
|
787
|
+
Annotated[StrictFloat, Field(gt=0)],
|
788
|
+
Annotated[StrictFloat, Field(gt=0)]
|
789
|
+
]
|
790
|
+
] = None,
|
791
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
792
|
+
_content_type: Optional[StrictStr] = None,
|
793
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
795
|
+
) -> RESTResponseType:
|
796
|
+
"""Get Available Datasets By Connector Id
|
797
|
+
|
798
|
+
Returns a list of available datasets for the connector. Requires connector_list_available_datasets permission.
|
799
|
+
|
800
|
+
:param connector_id: (required)
|
801
|
+
:type connector_id: str
|
802
|
+
:param sort: The field to sort by.
|
803
|
+
:type sort: AvailableDatasetsSort
|
804
|
+
:param order: The order to sort by.
|
805
|
+
:type order: SortOrder
|
806
|
+
:param search: Search term to filter by.
|
807
|
+
:type search: str
|
808
|
+
:param page: The page to return starting from 1 up to total_pages.
|
809
|
+
:type page: int
|
810
|
+
:param page_size: The number of records per page. The max is 1000.
|
811
|
+
:type page_size: int
|
812
|
+
:param _request_timeout: timeout setting for this request. If one
|
813
|
+
number provided, it will be total request
|
814
|
+
timeout. It can also be a pair (tuple) of
|
815
|
+
(connection, read) timeouts.
|
816
|
+
:type _request_timeout: int, tuple(int, int), optional
|
817
|
+
:param _request_auth: set to override the auth_settings for an a single
|
818
|
+
request; this effectively ignores the
|
819
|
+
authentication in the spec for a single request.
|
820
|
+
:type _request_auth: dict, optional
|
821
|
+
:param _content_type: force content-type for the request.
|
822
|
+
:type _content_type: str, Optional
|
823
|
+
:param _headers: set to override the headers for a single
|
824
|
+
request; this effectively ignores the headers
|
825
|
+
in the spec for a single request.
|
826
|
+
:type _headers: dict, optional
|
827
|
+
:param _host_index: set to override the host_index for a single
|
828
|
+
request; this effectively ignores the host_index
|
829
|
+
in the spec for a single request.
|
830
|
+
:type _host_index: int, optional
|
831
|
+
:return: Returns the result object.
|
832
|
+
""" # noqa: E501
|
833
|
+
|
834
|
+
_param = self._get_connector_available_datasets_serialize(
|
835
|
+
connector_id=connector_id,
|
836
|
+
sort=sort,
|
837
|
+
order=order,
|
838
|
+
search=search,
|
839
|
+
page=page,
|
840
|
+
page_size=page_size,
|
841
|
+
_request_auth=_request_auth,
|
842
|
+
_content_type=_content_type,
|
843
|
+
_headers=_headers,
|
844
|
+
_host_index=_host_index
|
845
|
+
)
|
846
|
+
|
847
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
848
|
+
'200': "ResourceListAvailableDataset",
|
849
|
+
'500': "InternalServerError",
|
850
|
+
'404': "NotFoundError",
|
851
|
+
'422': "HTTPValidationError",
|
852
|
+
}
|
853
|
+
response_data = self.api_client.call_api(
|
854
|
+
*_param,
|
855
|
+
_request_timeout=_request_timeout
|
856
|
+
)
|
857
|
+
return response_data.response
|
858
|
+
|
859
|
+
|
860
|
+
def _get_connector_available_datasets_serialize(
|
861
|
+
self,
|
862
|
+
connector_id,
|
863
|
+
sort,
|
864
|
+
order,
|
865
|
+
search,
|
866
|
+
page,
|
867
|
+
page_size,
|
868
|
+
_request_auth,
|
869
|
+
_content_type,
|
870
|
+
_headers,
|
871
|
+
_host_index,
|
872
|
+
) -> RequestSerialized:
|
873
|
+
|
874
|
+
_host = None
|
875
|
+
|
876
|
+
_collection_formats: Dict[str, str] = {
|
877
|
+
}
|
878
|
+
|
879
|
+
_path_params: Dict[str, str] = {}
|
880
|
+
_query_params: List[Tuple[str, str]] = []
|
881
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
882
|
+
_form_params: List[Tuple[str, str]] = []
|
883
|
+
_files: Dict[
|
884
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
885
|
+
] = {}
|
886
|
+
_body_params: Optional[bytes] = None
|
887
|
+
|
888
|
+
# process the path parameters
|
889
|
+
if connector_id is not None:
|
890
|
+
_path_params['connector_id'] = connector_id
|
891
|
+
# process the query parameters
|
892
|
+
if sort is not None:
|
893
|
+
|
894
|
+
_query_params.append(('sort', sort.value))
|
895
|
+
|
896
|
+
if order is not None:
|
897
|
+
|
898
|
+
_query_params.append(('order', order.value))
|
899
|
+
|
900
|
+
if search is not None:
|
901
|
+
|
902
|
+
_query_params.append(('search', search))
|
903
|
+
|
904
|
+
if page is not None:
|
905
|
+
|
906
|
+
_query_params.append(('page', page))
|
907
|
+
|
908
|
+
if page_size is not None:
|
909
|
+
|
910
|
+
_query_params.append(('page_size', page_size))
|
911
|
+
|
912
|
+
# process the header parameters
|
913
|
+
# process the form parameters
|
914
|
+
# process the body parameter
|
915
|
+
|
916
|
+
|
917
|
+
# set the HTTP header `Accept`
|
918
|
+
if 'Accept' not in _header_params:
|
919
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
920
|
+
[
|
921
|
+
'application/json'
|
922
|
+
]
|
923
|
+
)
|
924
|
+
|
925
|
+
|
926
|
+
# authentication setting
|
927
|
+
_auth_settings: List[str] = [
|
928
|
+
'OAuth2AuthorizationCode'
|
929
|
+
]
|
930
|
+
|
931
|
+
return self.api_client.param_serialize(
|
932
|
+
method='GET',
|
933
|
+
resource_path='/api/v1/connectors/{connector_id}/available_datasets',
|
934
|
+
path_params=_path_params,
|
935
|
+
query_params=_query_params,
|
936
|
+
header_params=_header_params,
|
937
|
+
body=_body_params,
|
938
|
+
post_params=_form_params,
|
939
|
+
files=_files,
|
940
|
+
auth_settings=_auth_settings,
|
941
|
+
collection_formats=_collection_formats,
|
942
|
+
_host=_host,
|
943
|
+
_request_auth=_request_auth
|
944
|
+
)
|
945
|
+
|
946
|
+
|
947
|
+
|
948
|
+
|
949
|
+
@validate_call
|
950
|
+
def get_connector_datasets(
|
951
|
+
self,
|
952
|
+
connector_id: StrictStr,
|
953
|
+
_request_timeout: Union[
|
954
|
+
None,
|
955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
956
|
+
Tuple[
|
957
|
+
Annotated[StrictFloat, Field(gt=0)],
|
958
|
+
Annotated[StrictFloat, Field(gt=0)]
|
959
|
+
]
|
960
|
+
] = None,
|
961
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
962
|
+
_content_type: Optional[StrictStr] = None,
|
963
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
964
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
965
|
+
) -> ResourceListDataset:
|
966
|
+
"""Get Datasets By Connector Id
|
967
|
+
|
968
|
+
Returns a list of configured datasets for the connector. Requires connector_list_datasets permission.
|
969
|
+
|
970
|
+
:param connector_id: (required)
|
971
|
+
:type connector_id: str
|
972
|
+
:param _request_timeout: timeout setting for this request. If one
|
973
|
+
number provided, it will be total request
|
974
|
+
timeout. It can also be a pair (tuple) of
|
975
|
+
(connection, read) timeouts.
|
976
|
+
:type _request_timeout: int, tuple(int, int), optional
|
977
|
+
:param _request_auth: set to override the auth_settings for an a single
|
978
|
+
request; this effectively ignores the
|
979
|
+
authentication in the spec for a single request.
|
980
|
+
:type _request_auth: dict, optional
|
981
|
+
:param _content_type: force content-type for the request.
|
982
|
+
:type _content_type: str, Optional
|
983
|
+
:param _headers: set to override the headers for a single
|
984
|
+
request; this effectively ignores the headers
|
985
|
+
in the spec for a single request.
|
986
|
+
:type _headers: dict, optional
|
987
|
+
:param _host_index: set to override the host_index for a single
|
988
|
+
request; this effectively ignores the host_index
|
989
|
+
in the spec for a single request.
|
990
|
+
:type _host_index: int, optional
|
991
|
+
:return: Returns the result object.
|
992
|
+
""" # noqa: E501
|
993
|
+
|
994
|
+
_param = self._get_connector_datasets_serialize(
|
995
|
+
connector_id=connector_id,
|
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': "ResourceListDataset",
|
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 get_connector_datasets_with_http_info(
|
1021
|
+
self,
|
1022
|
+
connector_id: StrictStr,
|
1023
|
+
_request_timeout: Union[
|
1024
|
+
None,
|
1025
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1026
|
+
Tuple[
|
1027
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1028
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1029
|
+
]
|
1030
|
+
] = None,
|
1031
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1032
|
+
_content_type: Optional[StrictStr] = None,
|
1033
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1034
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1035
|
+
) -> ApiResponse[ResourceListDataset]:
|
1036
|
+
"""Get Datasets By Connector Id
|
1037
|
+
|
1038
|
+
Returns a list of configured datasets for the connector. Requires connector_list_datasets permission.
|
1039
|
+
|
1040
|
+
:param connector_id: (required)
|
1041
|
+
:type connector_id: str
|
1042
|
+
:param _request_timeout: timeout setting for this request. If one
|
1043
|
+
number provided, it will be total request
|
1044
|
+
timeout. It can also be a pair (tuple) of
|
1045
|
+
(connection, read) timeouts.
|
1046
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1047
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1048
|
+
request; this effectively ignores the
|
1049
|
+
authentication in the spec for a single request.
|
1050
|
+
:type _request_auth: dict, optional
|
1051
|
+
:param _content_type: force content-type for the request.
|
1052
|
+
:type _content_type: str, Optional
|
1053
|
+
:param _headers: set to override the headers for a single
|
1054
|
+
request; this effectively ignores the headers
|
1055
|
+
in the spec for a single request.
|
1056
|
+
:type _headers: dict, optional
|
1057
|
+
:param _host_index: set to override the host_index for a single
|
1058
|
+
request; this effectively ignores the host_index
|
1059
|
+
in the spec for a single request.
|
1060
|
+
:type _host_index: int, optional
|
1061
|
+
:return: Returns the result object.
|
1062
|
+
""" # noqa: E501
|
1063
|
+
|
1064
|
+
_param = self._get_connector_datasets_serialize(
|
1065
|
+
connector_id=connector_id,
|
1066
|
+
_request_auth=_request_auth,
|
1067
|
+
_content_type=_content_type,
|
1068
|
+
_headers=_headers,
|
1069
|
+
_host_index=_host_index
|
1070
|
+
)
|
1071
|
+
|
1072
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1073
|
+
'200': "ResourceListDataset",
|
1074
|
+
'500': "InternalServerError",
|
1075
|
+
'404': "NotFoundError",
|
1076
|
+
'422': "HTTPValidationError",
|
1077
|
+
}
|
1078
|
+
response_data = self.api_client.call_api(
|
1079
|
+
*_param,
|
1080
|
+
_request_timeout=_request_timeout
|
1081
|
+
)
|
1082
|
+
response_data.read()
|
1083
|
+
return self.api_client.response_deserialize(
|
1084
|
+
response_data=response_data,
|
1085
|
+
response_types_map=_response_types_map,
|
1086
|
+
)
|
1087
|
+
|
1088
|
+
|
1089
|
+
@validate_call
|
1090
|
+
def get_connector_datasets_without_preload_content(
|
1091
|
+
self,
|
1092
|
+
connector_id: StrictStr,
|
1093
|
+
_request_timeout: Union[
|
1094
|
+
None,
|
1095
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1096
|
+
Tuple[
|
1097
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1098
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1099
|
+
]
|
1100
|
+
] = None,
|
1101
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1102
|
+
_content_type: Optional[StrictStr] = None,
|
1103
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1104
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1105
|
+
) -> RESTResponseType:
|
1106
|
+
"""Get Datasets By Connector Id
|
1107
|
+
|
1108
|
+
Returns a list of configured datasets for the connector. Requires connector_list_datasets permission.
|
1109
|
+
|
1110
|
+
:param connector_id: (required)
|
1111
|
+
:type connector_id: str
|
1112
|
+
:param _request_timeout: timeout setting for this request. If one
|
1113
|
+
number provided, it will be total request
|
1114
|
+
timeout. It can also be a pair (tuple) of
|
1115
|
+
(connection, read) timeouts.
|
1116
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1117
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1118
|
+
request; this effectively ignores the
|
1119
|
+
authentication in the spec for a single request.
|
1120
|
+
:type _request_auth: dict, optional
|
1121
|
+
:param _content_type: force content-type for the request.
|
1122
|
+
:type _content_type: str, Optional
|
1123
|
+
:param _headers: set to override the headers for a single
|
1124
|
+
request; this effectively ignores the headers
|
1125
|
+
in the spec for a single request.
|
1126
|
+
:type _headers: dict, optional
|
1127
|
+
:param _host_index: set to override the host_index for a single
|
1128
|
+
request; this effectively ignores the host_index
|
1129
|
+
in the spec for a single request.
|
1130
|
+
:type _host_index: int, optional
|
1131
|
+
:return: Returns the result object.
|
1132
|
+
""" # noqa: E501
|
1133
|
+
|
1134
|
+
_param = self._get_connector_datasets_serialize(
|
1135
|
+
connector_id=connector_id,
|
1136
|
+
_request_auth=_request_auth,
|
1137
|
+
_content_type=_content_type,
|
1138
|
+
_headers=_headers,
|
1139
|
+
_host_index=_host_index
|
1140
|
+
)
|
1141
|
+
|
1142
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1143
|
+
'200': "ResourceListDataset",
|
1144
|
+
'500': "InternalServerError",
|
1145
|
+
'404': "NotFoundError",
|
1146
|
+
'422': "HTTPValidationError",
|
1147
|
+
}
|
1148
|
+
response_data = self.api_client.call_api(
|
1149
|
+
*_param,
|
1150
|
+
_request_timeout=_request_timeout
|
1151
|
+
)
|
1152
|
+
return response_data.response
|
1153
|
+
|
1154
|
+
|
1155
|
+
def _get_connector_datasets_serialize(
|
1156
|
+
self,
|
1157
|
+
connector_id,
|
1158
|
+
_request_auth,
|
1159
|
+
_content_type,
|
1160
|
+
_headers,
|
1161
|
+
_host_index,
|
1162
|
+
) -> RequestSerialized:
|
1163
|
+
|
1164
|
+
_host = None
|
1165
|
+
|
1166
|
+
_collection_formats: Dict[str, str] = {
|
1167
|
+
}
|
1168
|
+
|
1169
|
+
_path_params: Dict[str, str] = {}
|
1170
|
+
_query_params: List[Tuple[str, str]] = []
|
1171
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1172
|
+
_form_params: List[Tuple[str, str]] = []
|
1173
|
+
_files: Dict[
|
1174
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1175
|
+
] = {}
|
1176
|
+
_body_params: Optional[bytes] = None
|
1177
|
+
|
1178
|
+
# process the path parameters
|
1179
|
+
if connector_id is not None:
|
1180
|
+
_path_params['connector_id'] = connector_id
|
1181
|
+
# process the query parameters
|
1182
|
+
# process the header parameters
|
1183
|
+
# process the form parameters
|
1184
|
+
# process the body parameter
|
1185
|
+
|
1186
|
+
|
1187
|
+
# set the HTTP header `Accept`
|
1188
|
+
if 'Accept' not in _header_params:
|
1189
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1190
|
+
[
|
1191
|
+
'application/json'
|
1192
|
+
]
|
1193
|
+
)
|
1194
|
+
|
1195
|
+
|
1196
|
+
# authentication setting
|
1197
|
+
_auth_settings: List[str] = [
|
1198
|
+
'OAuth2AuthorizationCode'
|
1199
|
+
]
|
1200
|
+
|
1201
|
+
return self.api_client.param_serialize(
|
1202
|
+
method='GET',
|
1203
|
+
resource_path='/api/v1/connectors/{connector_id}/datasets',
|
1204
|
+
path_params=_path_params,
|
1205
|
+
query_params=_query_params,
|
1206
|
+
header_params=_header_params,
|
1207
|
+
body=_body_params,
|
1208
|
+
post_params=_form_params,
|
1209
|
+
files=_files,
|
1210
|
+
auth_settings=_auth_settings,
|
1211
|
+
collection_formats=_collection_formats,
|
1212
|
+
_host=_host,
|
1213
|
+
_request_auth=_request_auth
|
1214
|
+
)
|
1215
|
+
|
1216
|
+
|
1217
|
+
|
1218
|
+
|
1219
|
+
@validate_call
|
1220
|
+
def get_dataset(
|
1221
|
+
self,
|
1222
|
+
dataset_id: StrictStr,
|
1223
|
+
_request_timeout: Union[
|
1224
|
+
None,
|
1225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1226
|
+
Tuple[
|
1227
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1228
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1229
|
+
]
|
1230
|
+
] = None,
|
1231
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1232
|
+
_content_type: Optional[StrictStr] = None,
|
1233
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1234
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1235
|
+
) -> Dataset:
|
1236
|
+
"""Get Dataset By Id
|
1237
|
+
|
1238
|
+
Returns a single dataset by ID. Requires dataset_read permission.
|
1239
|
+
|
1240
|
+
:param dataset_id: (required)
|
1241
|
+
:type dataset_id: str
|
1242
|
+
:param _request_timeout: timeout setting for this request. If one
|
1243
|
+
number provided, it will be total request
|
1244
|
+
timeout. It can also be a pair (tuple) of
|
1245
|
+
(connection, read) timeouts.
|
1246
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1247
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1248
|
+
request; this effectively ignores the
|
1249
|
+
authentication in the spec for a single request.
|
1250
|
+
:type _request_auth: dict, optional
|
1251
|
+
:param _content_type: force content-type for the request.
|
1252
|
+
:type _content_type: str, Optional
|
1253
|
+
:param _headers: set to override the headers for a single
|
1254
|
+
request; this effectively ignores the headers
|
1255
|
+
in the spec for a single request.
|
1256
|
+
:type _headers: dict, optional
|
1257
|
+
:param _host_index: set to override the host_index for a single
|
1258
|
+
request; this effectively ignores the host_index
|
1259
|
+
in the spec for a single request.
|
1260
|
+
:type _host_index: int, optional
|
1261
|
+
:return: Returns the result object.
|
1262
|
+
""" # noqa: E501
|
1263
|
+
|
1264
|
+
_param = self._get_dataset_serialize(
|
1265
|
+
dataset_id=dataset_id,
|
1266
|
+
_request_auth=_request_auth,
|
1267
|
+
_content_type=_content_type,
|
1268
|
+
_headers=_headers,
|
1269
|
+
_host_index=_host_index
|
1270
|
+
)
|
1271
|
+
|
1272
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1273
|
+
'200': "Dataset",
|
1274
|
+
'500': "InternalServerError",
|
1275
|
+
'404': "NotFoundError",
|
1276
|
+
'422': "HTTPValidationError",
|
1277
|
+
}
|
1278
|
+
response_data = self.api_client.call_api(
|
1279
|
+
*_param,
|
1280
|
+
_request_timeout=_request_timeout
|
1281
|
+
)
|
1282
|
+
response_data.read()
|
1283
|
+
return self.api_client.response_deserialize(
|
1284
|
+
response_data=response_data,
|
1285
|
+
response_types_map=_response_types_map,
|
1286
|
+
).data
|
1287
|
+
|
1288
|
+
|
1289
|
+
@validate_call
|
1290
|
+
def get_dataset_with_http_info(
|
1291
|
+
self,
|
1292
|
+
dataset_id: StrictStr,
|
1293
|
+
_request_timeout: Union[
|
1294
|
+
None,
|
1295
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1296
|
+
Tuple[
|
1297
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1298
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1299
|
+
]
|
1300
|
+
] = None,
|
1301
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1302
|
+
_content_type: Optional[StrictStr] = None,
|
1303
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1304
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1305
|
+
) -> ApiResponse[Dataset]:
|
1306
|
+
"""Get Dataset By Id
|
1307
|
+
|
1308
|
+
Returns a single dataset by ID. Requires dataset_read permission.
|
1309
|
+
|
1310
|
+
:param dataset_id: (required)
|
1311
|
+
:type dataset_id: str
|
1312
|
+
:param _request_timeout: timeout setting for this request. If one
|
1313
|
+
number provided, it will be total request
|
1314
|
+
timeout. It can also be a pair (tuple) of
|
1315
|
+
(connection, read) timeouts.
|
1316
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1318
|
+
request; this effectively ignores the
|
1319
|
+
authentication in the spec for a single request.
|
1320
|
+
:type _request_auth: dict, optional
|
1321
|
+
:param _content_type: force content-type for the request.
|
1322
|
+
:type _content_type: str, Optional
|
1323
|
+
:param _headers: set to override the headers for a single
|
1324
|
+
request; this effectively ignores the headers
|
1325
|
+
in the spec for a single request.
|
1326
|
+
:type _headers: dict, optional
|
1327
|
+
:param _host_index: set to override the host_index for a single
|
1328
|
+
request; this effectively ignores the host_index
|
1329
|
+
in the spec for a single request.
|
1330
|
+
:type _host_index: int, optional
|
1331
|
+
:return: Returns the result object.
|
1332
|
+
""" # noqa: E501
|
1333
|
+
|
1334
|
+
_param = self._get_dataset_serialize(
|
1335
|
+
dataset_id=dataset_id,
|
1336
|
+
_request_auth=_request_auth,
|
1337
|
+
_content_type=_content_type,
|
1338
|
+
_headers=_headers,
|
1339
|
+
_host_index=_host_index
|
1340
|
+
)
|
1341
|
+
|
1342
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1343
|
+
'200': "Dataset",
|
1344
|
+
'500': "InternalServerError",
|
1345
|
+
'404': "NotFoundError",
|
1346
|
+
'422': "HTTPValidationError",
|
1347
|
+
}
|
1348
|
+
response_data = self.api_client.call_api(
|
1349
|
+
*_param,
|
1350
|
+
_request_timeout=_request_timeout
|
1351
|
+
)
|
1352
|
+
response_data.read()
|
1353
|
+
return self.api_client.response_deserialize(
|
1354
|
+
response_data=response_data,
|
1355
|
+
response_types_map=_response_types_map,
|
1356
|
+
)
|
1357
|
+
|
1358
|
+
|
1359
|
+
@validate_call
|
1360
|
+
def get_dataset_without_preload_content(
|
1361
|
+
self,
|
1362
|
+
dataset_id: StrictStr,
|
1363
|
+
_request_timeout: Union[
|
1364
|
+
None,
|
1365
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1366
|
+
Tuple[
|
1367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1368
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1369
|
+
]
|
1370
|
+
] = None,
|
1371
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1372
|
+
_content_type: Optional[StrictStr] = None,
|
1373
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1374
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1375
|
+
) -> RESTResponseType:
|
1376
|
+
"""Get Dataset By Id
|
1377
|
+
|
1378
|
+
Returns a single dataset by ID. Requires dataset_read permission.
|
1379
|
+
|
1380
|
+
:param dataset_id: (required)
|
1381
|
+
:type dataset_id: str
|
1382
|
+
:param _request_timeout: timeout setting for this request. If one
|
1383
|
+
number provided, it will be total request
|
1384
|
+
timeout. It can also be a pair (tuple) of
|
1385
|
+
(connection, read) timeouts.
|
1386
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1387
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1388
|
+
request; this effectively ignores the
|
1389
|
+
authentication in the spec for a single request.
|
1390
|
+
:type _request_auth: dict, optional
|
1391
|
+
:param _content_type: force content-type for the request.
|
1392
|
+
:type _content_type: str, Optional
|
1393
|
+
:param _headers: set to override the headers for a single
|
1394
|
+
request; this effectively ignores the headers
|
1395
|
+
in the spec for a single request.
|
1396
|
+
:type _headers: dict, optional
|
1397
|
+
:param _host_index: set to override the host_index for a single
|
1398
|
+
request; this effectively ignores the host_index
|
1399
|
+
in the spec for a single request.
|
1400
|
+
:type _host_index: int, optional
|
1401
|
+
:return: Returns the result object.
|
1402
|
+
""" # noqa: E501
|
1403
|
+
|
1404
|
+
_param = self._get_dataset_serialize(
|
1405
|
+
dataset_id=dataset_id,
|
1406
|
+
_request_auth=_request_auth,
|
1407
|
+
_content_type=_content_type,
|
1408
|
+
_headers=_headers,
|
1409
|
+
_host_index=_host_index
|
1410
|
+
)
|
1411
|
+
|
1412
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1413
|
+
'200': "Dataset",
|
1414
|
+
'500': "InternalServerError",
|
1415
|
+
'404': "NotFoundError",
|
1416
|
+
'422': "HTTPValidationError",
|
1417
|
+
}
|
1418
|
+
response_data = self.api_client.call_api(
|
1419
|
+
*_param,
|
1420
|
+
_request_timeout=_request_timeout
|
1421
|
+
)
|
1422
|
+
return response_data.response
|
1423
|
+
|
1424
|
+
|
1425
|
+
def _get_dataset_serialize(
|
1426
|
+
self,
|
1427
|
+
dataset_id,
|
1428
|
+
_request_auth,
|
1429
|
+
_content_type,
|
1430
|
+
_headers,
|
1431
|
+
_host_index,
|
1432
|
+
) -> RequestSerialized:
|
1433
|
+
|
1434
|
+
_host = None
|
1435
|
+
|
1436
|
+
_collection_formats: Dict[str, str] = {
|
1437
|
+
}
|
1438
|
+
|
1439
|
+
_path_params: Dict[str, str] = {}
|
1440
|
+
_query_params: List[Tuple[str, str]] = []
|
1441
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1442
|
+
_form_params: List[Tuple[str, str]] = []
|
1443
|
+
_files: Dict[
|
1444
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1445
|
+
] = {}
|
1446
|
+
_body_params: Optional[bytes] = None
|
1447
|
+
|
1448
|
+
# process the path parameters
|
1449
|
+
if dataset_id is not None:
|
1450
|
+
_path_params['dataset_id'] = dataset_id
|
1451
|
+
# process the query parameters
|
1452
|
+
# process the header parameters
|
1453
|
+
# process the form parameters
|
1454
|
+
# process the body parameter
|
1455
|
+
|
1456
|
+
|
1457
|
+
# set the HTTP header `Accept`
|
1458
|
+
if 'Accept' not in _header_params:
|
1459
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1460
|
+
[
|
1461
|
+
'application/json'
|
1462
|
+
]
|
1463
|
+
)
|
1464
|
+
|
1465
|
+
|
1466
|
+
# authentication setting
|
1467
|
+
_auth_settings: List[str] = [
|
1468
|
+
'OAuth2AuthorizationCode'
|
1469
|
+
]
|
1470
|
+
|
1471
|
+
return self.api_client.param_serialize(
|
1472
|
+
method='GET',
|
1473
|
+
resource_path='/api/v1/datasets/{dataset_id}',
|
1474
|
+
path_params=_path_params,
|
1475
|
+
query_params=_query_params,
|
1476
|
+
header_params=_header_params,
|
1477
|
+
body=_body_params,
|
1478
|
+
post_params=_form_params,
|
1479
|
+
files=_files,
|
1480
|
+
auth_settings=_auth_settings,
|
1481
|
+
collection_formats=_collection_formats,
|
1482
|
+
_host=_host,
|
1483
|
+
_request_auth=_request_auth
|
1484
|
+
)
|
1485
|
+
|
1486
|
+
|
1487
|
+
|
1488
|
+
|
1489
|
+
@validate_call
|
1490
|
+
def get_datasets(
|
1491
|
+
self,
|
1492
|
+
project_id: StrictStr,
|
1493
|
+
sort: Annotated[Optional[DatasetsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
1494
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
1495
|
+
model_ids: Annotated[Optional[List[StrictStr]], Field(description="Filter the results for datasets that are used by these models. Optional.")] = None,
|
1496
|
+
search: Annotated[Optional[StrictStr], Field(description="Search for datasets by connector name or dataset name.")] = None,
|
1497
|
+
connector_type: Annotated[Optional[ConnectorType], Field(description="Filter datasets by connector type.")] = None,
|
1498
|
+
connector_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by connector name.")] = None,
|
1499
|
+
dataset_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by dataset name.")] = None,
|
1500
|
+
joined_datasets: Annotated[Optional[StrictBool], Field(description="Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.")] = None,
|
1501
|
+
data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter datasets by the data plane (engine) that backs them.")] = None,
|
1502
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
1503
|
+
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,
|
1504
|
+
_request_timeout: Union[
|
1505
|
+
None,
|
1506
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1507
|
+
Tuple[
|
1508
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1509
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1510
|
+
]
|
1511
|
+
] = None,
|
1512
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1513
|
+
_content_type: Optional[StrictStr] = None,
|
1514
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1515
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1516
|
+
) -> ResourceListDataset:
|
1517
|
+
"""Get Datasets
|
1518
|
+
|
1519
|
+
Returns a list of configured datasets. Requires project_list_datasets permission.
|
1520
|
+
|
1521
|
+
:param project_id: (required)
|
1522
|
+
:type project_id: str
|
1523
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
1524
|
+
:type sort: DatasetsSort
|
1525
|
+
:param order: Override the sort order used. Optional.
|
1526
|
+
:type order: SortOrder
|
1527
|
+
:param model_ids: Filter the results for datasets that are used by these models. Optional.
|
1528
|
+
:type model_ids: List[str]
|
1529
|
+
:param search: Search for datasets by connector name or dataset name.
|
1530
|
+
:type search: str
|
1531
|
+
:param connector_type: Filter datasets by connector type.
|
1532
|
+
:type connector_type: ConnectorType
|
1533
|
+
:param connector_name: Filter datasets by connector name.
|
1534
|
+
:type connector_name: str
|
1535
|
+
:param dataset_name: Filter datasets by dataset name.
|
1536
|
+
:type dataset_name: str
|
1537
|
+
:param joined_datasets: Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.
|
1538
|
+
:type joined_datasets: bool
|
1539
|
+
:param data_plane_id: Filter datasets by the data plane (engine) that backs them.
|
1540
|
+
:type data_plane_id: str
|
1541
|
+
:param page: The page to return starting from 1 up to total_pages.
|
1542
|
+
:type page: int
|
1543
|
+
:param page_size: The number of records per page. The max is 1000.
|
1544
|
+
:type page_size: int
|
1545
|
+
:param _request_timeout: timeout setting for this request. If one
|
1546
|
+
number provided, it will be total request
|
1547
|
+
timeout. It can also be a pair (tuple) of
|
1548
|
+
(connection, read) timeouts.
|
1549
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1550
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1551
|
+
request; this effectively ignores the
|
1552
|
+
authentication in the spec for a single request.
|
1553
|
+
:type _request_auth: dict, optional
|
1554
|
+
:param _content_type: force content-type for the request.
|
1555
|
+
:type _content_type: str, Optional
|
1556
|
+
:param _headers: set to override the headers for a single
|
1557
|
+
request; this effectively ignores the headers
|
1558
|
+
in the spec for a single request.
|
1559
|
+
:type _headers: dict, optional
|
1560
|
+
:param _host_index: set to override the host_index for a single
|
1561
|
+
request; this effectively ignores the host_index
|
1562
|
+
in the spec for a single request.
|
1563
|
+
:type _host_index: int, optional
|
1564
|
+
:return: Returns the result object.
|
1565
|
+
""" # noqa: E501
|
1566
|
+
|
1567
|
+
_param = self._get_datasets_serialize(
|
1568
|
+
project_id=project_id,
|
1569
|
+
sort=sort,
|
1570
|
+
order=order,
|
1571
|
+
model_ids=model_ids,
|
1572
|
+
search=search,
|
1573
|
+
connector_type=connector_type,
|
1574
|
+
connector_name=connector_name,
|
1575
|
+
dataset_name=dataset_name,
|
1576
|
+
joined_datasets=joined_datasets,
|
1577
|
+
data_plane_id=data_plane_id,
|
1578
|
+
page=page,
|
1579
|
+
page_size=page_size,
|
1580
|
+
_request_auth=_request_auth,
|
1581
|
+
_content_type=_content_type,
|
1582
|
+
_headers=_headers,
|
1583
|
+
_host_index=_host_index
|
1584
|
+
)
|
1585
|
+
|
1586
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1587
|
+
'200': "ResourceListDataset",
|
1588
|
+
'500': "InternalServerError",
|
1589
|
+
'404': "NotFoundError",
|
1590
|
+
'422': "HTTPValidationError",
|
1591
|
+
}
|
1592
|
+
response_data = self.api_client.call_api(
|
1593
|
+
*_param,
|
1594
|
+
_request_timeout=_request_timeout
|
1595
|
+
)
|
1596
|
+
response_data.read()
|
1597
|
+
return self.api_client.response_deserialize(
|
1598
|
+
response_data=response_data,
|
1599
|
+
response_types_map=_response_types_map,
|
1600
|
+
).data
|
1601
|
+
|
1602
|
+
|
1603
|
+
@validate_call
|
1604
|
+
def get_datasets_with_http_info(
|
1605
|
+
self,
|
1606
|
+
project_id: StrictStr,
|
1607
|
+
sort: Annotated[Optional[DatasetsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
1608
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
1609
|
+
model_ids: Annotated[Optional[List[StrictStr]], Field(description="Filter the results for datasets that are used by these models. Optional.")] = None,
|
1610
|
+
search: Annotated[Optional[StrictStr], Field(description="Search for datasets by connector name or dataset name.")] = None,
|
1611
|
+
connector_type: Annotated[Optional[ConnectorType], Field(description="Filter datasets by connector type.")] = None,
|
1612
|
+
connector_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by connector name.")] = None,
|
1613
|
+
dataset_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by dataset name.")] = None,
|
1614
|
+
joined_datasets: Annotated[Optional[StrictBool], Field(description="Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.")] = None,
|
1615
|
+
data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter datasets by the data plane (engine) that backs them.")] = None,
|
1616
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
1617
|
+
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,
|
1618
|
+
_request_timeout: Union[
|
1619
|
+
None,
|
1620
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1621
|
+
Tuple[
|
1622
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1623
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1624
|
+
]
|
1625
|
+
] = None,
|
1626
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1627
|
+
_content_type: Optional[StrictStr] = None,
|
1628
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1629
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1630
|
+
) -> ApiResponse[ResourceListDataset]:
|
1631
|
+
"""Get Datasets
|
1632
|
+
|
1633
|
+
Returns a list of configured datasets. Requires project_list_datasets permission.
|
1634
|
+
|
1635
|
+
:param project_id: (required)
|
1636
|
+
:type project_id: str
|
1637
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
1638
|
+
:type sort: DatasetsSort
|
1639
|
+
:param order: Override the sort order used. Optional.
|
1640
|
+
:type order: SortOrder
|
1641
|
+
:param model_ids: Filter the results for datasets that are used by these models. Optional.
|
1642
|
+
:type model_ids: List[str]
|
1643
|
+
:param search: Search for datasets by connector name or dataset name.
|
1644
|
+
:type search: str
|
1645
|
+
:param connector_type: Filter datasets by connector type.
|
1646
|
+
:type connector_type: ConnectorType
|
1647
|
+
:param connector_name: Filter datasets by connector name.
|
1648
|
+
:type connector_name: str
|
1649
|
+
:param dataset_name: Filter datasets by dataset name.
|
1650
|
+
:type dataset_name: str
|
1651
|
+
:param joined_datasets: Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.
|
1652
|
+
:type joined_datasets: bool
|
1653
|
+
:param data_plane_id: Filter datasets by the data plane (engine) that backs them.
|
1654
|
+
:type data_plane_id: str
|
1655
|
+
:param page: The page to return starting from 1 up to total_pages.
|
1656
|
+
:type page: int
|
1657
|
+
:param page_size: The number of records per page. The max is 1000.
|
1658
|
+
:type page_size: int
|
1659
|
+
:param _request_timeout: timeout setting for this request. If one
|
1660
|
+
number provided, it will be total request
|
1661
|
+
timeout. It can also be a pair (tuple) of
|
1662
|
+
(connection, read) timeouts.
|
1663
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1664
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1665
|
+
request; this effectively ignores the
|
1666
|
+
authentication in the spec for a single request.
|
1667
|
+
:type _request_auth: dict, optional
|
1668
|
+
:param _content_type: force content-type for the request.
|
1669
|
+
:type _content_type: str, Optional
|
1670
|
+
:param _headers: set to override the headers for a single
|
1671
|
+
request; this effectively ignores the headers
|
1672
|
+
in the spec for a single request.
|
1673
|
+
:type _headers: dict, optional
|
1674
|
+
:param _host_index: set to override the host_index for a single
|
1675
|
+
request; this effectively ignores the host_index
|
1676
|
+
in the spec for a single request.
|
1677
|
+
:type _host_index: int, optional
|
1678
|
+
:return: Returns the result object.
|
1679
|
+
""" # noqa: E501
|
1680
|
+
|
1681
|
+
_param = self._get_datasets_serialize(
|
1682
|
+
project_id=project_id,
|
1683
|
+
sort=sort,
|
1684
|
+
order=order,
|
1685
|
+
model_ids=model_ids,
|
1686
|
+
search=search,
|
1687
|
+
connector_type=connector_type,
|
1688
|
+
connector_name=connector_name,
|
1689
|
+
dataset_name=dataset_name,
|
1690
|
+
joined_datasets=joined_datasets,
|
1691
|
+
data_plane_id=data_plane_id,
|
1692
|
+
page=page,
|
1693
|
+
page_size=page_size,
|
1694
|
+
_request_auth=_request_auth,
|
1695
|
+
_content_type=_content_type,
|
1696
|
+
_headers=_headers,
|
1697
|
+
_host_index=_host_index
|
1698
|
+
)
|
1699
|
+
|
1700
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1701
|
+
'200': "ResourceListDataset",
|
1702
|
+
'500': "InternalServerError",
|
1703
|
+
'404': "NotFoundError",
|
1704
|
+
'422': "HTTPValidationError",
|
1705
|
+
}
|
1706
|
+
response_data = self.api_client.call_api(
|
1707
|
+
*_param,
|
1708
|
+
_request_timeout=_request_timeout
|
1709
|
+
)
|
1710
|
+
response_data.read()
|
1711
|
+
return self.api_client.response_deserialize(
|
1712
|
+
response_data=response_data,
|
1713
|
+
response_types_map=_response_types_map,
|
1714
|
+
)
|
1715
|
+
|
1716
|
+
|
1717
|
+
@validate_call
|
1718
|
+
def get_datasets_without_preload_content(
|
1719
|
+
self,
|
1720
|
+
project_id: StrictStr,
|
1721
|
+
sort: Annotated[Optional[DatasetsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
1722
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
1723
|
+
model_ids: Annotated[Optional[List[StrictStr]], Field(description="Filter the results for datasets that are used by these models. Optional.")] = None,
|
1724
|
+
search: Annotated[Optional[StrictStr], Field(description="Search for datasets by connector name or dataset name.")] = None,
|
1725
|
+
connector_type: Annotated[Optional[ConnectorType], Field(description="Filter datasets by connector type.")] = None,
|
1726
|
+
connector_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by connector name.")] = None,
|
1727
|
+
dataset_name: Annotated[Optional[StrictStr], Field(description="Filter datasets by dataset name.")] = None,
|
1728
|
+
joined_datasets: Annotated[Optional[StrictBool], Field(description="Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.")] = None,
|
1729
|
+
data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter datasets by the data plane (engine) that backs them.")] = None,
|
1730
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
1731
|
+
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,
|
1732
|
+
_request_timeout: Union[
|
1733
|
+
None,
|
1734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1735
|
+
Tuple[
|
1736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1738
|
+
]
|
1739
|
+
] = None,
|
1740
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1741
|
+
_content_type: Optional[StrictStr] = None,
|
1742
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1743
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1744
|
+
) -> RESTResponseType:
|
1745
|
+
"""Get Datasets
|
1746
|
+
|
1747
|
+
Returns a list of configured datasets. Requires project_list_datasets permission.
|
1748
|
+
|
1749
|
+
:param project_id: (required)
|
1750
|
+
:type project_id: str
|
1751
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
1752
|
+
:type sort: DatasetsSort
|
1753
|
+
:param order: Override the sort order used. Optional.
|
1754
|
+
:type order: SortOrder
|
1755
|
+
:param model_ids: Filter the results for datasets that are used by these models. Optional.
|
1756
|
+
:type model_ids: List[str]
|
1757
|
+
:param search: Search for datasets by connector name or dataset name.
|
1758
|
+
:type search: str
|
1759
|
+
:param connector_type: Filter datasets by connector type.
|
1760
|
+
:type connector_type: ConnectorType
|
1761
|
+
:param connector_name: Filter datasets by connector name.
|
1762
|
+
:type connector_name: str
|
1763
|
+
:param dataset_name: Filter datasets by dataset name.
|
1764
|
+
:type dataset_name: str
|
1765
|
+
:param joined_datasets: Filter for joined datasets. Only returns joined datasets if True. Only returns non-joined datasets if False. Not applied if None.
|
1766
|
+
:type joined_datasets: bool
|
1767
|
+
:param data_plane_id: Filter datasets by the data plane (engine) that backs them.
|
1768
|
+
:type data_plane_id: str
|
1769
|
+
:param page: The page to return starting from 1 up to total_pages.
|
1770
|
+
:type page: int
|
1771
|
+
:param page_size: The number of records per page. The max is 1000.
|
1772
|
+
:type page_size: int
|
1773
|
+
:param _request_timeout: timeout setting for this request. If one
|
1774
|
+
number provided, it will be total request
|
1775
|
+
timeout. It can also be a pair (tuple) of
|
1776
|
+
(connection, read) timeouts.
|
1777
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1778
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1779
|
+
request; this effectively ignores the
|
1780
|
+
authentication in the spec for a single request.
|
1781
|
+
:type _request_auth: dict, optional
|
1782
|
+
:param _content_type: force content-type for the request.
|
1783
|
+
:type _content_type: str, Optional
|
1784
|
+
:param _headers: set to override the headers for a single
|
1785
|
+
request; this effectively ignores the headers
|
1786
|
+
in the spec for a single request.
|
1787
|
+
:type _headers: dict, optional
|
1788
|
+
:param _host_index: set to override the host_index for a single
|
1789
|
+
request; this effectively ignores the host_index
|
1790
|
+
in the spec for a single request.
|
1791
|
+
:type _host_index: int, optional
|
1792
|
+
:return: Returns the result object.
|
1793
|
+
""" # noqa: E501
|
1794
|
+
|
1795
|
+
_param = self._get_datasets_serialize(
|
1796
|
+
project_id=project_id,
|
1797
|
+
sort=sort,
|
1798
|
+
order=order,
|
1799
|
+
model_ids=model_ids,
|
1800
|
+
search=search,
|
1801
|
+
connector_type=connector_type,
|
1802
|
+
connector_name=connector_name,
|
1803
|
+
dataset_name=dataset_name,
|
1804
|
+
joined_datasets=joined_datasets,
|
1805
|
+
data_plane_id=data_plane_id,
|
1806
|
+
page=page,
|
1807
|
+
page_size=page_size,
|
1808
|
+
_request_auth=_request_auth,
|
1809
|
+
_content_type=_content_type,
|
1810
|
+
_headers=_headers,
|
1811
|
+
_host_index=_host_index
|
1812
|
+
)
|
1813
|
+
|
1814
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1815
|
+
'200': "ResourceListDataset",
|
1816
|
+
'500': "InternalServerError",
|
1817
|
+
'404': "NotFoundError",
|
1818
|
+
'422': "HTTPValidationError",
|
1819
|
+
}
|
1820
|
+
response_data = self.api_client.call_api(
|
1821
|
+
*_param,
|
1822
|
+
_request_timeout=_request_timeout
|
1823
|
+
)
|
1824
|
+
return response_data.response
|
1825
|
+
|
1826
|
+
|
1827
|
+
def _get_datasets_serialize(
|
1828
|
+
self,
|
1829
|
+
project_id,
|
1830
|
+
sort,
|
1831
|
+
order,
|
1832
|
+
model_ids,
|
1833
|
+
search,
|
1834
|
+
connector_type,
|
1835
|
+
connector_name,
|
1836
|
+
dataset_name,
|
1837
|
+
joined_datasets,
|
1838
|
+
data_plane_id,
|
1839
|
+
page,
|
1840
|
+
page_size,
|
1841
|
+
_request_auth,
|
1842
|
+
_content_type,
|
1843
|
+
_headers,
|
1844
|
+
_host_index,
|
1845
|
+
) -> RequestSerialized:
|
1846
|
+
|
1847
|
+
_host = None
|
1848
|
+
|
1849
|
+
_collection_formats: Dict[str, str] = {
|
1850
|
+
'model_ids': 'multi',
|
1851
|
+
}
|
1852
|
+
|
1853
|
+
_path_params: Dict[str, str] = {}
|
1854
|
+
_query_params: List[Tuple[str, str]] = []
|
1855
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1856
|
+
_form_params: List[Tuple[str, str]] = []
|
1857
|
+
_files: Dict[
|
1858
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1859
|
+
] = {}
|
1860
|
+
_body_params: Optional[bytes] = None
|
1861
|
+
|
1862
|
+
# process the path parameters
|
1863
|
+
if project_id is not None:
|
1864
|
+
_path_params['project_id'] = project_id
|
1865
|
+
# process the query parameters
|
1866
|
+
if sort is not None:
|
1867
|
+
|
1868
|
+
_query_params.append(('sort', sort.value))
|
1869
|
+
|
1870
|
+
if order is not None:
|
1871
|
+
|
1872
|
+
_query_params.append(('order', order.value))
|
1873
|
+
|
1874
|
+
if model_ids is not None:
|
1875
|
+
|
1876
|
+
_query_params.append(('model_ids', model_ids))
|
1877
|
+
|
1878
|
+
if search is not None:
|
1879
|
+
|
1880
|
+
_query_params.append(('search', search))
|
1881
|
+
|
1882
|
+
if connector_type is not None:
|
1883
|
+
|
1884
|
+
_query_params.append(('connector_type', connector_type.value))
|
1885
|
+
|
1886
|
+
if connector_name is not None:
|
1887
|
+
|
1888
|
+
_query_params.append(('connector_name', connector_name))
|
1889
|
+
|
1890
|
+
if dataset_name is not None:
|
1891
|
+
|
1892
|
+
_query_params.append(('dataset_name', dataset_name))
|
1893
|
+
|
1894
|
+
if joined_datasets is not None:
|
1895
|
+
|
1896
|
+
_query_params.append(('joined_datasets', joined_datasets))
|
1897
|
+
|
1898
|
+
if data_plane_id is not None:
|
1899
|
+
|
1900
|
+
_query_params.append(('data_plane_id', data_plane_id))
|
1901
|
+
|
1902
|
+
if page is not None:
|
1903
|
+
|
1904
|
+
_query_params.append(('page', page))
|
1905
|
+
|
1906
|
+
if page_size is not None:
|
1907
|
+
|
1908
|
+
_query_params.append(('page_size', page_size))
|
1909
|
+
|
1910
|
+
# process the header parameters
|
1911
|
+
# process the form parameters
|
1912
|
+
# process the body parameter
|
1913
|
+
|
1914
|
+
|
1915
|
+
# set the HTTP header `Accept`
|
1916
|
+
if 'Accept' not in _header_params:
|
1917
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1918
|
+
[
|
1919
|
+
'application/json'
|
1920
|
+
]
|
1921
|
+
)
|
1922
|
+
|
1923
|
+
|
1924
|
+
# authentication setting
|
1925
|
+
_auth_settings: List[str] = [
|
1926
|
+
'OAuth2AuthorizationCode'
|
1927
|
+
]
|
1928
|
+
|
1929
|
+
return self.api_client.param_serialize(
|
1930
|
+
method='GET',
|
1931
|
+
resource_path='/api/v1/projects/{project_id}/datasets',
|
1932
|
+
path_params=_path_params,
|
1933
|
+
query_params=_query_params,
|
1934
|
+
header_params=_header_params,
|
1935
|
+
body=_body_params,
|
1936
|
+
post_params=_form_params,
|
1937
|
+
files=_files,
|
1938
|
+
auth_settings=_auth_settings,
|
1939
|
+
collection_formats=_collection_formats,
|
1940
|
+
_host=_host,
|
1941
|
+
_request_auth=_request_auth
|
1942
|
+
)
|
1943
|
+
|
1944
|
+
|
1945
|
+
|
1946
|
+
|
1947
|
+
@validate_call
|
1948
|
+
def patch_dataset(
|
1949
|
+
self,
|
1950
|
+
dataset_id: StrictStr,
|
1951
|
+
patch_dataset: PatchDataset,
|
1952
|
+
_request_timeout: Union[
|
1953
|
+
None,
|
1954
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1955
|
+
Tuple[
|
1956
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1957
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1958
|
+
]
|
1959
|
+
] = None,
|
1960
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1961
|
+
_content_type: Optional[StrictStr] = None,
|
1962
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1963
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1964
|
+
) -> Dataset:
|
1965
|
+
"""Update Dataset
|
1966
|
+
|
1967
|
+
Update a dataset. Requires dataset_update permission.
|
1968
|
+
|
1969
|
+
:param dataset_id: (required)
|
1970
|
+
:type dataset_id: str
|
1971
|
+
:param patch_dataset: (required)
|
1972
|
+
:type patch_dataset: PatchDataset
|
1973
|
+
:param _request_timeout: timeout setting for this request. If one
|
1974
|
+
number provided, it will be total request
|
1975
|
+
timeout. It can also be a pair (tuple) of
|
1976
|
+
(connection, read) timeouts.
|
1977
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1978
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1979
|
+
request; this effectively ignores the
|
1980
|
+
authentication in the spec for a single request.
|
1981
|
+
:type _request_auth: dict, optional
|
1982
|
+
:param _content_type: force content-type for the request.
|
1983
|
+
:type _content_type: str, Optional
|
1984
|
+
:param _headers: set to override the headers for a single
|
1985
|
+
request; this effectively ignores the headers
|
1986
|
+
in the spec for a single request.
|
1987
|
+
:type _headers: dict, optional
|
1988
|
+
:param _host_index: set to override the host_index for a single
|
1989
|
+
request; this effectively ignores the host_index
|
1990
|
+
in the spec for a single request.
|
1991
|
+
:type _host_index: int, optional
|
1992
|
+
:return: Returns the result object.
|
1993
|
+
""" # noqa: E501
|
1994
|
+
|
1995
|
+
_param = self._patch_dataset_serialize(
|
1996
|
+
dataset_id=dataset_id,
|
1997
|
+
patch_dataset=patch_dataset,
|
1998
|
+
_request_auth=_request_auth,
|
1999
|
+
_content_type=_content_type,
|
2000
|
+
_headers=_headers,
|
2001
|
+
_host_index=_host_index
|
2002
|
+
)
|
2003
|
+
|
2004
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2005
|
+
'200': "Dataset",
|
2006
|
+
'500': "InternalServerError",
|
2007
|
+
'404': "NotFoundError",
|
2008
|
+
'400': "BadRequestError",
|
2009
|
+
'422': "HTTPValidationError",
|
2010
|
+
}
|
2011
|
+
response_data = self.api_client.call_api(
|
2012
|
+
*_param,
|
2013
|
+
_request_timeout=_request_timeout
|
2014
|
+
)
|
2015
|
+
response_data.read()
|
2016
|
+
return self.api_client.response_deserialize(
|
2017
|
+
response_data=response_data,
|
2018
|
+
response_types_map=_response_types_map,
|
2019
|
+
).data
|
2020
|
+
|
2021
|
+
|
2022
|
+
@validate_call
|
2023
|
+
def patch_dataset_with_http_info(
|
2024
|
+
self,
|
2025
|
+
dataset_id: StrictStr,
|
2026
|
+
patch_dataset: PatchDataset,
|
2027
|
+
_request_timeout: Union[
|
2028
|
+
None,
|
2029
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2030
|
+
Tuple[
|
2031
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2032
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2033
|
+
]
|
2034
|
+
] = None,
|
2035
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2036
|
+
_content_type: Optional[StrictStr] = None,
|
2037
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2038
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2039
|
+
) -> ApiResponse[Dataset]:
|
2040
|
+
"""Update Dataset
|
2041
|
+
|
2042
|
+
Update a dataset. Requires dataset_update permission.
|
2043
|
+
|
2044
|
+
:param dataset_id: (required)
|
2045
|
+
:type dataset_id: str
|
2046
|
+
:param patch_dataset: (required)
|
2047
|
+
:type patch_dataset: PatchDataset
|
2048
|
+
:param _request_timeout: timeout setting for this request. If one
|
2049
|
+
number provided, it will be total request
|
2050
|
+
timeout. It can also be a pair (tuple) of
|
2051
|
+
(connection, read) timeouts.
|
2052
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2053
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2054
|
+
request; this effectively ignores the
|
2055
|
+
authentication in the spec for a single request.
|
2056
|
+
:type _request_auth: dict, optional
|
2057
|
+
:param _content_type: force content-type for the request.
|
2058
|
+
:type _content_type: str, Optional
|
2059
|
+
:param _headers: set to override the headers for a single
|
2060
|
+
request; this effectively ignores the headers
|
2061
|
+
in the spec for a single request.
|
2062
|
+
:type _headers: dict, optional
|
2063
|
+
:param _host_index: set to override the host_index for a single
|
2064
|
+
request; this effectively ignores the host_index
|
2065
|
+
in the spec for a single request.
|
2066
|
+
:type _host_index: int, optional
|
2067
|
+
:return: Returns the result object.
|
2068
|
+
""" # noqa: E501
|
2069
|
+
|
2070
|
+
_param = self._patch_dataset_serialize(
|
2071
|
+
dataset_id=dataset_id,
|
2072
|
+
patch_dataset=patch_dataset,
|
2073
|
+
_request_auth=_request_auth,
|
2074
|
+
_content_type=_content_type,
|
2075
|
+
_headers=_headers,
|
2076
|
+
_host_index=_host_index
|
2077
|
+
)
|
2078
|
+
|
2079
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2080
|
+
'200': "Dataset",
|
2081
|
+
'500': "InternalServerError",
|
2082
|
+
'404': "NotFoundError",
|
2083
|
+
'400': "BadRequestError",
|
2084
|
+
'422': "HTTPValidationError",
|
2085
|
+
}
|
2086
|
+
response_data = self.api_client.call_api(
|
2087
|
+
*_param,
|
2088
|
+
_request_timeout=_request_timeout
|
2089
|
+
)
|
2090
|
+
response_data.read()
|
2091
|
+
return self.api_client.response_deserialize(
|
2092
|
+
response_data=response_data,
|
2093
|
+
response_types_map=_response_types_map,
|
2094
|
+
)
|
2095
|
+
|
2096
|
+
|
2097
|
+
@validate_call
|
2098
|
+
def patch_dataset_without_preload_content(
|
2099
|
+
self,
|
2100
|
+
dataset_id: StrictStr,
|
2101
|
+
patch_dataset: PatchDataset,
|
2102
|
+
_request_timeout: Union[
|
2103
|
+
None,
|
2104
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2105
|
+
Tuple[
|
2106
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2107
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2108
|
+
]
|
2109
|
+
] = None,
|
2110
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2111
|
+
_content_type: Optional[StrictStr] = None,
|
2112
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2113
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2114
|
+
) -> RESTResponseType:
|
2115
|
+
"""Update Dataset
|
2116
|
+
|
2117
|
+
Update a dataset. Requires dataset_update permission.
|
2118
|
+
|
2119
|
+
:param dataset_id: (required)
|
2120
|
+
:type dataset_id: str
|
2121
|
+
:param patch_dataset: (required)
|
2122
|
+
:type patch_dataset: PatchDataset
|
2123
|
+
:param _request_timeout: timeout setting for this request. If one
|
2124
|
+
number provided, it will be total request
|
2125
|
+
timeout. It can also be a pair (tuple) of
|
2126
|
+
(connection, read) timeouts.
|
2127
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2128
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2129
|
+
request; this effectively ignores the
|
2130
|
+
authentication in the spec for a single request.
|
2131
|
+
:type _request_auth: dict, optional
|
2132
|
+
:param _content_type: force content-type for the request.
|
2133
|
+
:type _content_type: str, Optional
|
2134
|
+
:param _headers: set to override the headers for a single
|
2135
|
+
request; this effectively ignores the headers
|
2136
|
+
in the spec for a single request.
|
2137
|
+
:type _headers: dict, optional
|
2138
|
+
:param _host_index: set to override the host_index for a single
|
2139
|
+
request; this effectively ignores the host_index
|
2140
|
+
in the spec for a single request.
|
2141
|
+
:type _host_index: int, optional
|
2142
|
+
:return: Returns the result object.
|
2143
|
+
""" # noqa: E501
|
2144
|
+
|
2145
|
+
_param = self._patch_dataset_serialize(
|
2146
|
+
dataset_id=dataset_id,
|
2147
|
+
patch_dataset=patch_dataset,
|
2148
|
+
_request_auth=_request_auth,
|
2149
|
+
_content_type=_content_type,
|
2150
|
+
_headers=_headers,
|
2151
|
+
_host_index=_host_index
|
2152
|
+
)
|
2153
|
+
|
2154
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2155
|
+
'200': "Dataset",
|
2156
|
+
'500': "InternalServerError",
|
2157
|
+
'404': "NotFoundError",
|
2158
|
+
'400': "BadRequestError",
|
2159
|
+
'422': "HTTPValidationError",
|
2160
|
+
}
|
2161
|
+
response_data = self.api_client.call_api(
|
2162
|
+
*_param,
|
2163
|
+
_request_timeout=_request_timeout
|
2164
|
+
)
|
2165
|
+
return response_data.response
|
2166
|
+
|
2167
|
+
|
2168
|
+
def _patch_dataset_serialize(
|
2169
|
+
self,
|
2170
|
+
dataset_id,
|
2171
|
+
patch_dataset,
|
2172
|
+
_request_auth,
|
2173
|
+
_content_type,
|
2174
|
+
_headers,
|
2175
|
+
_host_index,
|
2176
|
+
) -> RequestSerialized:
|
2177
|
+
|
2178
|
+
_host = None
|
2179
|
+
|
2180
|
+
_collection_formats: Dict[str, str] = {
|
2181
|
+
}
|
2182
|
+
|
2183
|
+
_path_params: Dict[str, str] = {}
|
2184
|
+
_query_params: List[Tuple[str, str]] = []
|
2185
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2186
|
+
_form_params: List[Tuple[str, str]] = []
|
2187
|
+
_files: Dict[
|
2188
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2189
|
+
] = {}
|
2190
|
+
_body_params: Optional[bytes] = None
|
2191
|
+
|
2192
|
+
# process the path parameters
|
2193
|
+
if dataset_id is not None:
|
2194
|
+
_path_params['dataset_id'] = dataset_id
|
2195
|
+
# process the query parameters
|
2196
|
+
# process the header parameters
|
2197
|
+
# process the form parameters
|
2198
|
+
# process the body parameter
|
2199
|
+
if patch_dataset is not None:
|
2200
|
+
_body_params = patch_dataset
|
2201
|
+
|
2202
|
+
|
2203
|
+
# set the HTTP header `Accept`
|
2204
|
+
if 'Accept' not in _header_params:
|
2205
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2206
|
+
[
|
2207
|
+
'application/json'
|
2208
|
+
]
|
2209
|
+
)
|
2210
|
+
|
2211
|
+
# set the HTTP header `Content-Type`
|
2212
|
+
if _content_type:
|
2213
|
+
_header_params['Content-Type'] = _content_type
|
2214
|
+
else:
|
2215
|
+
_default_content_type = (
|
2216
|
+
self.api_client.select_header_content_type(
|
2217
|
+
[
|
2218
|
+
'application/json'
|
2219
|
+
]
|
2220
|
+
)
|
2221
|
+
)
|
2222
|
+
if _default_content_type is not None:
|
2223
|
+
_header_params['Content-Type'] = _default_content_type
|
2224
|
+
|
2225
|
+
# authentication setting
|
2226
|
+
_auth_settings: List[str] = [
|
2227
|
+
'OAuth2AuthorizationCode'
|
2228
|
+
]
|
2229
|
+
|
2230
|
+
return self.api_client.param_serialize(
|
2231
|
+
method='PATCH',
|
2232
|
+
resource_path='/api/v1/datasets/{dataset_id}',
|
2233
|
+
path_params=_path_params,
|
2234
|
+
query_params=_query_params,
|
2235
|
+
header_params=_header_params,
|
2236
|
+
body=_body_params,
|
2237
|
+
post_params=_form_params,
|
2238
|
+
files=_files,
|
2239
|
+
auth_settings=_auth_settings,
|
2240
|
+
collection_formats=_collection_formats,
|
2241
|
+
_host=_host,
|
2242
|
+
_request_auth=_request_auth
|
2243
|
+
)
|
2244
|
+
|
2245
|
+
|
2246
|
+
|
2247
|
+
|
2248
|
+
@validate_call
|
2249
|
+
def post_available_dataset(
|
2250
|
+
self,
|
2251
|
+
connector_id: StrictStr,
|
2252
|
+
put_available_dataset: PutAvailableDataset,
|
2253
|
+
_request_timeout: Union[
|
2254
|
+
None,
|
2255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2256
|
+
Tuple[
|
2257
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2258
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2259
|
+
]
|
2260
|
+
] = None,
|
2261
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2262
|
+
_content_type: Optional[StrictStr] = None,
|
2263
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2264
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2265
|
+
) -> AvailableDataset:
|
2266
|
+
"""Create Single Available Dataset
|
2267
|
+
|
2268
|
+
Create a single available dataset for this connector. Requires connector_create_available_datasetpermission.
|
2269
|
+
|
2270
|
+
:param connector_id: (required)
|
2271
|
+
:type connector_id: str
|
2272
|
+
:param put_available_dataset: (required)
|
2273
|
+
:type put_available_dataset: PutAvailableDataset
|
2274
|
+
:param _request_timeout: timeout setting for this request. If one
|
2275
|
+
number provided, it will be total request
|
2276
|
+
timeout. It can also be a pair (tuple) of
|
2277
|
+
(connection, read) timeouts.
|
2278
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2279
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2280
|
+
request; this effectively ignores the
|
2281
|
+
authentication in the spec for a single request.
|
2282
|
+
:type _request_auth: dict, optional
|
2283
|
+
:param _content_type: force content-type for the request.
|
2284
|
+
:type _content_type: str, Optional
|
2285
|
+
:param _headers: set to override the headers for a single
|
2286
|
+
request; this effectively ignores the headers
|
2287
|
+
in the spec for a single request.
|
2288
|
+
:type _headers: dict, optional
|
2289
|
+
:param _host_index: set to override the host_index for a single
|
2290
|
+
request; this effectively ignores the host_index
|
2291
|
+
in the spec for a single request.
|
2292
|
+
:type _host_index: int, optional
|
2293
|
+
:return: Returns the result object.
|
2294
|
+
""" # noqa: E501
|
2295
|
+
|
2296
|
+
_param = self._post_available_dataset_serialize(
|
2297
|
+
connector_id=connector_id,
|
2298
|
+
put_available_dataset=put_available_dataset,
|
2299
|
+
_request_auth=_request_auth,
|
2300
|
+
_content_type=_content_type,
|
2301
|
+
_headers=_headers,
|
2302
|
+
_host_index=_host_index
|
2303
|
+
)
|
2304
|
+
|
2305
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2306
|
+
'200': "AvailableDataset",
|
2307
|
+
'500': "InternalServerError",
|
2308
|
+
'404': "NotFoundError",
|
2309
|
+
'422': "HTTPValidationError",
|
2310
|
+
}
|
2311
|
+
response_data = self.api_client.call_api(
|
2312
|
+
*_param,
|
2313
|
+
_request_timeout=_request_timeout
|
2314
|
+
)
|
2315
|
+
response_data.read()
|
2316
|
+
return self.api_client.response_deserialize(
|
2317
|
+
response_data=response_data,
|
2318
|
+
response_types_map=_response_types_map,
|
2319
|
+
).data
|
2320
|
+
|
2321
|
+
|
2322
|
+
@validate_call
|
2323
|
+
def post_available_dataset_with_http_info(
|
2324
|
+
self,
|
2325
|
+
connector_id: StrictStr,
|
2326
|
+
put_available_dataset: PutAvailableDataset,
|
2327
|
+
_request_timeout: Union[
|
2328
|
+
None,
|
2329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2330
|
+
Tuple[
|
2331
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2332
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2333
|
+
]
|
2334
|
+
] = None,
|
2335
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2336
|
+
_content_type: Optional[StrictStr] = None,
|
2337
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2338
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2339
|
+
) -> ApiResponse[AvailableDataset]:
|
2340
|
+
"""Create Single Available Dataset
|
2341
|
+
|
2342
|
+
Create a single available dataset for this connector. Requires connector_create_available_datasetpermission.
|
2343
|
+
|
2344
|
+
:param connector_id: (required)
|
2345
|
+
:type connector_id: str
|
2346
|
+
:param put_available_dataset: (required)
|
2347
|
+
:type put_available_dataset: PutAvailableDataset
|
2348
|
+
:param _request_timeout: timeout setting for this request. If one
|
2349
|
+
number provided, it will be total request
|
2350
|
+
timeout. It can also be a pair (tuple) of
|
2351
|
+
(connection, read) timeouts.
|
2352
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2353
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2354
|
+
request; this effectively ignores the
|
2355
|
+
authentication in the spec for a single request.
|
2356
|
+
:type _request_auth: dict, optional
|
2357
|
+
:param _content_type: force content-type for the request.
|
2358
|
+
:type _content_type: str, Optional
|
2359
|
+
:param _headers: set to override the headers for a single
|
2360
|
+
request; this effectively ignores the headers
|
2361
|
+
in the spec for a single request.
|
2362
|
+
:type _headers: dict, optional
|
2363
|
+
:param _host_index: set to override the host_index for a single
|
2364
|
+
request; this effectively ignores the host_index
|
2365
|
+
in the spec for a single request.
|
2366
|
+
:type _host_index: int, optional
|
2367
|
+
:return: Returns the result object.
|
2368
|
+
""" # noqa: E501
|
2369
|
+
|
2370
|
+
_param = self._post_available_dataset_serialize(
|
2371
|
+
connector_id=connector_id,
|
2372
|
+
put_available_dataset=put_available_dataset,
|
2373
|
+
_request_auth=_request_auth,
|
2374
|
+
_content_type=_content_type,
|
2375
|
+
_headers=_headers,
|
2376
|
+
_host_index=_host_index
|
2377
|
+
)
|
2378
|
+
|
2379
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2380
|
+
'200': "AvailableDataset",
|
2381
|
+
'500': "InternalServerError",
|
2382
|
+
'404': "NotFoundError",
|
2383
|
+
'422': "HTTPValidationError",
|
2384
|
+
}
|
2385
|
+
response_data = self.api_client.call_api(
|
2386
|
+
*_param,
|
2387
|
+
_request_timeout=_request_timeout
|
2388
|
+
)
|
2389
|
+
response_data.read()
|
2390
|
+
return self.api_client.response_deserialize(
|
2391
|
+
response_data=response_data,
|
2392
|
+
response_types_map=_response_types_map,
|
2393
|
+
)
|
2394
|
+
|
2395
|
+
|
2396
|
+
@validate_call
|
2397
|
+
def post_available_dataset_without_preload_content(
|
2398
|
+
self,
|
2399
|
+
connector_id: StrictStr,
|
2400
|
+
put_available_dataset: PutAvailableDataset,
|
2401
|
+
_request_timeout: Union[
|
2402
|
+
None,
|
2403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2404
|
+
Tuple[
|
2405
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2406
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2407
|
+
]
|
2408
|
+
] = None,
|
2409
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2410
|
+
_content_type: Optional[StrictStr] = None,
|
2411
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2412
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2413
|
+
) -> RESTResponseType:
|
2414
|
+
"""Create Single Available Dataset
|
2415
|
+
|
2416
|
+
Create a single available dataset for this connector. Requires connector_create_available_datasetpermission.
|
2417
|
+
|
2418
|
+
:param connector_id: (required)
|
2419
|
+
:type connector_id: str
|
2420
|
+
:param put_available_dataset: (required)
|
2421
|
+
:type put_available_dataset: PutAvailableDataset
|
2422
|
+
:param _request_timeout: timeout setting for this request. If one
|
2423
|
+
number provided, it will be total request
|
2424
|
+
timeout. It can also be a pair (tuple) of
|
2425
|
+
(connection, read) timeouts.
|
2426
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2427
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2428
|
+
request; this effectively ignores the
|
2429
|
+
authentication in the spec for a single request.
|
2430
|
+
:type _request_auth: dict, optional
|
2431
|
+
:param _content_type: force content-type for the request.
|
2432
|
+
:type _content_type: str, Optional
|
2433
|
+
:param _headers: set to override the headers for a single
|
2434
|
+
request; this effectively ignores the headers
|
2435
|
+
in the spec for a single request.
|
2436
|
+
:type _headers: dict, optional
|
2437
|
+
:param _host_index: set to override the host_index for a single
|
2438
|
+
request; this effectively ignores the host_index
|
2439
|
+
in the spec for a single request.
|
2440
|
+
:type _host_index: int, optional
|
2441
|
+
:return: Returns the result object.
|
2442
|
+
""" # noqa: E501
|
2443
|
+
|
2444
|
+
_param = self._post_available_dataset_serialize(
|
2445
|
+
connector_id=connector_id,
|
2446
|
+
put_available_dataset=put_available_dataset,
|
2447
|
+
_request_auth=_request_auth,
|
2448
|
+
_content_type=_content_type,
|
2449
|
+
_headers=_headers,
|
2450
|
+
_host_index=_host_index
|
2451
|
+
)
|
2452
|
+
|
2453
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2454
|
+
'200': "AvailableDataset",
|
2455
|
+
'500': "InternalServerError",
|
2456
|
+
'404': "NotFoundError",
|
2457
|
+
'422': "HTTPValidationError",
|
2458
|
+
}
|
2459
|
+
response_data = self.api_client.call_api(
|
2460
|
+
*_param,
|
2461
|
+
_request_timeout=_request_timeout
|
2462
|
+
)
|
2463
|
+
return response_data.response
|
2464
|
+
|
2465
|
+
|
2466
|
+
def _post_available_dataset_serialize(
|
2467
|
+
self,
|
2468
|
+
connector_id,
|
2469
|
+
put_available_dataset,
|
2470
|
+
_request_auth,
|
2471
|
+
_content_type,
|
2472
|
+
_headers,
|
2473
|
+
_host_index,
|
2474
|
+
) -> RequestSerialized:
|
2475
|
+
|
2476
|
+
_host = None
|
2477
|
+
|
2478
|
+
_collection_formats: Dict[str, str] = {
|
2479
|
+
}
|
2480
|
+
|
2481
|
+
_path_params: Dict[str, str] = {}
|
2482
|
+
_query_params: List[Tuple[str, str]] = []
|
2483
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2484
|
+
_form_params: List[Tuple[str, str]] = []
|
2485
|
+
_files: Dict[
|
2486
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2487
|
+
] = {}
|
2488
|
+
_body_params: Optional[bytes] = None
|
2489
|
+
|
2490
|
+
# process the path parameters
|
2491
|
+
if connector_id is not None:
|
2492
|
+
_path_params['connector_id'] = connector_id
|
2493
|
+
# process the query parameters
|
2494
|
+
# process the header parameters
|
2495
|
+
# process the form parameters
|
2496
|
+
# process the body parameter
|
2497
|
+
if put_available_dataset is not None:
|
2498
|
+
_body_params = put_available_dataset
|
2499
|
+
|
2500
|
+
|
2501
|
+
# set the HTTP header `Accept`
|
2502
|
+
if 'Accept' not in _header_params:
|
2503
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2504
|
+
[
|
2505
|
+
'application/json'
|
2506
|
+
]
|
2507
|
+
)
|
2508
|
+
|
2509
|
+
# set the HTTP header `Content-Type`
|
2510
|
+
if _content_type:
|
2511
|
+
_header_params['Content-Type'] = _content_type
|
2512
|
+
else:
|
2513
|
+
_default_content_type = (
|
2514
|
+
self.api_client.select_header_content_type(
|
2515
|
+
[
|
2516
|
+
'application/json'
|
2517
|
+
]
|
2518
|
+
)
|
2519
|
+
)
|
2520
|
+
if _default_content_type is not None:
|
2521
|
+
_header_params['Content-Type'] = _default_content_type
|
2522
|
+
|
2523
|
+
# authentication setting
|
2524
|
+
_auth_settings: List[str] = [
|
2525
|
+
'OAuth2AuthorizationCode'
|
2526
|
+
]
|
2527
|
+
|
2528
|
+
return self.api_client.param_serialize(
|
2529
|
+
method='POST',
|
2530
|
+
resource_path='/api/v1/connectors/{connector_id}/available_datasets',
|
2531
|
+
path_params=_path_params,
|
2532
|
+
query_params=_query_params,
|
2533
|
+
header_params=_header_params,
|
2534
|
+
body=_body_params,
|
2535
|
+
post_params=_form_params,
|
2536
|
+
files=_files,
|
2537
|
+
auth_settings=_auth_settings,
|
2538
|
+
collection_formats=_collection_formats,
|
2539
|
+
_host=_host,
|
2540
|
+
_request_auth=_request_auth
|
2541
|
+
)
|
2542
|
+
|
2543
|
+
|
2544
|
+
|
2545
|
+
|
2546
|
+
@validate_call
|
2547
|
+
def post_connector_dataset(
|
2548
|
+
self,
|
2549
|
+
connector_id: StrictStr,
|
2550
|
+
post_dataset: PostDataset,
|
2551
|
+
_request_timeout: Union[
|
2552
|
+
None,
|
2553
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2554
|
+
Tuple[
|
2555
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2556
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2557
|
+
]
|
2558
|
+
] = None,
|
2559
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2560
|
+
_content_type: Optional[StrictStr] = None,
|
2561
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2562
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2563
|
+
) -> Dataset:
|
2564
|
+
"""Create Connector Dataset
|
2565
|
+
|
2566
|
+
Create connector dataset. Requires connector_create_dataset permission.
|
2567
|
+
|
2568
|
+
:param connector_id: (required)
|
2569
|
+
:type connector_id: str
|
2570
|
+
:param post_dataset: (required)
|
2571
|
+
:type post_dataset: PostDataset
|
2572
|
+
:param _request_timeout: timeout setting for this request. If one
|
2573
|
+
number provided, it will be total request
|
2574
|
+
timeout. It can also be a pair (tuple) of
|
2575
|
+
(connection, read) timeouts.
|
2576
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2577
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2578
|
+
request; this effectively ignores the
|
2579
|
+
authentication in the spec for a single request.
|
2580
|
+
:type _request_auth: dict, optional
|
2581
|
+
:param _content_type: force content-type for the request.
|
2582
|
+
:type _content_type: str, Optional
|
2583
|
+
:param _headers: set to override the headers for a single
|
2584
|
+
request; this effectively ignores the headers
|
2585
|
+
in the spec for a single request.
|
2586
|
+
:type _headers: dict, optional
|
2587
|
+
:param _host_index: set to override the host_index for a single
|
2588
|
+
request; this effectively ignores the host_index
|
2589
|
+
in the spec for a single request.
|
2590
|
+
:type _host_index: int, optional
|
2591
|
+
:return: Returns the result object.
|
2592
|
+
""" # noqa: E501
|
2593
|
+
|
2594
|
+
_param = self._post_connector_dataset_serialize(
|
2595
|
+
connector_id=connector_id,
|
2596
|
+
post_dataset=post_dataset,
|
2597
|
+
_request_auth=_request_auth,
|
2598
|
+
_content_type=_content_type,
|
2599
|
+
_headers=_headers,
|
2600
|
+
_host_index=_host_index
|
2601
|
+
)
|
2602
|
+
|
2603
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2604
|
+
'200': "Dataset",
|
2605
|
+
'500': "InternalServerError",
|
2606
|
+
'404': "NotFoundError",
|
2607
|
+
'400': "BadRequestError",
|
2608
|
+
'422': "HTTPValidationError",
|
2609
|
+
}
|
2610
|
+
response_data = self.api_client.call_api(
|
2611
|
+
*_param,
|
2612
|
+
_request_timeout=_request_timeout
|
2613
|
+
)
|
2614
|
+
response_data.read()
|
2615
|
+
return self.api_client.response_deserialize(
|
2616
|
+
response_data=response_data,
|
2617
|
+
response_types_map=_response_types_map,
|
2618
|
+
).data
|
2619
|
+
|
2620
|
+
|
2621
|
+
@validate_call
|
2622
|
+
def post_connector_dataset_with_http_info(
|
2623
|
+
self,
|
2624
|
+
connector_id: StrictStr,
|
2625
|
+
post_dataset: PostDataset,
|
2626
|
+
_request_timeout: Union[
|
2627
|
+
None,
|
2628
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2629
|
+
Tuple[
|
2630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2631
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2632
|
+
]
|
2633
|
+
] = None,
|
2634
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2635
|
+
_content_type: Optional[StrictStr] = None,
|
2636
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2637
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2638
|
+
) -> ApiResponse[Dataset]:
|
2639
|
+
"""Create Connector Dataset
|
2640
|
+
|
2641
|
+
Create connector dataset. Requires connector_create_dataset permission.
|
2642
|
+
|
2643
|
+
:param connector_id: (required)
|
2644
|
+
:type connector_id: str
|
2645
|
+
:param post_dataset: (required)
|
2646
|
+
:type post_dataset: PostDataset
|
2647
|
+
:param _request_timeout: timeout setting for this request. If one
|
2648
|
+
number provided, it will be total request
|
2649
|
+
timeout. It can also be a pair (tuple) of
|
2650
|
+
(connection, read) timeouts.
|
2651
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2652
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2653
|
+
request; this effectively ignores the
|
2654
|
+
authentication in the spec for a single request.
|
2655
|
+
:type _request_auth: dict, optional
|
2656
|
+
:param _content_type: force content-type for the request.
|
2657
|
+
:type _content_type: str, Optional
|
2658
|
+
:param _headers: set to override the headers for a single
|
2659
|
+
request; this effectively ignores the headers
|
2660
|
+
in the spec for a single request.
|
2661
|
+
:type _headers: dict, optional
|
2662
|
+
:param _host_index: set to override the host_index for a single
|
2663
|
+
request; this effectively ignores the host_index
|
2664
|
+
in the spec for a single request.
|
2665
|
+
:type _host_index: int, optional
|
2666
|
+
:return: Returns the result object.
|
2667
|
+
""" # noqa: E501
|
2668
|
+
|
2669
|
+
_param = self._post_connector_dataset_serialize(
|
2670
|
+
connector_id=connector_id,
|
2671
|
+
post_dataset=post_dataset,
|
2672
|
+
_request_auth=_request_auth,
|
2673
|
+
_content_type=_content_type,
|
2674
|
+
_headers=_headers,
|
2675
|
+
_host_index=_host_index
|
2676
|
+
)
|
2677
|
+
|
2678
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2679
|
+
'200': "Dataset",
|
2680
|
+
'500': "InternalServerError",
|
2681
|
+
'404': "NotFoundError",
|
2682
|
+
'400': "BadRequestError",
|
2683
|
+
'422': "HTTPValidationError",
|
2684
|
+
}
|
2685
|
+
response_data = self.api_client.call_api(
|
2686
|
+
*_param,
|
2687
|
+
_request_timeout=_request_timeout
|
2688
|
+
)
|
2689
|
+
response_data.read()
|
2690
|
+
return self.api_client.response_deserialize(
|
2691
|
+
response_data=response_data,
|
2692
|
+
response_types_map=_response_types_map,
|
2693
|
+
)
|
2694
|
+
|
2695
|
+
|
2696
|
+
@validate_call
|
2697
|
+
def post_connector_dataset_without_preload_content(
|
2698
|
+
self,
|
2699
|
+
connector_id: StrictStr,
|
2700
|
+
post_dataset: PostDataset,
|
2701
|
+
_request_timeout: Union[
|
2702
|
+
None,
|
2703
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2704
|
+
Tuple[
|
2705
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2706
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2707
|
+
]
|
2708
|
+
] = None,
|
2709
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2710
|
+
_content_type: Optional[StrictStr] = None,
|
2711
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2712
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2713
|
+
) -> RESTResponseType:
|
2714
|
+
"""Create Connector Dataset
|
2715
|
+
|
2716
|
+
Create connector dataset. Requires connector_create_dataset permission.
|
2717
|
+
|
2718
|
+
:param connector_id: (required)
|
2719
|
+
:type connector_id: str
|
2720
|
+
:param post_dataset: (required)
|
2721
|
+
:type post_dataset: PostDataset
|
2722
|
+
:param _request_timeout: timeout setting for this request. If one
|
2723
|
+
number provided, it will be total request
|
2724
|
+
timeout. It can also be a pair (tuple) of
|
2725
|
+
(connection, read) timeouts.
|
2726
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2727
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2728
|
+
request; this effectively ignores the
|
2729
|
+
authentication in the spec for a single request.
|
2730
|
+
:type _request_auth: dict, optional
|
2731
|
+
:param _content_type: force content-type for the request.
|
2732
|
+
:type _content_type: str, Optional
|
2733
|
+
:param _headers: set to override the headers for a single
|
2734
|
+
request; this effectively ignores the headers
|
2735
|
+
in the spec for a single request.
|
2736
|
+
:type _headers: dict, optional
|
2737
|
+
:param _host_index: set to override the host_index for a single
|
2738
|
+
request; this effectively ignores the host_index
|
2739
|
+
in the spec for a single request.
|
2740
|
+
:type _host_index: int, optional
|
2741
|
+
:return: Returns the result object.
|
2742
|
+
""" # noqa: E501
|
2743
|
+
|
2744
|
+
_param = self._post_connector_dataset_serialize(
|
2745
|
+
connector_id=connector_id,
|
2746
|
+
post_dataset=post_dataset,
|
2747
|
+
_request_auth=_request_auth,
|
2748
|
+
_content_type=_content_type,
|
2749
|
+
_headers=_headers,
|
2750
|
+
_host_index=_host_index
|
2751
|
+
)
|
2752
|
+
|
2753
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2754
|
+
'200': "Dataset",
|
2755
|
+
'500': "InternalServerError",
|
2756
|
+
'404': "NotFoundError",
|
2757
|
+
'400': "BadRequestError",
|
2758
|
+
'422': "HTTPValidationError",
|
2759
|
+
}
|
2760
|
+
response_data = self.api_client.call_api(
|
2761
|
+
*_param,
|
2762
|
+
_request_timeout=_request_timeout
|
2763
|
+
)
|
2764
|
+
return response_data.response
|
2765
|
+
|
2766
|
+
|
2767
|
+
def _post_connector_dataset_serialize(
|
2768
|
+
self,
|
2769
|
+
connector_id,
|
2770
|
+
post_dataset,
|
2771
|
+
_request_auth,
|
2772
|
+
_content_type,
|
2773
|
+
_headers,
|
2774
|
+
_host_index,
|
2775
|
+
) -> RequestSerialized:
|
2776
|
+
|
2777
|
+
_host = None
|
2778
|
+
|
2779
|
+
_collection_formats: Dict[str, str] = {
|
2780
|
+
}
|
2781
|
+
|
2782
|
+
_path_params: Dict[str, str] = {}
|
2783
|
+
_query_params: List[Tuple[str, str]] = []
|
2784
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2785
|
+
_form_params: List[Tuple[str, str]] = []
|
2786
|
+
_files: Dict[
|
2787
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2788
|
+
] = {}
|
2789
|
+
_body_params: Optional[bytes] = None
|
2790
|
+
|
2791
|
+
# process the path parameters
|
2792
|
+
if connector_id is not None:
|
2793
|
+
_path_params['connector_id'] = connector_id
|
2794
|
+
# process the query parameters
|
2795
|
+
# process the header parameters
|
2796
|
+
# process the form parameters
|
2797
|
+
# process the body parameter
|
2798
|
+
if post_dataset is not None:
|
2799
|
+
_body_params = post_dataset
|
2800
|
+
|
2801
|
+
|
2802
|
+
# set the HTTP header `Accept`
|
2803
|
+
if 'Accept' not in _header_params:
|
2804
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2805
|
+
[
|
2806
|
+
'application/json'
|
2807
|
+
]
|
2808
|
+
)
|
2809
|
+
|
2810
|
+
# set the HTTP header `Content-Type`
|
2811
|
+
if _content_type:
|
2812
|
+
_header_params['Content-Type'] = _content_type
|
2813
|
+
else:
|
2814
|
+
_default_content_type = (
|
2815
|
+
self.api_client.select_header_content_type(
|
2816
|
+
[
|
2817
|
+
'application/json'
|
2818
|
+
]
|
2819
|
+
)
|
2820
|
+
)
|
2821
|
+
if _default_content_type is not None:
|
2822
|
+
_header_params['Content-Type'] = _default_content_type
|
2823
|
+
|
2824
|
+
# authentication setting
|
2825
|
+
_auth_settings: List[str] = [
|
2826
|
+
'OAuth2AuthorizationCode'
|
2827
|
+
]
|
2828
|
+
|
2829
|
+
return self.api_client.param_serialize(
|
2830
|
+
method='POST',
|
2831
|
+
resource_path='/api/v1/connectors/{connector_id}/datasets',
|
2832
|
+
path_params=_path_params,
|
2833
|
+
query_params=_query_params,
|
2834
|
+
header_params=_header_params,
|
2835
|
+
body=_body_params,
|
2836
|
+
post_params=_form_params,
|
2837
|
+
files=_files,
|
2838
|
+
auth_settings=_auth_settings,
|
2839
|
+
collection_formats=_collection_formats,
|
2840
|
+
_host=_host,
|
2841
|
+
_request_auth=_request_auth
|
2842
|
+
)
|
2843
|
+
|
2844
|
+
|
2845
|
+
|
2846
|
+
|
2847
|
+
@validate_call
|
2848
|
+
def post_project_available_dataset(
|
2849
|
+
self,
|
2850
|
+
project_id: StrictStr,
|
2851
|
+
put_available_dataset: PutAvailableDataset,
|
2852
|
+
_request_timeout: Union[
|
2853
|
+
None,
|
2854
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2855
|
+
Tuple[
|
2856
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2857
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2858
|
+
]
|
2859
|
+
] = None,
|
2860
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2861
|
+
_content_type: Optional[StrictStr] = None,
|
2862
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2863
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2864
|
+
) -> AvailableDataset:
|
2865
|
+
"""Create Project Available Dataset
|
2866
|
+
|
2867
|
+
Create project dataset. Requires project_create_available_dataset permission.
|
2868
|
+
|
2869
|
+
:param project_id: (required)
|
2870
|
+
:type project_id: str
|
2871
|
+
:param put_available_dataset: (required)
|
2872
|
+
:type put_available_dataset: PutAvailableDataset
|
2873
|
+
:param _request_timeout: timeout setting for this request. If one
|
2874
|
+
number provided, it will be total request
|
2875
|
+
timeout. It can also be a pair (tuple) of
|
2876
|
+
(connection, read) timeouts.
|
2877
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2878
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2879
|
+
request; this effectively ignores the
|
2880
|
+
authentication in the spec for a single request.
|
2881
|
+
:type _request_auth: dict, optional
|
2882
|
+
:param _content_type: force content-type for the request.
|
2883
|
+
:type _content_type: str, Optional
|
2884
|
+
:param _headers: set to override the headers for a single
|
2885
|
+
request; this effectively ignores the headers
|
2886
|
+
in the spec for a single request.
|
2887
|
+
:type _headers: dict, optional
|
2888
|
+
:param _host_index: set to override the host_index for a single
|
2889
|
+
request; this effectively ignores the host_index
|
2890
|
+
in the spec for a single request.
|
2891
|
+
:type _host_index: int, optional
|
2892
|
+
:return: Returns the result object.
|
2893
|
+
""" # noqa: E501
|
2894
|
+
|
2895
|
+
_param = self._post_project_available_dataset_serialize(
|
2896
|
+
project_id=project_id,
|
2897
|
+
put_available_dataset=put_available_dataset,
|
2898
|
+
_request_auth=_request_auth,
|
2899
|
+
_content_type=_content_type,
|
2900
|
+
_headers=_headers,
|
2901
|
+
_host_index=_host_index
|
2902
|
+
)
|
2903
|
+
|
2904
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2905
|
+
'200': "AvailableDataset",
|
2906
|
+
'500': "InternalServerError",
|
2907
|
+
'404': "NotFoundError",
|
2908
|
+
'400': "BadRequestError",
|
2909
|
+
'422': "HTTPValidationError",
|
2910
|
+
}
|
2911
|
+
response_data = self.api_client.call_api(
|
2912
|
+
*_param,
|
2913
|
+
_request_timeout=_request_timeout
|
2914
|
+
)
|
2915
|
+
response_data.read()
|
2916
|
+
return self.api_client.response_deserialize(
|
2917
|
+
response_data=response_data,
|
2918
|
+
response_types_map=_response_types_map,
|
2919
|
+
).data
|
2920
|
+
|
2921
|
+
|
2922
|
+
@validate_call
|
2923
|
+
def post_project_available_dataset_with_http_info(
|
2924
|
+
self,
|
2925
|
+
project_id: StrictStr,
|
2926
|
+
put_available_dataset: PutAvailableDataset,
|
2927
|
+
_request_timeout: Union[
|
2928
|
+
None,
|
2929
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2930
|
+
Tuple[
|
2931
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2932
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2933
|
+
]
|
2934
|
+
] = None,
|
2935
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2936
|
+
_content_type: Optional[StrictStr] = None,
|
2937
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2938
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2939
|
+
) -> ApiResponse[AvailableDataset]:
|
2940
|
+
"""Create Project Available Dataset
|
2941
|
+
|
2942
|
+
Create project dataset. Requires project_create_available_dataset permission.
|
2943
|
+
|
2944
|
+
:param project_id: (required)
|
2945
|
+
:type project_id: str
|
2946
|
+
:param put_available_dataset: (required)
|
2947
|
+
:type put_available_dataset: PutAvailableDataset
|
2948
|
+
:param _request_timeout: timeout setting for this request. If one
|
2949
|
+
number provided, it will be total request
|
2950
|
+
timeout. It can also be a pair (tuple) of
|
2951
|
+
(connection, read) timeouts.
|
2952
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2953
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2954
|
+
request; this effectively ignores the
|
2955
|
+
authentication in the spec for a single request.
|
2956
|
+
:type _request_auth: dict, optional
|
2957
|
+
:param _content_type: force content-type for the request.
|
2958
|
+
:type _content_type: str, Optional
|
2959
|
+
:param _headers: set to override the headers for a single
|
2960
|
+
request; this effectively ignores the headers
|
2961
|
+
in the spec for a single request.
|
2962
|
+
:type _headers: dict, optional
|
2963
|
+
:param _host_index: set to override the host_index for a single
|
2964
|
+
request; this effectively ignores the host_index
|
2965
|
+
in the spec for a single request.
|
2966
|
+
:type _host_index: int, optional
|
2967
|
+
:return: Returns the result object.
|
2968
|
+
""" # noqa: E501
|
2969
|
+
|
2970
|
+
_param = self._post_project_available_dataset_serialize(
|
2971
|
+
project_id=project_id,
|
2972
|
+
put_available_dataset=put_available_dataset,
|
2973
|
+
_request_auth=_request_auth,
|
2974
|
+
_content_type=_content_type,
|
2975
|
+
_headers=_headers,
|
2976
|
+
_host_index=_host_index
|
2977
|
+
)
|
2978
|
+
|
2979
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2980
|
+
'200': "AvailableDataset",
|
2981
|
+
'500': "InternalServerError",
|
2982
|
+
'404': "NotFoundError",
|
2983
|
+
'400': "BadRequestError",
|
2984
|
+
'422': "HTTPValidationError",
|
2985
|
+
}
|
2986
|
+
response_data = self.api_client.call_api(
|
2987
|
+
*_param,
|
2988
|
+
_request_timeout=_request_timeout
|
2989
|
+
)
|
2990
|
+
response_data.read()
|
2991
|
+
return self.api_client.response_deserialize(
|
2992
|
+
response_data=response_data,
|
2993
|
+
response_types_map=_response_types_map,
|
2994
|
+
)
|
2995
|
+
|
2996
|
+
|
2997
|
+
@validate_call
|
2998
|
+
def post_project_available_dataset_without_preload_content(
|
2999
|
+
self,
|
3000
|
+
project_id: StrictStr,
|
3001
|
+
put_available_dataset: PutAvailableDataset,
|
3002
|
+
_request_timeout: Union[
|
3003
|
+
None,
|
3004
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3005
|
+
Tuple[
|
3006
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3007
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3008
|
+
]
|
3009
|
+
] = None,
|
3010
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3011
|
+
_content_type: Optional[StrictStr] = None,
|
3012
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3013
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3014
|
+
) -> RESTResponseType:
|
3015
|
+
"""Create Project Available Dataset
|
3016
|
+
|
3017
|
+
Create project dataset. Requires project_create_available_dataset permission.
|
3018
|
+
|
3019
|
+
:param project_id: (required)
|
3020
|
+
:type project_id: str
|
3021
|
+
:param put_available_dataset: (required)
|
3022
|
+
:type put_available_dataset: PutAvailableDataset
|
3023
|
+
:param _request_timeout: timeout setting for this request. If one
|
3024
|
+
number provided, it will be total request
|
3025
|
+
timeout. It can also be a pair (tuple) of
|
3026
|
+
(connection, read) timeouts.
|
3027
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3028
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3029
|
+
request; this effectively ignores the
|
3030
|
+
authentication in the spec for a single request.
|
3031
|
+
:type _request_auth: dict, optional
|
3032
|
+
:param _content_type: force content-type for the request.
|
3033
|
+
:type _content_type: str, Optional
|
3034
|
+
:param _headers: set to override the headers for a single
|
3035
|
+
request; this effectively ignores the headers
|
3036
|
+
in the spec for a single request.
|
3037
|
+
:type _headers: dict, optional
|
3038
|
+
:param _host_index: set to override the host_index for a single
|
3039
|
+
request; this effectively ignores the host_index
|
3040
|
+
in the spec for a single request.
|
3041
|
+
:type _host_index: int, optional
|
3042
|
+
:return: Returns the result object.
|
3043
|
+
""" # noqa: E501
|
3044
|
+
|
3045
|
+
_param = self._post_project_available_dataset_serialize(
|
3046
|
+
project_id=project_id,
|
3047
|
+
put_available_dataset=put_available_dataset,
|
3048
|
+
_request_auth=_request_auth,
|
3049
|
+
_content_type=_content_type,
|
3050
|
+
_headers=_headers,
|
3051
|
+
_host_index=_host_index
|
3052
|
+
)
|
3053
|
+
|
3054
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3055
|
+
'200': "AvailableDataset",
|
3056
|
+
'500': "InternalServerError",
|
3057
|
+
'404': "NotFoundError",
|
3058
|
+
'400': "BadRequestError",
|
3059
|
+
'422': "HTTPValidationError",
|
3060
|
+
}
|
3061
|
+
response_data = self.api_client.call_api(
|
3062
|
+
*_param,
|
3063
|
+
_request_timeout=_request_timeout
|
3064
|
+
)
|
3065
|
+
return response_data.response
|
3066
|
+
|
3067
|
+
|
3068
|
+
def _post_project_available_dataset_serialize(
|
3069
|
+
self,
|
3070
|
+
project_id,
|
3071
|
+
put_available_dataset,
|
3072
|
+
_request_auth,
|
3073
|
+
_content_type,
|
3074
|
+
_headers,
|
3075
|
+
_host_index,
|
3076
|
+
) -> RequestSerialized:
|
3077
|
+
|
3078
|
+
_host = None
|
3079
|
+
|
3080
|
+
_collection_formats: Dict[str, str] = {
|
3081
|
+
}
|
3082
|
+
|
3083
|
+
_path_params: Dict[str, str] = {}
|
3084
|
+
_query_params: List[Tuple[str, str]] = []
|
3085
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3086
|
+
_form_params: List[Tuple[str, str]] = []
|
3087
|
+
_files: Dict[
|
3088
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3089
|
+
] = {}
|
3090
|
+
_body_params: Optional[bytes] = None
|
3091
|
+
|
3092
|
+
# process the path parameters
|
3093
|
+
if project_id is not None:
|
3094
|
+
_path_params['project_id'] = project_id
|
3095
|
+
# process the query parameters
|
3096
|
+
# process the header parameters
|
3097
|
+
# process the form parameters
|
3098
|
+
# process the body parameter
|
3099
|
+
if put_available_dataset is not None:
|
3100
|
+
_body_params = put_available_dataset
|
3101
|
+
|
3102
|
+
|
3103
|
+
# set the HTTP header `Accept`
|
3104
|
+
if 'Accept' not in _header_params:
|
3105
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3106
|
+
[
|
3107
|
+
'application/json'
|
3108
|
+
]
|
3109
|
+
)
|
3110
|
+
|
3111
|
+
# set the HTTP header `Content-Type`
|
3112
|
+
if _content_type:
|
3113
|
+
_header_params['Content-Type'] = _content_type
|
3114
|
+
else:
|
3115
|
+
_default_content_type = (
|
3116
|
+
self.api_client.select_header_content_type(
|
3117
|
+
[
|
3118
|
+
'application/json'
|
3119
|
+
]
|
3120
|
+
)
|
3121
|
+
)
|
3122
|
+
if _default_content_type is not None:
|
3123
|
+
_header_params['Content-Type'] = _default_content_type
|
3124
|
+
|
3125
|
+
# authentication setting
|
3126
|
+
_auth_settings: List[str] = [
|
3127
|
+
'OAuth2AuthorizationCode'
|
3128
|
+
]
|
3129
|
+
|
3130
|
+
return self.api_client.param_serialize(
|
3131
|
+
method='POST',
|
3132
|
+
resource_path='/api/v1/projects/{project_id}/available_datasets',
|
3133
|
+
path_params=_path_params,
|
3134
|
+
query_params=_query_params,
|
3135
|
+
header_params=_header_params,
|
3136
|
+
body=_body_params,
|
3137
|
+
post_params=_form_params,
|
3138
|
+
files=_files,
|
3139
|
+
auth_settings=_auth_settings,
|
3140
|
+
collection_formats=_collection_formats,
|
3141
|
+
_host=_host,
|
3142
|
+
_request_auth=_request_auth
|
3143
|
+
)
|
3144
|
+
|
3145
|
+
|
3146
|
+
|
3147
|
+
|
3148
|
+
@validate_call
|
3149
|
+
def post_project_dataset(
|
3150
|
+
self,
|
3151
|
+
project_id: StrictStr,
|
3152
|
+
post_dataset: PostDataset,
|
3153
|
+
_request_timeout: Union[
|
3154
|
+
None,
|
3155
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3156
|
+
Tuple[
|
3157
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3158
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3159
|
+
]
|
3160
|
+
] = None,
|
3161
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3162
|
+
_content_type: Optional[StrictStr] = None,
|
3163
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3164
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3165
|
+
) -> Dataset:
|
3166
|
+
"""Create Project Dataset
|
3167
|
+
|
3168
|
+
Create project dataset. Requires project_create_dataset permission.
|
3169
|
+
|
3170
|
+
:param project_id: (required)
|
3171
|
+
:type project_id: str
|
3172
|
+
:param post_dataset: (required)
|
3173
|
+
:type post_dataset: PostDataset
|
3174
|
+
:param _request_timeout: timeout setting for this request. If one
|
3175
|
+
number provided, it will be total request
|
3176
|
+
timeout. It can also be a pair (tuple) of
|
3177
|
+
(connection, read) timeouts.
|
3178
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3179
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3180
|
+
request; this effectively ignores the
|
3181
|
+
authentication in the spec for a single request.
|
3182
|
+
:type _request_auth: dict, optional
|
3183
|
+
:param _content_type: force content-type for the request.
|
3184
|
+
:type _content_type: str, Optional
|
3185
|
+
:param _headers: set to override the headers for a single
|
3186
|
+
request; this effectively ignores the headers
|
3187
|
+
in the spec for a single request.
|
3188
|
+
:type _headers: dict, optional
|
3189
|
+
:param _host_index: set to override the host_index for a single
|
3190
|
+
request; this effectively ignores the host_index
|
3191
|
+
in the spec for a single request.
|
3192
|
+
:type _host_index: int, optional
|
3193
|
+
:return: Returns the result object.
|
3194
|
+
""" # noqa: E501
|
3195
|
+
|
3196
|
+
_param = self._post_project_dataset_serialize(
|
3197
|
+
project_id=project_id,
|
3198
|
+
post_dataset=post_dataset,
|
3199
|
+
_request_auth=_request_auth,
|
3200
|
+
_content_type=_content_type,
|
3201
|
+
_headers=_headers,
|
3202
|
+
_host_index=_host_index
|
3203
|
+
)
|
3204
|
+
|
3205
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3206
|
+
'200': "Dataset",
|
3207
|
+
'500': "InternalServerError",
|
3208
|
+
'404': "NotFoundError",
|
3209
|
+
'400': "BadRequestError",
|
3210
|
+
'422': "HTTPValidationError",
|
3211
|
+
}
|
3212
|
+
response_data = self.api_client.call_api(
|
3213
|
+
*_param,
|
3214
|
+
_request_timeout=_request_timeout
|
3215
|
+
)
|
3216
|
+
response_data.read()
|
3217
|
+
return self.api_client.response_deserialize(
|
3218
|
+
response_data=response_data,
|
3219
|
+
response_types_map=_response_types_map,
|
3220
|
+
).data
|
3221
|
+
|
3222
|
+
|
3223
|
+
@validate_call
|
3224
|
+
def post_project_dataset_with_http_info(
|
3225
|
+
self,
|
3226
|
+
project_id: StrictStr,
|
3227
|
+
post_dataset: PostDataset,
|
3228
|
+
_request_timeout: Union[
|
3229
|
+
None,
|
3230
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3231
|
+
Tuple[
|
3232
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3233
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3234
|
+
]
|
3235
|
+
] = None,
|
3236
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3237
|
+
_content_type: Optional[StrictStr] = None,
|
3238
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3239
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3240
|
+
) -> ApiResponse[Dataset]:
|
3241
|
+
"""Create Project Dataset
|
3242
|
+
|
3243
|
+
Create project dataset. Requires project_create_dataset permission.
|
3244
|
+
|
3245
|
+
:param project_id: (required)
|
3246
|
+
:type project_id: str
|
3247
|
+
:param post_dataset: (required)
|
3248
|
+
:type post_dataset: PostDataset
|
3249
|
+
:param _request_timeout: timeout setting for this request. If one
|
3250
|
+
number provided, it will be total request
|
3251
|
+
timeout. It can also be a pair (tuple) of
|
3252
|
+
(connection, read) timeouts.
|
3253
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3254
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3255
|
+
request; this effectively ignores the
|
3256
|
+
authentication in the spec for a single request.
|
3257
|
+
:type _request_auth: dict, optional
|
3258
|
+
:param _content_type: force content-type for the request.
|
3259
|
+
:type _content_type: str, Optional
|
3260
|
+
:param _headers: set to override the headers for a single
|
3261
|
+
request; this effectively ignores the headers
|
3262
|
+
in the spec for a single request.
|
3263
|
+
:type _headers: dict, optional
|
3264
|
+
:param _host_index: set to override the host_index for a single
|
3265
|
+
request; this effectively ignores the host_index
|
3266
|
+
in the spec for a single request.
|
3267
|
+
:type _host_index: int, optional
|
3268
|
+
:return: Returns the result object.
|
3269
|
+
""" # noqa: E501
|
3270
|
+
|
3271
|
+
_param = self._post_project_dataset_serialize(
|
3272
|
+
project_id=project_id,
|
3273
|
+
post_dataset=post_dataset,
|
3274
|
+
_request_auth=_request_auth,
|
3275
|
+
_content_type=_content_type,
|
3276
|
+
_headers=_headers,
|
3277
|
+
_host_index=_host_index
|
3278
|
+
)
|
3279
|
+
|
3280
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3281
|
+
'200': "Dataset",
|
3282
|
+
'500': "InternalServerError",
|
3283
|
+
'404': "NotFoundError",
|
3284
|
+
'400': "BadRequestError",
|
3285
|
+
'422': "HTTPValidationError",
|
3286
|
+
}
|
3287
|
+
response_data = self.api_client.call_api(
|
3288
|
+
*_param,
|
3289
|
+
_request_timeout=_request_timeout
|
3290
|
+
)
|
3291
|
+
response_data.read()
|
3292
|
+
return self.api_client.response_deserialize(
|
3293
|
+
response_data=response_data,
|
3294
|
+
response_types_map=_response_types_map,
|
3295
|
+
)
|
3296
|
+
|
3297
|
+
|
3298
|
+
@validate_call
|
3299
|
+
def post_project_dataset_without_preload_content(
|
3300
|
+
self,
|
3301
|
+
project_id: StrictStr,
|
3302
|
+
post_dataset: PostDataset,
|
3303
|
+
_request_timeout: Union[
|
3304
|
+
None,
|
3305
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3306
|
+
Tuple[
|
3307
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3308
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3309
|
+
]
|
3310
|
+
] = None,
|
3311
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3312
|
+
_content_type: Optional[StrictStr] = None,
|
3313
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3314
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3315
|
+
) -> RESTResponseType:
|
3316
|
+
"""Create Project Dataset
|
3317
|
+
|
3318
|
+
Create project dataset. Requires project_create_dataset permission.
|
3319
|
+
|
3320
|
+
:param project_id: (required)
|
3321
|
+
:type project_id: str
|
3322
|
+
:param post_dataset: (required)
|
3323
|
+
:type post_dataset: PostDataset
|
3324
|
+
:param _request_timeout: timeout setting for this request. If one
|
3325
|
+
number provided, it will be total request
|
3326
|
+
timeout. It can also be a pair (tuple) of
|
3327
|
+
(connection, read) timeouts.
|
3328
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3329
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3330
|
+
request; this effectively ignores the
|
3331
|
+
authentication in the spec for a single request.
|
3332
|
+
:type _request_auth: dict, optional
|
3333
|
+
:param _content_type: force content-type for the request.
|
3334
|
+
:type _content_type: str, Optional
|
3335
|
+
:param _headers: set to override the headers for a single
|
3336
|
+
request; this effectively ignores the headers
|
3337
|
+
in the spec for a single request.
|
3338
|
+
:type _headers: dict, optional
|
3339
|
+
:param _host_index: set to override the host_index for a single
|
3340
|
+
request; this effectively ignores the host_index
|
3341
|
+
in the spec for a single request.
|
3342
|
+
:type _host_index: int, optional
|
3343
|
+
:return: Returns the result object.
|
3344
|
+
""" # noqa: E501
|
3345
|
+
|
3346
|
+
_param = self._post_project_dataset_serialize(
|
3347
|
+
project_id=project_id,
|
3348
|
+
post_dataset=post_dataset,
|
3349
|
+
_request_auth=_request_auth,
|
3350
|
+
_content_type=_content_type,
|
3351
|
+
_headers=_headers,
|
3352
|
+
_host_index=_host_index
|
3353
|
+
)
|
3354
|
+
|
3355
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3356
|
+
'200': "Dataset",
|
3357
|
+
'500': "InternalServerError",
|
3358
|
+
'404': "NotFoundError",
|
3359
|
+
'400': "BadRequestError",
|
3360
|
+
'422': "HTTPValidationError",
|
3361
|
+
}
|
3362
|
+
response_data = self.api_client.call_api(
|
3363
|
+
*_param,
|
3364
|
+
_request_timeout=_request_timeout
|
3365
|
+
)
|
3366
|
+
return response_data.response
|
3367
|
+
|
3368
|
+
|
3369
|
+
def _post_project_dataset_serialize(
|
3370
|
+
self,
|
3371
|
+
project_id,
|
3372
|
+
post_dataset,
|
3373
|
+
_request_auth,
|
3374
|
+
_content_type,
|
3375
|
+
_headers,
|
3376
|
+
_host_index,
|
3377
|
+
) -> RequestSerialized:
|
3378
|
+
|
3379
|
+
_host = None
|
3380
|
+
|
3381
|
+
_collection_formats: Dict[str, str] = {
|
3382
|
+
}
|
3383
|
+
|
3384
|
+
_path_params: Dict[str, str] = {}
|
3385
|
+
_query_params: List[Tuple[str, str]] = []
|
3386
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3387
|
+
_form_params: List[Tuple[str, str]] = []
|
3388
|
+
_files: Dict[
|
3389
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3390
|
+
] = {}
|
3391
|
+
_body_params: Optional[bytes] = None
|
3392
|
+
|
3393
|
+
# process the path parameters
|
3394
|
+
if project_id is not None:
|
3395
|
+
_path_params['project_id'] = project_id
|
3396
|
+
# process the query parameters
|
3397
|
+
# process the header parameters
|
3398
|
+
# process the form parameters
|
3399
|
+
# process the body parameter
|
3400
|
+
if post_dataset is not None:
|
3401
|
+
_body_params = post_dataset
|
3402
|
+
|
3403
|
+
|
3404
|
+
# set the HTTP header `Accept`
|
3405
|
+
if 'Accept' not in _header_params:
|
3406
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3407
|
+
[
|
3408
|
+
'application/json'
|
3409
|
+
]
|
3410
|
+
)
|
3411
|
+
|
3412
|
+
# set the HTTP header `Content-Type`
|
3413
|
+
if _content_type:
|
3414
|
+
_header_params['Content-Type'] = _content_type
|
3415
|
+
else:
|
3416
|
+
_default_content_type = (
|
3417
|
+
self.api_client.select_header_content_type(
|
3418
|
+
[
|
3419
|
+
'application/json'
|
3420
|
+
]
|
3421
|
+
)
|
3422
|
+
)
|
3423
|
+
if _default_content_type is not None:
|
3424
|
+
_header_params['Content-Type'] = _default_content_type
|
3425
|
+
|
3426
|
+
# authentication setting
|
3427
|
+
_auth_settings: List[str] = [
|
3428
|
+
'OAuth2AuthorizationCode'
|
3429
|
+
]
|
3430
|
+
|
3431
|
+
return self.api_client.param_serialize(
|
3432
|
+
method='POST',
|
3433
|
+
resource_path='/api/v1/projects/{project_id}/datasets',
|
3434
|
+
path_params=_path_params,
|
3435
|
+
query_params=_query_params,
|
3436
|
+
header_params=_header_params,
|
3437
|
+
body=_body_params,
|
3438
|
+
post_params=_form_params,
|
3439
|
+
files=_files,
|
3440
|
+
auth_settings=_auth_settings,
|
3441
|
+
collection_formats=_collection_formats,
|
3442
|
+
_host=_host,
|
3443
|
+
_request_auth=_request_auth
|
3444
|
+
)
|
3445
|
+
|
3446
|
+
|
3447
|
+
|
3448
|
+
|
3449
|
+
@validate_call
|
3450
|
+
def put_available_dataset_schema(
|
3451
|
+
self,
|
3452
|
+
available_dataset_id: StrictStr,
|
3453
|
+
put_dataset_schema: PutDatasetSchema,
|
3454
|
+
_request_timeout: Union[
|
3455
|
+
None,
|
3456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3457
|
+
Tuple[
|
3458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3459
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3460
|
+
]
|
3461
|
+
] = None,
|
3462
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3463
|
+
_content_type: Optional[StrictStr] = None,
|
3464
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3465
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3466
|
+
) -> AvailableDataset:
|
3467
|
+
"""Update Available Dataset Schema
|
3468
|
+
|
3469
|
+
Update a single available dataset schema. Requires available_dataset_put_schema permission.
|
3470
|
+
|
3471
|
+
:param available_dataset_id: (required)
|
3472
|
+
:type available_dataset_id: str
|
3473
|
+
:param put_dataset_schema: (required)
|
3474
|
+
:type put_dataset_schema: PutDatasetSchema
|
3475
|
+
:param _request_timeout: timeout setting for this request. If one
|
3476
|
+
number provided, it will be total request
|
3477
|
+
timeout. It can also be a pair (tuple) of
|
3478
|
+
(connection, read) timeouts.
|
3479
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3480
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3481
|
+
request; this effectively ignores the
|
3482
|
+
authentication in the spec for a single request.
|
3483
|
+
:type _request_auth: dict, optional
|
3484
|
+
:param _content_type: force content-type for the request.
|
3485
|
+
:type _content_type: str, Optional
|
3486
|
+
:param _headers: set to override the headers for a single
|
3487
|
+
request; this effectively ignores the headers
|
3488
|
+
in the spec for a single request.
|
3489
|
+
:type _headers: dict, optional
|
3490
|
+
:param _host_index: set to override the host_index for a single
|
3491
|
+
request; this effectively ignores the host_index
|
3492
|
+
in the spec for a single request.
|
3493
|
+
:type _host_index: int, optional
|
3494
|
+
:return: Returns the result object.
|
3495
|
+
""" # noqa: E501
|
3496
|
+
|
3497
|
+
_param = self._put_available_dataset_schema_serialize(
|
3498
|
+
available_dataset_id=available_dataset_id,
|
3499
|
+
put_dataset_schema=put_dataset_schema,
|
3500
|
+
_request_auth=_request_auth,
|
3501
|
+
_content_type=_content_type,
|
3502
|
+
_headers=_headers,
|
3503
|
+
_host_index=_host_index
|
3504
|
+
)
|
3505
|
+
|
3506
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3507
|
+
'200': "AvailableDataset",
|
3508
|
+
'500': "InternalServerError",
|
3509
|
+
'404': "NotFoundError",
|
3510
|
+
'422': "HTTPValidationError",
|
3511
|
+
}
|
3512
|
+
response_data = self.api_client.call_api(
|
3513
|
+
*_param,
|
3514
|
+
_request_timeout=_request_timeout
|
3515
|
+
)
|
3516
|
+
response_data.read()
|
3517
|
+
return self.api_client.response_deserialize(
|
3518
|
+
response_data=response_data,
|
3519
|
+
response_types_map=_response_types_map,
|
3520
|
+
).data
|
3521
|
+
|
3522
|
+
|
3523
|
+
@validate_call
|
3524
|
+
def put_available_dataset_schema_with_http_info(
|
3525
|
+
self,
|
3526
|
+
available_dataset_id: StrictStr,
|
3527
|
+
put_dataset_schema: PutDatasetSchema,
|
3528
|
+
_request_timeout: Union[
|
3529
|
+
None,
|
3530
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3531
|
+
Tuple[
|
3532
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3533
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3534
|
+
]
|
3535
|
+
] = None,
|
3536
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3537
|
+
_content_type: Optional[StrictStr] = None,
|
3538
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3539
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3540
|
+
) -> ApiResponse[AvailableDataset]:
|
3541
|
+
"""Update Available Dataset Schema
|
3542
|
+
|
3543
|
+
Update a single available dataset schema. Requires available_dataset_put_schema permission.
|
3544
|
+
|
3545
|
+
:param available_dataset_id: (required)
|
3546
|
+
:type available_dataset_id: str
|
3547
|
+
:param put_dataset_schema: (required)
|
3548
|
+
:type put_dataset_schema: PutDatasetSchema
|
3549
|
+
:param _request_timeout: timeout setting for this request. If one
|
3550
|
+
number provided, it will be total request
|
3551
|
+
timeout. It can also be a pair (tuple) of
|
3552
|
+
(connection, read) timeouts.
|
3553
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3554
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3555
|
+
request; this effectively ignores the
|
3556
|
+
authentication in the spec for a single request.
|
3557
|
+
:type _request_auth: dict, optional
|
3558
|
+
:param _content_type: force content-type for the request.
|
3559
|
+
:type _content_type: str, Optional
|
3560
|
+
:param _headers: set to override the headers for a single
|
3561
|
+
request; this effectively ignores the headers
|
3562
|
+
in the spec for a single request.
|
3563
|
+
:type _headers: dict, optional
|
3564
|
+
:param _host_index: set to override the host_index for a single
|
3565
|
+
request; this effectively ignores the host_index
|
3566
|
+
in the spec for a single request.
|
3567
|
+
:type _host_index: int, optional
|
3568
|
+
:return: Returns the result object.
|
3569
|
+
""" # noqa: E501
|
3570
|
+
|
3571
|
+
_param = self._put_available_dataset_schema_serialize(
|
3572
|
+
available_dataset_id=available_dataset_id,
|
3573
|
+
put_dataset_schema=put_dataset_schema,
|
3574
|
+
_request_auth=_request_auth,
|
3575
|
+
_content_type=_content_type,
|
3576
|
+
_headers=_headers,
|
3577
|
+
_host_index=_host_index
|
3578
|
+
)
|
3579
|
+
|
3580
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3581
|
+
'200': "AvailableDataset",
|
3582
|
+
'500': "InternalServerError",
|
3583
|
+
'404': "NotFoundError",
|
3584
|
+
'422': "HTTPValidationError",
|
3585
|
+
}
|
3586
|
+
response_data = self.api_client.call_api(
|
3587
|
+
*_param,
|
3588
|
+
_request_timeout=_request_timeout
|
3589
|
+
)
|
3590
|
+
response_data.read()
|
3591
|
+
return self.api_client.response_deserialize(
|
3592
|
+
response_data=response_data,
|
3593
|
+
response_types_map=_response_types_map,
|
3594
|
+
)
|
3595
|
+
|
3596
|
+
|
3597
|
+
@validate_call
|
3598
|
+
def put_available_dataset_schema_without_preload_content(
|
3599
|
+
self,
|
3600
|
+
available_dataset_id: StrictStr,
|
3601
|
+
put_dataset_schema: PutDatasetSchema,
|
3602
|
+
_request_timeout: Union[
|
3603
|
+
None,
|
3604
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3605
|
+
Tuple[
|
3606
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3607
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3608
|
+
]
|
3609
|
+
] = None,
|
3610
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3611
|
+
_content_type: Optional[StrictStr] = None,
|
3612
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3613
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3614
|
+
) -> RESTResponseType:
|
3615
|
+
"""Update Available Dataset Schema
|
3616
|
+
|
3617
|
+
Update a single available dataset schema. Requires available_dataset_put_schema permission.
|
3618
|
+
|
3619
|
+
:param available_dataset_id: (required)
|
3620
|
+
:type available_dataset_id: str
|
3621
|
+
:param put_dataset_schema: (required)
|
3622
|
+
:type put_dataset_schema: PutDatasetSchema
|
3623
|
+
:param _request_timeout: timeout setting for this request. If one
|
3624
|
+
number provided, it will be total request
|
3625
|
+
timeout. It can also be a pair (tuple) of
|
3626
|
+
(connection, read) timeouts.
|
3627
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3628
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3629
|
+
request; this effectively ignores the
|
3630
|
+
authentication in the spec for a single request.
|
3631
|
+
:type _request_auth: dict, optional
|
3632
|
+
:param _content_type: force content-type for the request.
|
3633
|
+
:type _content_type: str, Optional
|
3634
|
+
:param _headers: set to override the headers for a single
|
3635
|
+
request; this effectively ignores the headers
|
3636
|
+
in the spec for a single request.
|
3637
|
+
:type _headers: dict, optional
|
3638
|
+
:param _host_index: set to override the host_index for a single
|
3639
|
+
request; this effectively ignores the host_index
|
3640
|
+
in the spec for a single request.
|
3641
|
+
:type _host_index: int, optional
|
3642
|
+
:return: Returns the result object.
|
3643
|
+
""" # noqa: E501
|
3644
|
+
|
3645
|
+
_param = self._put_available_dataset_schema_serialize(
|
3646
|
+
available_dataset_id=available_dataset_id,
|
3647
|
+
put_dataset_schema=put_dataset_schema,
|
3648
|
+
_request_auth=_request_auth,
|
3649
|
+
_content_type=_content_type,
|
3650
|
+
_headers=_headers,
|
3651
|
+
_host_index=_host_index
|
3652
|
+
)
|
3653
|
+
|
3654
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3655
|
+
'200': "AvailableDataset",
|
3656
|
+
'500': "InternalServerError",
|
3657
|
+
'404': "NotFoundError",
|
3658
|
+
'422': "HTTPValidationError",
|
3659
|
+
}
|
3660
|
+
response_data = self.api_client.call_api(
|
3661
|
+
*_param,
|
3662
|
+
_request_timeout=_request_timeout
|
3663
|
+
)
|
3664
|
+
return response_data.response
|
3665
|
+
|
3666
|
+
|
3667
|
+
def _put_available_dataset_schema_serialize(
|
3668
|
+
self,
|
3669
|
+
available_dataset_id,
|
3670
|
+
put_dataset_schema,
|
3671
|
+
_request_auth,
|
3672
|
+
_content_type,
|
3673
|
+
_headers,
|
3674
|
+
_host_index,
|
3675
|
+
) -> RequestSerialized:
|
3676
|
+
|
3677
|
+
_host = None
|
3678
|
+
|
3679
|
+
_collection_formats: Dict[str, str] = {
|
3680
|
+
}
|
3681
|
+
|
3682
|
+
_path_params: Dict[str, str] = {}
|
3683
|
+
_query_params: List[Tuple[str, str]] = []
|
3684
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3685
|
+
_form_params: List[Tuple[str, str]] = []
|
3686
|
+
_files: Dict[
|
3687
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3688
|
+
] = {}
|
3689
|
+
_body_params: Optional[bytes] = None
|
3690
|
+
|
3691
|
+
# process the path parameters
|
3692
|
+
if available_dataset_id is not None:
|
3693
|
+
_path_params['available_dataset_id'] = available_dataset_id
|
3694
|
+
# process the query parameters
|
3695
|
+
# process the header parameters
|
3696
|
+
# process the form parameters
|
3697
|
+
# process the body parameter
|
3698
|
+
if put_dataset_schema is not None:
|
3699
|
+
_body_params = put_dataset_schema
|
3700
|
+
|
3701
|
+
|
3702
|
+
# set the HTTP header `Accept`
|
3703
|
+
if 'Accept' not in _header_params:
|
3704
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3705
|
+
[
|
3706
|
+
'application/json'
|
3707
|
+
]
|
3708
|
+
)
|
3709
|
+
|
3710
|
+
# set the HTTP header `Content-Type`
|
3711
|
+
if _content_type:
|
3712
|
+
_header_params['Content-Type'] = _content_type
|
3713
|
+
else:
|
3714
|
+
_default_content_type = (
|
3715
|
+
self.api_client.select_header_content_type(
|
3716
|
+
[
|
3717
|
+
'application/json'
|
3718
|
+
]
|
3719
|
+
)
|
3720
|
+
)
|
3721
|
+
if _default_content_type is not None:
|
3722
|
+
_header_params['Content-Type'] = _default_content_type
|
3723
|
+
|
3724
|
+
# authentication setting
|
3725
|
+
_auth_settings: List[str] = [
|
3726
|
+
'OAuth2AuthorizationCode'
|
3727
|
+
]
|
3728
|
+
|
3729
|
+
return self.api_client.param_serialize(
|
3730
|
+
method='PUT',
|
3731
|
+
resource_path='/api/v1/available_datasets/{available_dataset_id}/schema',
|
3732
|
+
path_params=_path_params,
|
3733
|
+
query_params=_query_params,
|
3734
|
+
header_params=_header_params,
|
3735
|
+
body=_body_params,
|
3736
|
+
post_params=_form_params,
|
3737
|
+
files=_files,
|
3738
|
+
auth_settings=_auth_settings,
|
3739
|
+
collection_formats=_collection_formats,
|
3740
|
+
_host=_host,
|
3741
|
+
_request_auth=_request_auth
|
3742
|
+
)
|
3743
|
+
|
3744
|
+
|
3745
|
+
|
3746
|
+
|
3747
|
+
@validate_call
|
3748
|
+
def put_connector_available_datasets(
|
3749
|
+
self,
|
3750
|
+
connector_id: StrictStr,
|
3751
|
+
put_available_datasets: PutAvailableDatasets,
|
3752
|
+
_request_timeout: Union[
|
3753
|
+
None,
|
3754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3755
|
+
Tuple[
|
3756
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3757
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3758
|
+
]
|
3759
|
+
] = None,
|
3760
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3761
|
+
_content_type: Optional[StrictStr] = None,
|
3762
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3763
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3764
|
+
) -> None:
|
3765
|
+
"""Overwrite Connector Available Datasets
|
3766
|
+
|
3767
|
+
Overwrite all available datasets for this connector. Requires connector_put_available_datasets permission.
|
3768
|
+
|
3769
|
+
:param connector_id: (required)
|
3770
|
+
:type connector_id: str
|
3771
|
+
:param put_available_datasets: (required)
|
3772
|
+
:type put_available_datasets: PutAvailableDatasets
|
3773
|
+
:param _request_timeout: timeout setting for this request. If one
|
3774
|
+
number provided, it will be total request
|
3775
|
+
timeout. It can also be a pair (tuple) of
|
3776
|
+
(connection, read) timeouts.
|
3777
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3778
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3779
|
+
request; this effectively ignores the
|
3780
|
+
authentication in the spec for a single request.
|
3781
|
+
:type _request_auth: dict, optional
|
3782
|
+
:param _content_type: force content-type for the request.
|
3783
|
+
:type _content_type: str, Optional
|
3784
|
+
:param _headers: set to override the headers for a single
|
3785
|
+
request; this effectively ignores the headers
|
3786
|
+
in the spec for a single request.
|
3787
|
+
:type _headers: dict, optional
|
3788
|
+
:param _host_index: set to override the host_index for a single
|
3789
|
+
request; this effectively ignores the host_index
|
3790
|
+
in the spec for a single request.
|
3791
|
+
:type _host_index: int, optional
|
3792
|
+
:return: Returns the result object.
|
3793
|
+
""" # noqa: E501
|
3794
|
+
|
3795
|
+
_param = self._put_connector_available_datasets_serialize(
|
3796
|
+
connector_id=connector_id,
|
3797
|
+
put_available_datasets=put_available_datasets,
|
3798
|
+
_request_auth=_request_auth,
|
3799
|
+
_content_type=_content_type,
|
3800
|
+
_headers=_headers,
|
3801
|
+
_host_index=_host_index
|
3802
|
+
)
|
3803
|
+
|
3804
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3805
|
+
'204': None,
|
3806
|
+
'500': "InternalServerError",
|
3807
|
+
'404': "NotFoundError",
|
3808
|
+
'400': "BadRequestError",
|
3809
|
+
'422': "HTTPValidationError",
|
3810
|
+
}
|
3811
|
+
response_data = self.api_client.call_api(
|
3812
|
+
*_param,
|
3813
|
+
_request_timeout=_request_timeout
|
3814
|
+
)
|
3815
|
+
response_data.read()
|
3816
|
+
return self.api_client.response_deserialize(
|
3817
|
+
response_data=response_data,
|
3818
|
+
response_types_map=_response_types_map,
|
3819
|
+
).data
|
3820
|
+
|
3821
|
+
|
3822
|
+
@validate_call
|
3823
|
+
def put_connector_available_datasets_with_http_info(
|
3824
|
+
self,
|
3825
|
+
connector_id: StrictStr,
|
3826
|
+
put_available_datasets: PutAvailableDatasets,
|
3827
|
+
_request_timeout: Union[
|
3828
|
+
None,
|
3829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3830
|
+
Tuple[
|
3831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3832
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3833
|
+
]
|
3834
|
+
] = None,
|
3835
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3836
|
+
_content_type: Optional[StrictStr] = None,
|
3837
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3838
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3839
|
+
) -> ApiResponse[None]:
|
3840
|
+
"""Overwrite Connector Available Datasets
|
3841
|
+
|
3842
|
+
Overwrite all available datasets for this connector. Requires connector_put_available_datasets permission.
|
3843
|
+
|
3844
|
+
:param connector_id: (required)
|
3845
|
+
:type connector_id: str
|
3846
|
+
:param put_available_datasets: (required)
|
3847
|
+
:type put_available_datasets: PutAvailableDatasets
|
3848
|
+
:param _request_timeout: timeout setting for this request. If one
|
3849
|
+
number provided, it will be total request
|
3850
|
+
timeout. It can also be a pair (tuple) of
|
3851
|
+
(connection, read) timeouts.
|
3852
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3853
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3854
|
+
request; this effectively ignores the
|
3855
|
+
authentication in the spec for a single request.
|
3856
|
+
:type _request_auth: dict, optional
|
3857
|
+
:param _content_type: force content-type for the request.
|
3858
|
+
:type _content_type: str, Optional
|
3859
|
+
:param _headers: set to override the headers for a single
|
3860
|
+
request; this effectively ignores the headers
|
3861
|
+
in the spec for a single request.
|
3862
|
+
:type _headers: dict, optional
|
3863
|
+
:param _host_index: set to override the host_index for a single
|
3864
|
+
request; this effectively ignores the host_index
|
3865
|
+
in the spec for a single request.
|
3866
|
+
:type _host_index: int, optional
|
3867
|
+
:return: Returns the result object.
|
3868
|
+
""" # noqa: E501
|
3869
|
+
|
3870
|
+
_param = self._put_connector_available_datasets_serialize(
|
3871
|
+
connector_id=connector_id,
|
3872
|
+
put_available_datasets=put_available_datasets,
|
3873
|
+
_request_auth=_request_auth,
|
3874
|
+
_content_type=_content_type,
|
3875
|
+
_headers=_headers,
|
3876
|
+
_host_index=_host_index
|
3877
|
+
)
|
3878
|
+
|
3879
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3880
|
+
'204': None,
|
3881
|
+
'500': "InternalServerError",
|
3882
|
+
'404': "NotFoundError",
|
3883
|
+
'400': "BadRequestError",
|
3884
|
+
'422': "HTTPValidationError",
|
3885
|
+
}
|
3886
|
+
response_data = self.api_client.call_api(
|
3887
|
+
*_param,
|
3888
|
+
_request_timeout=_request_timeout
|
3889
|
+
)
|
3890
|
+
response_data.read()
|
3891
|
+
return self.api_client.response_deserialize(
|
3892
|
+
response_data=response_data,
|
3893
|
+
response_types_map=_response_types_map,
|
3894
|
+
)
|
3895
|
+
|
3896
|
+
|
3897
|
+
@validate_call
|
3898
|
+
def put_connector_available_datasets_without_preload_content(
|
3899
|
+
self,
|
3900
|
+
connector_id: StrictStr,
|
3901
|
+
put_available_datasets: PutAvailableDatasets,
|
3902
|
+
_request_timeout: Union[
|
3903
|
+
None,
|
3904
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3905
|
+
Tuple[
|
3906
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3907
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3908
|
+
]
|
3909
|
+
] = None,
|
3910
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3911
|
+
_content_type: Optional[StrictStr] = None,
|
3912
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3913
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3914
|
+
) -> RESTResponseType:
|
3915
|
+
"""Overwrite Connector Available Datasets
|
3916
|
+
|
3917
|
+
Overwrite all available datasets for this connector. Requires connector_put_available_datasets permission.
|
3918
|
+
|
3919
|
+
:param connector_id: (required)
|
3920
|
+
:type connector_id: str
|
3921
|
+
:param put_available_datasets: (required)
|
3922
|
+
:type put_available_datasets: PutAvailableDatasets
|
3923
|
+
:param _request_timeout: timeout setting for this request. If one
|
3924
|
+
number provided, it will be total request
|
3925
|
+
timeout. It can also be a pair (tuple) of
|
3926
|
+
(connection, read) timeouts.
|
3927
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3928
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3929
|
+
request; this effectively ignores the
|
3930
|
+
authentication in the spec for a single request.
|
3931
|
+
:type _request_auth: dict, optional
|
3932
|
+
:param _content_type: force content-type for the request.
|
3933
|
+
:type _content_type: str, Optional
|
3934
|
+
:param _headers: set to override the headers for a single
|
3935
|
+
request; this effectively ignores the headers
|
3936
|
+
in the spec for a single request.
|
3937
|
+
:type _headers: dict, optional
|
3938
|
+
:param _host_index: set to override the host_index for a single
|
3939
|
+
request; this effectively ignores the host_index
|
3940
|
+
in the spec for a single request.
|
3941
|
+
:type _host_index: int, optional
|
3942
|
+
:return: Returns the result object.
|
3943
|
+
""" # noqa: E501
|
3944
|
+
|
3945
|
+
_param = self._put_connector_available_datasets_serialize(
|
3946
|
+
connector_id=connector_id,
|
3947
|
+
put_available_datasets=put_available_datasets,
|
3948
|
+
_request_auth=_request_auth,
|
3949
|
+
_content_type=_content_type,
|
3950
|
+
_headers=_headers,
|
3951
|
+
_host_index=_host_index
|
3952
|
+
)
|
3953
|
+
|
3954
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3955
|
+
'204': None,
|
3956
|
+
'500': "InternalServerError",
|
3957
|
+
'404': "NotFoundError",
|
3958
|
+
'400': "BadRequestError",
|
3959
|
+
'422': "HTTPValidationError",
|
3960
|
+
}
|
3961
|
+
response_data = self.api_client.call_api(
|
3962
|
+
*_param,
|
3963
|
+
_request_timeout=_request_timeout
|
3964
|
+
)
|
3965
|
+
return response_data.response
|
3966
|
+
|
3967
|
+
|
3968
|
+
def _put_connector_available_datasets_serialize(
|
3969
|
+
self,
|
3970
|
+
connector_id,
|
3971
|
+
put_available_datasets,
|
3972
|
+
_request_auth,
|
3973
|
+
_content_type,
|
3974
|
+
_headers,
|
3975
|
+
_host_index,
|
3976
|
+
) -> RequestSerialized:
|
3977
|
+
|
3978
|
+
_host = None
|
3979
|
+
|
3980
|
+
_collection_formats: Dict[str, str] = {
|
3981
|
+
}
|
3982
|
+
|
3983
|
+
_path_params: Dict[str, str] = {}
|
3984
|
+
_query_params: List[Tuple[str, str]] = []
|
3985
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3986
|
+
_form_params: List[Tuple[str, str]] = []
|
3987
|
+
_files: Dict[
|
3988
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3989
|
+
] = {}
|
3990
|
+
_body_params: Optional[bytes] = None
|
3991
|
+
|
3992
|
+
# process the path parameters
|
3993
|
+
if connector_id is not None:
|
3994
|
+
_path_params['connector_id'] = connector_id
|
3995
|
+
# process the query parameters
|
3996
|
+
# process the header parameters
|
3997
|
+
# process the form parameters
|
3998
|
+
# process the body parameter
|
3999
|
+
if put_available_datasets is not None:
|
4000
|
+
_body_params = put_available_datasets
|
4001
|
+
|
4002
|
+
|
4003
|
+
# set the HTTP header `Accept`
|
4004
|
+
if 'Accept' not in _header_params:
|
4005
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
4006
|
+
[
|
4007
|
+
'application/json'
|
4008
|
+
]
|
4009
|
+
)
|
4010
|
+
|
4011
|
+
# set the HTTP header `Content-Type`
|
4012
|
+
if _content_type:
|
4013
|
+
_header_params['Content-Type'] = _content_type
|
4014
|
+
else:
|
4015
|
+
_default_content_type = (
|
4016
|
+
self.api_client.select_header_content_type(
|
4017
|
+
[
|
4018
|
+
'application/json'
|
4019
|
+
]
|
4020
|
+
)
|
4021
|
+
)
|
4022
|
+
if _default_content_type is not None:
|
4023
|
+
_header_params['Content-Type'] = _default_content_type
|
4024
|
+
|
4025
|
+
# authentication setting
|
4026
|
+
_auth_settings: List[str] = [
|
4027
|
+
'OAuth2AuthorizationCode'
|
4028
|
+
]
|
4029
|
+
|
4030
|
+
return self.api_client.param_serialize(
|
4031
|
+
method='PUT',
|
4032
|
+
resource_path='/api/v1/connectors/{connector_id}/available_datasets',
|
4033
|
+
path_params=_path_params,
|
4034
|
+
query_params=_query_params,
|
4035
|
+
header_params=_header_params,
|
4036
|
+
body=_body_params,
|
4037
|
+
post_params=_form_params,
|
4038
|
+
files=_files,
|
4039
|
+
auth_settings=_auth_settings,
|
4040
|
+
collection_formats=_collection_formats,
|
4041
|
+
_host=_host,
|
4042
|
+
_request_auth=_request_auth
|
4043
|
+
)
|
4044
|
+
|
4045
|
+
|
4046
|
+
|
4047
|
+
|
4048
|
+
@validate_call
|
4049
|
+
def put_dataset_schema(
|
4050
|
+
self,
|
4051
|
+
dataset_id: StrictStr,
|
4052
|
+
put_dataset_schema: PutDatasetSchema,
|
4053
|
+
_request_timeout: Union[
|
4054
|
+
None,
|
4055
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4056
|
+
Tuple[
|
4057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4058
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4059
|
+
]
|
4060
|
+
] = None,
|
4061
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4062
|
+
_content_type: Optional[StrictStr] = None,
|
4063
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4064
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4065
|
+
) -> Dataset:
|
4066
|
+
"""Update Dataset Schema
|
4067
|
+
|
4068
|
+
Update a dataset schema. Requires dataset_put_schema permission.
|
4069
|
+
|
4070
|
+
:param dataset_id: (required)
|
4071
|
+
:type dataset_id: str
|
4072
|
+
:param put_dataset_schema: (required)
|
4073
|
+
:type put_dataset_schema: PutDatasetSchema
|
4074
|
+
:param _request_timeout: timeout setting for this request. If one
|
4075
|
+
number provided, it will be total request
|
4076
|
+
timeout. It can also be a pair (tuple) of
|
4077
|
+
(connection, read) timeouts.
|
4078
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4079
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4080
|
+
request; this effectively ignores the
|
4081
|
+
authentication in the spec for a single request.
|
4082
|
+
:type _request_auth: dict, optional
|
4083
|
+
:param _content_type: force content-type for the request.
|
4084
|
+
:type _content_type: str, Optional
|
4085
|
+
:param _headers: set to override the headers for a single
|
4086
|
+
request; this effectively ignores the headers
|
4087
|
+
in the spec for a single request.
|
4088
|
+
:type _headers: dict, optional
|
4089
|
+
:param _host_index: set to override the host_index for a single
|
4090
|
+
request; this effectively ignores the host_index
|
4091
|
+
in the spec for a single request.
|
4092
|
+
:type _host_index: int, optional
|
4093
|
+
:return: Returns the result object.
|
4094
|
+
""" # noqa: E501
|
4095
|
+
|
4096
|
+
_param = self._put_dataset_schema_serialize(
|
4097
|
+
dataset_id=dataset_id,
|
4098
|
+
put_dataset_schema=put_dataset_schema,
|
4099
|
+
_request_auth=_request_auth,
|
4100
|
+
_content_type=_content_type,
|
4101
|
+
_headers=_headers,
|
4102
|
+
_host_index=_host_index
|
4103
|
+
)
|
4104
|
+
|
4105
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4106
|
+
'200': "Dataset",
|
4107
|
+
'500': "InternalServerError",
|
4108
|
+
'404': "NotFoundError",
|
4109
|
+
'422': "HTTPValidationError",
|
4110
|
+
}
|
4111
|
+
response_data = self.api_client.call_api(
|
4112
|
+
*_param,
|
4113
|
+
_request_timeout=_request_timeout
|
4114
|
+
)
|
4115
|
+
response_data.read()
|
4116
|
+
return self.api_client.response_deserialize(
|
4117
|
+
response_data=response_data,
|
4118
|
+
response_types_map=_response_types_map,
|
4119
|
+
).data
|
4120
|
+
|
4121
|
+
|
4122
|
+
@validate_call
|
4123
|
+
def put_dataset_schema_with_http_info(
|
4124
|
+
self,
|
4125
|
+
dataset_id: StrictStr,
|
4126
|
+
put_dataset_schema: PutDatasetSchema,
|
4127
|
+
_request_timeout: Union[
|
4128
|
+
None,
|
4129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4130
|
+
Tuple[
|
4131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4133
|
+
]
|
4134
|
+
] = None,
|
4135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4136
|
+
_content_type: Optional[StrictStr] = None,
|
4137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4139
|
+
) -> ApiResponse[Dataset]:
|
4140
|
+
"""Update Dataset Schema
|
4141
|
+
|
4142
|
+
Update a dataset schema. Requires dataset_put_schema permission.
|
4143
|
+
|
4144
|
+
:param dataset_id: (required)
|
4145
|
+
:type dataset_id: str
|
4146
|
+
:param put_dataset_schema: (required)
|
4147
|
+
:type put_dataset_schema: PutDatasetSchema
|
4148
|
+
:param _request_timeout: timeout setting for this request. If one
|
4149
|
+
number provided, it will be total request
|
4150
|
+
timeout. It can also be a pair (tuple) of
|
4151
|
+
(connection, read) timeouts.
|
4152
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4153
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4154
|
+
request; this effectively ignores the
|
4155
|
+
authentication in the spec for a single request.
|
4156
|
+
:type _request_auth: dict, optional
|
4157
|
+
:param _content_type: force content-type for the request.
|
4158
|
+
:type _content_type: str, Optional
|
4159
|
+
:param _headers: set to override the headers for a single
|
4160
|
+
request; this effectively ignores the headers
|
4161
|
+
in the spec for a single request.
|
4162
|
+
:type _headers: dict, optional
|
4163
|
+
:param _host_index: set to override the host_index for a single
|
4164
|
+
request; this effectively ignores the host_index
|
4165
|
+
in the spec for a single request.
|
4166
|
+
:type _host_index: int, optional
|
4167
|
+
:return: Returns the result object.
|
4168
|
+
""" # noqa: E501
|
4169
|
+
|
4170
|
+
_param = self._put_dataset_schema_serialize(
|
4171
|
+
dataset_id=dataset_id,
|
4172
|
+
put_dataset_schema=put_dataset_schema,
|
4173
|
+
_request_auth=_request_auth,
|
4174
|
+
_content_type=_content_type,
|
4175
|
+
_headers=_headers,
|
4176
|
+
_host_index=_host_index
|
4177
|
+
)
|
4178
|
+
|
4179
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4180
|
+
'200': "Dataset",
|
4181
|
+
'500': "InternalServerError",
|
4182
|
+
'404': "NotFoundError",
|
4183
|
+
'422': "HTTPValidationError",
|
4184
|
+
}
|
4185
|
+
response_data = self.api_client.call_api(
|
4186
|
+
*_param,
|
4187
|
+
_request_timeout=_request_timeout
|
4188
|
+
)
|
4189
|
+
response_data.read()
|
4190
|
+
return self.api_client.response_deserialize(
|
4191
|
+
response_data=response_data,
|
4192
|
+
response_types_map=_response_types_map,
|
4193
|
+
)
|
4194
|
+
|
4195
|
+
|
4196
|
+
@validate_call
|
4197
|
+
def put_dataset_schema_without_preload_content(
|
4198
|
+
self,
|
4199
|
+
dataset_id: StrictStr,
|
4200
|
+
put_dataset_schema: PutDatasetSchema,
|
4201
|
+
_request_timeout: Union[
|
4202
|
+
None,
|
4203
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4204
|
+
Tuple[
|
4205
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4206
|
+
Annotated[StrictFloat, Field(gt=0)]
|
4207
|
+
]
|
4208
|
+
] = None,
|
4209
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4210
|
+
_content_type: Optional[StrictStr] = None,
|
4211
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4212
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4213
|
+
) -> RESTResponseType:
|
4214
|
+
"""Update Dataset Schema
|
4215
|
+
|
4216
|
+
Update a dataset schema. Requires dataset_put_schema permission.
|
4217
|
+
|
4218
|
+
:param dataset_id: (required)
|
4219
|
+
:type dataset_id: str
|
4220
|
+
:param put_dataset_schema: (required)
|
4221
|
+
:type put_dataset_schema: PutDatasetSchema
|
4222
|
+
:param _request_timeout: timeout setting for this request. If one
|
4223
|
+
number provided, it will be total request
|
4224
|
+
timeout. It can also be a pair (tuple) of
|
4225
|
+
(connection, read) timeouts.
|
4226
|
+
:type _request_timeout: int, tuple(int, int), optional
|
4227
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4228
|
+
request; this effectively ignores the
|
4229
|
+
authentication in the spec for a single request.
|
4230
|
+
:type _request_auth: dict, optional
|
4231
|
+
:param _content_type: force content-type for the request.
|
4232
|
+
:type _content_type: str, Optional
|
4233
|
+
:param _headers: set to override the headers for a single
|
4234
|
+
request; this effectively ignores the headers
|
4235
|
+
in the spec for a single request.
|
4236
|
+
:type _headers: dict, optional
|
4237
|
+
:param _host_index: set to override the host_index for a single
|
4238
|
+
request; this effectively ignores the host_index
|
4239
|
+
in the spec for a single request.
|
4240
|
+
:type _host_index: int, optional
|
4241
|
+
:return: Returns the result object.
|
4242
|
+
""" # noqa: E501
|
4243
|
+
|
4244
|
+
_param = self._put_dataset_schema_serialize(
|
4245
|
+
dataset_id=dataset_id,
|
4246
|
+
put_dataset_schema=put_dataset_schema,
|
4247
|
+
_request_auth=_request_auth,
|
4248
|
+
_content_type=_content_type,
|
4249
|
+
_headers=_headers,
|
4250
|
+
_host_index=_host_index
|
4251
|
+
)
|
4252
|
+
|
4253
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
4254
|
+
'200': "Dataset",
|
4255
|
+
'500': "InternalServerError",
|
4256
|
+
'404': "NotFoundError",
|
4257
|
+
'422': "HTTPValidationError",
|
4258
|
+
}
|
4259
|
+
response_data = self.api_client.call_api(
|
4260
|
+
*_param,
|
4261
|
+
_request_timeout=_request_timeout
|
4262
|
+
)
|
4263
|
+
return response_data.response
|
4264
|
+
|
4265
|
+
|
4266
|
+
def _put_dataset_schema_serialize(
|
4267
|
+
self,
|
4268
|
+
dataset_id,
|
4269
|
+
put_dataset_schema,
|
4270
|
+
_request_auth,
|
4271
|
+
_content_type,
|
4272
|
+
_headers,
|
4273
|
+
_host_index,
|
4274
|
+
) -> RequestSerialized:
|
4275
|
+
|
4276
|
+
_host = None
|
4277
|
+
|
4278
|
+
_collection_formats: Dict[str, str] = {
|
4279
|
+
}
|
4280
|
+
|
4281
|
+
_path_params: Dict[str, str] = {}
|
4282
|
+
_query_params: List[Tuple[str, str]] = []
|
4283
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
4284
|
+
_form_params: List[Tuple[str, str]] = []
|
4285
|
+
_files: Dict[
|
4286
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
4287
|
+
] = {}
|
4288
|
+
_body_params: Optional[bytes] = None
|
4289
|
+
|
4290
|
+
# process the path parameters
|
4291
|
+
if dataset_id is not None:
|
4292
|
+
_path_params['dataset_id'] = dataset_id
|
4293
|
+
# process the query parameters
|
4294
|
+
# process the header parameters
|
4295
|
+
# process the form parameters
|
4296
|
+
# process the body parameter
|
4297
|
+
if put_dataset_schema is not None:
|
4298
|
+
_body_params = put_dataset_schema
|
4299
|
+
|
4300
|
+
|
4301
|
+
# set the HTTP header `Accept`
|
4302
|
+
if 'Accept' not in _header_params:
|
4303
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
4304
|
+
[
|
4305
|
+
'application/json'
|
4306
|
+
]
|
4307
|
+
)
|
4308
|
+
|
4309
|
+
# set the HTTP header `Content-Type`
|
4310
|
+
if _content_type:
|
4311
|
+
_header_params['Content-Type'] = _content_type
|
4312
|
+
else:
|
4313
|
+
_default_content_type = (
|
4314
|
+
self.api_client.select_header_content_type(
|
4315
|
+
[
|
4316
|
+
'application/json'
|
4317
|
+
]
|
4318
|
+
)
|
4319
|
+
)
|
4320
|
+
if _default_content_type is not None:
|
4321
|
+
_header_params['Content-Type'] = _default_content_type
|
4322
|
+
|
4323
|
+
# authentication setting
|
4324
|
+
_auth_settings: List[str] = [
|
4325
|
+
'OAuth2AuthorizationCode'
|
4326
|
+
]
|
4327
|
+
|
4328
|
+
return self.api_client.param_serialize(
|
4329
|
+
method='PUT',
|
4330
|
+
resource_path='/api/v1/datasets/{dataset_id}/schema',
|
4331
|
+
path_params=_path_params,
|
4332
|
+
query_params=_query_params,
|
4333
|
+
header_params=_header_params,
|
4334
|
+
body=_body_params,
|
4335
|
+
post_params=_form_params,
|
4336
|
+
files=_files,
|
4337
|
+
auth_settings=_auth_settings,
|
4338
|
+
collection_formats=_collection_formats,
|
4339
|
+
_host=_host,
|
4340
|
+
_request_auth=_request_auth
|
4341
|
+
)
|
4342
|
+
|
4343
|
+
|