arthur-client 1.4.0__py3-none-any.whl → 1.4.1186__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arthur_client/__version__.py +1 -0
- arthur_client/api_bindings/__init__.py +334 -0
- arthur_client/api_bindings/api/__init__.py +30 -0
- arthur_client/api_bindings/api/alert_rules_v1_api.py +1930 -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 +4346 -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 +44 -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 +41 -0
- arthur_client/api_bindings/docs/AlertRuleInterval.md +30 -0
- arthur_client/api_bindings/docs/AlertRuleNotificationWebhook.md +30 -0
- arthur_client/api_bindings/docs/AlertRuleSQLValidationResp.md +32 -0
- arthur_client/api_bindings/docs/AlertRuleSort.md +12 -0
- arthur_client/api_bindings/docs/AlertRulesV1Api.md +514 -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 +28 -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 +16 -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 +1175 -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/IntervalUnit.md +16 -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 +37 -0
- arthur_client/api_bindings/docs/MetricsColumnListParameterSchemaAllowedColumnTypesInner.md +31 -0
- arthur_client/api_bindings/docs/MetricsColumnParameterSchema.md +37 -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 +36 -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 +37 -0
- arthur_client/api_bindings/docs/PostAlertRule.md +36 -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 +33 -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/ValidateAlertRuleQueryReq.md +29 -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 +292 -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 +143 -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 +139 -0
- arthur_client/api_bindings/models/alert_rule_interval.py +90 -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_rule_sql_validation_resp.py +93 -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 +45 -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 +39 -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/interval_unit.py +39 -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 +127 -0
- arthur_client/api_bindings/models/metrics_column_list_parameter_schema_allowed_column_types_inner.py +151 -0
- arthur_client/api_bindings/models/metrics_column_parameter_schema.py +127 -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 +146 -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 +124 -0
- arthur_client/api_bindings/models/post_alert_rule.py +111 -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 +117 -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/validate_alert_rule_query_req.py +87 -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 +84 -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 +98 -0
- arthur_client/api_bindings/test/test_alert_rule_interval.py +54 -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_rule_sql_validation_resp.py +58 -0
- arthur_client/api_bindings/test/test_alert_rules_v1_api.py +73 -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 +102 -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 +98 -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_interval_unit.py +33 -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 +67 -0
- arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema_allowed_column_types_inner.py +60 -0
- arthur_client/api_bindings/test/test_metrics_column_parameter_schema.py +67 -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 +62 -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 +71 -0
- arthur_client/api_bindings/test/test_post_alert_rule.py +70 -0
- arthur_client/api_bindings/test/test_post_alerts.py +78 -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 +63 -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 +128 -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_validate_alert_rule_query_req.py +52 -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 +514 -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.1186.dist-info/METADATA +40 -0
- arthur_client-1.4.1186.dist-info/RECORD +927 -0
- {arthur_client-1.4.0.dist-info → arthur_client-1.4.1186.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,2165 @@
|
|
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 Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from arthur_client.api_bindings.models.connector_check_result import ConnectorCheckResult
|
23
|
+
from arthur_client.api_bindings.models.connector_spec import ConnectorSpec
|
24
|
+
from arthur_client.api_bindings.models.connector_type import ConnectorType
|
25
|
+
from arthur_client.api_bindings.models.connectors_sort import ConnectorsSort
|
26
|
+
from arthur_client.api_bindings.models.patch_connector_spec import PatchConnectorSpec
|
27
|
+
from arthur_client.api_bindings.models.post_connector_spec import PostConnectorSpec
|
28
|
+
from arthur_client.api_bindings.models.resource_list_connector_spec import ResourceListConnectorSpec
|
29
|
+
from arthur_client.api_bindings.models.sort_order import SortOrder
|
30
|
+
|
31
|
+
from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
|
32
|
+
from arthur_client.api_bindings.api_response import ApiResponse
|
33
|
+
from arthur_client.api_bindings.rest import RESTResponseType
|
34
|
+
|
35
|
+
|
36
|
+
class ConnectorsV1Api:
|
37
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
38
|
+
Ref: https://openapi-generator.tech
|
39
|
+
|
40
|
+
Do not edit the class manually.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def __init__(self, api_client=None) -> None:
|
44
|
+
if api_client is None:
|
45
|
+
api_client = ApiClient.get_default()
|
46
|
+
self.api_client = api_client
|
47
|
+
|
48
|
+
|
49
|
+
@validate_call
|
50
|
+
def delete_connector(
|
51
|
+
self,
|
52
|
+
connector_id: StrictStr,
|
53
|
+
_request_timeout: Union[
|
54
|
+
None,
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
56
|
+
Tuple[
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
58
|
+
Annotated[StrictFloat, Field(gt=0)]
|
59
|
+
]
|
60
|
+
] = None,
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
65
|
+
) -> None:
|
66
|
+
"""Delete Connector
|
67
|
+
|
68
|
+
Deletes a single connector by id. Requires connector_delete permission.
|
69
|
+
|
70
|
+
:param connector_id: (required)
|
71
|
+
:type connector_id: str
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
73
|
+
number provided, it will be total request
|
74
|
+
timeout. It can also be a pair (tuple) of
|
75
|
+
(connection, read) timeouts.
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
78
|
+
request; this effectively ignores the
|
79
|
+
authentication in the spec for a single request.
|
80
|
+
:type _request_auth: dict, optional
|
81
|
+
:param _content_type: force content-type for the request.
|
82
|
+
:type _content_type: str, Optional
|
83
|
+
:param _headers: set to override the headers for a single
|
84
|
+
request; this effectively ignores the headers
|
85
|
+
in the spec for a single request.
|
86
|
+
:type _headers: dict, optional
|
87
|
+
:param _host_index: set to override the host_index for a single
|
88
|
+
request; this effectively ignores the host_index
|
89
|
+
in the spec for a single request.
|
90
|
+
:type _host_index: int, optional
|
91
|
+
:return: Returns the result object.
|
92
|
+
""" # noqa: E501
|
93
|
+
|
94
|
+
_param = self._delete_connector_serialize(
|
95
|
+
connector_id=connector_id,
|
96
|
+
_request_auth=_request_auth,
|
97
|
+
_content_type=_content_type,
|
98
|
+
_headers=_headers,
|
99
|
+
_host_index=_host_index
|
100
|
+
)
|
101
|
+
|
102
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
103
|
+
'204': None,
|
104
|
+
'500': "InternalServerError",
|
105
|
+
'400': "BadRequestError",
|
106
|
+
'404': "NotFoundError",
|
107
|
+
'422': "HTTPValidationError",
|
108
|
+
}
|
109
|
+
response_data = self.api_client.call_api(
|
110
|
+
*_param,
|
111
|
+
_request_timeout=_request_timeout
|
112
|
+
)
|
113
|
+
response_data.read()
|
114
|
+
return self.api_client.response_deserialize(
|
115
|
+
response_data=response_data,
|
116
|
+
response_types_map=_response_types_map,
|
117
|
+
).data
|
118
|
+
|
119
|
+
|
120
|
+
@validate_call
|
121
|
+
def delete_connector_with_http_info(
|
122
|
+
self,
|
123
|
+
connector_id: StrictStr,
|
124
|
+
_request_timeout: Union[
|
125
|
+
None,
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
127
|
+
Tuple[
|
128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
129
|
+
Annotated[StrictFloat, Field(gt=0)]
|
130
|
+
]
|
131
|
+
] = None,
|
132
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
133
|
+
_content_type: Optional[StrictStr] = None,
|
134
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
135
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
136
|
+
) -> ApiResponse[None]:
|
137
|
+
"""Delete Connector
|
138
|
+
|
139
|
+
Deletes a single connector by id. Requires connector_delete permission.
|
140
|
+
|
141
|
+
:param connector_id: (required)
|
142
|
+
:type connector_id: str
|
143
|
+
:param _request_timeout: timeout setting for this request. If one
|
144
|
+
number provided, it will be total request
|
145
|
+
timeout. It can also be a pair (tuple) of
|
146
|
+
(connection, read) timeouts.
|
147
|
+
:type _request_timeout: int, tuple(int, int), optional
|
148
|
+
:param _request_auth: set to override the auth_settings for an a single
|
149
|
+
request; this effectively ignores the
|
150
|
+
authentication in the spec for a single request.
|
151
|
+
:type _request_auth: dict, optional
|
152
|
+
:param _content_type: force content-type for the request.
|
153
|
+
:type _content_type: str, Optional
|
154
|
+
:param _headers: set to override the headers for a single
|
155
|
+
request; this effectively ignores the headers
|
156
|
+
in the spec for a single request.
|
157
|
+
:type _headers: dict, optional
|
158
|
+
:param _host_index: set to override the host_index for a single
|
159
|
+
request; this effectively ignores the host_index
|
160
|
+
in the spec for a single request.
|
161
|
+
:type _host_index: int, optional
|
162
|
+
:return: Returns the result object.
|
163
|
+
""" # noqa: E501
|
164
|
+
|
165
|
+
_param = self._delete_connector_serialize(
|
166
|
+
connector_id=connector_id,
|
167
|
+
_request_auth=_request_auth,
|
168
|
+
_content_type=_content_type,
|
169
|
+
_headers=_headers,
|
170
|
+
_host_index=_host_index
|
171
|
+
)
|
172
|
+
|
173
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
174
|
+
'204': None,
|
175
|
+
'500': "InternalServerError",
|
176
|
+
'400': "BadRequestError",
|
177
|
+
'404': "NotFoundError",
|
178
|
+
'422': "HTTPValidationError",
|
179
|
+
}
|
180
|
+
response_data = self.api_client.call_api(
|
181
|
+
*_param,
|
182
|
+
_request_timeout=_request_timeout
|
183
|
+
)
|
184
|
+
response_data.read()
|
185
|
+
return self.api_client.response_deserialize(
|
186
|
+
response_data=response_data,
|
187
|
+
response_types_map=_response_types_map,
|
188
|
+
)
|
189
|
+
|
190
|
+
|
191
|
+
@validate_call
|
192
|
+
def delete_connector_without_preload_content(
|
193
|
+
self,
|
194
|
+
connector_id: StrictStr,
|
195
|
+
_request_timeout: Union[
|
196
|
+
None,
|
197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
198
|
+
Tuple[
|
199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
200
|
+
Annotated[StrictFloat, Field(gt=0)]
|
201
|
+
]
|
202
|
+
] = None,
|
203
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
204
|
+
_content_type: Optional[StrictStr] = None,
|
205
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
206
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
207
|
+
) -> RESTResponseType:
|
208
|
+
"""Delete Connector
|
209
|
+
|
210
|
+
Deletes a single connector by id. Requires connector_delete permission.
|
211
|
+
|
212
|
+
:param connector_id: (required)
|
213
|
+
:type connector_id: str
|
214
|
+
:param _request_timeout: timeout setting for this request. If one
|
215
|
+
number provided, it will be total request
|
216
|
+
timeout. It can also be a pair (tuple) of
|
217
|
+
(connection, read) timeouts.
|
218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
220
|
+
request; this effectively ignores the
|
221
|
+
authentication in the spec for a single request.
|
222
|
+
:type _request_auth: dict, optional
|
223
|
+
:param _content_type: force content-type for the request.
|
224
|
+
:type _content_type: str, Optional
|
225
|
+
:param _headers: set to override the headers for a single
|
226
|
+
request; this effectively ignores the headers
|
227
|
+
in the spec for a single request.
|
228
|
+
:type _headers: dict, optional
|
229
|
+
:param _host_index: set to override the host_index for a single
|
230
|
+
request; this effectively ignores the host_index
|
231
|
+
in the spec for a single request.
|
232
|
+
:type _host_index: int, optional
|
233
|
+
:return: Returns the result object.
|
234
|
+
""" # noqa: E501
|
235
|
+
|
236
|
+
_param = self._delete_connector_serialize(
|
237
|
+
connector_id=connector_id,
|
238
|
+
_request_auth=_request_auth,
|
239
|
+
_content_type=_content_type,
|
240
|
+
_headers=_headers,
|
241
|
+
_host_index=_host_index
|
242
|
+
)
|
243
|
+
|
244
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
245
|
+
'204': None,
|
246
|
+
'500': "InternalServerError",
|
247
|
+
'400': "BadRequestError",
|
248
|
+
'404': "NotFoundError",
|
249
|
+
'422': "HTTPValidationError",
|
250
|
+
}
|
251
|
+
response_data = self.api_client.call_api(
|
252
|
+
*_param,
|
253
|
+
_request_timeout=_request_timeout
|
254
|
+
)
|
255
|
+
return response_data.response
|
256
|
+
|
257
|
+
|
258
|
+
def _delete_connector_serialize(
|
259
|
+
self,
|
260
|
+
connector_id,
|
261
|
+
_request_auth,
|
262
|
+
_content_type,
|
263
|
+
_headers,
|
264
|
+
_host_index,
|
265
|
+
) -> RequestSerialized:
|
266
|
+
|
267
|
+
_host = None
|
268
|
+
|
269
|
+
_collection_formats: Dict[str, str] = {
|
270
|
+
}
|
271
|
+
|
272
|
+
_path_params: Dict[str, str] = {}
|
273
|
+
_query_params: List[Tuple[str, str]] = []
|
274
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
275
|
+
_form_params: List[Tuple[str, str]] = []
|
276
|
+
_files: Dict[
|
277
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
278
|
+
] = {}
|
279
|
+
_body_params: Optional[bytes] = None
|
280
|
+
|
281
|
+
# process the path parameters
|
282
|
+
if connector_id is not None:
|
283
|
+
_path_params['connector_id'] = connector_id
|
284
|
+
# process the query parameters
|
285
|
+
# process the header parameters
|
286
|
+
# process the form parameters
|
287
|
+
# process the body parameter
|
288
|
+
|
289
|
+
|
290
|
+
# set the HTTP header `Accept`
|
291
|
+
if 'Accept' not in _header_params:
|
292
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
293
|
+
[
|
294
|
+
'application/json'
|
295
|
+
]
|
296
|
+
)
|
297
|
+
|
298
|
+
|
299
|
+
# authentication setting
|
300
|
+
_auth_settings: List[str] = [
|
301
|
+
'OAuth2AuthorizationCode'
|
302
|
+
]
|
303
|
+
|
304
|
+
return self.api_client.param_serialize(
|
305
|
+
method='DELETE',
|
306
|
+
resource_path='/api/v1/connectors/{connector_id}',
|
307
|
+
path_params=_path_params,
|
308
|
+
query_params=_query_params,
|
309
|
+
header_params=_header_params,
|
310
|
+
body=_body_params,
|
311
|
+
post_params=_form_params,
|
312
|
+
files=_files,
|
313
|
+
auth_settings=_auth_settings,
|
314
|
+
collection_formats=_collection_formats,
|
315
|
+
_host=_host,
|
316
|
+
_request_auth=_request_auth
|
317
|
+
)
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
@validate_call
|
323
|
+
def get_connector(
|
324
|
+
self,
|
325
|
+
connector_id: StrictStr,
|
326
|
+
_request_timeout: Union[
|
327
|
+
None,
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
329
|
+
Tuple[
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
332
|
+
]
|
333
|
+
] = None,
|
334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
335
|
+
_content_type: Optional[StrictStr] = None,
|
336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
338
|
+
) -> ConnectorSpec:
|
339
|
+
"""Get Connector
|
340
|
+
|
341
|
+
Returns a single connector by ID. Requires connector_read permission.
|
342
|
+
|
343
|
+
:param connector_id: (required)
|
344
|
+
:type connector_id: str
|
345
|
+
:param _request_timeout: timeout setting for this request. If one
|
346
|
+
number provided, it will be total request
|
347
|
+
timeout. It can also be a pair (tuple) of
|
348
|
+
(connection, read) timeouts.
|
349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
351
|
+
request; this effectively ignores the
|
352
|
+
authentication in the spec for a single request.
|
353
|
+
:type _request_auth: dict, optional
|
354
|
+
:param _content_type: force content-type for the request.
|
355
|
+
:type _content_type: str, Optional
|
356
|
+
:param _headers: set to override the headers for a single
|
357
|
+
request; this effectively ignores the headers
|
358
|
+
in the spec for a single request.
|
359
|
+
:type _headers: dict, optional
|
360
|
+
:param _host_index: set to override the host_index for a single
|
361
|
+
request; this effectively ignores the host_index
|
362
|
+
in the spec for a single request.
|
363
|
+
:type _host_index: int, optional
|
364
|
+
:return: Returns the result object.
|
365
|
+
""" # noqa: E501
|
366
|
+
|
367
|
+
_param = self._get_connector_serialize(
|
368
|
+
connector_id=connector_id,
|
369
|
+
_request_auth=_request_auth,
|
370
|
+
_content_type=_content_type,
|
371
|
+
_headers=_headers,
|
372
|
+
_host_index=_host_index
|
373
|
+
)
|
374
|
+
|
375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
376
|
+
'200': "ConnectorSpec",
|
377
|
+
'500': "InternalServerError",
|
378
|
+
'404': "NotFoundError",
|
379
|
+
'422': "HTTPValidationError",
|
380
|
+
}
|
381
|
+
response_data = self.api_client.call_api(
|
382
|
+
*_param,
|
383
|
+
_request_timeout=_request_timeout
|
384
|
+
)
|
385
|
+
response_data.read()
|
386
|
+
return self.api_client.response_deserialize(
|
387
|
+
response_data=response_data,
|
388
|
+
response_types_map=_response_types_map,
|
389
|
+
).data
|
390
|
+
|
391
|
+
|
392
|
+
@validate_call
|
393
|
+
def get_connector_with_http_info(
|
394
|
+
self,
|
395
|
+
connector_id: StrictStr,
|
396
|
+
_request_timeout: Union[
|
397
|
+
None,
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
399
|
+
Tuple[
|
400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
401
|
+
Annotated[StrictFloat, Field(gt=0)]
|
402
|
+
]
|
403
|
+
] = None,
|
404
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
405
|
+
_content_type: Optional[StrictStr] = None,
|
406
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
407
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
408
|
+
) -> ApiResponse[ConnectorSpec]:
|
409
|
+
"""Get Connector
|
410
|
+
|
411
|
+
Returns a single connector by ID. Requires connector_read permission.
|
412
|
+
|
413
|
+
:param connector_id: (required)
|
414
|
+
:type connector_id: str
|
415
|
+
:param _request_timeout: timeout setting for this request. If one
|
416
|
+
number provided, it will be total request
|
417
|
+
timeout. It can also be a pair (tuple) of
|
418
|
+
(connection, read) timeouts.
|
419
|
+
:type _request_timeout: int, tuple(int, int), optional
|
420
|
+
:param _request_auth: set to override the auth_settings for an a single
|
421
|
+
request; this effectively ignores the
|
422
|
+
authentication in the spec for a single request.
|
423
|
+
:type _request_auth: dict, optional
|
424
|
+
:param _content_type: force content-type for the request.
|
425
|
+
:type _content_type: str, Optional
|
426
|
+
:param _headers: set to override the headers for a single
|
427
|
+
request; this effectively ignores the headers
|
428
|
+
in the spec for a single request.
|
429
|
+
:type _headers: dict, optional
|
430
|
+
:param _host_index: set to override the host_index for a single
|
431
|
+
request; this effectively ignores the host_index
|
432
|
+
in the spec for a single request.
|
433
|
+
:type _host_index: int, optional
|
434
|
+
:return: Returns the result object.
|
435
|
+
""" # noqa: E501
|
436
|
+
|
437
|
+
_param = self._get_connector_serialize(
|
438
|
+
connector_id=connector_id,
|
439
|
+
_request_auth=_request_auth,
|
440
|
+
_content_type=_content_type,
|
441
|
+
_headers=_headers,
|
442
|
+
_host_index=_host_index
|
443
|
+
)
|
444
|
+
|
445
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
446
|
+
'200': "ConnectorSpec",
|
447
|
+
'500': "InternalServerError",
|
448
|
+
'404': "NotFoundError",
|
449
|
+
'422': "HTTPValidationError",
|
450
|
+
}
|
451
|
+
response_data = self.api_client.call_api(
|
452
|
+
*_param,
|
453
|
+
_request_timeout=_request_timeout
|
454
|
+
)
|
455
|
+
response_data.read()
|
456
|
+
return self.api_client.response_deserialize(
|
457
|
+
response_data=response_data,
|
458
|
+
response_types_map=_response_types_map,
|
459
|
+
)
|
460
|
+
|
461
|
+
|
462
|
+
@validate_call
|
463
|
+
def get_connector_without_preload_content(
|
464
|
+
self,
|
465
|
+
connector_id: StrictStr,
|
466
|
+
_request_timeout: Union[
|
467
|
+
None,
|
468
|
+
Annotated[StrictFloat, Field(gt=0)],
|
469
|
+
Tuple[
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
471
|
+
Annotated[StrictFloat, Field(gt=0)]
|
472
|
+
]
|
473
|
+
] = None,
|
474
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
475
|
+
_content_type: Optional[StrictStr] = None,
|
476
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
477
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
478
|
+
) -> RESTResponseType:
|
479
|
+
"""Get Connector
|
480
|
+
|
481
|
+
Returns a single connector by ID. Requires connector_read permission.
|
482
|
+
|
483
|
+
:param connector_id: (required)
|
484
|
+
:type connector_id: str
|
485
|
+
:param _request_timeout: timeout setting for this request. If one
|
486
|
+
number provided, it will be total request
|
487
|
+
timeout. It can also be a pair (tuple) of
|
488
|
+
(connection, read) timeouts.
|
489
|
+
:type _request_timeout: int, tuple(int, int), optional
|
490
|
+
:param _request_auth: set to override the auth_settings for an a single
|
491
|
+
request; this effectively ignores the
|
492
|
+
authentication in the spec for a single request.
|
493
|
+
:type _request_auth: dict, optional
|
494
|
+
:param _content_type: force content-type for the request.
|
495
|
+
:type _content_type: str, Optional
|
496
|
+
:param _headers: set to override the headers for a single
|
497
|
+
request; this effectively ignores the headers
|
498
|
+
in the spec for a single request.
|
499
|
+
:type _headers: dict, optional
|
500
|
+
:param _host_index: set to override the host_index for a single
|
501
|
+
request; this effectively ignores the host_index
|
502
|
+
in the spec for a single request.
|
503
|
+
:type _host_index: int, optional
|
504
|
+
:return: Returns the result object.
|
505
|
+
""" # noqa: E501
|
506
|
+
|
507
|
+
_param = self._get_connector_serialize(
|
508
|
+
connector_id=connector_id,
|
509
|
+
_request_auth=_request_auth,
|
510
|
+
_content_type=_content_type,
|
511
|
+
_headers=_headers,
|
512
|
+
_host_index=_host_index
|
513
|
+
)
|
514
|
+
|
515
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
516
|
+
'200': "ConnectorSpec",
|
517
|
+
'500': "InternalServerError",
|
518
|
+
'404': "NotFoundError",
|
519
|
+
'422': "HTTPValidationError",
|
520
|
+
}
|
521
|
+
response_data = self.api_client.call_api(
|
522
|
+
*_param,
|
523
|
+
_request_timeout=_request_timeout
|
524
|
+
)
|
525
|
+
return response_data.response
|
526
|
+
|
527
|
+
|
528
|
+
def _get_connector_serialize(
|
529
|
+
self,
|
530
|
+
connector_id,
|
531
|
+
_request_auth,
|
532
|
+
_content_type,
|
533
|
+
_headers,
|
534
|
+
_host_index,
|
535
|
+
) -> RequestSerialized:
|
536
|
+
|
537
|
+
_host = None
|
538
|
+
|
539
|
+
_collection_formats: Dict[str, str] = {
|
540
|
+
}
|
541
|
+
|
542
|
+
_path_params: Dict[str, str] = {}
|
543
|
+
_query_params: List[Tuple[str, str]] = []
|
544
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
545
|
+
_form_params: List[Tuple[str, str]] = []
|
546
|
+
_files: Dict[
|
547
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
548
|
+
] = {}
|
549
|
+
_body_params: Optional[bytes] = None
|
550
|
+
|
551
|
+
# process the path parameters
|
552
|
+
if connector_id is not None:
|
553
|
+
_path_params['connector_id'] = connector_id
|
554
|
+
# process the query parameters
|
555
|
+
# process the header parameters
|
556
|
+
# process the form parameters
|
557
|
+
# process the body parameter
|
558
|
+
|
559
|
+
|
560
|
+
# set the HTTP header `Accept`
|
561
|
+
if 'Accept' not in _header_params:
|
562
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
563
|
+
[
|
564
|
+
'application/json'
|
565
|
+
]
|
566
|
+
)
|
567
|
+
|
568
|
+
|
569
|
+
# authentication setting
|
570
|
+
_auth_settings: List[str] = [
|
571
|
+
'OAuth2AuthorizationCode'
|
572
|
+
]
|
573
|
+
|
574
|
+
return self.api_client.param_serialize(
|
575
|
+
method='GET',
|
576
|
+
resource_path='/api/v1/connectors/{connector_id}',
|
577
|
+
path_params=_path_params,
|
578
|
+
query_params=_query_params,
|
579
|
+
header_params=_header_params,
|
580
|
+
body=_body_params,
|
581
|
+
post_params=_form_params,
|
582
|
+
files=_files,
|
583
|
+
auth_settings=_auth_settings,
|
584
|
+
collection_formats=_collection_formats,
|
585
|
+
_host=_host,
|
586
|
+
_request_auth=_request_auth
|
587
|
+
)
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
@validate_call
|
593
|
+
def get_connectors(
|
594
|
+
self,
|
595
|
+
project_id: StrictStr,
|
596
|
+
sort: Annotated[Optional[ConnectorsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
597
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
598
|
+
connector_type: Annotated[Optional[ConnectorType], Field(description="Filter the results for connectors with this connector type. Optional.")] = None,
|
599
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter the results for connectors with a name similar to this name. Optional.")] = None,
|
600
|
+
data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter the results for connectors with this data plane ID. Optional.")] = None,
|
601
|
+
include_temporary_connectors: Annotated[Optional[StrictBool], Field(description="Include connectors marked as temporary (for testing only) in the results. Optional.")] = None,
|
602
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
603
|
+
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,
|
604
|
+
_request_timeout: Union[
|
605
|
+
None,
|
606
|
+
Annotated[StrictFloat, Field(gt=0)],
|
607
|
+
Tuple[
|
608
|
+
Annotated[StrictFloat, Field(gt=0)],
|
609
|
+
Annotated[StrictFloat, Field(gt=0)]
|
610
|
+
]
|
611
|
+
] = None,
|
612
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
613
|
+
_content_type: Optional[StrictStr] = None,
|
614
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
615
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
616
|
+
) -> ResourceListConnectorSpec:
|
617
|
+
"""List Connectors
|
618
|
+
|
619
|
+
Returns connectors matching the filter and sorting criteria. If multiple filters are specified, results will only be returned that match all of the specified criteria. Requires project_list_connectors permission.
|
620
|
+
|
621
|
+
:param project_id: (required)
|
622
|
+
:type project_id: str
|
623
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
624
|
+
:type sort: ConnectorsSort
|
625
|
+
:param order: Override the sort order used. Optional.
|
626
|
+
:type order: SortOrder
|
627
|
+
:param connector_type: Filter the results for connectors with this connector type. Optional.
|
628
|
+
:type connector_type: ConnectorType
|
629
|
+
:param name: Filter the results for connectors with a name similar to this name. Optional.
|
630
|
+
:type name: str
|
631
|
+
:param data_plane_id: Filter the results for connectors with this data plane ID. Optional.
|
632
|
+
:type data_plane_id: str
|
633
|
+
:param include_temporary_connectors: Include connectors marked as temporary (for testing only) in the results. Optional.
|
634
|
+
:type include_temporary_connectors: bool
|
635
|
+
:param page: The page to return starting from 1 up to total_pages.
|
636
|
+
:type page: int
|
637
|
+
:param page_size: The number of records per page. The max is 1000.
|
638
|
+
:type page_size: int
|
639
|
+
:param _request_timeout: timeout setting for this request. If one
|
640
|
+
number provided, it will be total request
|
641
|
+
timeout. It can also be a pair (tuple) of
|
642
|
+
(connection, read) timeouts.
|
643
|
+
:type _request_timeout: int, tuple(int, int), optional
|
644
|
+
:param _request_auth: set to override the auth_settings for an a single
|
645
|
+
request; this effectively ignores the
|
646
|
+
authentication in the spec for a single request.
|
647
|
+
:type _request_auth: dict, optional
|
648
|
+
:param _content_type: force content-type for the request.
|
649
|
+
:type _content_type: str, Optional
|
650
|
+
:param _headers: set to override the headers for a single
|
651
|
+
request; this effectively ignores the headers
|
652
|
+
in the spec for a single request.
|
653
|
+
:type _headers: dict, optional
|
654
|
+
:param _host_index: set to override the host_index for a single
|
655
|
+
request; this effectively ignores the host_index
|
656
|
+
in the spec for a single request.
|
657
|
+
:type _host_index: int, optional
|
658
|
+
:return: Returns the result object.
|
659
|
+
""" # noqa: E501
|
660
|
+
|
661
|
+
_param = self._get_connectors_serialize(
|
662
|
+
project_id=project_id,
|
663
|
+
sort=sort,
|
664
|
+
order=order,
|
665
|
+
connector_type=connector_type,
|
666
|
+
name=name,
|
667
|
+
data_plane_id=data_plane_id,
|
668
|
+
include_temporary_connectors=include_temporary_connectors,
|
669
|
+
page=page,
|
670
|
+
page_size=page_size,
|
671
|
+
_request_auth=_request_auth,
|
672
|
+
_content_type=_content_type,
|
673
|
+
_headers=_headers,
|
674
|
+
_host_index=_host_index
|
675
|
+
)
|
676
|
+
|
677
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
678
|
+
'200': "ResourceListConnectorSpec",
|
679
|
+
'500': "InternalServerError",
|
680
|
+
'404': "NotFoundError",
|
681
|
+
'422': "HTTPValidationError",
|
682
|
+
}
|
683
|
+
response_data = self.api_client.call_api(
|
684
|
+
*_param,
|
685
|
+
_request_timeout=_request_timeout
|
686
|
+
)
|
687
|
+
response_data.read()
|
688
|
+
return self.api_client.response_deserialize(
|
689
|
+
response_data=response_data,
|
690
|
+
response_types_map=_response_types_map,
|
691
|
+
).data
|
692
|
+
|
693
|
+
|
694
|
+
@validate_call
|
695
|
+
def get_connectors_with_http_info(
|
696
|
+
self,
|
697
|
+
project_id: StrictStr,
|
698
|
+
sort: Annotated[Optional[ConnectorsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
699
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
700
|
+
connector_type: Annotated[Optional[ConnectorType], Field(description="Filter the results for connectors with this connector type. Optional.")] = None,
|
701
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter the results for connectors with a name similar to this name. Optional.")] = None,
|
702
|
+
data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter the results for connectors with this data plane ID. Optional.")] = None,
|
703
|
+
include_temporary_connectors: Annotated[Optional[StrictBool], Field(description="Include connectors marked as temporary (for testing only) in the results. Optional.")] = None,
|
704
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
705
|
+
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,
|
706
|
+
_request_timeout: Union[
|
707
|
+
None,
|
708
|
+
Annotated[StrictFloat, Field(gt=0)],
|
709
|
+
Tuple[
|
710
|
+
Annotated[StrictFloat, Field(gt=0)],
|
711
|
+
Annotated[StrictFloat, Field(gt=0)]
|
712
|
+
]
|
713
|
+
] = None,
|
714
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
715
|
+
_content_type: Optional[StrictStr] = None,
|
716
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
717
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
718
|
+
) -> ApiResponse[ResourceListConnectorSpec]:
|
719
|
+
"""List Connectors
|
720
|
+
|
721
|
+
Returns connectors matching the filter and sorting criteria. If multiple filters are specified, results will only be returned that match all of the specified criteria. Requires project_list_connectors permission.
|
722
|
+
|
723
|
+
:param project_id: (required)
|
724
|
+
:type project_id: str
|
725
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
726
|
+
:type sort: ConnectorsSort
|
727
|
+
:param order: Override the sort order used. Optional.
|
728
|
+
:type order: SortOrder
|
729
|
+
:param connector_type: Filter the results for connectors with this connector type. Optional.
|
730
|
+
:type connector_type: ConnectorType
|
731
|
+
:param name: Filter the results for connectors with a name similar to this name. Optional.
|
732
|
+
:type name: str
|
733
|
+
:param data_plane_id: Filter the results for connectors with this data plane ID. Optional.
|
734
|
+
:type data_plane_id: str
|
735
|
+
:param include_temporary_connectors: Include connectors marked as temporary (for testing only) in the results. Optional.
|
736
|
+
:type include_temporary_connectors: bool
|
737
|
+
:param page: The page to return starting from 1 up to total_pages.
|
738
|
+
:type page: int
|
739
|
+
:param page_size: The number of records per page. The max is 1000.
|
740
|
+
:type page_size: int
|
741
|
+
:param _request_timeout: timeout setting for this request. If one
|
742
|
+
number provided, it will be total request
|
743
|
+
timeout. It can also be a pair (tuple) of
|
744
|
+
(connection, read) timeouts.
|
745
|
+
:type _request_timeout: int, tuple(int, int), optional
|
746
|
+
:param _request_auth: set to override the auth_settings for an a single
|
747
|
+
request; this effectively ignores the
|
748
|
+
authentication in the spec for a single request.
|
749
|
+
:type _request_auth: dict, optional
|
750
|
+
:param _content_type: force content-type for the request.
|
751
|
+
:type _content_type: str, Optional
|
752
|
+
:param _headers: set to override the headers for a single
|
753
|
+
request; this effectively ignores the headers
|
754
|
+
in the spec for a single request.
|
755
|
+
:type _headers: dict, optional
|
756
|
+
:param _host_index: set to override the host_index for a single
|
757
|
+
request; this effectively ignores the host_index
|
758
|
+
in the spec for a single request.
|
759
|
+
:type _host_index: int, optional
|
760
|
+
:return: Returns the result object.
|
761
|
+
""" # noqa: E501
|
762
|
+
|
763
|
+
_param = self._get_connectors_serialize(
|
764
|
+
project_id=project_id,
|
765
|
+
sort=sort,
|
766
|
+
order=order,
|
767
|
+
connector_type=connector_type,
|
768
|
+
name=name,
|
769
|
+
data_plane_id=data_plane_id,
|
770
|
+
include_temporary_connectors=include_temporary_connectors,
|
771
|
+
page=page,
|
772
|
+
page_size=page_size,
|
773
|
+
_request_auth=_request_auth,
|
774
|
+
_content_type=_content_type,
|
775
|
+
_headers=_headers,
|
776
|
+
_host_index=_host_index
|
777
|
+
)
|
778
|
+
|
779
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
780
|
+
'200': "ResourceListConnectorSpec",
|
781
|
+
'500': "InternalServerError",
|
782
|
+
'404': "NotFoundError",
|
783
|
+
'422': "HTTPValidationError",
|
784
|
+
}
|
785
|
+
response_data = self.api_client.call_api(
|
786
|
+
*_param,
|
787
|
+
_request_timeout=_request_timeout
|
788
|
+
)
|
789
|
+
response_data.read()
|
790
|
+
return self.api_client.response_deserialize(
|
791
|
+
response_data=response_data,
|
792
|
+
response_types_map=_response_types_map,
|
793
|
+
)
|
794
|
+
|
795
|
+
|
796
|
+
@validate_call
|
797
|
+
def get_connectors_without_preload_content(
|
798
|
+
self,
|
799
|
+
project_id: StrictStr,
|
800
|
+
sort: Annotated[Optional[ConnectorsSort], Field(description="Override the field used for sorting the returned list. Optional.")] = None,
|
801
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
802
|
+
connector_type: Annotated[Optional[ConnectorType], Field(description="Filter the results for connectors with this connector type. Optional.")] = None,
|
803
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter the results for connectors with a name similar to this name. Optional.")] = None,
|
804
|
+
data_plane_id: Annotated[Optional[StrictStr], Field(description="Filter the results for connectors with this data plane ID. Optional.")] = None,
|
805
|
+
include_temporary_connectors: Annotated[Optional[StrictBool], Field(description="Include connectors marked as temporary (for testing only) in the results. Optional.")] = None,
|
806
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
807
|
+
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,
|
808
|
+
_request_timeout: Union[
|
809
|
+
None,
|
810
|
+
Annotated[StrictFloat, Field(gt=0)],
|
811
|
+
Tuple[
|
812
|
+
Annotated[StrictFloat, Field(gt=0)],
|
813
|
+
Annotated[StrictFloat, Field(gt=0)]
|
814
|
+
]
|
815
|
+
] = None,
|
816
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
817
|
+
_content_type: Optional[StrictStr] = None,
|
818
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
819
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
820
|
+
) -> RESTResponseType:
|
821
|
+
"""List Connectors
|
822
|
+
|
823
|
+
Returns connectors matching the filter and sorting criteria. If multiple filters are specified, results will only be returned that match all of the specified criteria. Requires project_list_connectors permission.
|
824
|
+
|
825
|
+
:param project_id: (required)
|
826
|
+
:type project_id: str
|
827
|
+
:param sort: Override the field used for sorting the returned list. Optional.
|
828
|
+
:type sort: ConnectorsSort
|
829
|
+
:param order: Override the sort order used. Optional.
|
830
|
+
:type order: SortOrder
|
831
|
+
:param connector_type: Filter the results for connectors with this connector type. Optional.
|
832
|
+
:type connector_type: ConnectorType
|
833
|
+
:param name: Filter the results for connectors with a name similar to this name. Optional.
|
834
|
+
:type name: str
|
835
|
+
:param data_plane_id: Filter the results for connectors with this data plane ID. Optional.
|
836
|
+
:type data_plane_id: str
|
837
|
+
:param include_temporary_connectors: Include connectors marked as temporary (for testing only) in the results. Optional.
|
838
|
+
:type include_temporary_connectors: bool
|
839
|
+
:param page: The page to return starting from 1 up to total_pages.
|
840
|
+
:type page: int
|
841
|
+
:param page_size: The number of records per page. The max is 1000.
|
842
|
+
:type page_size: int
|
843
|
+
:param _request_timeout: timeout setting for this request. If one
|
844
|
+
number provided, it will be total request
|
845
|
+
timeout. It can also be a pair (tuple) of
|
846
|
+
(connection, read) timeouts.
|
847
|
+
:type _request_timeout: int, tuple(int, int), optional
|
848
|
+
:param _request_auth: set to override the auth_settings for an a single
|
849
|
+
request; this effectively ignores the
|
850
|
+
authentication in the spec for a single request.
|
851
|
+
:type _request_auth: dict, optional
|
852
|
+
:param _content_type: force content-type for the request.
|
853
|
+
:type _content_type: str, Optional
|
854
|
+
:param _headers: set to override the headers for a single
|
855
|
+
request; this effectively ignores the headers
|
856
|
+
in the spec for a single request.
|
857
|
+
:type _headers: dict, optional
|
858
|
+
:param _host_index: set to override the host_index for a single
|
859
|
+
request; this effectively ignores the host_index
|
860
|
+
in the spec for a single request.
|
861
|
+
:type _host_index: int, optional
|
862
|
+
:return: Returns the result object.
|
863
|
+
""" # noqa: E501
|
864
|
+
|
865
|
+
_param = self._get_connectors_serialize(
|
866
|
+
project_id=project_id,
|
867
|
+
sort=sort,
|
868
|
+
order=order,
|
869
|
+
connector_type=connector_type,
|
870
|
+
name=name,
|
871
|
+
data_plane_id=data_plane_id,
|
872
|
+
include_temporary_connectors=include_temporary_connectors,
|
873
|
+
page=page,
|
874
|
+
page_size=page_size,
|
875
|
+
_request_auth=_request_auth,
|
876
|
+
_content_type=_content_type,
|
877
|
+
_headers=_headers,
|
878
|
+
_host_index=_host_index
|
879
|
+
)
|
880
|
+
|
881
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
882
|
+
'200': "ResourceListConnectorSpec",
|
883
|
+
'500': "InternalServerError",
|
884
|
+
'404': "NotFoundError",
|
885
|
+
'422': "HTTPValidationError",
|
886
|
+
}
|
887
|
+
response_data = self.api_client.call_api(
|
888
|
+
*_param,
|
889
|
+
_request_timeout=_request_timeout
|
890
|
+
)
|
891
|
+
return response_data.response
|
892
|
+
|
893
|
+
|
894
|
+
def _get_connectors_serialize(
|
895
|
+
self,
|
896
|
+
project_id,
|
897
|
+
sort,
|
898
|
+
order,
|
899
|
+
connector_type,
|
900
|
+
name,
|
901
|
+
data_plane_id,
|
902
|
+
include_temporary_connectors,
|
903
|
+
page,
|
904
|
+
page_size,
|
905
|
+
_request_auth,
|
906
|
+
_content_type,
|
907
|
+
_headers,
|
908
|
+
_host_index,
|
909
|
+
) -> RequestSerialized:
|
910
|
+
|
911
|
+
_host = None
|
912
|
+
|
913
|
+
_collection_formats: Dict[str, str] = {
|
914
|
+
}
|
915
|
+
|
916
|
+
_path_params: Dict[str, str] = {}
|
917
|
+
_query_params: List[Tuple[str, str]] = []
|
918
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
919
|
+
_form_params: List[Tuple[str, str]] = []
|
920
|
+
_files: Dict[
|
921
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
922
|
+
] = {}
|
923
|
+
_body_params: Optional[bytes] = None
|
924
|
+
|
925
|
+
# process the path parameters
|
926
|
+
if project_id is not None:
|
927
|
+
_path_params['project_id'] = project_id
|
928
|
+
# process the query parameters
|
929
|
+
if sort is not None:
|
930
|
+
|
931
|
+
_query_params.append(('sort', sort.value))
|
932
|
+
|
933
|
+
if order is not None:
|
934
|
+
|
935
|
+
_query_params.append(('order', order.value))
|
936
|
+
|
937
|
+
if connector_type is not None:
|
938
|
+
|
939
|
+
_query_params.append(('connector_type', connector_type.value))
|
940
|
+
|
941
|
+
if name is not None:
|
942
|
+
|
943
|
+
_query_params.append(('name', name))
|
944
|
+
|
945
|
+
if data_plane_id is not None:
|
946
|
+
|
947
|
+
_query_params.append(('data_plane_id', data_plane_id))
|
948
|
+
|
949
|
+
if include_temporary_connectors is not None:
|
950
|
+
|
951
|
+
_query_params.append(('include_temporary_connectors', include_temporary_connectors))
|
952
|
+
|
953
|
+
if page is not None:
|
954
|
+
|
955
|
+
_query_params.append(('page', page))
|
956
|
+
|
957
|
+
if page_size is not None:
|
958
|
+
|
959
|
+
_query_params.append(('page_size', page_size))
|
960
|
+
|
961
|
+
# process the header parameters
|
962
|
+
# process the form parameters
|
963
|
+
# process the body parameter
|
964
|
+
|
965
|
+
|
966
|
+
# set the HTTP header `Accept`
|
967
|
+
if 'Accept' not in _header_params:
|
968
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
969
|
+
[
|
970
|
+
'application/json'
|
971
|
+
]
|
972
|
+
)
|
973
|
+
|
974
|
+
|
975
|
+
# authentication setting
|
976
|
+
_auth_settings: List[str] = [
|
977
|
+
'OAuth2AuthorizationCode'
|
978
|
+
]
|
979
|
+
|
980
|
+
return self.api_client.param_serialize(
|
981
|
+
method='GET',
|
982
|
+
resource_path='/api/v1/projects/{project_id}/connectors',
|
983
|
+
path_params=_path_params,
|
984
|
+
query_params=_query_params,
|
985
|
+
header_params=_header_params,
|
986
|
+
body=_body_params,
|
987
|
+
post_params=_form_params,
|
988
|
+
files=_files,
|
989
|
+
auth_settings=_auth_settings,
|
990
|
+
collection_formats=_collection_formats,
|
991
|
+
_host=_host,
|
992
|
+
_request_auth=_request_auth
|
993
|
+
)
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
@validate_call
|
999
|
+
def get_sensitive_connector(
|
1000
|
+
self,
|
1001
|
+
connector_id: StrictStr,
|
1002
|
+
_request_timeout: Union[
|
1003
|
+
None,
|
1004
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1005
|
+
Tuple[
|
1006
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1007
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1008
|
+
]
|
1009
|
+
] = None,
|
1010
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1011
|
+
_content_type: Optional[StrictStr] = None,
|
1012
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1013
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1014
|
+
) -> ConnectorSpec:
|
1015
|
+
"""Get Sensitive Connector
|
1016
|
+
|
1017
|
+
Returns a single connector by ID with unmasked sensitive fields. Requires connector_get_sensitive_fields permission.
|
1018
|
+
|
1019
|
+
:param connector_id: (required)
|
1020
|
+
:type connector_id: str
|
1021
|
+
:param _request_timeout: timeout setting for this request. If one
|
1022
|
+
number provided, it will be total request
|
1023
|
+
timeout. It can also be a pair (tuple) of
|
1024
|
+
(connection, read) timeouts.
|
1025
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1026
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1027
|
+
request; this effectively ignores the
|
1028
|
+
authentication in the spec for a single request.
|
1029
|
+
:type _request_auth: dict, optional
|
1030
|
+
:param _content_type: force content-type for the request.
|
1031
|
+
:type _content_type: str, Optional
|
1032
|
+
:param _headers: set to override the headers for a single
|
1033
|
+
request; this effectively ignores the headers
|
1034
|
+
in the spec for a single request.
|
1035
|
+
:type _headers: dict, optional
|
1036
|
+
:param _host_index: set to override the host_index for a single
|
1037
|
+
request; this effectively ignores the host_index
|
1038
|
+
in the spec for a single request.
|
1039
|
+
:type _host_index: int, optional
|
1040
|
+
:return: Returns the result object.
|
1041
|
+
""" # noqa: E501
|
1042
|
+
|
1043
|
+
_param = self._get_sensitive_connector_serialize(
|
1044
|
+
connector_id=connector_id,
|
1045
|
+
_request_auth=_request_auth,
|
1046
|
+
_content_type=_content_type,
|
1047
|
+
_headers=_headers,
|
1048
|
+
_host_index=_host_index
|
1049
|
+
)
|
1050
|
+
|
1051
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1052
|
+
'200': "ConnectorSpec",
|
1053
|
+
'500': "InternalServerError",
|
1054
|
+
'404': "NotFoundError",
|
1055
|
+
'422': "HTTPValidationError",
|
1056
|
+
}
|
1057
|
+
response_data = self.api_client.call_api(
|
1058
|
+
*_param,
|
1059
|
+
_request_timeout=_request_timeout
|
1060
|
+
)
|
1061
|
+
response_data.read()
|
1062
|
+
return self.api_client.response_deserialize(
|
1063
|
+
response_data=response_data,
|
1064
|
+
response_types_map=_response_types_map,
|
1065
|
+
).data
|
1066
|
+
|
1067
|
+
|
1068
|
+
@validate_call
|
1069
|
+
def get_sensitive_connector_with_http_info(
|
1070
|
+
self,
|
1071
|
+
connector_id: StrictStr,
|
1072
|
+
_request_timeout: Union[
|
1073
|
+
None,
|
1074
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1075
|
+
Tuple[
|
1076
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1077
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1078
|
+
]
|
1079
|
+
] = None,
|
1080
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1081
|
+
_content_type: Optional[StrictStr] = None,
|
1082
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1083
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1084
|
+
) -> ApiResponse[ConnectorSpec]:
|
1085
|
+
"""Get Sensitive Connector
|
1086
|
+
|
1087
|
+
Returns a single connector by ID with unmasked sensitive fields. Requires connector_get_sensitive_fields permission.
|
1088
|
+
|
1089
|
+
:param connector_id: (required)
|
1090
|
+
:type connector_id: str
|
1091
|
+
:param _request_timeout: timeout setting for this request. If one
|
1092
|
+
number provided, it will be total request
|
1093
|
+
timeout. It can also be a pair (tuple) of
|
1094
|
+
(connection, read) timeouts.
|
1095
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1096
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1097
|
+
request; this effectively ignores the
|
1098
|
+
authentication in the spec for a single request.
|
1099
|
+
:type _request_auth: dict, optional
|
1100
|
+
:param _content_type: force content-type for the request.
|
1101
|
+
:type _content_type: str, Optional
|
1102
|
+
:param _headers: set to override the headers for a single
|
1103
|
+
request; this effectively ignores the headers
|
1104
|
+
in the spec for a single request.
|
1105
|
+
:type _headers: dict, optional
|
1106
|
+
:param _host_index: set to override the host_index for a single
|
1107
|
+
request; this effectively ignores the host_index
|
1108
|
+
in the spec for a single request.
|
1109
|
+
:type _host_index: int, optional
|
1110
|
+
:return: Returns the result object.
|
1111
|
+
""" # noqa: E501
|
1112
|
+
|
1113
|
+
_param = self._get_sensitive_connector_serialize(
|
1114
|
+
connector_id=connector_id,
|
1115
|
+
_request_auth=_request_auth,
|
1116
|
+
_content_type=_content_type,
|
1117
|
+
_headers=_headers,
|
1118
|
+
_host_index=_host_index
|
1119
|
+
)
|
1120
|
+
|
1121
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1122
|
+
'200': "ConnectorSpec",
|
1123
|
+
'500': "InternalServerError",
|
1124
|
+
'404': "NotFoundError",
|
1125
|
+
'422': "HTTPValidationError",
|
1126
|
+
}
|
1127
|
+
response_data = self.api_client.call_api(
|
1128
|
+
*_param,
|
1129
|
+
_request_timeout=_request_timeout
|
1130
|
+
)
|
1131
|
+
response_data.read()
|
1132
|
+
return self.api_client.response_deserialize(
|
1133
|
+
response_data=response_data,
|
1134
|
+
response_types_map=_response_types_map,
|
1135
|
+
)
|
1136
|
+
|
1137
|
+
|
1138
|
+
@validate_call
|
1139
|
+
def get_sensitive_connector_without_preload_content(
|
1140
|
+
self,
|
1141
|
+
connector_id: StrictStr,
|
1142
|
+
_request_timeout: Union[
|
1143
|
+
None,
|
1144
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1145
|
+
Tuple[
|
1146
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1147
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1148
|
+
]
|
1149
|
+
] = None,
|
1150
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1151
|
+
_content_type: Optional[StrictStr] = None,
|
1152
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1153
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1154
|
+
) -> RESTResponseType:
|
1155
|
+
"""Get Sensitive Connector
|
1156
|
+
|
1157
|
+
Returns a single connector by ID with unmasked sensitive fields. Requires connector_get_sensitive_fields permission.
|
1158
|
+
|
1159
|
+
:param connector_id: (required)
|
1160
|
+
:type connector_id: str
|
1161
|
+
:param _request_timeout: timeout setting for this request. If one
|
1162
|
+
number provided, it will be total request
|
1163
|
+
timeout. It can also be a pair (tuple) of
|
1164
|
+
(connection, read) timeouts.
|
1165
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1166
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1167
|
+
request; this effectively ignores the
|
1168
|
+
authentication in the spec for a single request.
|
1169
|
+
:type _request_auth: dict, optional
|
1170
|
+
:param _content_type: force content-type for the request.
|
1171
|
+
:type _content_type: str, Optional
|
1172
|
+
:param _headers: set to override the headers for a single
|
1173
|
+
request; this effectively ignores the headers
|
1174
|
+
in the spec for a single request.
|
1175
|
+
:type _headers: dict, optional
|
1176
|
+
:param _host_index: set to override the host_index for a single
|
1177
|
+
request; this effectively ignores the host_index
|
1178
|
+
in the spec for a single request.
|
1179
|
+
:type _host_index: int, optional
|
1180
|
+
:return: Returns the result object.
|
1181
|
+
""" # noqa: E501
|
1182
|
+
|
1183
|
+
_param = self._get_sensitive_connector_serialize(
|
1184
|
+
connector_id=connector_id,
|
1185
|
+
_request_auth=_request_auth,
|
1186
|
+
_content_type=_content_type,
|
1187
|
+
_headers=_headers,
|
1188
|
+
_host_index=_host_index
|
1189
|
+
)
|
1190
|
+
|
1191
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1192
|
+
'200': "ConnectorSpec",
|
1193
|
+
'500': "InternalServerError",
|
1194
|
+
'404': "NotFoundError",
|
1195
|
+
'422': "HTTPValidationError",
|
1196
|
+
}
|
1197
|
+
response_data = self.api_client.call_api(
|
1198
|
+
*_param,
|
1199
|
+
_request_timeout=_request_timeout
|
1200
|
+
)
|
1201
|
+
return response_data.response
|
1202
|
+
|
1203
|
+
|
1204
|
+
def _get_sensitive_connector_serialize(
|
1205
|
+
self,
|
1206
|
+
connector_id,
|
1207
|
+
_request_auth,
|
1208
|
+
_content_type,
|
1209
|
+
_headers,
|
1210
|
+
_host_index,
|
1211
|
+
) -> RequestSerialized:
|
1212
|
+
|
1213
|
+
_host = None
|
1214
|
+
|
1215
|
+
_collection_formats: Dict[str, str] = {
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
_path_params: Dict[str, str] = {}
|
1219
|
+
_query_params: List[Tuple[str, str]] = []
|
1220
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1221
|
+
_form_params: List[Tuple[str, str]] = []
|
1222
|
+
_files: Dict[
|
1223
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1224
|
+
] = {}
|
1225
|
+
_body_params: Optional[bytes] = None
|
1226
|
+
|
1227
|
+
# process the path parameters
|
1228
|
+
if connector_id is not None:
|
1229
|
+
_path_params['connector_id'] = connector_id
|
1230
|
+
# process the query parameters
|
1231
|
+
# process the header parameters
|
1232
|
+
# process the form parameters
|
1233
|
+
# process the body parameter
|
1234
|
+
|
1235
|
+
|
1236
|
+
# set the HTTP header `Accept`
|
1237
|
+
if 'Accept' not in _header_params:
|
1238
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1239
|
+
[
|
1240
|
+
'application/json'
|
1241
|
+
]
|
1242
|
+
)
|
1243
|
+
|
1244
|
+
|
1245
|
+
# authentication setting
|
1246
|
+
_auth_settings: List[str] = [
|
1247
|
+
'OAuth2AuthorizationCode'
|
1248
|
+
]
|
1249
|
+
|
1250
|
+
return self.api_client.param_serialize(
|
1251
|
+
method='GET',
|
1252
|
+
resource_path='/api/v1/connectors/{connector_id}/sensitive',
|
1253
|
+
path_params=_path_params,
|
1254
|
+
query_params=_query_params,
|
1255
|
+
header_params=_header_params,
|
1256
|
+
body=_body_params,
|
1257
|
+
post_params=_form_params,
|
1258
|
+
files=_files,
|
1259
|
+
auth_settings=_auth_settings,
|
1260
|
+
collection_formats=_collection_formats,
|
1261
|
+
_host=_host,
|
1262
|
+
_request_auth=_request_auth
|
1263
|
+
)
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
@validate_call
|
1269
|
+
def patch_connector(
|
1270
|
+
self,
|
1271
|
+
connector_id: StrictStr,
|
1272
|
+
patch_connector_spec: PatchConnectorSpec,
|
1273
|
+
_request_timeout: Union[
|
1274
|
+
None,
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1276
|
+
Tuple[
|
1277
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1278
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1279
|
+
]
|
1280
|
+
] = None,
|
1281
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1282
|
+
_content_type: Optional[StrictStr] = None,
|
1283
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1284
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1285
|
+
) -> ConnectorSpec:
|
1286
|
+
"""Update Connector
|
1287
|
+
|
1288
|
+
Updates a single connector. Requires connector_update permission.
|
1289
|
+
|
1290
|
+
:param connector_id: (required)
|
1291
|
+
:type connector_id: str
|
1292
|
+
:param patch_connector_spec: (required)
|
1293
|
+
:type patch_connector_spec: PatchConnectorSpec
|
1294
|
+
:param _request_timeout: timeout setting for this request. If one
|
1295
|
+
number provided, it will be total request
|
1296
|
+
timeout. It can also be a pair (tuple) of
|
1297
|
+
(connection, read) timeouts.
|
1298
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1299
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1300
|
+
request; this effectively ignores the
|
1301
|
+
authentication in the spec for a single request.
|
1302
|
+
:type _request_auth: dict, optional
|
1303
|
+
:param _content_type: force content-type for the request.
|
1304
|
+
:type _content_type: str, Optional
|
1305
|
+
:param _headers: set to override the headers for a single
|
1306
|
+
request; this effectively ignores the headers
|
1307
|
+
in the spec for a single request.
|
1308
|
+
:type _headers: dict, optional
|
1309
|
+
:param _host_index: set to override the host_index for a single
|
1310
|
+
request; this effectively ignores the host_index
|
1311
|
+
in the spec for a single request.
|
1312
|
+
:type _host_index: int, optional
|
1313
|
+
:return: Returns the result object.
|
1314
|
+
""" # noqa: E501
|
1315
|
+
|
1316
|
+
_param = self._patch_connector_serialize(
|
1317
|
+
connector_id=connector_id,
|
1318
|
+
patch_connector_spec=patch_connector_spec,
|
1319
|
+
_request_auth=_request_auth,
|
1320
|
+
_content_type=_content_type,
|
1321
|
+
_headers=_headers,
|
1322
|
+
_host_index=_host_index
|
1323
|
+
)
|
1324
|
+
|
1325
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1326
|
+
'200': "ConnectorSpec",
|
1327
|
+
'500': "InternalServerError",
|
1328
|
+
'404': "NotFoundError",
|
1329
|
+
'400': "BadRequestError",
|
1330
|
+
'422': "HTTPValidationError",
|
1331
|
+
}
|
1332
|
+
response_data = self.api_client.call_api(
|
1333
|
+
*_param,
|
1334
|
+
_request_timeout=_request_timeout
|
1335
|
+
)
|
1336
|
+
response_data.read()
|
1337
|
+
return self.api_client.response_deserialize(
|
1338
|
+
response_data=response_data,
|
1339
|
+
response_types_map=_response_types_map,
|
1340
|
+
).data
|
1341
|
+
|
1342
|
+
|
1343
|
+
@validate_call
|
1344
|
+
def patch_connector_with_http_info(
|
1345
|
+
self,
|
1346
|
+
connector_id: StrictStr,
|
1347
|
+
patch_connector_spec: PatchConnectorSpec,
|
1348
|
+
_request_timeout: Union[
|
1349
|
+
None,
|
1350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1351
|
+
Tuple[
|
1352
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1353
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1354
|
+
]
|
1355
|
+
] = None,
|
1356
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1357
|
+
_content_type: Optional[StrictStr] = None,
|
1358
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1359
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1360
|
+
) -> ApiResponse[ConnectorSpec]:
|
1361
|
+
"""Update Connector
|
1362
|
+
|
1363
|
+
Updates a single connector. Requires connector_update permission.
|
1364
|
+
|
1365
|
+
:param connector_id: (required)
|
1366
|
+
:type connector_id: str
|
1367
|
+
:param patch_connector_spec: (required)
|
1368
|
+
:type patch_connector_spec: PatchConnectorSpec
|
1369
|
+
:param _request_timeout: timeout setting for this request. If one
|
1370
|
+
number provided, it will be total request
|
1371
|
+
timeout. It can also be a pair (tuple) of
|
1372
|
+
(connection, read) timeouts.
|
1373
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1374
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1375
|
+
request; this effectively ignores the
|
1376
|
+
authentication in the spec for a single request.
|
1377
|
+
:type _request_auth: dict, optional
|
1378
|
+
:param _content_type: force content-type for the request.
|
1379
|
+
:type _content_type: str, Optional
|
1380
|
+
:param _headers: set to override the headers for a single
|
1381
|
+
request; this effectively ignores the headers
|
1382
|
+
in the spec for a single request.
|
1383
|
+
:type _headers: dict, optional
|
1384
|
+
:param _host_index: set to override the host_index for a single
|
1385
|
+
request; this effectively ignores the host_index
|
1386
|
+
in the spec for a single request.
|
1387
|
+
:type _host_index: int, optional
|
1388
|
+
:return: Returns the result object.
|
1389
|
+
""" # noqa: E501
|
1390
|
+
|
1391
|
+
_param = self._patch_connector_serialize(
|
1392
|
+
connector_id=connector_id,
|
1393
|
+
patch_connector_spec=patch_connector_spec,
|
1394
|
+
_request_auth=_request_auth,
|
1395
|
+
_content_type=_content_type,
|
1396
|
+
_headers=_headers,
|
1397
|
+
_host_index=_host_index
|
1398
|
+
)
|
1399
|
+
|
1400
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1401
|
+
'200': "ConnectorSpec",
|
1402
|
+
'500': "InternalServerError",
|
1403
|
+
'404': "NotFoundError",
|
1404
|
+
'400': "BadRequestError",
|
1405
|
+
'422': "HTTPValidationError",
|
1406
|
+
}
|
1407
|
+
response_data = self.api_client.call_api(
|
1408
|
+
*_param,
|
1409
|
+
_request_timeout=_request_timeout
|
1410
|
+
)
|
1411
|
+
response_data.read()
|
1412
|
+
return self.api_client.response_deserialize(
|
1413
|
+
response_data=response_data,
|
1414
|
+
response_types_map=_response_types_map,
|
1415
|
+
)
|
1416
|
+
|
1417
|
+
|
1418
|
+
@validate_call
|
1419
|
+
def patch_connector_without_preload_content(
|
1420
|
+
self,
|
1421
|
+
connector_id: StrictStr,
|
1422
|
+
patch_connector_spec: PatchConnectorSpec,
|
1423
|
+
_request_timeout: Union[
|
1424
|
+
None,
|
1425
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1426
|
+
Tuple[
|
1427
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1428
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1429
|
+
]
|
1430
|
+
] = None,
|
1431
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1432
|
+
_content_type: Optional[StrictStr] = None,
|
1433
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1434
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1435
|
+
) -> RESTResponseType:
|
1436
|
+
"""Update Connector
|
1437
|
+
|
1438
|
+
Updates a single connector. Requires connector_update permission.
|
1439
|
+
|
1440
|
+
:param connector_id: (required)
|
1441
|
+
:type connector_id: str
|
1442
|
+
:param patch_connector_spec: (required)
|
1443
|
+
:type patch_connector_spec: PatchConnectorSpec
|
1444
|
+
:param _request_timeout: timeout setting for this request. If one
|
1445
|
+
number provided, it will be total request
|
1446
|
+
timeout. It can also be a pair (tuple) of
|
1447
|
+
(connection, read) timeouts.
|
1448
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1449
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1450
|
+
request; this effectively ignores the
|
1451
|
+
authentication in the spec for a single request.
|
1452
|
+
:type _request_auth: dict, optional
|
1453
|
+
:param _content_type: force content-type for the request.
|
1454
|
+
:type _content_type: str, Optional
|
1455
|
+
:param _headers: set to override the headers for a single
|
1456
|
+
request; this effectively ignores the headers
|
1457
|
+
in the spec for a single request.
|
1458
|
+
:type _headers: dict, optional
|
1459
|
+
:param _host_index: set to override the host_index for a single
|
1460
|
+
request; this effectively ignores the host_index
|
1461
|
+
in the spec for a single request.
|
1462
|
+
:type _host_index: int, optional
|
1463
|
+
:return: Returns the result object.
|
1464
|
+
""" # noqa: E501
|
1465
|
+
|
1466
|
+
_param = self._patch_connector_serialize(
|
1467
|
+
connector_id=connector_id,
|
1468
|
+
patch_connector_spec=patch_connector_spec,
|
1469
|
+
_request_auth=_request_auth,
|
1470
|
+
_content_type=_content_type,
|
1471
|
+
_headers=_headers,
|
1472
|
+
_host_index=_host_index
|
1473
|
+
)
|
1474
|
+
|
1475
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1476
|
+
'200': "ConnectorSpec",
|
1477
|
+
'500': "InternalServerError",
|
1478
|
+
'404': "NotFoundError",
|
1479
|
+
'400': "BadRequestError",
|
1480
|
+
'422': "HTTPValidationError",
|
1481
|
+
}
|
1482
|
+
response_data = self.api_client.call_api(
|
1483
|
+
*_param,
|
1484
|
+
_request_timeout=_request_timeout
|
1485
|
+
)
|
1486
|
+
return response_data.response
|
1487
|
+
|
1488
|
+
|
1489
|
+
def _patch_connector_serialize(
|
1490
|
+
self,
|
1491
|
+
connector_id,
|
1492
|
+
patch_connector_spec,
|
1493
|
+
_request_auth,
|
1494
|
+
_content_type,
|
1495
|
+
_headers,
|
1496
|
+
_host_index,
|
1497
|
+
) -> RequestSerialized:
|
1498
|
+
|
1499
|
+
_host = None
|
1500
|
+
|
1501
|
+
_collection_formats: Dict[str, str] = {
|
1502
|
+
}
|
1503
|
+
|
1504
|
+
_path_params: Dict[str, str] = {}
|
1505
|
+
_query_params: List[Tuple[str, str]] = []
|
1506
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1507
|
+
_form_params: List[Tuple[str, str]] = []
|
1508
|
+
_files: Dict[
|
1509
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1510
|
+
] = {}
|
1511
|
+
_body_params: Optional[bytes] = None
|
1512
|
+
|
1513
|
+
# process the path parameters
|
1514
|
+
if connector_id is not None:
|
1515
|
+
_path_params['connector_id'] = connector_id
|
1516
|
+
# process the query parameters
|
1517
|
+
# process the header parameters
|
1518
|
+
# process the form parameters
|
1519
|
+
# process the body parameter
|
1520
|
+
if patch_connector_spec is not None:
|
1521
|
+
_body_params = patch_connector_spec
|
1522
|
+
|
1523
|
+
|
1524
|
+
# set the HTTP header `Accept`
|
1525
|
+
if 'Accept' not in _header_params:
|
1526
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1527
|
+
[
|
1528
|
+
'application/json'
|
1529
|
+
]
|
1530
|
+
)
|
1531
|
+
|
1532
|
+
# set the HTTP header `Content-Type`
|
1533
|
+
if _content_type:
|
1534
|
+
_header_params['Content-Type'] = _content_type
|
1535
|
+
else:
|
1536
|
+
_default_content_type = (
|
1537
|
+
self.api_client.select_header_content_type(
|
1538
|
+
[
|
1539
|
+
'application/json'
|
1540
|
+
]
|
1541
|
+
)
|
1542
|
+
)
|
1543
|
+
if _default_content_type is not None:
|
1544
|
+
_header_params['Content-Type'] = _default_content_type
|
1545
|
+
|
1546
|
+
# authentication setting
|
1547
|
+
_auth_settings: List[str] = [
|
1548
|
+
'OAuth2AuthorizationCode'
|
1549
|
+
]
|
1550
|
+
|
1551
|
+
return self.api_client.param_serialize(
|
1552
|
+
method='PATCH',
|
1553
|
+
resource_path='/api/v1/connectors/{connector_id}',
|
1554
|
+
path_params=_path_params,
|
1555
|
+
query_params=_query_params,
|
1556
|
+
header_params=_header_params,
|
1557
|
+
body=_body_params,
|
1558
|
+
post_params=_form_params,
|
1559
|
+
files=_files,
|
1560
|
+
auth_settings=_auth_settings,
|
1561
|
+
collection_formats=_collection_formats,
|
1562
|
+
_host=_host,
|
1563
|
+
_request_auth=_request_auth
|
1564
|
+
)
|
1565
|
+
|
1566
|
+
|
1567
|
+
|
1568
|
+
|
1569
|
+
@validate_call
|
1570
|
+
def post_connector(
|
1571
|
+
self,
|
1572
|
+
project_id: StrictStr,
|
1573
|
+
post_connector_spec: PostConnectorSpec,
|
1574
|
+
_request_timeout: Union[
|
1575
|
+
None,
|
1576
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1577
|
+
Tuple[
|
1578
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1579
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1580
|
+
]
|
1581
|
+
] = None,
|
1582
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1583
|
+
_content_type: Optional[StrictStr] = None,
|
1584
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1585
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1586
|
+
) -> ConnectorSpec:
|
1587
|
+
"""Create Connector
|
1588
|
+
|
1589
|
+
Creates a single connector. Requires project_create_connector permission.
|
1590
|
+
|
1591
|
+
:param project_id: (required)
|
1592
|
+
:type project_id: str
|
1593
|
+
:param post_connector_spec: (required)
|
1594
|
+
:type post_connector_spec: PostConnectorSpec
|
1595
|
+
:param _request_timeout: timeout setting for this request. If one
|
1596
|
+
number provided, it will be total request
|
1597
|
+
timeout. It can also be a pair (tuple) of
|
1598
|
+
(connection, read) timeouts.
|
1599
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1600
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1601
|
+
request; this effectively ignores the
|
1602
|
+
authentication in the spec for a single request.
|
1603
|
+
:type _request_auth: dict, optional
|
1604
|
+
:param _content_type: force content-type for the request.
|
1605
|
+
:type _content_type: str, Optional
|
1606
|
+
:param _headers: set to override the headers for a single
|
1607
|
+
request; this effectively ignores the headers
|
1608
|
+
in the spec for a single request.
|
1609
|
+
:type _headers: dict, optional
|
1610
|
+
:param _host_index: set to override the host_index for a single
|
1611
|
+
request; this effectively ignores the host_index
|
1612
|
+
in the spec for a single request.
|
1613
|
+
:type _host_index: int, optional
|
1614
|
+
:return: Returns the result object.
|
1615
|
+
""" # noqa: E501
|
1616
|
+
|
1617
|
+
_param = self._post_connector_serialize(
|
1618
|
+
project_id=project_id,
|
1619
|
+
post_connector_spec=post_connector_spec,
|
1620
|
+
_request_auth=_request_auth,
|
1621
|
+
_content_type=_content_type,
|
1622
|
+
_headers=_headers,
|
1623
|
+
_host_index=_host_index
|
1624
|
+
)
|
1625
|
+
|
1626
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1627
|
+
'200': "ConnectorSpec",
|
1628
|
+
'500': "InternalServerError",
|
1629
|
+
'404': "NotFoundError",
|
1630
|
+
'400': "BadRequestError",
|
1631
|
+
'422': "HTTPValidationError",
|
1632
|
+
}
|
1633
|
+
response_data = self.api_client.call_api(
|
1634
|
+
*_param,
|
1635
|
+
_request_timeout=_request_timeout
|
1636
|
+
)
|
1637
|
+
response_data.read()
|
1638
|
+
return self.api_client.response_deserialize(
|
1639
|
+
response_data=response_data,
|
1640
|
+
response_types_map=_response_types_map,
|
1641
|
+
).data
|
1642
|
+
|
1643
|
+
|
1644
|
+
@validate_call
|
1645
|
+
def post_connector_with_http_info(
|
1646
|
+
self,
|
1647
|
+
project_id: StrictStr,
|
1648
|
+
post_connector_spec: PostConnectorSpec,
|
1649
|
+
_request_timeout: Union[
|
1650
|
+
None,
|
1651
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1652
|
+
Tuple[
|
1653
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1654
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1655
|
+
]
|
1656
|
+
] = None,
|
1657
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1658
|
+
_content_type: Optional[StrictStr] = None,
|
1659
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1660
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1661
|
+
) -> ApiResponse[ConnectorSpec]:
|
1662
|
+
"""Create Connector
|
1663
|
+
|
1664
|
+
Creates a single connector. Requires project_create_connector permission.
|
1665
|
+
|
1666
|
+
:param project_id: (required)
|
1667
|
+
:type project_id: str
|
1668
|
+
:param post_connector_spec: (required)
|
1669
|
+
:type post_connector_spec: PostConnectorSpec
|
1670
|
+
:param _request_timeout: timeout setting for this request. If one
|
1671
|
+
number provided, it will be total request
|
1672
|
+
timeout. It can also be a pair (tuple) of
|
1673
|
+
(connection, read) timeouts.
|
1674
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1675
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1676
|
+
request; this effectively ignores the
|
1677
|
+
authentication in the spec for a single request.
|
1678
|
+
:type _request_auth: dict, optional
|
1679
|
+
:param _content_type: force content-type for the request.
|
1680
|
+
:type _content_type: str, Optional
|
1681
|
+
:param _headers: set to override the headers for a single
|
1682
|
+
request; this effectively ignores the headers
|
1683
|
+
in the spec for a single request.
|
1684
|
+
:type _headers: dict, optional
|
1685
|
+
:param _host_index: set to override the host_index for a single
|
1686
|
+
request; this effectively ignores the host_index
|
1687
|
+
in the spec for a single request.
|
1688
|
+
:type _host_index: int, optional
|
1689
|
+
:return: Returns the result object.
|
1690
|
+
""" # noqa: E501
|
1691
|
+
|
1692
|
+
_param = self._post_connector_serialize(
|
1693
|
+
project_id=project_id,
|
1694
|
+
post_connector_spec=post_connector_spec,
|
1695
|
+
_request_auth=_request_auth,
|
1696
|
+
_content_type=_content_type,
|
1697
|
+
_headers=_headers,
|
1698
|
+
_host_index=_host_index
|
1699
|
+
)
|
1700
|
+
|
1701
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1702
|
+
'200': "ConnectorSpec",
|
1703
|
+
'500': "InternalServerError",
|
1704
|
+
'404': "NotFoundError",
|
1705
|
+
'400': "BadRequestError",
|
1706
|
+
'422': "HTTPValidationError",
|
1707
|
+
}
|
1708
|
+
response_data = self.api_client.call_api(
|
1709
|
+
*_param,
|
1710
|
+
_request_timeout=_request_timeout
|
1711
|
+
)
|
1712
|
+
response_data.read()
|
1713
|
+
return self.api_client.response_deserialize(
|
1714
|
+
response_data=response_data,
|
1715
|
+
response_types_map=_response_types_map,
|
1716
|
+
)
|
1717
|
+
|
1718
|
+
|
1719
|
+
@validate_call
|
1720
|
+
def post_connector_without_preload_content(
|
1721
|
+
self,
|
1722
|
+
project_id: StrictStr,
|
1723
|
+
post_connector_spec: PostConnectorSpec,
|
1724
|
+
_request_timeout: Union[
|
1725
|
+
None,
|
1726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1727
|
+
Tuple[
|
1728
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1729
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1730
|
+
]
|
1731
|
+
] = None,
|
1732
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1733
|
+
_content_type: Optional[StrictStr] = None,
|
1734
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1735
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1736
|
+
) -> RESTResponseType:
|
1737
|
+
"""Create Connector
|
1738
|
+
|
1739
|
+
Creates a single connector. Requires project_create_connector permission.
|
1740
|
+
|
1741
|
+
:param project_id: (required)
|
1742
|
+
:type project_id: str
|
1743
|
+
:param post_connector_spec: (required)
|
1744
|
+
:type post_connector_spec: PostConnectorSpec
|
1745
|
+
:param _request_timeout: timeout setting for this request. If one
|
1746
|
+
number provided, it will be total request
|
1747
|
+
timeout. It can also be a pair (tuple) of
|
1748
|
+
(connection, read) timeouts.
|
1749
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1750
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1751
|
+
request; this effectively ignores the
|
1752
|
+
authentication in the spec for a single request.
|
1753
|
+
:type _request_auth: dict, optional
|
1754
|
+
:param _content_type: force content-type for the request.
|
1755
|
+
:type _content_type: str, Optional
|
1756
|
+
:param _headers: set to override the headers for a single
|
1757
|
+
request; this effectively ignores the headers
|
1758
|
+
in the spec for a single request.
|
1759
|
+
:type _headers: dict, optional
|
1760
|
+
:param _host_index: set to override the host_index for a single
|
1761
|
+
request; this effectively ignores the host_index
|
1762
|
+
in the spec for a single request.
|
1763
|
+
:type _host_index: int, optional
|
1764
|
+
:return: Returns the result object.
|
1765
|
+
""" # noqa: E501
|
1766
|
+
|
1767
|
+
_param = self._post_connector_serialize(
|
1768
|
+
project_id=project_id,
|
1769
|
+
post_connector_spec=post_connector_spec,
|
1770
|
+
_request_auth=_request_auth,
|
1771
|
+
_content_type=_content_type,
|
1772
|
+
_headers=_headers,
|
1773
|
+
_host_index=_host_index
|
1774
|
+
)
|
1775
|
+
|
1776
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1777
|
+
'200': "ConnectorSpec",
|
1778
|
+
'500': "InternalServerError",
|
1779
|
+
'404': "NotFoundError",
|
1780
|
+
'400': "BadRequestError",
|
1781
|
+
'422': "HTTPValidationError",
|
1782
|
+
}
|
1783
|
+
response_data = self.api_client.call_api(
|
1784
|
+
*_param,
|
1785
|
+
_request_timeout=_request_timeout
|
1786
|
+
)
|
1787
|
+
return response_data.response
|
1788
|
+
|
1789
|
+
|
1790
|
+
def _post_connector_serialize(
|
1791
|
+
self,
|
1792
|
+
project_id,
|
1793
|
+
post_connector_spec,
|
1794
|
+
_request_auth,
|
1795
|
+
_content_type,
|
1796
|
+
_headers,
|
1797
|
+
_host_index,
|
1798
|
+
) -> RequestSerialized:
|
1799
|
+
|
1800
|
+
_host = None
|
1801
|
+
|
1802
|
+
_collection_formats: Dict[str, str] = {
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
_path_params: Dict[str, str] = {}
|
1806
|
+
_query_params: List[Tuple[str, str]] = []
|
1807
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1808
|
+
_form_params: List[Tuple[str, str]] = []
|
1809
|
+
_files: Dict[
|
1810
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1811
|
+
] = {}
|
1812
|
+
_body_params: Optional[bytes] = None
|
1813
|
+
|
1814
|
+
# process the path parameters
|
1815
|
+
if project_id is not None:
|
1816
|
+
_path_params['project_id'] = project_id
|
1817
|
+
# process the query parameters
|
1818
|
+
# process the header parameters
|
1819
|
+
# process the form parameters
|
1820
|
+
# process the body parameter
|
1821
|
+
if post_connector_spec is not None:
|
1822
|
+
_body_params = post_connector_spec
|
1823
|
+
|
1824
|
+
|
1825
|
+
# set the HTTP header `Accept`
|
1826
|
+
if 'Accept' not in _header_params:
|
1827
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1828
|
+
[
|
1829
|
+
'application/json'
|
1830
|
+
]
|
1831
|
+
)
|
1832
|
+
|
1833
|
+
# set the HTTP header `Content-Type`
|
1834
|
+
if _content_type:
|
1835
|
+
_header_params['Content-Type'] = _content_type
|
1836
|
+
else:
|
1837
|
+
_default_content_type = (
|
1838
|
+
self.api_client.select_header_content_type(
|
1839
|
+
[
|
1840
|
+
'application/json'
|
1841
|
+
]
|
1842
|
+
)
|
1843
|
+
)
|
1844
|
+
if _default_content_type is not None:
|
1845
|
+
_header_params['Content-Type'] = _default_content_type
|
1846
|
+
|
1847
|
+
# authentication setting
|
1848
|
+
_auth_settings: List[str] = [
|
1849
|
+
'OAuth2AuthorizationCode'
|
1850
|
+
]
|
1851
|
+
|
1852
|
+
return self.api_client.param_serialize(
|
1853
|
+
method='POST',
|
1854
|
+
resource_path='/api/v1/projects/{project_id}/connectors',
|
1855
|
+
path_params=_path_params,
|
1856
|
+
query_params=_query_params,
|
1857
|
+
header_params=_header_params,
|
1858
|
+
body=_body_params,
|
1859
|
+
post_params=_form_params,
|
1860
|
+
files=_files,
|
1861
|
+
auth_settings=_auth_settings,
|
1862
|
+
collection_formats=_collection_formats,
|
1863
|
+
_host=_host,
|
1864
|
+
_request_auth=_request_auth
|
1865
|
+
)
|
1866
|
+
|
1867
|
+
|
1868
|
+
|
1869
|
+
|
1870
|
+
@validate_call
|
1871
|
+
def put_connector_check_results(
|
1872
|
+
self,
|
1873
|
+
connector_id: StrictStr,
|
1874
|
+
connector_check_result: ConnectorCheckResult,
|
1875
|
+
_request_timeout: Union[
|
1876
|
+
None,
|
1877
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1878
|
+
Tuple[
|
1879
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1880
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1881
|
+
]
|
1882
|
+
] = None,
|
1883
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1884
|
+
_content_type: Optional[StrictStr] = None,
|
1885
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1886
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1887
|
+
) -> None:
|
1888
|
+
"""Persist Connector Check Results
|
1889
|
+
|
1890
|
+
Sets the check result of the connector. Requires connector_put_check_result permission.
|
1891
|
+
|
1892
|
+
:param connector_id: (required)
|
1893
|
+
:type connector_id: str
|
1894
|
+
:param connector_check_result: (required)
|
1895
|
+
:type connector_check_result: ConnectorCheckResult
|
1896
|
+
:param _request_timeout: timeout setting for this request. If one
|
1897
|
+
number provided, it will be total request
|
1898
|
+
timeout. It can also be a pair (tuple) of
|
1899
|
+
(connection, read) timeouts.
|
1900
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1901
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1902
|
+
request; this effectively ignores the
|
1903
|
+
authentication in the spec for a single request.
|
1904
|
+
:type _request_auth: dict, optional
|
1905
|
+
:param _content_type: force content-type for the request.
|
1906
|
+
:type _content_type: str, Optional
|
1907
|
+
:param _headers: set to override the headers for a single
|
1908
|
+
request; this effectively ignores the headers
|
1909
|
+
in the spec for a single request.
|
1910
|
+
:type _headers: dict, optional
|
1911
|
+
:param _host_index: set to override the host_index for a single
|
1912
|
+
request; this effectively ignores the host_index
|
1913
|
+
in the spec for a single request.
|
1914
|
+
:type _host_index: int, optional
|
1915
|
+
:return: Returns the result object.
|
1916
|
+
""" # noqa: E501
|
1917
|
+
|
1918
|
+
_param = self._put_connector_check_results_serialize(
|
1919
|
+
connector_id=connector_id,
|
1920
|
+
connector_check_result=connector_check_result,
|
1921
|
+
_request_auth=_request_auth,
|
1922
|
+
_content_type=_content_type,
|
1923
|
+
_headers=_headers,
|
1924
|
+
_host_index=_host_index
|
1925
|
+
)
|
1926
|
+
|
1927
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1928
|
+
'204': None,
|
1929
|
+
'500': "InternalServerError",
|
1930
|
+
'404': "NotFoundError",
|
1931
|
+
'422': "HTTPValidationError",
|
1932
|
+
}
|
1933
|
+
response_data = self.api_client.call_api(
|
1934
|
+
*_param,
|
1935
|
+
_request_timeout=_request_timeout
|
1936
|
+
)
|
1937
|
+
response_data.read()
|
1938
|
+
return self.api_client.response_deserialize(
|
1939
|
+
response_data=response_data,
|
1940
|
+
response_types_map=_response_types_map,
|
1941
|
+
).data
|
1942
|
+
|
1943
|
+
|
1944
|
+
@validate_call
|
1945
|
+
def put_connector_check_results_with_http_info(
|
1946
|
+
self,
|
1947
|
+
connector_id: StrictStr,
|
1948
|
+
connector_check_result: ConnectorCheckResult,
|
1949
|
+
_request_timeout: Union[
|
1950
|
+
None,
|
1951
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1952
|
+
Tuple[
|
1953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1954
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1955
|
+
]
|
1956
|
+
] = None,
|
1957
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1958
|
+
_content_type: Optional[StrictStr] = None,
|
1959
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1960
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1961
|
+
) -> ApiResponse[None]:
|
1962
|
+
"""Persist Connector Check Results
|
1963
|
+
|
1964
|
+
Sets the check result of the connector. Requires connector_put_check_result permission.
|
1965
|
+
|
1966
|
+
:param connector_id: (required)
|
1967
|
+
:type connector_id: str
|
1968
|
+
:param connector_check_result: (required)
|
1969
|
+
:type connector_check_result: ConnectorCheckResult
|
1970
|
+
:param _request_timeout: timeout setting for this request. If one
|
1971
|
+
number provided, it will be total request
|
1972
|
+
timeout. It can also be a pair (tuple) of
|
1973
|
+
(connection, read) timeouts.
|
1974
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1975
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1976
|
+
request; this effectively ignores the
|
1977
|
+
authentication in the spec for a single request.
|
1978
|
+
:type _request_auth: dict, optional
|
1979
|
+
:param _content_type: force content-type for the request.
|
1980
|
+
:type _content_type: str, Optional
|
1981
|
+
:param _headers: set to override the headers for a single
|
1982
|
+
request; this effectively ignores the headers
|
1983
|
+
in the spec for a single request.
|
1984
|
+
:type _headers: dict, optional
|
1985
|
+
:param _host_index: set to override the host_index for a single
|
1986
|
+
request; this effectively ignores the host_index
|
1987
|
+
in the spec for a single request.
|
1988
|
+
:type _host_index: int, optional
|
1989
|
+
:return: Returns the result object.
|
1990
|
+
""" # noqa: E501
|
1991
|
+
|
1992
|
+
_param = self._put_connector_check_results_serialize(
|
1993
|
+
connector_id=connector_id,
|
1994
|
+
connector_check_result=connector_check_result,
|
1995
|
+
_request_auth=_request_auth,
|
1996
|
+
_content_type=_content_type,
|
1997
|
+
_headers=_headers,
|
1998
|
+
_host_index=_host_index
|
1999
|
+
)
|
2000
|
+
|
2001
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2002
|
+
'204': None,
|
2003
|
+
'500': "InternalServerError",
|
2004
|
+
'404': "NotFoundError",
|
2005
|
+
'422': "HTTPValidationError",
|
2006
|
+
}
|
2007
|
+
response_data = self.api_client.call_api(
|
2008
|
+
*_param,
|
2009
|
+
_request_timeout=_request_timeout
|
2010
|
+
)
|
2011
|
+
response_data.read()
|
2012
|
+
return self.api_client.response_deserialize(
|
2013
|
+
response_data=response_data,
|
2014
|
+
response_types_map=_response_types_map,
|
2015
|
+
)
|
2016
|
+
|
2017
|
+
|
2018
|
+
@validate_call
|
2019
|
+
def put_connector_check_results_without_preload_content(
|
2020
|
+
self,
|
2021
|
+
connector_id: StrictStr,
|
2022
|
+
connector_check_result: ConnectorCheckResult,
|
2023
|
+
_request_timeout: Union[
|
2024
|
+
None,
|
2025
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2026
|
+
Tuple[
|
2027
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2028
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2029
|
+
]
|
2030
|
+
] = None,
|
2031
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2032
|
+
_content_type: Optional[StrictStr] = None,
|
2033
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2034
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2035
|
+
) -> RESTResponseType:
|
2036
|
+
"""Persist Connector Check Results
|
2037
|
+
|
2038
|
+
Sets the check result of the connector. Requires connector_put_check_result permission.
|
2039
|
+
|
2040
|
+
:param connector_id: (required)
|
2041
|
+
:type connector_id: str
|
2042
|
+
:param connector_check_result: (required)
|
2043
|
+
:type connector_check_result: ConnectorCheckResult
|
2044
|
+
:param _request_timeout: timeout setting for this request. If one
|
2045
|
+
number provided, it will be total request
|
2046
|
+
timeout. It can also be a pair (tuple) of
|
2047
|
+
(connection, read) timeouts.
|
2048
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2049
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2050
|
+
request; this effectively ignores the
|
2051
|
+
authentication in the spec for a single request.
|
2052
|
+
:type _request_auth: dict, optional
|
2053
|
+
:param _content_type: force content-type for the request.
|
2054
|
+
:type _content_type: str, Optional
|
2055
|
+
:param _headers: set to override the headers for a single
|
2056
|
+
request; this effectively ignores the headers
|
2057
|
+
in the spec for a single request.
|
2058
|
+
:type _headers: dict, optional
|
2059
|
+
:param _host_index: set to override the host_index for a single
|
2060
|
+
request; this effectively ignores the host_index
|
2061
|
+
in the spec for a single request.
|
2062
|
+
:type _host_index: int, optional
|
2063
|
+
:return: Returns the result object.
|
2064
|
+
""" # noqa: E501
|
2065
|
+
|
2066
|
+
_param = self._put_connector_check_results_serialize(
|
2067
|
+
connector_id=connector_id,
|
2068
|
+
connector_check_result=connector_check_result,
|
2069
|
+
_request_auth=_request_auth,
|
2070
|
+
_content_type=_content_type,
|
2071
|
+
_headers=_headers,
|
2072
|
+
_host_index=_host_index
|
2073
|
+
)
|
2074
|
+
|
2075
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2076
|
+
'204': None,
|
2077
|
+
'500': "InternalServerError",
|
2078
|
+
'404': "NotFoundError",
|
2079
|
+
'422': "HTTPValidationError",
|
2080
|
+
}
|
2081
|
+
response_data = self.api_client.call_api(
|
2082
|
+
*_param,
|
2083
|
+
_request_timeout=_request_timeout
|
2084
|
+
)
|
2085
|
+
return response_data.response
|
2086
|
+
|
2087
|
+
|
2088
|
+
def _put_connector_check_results_serialize(
|
2089
|
+
self,
|
2090
|
+
connector_id,
|
2091
|
+
connector_check_result,
|
2092
|
+
_request_auth,
|
2093
|
+
_content_type,
|
2094
|
+
_headers,
|
2095
|
+
_host_index,
|
2096
|
+
) -> RequestSerialized:
|
2097
|
+
|
2098
|
+
_host = None
|
2099
|
+
|
2100
|
+
_collection_formats: Dict[str, str] = {
|
2101
|
+
}
|
2102
|
+
|
2103
|
+
_path_params: Dict[str, str] = {}
|
2104
|
+
_query_params: List[Tuple[str, str]] = []
|
2105
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2106
|
+
_form_params: List[Tuple[str, str]] = []
|
2107
|
+
_files: Dict[
|
2108
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2109
|
+
] = {}
|
2110
|
+
_body_params: Optional[bytes] = None
|
2111
|
+
|
2112
|
+
# process the path parameters
|
2113
|
+
if connector_id is not None:
|
2114
|
+
_path_params['connector_id'] = connector_id
|
2115
|
+
# process the query parameters
|
2116
|
+
# process the header parameters
|
2117
|
+
# process the form parameters
|
2118
|
+
# process the body parameter
|
2119
|
+
if connector_check_result is not None:
|
2120
|
+
_body_params = connector_check_result
|
2121
|
+
|
2122
|
+
|
2123
|
+
# set the HTTP header `Accept`
|
2124
|
+
if 'Accept' not in _header_params:
|
2125
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2126
|
+
[
|
2127
|
+
'application/json'
|
2128
|
+
]
|
2129
|
+
)
|
2130
|
+
|
2131
|
+
# set the HTTP header `Content-Type`
|
2132
|
+
if _content_type:
|
2133
|
+
_header_params['Content-Type'] = _content_type
|
2134
|
+
else:
|
2135
|
+
_default_content_type = (
|
2136
|
+
self.api_client.select_header_content_type(
|
2137
|
+
[
|
2138
|
+
'application/json'
|
2139
|
+
]
|
2140
|
+
)
|
2141
|
+
)
|
2142
|
+
if _default_content_type is not None:
|
2143
|
+
_header_params['Content-Type'] = _default_content_type
|
2144
|
+
|
2145
|
+
# authentication setting
|
2146
|
+
_auth_settings: List[str] = [
|
2147
|
+
'OAuth2AuthorizationCode'
|
2148
|
+
]
|
2149
|
+
|
2150
|
+
return self.api_client.param_serialize(
|
2151
|
+
method='PUT',
|
2152
|
+
resource_path='/api/v1/connectors/{connector_id}/check_results',
|
2153
|
+
path_params=_path_params,
|
2154
|
+
query_params=_query_params,
|
2155
|
+
header_params=_header_params,
|
2156
|
+
body=_body_params,
|
2157
|
+
post_params=_form_params,
|
2158
|
+
files=_files,
|
2159
|
+
auth_settings=_auth_settings,
|
2160
|
+
collection_formats=_collection_formats,
|
2161
|
+
_host=_host,
|
2162
|
+
_request_auth=_request_auth
|
2163
|
+
)
|
2164
|
+
|
2165
|
+
|