arthur-client 1.4.0__py3-none-any.whl → 1.4.1055__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arthur_client/__version__.py +1 -0
- arthur_client/api_bindings/__init__.py +330 -0
- arthur_client/api_bindings/api/__init__.py +30 -0
- arthur_client/api_bindings/api/alert_rules_v1_api.py +1627 -0
- arthur_client/api_bindings/api/alerts_v1_api.py +1042 -0
- arthur_client/api_bindings/api/authorization_v1_api.py +3926 -0
- arthur_client/api_bindings/api/connector_schemas_v1_api.py +559 -0
- arthur_client/api_bindings/api/connectors_v1_api.py +2165 -0
- arthur_client/api_bindings/api/data_plane_associations_v1_api.py +1699 -0
- arthur_client/api_bindings/api/data_planes_v1_api.py +1832 -0
- arthur_client/api_bindings/api/data_retrieval_v1_api.py +2403 -0
- arthur_client/api_bindings/api/datasets_v1_api.py +4343 -0
- arthur_client/api_bindings/api/default_api.py +284 -0
- arthur_client/api_bindings/api/feature_flags_v1_api.py +284 -0
- arthur_client/api_bindings/api/groups_v1_api.py +2803 -0
- arthur_client/api_bindings/api/jobs_v1_api.py +3809 -0
- arthur_client/api_bindings/api/metric_functions_v1_api.py +285 -0
- arthur_client/api_bindings/api/metrics_v1_api.py +1297 -0
- arthur_client/api_bindings/api/models_v1_api.py +2739 -0
- arthur_client/api_bindings/api/o_auth_v1_api.py +284 -0
- arthur_client/api_bindings/api/organizations_v1_api.py +827 -0
- arthur_client/api_bindings/api/projects_v1_api.py +1541 -0
- arthur_client/api_bindings/api/registration_v1_api.py +319 -0
- arthur_client/api_bindings/api/roles_v1_api.py +307 -0
- arthur_client/api_bindings/api/tasks_v1_api.py +3173 -0
- arthur_client/api_bindings/api/upsolve_v1_api.py +320 -0
- arthur_client/api_bindings/api/users_v1_api.py +2930 -0
- arthur_client/api_bindings/api/webhooks_v1_api.py +1843 -0
- arthur_client/api_bindings/api/workspaces_v1_api.py +1511 -0
- arthur_client/api_bindings/api_client.py +797 -0
- arthur_client/api_bindings/api_response.py +21 -0
- arthur_client/api_bindings/configuration.py +458 -0
- arthur_client/api_bindings/docs/AggregationMetricType.md +12 -0
- arthur_client/api_bindings/docs/AggregationSpec.md +31 -0
- arthur_client/api_bindings/docs/AggregationSpecSchema.md +34 -0
- arthur_client/api_bindings/docs/AggregationSpecSchemaInitArgsInner.md +39 -0
- arthur_client/api_bindings/docs/Alert.md +43 -0
- arthur_client/api_bindings/docs/AlertBound.md +12 -0
- arthur_client/api_bindings/docs/AlertCheckJobSpec.md +32 -0
- arthur_client/api_bindings/docs/AlertRule.md +40 -0
- arthur_client/api_bindings/docs/AlertRuleNotificationWebhook.md +30 -0
- arthur_client/api_bindings/docs/AlertRuleSort.md +12 -0
- arthur_client/api_bindings/docs/AlertRulesV1Api.md +431 -0
- arthur_client/api_bindings/docs/AlertSort.md +12 -0
- arthur_client/api_bindings/docs/AlertWebhookCalled.md +31 -0
- arthur_client/api_bindings/docs/AlertsV1Api.md +268 -0
- arthur_client/api_bindings/docs/AuthorizationV1Api.md +1039 -0
- arthur_client/api_bindings/docs/AvailableDataset.md +39 -0
- arthur_client/api_bindings/docs/AvailableDatasetsSort.md +14 -0
- arthur_client/api_bindings/docs/BadRequestError.md +29 -0
- arthur_client/api_bindings/docs/BaseRole.md +31 -0
- arthur_client/api_bindings/docs/BoundMember.md +30 -0
- arthur_client/api_bindings/docs/BoundMemberKind.md +12 -0
- arthur_client/api_bindings/docs/BoundResource.md +31 -0
- arthur_client/api_bindings/docs/BoundResourceKind.md +16 -0
- arthur_client/api_bindings/docs/BoundRole.md +30 -0
- arthur_client/api_bindings/docs/Config.md +37 -0
- arthur_client/api_bindings/docs/ConflictError.md +29 -0
- arthur_client/api_bindings/docs/ConnectorCheckJobSpec.md +30 -0
- arthur_client/api_bindings/docs/ConnectorCheckOutcome.md +12 -0
- arthur_client/api_bindings/docs/ConnectorCheckResult.md +30 -0
- arthur_client/api_bindings/docs/ConnectorFieldDataType.md +16 -0
- arthur_client/api_bindings/docs/ConnectorPaginationOptions.md +30 -0
- arthur_client/api_bindings/docs/ConnectorSchemasV1Api.md +161 -0
- arthur_client/api_bindings/docs/ConnectorSpec.md +39 -0
- arthur_client/api_bindings/docs/ConnectorSpecField.md +30 -0
- arthur_client/api_bindings/docs/ConnectorSpecFieldWithMetadata.md +32 -0
- arthur_client/api_bindings/docs/ConnectorSpecSchema.md +34 -0
- arthur_client/api_bindings/docs/ConnectorSpecSchemaField.md +34 -0
- arthur_client/api_bindings/docs/ConnectorType.md +18 -0
- arthur_client/api_bindings/docs/ConnectorsSort.md +14 -0
- arthur_client/api_bindings/docs/ConnectorsV1Api.md +586 -0
- arthur_client/api_bindings/docs/CreateModelLinkTaskJobSpec.md +32 -0
- arthur_client/api_bindings/docs/CreateModelTaskJobSpec.md +33 -0
- arthur_client/api_bindings/docs/CreatedAlerts.md +30 -0
- arthur_client/api_bindings/docs/Credentials.md +32 -0
- arthur_client/api_bindings/docs/DType.md +26 -0
- arthur_client/api_bindings/docs/DataPlane.md +37 -0
- arthur_client/api_bindings/docs/DataPlaneAssociation.md +35 -0
- arthur_client/api_bindings/docs/DataPlaneAssociationSort.md +12 -0
- arthur_client/api_bindings/docs/DataPlaneAssociationsV1Api.md +443 -0
- arthur_client/api_bindings/docs/DataPlaneCapabilities.md +29 -0
- arthur_client/api_bindings/docs/DataPlaneSort.md +14 -0
- arthur_client/api_bindings/docs/DataPlanesV1Api.md +502 -0
- arthur_client/api_bindings/docs/DataResultFilter.md +31 -0
- arthur_client/api_bindings/docs/DataResultFilterOp.md +24 -0
- arthur_client/api_bindings/docs/DataRetrievalData.md +30 -0
- arthur_client/api_bindings/docs/DataRetrievalOperation.md +32 -0
- arthur_client/api_bindings/docs/DataRetrievalStatus.md +14 -0
- arthur_client/api_bindings/docs/DataRetrievalV1Api.md +656 -0
- arthur_client/api_bindings/docs/Dataset.md +39 -0
- arthur_client/api_bindings/docs/DatasetColumn.md +31 -0
- arthur_client/api_bindings/docs/DatasetConnector.md +31 -0
- arthur_client/api_bindings/docs/DatasetJoinKind.md +16 -0
- arthur_client/api_bindings/docs/DatasetJoinSpec.md +31 -0
- arthur_client/api_bindings/docs/DatasetListType.md +32 -0
- arthur_client/api_bindings/docs/DatasetLocator.md +29 -0
- arthur_client/api_bindings/docs/DatasetLocatorField.md +30 -0
- arthur_client/api_bindings/docs/DatasetLocatorFieldDataType.md +14 -0
- arthur_client/api_bindings/docs/DatasetLocatorSchema.md +29 -0
- arthur_client/api_bindings/docs/DatasetLocatorSchemaField.md +33 -0
- arthur_client/api_bindings/docs/DatasetObjectType.md +32 -0
- arthur_client/api_bindings/docs/DatasetReference.md +31 -0
- arthur_client/api_bindings/docs/DatasetScalarType.md +32 -0
- arthur_client/api_bindings/docs/DatasetSchema.md +31 -0
- arthur_client/api_bindings/docs/DatasetsSort.md +12 -0
- arthur_client/api_bindings/docs/DatasetsV1Api.md +1174 -0
- arthur_client/api_bindings/docs/DefaultApi.md +74 -0
- arthur_client/api_bindings/docs/Definition.md +34 -0
- arthur_client/api_bindings/docs/DeleteGroupMembership.md +29 -0
- arthur_client/api_bindings/docs/DeleteModelTaskJobSpec.md +30 -0
- arthur_client/api_bindings/docs/Dimension.md +30 -0
- arthur_client/api_bindings/docs/ExampleConfig.md +30 -0
- arthur_client/api_bindings/docs/ExamplesConfig.md +30 -0
- arthur_client/api_bindings/docs/ExtendedRole.md +39 -0
- arthur_client/api_bindings/docs/FeatureFlagsV1Api.md +73 -0
- arthur_client/api_bindings/docs/FetchDataJobSpec.md +36 -0
- arthur_client/api_bindings/docs/FetchModelTaskJobSpec.md +30 -0
- arthur_client/api_bindings/docs/GenerateMetricsSpecRequest.md +29 -0
- arthur_client/api_bindings/docs/Group.md +35 -0
- arthur_client/api_bindings/docs/GroupMembership.md +33 -0
- arthur_client/api_bindings/docs/GroupSort.md +14 -0
- arthur_client/api_bindings/docs/GroupsV1Api.md +756 -0
- arthur_client/api_bindings/docs/HTTPValidationError.md +29 -0
- arthur_client/api_bindings/docs/HealthStatus.md +29 -0
- arthur_client/api_bindings/docs/InfinitePagination.md +30 -0
- arthur_client/api_bindings/docs/InfiniteResourceListAlert.md +30 -0
- arthur_client/api_bindings/docs/InfiniteResourceListJob.md +30 -0
- arthur_client/api_bindings/docs/InternalServerError.md +29 -0
- arthur_client/api_bindings/docs/InviteNewUser.md +31 -0
- arthur_client/api_bindings/docs/Items.md +34 -0
- arthur_client/api_bindings/docs/Items1.md +31 -0
- arthur_client/api_bindings/docs/Job.md +48 -0
- arthur_client/api_bindings/docs/JobDequeueParameters.md +29 -0
- arthur_client/api_bindings/docs/JobError.md +29 -0
- arthur_client/api_bindings/docs/JobErrors.md +29 -0
- arthur_client/api_bindings/docs/JobKind.md +34 -0
- arthur_client/api_bindings/docs/JobLog.md +31 -0
- arthur_client/api_bindings/docs/JobLogLevel.md +18 -0
- arthur_client/api_bindings/docs/JobLogs.md +29 -0
- arthur_client/api_bindings/docs/JobPriority.md +16 -0
- arthur_client/api_bindings/docs/JobRun.md +34 -0
- arthur_client/api_bindings/docs/JobSpec.md +49 -0
- arthur_client/api_bindings/docs/JobState.md +18 -0
- arthur_client/api_bindings/docs/JobTrigger.md +14 -0
- arthur_client/api_bindings/docs/JobsBatch.md +29 -0
- arthur_client/api_bindings/docs/JobsSort.md +14 -0
- arthur_client/api_bindings/docs/JobsV1Api.md +960 -0
- arthur_client/api_bindings/docs/JoinedDataset.md +32 -0
- arthur_client/api_bindings/docs/KeywordsConfig.md +29 -0
- arthur_client/api_bindings/docs/ListDatasetsJobSpec.md +30 -0
- arthur_client/api_bindings/docs/ListType.md +29 -0
- arthur_client/api_bindings/docs/MetricFunctionsV1Api.md +81 -0
- arthur_client/api_bindings/docs/MetricsArgSpec.md +30 -0
- arthur_client/api_bindings/docs/MetricsCalculationJobSpec.md +32 -0
- arthur_client/api_bindings/docs/MetricsColumnListParameterSchema.md +33 -0
- arthur_client/api_bindings/docs/MetricsColumnParameterSchema.md +37 -0
- arthur_client/api_bindings/docs/MetricsColumnParameterSchemaAllowedColumnTypesInner.md +31 -0
- arthur_client/api_bindings/docs/MetricsDatasetParameterSchema.md +34 -0
- arthur_client/api_bindings/docs/MetricsLiteralParameterSchema.md +34 -0
- arthur_client/api_bindings/docs/MetricsQueryResult.md +29 -0
- arthur_client/api_bindings/docs/MetricsResultFilterOp.md +24 -0
- arthur_client/api_bindings/docs/MetricsUpload.md +30 -0
- arthur_client/api_bindings/docs/MetricsUploadMetricsInner.md +31 -0
- arthur_client/api_bindings/docs/MetricsUploadResult.md +32 -0
- arthur_client/api_bindings/docs/MetricsV1Api.md +346 -0
- arthur_client/api_bindings/docs/MetricsVersion.md +34 -0
- arthur_client/api_bindings/docs/MetricsVersionsSort.md +16 -0
- arthur_client/api_bindings/docs/Model.md +41 -0
- arthur_client/api_bindings/docs/ModelMetricSpec.md +30 -0
- arthur_client/api_bindings/docs/ModelMetricsSchedule.md +32 -0
- arthur_client/api_bindings/docs/ModelProblemType.md +18 -0
- arthur_client/api_bindings/docs/ModelsSort.md +14 -0
- arthur_client/api_bindings/docs/ModelsV1Api.md +742 -0
- arthur_client/api_bindings/docs/NewRuleRequest.md +33 -0
- arthur_client/api_bindings/docs/NotFoundError.md +29 -0
- arthur_client/api_bindings/docs/NumericMetric.md +30 -0
- arthur_client/api_bindings/docs/NumericPoint.md +30 -0
- arthur_client/api_bindings/docs/NumericTimeSeries.md +30 -0
- arthur_client/api_bindings/docs/OAuthV1Api.md +73 -0
- arthur_client/api_bindings/docs/ObjectType.md +29 -0
- arthur_client/api_bindings/docs/ObjectValue.md +34 -0
- arthur_client/api_bindings/docs/Organization.md +32 -0
- arthur_client/api_bindings/docs/OrganizationsV1Api.md +234 -0
- arthur_client/api_bindings/docs/PIIConfig.md +31 -0
- arthur_client/api_bindings/docs/Pagination.md +32 -0
- arthur_client/api_bindings/docs/PatchAlertRule.md +35 -0
- arthur_client/api_bindings/docs/PatchConnectorSpec.md +31 -0
- arthur_client/api_bindings/docs/PatchDataPlane.md +31 -0
- arthur_client/api_bindings/docs/PatchDataPlaneCapabilities.md +29 -0
- arthur_client/api_bindings/docs/PatchDataset.md +31 -0
- arthur_client/api_bindings/docs/PatchDatasetLocator.md +29 -0
- arthur_client/api_bindings/docs/PatchGroup.md +30 -0
- arthur_client/api_bindings/docs/PatchJob.md +29 -0
- arthur_client/api_bindings/docs/PatchModel.md +31 -0
- arthur_client/api_bindings/docs/PatchOrganization.md +29 -0
- arthur_client/api_bindings/docs/PatchProject.md +30 -0
- arthur_client/api_bindings/docs/PatchServiceAccountUser.md +29 -0
- arthur_client/api_bindings/docs/PatchTaskRequest.md +32 -0
- arthur_client/api_bindings/docs/PatchUser.md +32 -0
- arthur_client/api_bindings/docs/PatchWebhook.md +32 -0
- arthur_client/api_bindings/docs/PatchWorkspace.md +29 -0
- arthur_client/api_bindings/docs/Permission.md +31 -0
- arthur_client/api_bindings/docs/PermissionName.md +272 -0
- arthur_client/api_bindings/docs/PermissionRequestItem.md +31 -0
- arthur_client/api_bindings/docs/PermissionResponseItem.md +32 -0
- arthur_client/api_bindings/docs/PermissionsRequest.md +29 -0
- arthur_client/api_bindings/docs/PermissionsResponse.md +29 -0
- arthur_client/api_bindings/docs/PostAlert.md +36 -0
- arthur_client/api_bindings/docs/PostAlertRule.md +35 -0
- arthur_client/api_bindings/docs/PostAlerts.md +29 -0
- arthur_client/api_bindings/docs/PostConnectorSpec.md +33 -0
- arthur_client/api_bindings/docs/PostDataPlane.md +31 -0
- arthur_client/api_bindings/docs/PostDataPlaneAssociation.md +30 -0
- arthur_client/api_bindings/docs/PostDataRetrievalOperation.md +32 -0
- arthur_client/api_bindings/docs/PostDataset.md +33 -0
- arthur_client/api_bindings/docs/PostDatasetJoinSpec.md +33 -0
- arthur_client/api_bindings/docs/PostEndUser.md +33 -0
- arthur_client/api_bindings/docs/PostGlobalRoleBinding.md +31 -0
- arthur_client/api_bindings/docs/PostGroup.md +30 -0
- arthur_client/api_bindings/docs/PostGroupMembership.md +29 -0
- arthur_client/api_bindings/docs/PostJob.md +34 -0
- arthur_client/api_bindings/docs/PostJobBatch.md +29 -0
- arthur_client/api_bindings/docs/PostJobKind.md +21 -0
- arthur_client/api_bindings/docs/PostJobSpec.md +37 -0
- arthur_client/api_bindings/docs/PostLinkTaskRequest.md +31 -0
- arthur_client/api_bindings/docs/PostMetricsQuery.md +32 -0
- arthur_client/api_bindings/docs/PostMetricsQueryResultFilter.md +31 -0
- arthur_client/api_bindings/docs/PostMetricsQueryResultFilterAndGroup.md +29 -0
- arthur_client/api_bindings/docs/PostMetricsQueryResultFilterAndGroupAndInner.md +33 -0
- arthur_client/api_bindings/docs/PostMetricsQueryResultFilterOrGroup.md +29 -0
- arthur_client/api_bindings/docs/PostMetricsQueryResultFilterOrGroupOrInner.md +33 -0
- arthur_client/api_bindings/docs/PostMetricsQueryTimeRange.md +30 -0
- arthur_client/api_bindings/docs/PostMetricsVersions.md +30 -0
- arthur_client/api_bindings/docs/PostModel.md +33 -0
- arthur_client/api_bindings/docs/PostProject.md +30 -0
- arthur_client/api_bindings/docs/PostRoleBinding.md +31 -0
- arthur_client/api_bindings/docs/PostServiceAccount.md +29 -0
- arthur_client/api_bindings/docs/PostTaskRequest.md +32 -0
- arthur_client/api_bindings/docs/PostTaskValidationAPIKey.md +31 -0
- arthur_client/api_bindings/docs/PostUpsolveTenant.md +30 -0
- arthur_client/api_bindings/docs/PostWebhook.md +32 -0
- arthur_client/api_bindings/docs/PostWorkspace.md +29 -0
- arthur_client/api_bindings/docs/Project.md +35 -0
- arthur_client/api_bindings/docs/ProjectBoundResourceMetadata.md +30 -0
- arthur_client/api_bindings/docs/ProjectSort.md +14 -0
- arthur_client/api_bindings/docs/ProjectsV1Api.md +420 -0
- arthur_client/api_bindings/docs/PutAvailableDataset.md +33 -0
- arthur_client/api_bindings/docs/PutAvailableDatasets.md +29 -0
- arthur_client/api_bindings/docs/PutDatasetSchema.md +30 -0
- arthur_client/api_bindings/docs/PutJobState.md +29 -0
- arthur_client/api_bindings/docs/PutModelMetricSpec.md +29 -0
- arthur_client/api_bindings/docs/PutModelMetricsSchedule.md +31 -0
- arthur_client/api_bindings/docs/PutRetrievedData.md +29 -0
- arthur_client/api_bindings/docs/PutTaskConnectionInfo.md +30 -0
- arthur_client/api_bindings/docs/PutTaskStateCacheRequest.md +29 -0
- arthur_client/api_bindings/docs/RegenerateTaskValidationKeyJobSpec.md +30 -0
- arthur_client/api_bindings/docs/RegexConfig.md +29 -0
- arthur_client/api_bindings/docs/RegisterUser.md +29 -0
- arthur_client/api_bindings/docs/RegistrationV1Api.md +80 -0
- arthur_client/api_bindings/docs/ResourceKind.md +40 -0
- arthur_client/api_bindings/docs/ResourceListAggregationSpecSchema.md +30 -0
- arthur_client/api_bindings/docs/ResourceListAlertRule.md +30 -0
- arthur_client/api_bindings/docs/ResourceListAvailableDataset.md +30 -0
- arthur_client/api_bindings/docs/ResourceListConnectorSpec.md +30 -0
- arthur_client/api_bindings/docs/ResourceListConnectorType.md +30 -0
- arthur_client/api_bindings/docs/ResourceListDataPlane.md +30 -0
- arthur_client/api_bindings/docs/ResourceListDataPlaneAssociation.md +30 -0
- arthur_client/api_bindings/docs/ResourceListDataset.md +30 -0
- arthur_client/api_bindings/docs/ResourceListGroup.md +30 -0
- arthur_client/api_bindings/docs/ResourceListGroupMembership.md +30 -0
- arthur_client/api_bindings/docs/ResourceListJobError.md +30 -0
- arthur_client/api_bindings/docs/ResourceListJobLog.md +30 -0
- arthur_client/api_bindings/docs/ResourceListJobRun.md +30 -0
- arthur_client/api_bindings/docs/ResourceListMetricsVersion.md +30 -0
- arthur_client/api_bindings/docs/ResourceListModel.md +30 -0
- arthur_client/api_bindings/docs/ResourceListPermission.md +30 -0
- arthur_client/api_bindings/docs/ResourceListProject.md +30 -0
- arthur_client/api_bindings/docs/ResourceListRole.md +30 -0
- arthur_client/api_bindings/docs/ResourceListRoleBinding.md +30 -0
- arthur_client/api_bindings/docs/ResourceListUser.md +30 -0
- arthur_client/api_bindings/docs/ResourceListWebhook.md +30 -0
- arthur_client/api_bindings/docs/ResourceListWorkspace.md +30 -0
- arthur_client/api_bindings/docs/ResultFilter.md +34 -0
- arthur_client/api_bindings/docs/Role.md +39 -0
- arthur_client/api_bindings/docs/RoleBinding.md +36 -0
- arthur_client/api_bindings/docs/RoleSort.md +14 -0
- arthur_client/api_bindings/docs/RolesV1Api.md +87 -0
- arthur_client/api_bindings/docs/RuleResponse.md +38 -0
- arthur_client/api_bindings/docs/RuleResponseConfig.md +37 -0
- arthur_client/api_bindings/docs/RuleScope.md +12 -0
- arthur_client/api_bindings/docs/RuleType.md +26 -0
- arthur_client/api_bindings/docs/ScalarType.md +29 -0
- arthur_client/api_bindings/docs/ScheduleJobsJobSpec.md +31 -0
- arthur_client/api_bindings/docs/SchemaInspectionJobSpec.md +31 -0
- arthur_client/api_bindings/docs/ScopeSchemaTag.md +26 -0
- arthur_client/api_bindings/docs/SensitiveDataPlane.md +39 -0
- arthur_client/api_bindings/docs/SensitiveUser.md +41 -0
- arthur_client/api_bindings/docs/ServiceAccountCredentials.md +30 -0
- arthur_client/api_bindings/docs/SketchMetric.md +30 -0
- arthur_client/api_bindings/docs/SketchPoint.md +30 -0
- arthur_client/api_bindings/docs/SketchTimeSeries.md +30 -0
- arthur_client/api_bindings/docs/SortOrder.md +12 -0
- arthur_client/api_bindings/docs/TaskConnectionInfo.md +32 -0
- arthur_client/api_bindings/docs/TaskMutationResponse.md +29 -0
- arthur_client/api_bindings/docs/TaskReadResponse.md +31 -0
- arthur_client/api_bindings/docs/TaskResponse.md +33 -0
- arthur_client/api_bindings/docs/TaskValidationAPIKey.md +31 -0
- arthur_client/api_bindings/docs/TaskValidationKeyRegenerationResponse.md +29 -0
- arthur_client/api_bindings/docs/TasksV1Api.md +892 -0
- arthur_client/api_bindings/docs/ToxicityConfig.md +29 -0
- arthur_client/api_bindings/docs/UpdateModelTaskRulesJobSpec.md +34 -0
- arthur_client/api_bindings/docs/UpsolveToken.md +29 -0
- arthur_client/api_bindings/docs/UpsolveV1Api.md +88 -0
- arthur_client/api_bindings/docs/User.md +40 -0
- arthur_client/api_bindings/docs/UserCredentials.md +29 -0
- arthur_client/api_bindings/docs/UserServiceAccountCredentials.md +41 -0
- arthur_client/api_bindings/docs/UserSort.md +16 -0
- arthur_client/api_bindings/docs/UserType.md +14 -0
- arthur_client/api_bindings/docs/UsersV1Api.md +810 -0
- arthur_client/api_bindings/docs/ValidationError.md +31 -0
- arthur_client/api_bindings/docs/ValidationErrorLocInner.md +28 -0
- arthur_client/api_bindings/docs/Webhook.md +37 -0
- arthur_client/api_bindings/docs/WebhookResponse.md +30 -0
- arthur_client/api_bindings/docs/WebhookResult.md +30 -0
- arthur_client/api_bindings/docs/WebhookSort.md +14 -0
- arthur_client/api_bindings/docs/WebhooksV1Api.md +503 -0
- arthur_client/api_bindings/docs/Workspace.md +33 -0
- arthur_client/api_bindings/docs/WorkspaceSort.md +14 -0
- arthur_client/api_bindings/docs/WorkspacesV1Api.md +416 -0
- arthur_client/api_bindings/exceptions.py +199 -0
- arthur_client/api_bindings/models/__init__.py +288 -0
- arthur_client/api_bindings/models/aggregation_metric_type.py +37 -0
- arthur_client/api_bindings/models/aggregation_spec.py +106 -0
- arthur_client/api_bindings/models/aggregation_spec_schema.py +113 -0
- arthur_client/api_bindings/models/aggregation_spec_schema_init_args_inner.py +164 -0
- arthur_client/api_bindings/models/alert.py +137 -0
- arthur_client/api_bindings/models/alert_bound.py +37 -0
- arthur_client/api_bindings/models/alert_check_job_spec.py +104 -0
- arthur_client/api_bindings/models/alert_rule.py +133 -0
- arthur_client/api_bindings/models/alert_rule_notification_webhook.py +89 -0
- arthur_client/api_bindings/models/alert_rule_sort.py +37 -0
- arthur_client/api_bindings/models/alert_sort.py +37 -0
- arthur_client/api_bindings/models/alert_webhook_called.py +95 -0
- arthur_client/api_bindings/models/available_dataset.py +151 -0
- arthur_client/api_bindings/models/available_datasets_sort.py +38 -0
- arthur_client/api_bindings/models/bad_request_error.py +87 -0
- arthur_client/api_bindings/models/base_role.py +96 -0
- arthur_client/api_bindings/models/bound_member.py +89 -0
- arthur_client/api_bindings/models/bound_member_kind.py +37 -0
- arthur_client/api_bindings/models/bound_resource.py +100 -0
- arthur_client/api_bindings/models/bound_resource_kind.py +39 -0
- arthur_client/api_bindings/models/bound_role.py +89 -0
- arthur_client/api_bindings/models/config.py +185 -0
- arthur_client/api_bindings/models/conflict_error.py +87 -0
- arthur_client/api_bindings/models/connector_check_job_spec.py +99 -0
- arthur_client/api_bindings/models/connector_check_outcome.py +37 -0
- arthur_client/api_bindings/models/connector_check_result.py +95 -0
- arthur_client/api_bindings/models/connector_field_data_type.py +39 -0
- arthur_client/api_bindings/models/connector_pagination_options.py +90 -0
- arthur_client/api_bindings/models/connector_spec.py +135 -0
- arthur_client/api_bindings/models/connector_spec_field.py +89 -0
- arthur_client/api_bindings/models/connector_spec_field_with_metadata.py +94 -0
- arthur_client/api_bindings/models/connector_spec_schema.py +111 -0
- arthur_client/api_bindings/models/connector_spec_schema_field.py +103 -0
- arthur_client/api_bindings/models/connector_type.py +40 -0
- arthur_client/api_bindings/models/connectors_sort.py +38 -0
- arthur_client/api_bindings/models/create_model_link_task_job_spec.py +108 -0
- arthur_client/api_bindings/models/create_model_task_job_spec.py +118 -0
- arthur_client/api_bindings/models/created_alerts.py +110 -0
- arthur_client/api_bindings/models/credentials.py +134 -0
- arthur_client/api_bindings/models/d_type.py +44 -0
- arthur_client/api_bindings/models/data_plane.py +113 -0
- arthur_client/api_bindings/models/data_plane_association.py +118 -0
- arthur_client/api_bindings/models/data_plane_association_sort.py +37 -0
- arthur_client/api_bindings/models/data_plane_capabilities.py +87 -0
- arthur_client/api_bindings/models/data_plane_sort.py +38 -0
- arthur_client/api_bindings/models/data_result_filter.py +97 -0
- arthur_client/api_bindings/models/data_result_filter_op.py +43 -0
- arthur_client/api_bindings/models/data_retrieval_data.py +94 -0
- arthur_client/api_bindings/models/data_retrieval_operation.py +103 -0
- arthur_client/api_bindings/models/data_retrieval_status.py +38 -0
- arthur_client/api_bindings/models/dataset.py +145 -0
- arthur_client/api_bindings/models/dataset_column.py +95 -0
- arthur_client/api_bindings/models/dataset_connector.py +92 -0
- arthur_client/api_bindings/models/dataset_join_kind.py +39 -0
- arthur_client/api_bindings/models/dataset_join_spec.py +99 -0
- arthur_client/api_bindings/models/dataset_list_type.py +105 -0
- arthur_client/api_bindings/models/dataset_locator.py +95 -0
- arthur_client/api_bindings/models/dataset_locator_field.py +89 -0
- arthur_client/api_bindings/models/dataset_locator_field_data_type.py +38 -0
- arthur_client/api_bindings/models/dataset_locator_schema.py +95 -0
- arthur_client/api_bindings/models/dataset_locator_schema_field.py +101 -0
- arthur_client/api_bindings/models/dataset_object_type.py +114 -0
- arthur_client/api_bindings/models/dataset_reference.py +97 -0
- arthur_client/api_bindings/models/dataset_scalar_type.py +100 -0
- arthur_client/api_bindings/models/dataset_schema.py +101 -0
- arthur_client/api_bindings/models/datasets_sort.py +37 -0
- arthur_client/api_bindings/models/definition.py +149 -0
- arthur_client/api_bindings/models/delete_group_membership.py +87 -0
- arthur_client/api_bindings/models/delete_model_task_job_spec.py +99 -0
- arthur_client/api_bindings/models/dimension.py +89 -0
- arthur_client/api_bindings/models/example_config.py +89 -0
- arthur_client/api_bindings/models/examples_config.py +102 -0
- arthur_client/api_bindings/models/extended_role.py +129 -0
- arthur_client/api_bindings/models/fetch_data_job_spec.py +134 -0
- arthur_client/api_bindings/models/fetch_model_task_job_spec.py +99 -0
- arthur_client/api_bindings/models/generate_metrics_spec_request.py +87 -0
- arthur_client/api_bindings/models/group.py +105 -0
- arthur_client/api_bindings/models/group_membership.py +100 -0
- arthur_client/api_bindings/models/group_sort.py +38 -0
- arthur_client/api_bindings/models/health_status.py +87 -0
- arthur_client/api_bindings/models/http_validation_error.py +95 -0
- arthur_client/api_bindings/models/infinite_pagination.py +89 -0
- arthur_client/api_bindings/models/infinite_resource_list_alert.py +101 -0
- arthur_client/api_bindings/models/infinite_resource_list_job.py +101 -0
- arthur_client/api_bindings/models/internal_server_error.py +87 -0
- arthur_client/api_bindings/models/invite_new_user.py +105 -0
- arthur_client/api_bindings/models/items.py +151 -0
- arthur_client/api_bindings/models/items1.py +151 -0
- arthur_client/api_bindings/models/job.py +178 -0
- arthur_client/api_bindings/models/job_dequeue_parameters.py +87 -0
- arthur_client/api_bindings/models/job_error.py +87 -0
- arthur_client/api_bindings/models/job_errors.py +95 -0
- arthur_client/api_bindings/models/job_kind.py +48 -0
- arthur_client/api_bindings/models/job_log.py +93 -0
- arthur_client/api_bindings/models/job_log_level.py +40 -0
- arthur_client/api_bindings/models/job_logs.py +95 -0
- arthur_client/api_bindings/models/job_priority.py +39 -0
- arthur_client/api_bindings/models/job_run.py +104 -0
- arthur_client/api_bindings/models/job_spec.py +299 -0
- arthur_client/api_bindings/models/job_state.py +40 -0
- arthur_client/api_bindings/models/job_trigger.py +38 -0
- arthur_client/api_bindings/models/jobs_batch.py +95 -0
- arthur_client/api_bindings/models/jobs_sort.py +38 -0
- arthur_client/api_bindings/models/joined_dataset.py +98 -0
- arthur_client/api_bindings/models/keywords_config.py +87 -0
- arthur_client/api_bindings/models/list_datasets_job_spec.py +99 -0
- arthur_client/api_bindings/models/list_type.py +93 -0
- arthur_client/api_bindings/models/metrics_arg_spec.py +94 -0
- arthur_client/api_bindings/models/metrics_calculation_job_spec.py +104 -0
- arthur_client/api_bindings/models/metrics_column_list_parameter_schema.py +105 -0
- arthur_client/api_bindings/models/metrics_column_parameter_schema.py +127 -0
- arthur_client/api_bindings/models/metrics_column_parameter_schema_allowed_column_types_inner.py +151 -0
- arthur_client/api_bindings/models/metrics_dataset_parameter_schema.py +113 -0
- arthur_client/api_bindings/models/metrics_literal_parameter_schema.py +108 -0
- arthur_client/api_bindings/models/metrics_query_result.py +87 -0
- arthur_client/api_bindings/models/metrics_result_filter_op.py +43 -0
- arthur_client/api_bindings/models/metrics_upload.py +95 -0
- arthur_client/api_bindings/models/metrics_upload_metrics_inner.py +134 -0
- arthur_client/api_bindings/models/metrics_upload_result.py +93 -0
- arthur_client/api_bindings/models/metrics_version.py +98 -0
- arthur_client/api_bindings/models/metrics_versions_sort.py +39 -0
- arthur_client/api_bindings/models/model.py +153 -0
- arthur_client/api_bindings/models/model_metric_spec.py +97 -0
- arthur_client/api_bindings/models/model_metrics_schedule.py +98 -0
- arthur_client/api_bindings/models/model_problem_type.py +40 -0
- arthur_client/api_bindings/models/models_sort.py +38 -0
- arthur_client/api_bindings/models/new_rule_request.py +104 -0
- arthur_client/api_bindings/models/not_found_error.py +87 -0
- arthur_client/api_bindings/models/numeric_metric.py +97 -0
- arthur_client/api_bindings/models/numeric_point.py +90 -0
- arthur_client/api_bindings/models/numeric_time_series.py +105 -0
- arthur_client/api_bindings/models/object_type.py +102 -0
- arthur_client/api_bindings/models/object_value.py +151 -0
- arthur_client/api_bindings/models/organization.py +94 -0
- arthur_client/api_bindings/models/pagination.py +93 -0
- arthur_client/api_bindings/models/patch_alert_rule.py +135 -0
- arthur_client/api_bindings/models/patch_connector_spec.py +109 -0
- arthur_client/api_bindings/models/patch_data_plane.py +110 -0
- arthur_client/api_bindings/models/patch_data_plane_capabilities.py +92 -0
- arthur_client/api_bindings/models/patch_dataset.py +111 -0
- arthur_client/api_bindings/models/patch_dataset_locator.py +100 -0
- arthur_client/api_bindings/models/patch_group.py +99 -0
- arthur_client/api_bindings/models/patch_job.py +92 -0
- arthur_client/api_bindings/models/patch_model.py +106 -0
- arthur_client/api_bindings/models/patch_organization.py +92 -0
- arthur_client/api_bindings/models/patch_project.py +99 -0
- arthur_client/api_bindings/models/patch_service_account_user.py +92 -0
- arthur_client/api_bindings/models/patch_task_request.py +101 -0
- arthur_client/api_bindings/models/patch_user.py +113 -0
- arthur_client/api_bindings/models/patch_webhook.py +113 -0
- arthur_client/api_bindings/models/patch_workspace.py +87 -0
- arthur_client/api_bindings/models/permission.py +93 -0
- arthur_client/api_bindings/models/permission_name.py +167 -0
- arthur_client/api_bindings/models/permission_request_item.py +93 -0
- arthur_client/api_bindings/models/permission_response_item.py +95 -0
- arthur_client/api_bindings/models/permissions_request.py +96 -0
- arthur_client/api_bindings/models/permissions_response.py +95 -0
- arthur_client/api_bindings/models/pii_config.py +106 -0
- arthur_client/api_bindings/models/post_alert.py +118 -0
- arthur_client/api_bindings/models/post_alert_rule.py +105 -0
- arthur_client/api_bindings/models/post_alerts.py +96 -0
- arthur_client/api_bindings/models/post_connector_spec.py +104 -0
- arthur_client/api_bindings/models/post_data_plane.py +95 -0
- arthur_client/api_bindings/models/post_data_plane_association.py +89 -0
- arthur_client/api_bindings/models/post_data_retrieval_operation.py +106 -0
- arthur_client/api_bindings/models/post_dataset.py +128 -0
- arthur_client/api_bindings/models/post_dataset_join_spec.py +96 -0
- arthur_client/api_bindings/models/post_end_user.py +105 -0
- arthur_client/api_bindings/models/post_global_role_binding.py +92 -0
- arthur_client/api_bindings/models/post_group.py +94 -0
- arthur_client/api_bindings/models/post_group_membership.py +87 -0
- arthur_client/api_bindings/models/post_job.py +124 -0
- arthur_client/api_bindings/models/post_job_batch.py +95 -0
- arthur_client/api_bindings/models/post_job_kind.py +41 -0
- arthur_client/api_bindings/models/post_job_spec.py +194 -0
- arthur_client/api_bindings/models/post_link_task_request.py +96 -0
- arthur_client/api_bindings/models/post_metrics_query.py +106 -0
- arthur_client/api_bindings/models/post_metrics_query_result_filter.py +97 -0
- arthur_client/api_bindings/models/post_metrics_query_result_filter_and_group.py +97 -0
- arthur_client/api_bindings/models/post_metrics_query_result_filter_and_group_and_inner.py +151 -0
- arthur_client/api_bindings/models/post_metrics_query_result_filter_or_group.py +97 -0
- arthur_client/api_bindings/models/post_metrics_query_result_filter_or_group_or_inner.py +151 -0
- arthur_client/api_bindings/models/post_metrics_query_time_range.py +90 -0
- arthur_client/api_bindings/models/post_metrics_versions.py +90 -0
- arthur_client/api_bindings/models/post_model.py +115 -0
- arthur_client/api_bindings/models/post_project.py +94 -0
- arthur_client/api_bindings/models/post_role_binding.py +101 -0
- arthur_client/api_bindings/models/post_service_account.py +87 -0
- arthur_client/api_bindings/models/post_task_request.py +107 -0
- arthur_client/api_bindings/models/post_task_validation_api_key.py +91 -0
- arthur_client/api_bindings/models/post_upsolve_tenant.py +90 -0
- arthur_client/api_bindings/models/post_webhook.py +93 -0
- arthur_client/api_bindings/models/post_workspace.py +87 -0
- arthur_client/api_bindings/models/project.py +105 -0
- arthur_client/api_bindings/models/project_bound_resource_metadata.py +89 -0
- arthur_client/api_bindings/models/project_sort.py +38 -0
- arthur_client/api_bindings/models/put_available_dataset.py +133 -0
- arthur_client/api_bindings/models/put_available_datasets.py +95 -0
- arthur_client/api_bindings/models/put_dataset_schema.py +97 -0
- arthur_client/api_bindings/models/put_job_state.py +88 -0
- arthur_client/api_bindings/models/put_model_metric_spec.py +95 -0
- arthur_client/api_bindings/models/put_model_metrics_schedule.py +96 -0
- arthur_client/api_bindings/models/put_retrieved_data.py +87 -0
- arthur_client/api_bindings/models/put_task_connection_info.py +93 -0
- arthur_client/api_bindings/models/put_task_state_cache_request.py +91 -0
- arthur_client/api_bindings/models/regenerate_task_validation_key_job_spec.py +99 -0
- arthur_client/api_bindings/models/regex_config.py +87 -0
- arthur_client/api_bindings/models/register_user.py +87 -0
- arthur_client/api_bindings/models/resource_kind.py +51 -0
- arthur_client/api_bindings/models/resource_list_aggregation_spec_schema.py +101 -0
- arthur_client/api_bindings/models/resource_list_alert_rule.py +101 -0
- arthur_client/api_bindings/models/resource_list_available_dataset.py +101 -0
- arthur_client/api_bindings/models/resource_list_connector_spec.py +101 -0
- arthur_client/api_bindings/models/resource_list_connector_type.py +94 -0
- arthur_client/api_bindings/models/resource_list_data_plane.py +101 -0
- arthur_client/api_bindings/models/resource_list_data_plane_association.py +101 -0
- arthur_client/api_bindings/models/resource_list_dataset.py +101 -0
- arthur_client/api_bindings/models/resource_list_group.py +101 -0
- arthur_client/api_bindings/models/resource_list_group_membership.py +101 -0
- arthur_client/api_bindings/models/resource_list_job_error.py +101 -0
- arthur_client/api_bindings/models/resource_list_job_log.py +101 -0
- arthur_client/api_bindings/models/resource_list_job_run.py +101 -0
- arthur_client/api_bindings/models/resource_list_metrics_version.py +101 -0
- arthur_client/api_bindings/models/resource_list_model.py +101 -0
- arthur_client/api_bindings/models/resource_list_permission.py +101 -0
- arthur_client/api_bindings/models/resource_list_project.py +101 -0
- arthur_client/api_bindings/models/resource_list_role.py +101 -0
- arthur_client/api_bindings/models/resource_list_role_binding.py +101 -0
- arthur_client/api_bindings/models/resource_list_user.py +101 -0
- arthur_client/api_bindings/models/resource_list_webhook.py +101 -0
- arthur_client/api_bindings/models/resource_list_workspace.py +101 -0
- arthur_client/api_bindings/models/result_filter.py +155 -0
- arthur_client/api_bindings/models/role.py +114 -0
- arthur_client/api_bindings/models/role_binding.py +116 -0
- arthur_client/api_bindings/models/role_sort.py +38 -0
- arthur_client/api_bindings/models/rule_response.py +121 -0
- arthur_client/api_bindings/models/rule_response_config.py +185 -0
- arthur_client/api_bindings/models/rule_scope.py +37 -0
- arthur_client/api_bindings/models/rule_type.py +44 -0
- arthur_client/api_bindings/models/scalar_type.py +88 -0
- arthur_client/api_bindings/models/schedule_jobs_job_spec.py +102 -0
- arthur_client/api_bindings/models/schema_inspection_job_spec.py +101 -0
- arthur_client/api_bindings/models/scope_schema_tag.py +44 -0
- arthur_client/api_bindings/models/sensitive_data_plane.py +117 -0
- arthur_client/api_bindings/models/sensitive_user.py +142 -0
- arthur_client/api_bindings/models/service_account_credentials.py +89 -0
- arthur_client/api_bindings/models/sketch_metric.py +97 -0
- arthur_client/api_bindings/models/sketch_point.py +90 -0
- arthur_client/api_bindings/models/sketch_time_series.py +105 -0
- arthur_client/api_bindings/models/sort_order.py +37 -0
- arthur_client/api_bindings/models/task_connection_info.py +98 -0
- arthur_client/api_bindings/models/task_mutation_response.py +87 -0
- arthur_client/api_bindings/models/task_read_response.py +106 -0
- arthur_client/api_bindings/models/task_response.py +103 -0
- arthur_client/api_bindings/models/task_validation_api_key.py +91 -0
- arthur_client/api_bindings/models/task_validation_key_regeneration_response.py +87 -0
- arthur_client/api_bindings/models/toxicity_config.py +100 -0
- arthur_client/api_bindings/models/update_model_task_rules_job_spec.py +115 -0
- arthur_client/api_bindings/models/upsolve_token.py +87 -0
- arthur_client/api_bindings/models/user.py +136 -0
- arthur_client/api_bindings/models/user_credentials.py +87 -0
- arthur_client/api_bindings/models/user_service_account_credentials.py +142 -0
- arthur_client/api_bindings/models/user_sort.py +39 -0
- arthur_client/api_bindings/models/user_type.py +38 -0
- arthur_client/api_bindings/models/validation_error.py +99 -0
- arthur_client/api_bindings/models/validation_error_loc_inner.py +138 -0
- arthur_client/api_bindings/models/webhook.py +113 -0
- arthur_client/api_bindings/models/webhook_response.py +99 -0
- arthur_client/api_bindings/models/webhook_result.py +103 -0
- arthur_client/api_bindings/models/webhook_sort.py +38 -0
- arthur_client/api_bindings/models/workspace.py +96 -0
- arthur_client/api_bindings/models/workspace_sort.py +38 -0
- arthur_client/api_bindings/rest.py +257 -0
- arthur_client/api_bindings/test/test_aggregation_metric_type.py +33 -0
- arthur_client/api_bindings/test/test_aggregation_spec.py +72 -0
- arthur_client/api_bindings/test/test_aggregation_spec_schema.py +70 -0
- arthur_client/api_bindings/test/test_aggregation_spec_schema_init_args_inner.py +70 -0
- arthur_client/api_bindings/test/test_alert.py +78 -0
- arthur_client/api_bindings/test/test_alert_bound.py +33 -0
- arthur_client/api_bindings/test/test_alert_check_job_spec.py +57 -0
- arthur_client/api_bindings/test/test_alert_rule.py +92 -0
- arthur_client/api_bindings/test/test_alert_rule_notification_webhook.py +54 -0
- arthur_client/api_bindings/test/test_alert_rule_sort.py +33 -0
- arthur_client/api_bindings/test/test_alert_rules_v1_api.py +66 -0
- arthur_client/api_bindings/test/test_alert_sort.py +33 -0
- arthur_client/api_bindings/test/test_alert_webhook_called.py +64 -0
- arthur_client/api_bindings/test/test_alerts_v1_api.py +52 -0
- arthur_client/api_bindings/test/test_authorization_v1_api.py +115 -0
- arthur_client/api_bindings/test/test_available_dataset.py +94 -0
- arthur_client/api_bindings/test/test_available_datasets_sort.py +33 -0
- arthur_client/api_bindings/test/test_bad_request_error.py +51 -0
- arthur_client/api_bindings/test/test_base_role.py +56 -0
- arthur_client/api_bindings/test/test_bound_member.py +54 -0
- arthur_client/api_bindings/test/test_bound_member_kind.py +33 -0
- arthur_client/api_bindings/test/test_bound_resource.py +57 -0
- arthur_client/api_bindings/test/test_bound_resource_kind.py +33 -0
- arthur_client/api_bindings/test/test_bound_role.py +54 -0
- arthur_client/api_bindings/test/test_config.py +77 -0
- arthur_client/api_bindings/test/test_conflict_error.py +51 -0
- arthur_client/api_bindings/test/test_connector_check_job_spec.py +53 -0
- arthur_client/api_bindings/test/test_connector_check_outcome.py +33 -0
- arthur_client/api_bindings/test/test_connector_check_result.py +53 -0
- arthur_client/api_bindings/test/test_connector_field_data_type.py +33 -0
- arthur_client/api_bindings/test/test_connector_pagination_options.py +52 -0
- arthur_client/api_bindings/test/test_connector_schemas_v1_api.py +45 -0
- arthur_client/api_bindings/test/test_connector_spec.py +96 -0
- arthur_client/api_bindings/test/test_connector_spec_field.py +54 -0
- arthur_client/api_bindings/test/test_connector_spec_field_with_metadata.py +58 -0
- arthur_client/api_bindings/test/test_connector_spec_schema.py +102 -0
- arthur_client/api_bindings/test/test_connector_spec_schema_field.py +63 -0
- arthur_client/api_bindings/test/test_connector_type.py +33 -0
- arthur_client/api_bindings/test/test_connectors_sort.py +33 -0
- arthur_client/api_bindings/test/test_connectors_v1_api.py +80 -0
- arthur_client/api_bindings/test/test_create_model_link_task_job_spec.py +56 -0
- arthur_client/api_bindings/test/test_create_model_task_job_spec.py +72 -0
- arthur_client/api_bindings/test/test_created_alerts.py +96 -0
- arthur_client/api_bindings/test/test_credentials.py +56 -0
- arthur_client/api_bindings/test/test_d_type.py +33 -0
- arthur_client/api_bindings/test/test_data_plane.py +70 -0
- arthur_client/api_bindings/test/test_data_plane_association.py +79 -0
- arthur_client/api_bindings/test/test_data_plane_association_sort.py +33 -0
- arthur_client/api_bindings/test/test_data_plane_associations_v1_api.py +66 -0
- arthur_client/api_bindings/test/test_data_plane_capabilities.py +51 -0
- arthur_client/api_bindings/test/test_data_plane_sort.py +33 -0
- arthur_client/api_bindings/test/test_data_planes_v1_api.py +73 -0
- arthur_client/api_bindings/test/test_data_result_filter.py +56 -0
- arthur_client/api_bindings/test/test_data_result_filter_op.py +33 -0
- arthur_client/api_bindings/test/test_data_retrieval_data.py +54 -0
- arthur_client/api_bindings/test/test_data_retrieval_operation.py +59 -0
- arthur_client/api_bindings/test/test_data_retrieval_status.py +33 -0
- arthur_client/api_bindings/test/test_data_retrieval_v1_api.py +87 -0
- arthur_client/api_bindings/test/test_dataset.py +117 -0
- arthur_client/api_bindings/test/test_dataset_column.py +55 -0
- arthur_client/api_bindings/test/test_dataset_connector.py +56 -0
- arthur_client/api_bindings/test/test_dataset_join_kind.py +33 -0
- arthur_client/api_bindings/test/test_dataset_join_spec.py +71 -0
- arthur_client/api_bindings/test/test_dataset_list_type.py +57 -0
- arthur_client/api_bindings/test/test_dataset_locator.py +60 -0
- arthur_client/api_bindings/test/test_dataset_locator_field.py +54 -0
- arthur_client/api_bindings/test/test_dataset_locator_field_data_type.py +33 -0
- arthur_client/api_bindings/test/test_dataset_locator_schema.py +70 -0
- arthur_client/api_bindings/test/test_dataset_locator_schema_field.py +61 -0
- arthur_client/api_bindings/test/test_dataset_object_type.py +61 -0
- arthur_client/api_bindings/test/test_dataset_reference.py +56 -0
- arthur_client/api_bindings/test/test_dataset_scalar_type.py +57 -0
- arthur_client/api_bindings/test/test_dataset_schema.py +74 -0
- arthur_client/api_bindings/test/test_datasets_sort.py +33 -0
- arthur_client/api_bindings/test/test_datasets_v1_api.py +129 -0
- arthur_client/api_bindings/test/test_default_api.py +38 -0
- arthur_client/api_bindings/test/test_definition.py +65 -0
- arthur_client/api_bindings/test/test_delete_group_membership.py +56 -0
- arthur_client/api_bindings/test/test_delete_model_task_job_spec.py +53 -0
- arthur_client/api_bindings/test/test_dimension.py +54 -0
- arthur_client/api_bindings/test/test_example_config.py +54 -0
- arthur_client/api_bindings/test/test_examples_config.py +57 -0
- arthur_client/api_bindings/test/test_extended_role.py +92 -0
- arthur_client/api_bindings/test/test_feature_flags_v1_api.py +38 -0
- arthur_client/api_bindings/test/test_fetch_data_job_spec.py +77 -0
- arthur_client/api_bindings/test/test_fetch_model_task_job_spec.py +53 -0
- arthur_client/api_bindings/test/test_generate_metrics_spec_request.py +56 -0
- arthur_client/api_bindings/test/test_group.py +63 -0
- arthur_client/api_bindings/test/test_group_membership.py +74 -0
- arthur_client/api_bindings/test/test_group_sort.py +33 -0
- arthur_client/api_bindings/test/test_groups_v1_api.py +94 -0
- arthur_client/api_bindings/test/test_health_status.py +51 -0
- arthur_client/api_bindings/test/test_http_validation_error.py +58 -0
- arthur_client/api_bindings/test/test_infinite_pagination.py +52 -0
- arthur_client/api_bindings/test/test_infinite_resource_list_alert.py +92 -0
- arthur_client/api_bindings/test/test_infinite_resource_list_job.py +126 -0
- arthur_client/api_bindings/test/test_internal_server_error.py +51 -0
- arthur_client/api_bindings/test/test_invite_new_user.py +59 -0
- arthur_client/api_bindings/test/test_items.py +65 -0
- arthur_client/api_bindings/test/test_items1.py +60 -0
- arthur_client/api_bindings/test/test_job.py +94 -0
- arthur_client/api_bindings/test/test_job_dequeue_parameters.py +52 -0
- arthur_client/api_bindings/test/test_job_error.py +52 -0
- arthur_client/api_bindings/test/test_job_errors.py +58 -0
- arthur_client/api_bindings/test/test_job_kind.py +33 -0
- arthur_client/api_bindings/test/test_job_log.py +56 -0
- arthur_client/api_bindings/test/test_job_log_level.py +33 -0
- arthur_client/api_bindings/test/test_job_logs.py +62 -0
- arthur_client/api_bindings/test/test_job_priority.py +33 -0
- arthur_client/api_bindings/test/test_job_run.py +61 -0
- arthur_client/api_bindings/test/test_job_spec.py +124 -0
- arthur_client/api_bindings/test/test_job_state.py +33 -0
- arthur_client/api_bindings/test/test_job_trigger.py +33 -0
- arthur_client/api_bindings/test/test_jobs_batch.py +120 -0
- arthur_client/api_bindings/test/test_jobs_sort.py +33 -0
- arthur_client/api_bindings/test/test_jobs_v1_api.py +108 -0
- arthur_client/api_bindings/test/test_joined_dataset.py +58 -0
- arthur_client/api_bindings/test/test_keywords_config.py +56 -0
- arthur_client/api_bindings/test/test_list_datasets_job_spec.py +53 -0
- arthur_client/api_bindings/test/test_list_type.py +52 -0
- arthur_client/api_bindings/test/test_metric_functions_v1_api.py +38 -0
- arthur_client/api_bindings/test/test_metrics_arg_spec.py +54 -0
- arthur_client/api_bindings/test/test_metrics_calculation_job_spec.py +57 -0
- arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema.py +58 -0
- arthur_client/api_bindings/test/test_metrics_column_parameter_schema.py +67 -0
- arthur_client/api_bindings/test/test_metrics_column_parameter_schema_allowed_column_types_inner.py +60 -0
- arthur_client/api_bindings/test/test_metrics_dataset_parameter_schema.py +59 -0
- arthur_client/api_bindings/test/test_metrics_literal_parameter_schema.py +60 -0
- arthur_client/api_bindings/test/test_metrics_query_result.py +56 -0
- arthur_client/api_bindings/test/test_metrics_result_filter_op.py +33 -0
- arthur_client/api_bindings/test/test_metrics_upload.py +56 -0
- arthur_client/api_bindings/test/test_metrics_upload_metrics_inner.py +104 -0
- arthur_client/api_bindings/test/test_metrics_upload_result.py +58 -0
- arthur_client/api_bindings/test/test_metrics_v1_api.py +59 -0
- arthur_client/api_bindings/test/test_metrics_version.py +62 -0
- arthur_client/api_bindings/test/test_metrics_versions_sort.py +33 -0
- arthur_client/api_bindings/test/test_model.py +133 -0
- arthur_client/api_bindings/test/test_model_metric_spec.py +80 -0
- arthur_client/api_bindings/test/test_model_metrics_schedule.py +57 -0
- arthur_client/api_bindings/test/test_model_problem_type.py +33 -0
- arthur_client/api_bindings/test/test_models_sort.py +33 -0
- arthur_client/api_bindings/test/test_models_v1_api.py +94 -0
- arthur_client/api_bindings/test/test_new_rule_request.py +59 -0
- arthur_client/api_bindings/test/test_not_found_error.py +51 -0
- arthur_client/api_bindings/test/test_numeric_metric.py +78 -0
- arthur_client/api_bindings/test/test_numeric_point.py +54 -0
- arthur_client/api_bindings/test/test_numeric_time_series.py +70 -0
- arthur_client/api_bindings/test/test_o_auth_v1_api.py +38 -0
- arthur_client/api_bindings/test/test_object_type.py +56 -0
- arthur_client/api_bindings/test/test_object_value.py +65 -0
- arthur_client/api_bindings/test/test_organization.py +58 -0
- arthur_client/api_bindings/test/test_organizations_v1_api.py +52 -0
- arthur_client/api_bindings/test/test_pagination.py +56 -0
- arthur_client/api_bindings/test/test_patch_alert_rule.py +59 -0
- arthur_client/api_bindings/test/test_patch_connector_spec.py +57 -0
- arthur_client/api_bindings/test/test_patch_data_plane.py +54 -0
- arthur_client/api_bindings/test/test_patch_data_plane_capabilities.py +51 -0
- arthur_client/api_bindings/test/test_patch_dataset.py +58 -0
- arthur_client/api_bindings/test/test_patch_dataset_locator.py +55 -0
- arthur_client/api_bindings/test/test_patch_group.py +52 -0
- arthur_client/api_bindings/test/test_patch_job.py +52 -0
- arthur_client/api_bindings/test/test_patch_model.py +55 -0
- arthur_client/api_bindings/test/test_patch_organization.py +51 -0
- arthur_client/api_bindings/test/test_patch_project.py +52 -0
- arthur_client/api_bindings/test/test_patch_service_account_user.py +51 -0
- arthur_client/api_bindings/test/test_patch_task_request.py +67 -0
- arthur_client/api_bindings/test/test_patch_user.py +54 -0
- arthur_client/api_bindings/test/test_patch_webhook.py +58 -0
- arthur_client/api_bindings/test/test_patch_workspace.py +52 -0
- arthur_client/api_bindings/test/test_permission.py +56 -0
- arthur_client/api_bindings/test/test_permission_name.py +33 -0
- arthur_client/api_bindings/test/test_permission_request_item.py +56 -0
- arthur_client/api_bindings/test/test_permission_response_item.py +58 -0
- arthur_client/api_bindings/test/test_permissions_request.py +62 -0
- arthur_client/api_bindings/test/test_permissions_response.py +64 -0
- arthur_client/api_bindings/test/test_pii_config.py +57 -0
- arthur_client/api_bindings/test/test_post_alert.py +65 -0
- arthur_client/api_bindings/test/test_post_alert_rule.py +64 -0
- arthur_client/api_bindings/test/test_post_alerts.py +72 -0
- arthur_client/api_bindings/test/test_post_connector_spec.py +67 -0
- arthur_client/api_bindings/test/test_post_data_plane.py +56 -0
- arthur_client/api_bindings/test/test_post_data_plane_association.py +54 -0
- arthur_client/api_bindings/test/test_post_data_retrieval_operation.py +63 -0
- arthur_client/api_bindings/test/test_post_dataset.py +75 -0
- arthur_client/api_bindings/test/test_post_dataset_join_spec.py +59 -0
- arthur_client/api_bindings/test/test_post_end_user.py +58 -0
- arthur_client/api_bindings/test/test_post_global_role_binding.py +56 -0
- arthur_client/api_bindings/test/test_post_group.py +53 -0
- arthur_client/api_bindings/test/test_post_group_membership.py +56 -0
- arthur_client/api_bindings/test/test_post_job.py +58 -0
- arthur_client/api_bindings/test/test_post_job_batch.py +68 -0
- arthur_client/api_bindings/test/test_post_job_kind.py +33 -0
- arthur_client/api_bindings/test/test_post_job_spec.py +65 -0
- arthur_client/api_bindings/test/test_post_link_task_request.py +55 -0
- arthur_client/api_bindings/test/test_post_metrics_query.py +60 -0
- arthur_client/api_bindings/test/test_post_metrics_query_result_filter.py +56 -0
- arthur_client/api_bindings/test/test_post_metrics_query_result_filter_and_group.py +56 -0
- arthur_client/api_bindings/test/test_post_metrics_query_result_filter_and_group_and_inner.py +68 -0
- arthur_client/api_bindings/test/test_post_metrics_query_result_filter_or_group.py +56 -0
- arthur_client/api_bindings/test/test_post_metrics_query_result_filter_or_group_or_inner.py +68 -0
- arthur_client/api_bindings/test/test_post_metrics_query_time_range.py +54 -0
- arthur_client/api_bindings/test/test_post_metrics_versions.py +54 -0
- arthur_client/api_bindings/test/test_post_model.py +75 -0
- arthur_client/api_bindings/test/test_post_project.py +53 -0
- arthur_client/api_bindings/test/test_post_role_binding.py +54 -0
- arthur_client/api_bindings/test/test_post_service_account.py +52 -0
- arthur_client/api_bindings/test/test_post_task_request.py +63 -0
- arthur_client/api_bindings/test/test_post_task_validation_api_key.py +56 -0
- arthur_client/api_bindings/test/test_post_upsolve_tenant.py +54 -0
- arthur_client/api_bindings/test/test_post_webhook.py +61 -0
- arthur_client/api_bindings/test/test_post_workspace.py +52 -0
- arthur_client/api_bindings/test/test_project.py +63 -0
- arthur_client/api_bindings/test/test_project_bound_resource_metadata.py +54 -0
- arthur_client/api_bindings/test/test_project_sort.py +33 -0
- arthur_client/api_bindings/test/test_projects_v1_api.py +66 -0
- arthur_client/api_bindings/test/test_put_available_dataset.py +74 -0
- arthur_client/api_bindings/test/test_put_available_datasets.py +104 -0
- arthur_client/api_bindings/test/test_put_dataset_schema.py +68 -0
- arthur_client/api_bindings/test/test_put_job_state.py +52 -0
- arthur_client/api_bindings/test/test_put_model_metric_spec.py +78 -0
- arthur_client/api_bindings/test/test_put_model_metrics_schedule.py +55 -0
- arthur_client/api_bindings/test/test_put_retrieved_data.py +52 -0
- arthur_client/api_bindings/test/test_put_task_connection_info.py +60 -0
- arthur_client/api_bindings/test/test_put_task_state_cache_request.py +86 -0
- arthur_client/api_bindings/test/test_regenerate_task_validation_key_job_spec.py +53 -0
- arthur_client/api_bindings/test/test_regex_config.py +56 -0
- arthur_client/api_bindings/test/test_register_user.py +52 -0
- arthur_client/api_bindings/test/test_registration_v1_api.py +38 -0
- arthur_client/api_bindings/test/test_resource_kind.py +33 -0
- arthur_client/api_bindings/test/test_resource_list_aggregation_spec_schema.py +86 -0
- arthur_client/api_bindings/test/test_resource_list_alert_rule.py +122 -0
- arthur_client/api_bindings/test/test_resource_list_available_dataset.py +144 -0
- arthur_client/api_bindings/test/test_resource_list_connector_spec.py +128 -0
- arthur_client/api_bindings/test/test_resource_list_connector_type.py +66 -0
- arthur_client/api_bindings/test/test_resource_list_data_plane.py +86 -0
- arthur_client/api_bindings/test/test_resource_list_data_plane_association.py +114 -0
- arthur_client/api_bindings/test/test_resource_list_dataset.py +150 -0
- arthur_client/api_bindings/test/test_resource_list_group.py +80 -0
- arthur_client/api_bindings/test/test_resource_list_group_membership.py +90 -0
- arthur_client/api_bindings/test/test_resource_list_job_error.py +68 -0
- arthur_client/api_bindings/test/test_resource_list_job_log.py +72 -0
- arthur_client/api_bindings/test/test_resource_list_job_run.py +78 -0
- arthur_client/api_bindings/test/test_resource_list_metrics_version.py +78 -0
- arthur_client/api_bindings/test/test_resource_list_model.py +168 -0
- arthur_client/api_bindings/test/test_resource_list_permission.py +72 -0
- arthur_client/api_bindings/test/test_resource_list_project.py +80 -0
- arthur_client/api_bindings/test/test_resource_list_role.py +96 -0
- arthur_client/api_bindings/test/test_resource_list_role_binding.py +100 -0
- arthur_client/api_bindings/test/test_resource_list_user.py +90 -0
- arthur_client/api_bindings/test/test_resource_list_webhook.py +116 -0
- arthur_client/api_bindings/test/test_resource_list_workspace.py +76 -0
- arthur_client/api_bindings/test/test_result_filter.py +68 -0
- arthur_client/api_bindings/test/test_role.py +80 -0
- arthur_client/api_bindings/test/test_role_binding.py +84 -0
- arthur_client/api_bindings/test/test_role_sort.py +33 -0
- arthur_client/api_bindings/test/test_roles_v1_api.py +38 -0
- arthur_client/api_bindings/test/test_rule_response.py +68 -0
- arthur_client/api_bindings/test/test_rule_response_config.py +77 -0
- arthur_client/api_bindings/test/test_rule_scope.py +33 -0
- arthur_client/api_bindings/test/test_rule_type.py +33 -0
- arthur_client/api_bindings/test/test_scalar_type.py +52 -0
- arthur_client/api_bindings/test/test_schedule_jobs_job_spec.py +55 -0
- arthur_client/api_bindings/test/test_schema_inspection_job_spec.py +55 -0
- arthur_client/api_bindings/test/test_scope_schema_tag.py +33 -0
- arthur_client/api_bindings/test/test_sensitive_data_plane.py +74 -0
- arthur_client/api_bindings/test/test_sensitive_user.py +72 -0
- arthur_client/api_bindings/test/test_service_account_credentials.py +54 -0
- arthur_client/api_bindings/test/test_sketch_metric.py +78 -0
- arthur_client/api_bindings/test/test_sketch_point.py +54 -0
- arthur_client/api_bindings/test/test_sketch_time_series.py +70 -0
- arthur_client/api_bindings/test/test_sort_order.py +33 -0
- arthur_client/api_bindings/test/test_task_connection_info.py +64 -0
- arthur_client/api_bindings/test/test_task_mutation_response.py +52 -0
- arthur_client/api_bindings/test/test_task_read_response.py +71 -0
- arthur_client/api_bindings/test/test_task_response.py +84 -0
- arthur_client/api_bindings/test/test_task_validation_api_key.py +56 -0
- arthur_client/api_bindings/test/test_task_validation_key_regeneration_response.py +52 -0
- arthur_client/api_bindings/test/test_tasks_v1_api.py +108 -0
- arthur_client/api_bindings/test/test_toxicity_config.py +51 -0
- arthur_client/api_bindings/test/test_update_model_task_rules_job_spec.py +70 -0
- arthur_client/api_bindings/test/test_upsolve_token.py +52 -0
- arthur_client/api_bindings/test/test_upsolve_v1_api.py +38 -0
- arthur_client/api_bindings/test/test_user.py +70 -0
- arthur_client/api_bindings/test/test_user_credentials.py +52 -0
- arthur_client/api_bindings/test/test_user_service_account_credentials.py +76 -0
- arthur_client/api_bindings/test/test_user_sort.py +33 -0
- arthur_client/api_bindings/test/test_user_type.py +33 -0
- arthur_client/api_bindings/test/test_users_v1_api.py +101 -0
- arthur_client/api_bindings/test/test_validation_error.py +60 -0
- arthur_client/api_bindings/test/test_validation_error_loc_inner.py +50 -0
- arthur_client/api_bindings/test/test_webhook.py +82 -0
- arthur_client/api_bindings/test/test_webhook_response.py +54 -0
- arthur_client/api_bindings/test/test_webhook_result.py +58 -0
- arthur_client/api_bindings/test/test_webhook_sort.py +33 -0
- arthur_client/api_bindings/test/test_webhooks_v1_api.py +73 -0
- arthur_client/api_bindings/test/test_workspace.py +60 -0
- arthur_client/api_bindings/test/test_workspace_sort.py +33 -0
- arthur_client/api_bindings/test/test_workspaces_v1_api.py +66 -0
- arthur_client/api_bindings_README.md +509 -0
- arthur_client/auth/__init__.py +4 -0
- arthur_client/auth/constants.py +1 -0
- arthur_client/auth/device_authorizer.py +74 -0
- arthur_client/auth/discovery.py +40 -0
- arthur_client/auth/oauth_api_config.py +38 -0
- arthur_client/auth/session.py +84 -0
- arthur_client-1.4.1055.dist-info/METADATA +40 -0
- arthur_client-1.4.1055.dist-info/RECORD +915 -0
- {arthur_client-1.4.0.dist-info → arthur_client-1.4.1055.dist-info}/WHEEL +1 -2
- arthur/client/__init__.py +0 -3
- arthur/client/auth/helpers.py +0 -123
- arthur/client/auth/refresh.py +0 -67
- arthur/client/helpers.py +0 -48
- arthur/client/http/helper.py +0 -47
- arthur/client/http/requests.py +0 -654
- arthur/client/http/validation.py +0 -197
- arthur/client/rest/__init__.py +0 -16
- arthur/client/rest/admin/__init__.py +0 -2
- arthur/client/rest/admin/client.py +0 -330
- arthur/client/rest/admin/models.py +0 -457
- arthur/client/rest/alerts/__init__.py +0 -2
- arthur/client/rest/alerts/client.py +0 -589
- arthur/client/rest/alerts/models.py +0 -695
- arthur/client/rest/bench/__init__.py +0 -2
- arthur/client/rest/bench/client.py +0 -280
- arthur/client/rest/bench/models.py +0 -229
- arthur/client/rest/client.py +0 -158
- arthur/client/rest/common/__init__.py +0 -2
- arthur/client/rest/common/client.py +0 -25
- arthur/client/rest/common/models.py +0 -317
- arthur/client/rest/enrichments/__init__.py +0 -2
- arthur/client/rest/enrichments/client.py +0 -352
- arthur/client/rest/enrichments/models.py +0 -483
- arthur/client/rest/inferences/__init__.py +0 -2
- arthur/client/rest/inferences/client.py +0 -268
- arthur/client/rest/inferences/models.py +0 -432
- arthur/client/rest/insights/__init__.py +0 -2
- arthur/client/rest/insights/client.py +0 -199
- arthur/client/rest/insights/models.py +0 -182
- arthur/client/rest/metrics/__init__.py +0 -2
- arthur/client/rest/metrics/client.py +0 -296
- arthur/client/rest/metrics/models.py +0 -325
- arthur/client/rest/model_groups/__init__.py +0 -2
- arthur/client/rest/model_groups/client.py +0 -153
- arthur/client/rest/model_groups/models.py +0 -80
- arthur/client/rest/models/__init__.py +0 -2
- arthur/client/rest/models/client.py +0 -534
- arthur/client/rest/models/models.py +0 -565
- arthur/client/rest/query/__init__.py +0 -2
- arthur/client/rest/query/client.py +0 -123
- arthur/client/rest/query/models.py +0 -133
- arthur/client/rest/users/__init__.py +0 -2
- arthur/client/rest/users/client.py +0 -171
- arthur/client/rest/users/models.py +0 -317
- arthur/client/types.py +0 -9
- arthur/client/version.py +0 -2
- arthur/common/__init__.py +0 -3
- arthur/common/constants.py +0 -5
- arthur/common/exceptions.py +0 -183
- arthur/common/log.py +0 -79
- arthur_client-1.4.0.dist-info/LICENSE +0 -21
- arthur_client-1.4.0.dist-info/METADATA +0 -49
- arthur_client-1.4.0.dist-info/RECORD +0 -58
- arthur_client-1.4.0.dist-info/top_level.txt +0 -1
- {arthur/client/auth → arthur_client}/__init__.py +0 -0
- {arthur/client/http → arthur_client/api_bindings/test}/__init__.py +0 -0
@@ -0,0 +1,2930 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
import warnings
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
|
+
from typing_extensions import Annotated
|
18
|
+
|
19
|
+
from pydantic import Field, StrictStr
|
20
|
+
from typing import Any, List, Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from arthur_client.api_bindings.models.invite_new_user import InviteNewUser
|
23
|
+
from arthur_client.api_bindings.models.patch_service_account_user import PatchServiceAccountUser
|
24
|
+
from arthur_client.api_bindings.models.patch_user import PatchUser
|
25
|
+
from arthur_client.api_bindings.models.post_end_user import PostEndUser
|
26
|
+
from arthur_client.api_bindings.models.post_service_account import PostServiceAccount
|
27
|
+
from arthur_client.api_bindings.models.resource_list_user import ResourceListUser
|
28
|
+
from arthur_client.api_bindings.models.sensitive_user import SensitiveUser
|
29
|
+
from arthur_client.api_bindings.models.sort_order import SortOrder
|
30
|
+
from arthur_client.api_bindings.models.user import User
|
31
|
+
from arthur_client.api_bindings.models.user_service_account_credentials import UserServiceAccountCredentials
|
32
|
+
from arthur_client.api_bindings.models.user_sort import UserSort
|
33
|
+
from arthur_client.api_bindings.models.user_type import UserType
|
34
|
+
|
35
|
+
from arthur_client.api_bindings.api_client import ApiClient, RequestSerialized
|
36
|
+
from arthur_client.api_bindings.api_response import ApiResponse
|
37
|
+
from arthur_client.api_bindings.rest import RESTResponseType
|
38
|
+
|
39
|
+
|
40
|
+
class UsersV1Api:
|
41
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
42
|
+
Ref: https://openapi-generator.tech
|
43
|
+
|
44
|
+
Do not edit the class manually.
|
45
|
+
"""
|
46
|
+
|
47
|
+
def __init__(self, api_client=None) -> None:
|
48
|
+
if api_client is None:
|
49
|
+
api_client = ApiClient.get_default()
|
50
|
+
self.api_client = api_client
|
51
|
+
|
52
|
+
|
53
|
+
@validate_call
|
54
|
+
def accept_my_invites(
|
55
|
+
self,
|
56
|
+
_request_timeout: Union[
|
57
|
+
None,
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
59
|
+
Tuple[
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
62
|
+
]
|
63
|
+
] = None,
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
68
|
+
) -> None:
|
69
|
+
"""Accept User Invitations
|
70
|
+
|
71
|
+
Accepts pending invitations for the user.
|
72
|
+
|
73
|
+
:param _request_timeout: timeout setting for this request. If one
|
74
|
+
number provided, it will be total request
|
75
|
+
timeout. It can also be a pair (tuple) of
|
76
|
+
(connection, read) timeouts.
|
77
|
+
:type _request_timeout: int, tuple(int, int), optional
|
78
|
+
:param _request_auth: set to override the auth_settings for an a single
|
79
|
+
request; this effectively ignores the
|
80
|
+
authentication in the spec for a single request.
|
81
|
+
:type _request_auth: dict, optional
|
82
|
+
:param _content_type: force content-type for the request.
|
83
|
+
:type _content_type: str, Optional
|
84
|
+
:param _headers: set to override the headers for a single
|
85
|
+
request; this effectively ignores the headers
|
86
|
+
in the spec for a single request.
|
87
|
+
:type _headers: dict, optional
|
88
|
+
:param _host_index: set to override the host_index for a single
|
89
|
+
request; this effectively ignores the host_index
|
90
|
+
in the spec for a single request.
|
91
|
+
:type _host_index: int, optional
|
92
|
+
:return: Returns the result object.
|
93
|
+
""" # noqa: E501
|
94
|
+
|
95
|
+
_param = self._accept_my_invites_serialize(
|
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
|
+
}
|
107
|
+
response_data = self.api_client.call_api(
|
108
|
+
*_param,
|
109
|
+
_request_timeout=_request_timeout
|
110
|
+
)
|
111
|
+
response_data.read()
|
112
|
+
return self.api_client.response_deserialize(
|
113
|
+
response_data=response_data,
|
114
|
+
response_types_map=_response_types_map,
|
115
|
+
).data
|
116
|
+
|
117
|
+
|
118
|
+
@validate_call
|
119
|
+
def accept_my_invites_with_http_info(
|
120
|
+
self,
|
121
|
+
_request_timeout: Union[
|
122
|
+
None,
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
124
|
+
Tuple[
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
127
|
+
]
|
128
|
+
] = None,
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
+
) -> ApiResponse[None]:
|
134
|
+
"""Accept User Invitations
|
135
|
+
|
136
|
+
Accepts pending invitations for the user.
|
137
|
+
|
138
|
+
:param _request_timeout: timeout setting for this request. If one
|
139
|
+
number provided, it will be total request
|
140
|
+
timeout. It can also be a pair (tuple) of
|
141
|
+
(connection, read) timeouts.
|
142
|
+
:type _request_timeout: int, tuple(int, int), optional
|
143
|
+
:param _request_auth: set to override the auth_settings for an a single
|
144
|
+
request; this effectively ignores the
|
145
|
+
authentication in the spec for a single request.
|
146
|
+
:type _request_auth: dict, optional
|
147
|
+
:param _content_type: force content-type for the request.
|
148
|
+
:type _content_type: str, Optional
|
149
|
+
:param _headers: set to override the headers for a single
|
150
|
+
request; this effectively ignores the headers
|
151
|
+
in the spec for a single request.
|
152
|
+
:type _headers: dict, optional
|
153
|
+
:param _host_index: set to override the host_index for a single
|
154
|
+
request; this effectively ignores the host_index
|
155
|
+
in the spec for a single request.
|
156
|
+
:type _host_index: int, optional
|
157
|
+
:return: Returns the result object.
|
158
|
+
""" # noqa: E501
|
159
|
+
|
160
|
+
_param = self._accept_my_invites_serialize(
|
161
|
+
_request_auth=_request_auth,
|
162
|
+
_content_type=_content_type,
|
163
|
+
_headers=_headers,
|
164
|
+
_host_index=_host_index
|
165
|
+
)
|
166
|
+
|
167
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
168
|
+
'204': None,
|
169
|
+
'500': "InternalServerError",
|
170
|
+
'400': "BadRequestError",
|
171
|
+
}
|
172
|
+
response_data = self.api_client.call_api(
|
173
|
+
*_param,
|
174
|
+
_request_timeout=_request_timeout
|
175
|
+
)
|
176
|
+
response_data.read()
|
177
|
+
return self.api_client.response_deserialize(
|
178
|
+
response_data=response_data,
|
179
|
+
response_types_map=_response_types_map,
|
180
|
+
)
|
181
|
+
|
182
|
+
|
183
|
+
@validate_call
|
184
|
+
def accept_my_invites_without_preload_content(
|
185
|
+
self,
|
186
|
+
_request_timeout: Union[
|
187
|
+
None,
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
189
|
+
Tuple[
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
191
|
+
Annotated[StrictFloat, Field(gt=0)]
|
192
|
+
]
|
193
|
+
] = None,
|
194
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
195
|
+
_content_type: Optional[StrictStr] = None,
|
196
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
197
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
198
|
+
) -> RESTResponseType:
|
199
|
+
"""Accept User Invitations
|
200
|
+
|
201
|
+
Accepts pending invitations for the user.
|
202
|
+
|
203
|
+
:param _request_timeout: timeout setting for this request. If one
|
204
|
+
number provided, it will be total request
|
205
|
+
timeout. It can also be a pair (tuple) of
|
206
|
+
(connection, read) timeouts.
|
207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
209
|
+
request; this effectively ignores the
|
210
|
+
authentication in the spec for a single request.
|
211
|
+
:type _request_auth: dict, optional
|
212
|
+
:param _content_type: force content-type for the request.
|
213
|
+
:type _content_type: str, Optional
|
214
|
+
:param _headers: set to override the headers for a single
|
215
|
+
request; this effectively ignores the headers
|
216
|
+
in the spec for a single request.
|
217
|
+
:type _headers: dict, optional
|
218
|
+
:param _host_index: set to override the host_index for a single
|
219
|
+
request; this effectively ignores the host_index
|
220
|
+
in the spec for a single request.
|
221
|
+
:type _host_index: int, optional
|
222
|
+
:return: Returns the result object.
|
223
|
+
""" # noqa: E501
|
224
|
+
|
225
|
+
_param = self._accept_my_invites_serialize(
|
226
|
+
_request_auth=_request_auth,
|
227
|
+
_content_type=_content_type,
|
228
|
+
_headers=_headers,
|
229
|
+
_host_index=_host_index
|
230
|
+
)
|
231
|
+
|
232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
233
|
+
'204': None,
|
234
|
+
'500': "InternalServerError",
|
235
|
+
'400': "BadRequestError",
|
236
|
+
}
|
237
|
+
response_data = self.api_client.call_api(
|
238
|
+
*_param,
|
239
|
+
_request_timeout=_request_timeout
|
240
|
+
)
|
241
|
+
return response_data.response
|
242
|
+
|
243
|
+
|
244
|
+
def _accept_my_invites_serialize(
|
245
|
+
self,
|
246
|
+
_request_auth,
|
247
|
+
_content_type,
|
248
|
+
_headers,
|
249
|
+
_host_index,
|
250
|
+
) -> RequestSerialized:
|
251
|
+
|
252
|
+
_host = None
|
253
|
+
|
254
|
+
_collection_formats: Dict[str, str] = {
|
255
|
+
}
|
256
|
+
|
257
|
+
_path_params: Dict[str, str] = {}
|
258
|
+
_query_params: List[Tuple[str, str]] = []
|
259
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
260
|
+
_form_params: List[Tuple[str, str]] = []
|
261
|
+
_files: Dict[
|
262
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
263
|
+
] = {}
|
264
|
+
_body_params: Optional[bytes] = None
|
265
|
+
|
266
|
+
# process the path parameters
|
267
|
+
# process the query parameters
|
268
|
+
# process the header parameters
|
269
|
+
# process the form parameters
|
270
|
+
# process the body parameter
|
271
|
+
|
272
|
+
|
273
|
+
# set the HTTP header `Accept`
|
274
|
+
if 'Accept' not in _header_params:
|
275
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
276
|
+
[
|
277
|
+
'application/json'
|
278
|
+
]
|
279
|
+
)
|
280
|
+
|
281
|
+
|
282
|
+
# authentication setting
|
283
|
+
_auth_settings: List[str] = [
|
284
|
+
'OAuth2AuthorizationCode'
|
285
|
+
]
|
286
|
+
|
287
|
+
return self.api_client.param_serialize(
|
288
|
+
method='POST',
|
289
|
+
resource_path='/api/v1/users/me/accept-invite',
|
290
|
+
path_params=_path_params,
|
291
|
+
query_params=_query_params,
|
292
|
+
header_params=_header_params,
|
293
|
+
body=_body_params,
|
294
|
+
post_params=_form_params,
|
295
|
+
files=_files,
|
296
|
+
auth_settings=_auth_settings,
|
297
|
+
collection_formats=_collection_formats,
|
298
|
+
_host=_host,
|
299
|
+
_request_auth=_request_auth
|
300
|
+
)
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
@validate_call
|
306
|
+
def delete_user(
|
307
|
+
self,
|
308
|
+
user_id: StrictStr,
|
309
|
+
_request_timeout: Union[
|
310
|
+
None,
|
311
|
+
Annotated[StrictFloat, Field(gt=0)],
|
312
|
+
Tuple[
|
313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
314
|
+
Annotated[StrictFloat, Field(gt=0)]
|
315
|
+
]
|
316
|
+
] = None,
|
317
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
318
|
+
_content_type: Optional[StrictStr] = None,
|
319
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
320
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
321
|
+
) -> None:
|
322
|
+
"""Delete User
|
323
|
+
|
324
|
+
Requires delete_user permission.
|
325
|
+
|
326
|
+
:param user_id: (required)
|
327
|
+
:type user_id: str
|
328
|
+
:param _request_timeout: timeout setting for this request. If one
|
329
|
+
number provided, it will be total request
|
330
|
+
timeout. It can also be a pair (tuple) of
|
331
|
+
(connection, read) timeouts.
|
332
|
+
:type _request_timeout: int, tuple(int, int), optional
|
333
|
+
:param _request_auth: set to override the auth_settings for an a single
|
334
|
+
request; this effectively ignores the
|
335
|
+
authentication in the spec for a single request.
|
336
|
+
:type _request_auth: dict, optional
|
337
|
+
:param _content_type: force content-type for the request.
|
338
|
+
:type _content_type: str, Optional
|
339
|
+
:param _headers: set to override the headers for a single
|
340
|
+
request; this effectively ignores the headers
|
341
|
+
in the spec for a single request.
|
342
|
+
:type _headers: dict, optional
|
343
|
+
:param _host_index: set to override the host_index for a single
|
344
|
+
request; this effectively ignores the host_index
|
345
|
+
in the spec for a single request.
|
346
|
+
:type _host_index: int, optional
|
347
|
+
:return: Returns the result object.
|
348
|
+
""" # noqa: E501
|
349
|
+
|
350
|
+
_param = self._delete_user_serialize(
|
351
|
+
user_id=user_id,
|
352
|
+
_request_auth=_request_auth,
|
353
|
+
_content_type=_content_type,
|
354
|
+
_headers=_headers,
|
355
|
+
_host_index=_host_index
|
356
|
+
)
|
357
|
+
|
358
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
359
|
+
'204': None,
|
360
|
+
'500': "InternalServerError",
|
361
|
+
'404': "NotFoundError",
|
362
|
+
'422': "HTTPValidationError",
|
363
|
+
}
|
364
|
+
response_data = self.api_client.call_api(
|
365
|
+
*_param,
|
366
|
+
_request_timeout=_request_timeout
|
367
|
+
)
|
368
|
+
response_data.read()
|
369
|
+
return self.api_client.response_deserialize(
|
370
|
+
response_data=response_data,
|
371
|
+
response_types_map=_response_types_map,
|
372
|
+
).data
|
373
|
+
|
374
|
+
|
375
|
+
@validate_call
|
376
|
+
def delete_user_with_http_info(
|
377
|
+
self,
|
378
|
+
user_id: StrictStr,
|
379
|
+
_request_timeout: Union[
|
380
|
+
None,
|
381
|
+
Annotated[StrictFloat, Field(gt=0)],
|
382
|
+
Tuple[
|
383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
384
|
+
Annotated[StrictFloat, Field(gt=0)]
|
385
|
+
]
|
386
|
+
] = None,
|
387
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
388
|
+
_content_type: Optional[StrictStr] = None,
|
389
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
390
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
391
|
+
) -> ApiResponse[None]:
|
392
|
+
"""Delete User
|
393
|
+
|
394
|
+
Requires delete_user permission.
|
395
|
+
|
396
|
+
:param user_id: (required)
|
397
|
+
:type user_id: str
|
398
|
+
:param _request_timeout: timeout setting for this request. If one
|
399
|
+
number provided, it will be total request
|
400
|
+
timeout. It can also be a pair (tuple) of
|
401
|
+
(connection, read) timeouts.
|
402
|
+
:type _request_timeout: int, tuple(int, int), optional
|
403
|
+
:param _request_auth: set to override the auth_settings for an a single
|
404
|
+
request; this effectively ignores the
|
405
|
+
authentication in the spec for a single request.
|
406
|
+
:type _request_auth: dict, optional
|
407
|
+
:param _content_type: force content-type for the request.
|
408
|
+
:type _content_type: str, Optional
|
409
|
+
:param _headers: set to override the headers for a single
|
410
|
+
request; this effectively ignores the headers
|
411
|
+
in the spec for a single request.
|
412
|
+
:type _headers: dict, optional
|
413
|
+
:param _host_index: set to override the host_index for a single
|
414
|
+
request; this effectively ignores the host_index
|
415
|
+
in the spec for a single request.
|
416
|
+
:type _host_index: int, optional
|
417
|
+
:return: Returns the result object.
|
418
|
+
""" # noqa: E501
|
419
|
+
|
420
|
+
_param = self._delete_user_serialize(
|
421
|
+
user_id=user_id,
|
422
|
+
_request_auth=_request_auth,
|
423
|
+
_content_type=_content_type,
|
424
|
+
_headers=_headers,
|
425
|
+
_host_index=_host_index
|
426
|
+
)
|
427
|
+
|
428
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
429
|
+
'204': None,
|
430
|
+
'500': "InternalServerError",
|
431
|
+
'404': "NotFoundError",
|
432
|
+
'422': "HTTPValidationError",
|
433
|
+
}
|
434
|
+
response_data = self.api_client.call_api(
|
435
|
+
*_param,
|
436
|
+
_request_timeout=_request_timeout
|
437
|
+
)
|
438
|
+
response_data.read()
|
439
|
+
return self.api_client.response_deserialize(
|
440
|
+
response_data=response_data,
|
441
|
+
response_types_map=_response_types_map,
|
442
|
+
)
|
443
|
+
|
444
|
+
|
445
|
+
@validate_call
|
446
|
+
def delete_user_without_preload_content(
|
447
|
+
self,
|
448
|
+
user_id: StrictStr,
|
449
|
+
_request_timeout: Union[
|
450
|
+
None,
|
451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
452
|
+
Tuple[
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
454
|
+
Annotated[StrictFloat, Field(gt=0)]
|
455
|
+
]
|
456
|
+
] = None,
|
457
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
458
|
+
_content_type: Optional[StrictStr] = None,
|
459
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
460
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
461
|
+
) -> RESTResponseType:
|
462
|
+
"""Delete User
|
463
|
+
|
464
|
+
Requires delete_user permission.
|
465
|
+
|
466
|
+
:param user_id: (required)
|
467
|
+
:type user_id: str
|
468
|
+
:param _request_timeout: timeout setting for this request. If one
|
469
|
+
number provided, it will be total request
|
470
|
+
timeout. It can also be a pair (tuple) of
|
471
|
+
(connection, read) timeouts.
|
472
|
+
:type _request_timeout: int, tuple(int, int), optional
|
473
|
+
:param _request_auth: set to override the auth_settings for an a single
|
474
|
+
request; this effectively ignores the
|
475
|
+
authentication in the spec for a single request.
|
476
|
+
:type _request_auth: dict, optional
|
477
|
+
:param _content_type: force content-type for the request.
|
478
|
+
:type _content_type: str, Optional
|
479
|
+
:param _headers: set to override the headers for a single
|
480
|
+
request; this effectively ignores the headers
|
481
|
+
in the spec for a single request.
|
482
|
+
:type _headers: dict, optional
|
483
|
+
:param _host_index: set to override the host_index for a single
|
484
|
+
request; this effectively ignores the host_index
|
485
|
+
in the spec for a single request.
|
486
|
+
:type _host_index: int, optional
|
487
|
+
:return: Returns the result object.
|
488
|
+
""" # noqa: E501
|
489
|
+
|
490
|
+
_param = self._delete_user_serialize(
|
491
|
+
user_id=user_id,
|
492
|
+
_request_auth=_request_auth,
|
493
|
+
_content_type=_content_type,
|
494
|
+
_headers=_headers,
|
495
|
+
_host_index=_host_index
|
496
|
+
)
|
497
|
+
|
498
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
499
|
+
'204': None,
|
500
|
+
'500': "InternalServerError",
|
501
|
+
'404': "NotFoundError",
|
502
|
+
'422': "HTTPValidationError",
|
503
|
+
}
|
504
|
+
response_data = self.api_client.call_api(
|
505
|
+
*_param,
|
506
|
+
_request_timeout=_request_timeout
|
507
|
+
)
|
508
|
+
return response_data.response
|
509
|
+
|
510
|
+
|
511
|
+
def _delete_user_serialize(
|
512
|
+
self,
|
513
|
+
user_id,
|
514
|
+
_request_auth,
|
515
|
+
_content_type,
|
516
|
+
_headers,
|
517
|
+
_host_index,
|
518
|
+
) -> RequestSerialized:
|
519
|
+
|
520
|
+
_host = None
|
521
|
+
|
522
|
+
_collection_formats: Dict[str, str] = {
|
523
|
+
}
|
524
|
+
|
525
|
+
_path_params: Dict[str, str] = {}
|
526
|
+
_query_params: List[Tuple[str, str]] = []
|
527
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
528
|
+
_form_params: List[Tuple[str, str]] = []
|
529
|
+
_files: Dict[
|
530
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
531
|
+
] = {}
|
532
|
+
_body_params: Optional[bytes] = None
|
533
|
+
|
534
|
+
# process the path parameters
|
535
|
+
if user_id is not None:
|
536
|
+
_path_params['user_id'] = user_id
|
537
|
+
# process the query parameters
|
538
|
+
# process the header parameters
|
539
|
+
# process the form parameters
|
540
|
+
# process the body parameter
|
541
|
+
|
542
|
+
|
543
|
+
# set the HTTP header `Accept`
|
544
|
+
if 'Accept' not in _header_params:
|
545
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
546
|
+
[
|
547
|
+
'application/json'
|
548
|
+
]
|
549
|
+
)
|
550
|
+
|
551
|
+
|
552
|
+
# authentication setting
|
553
|
+
_auth_settings: List[str] = [
|
554
|
+
'OAuth2AuthorizationCode'
|
555
|
+
]
|
556
|
+
|
557
|
+
return self.api_client.param_serialize(
|
558
|
+
method='DELETE',
|
559
|
+
resource_path='/api/v1/users/{user_id}',
|
560
|
+
path_params=_path_params,
|
561
|
+
query_params=_query_params,
|
562
|
+
header_params=_header_params,
|
563
|
+
body=_body_params,
|
564
|
+
post_params=_form_params,
|
565
|
+
files=_files,
|
566
|
+
auth_settings=_auth_settings,
|
567
|
+
collection_formats=_collection_formats,
|
568
|
+
_host=_host,
|
569
|
+
_request_auth=_request_auth
|
570
|
+
)
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
@validate_call
|
576
|
+
def get_organization_users(
|
577
|
+
self,
|
578
|
+
sort: Annotated[Optional[UserSort], Field(description="Override the field used for sorting. Optional.")] = None,
|
579
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
580
|
+
user_types: Annotated[Optional[List[UserType]], Field(description="Limits the results to a specific set of user types.")] = None,
|
581
|
+
search: Annotated[Optional[StrictStr], Field(description="Search for users by name or email.")] = None,
|
582
|
+
user_ids: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Optional list of user IDs to filter down.")] = None,
|
583
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
584
|
+
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,
|
585
|
+
_request_timeout: Union[
|
586
|
+
None,
|
587
|
+
Annotated[StrictFloat, Field(gt=0)],
|
588
|
+
Tuple[
|
589
|
+
Annotated[StrictFloat, Field(gt=0)],
|
590
|
+
Annotated[StrictFloat, Field(gt=0)]
|
591
|
+
]
|
592
|
+
] = None,
|
593
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
594
|
+
_content_type: Optional[StrictStr] = None,
|
595
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
596
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
597
|
+
) -> ResourceListUser:
|
598
|
+
"""Get Users In An Organization.
|
599
|
+
|
600
|
+
Requires organization_list_users permission.
|
601
|
+
|
602
|
+
:param sort: Override the field used for sorting. Optional.
|
603
|
+
:type sort: UserSort
|
604
|
+
:param order: Override the sort order used. Optional.
|
605
|
+
:type order: SortOrder
|
606
|
+
:param user_types: Limits the results to a specific set of user types.
|
607
|
+
:type user_types: List[UserType]
|
608
|
+
:param search: Search for users by name or email.
|
609
|
+
:type search: str
|
610
|
+
:param user_ids: Optional list of user IDs to filter down.
|
611
|
+
:type user_ids: List[Optional[str]]
|
612
|
+
:param page: The page to return starting from 1 up to total_pages.
|
613
|
+
:type page: int
|
614
|
+
:param page_size: The number of records per page. The max is 1000.
|
615
|
+
:type page_size: int
|
616
|
+
:param _request_timeout: timeout setting for this request. If one
|
617
|
+
number provided, it will be total request
|
618
|
+
timeout. It can also be a pair (tuple) of
|
619
|
+
(connection, read) timeouts.
|
620
|
+
:type _request_timeout: int, tuple(int, int), optional
|
621
|
+
:param _request_auth: set to override the auth_settings for an a single
|
622
|
+
request; this effectively ignores the
|
623
|
+
authentication in the spec for a single request.
|
624
|
+
:type _request_auth: dict, optional
|
625
|
+
:param _content_type: force content-type for the request.
|
626
|
+
:type _content_type: str, Optional
|
627
|
+
:param _headers: set to override the headers for a single
|
628
|
+
request; this effectively ignores the headers
|
629
|
+
in the spec for a single request.
|
630
|
+
:type _headers: dict, optional
|
631
|
+
:param _host_index: set to override the host_index for a single
|
632
|
+
request; this effectively ignores the host_index
|
633
|
+
in the spec for a single request.
|
634
|
+
:type _host_index: int, optional
|
635
|
+
:return: Returns the result object.
|
636
|
+
""" # noqa: E501
|
637
|
+
|
638
|
+
_param = self._get_organization_users_serialize(
|
639
|
+
sort=sort,
|
640
|
+
order=order,
|
641
|
+
user_types=user_types,
|
642
|
+
search=search,
|
643
|
+
user_ids=user_ids,
|
644
|
+
page=page,
|
645
|
+
page_size=page_size,
|
646
|
+
_request_auth=_request_auth,
|
647
|
+
_content_type=_content_type,
|
648
|
+
_headers=_headers,
|
649
|
+
_host_index=_host_index
|
650
|
+
)
|
651
|
+
|
652
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
653
|
+
'200': "ResourceListUser",
|
654
|
+
'500': "InternalServerError",
|
655
|
+
'404': "NotFoundError",
|
656
|
+
'422': "HTTPValidationError",
|
657
|
+
}
|
658
|
+
response_data = self.api_client.call_api(
|
659
|
+
*_param,
|
660
|
+
_request_timeout=_request_timeout
|
661
|
+
)
|
662
|
+
response_data.read()
|
663
|
+
return self.api_client.response_deserialize(
|
664
|
+
response_data=response_data,
|
665
|
+
response_types_map=_response_types_map,
|
666
|
+
).data
|
667
|
+
|
668
|
+
|
669
|
+
@validate_call
|
670
|
+
def get_organization_users_with_http_info(
|
671
|
+
self,
|
672
|
+
sort: Annotated[Optional[UserSort], Field(description="Override the field used for sorting. Optional.")] = None,
|
673
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
674
|
+
user_types: Annotated[Optional[List[UserType]], Field(description="Limits the results to a specific set of user types.")] = None,
|
675
|
+
search: Annotated[Optional[StrictStr], Field(description="Search for users by name or email.")] = None,
|
676
|
+
user_ids: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Optional list of user IDs to filter down.")] = None,
|
677
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
678
|
+
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,
|
679
|
+
_request_timeout: Union[
|
680
|
+
None,
|
681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
682
|
+
Tuple[
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
684
|
+
Annotated[StrictFloat, Field(gt=0)]
|
685
|
+
]
|
686
|
+
] = None,
|
687
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
688
|
+
_content_type: Optional[StrictStr] = None,
|
689
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
690
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
691
|
+
) -> ApiResponse[ResourceListUser]:
|
692
|
+
"""Get Users In An Organization.
|
693
|
+
|
694
|
+
Requires organization_list_users permission.
|
695
|
+
|
696
|
+
:param sort: Override the field used for sorting. Optional.
|
697
|
+
:type sort: UserSort
|
698
|
+
:param order: Override the sort order used. Optional.
|
699
|
+
:type order: SortOrder
|
700
|
+
:param user_types: Limits the results to a specific set of user types.
|
701
|
+
:type user_types: List[UserType]
|
702
|
+
:param search: Search for users by name or email.
|
703
|
+
:type search: str
|
704
|
+
:param user_ids: Optional list of user IDs to filter down.
|
705
|
+
:type user_ids: List[Optional[str]]
|
706
|
+
:param page: The page to return starting from 1 up to total_pages.
|
707
|
+
:type page: int
|
708
|
+
:param page_size: The number of records per page. The max is 1000.
|
709
|
+
:type page_size: int
|
710
|
+
:param _request_timeout: timeout setting for this request. If one
|
711
|
+
number provided, it will be total request
|
712
|
+
timeout. It can also be a pair (tuple) of
|
713
|
+
(connection, read) timeouts.
|
714
|
+
:type _request_timeout: int, tuple(int, int), optional
|
715
|
+
:param _request_auth: set to override the auth_settings for an a single
|
716
|
+
request; this effectively ignores the
|
717
|
+
authentication in the spec for a single request.
|
718
|
+
:type _request_auth: dict, optional
|
719
|
+
:param _content_type: force content-type for the request.
|
720
|
+
:type _content_type: str, Optional
|
721
|
+
:param _headers: set to override the headers for a single
|
722
|
+
request; this effectively ignores the headers
|
723
|
+
in the spec for a single request.
|
724
|
+
:type _headers: dict, optional
|
725
|
+
:param _host_index: set to override the host_index for a single
|
726
|
+
request; this effectively ignores the host_index
|
727
|
+
in the spec for a single request.
|
728
|
+
:type _host_index: int, optional
|
729
|
+
:return: Returns the result object.
|
730
|
+
""" # noqa: E501
|
731
|
+
|
732
|
+
_param = self._get_organization_users_serialize(
|
733
|
+
sort=sort,
|
734
|
+
order=order,
|
735
|
+
user_types=user_types,
|
736
|
+
search=search,
|
737
|
+
user_ids=user_ids,
|
738
|
+
page=page,
|
739
|
+
page_size=page_size,
|
740
|
+
_request_auth=_request_auth,
|
741
|
+
_content_type=_content_type,
|
742
|
+
_headers=_headers,
|
743
|
+
_host_index=_host_index
|
744
|
+
)
|
745
|
+
|
746
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
747
|
+
'200': "ResourceListUser",
|
748
|
+
'500': "InternalServerError",
|
749
|
+
'404': "NotFoundError",
|
750
|
+
'422': "HTTPValidationError",
|
751
|
+
}
|
752
|
+
response_data = self.api_client.call_api(
|
753
|
+
*_param,
|
754
|
+
_request_timeout=_request_timeout
|
755
|
+
)
|
756
|
+
response_data.read()
|
757
|
+
return self.api_client.response_deserialize(
|
758
|
+
response_data=response_data,
|
759
|
+
response_types_map=_response_types_map,
|
760
|
+
)
|
761
|
+
|
762
|
+
|
763
|
+
@validate_call
|
764
|
+
def get_organization_users_without_preload_content(
|
765
|
+
self,
|
766
|
+
sort: Annotated[Optional[UserSort], Field(description="Override the field used for sorting. Optional.")] = None,
|
767
|
+
order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
|
768
|
+
user_types: Annotated[Optional[List[UserType]], Field(description="Limits the results to a specific set of user types.")] = None,
|
769
|
+
search: Annotated[Optional[StrictStr], Field(description="Search for users by name or email.")] = None,
|
770
|
+
user_ids: Annotated[Optional[List[Optional[StrictStr]]], Field(description="Optional list of user IDs to filter down.")] = None,
|
771
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
|
772
|
+
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,
|
773
|
+
_request_timeout: Union[
|
774
|
+
None,
|
775
|
+
Annotated[StrictFloat, Field(gt=0)],
|
776
|
+
Tuple[
|
777
|
+
Annotated[StrictFloat, Field(gt=0)],
|
778
|
+
Annotated[StrictFloat, Field(gt=0)]
|
779
|
+
]
|
780
|
+
] = None,
|
781
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
782
|
+
_content_type: Optional[StrictStr] = None,
|
783
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
784
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
785
|
+
) -> RESTResponseType:
|
786
|
+
"""Get Users In An Organization.
|
787
|
+
|
788
|
+
Requires organization_list_users permission.
|
789
|
+
|
790
|
+
:param sort: Override the field used for sorting. Optional.
|
791
|
+
:type sort: UserSort
|
792
|
+
:param order: Override the sort order used. Optional.
|
793
|
+
:type order: SortOrder
|
794
|
+
:param user_types: Limits the results to a specific set of user types.
|
795
|
+
:type user_types: List[UserType]
|
796
|
+
:param search: Search for users by name or email.
|
797
|
+
:type search: str
|
798
|
+
:param user_ids: Optional list of user IDs to filter down.
|
799
|
+
:type user_ids: List[Optional[str]]
|
800
|
+
:param page: The page to return starting from 1 up to total_pages.
|
801
|
+
:type page: int
|
802
|
+
:param page_size: The number of records per page. The max is 1000.
|
803
|
+
:type page_size: int
|
804
|
+
:param _request_timeout: timeout setting for this request. If one
|
805
|
+
number provided, it will be total request
|
806
|
+
timeout. It can also be a pair (tuple) of
|
807
|
+
(connection, read) timeouts.
|
808
|
+
:type _request_timeout: int, tuple(int, int), optional
|
809
|
+
:param _request_auth: set to override the auth_settings for an a single
|
810
|
+
request; this effectively ignores the
|
811
|
+
authentication in the spec for a single request.
|
812
|
+
:type _request_auth: dict, optional
|
813
|
+
:param _content_type: force content-type for the request.
|
814
|
+
:type _content_type: str, Optional
|
815
|
+
:param _headers: set to override the headers for a single
|
816
|
+
request; this effectively ignores the headers
|
817
|
+
in the spec for a single request.
|
818
|
+
:type _headers: dict, optional
|
819
|
+
:param _host_index: set to override the host_index for a single
|
820
|
+
request; this effectively ignores the host_index
|
821
|
+
in the spec for a single request.
|
822
|
+
:type _host_index: int, optional
|
823
|
+
:return: Returns the result object.
|
824
|
+
""" # noqa: E501
|
825
|
+
|
826
|
+
_param = self._get_organization_users_serialize(
|
827
|
+
sort=sort,
|
828
|
+
order=order,
|
829
|
+
user_types=user_types,
|
830
|
+
search=search,
|
831
|
+
user_ids=user_ids,
|
832
|
+
page=page,
|
833
|
+
page_size=page_size,
|
834
|
+
_request_auth=_request_auth,
|
835
|
+
_content_type=_content_type,
|
836
|
+
_headers=_headers,
|
837
|
+
_host_index=_host_index
|
838
|
+
)
|
839
|
+
|
840
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
841
|
+
'200': "ResourceListUser",
|
842
|
+
'500': "InternalServerError",
|
843
|
+
'404': "NotFoundError",
|
844
|
+
'422': "HTTPValidationError",
|
845
|
+
}
|
846
|
+
response_data = self.api_client.call_api(
|
847
|
+
*_param,
|
848
|
+
_request_timeout=_request_timeout
|
849
|
+
)
|
850
|
+
return response_data.response
|
851
|
+
|
852
|
+
|
853
|
+
def _get_organization_users_serialize(
|
854
|
+
self,
|
855
|
+
sort,
|
856
|
+
order,
|
857
|
+
user_types,
|
858
|
+
search,
|
859
|
+
user_ids,
|
860
|
+
page,
|
861
|
+
page_size,
|
862
|
+
_request_auth,
|
863
|
+
_content_type,
|
864
|
+
_headers,
|
865
|
+
_host_index,
|
866
|
+
) -> RequestSerialized:
|
867
|
+
|
868
|
+
_host = None
|
869
|
+
|
870
|
+
_collection_formats: Dict[str, str] = {
|
871
|
+
'user_types': 'multi',
|
872
|
+
'user_ids': 'multi',
|
873
|
+
}
|
874
|
+
|
875
|
+
_path_params: Dict[str, str] = {}
|
876
|
+
_query_params: List[Tuple[str, str]] = []
|
877
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
878
|
+
_form_params: List[Tuple[str, str]] = []
|
879
|
+
_files: Dict[
|
880
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
881
|
+
] = {}
|
882
|
+
_body_params: Optional[bytes] = None
|
883
|
+
|
884
|
+
# process the path parameters
|
885
|
+
# process the query parameters
|
886
|
+
if sort is not None:
|
887
|
+
|
888
|
+
_query_params.append(('sort', sort.value))
|
889
|
+
|
890
|
+
if order is not None:
|
891
|
+
|
892
|
+
_query_params.append(('order', order.value))
|
893
|
+
|
894
|
+
if user_types is not None:
|
895
|
+
|
896
|
+
_query_params.append(('user_types', user_types))
|
897
|
+
|
898
|
+
if search is not None:
|
899
|
+
|
900
|
+
_query_params.append(('search', search))
|
901
|
+
|
902
|
+
if user_ids is not None:
|
903
|
+
|
904
|
+
_query_params.append(('user_ids', user_ids))
|
905
|
+
|
906
|
+
if page is not None:
|
907
|
+
|
908
|
+
_query_params.append(('page', page))
|
909
|
+
|
910
|
+
if page_size is not None:
|
911
|
+
|
912
|
+
_query_params.append(('page_size', page_size))
|
913
|
+
|
914
|
+
# process the header parameters
|
915
|
+
# process the form parameters
|
916
|
+
# process the body parameter
|
917
|
+
|
918
|
+
|
919
|
+
# set the HTTP header `Accept`
|
920
|
+
if 'Accept' not in _header_params:
|
921
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
922
|
+
[
|
923
|
+
'application/json'
|
924
|
+
]
|
925
|
+
)
|
926
|
+
|
927
|
+
|
928
|
+
# authentication setting
|
929
|
+
_auth_settings: List[str] = [
|
930
|
+
'OAuth2AuthorizationCode'
|
931
|
+
]
|
932
|
+
|
933
|
+
return self.api_client.param_serialize(
|
934
|
+
method='GET',
|
935
|
+
resource_path='/api/v1/organization/users',
|
936
|
+
path_params=_path_params,
|
937
|
+
query_params=_query_params,
|
938
|
+
header_params=_header_params,
|
939
|
+
body=_body_params,
|
940
|
+
post_params=_form_params,
|
941
|
+
files=_files,
|
942
|
+
auth_settings=_auth_settings,
|
943
|
+
collection_formats=_collection_formats,
|
944
|
+
_host=_host,
|
945
|
+
_request_auth=_request_auth
|
946
|
+
)
|
947
|
+
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
@validate_call
|
952
|
+
def get_users_me(
|
953
|
+
self,
|
954
|
+
_request_timeout: Union[
|
955
|
+
None,
|
956
|
+
Annotated[StrictFloat, Field(gt=0)],
|
957
|
+
Tuple[
|
958
|
+
Annotated[StrictFloat, Field(gt=0)],
|
959
|
+
Annotated[StrictFloat, Field(gt=0)]
|
960
|
+
]
|
961
|
+
] = None,
|
962
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
963
|
+
_content_type: Optional[StrictStr] = None,
|
964
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
965
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
966
|
+
) -> User:
|
967
|
+
"""Get User Metadata
|
968
|
+
|
969
|
+
Returns Arthur user metadata.
|
970
|
+
|
971
|
+
:param _request_timeout: timeout setting for this request. If one
|
972
|
+
number provided, it will be total request
|
973
|
+
timeout. It can also be a pair (tuple) of
|
974
|
+
(connection, read) timeouts.
|
975
|
+
:type _request_timeout: int, tuple(int, int), optional
|
976
|
+
:param _request_auth: set to override the auth_settings for an a single
|
977
|
+
request; this effectively ignores the
|
978
|
+
authentication in the spec for a single request.
|
979
|
+
:type _request_auth: dict, optional
|
980
|
+
:param _content_type: force content-type for the request.
|
981
|
+
:type _content_type: str, Optional
|
982
|
+
:param _headers: set to override the headers for a single
|
983
|
+
request; this effectively ignores the headers
|
984
|
+
in the spec for a single request.
|
985
|
+
:type _headers: dict, optional
|
986
|
+
:param _host_index: set to override the host_index for a single
|
987
|
+
request; this effectively ignores the host_index
|
988
|
+
in the spec for a single request.
|
989
|
+
:type _host_index: int, optional
|
990
|
+
:return: Returns the result object.
|
991
|
+
""" # noqa: E501
|
992
|
+
|
993
|
+
_param = self._get_users_me_serialize(
|
994
|
+
_request_auth=_request_auth,
|
995
|
+
_content_type=_content_type,
|
996
|
+
_headers=_headers,
|
997
|
+
_host_index=_host_index
|
998
|
+
)
|
999
|
+
|
1000
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1001
|
+
'200': "User",
|
1002
|
+
'500': "InternalServerError",
|
1003
|
+
}
|
1004
|
+
response_data = self.api_client.call_api(
|
1005
|
+
*_param,
|
1006
|
+
_request_timeout=_request_timeout
|
1007
|
+
)
|
1008
|
+
response_data.read()
|
1009
|
+
return self.api_client.response_deserialize(
|
1010
|
+
response_data=response_data,
|
1011
|
+
response_types_map=_response_types_map,
|
1012
|
+
).data
|
1013
|
+
|
1014
|
+
|
1015
|
+
@validate_call
|
1016
|
+
def get_users_me_with_http_info(
|
1017
|
+
self,
|
1018
|
+
_request_timeout: Union[
|
1019
|
+
None,
|
1020
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1021
|
+
Tuple[
|
1022
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1023
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1024
|
+
]
|
1025
|
+
] = None,
|
1026
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1027
|
+
_content_type: Optional[StrictStr] = None,
|
1028
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1029
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1030
|
+
) -> ApiResponse[User]:
|
1031
|
+
"""Get User Metadata
|
1032
|
+
|
1033
|
+
Returns Arthur user metadata.
|
1034
|
+
|
1035
|
+
:param _request_timeout: timeout setting for this request. If one
|
1036
|
+
number provided, it will be total request
|
1037
|
+
timeout. It can also be a pair (tuple) of
|
1038
|
+
(connection, read) timeouts.
|
1039
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1040
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1041
|
+
request; this effectively ignores the
|
1042
|
+
authentication in the spec for a single request.
|
1043
|
+
:type _request_auth: dict, optional
|
1044
|
+
:param _content_type: force content-type for the request.
|
1045
|
+
:type _content_type: str, Optional
|
1046
|
+
:param _headers: set to override the headers for a single
|
1047
|
+
request; this effectively ignores the headers
|
1048
|
+
in the spec for a single request.
|
1049
|
+
:type _headers: dict, optional
|
1050
|
+
:param _host_index: set to override the host_index for a single
|
1051
|
+
request; this effectively ignores the host_index
|
1052
|
+
in the spec for a single request.
|
1053
|
+
:type _host_index: int, optional
|
1054
|
+
:return: Returns the result object.
|
1055
|
+
""" # noqa: E501
|
1056
|
+
|
1057
|
+
_param = self._get_users_me_serialize(
|
1058
|
+
_request_auth=_request_auth,
|
1059
|
+
_content_type=_content_type,
|
1060
|
+
_headers=_headers,
|
1061
|
+
_host_index=_host_index
|
1062
|
+
)
|
1063
|
+
|
1064
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1065
|
+
'200': "User",
|
1066
|
+
'500': "InternalServerError",
|
1067
|
+
}
|
1068
|
+
response_data = self.api_client.call_api(
|
1069
|
+
*_param,
|
1070
|
+
_request_timeout=_request_timeout
|
1071
|
+
)
|
1072
|
+
response_data.read()
|
1073
|
+
return self.api_client.response_deserialize(
|
1074
|
+
response_data=response_data,
|
1075
|
+
response_types_map=_response_types_map,
|
1076
|
+
)
|
1077
|
+
|
1078
|
+
|
1079
|
+
@validate_call
|
1080
|
+
def get_users_me_without_preload_content(
|
1081
|
+
self,
|
1082
|
+
_request_timeout: Union[
|
1083
|
+
None,
|
1084
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1085
|
+
Tuple[
|
1086
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1087
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1088
|
+
]
|
1089
|
+
] = None,
|
1090
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1091
|
+
_content_type: Optional[StrictStr] = None,
|
1092
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1093
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1094
|
+
) -> RESTResponseType:
|
1095
|
+
"""Get User Metadata
|
1096
|
+
|
1097
|
+
Returns Arthur user metadata.
|
1098
|
+
|
1099
|
+
:param _request_timeout: timeout setting for this request. If one
|
1100
|
+
number provided, it will be total request
|
1101
|
+
timeout. It can also be a pair (tuple) of
|
1102
|
+
(connection, read) timeouts.
|
1103
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1104
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1105
|
+
request; this effectively ignores the
|
1106
|
+
authentication in the spec for a single request.
|
1107
|
+
:type _request_auth: dict, optional
|
1108
|
+
:param _content_type: force content-type for the request.
|
1109
|
+
:type _content_type: str, Optional
|
1110
|
+
:param _headers: set to override the headers for a single
|
1111
|
+
request; this effectively ignores the headers
|
1112
|
+
in the spec for a single request.
|
1113
|
+
:type _headers: dict, optional
|
1114
|
+
:param _host_index: set to override the host_index for a single
|
1115
|
+
request; this effectively ignores the host_index
|
1116
|
+
in the spec for a single request.
|
1117
|
+
:type _host_index: int, optional
|
1118
|
+
:return: Returns the result object.
|
1119
|
+
""" # noqa: E501
|
1120
|
+
|
1121
|
+
_param = self._get_users_me_serialize(
|
1122
|
+
_request_auth=_request_auth,
|
1123
|
+
_content_type=_content_type,
|
1124
|
+
_headers=_headers,
|
1125
|
+
_host_index=_host_index
|
1126
|
+
)
|
1127
|
+
|
1128
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1129
|
+
'200': "User",
|
1130
|
+
'500': "InternalServerError",
|
1131
|
+
}
|
1132
|
+
response_data = self.api_client.call_api(
|
1133
|
+
*_param,
|
1134
|
+
_request_timeout=_request_timeout
|
1135
|
+
)
|
1136
|
+
return response_data.response
|
1137
|
+
|
1138
|
+
|
1139
|
+
def _get_users_me_serialize(
|
1140
|
+
self,
|
1141
|
+
_request_auth,
|
1142
|
+
_content_type,
|
1143
|
+
_headers,
|
1144
|
+
_host_index,
|
1145
|
+
) -> RequestSerialized:
|
1146
|
+
|
1147
|
+
_host = None
|
1148
|
+
|
1149
|
+
_collection_formats: Dict[str, str] = {
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
_path_params: Dict[str, str] = {}
|
1153
|
+
_query_params: List[Tuple[str, str]] = []
|
1154
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1155
|
+
_form_params: List[Tuple[str, str]] = []
|
1156
|
+
_files: Dict[
|
1157
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1158
|
+
] = {}
|
1159
|
+
_body_params: Optional[bytes] = None
|
1160
|
+
|
1161
|
+
# process the path parameters
|
1162
|
+
# process the query parameters
|
1163
|
+
# process the header parameters
|
1164
|
+
# process the form parameters
|
1165
|
+
# process the body parameter
|
1166
|
+
|
1167
|
+
|
1168
|
+
# set the HTTP header `Accept`
|
1169
|
+
if 'Accept' not in _header_params:
|
1170
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1171
|
+
[
|
1172
|
+
'application/json'
|
1173
|
+
]
|
1174
|
+
)
|
1175
|
+
|
1176
|
+
|
1177
|
+
# authentication setting
|
1178
|
+
_auth_settings: List[str] = [
|
1179
|
+
'OAuth2AuthorizationCode'
|
1180
|
+
]
|
1181
|
+
|
1182
|
+
return self.api_client.param_serialize(
|
1183
|
+
method='GET',
|
1184
|
+
resource_path='/api/v1/users/me',
|
1185
|
+
path_params=_path_params,
|
1186
|
+
query_params=_query_params,
|
1187
|
+
header_params=_header_params,
|
1188
|
+
body=_body_params,
|
1189
|
+
post_params=_form_params,
|
1190
|
+
files=_files,
|
1191
|
+
auth_settings=_auth_settings,
|
1192
|
+
collection_formats=_collection_formats,
|
1193
|
+
_host=_host,
|
1194
|
+
_request_auth=_request_auth
|
1195
|
+
)
|
1196
|
+
|
1197
|
+
|
1198
|
+
|
1199
|
+
|
1200
|
+
@validate_call
|
1201
|
+
def patch_service_account_user(
|
1202
|
+
self,
|
1203
|
+
user_id: StrictStr,
|
1204
|
+
patch_service_account_user: PatchServiceAccountUser,
|
1205
|
+
_request_timeout: Union[
|
1206
|
+
None,
|
1207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1208
|
+
Tuple[
|
1209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1210
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1211
|
+
]
|
1212
|
+
] = None,
|
1213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1214
|
+
_content_type: Optional[StrictStr] = None,
|
1215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1217
|
+
) -> User:
|
1218
|
+
"""Patch Service Account User.
|
1219
|
+
|
1220
|
+
Requires user_update permission.
|
1221
|
+
|
1222
|
+
:param user_id: (required)
|
1223
|
+
:type user_id: str
|
1224
|
+
:param patch_service_account_user: (required)
|
1225
|
+
:type patch_service_account_user: PatchServiceAccountUser
|
1226
|
+
:param _request_timeout: timeout setting for this request. If one
|
1227
|
+
number provided, it will be total request
|
1228
|
+
timeout. It can also be a pair (tuple) of
|
1229
|
+
(connection, read) timeouts.
|
1230
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1231
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1232
|
+
request; this effectively ignores the
|
1233
|
+
authentication in the spec for a single request.
|
1234
|
+
:type _request_auth: dict, optional
|
1235
|
+
:param _content_type: force content-type for the request.
|
1236
|
+
:type _content_type: str, Optional
|
1237
|
+
:param _headers: set to override the headers for a single
|
1238
|
+
request; this effectively ignores the headers
|
1239
|
+
in the spec for a single request.
|
1240
|
+
:type _headers: dict, optional
|
1241
|
+
:param _host_index: set to override the host_index for a single
|
1242
|
+
request; this effectively ignores the host_index
|
1243
|
+
in the spec for a single request.
|
1244
|
+
:type _host_index: int, optional
|
1245
|
+
:return: Returns the result object.
|
1246
|
+
""" # noqa: E501
|
1247
|
+
|
1248
|
+
_param = self._patch_service_account_user_serialize(
|
1249
|
+
user_id=user_id,
|
1250
|
+
patch_service_account_user=patch_service_account_user,
|
1251
|
+
_request_auth=_request_auth,
|
1252
|
+
_content_type=_content_type,
|
1253
|
+
_headers=_headers,
|
1254
|
+
_host_index=_host_index
|
1255
|
+
)
|
1256
|
+
|
1257
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1258
|
+
'200': "User",
|
1259
|
+
'500': "InternalServerError",
|
1260
|
+
'404': "NotFoundError",
|
1261
|
+
'400': "BadRequestError",
|
1262
|
+
'422': "HTTPValidationError",
|
1263
|
+
}
|
1264
|
+
response_data = self.api_client.call_api(
|
1265
|
+
*_param,
|
1266
|
+
_request_timeout=_request_timeout
|
1267
|
+
)
|
1268
|
+
response_data.read()
|
1269
|
+
return self.api_client.response_deserialize(
|
1270
|
+
response_data=response_data,
|
1271
|
+
response_types_map=_response_types_map,
|
1272
|
+
).data
|
1273
|
+
|
1274
|
+
|
1275
|
+
@validate_call
|
1276
|
+
def patch_service_account_user_with_http_info(
|
1277
|
+
self,
|
1278
|
+
user_id: StrictStr,
|
1279
|
+
patch_service_account_user: PatchServiceAccountUser,
|
1280
|
+
_request_timeout: Union[
|
1281
|
+
None,
|
1282
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1283
|
+
Tuple[
|
1284
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1285
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1286
|
+
]
|
1287
|
+
] = None,
|
1288
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1289
|
+
_content_type: Optional[StrictStr] = None,
|
1290
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1291
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1292
|
+
) -> ApiResponse[User]:
|
1293
|
+
"""Patch Service Account User.
|
1294
|
+
|
1295
|
+
Requires user_update permission.
|
1296
|
+
|
1297
|
+
:param user_id: (required)
|
1298
|
+
:type user_id: str
|
1299
|
+
:param patch_service_account_user: (required)
|
1300
|
+
:type patch_service_account_user: PatchServiceAccountUser
|
1301
|
+
:param _request_timeout: timeout setting for this request. If one
|
1302
|
+
number provided, it will be total request
|
1303
|
+
timeout. It can also be a pair (tuple) of
|
1304
|
+
(connection, read) timeouts.
|
1305
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1306
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1307
|
+
request; this effectively ignores the
|
1308
|
+
authentication in the spec for a single request.
|
1309
|
+
:type _request_auth: dict, optional
|
1310
|
+
:param _content_type: force content-type for the request.
|
1311
|
+
:type _content_type: str, Optional
|
1312
|
+
:param _headers: set to override the headers for a single
|
1313
|
+
request; this effectively ignores the headers
|
1314
|
+
in the spec for a single request.
|
1315
|
+
:type _headers: dict, optional
|
1316
|
+
:param _host_index: set to override the host_index for a single
|
1317
|
+
request; this effectively ignores the host_index
|
1318
|
+
in the spec for a single request.
|
1319
|
+
:type _host_index: int, optional
|
1320
|
+
:return: Returns the result object.
|
1321
|
+
""" # noqa: E501
|
1322
|
+
|
1323
|
+
_param = self._patch_service_account_user_serialize(
|
1324
|
+
user_id=user_id,
|
1325
|
+
patch_service_account_user=patch_service_account_user,
|
1326
|
+
_request_auth=_request_auth,
|
1327
|
+
_content_type=_content_type,
|
1328
|
+
_headers=_headers,
|
1329
|
+
_host_index=_host_index
|
1330
|
+
)
|
1331
|
+
|
1332
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1333
|
+
'200': "User",
|
1334
|
+
'500': "InternalServerError",
|
1335
|
+
'404': "NotFoundError",
|
1336
|
+
'400': "BadRequestError",
|
1337
|
+
'422': "HTTPValidationError",
|
1338
|
+
}
|
1339
|
+
response_data = self.api_client.call_api(
|
1340
|
+
*_param,
|
1341
|
+
_request_timeout=_request_timeout
|
1342
|
+
)
|
1343
|
+
response_data.read()
|
1344
|
+
return self.api_client.response_deserialize(
|
1345
|
+
response_data=response_data,
|
1346
|
+
response_types_map=_response_types_map,
|
1347
|
+
)
|
1348
|
+
|
1349
|
+
|
1350
|
+
@validate_call
|
1351
|
+
def patch_service_account_user_without_preload_content(
|
1352
|
+
self,
|
1353
|
+
user_id: StrictStr,
|
1354
|
+
patch_service_account_user: PatchServiceAccountUser,
|
1355
|
+
_request_timeout: Union[
|
1356
|
+
None,
|
1357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1358
|
+
Tuple[
|
1359
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1360
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1361
|
+
]
|
1362
|
+
] = None,
|
1363
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1364
|
+
_content_type: Optional[StrictStr] = None,
|
1365
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1366
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1367
|
+
) -> RESTResponseType:
|
1368
|
+
"""Patch Service Account User.
|
1369
|
+
|
1370
|
+
Requires user_update permission.
|
1371
|
+
|
1372
|
+
:param user_id: (required)
|
1373
|
+
:type user_id: str
|
1374
|
+
:param patch_service_account_user: (required)
|
1375
|
+
:type patch_service_account_user: PatchServiceAccountUser
|
1376
|
+
:param _request_timeout: timeout setting for this request. If one
|
1377
|
+
number provided, it will be total request
|
1378
|
+
timeout. It can also be a pair (tuple) of
|
1379
|
+
(connection, read) timeouts.
|
1380
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1381
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1382
|
+
request; this effectively ignores the
|
1383
|
+
authentication in the spec for a single request.
|
1384
|
+
:type _request_auth: dict, optional
|
1385
|
+
:param _content_type: force content-type for the request.
|
1386
|
+
:type _content_type: str, Optional
|
1387
|
+
:param _headers: set to override the headers for a single
|
1388
|
+
request; this effectively ignores the headers
|
1389
|
+
in the spec for a single request.
|
1390
|
+
:type _headers: dict, optional
|
1391
|
+
:param _host_index: set to override the host_index for a single
|
1392
|
+
request; this effectively ignores the host_index
|
1393
|
+
in the spec for a single request.
|
1394
|
+
:type _host_index: int, optional
|
1395
|
+
:return: Returns the result object.
|
1396
|
+
""" # noqa: E501
|
1397
|
+
|
1398
|
+
_param = self._patch_service_account_user_serialize(
|
1399
|
+
user_id=user_id,
|
1400
|
+
patch_service_account_user=patch_service_account_user,
|
1401
|
+
_request_auth=_request_auth,
|
1402
|
+
_content_type=_content_type,
|
1403
|
+
_headers=_headers,
|
1404
|
+
_host_index=_host_index
|
1405
|
+
)
|
1406
|
+
|
1407
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1408
|
+
'200': "User",
|
1409
|
+
'500': "InternalServerError",
|
1410
|
+
'404': "NotFoundError",
|
1411
|
+
'400': "BadRequestError",
|
1412
|
+
'422': "HTTPValidationError",
|
1413
|
+
}
|
1414
|
+
response_data = self.api_client.call_api(
|
1415
|
+
*_param,
|
1416
|
+
_request_timeout=_request_timeout
|
1417
|
+
)
|
1418
|
+
return response_data.response
|
1419
|
+
|
1420
|
+
|
1421
|
+
def _patch_service_account_user_serialize(
|
1422
|
+
self,
|
1423
|
+
user_id,
|
1424
|
+
patch_service_account_user,
|
1425
|
+
_request_auth,
|
1426
|
+
_content_type,
|
1427
|
+
_headers,
|
1428
|
+
_host_index,
|
1429
|
+
) -> RequestSerialized:
|
1430
|
+
|
1431
|
+
_host = None
|
1432
|
+
|
1433
|
+
_collection_formats: Dict[str, str] = {
|
1434
|
+
}
|
1435
|
+
|
1436
|
+
_path_params: Dict[str, str] = {}
|
1437
|
+
_query_params: List[Tuple[str, str]] = []
|
1438
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1439
|
+
_form_params: List[Tuple[str, str]] = []
|
1440
|
+
_files: Dict[
|
1441
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1442
|
+
] = {}
|
1443
|
+
_body_params: Optional[bytes] = None
|
1444
|
+
|
1445
|
+
# process the path parameters
|
1446
|
+
if user_id is not None:
|
1447
|
+
_path_params['user_id'] = user_id
|
1448
|
+
# process the query parameters
|
1449
|
+
# process the header parameters
|
1450
|
+
# process the form parameters
|
1451
|
+
# process the body parameter
|
1452
|
+
if patch_service_account_user is not None:
|
1453
|
+
_body_params = patch_service_account_user
|
1454
|
+
|
1455
|
+
|
1456
|
+
# set the HTTP header `Accept`
|
1457
|
+
if 'Accept' not in _header_params:
|
1458
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1459
|
+
[
|
1460
|
+
'application/json'
|
1461
|
+
]
|
1462
|
+
)
|
1463
|
+
|
1464
|
+
# set the HTTP header `Content-Type`
|
1465
|
+
if _content_type:
|
1466
|
+
_header_params['Content-Type'] = _content_type
|
1467
|
+
else:
|
1468
|
+
_default_content_type = (
|
1469
|
+
self.api_client.select_header_content_type(
|
1470
|
+
[
|
1471
|
+
'application/json'
|
1472
|
+
]
|
1473
|
+
)
|
1474
|
+
)
|
1475
|
+
if _default_content_type is not None:
|
1476
|
+
_header_params['Content-Type'] = _default_content_type
|
1477
|
+
|
1478
|
+
# authentication setting
|
1479
|
+
_auth_settings: List[str] = [
|
1480
|
+
'OAuth2AuthorizationCode'
|
1481
|
+
]
|
1482
|
+
|
1483
|
+
return self.api_client.param_serialize(
|
1484
|
+
method='PATCH',
|
1485
|
+
resource_path='/api/v1/users/{user_id}/service_account',
|
1486
|
+
path_params=_path_params,
|
1487
|
+
query_params=_query_params,
|
1488
|
+
header_params=_header_params,
|
1489
|
+
body=_body_params,
|
1490
|
+
post_params=_form_params,
|
1491
|
+
files=_files,
|
1492
|
+
auth_settings=_auth_settings,
|
1493
|
+
collection_formats=_collection_formats,
|
1494
|
+
_host=_host,
|
1495
|
+
_request_auth=_request_auth
|
1496
|
+
)
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
@validate_call
|
1502
|
+
def patch_user(
|
1503
|
+
self,
|
1504
|
+
user_id: StrictStr,
|
1505
|
+
patch_user: PatchUser,
|
1506
|
+
_request_timeout: Union[
|
1507
|
+
None,
|
1508
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1509
|
+
Tuple[
|
1510
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1511
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1512
|
+
]
|
1513
|
+
] = None,
|
1514
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1515
|
+
_content_type: Optional[StrictStr] = None,
|
1516
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1517
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1518
|
+
) -> User:
|
1519
|
+
"""Patch User.
|
1520
|
+
|
1521
|
+
Requires user_update permission.
|
1522
|
+
|
1523
|
+
:param user_id: (required)
|
1524
|
+
:type user_id: str
|
1525
|
+
:param patch_user: (required)
|
1526
|
+
:type patch_user: PatchUser
|
1527
|
+
:param _request_timeout: timeout setting for this request. If one
|
1528
|
+
number provided, it will be total request
|
1529
|
+
timeout. It can also be a pair (tuple) of
|
1530
|
+
(connection, read) timeouts.
|
1531
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1532
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1533
|
+
request; this effectively ignores the
|
1534
|
+
authentication in the spec for a single request.
|
1535
|
+
:type _request_auth: dict, optional
|
1536
|
+
:param _content_type: force content-type for the request.
|
1537
|
+
:type _content_type: str, Optional
|
1538
|
+
:param _headers: set to override the headers for a single
|
1539
|
+
request; this effectively ignores the headers
|
1540
|
+
in the spec for a single request.
|
1541
|
+
:type _headers: dict, optional
|
1542
|
+
:param _host_index: set to override the host_index for a single
|
1543
|
+
request; this effectively ignores the host_index
|
1544
|
+
in the spec for a single request.
|
1545
|
+
:type _host_index: int, optional
|
1546
|
+
:return: Returns the result object.
|
1547
|
+
""" # noqa: E501
|
1548
|
+
|
1549
|
+
_param = self._patch_user_serialize(
|
1550
|
+
user_id=user_id,
|
1551
|
+
patch_user=patch_user,
|
1552
|
+
_request_auth=_request_auth,
|
1553
|
+
_content_type=_content_type,
|
1554
|
+
_headers=_headers,
|
1555
|
+
_host_index=_host_index
|
1556
|
+
)
|
1557
|
+
|
1558
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1559
|
+
'200': "User",
|
1560
|
+
'500': "InternalServerError",
|
1561
|
+
'404': "NotFoundError",
|
1562
|
+
'400': "BadRequestError",
|
1563
|
+
'422': "HTTPValidationError",
|
1564
|
+
}
|
1565
|
+
response_data = self.api_client.call_api(
|
1566
|
+
*_param,
|
1567
|
+
_request_timeout=_request_timeout
|
1568
|
+
)
|
1569
|
+
response_data.read()
|
1570
|
+
return self.api_client.response_deserialize(
|
1571
|
+
response_data=response_data,
|
1572
|
+
response_types_map=_response_types_map,
|
1573
|
+
).data
|
1574
|
+
|
1575
|
+
|
1576
|
+
@validate_call
|
1577
|
+
def patch_user_with_http_info(
|
1578
|
+
self,
|
1579
|
+
user_id: StrictStr,
|
1580
|
+
patch_user: PatchUser,
|
1581
|
+
_request_timeout: Union[
|
1582
|
+
None,
|
1583
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1584
|
+
Tuple[
|
1585
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1586
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1587
|
+
]
|
1588
|
+
] = None,
|
1589
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1590
|
+
_content_type: Optional[StrictStr] = None,
|
1591
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1592
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1593
|
+
) -> ApiResponse[User]:
|
1594
|
+
"""Patch User.
|
1595
|
+
|
1596
|
+
Requires user_update permission.
|
1597
|
+
|
1598
|
+
:param user_id: (required)
|
1599
|
+
:type user_id: str
|
1600
|
+
:param patch_user: (required)
|
1601
|
+
:type patch_user: PatchUser
|
1602
|
+
:param _request_timeout: timeout setting for this request. If one
|
1603
|
+
number provided, it will be total request
|
1604
|
+
timeout. It can also be a pair (tuple) of
|
1605
|
+
(connection, read) timeouts.
|
1606
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1607
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1608
|
+
request; this effectively ignores the
|
1609
|
+
authentication in the spec for a single request.
|
1610
|
+
:type _request_auth: dict, optional
|
1611
|
+
:param _content_type: force content-type for the request.
|
1612
|
+
:type _content_type: str, Optional
|
1613
|
+
:param _headers: set to override the headers for a single
|
1614
|
+
request; this effectively ignores the headers
|
1615
|
+
in the spec for a single request.
|
1616
|
+
:type _headers: dict, optional
|
1617
|
+
:param _host_index: set to override the host_index for a single
|
1618
|
+
request; this effectively ignores the host_index
|
1619
|
+
in the spec for a single request.
|
1620
|
+
:type _host_index: int, optional
|
1621
|
+
:return: Returns the result object.
|
1622
|
+
""" # noqa: E501
|
1623
|
+
|
1624
|
+
_param = self._patch_user_serialize(
|
1625
|
+
user_id=user_id,
|
1626
|
+
patch_user=patch_user,
|
1627
|
+
_request_auth=_request_auth,
|
1628
|
+
_content_type=_content_type,
|
1629
|
+
_headers=_headers,
|
1630
|
+
_host_index=_host_index
|
1631
|
+
)
|
1632
|
+
|
1633
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1634
|
+
'200': "User",
|
1635
|
+
'500': "InternalServerError",
|
1636
|
+
'404': "NotFoundError",
|
1637
|
+
'400': "BadRequestError",
|
1638
|
+
'422': "HTTPValidationError",
|
1639
|
+
}
|
1640
|
+
response_data = self.api_client.call_api(
|
1641
|
+
*_param,
|
1642
|
+
_request_timeout=_request_timeout
|
1643
|
+
)
|
1644
|
+
response_data.read()
|
1645
|
+
return self.api_client.response_deserialize(
|
1646
|
+
response_data=response_data,
|
1647
|
+
response_types_map=_response_types_map,
|
1648
|
+
)
|
1649
|
+
|
1650
|
+
|
1651
|
+
@validate_call
|
1652
|
+
def patch_user_without_preload_content(
|
1653
|
+
self,
|
1654
|
+
user_id: StrictStr,
|
1655
|
+
patch_user: PatchUser,
|
1656
|
+
_request_timeout: Union[
|
1657
|
+
None,
|
1658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1659
|
+
Tuple[
|
1660
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1661
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1662
|
+
]
|
1663
|
+
] = None,
|
1664
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1665
|
+
_content_type: Optional[StrictStr] = None,
|
1666
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1667
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1668
|
+
) -> RESTResponseType:
|
1669
|
+
"""Patch User.
|
1670
|
+
|
1671
|
+
Requires user_update permission.
|
1672
|
+
|
1673
|
+
:param user_id: (required)
|
1674
|
+
:type user_id: str
|
1675
|
+
:param patch_user: (required)
|
1676
|
+
:type patch_user: PatchUser
|
1677
|
+
:param _request_timeout: timeout setting for this request. If one
|
1678
|
+
number provided, it will be total request
|
1679
|
+
timeout. It can also be a pair (tuple) of
|
1680
|
+
(connection, read) timeouts.
|
1681
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1682
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1683
|
+
request; this effectively ignores the
|
1684
|
+
authentication in the spec for a single request.
|
1685
|
+
:type _request_auth: dict, optional
|
1686
|
+
:param _content_type: force content-type for the request.
|
1687
|
+
:type _content_type: str, Optional
|
1688
|
+
:param _headers: set to override the headers for a single
|
1689
|
+
request; this effectively ignores the headers
|
1690
|
+
in the spec for a single request.
|
1691
|
+
:type _headers: dict, optional
|
1692
|
+
:param _host_index: set to override the host_index for a single
|
1693
|
+
request; this effectively ignores the host_index
|
1694
|
+
in the spec for a single request.
|
1695
|
+
:type _host_index: int, optional
|
1696
|
+
:return: Returns the result object.
|
1697
|
+
""" # noqa: E501
|
1698
|
+
|
1699
|
+
_param = self._patch_user_serialize(
|
1700
|
+
user_id=user_id,
|
1701
|
+
patch_user=patch_user,
|
1702
|
+
_request_auth=_request_auth,
|
1703
|
+
_content_type=_content_type,
|
1704
|
+
_headers=_headers,
|
1705
|
+
_host_index=_host_index
|
1706
|
+
)
|
1707
|
+
|
1708
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1709
|
+
'200': "User",
|
1710
|
+
'500': "InternalServerError",
|
1711
|
+
'404': "NotFoundError",
|
1712
|
+
'400': "BadRequestError",
|
1713
|
+
'422': "HTTPValidationError",
|
1714
|
+
}
|
1715
|
+
response_data = self.api_client.call_api(
|
1716
|
+
*_param,
|
1717
|
+
_request_timeout=_request_timeout
|
1718
|
+
)
|
1719
|
+
return response_data.response
|
1720
|
+
|
1721
|
+
|
1722
|
+
def _patch_user_serialize(
|
1723
|
+
self,
|
1724
|
+
user_id,
|
1725
|
+
patch_user,
|
1726
|
+
_request_auth,
|
1727
|
+
_content_type,
|
1728
|
+
_headers,
|
1729
|
+
_host_index,
|
1730
|
+
) -> RequestSerialized:
|
1731
|
+
|
1732
|
+
_host = None
|
1733
|
+
|
1734
|
+
_collection_formats: Dict[str, str] = {
|
1735
|
+
}
|
1736
|
+
|
1737
|
+
_path_params: Dict[str, str] = {}
|
1738
|
+
_query_params: List[Tuple[str, str]] = []
|
1739
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1740
|
+
_form_params: List[Tuple[str, str]] = []
|
1741
|
+
_files: Dict[
|
1742
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1743
|
+
] = {}
|
1744
|
+
_body_params: Optional[bytes] = None
|
1745
|
+
|
1746
|
+
# process the path parameters
|
1747
|
+
if user_id is not None:
|
1748
|
+
_path_params['user_id'] = user_id
|
1749
|
+
# process the query parameters
|
1750
|
+
# process the header parameters
|
1751
|
+
# process the form parameters
|
1752
|
+
# process the body parameter
|
1753
|
+
if patch_user is not None:
|
1754
|
+
_body_params = patch_user
|
1755
|
+
|
1756
|
+
|
1757
|
+
# set the HTTP header `Accept`
|
1758
|
+
if 'Accept' not in _header_params:
|
1759
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1760
|
+
[
|
1761
|
+
'application/json'
|
1762
|
+
]
|
1763
|
+
)
|
1764
|
+
|
1765
|
+
# set the HTTP header `Content-Type`
|
1766
|
+
if _content_type:
|
1767
|
+
_header_params['Content-Type'] = _content_type
|
1768
|
+
else:
|
1769
|
+
_default_content_type = (
|
1770
|
+
self.api_client.select_header_content_type(
|
1771
|
+
[
|
1772
|
+
'application/json'
|
1773
|
+
]
|
1774
|
+
)
|
1775
|
+
)
|
1776
|
+
if _default_content_type is not None:
|
1777
|
+
_header_params['Content-Type'] = _default_content_type
|
1778
|
+
|
1779
|
+
# authentication setting
|
1780
|
+
_auth_settings: List[str] = [
|
1781
|
+
'OAuth2AuthorizationCode'
|
1782
|
+
]
|
1783
|
+
|
1784
|
+
return self.api_client.param_serialize(
|
1785
|
+
method='PATCH',
|
1786
|
+
resource_path='/api/v1/users/{user_id}',
|
1787
|
+
path_params=_path_params,
|
1788
|
+
query_params=_query_params,
|
1789
|
+
header_params=_header_params,
|
1790
|
+
body=_body_params,
|
1791
|
+
post_params=_form_params,
|
1792
|
+
files=_files,
|
1793
|
+
auth_settings=_auth_settings,
|
1794
|
+
collection_formats=_collection_formats,
|
1795
|
+
_host=_host,
|
1796
|
+
_request_auth=_request_auth
|
1797
|
+
)
|
1798
|
+
|
1799
|
+
|
1800
|
+
|
1801
|
+
|
1802
|
+
@validate_call
|
1803
|
+
def post_organization_service_account(
|
1804
|
+
self,
|
1805
|
+
post_service_account: PostServiceAccount,
|
1806
|
+
_request_timeout: Union[
|
1807
|
+
None,
|
1808
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1809
|
+
Tuple[
|
1810
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1811
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1812
|
+
]
|
1813
|
+
] = None,
|
1814
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1815
|
+
_content_type: Optional[StrictStr] = None,
|
1816
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1817
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1818
|
+
) -> UserServiceAccountCredentials:
|
1819
|
+
"""Create Service Account
|
1820
|
+
|
1821
|
+
Requires organization_create_service_account permission.
|
1822
|
+
|
1823
|
+
:param post_service_account: (required)
|
1824
|
+
:type post_service_account: PostServiceAccount
|
1825
|
+
:param _request_timeout: timeout setting for this request. If one
|
1826
|
+
number provided, it will be total request
|
1827
|
+
timeout. It can also be a pair (tuple) of
|
1828
|
+
(connection, read) timeouts.
|
1829
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1830
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1831
|
+
request; this effectively ignores the
|
1832
|
+
authentication in the spec for a single request.
|
1833
|
+
:type _request_auth: dict, optional
|
1834
|
+
:param _content_type: force content-type for the request.
|
1835
|
+
:type _content_type: str, Optional
|
1836
|
+
:param _headers: set to override the headers for a single
|
1837
|
+
request; this effectively ignores the headers
|
1838
|
+
in the spec for a single request.
|
1839
|
+
:type _headers: dict, optional
|
1840
|
+
:param _host_index: set to override the host_index for a single
|
1841
|
+
request; this effectively ignores the host_index
|
1842
|
+
in the spec for a single request.
|
1843
|
+
:type _host_index: int, optional
|
1844
|
+
:return: Returns the result object.
|
1845
|
+
""" # noqa: E501
|
1846
|
+
|
1847
|
+
_param = self._post_organization_service_account_serialize(
|
1848
|
+
post_service_account=post_service_account,
|
1849
|
+
_request_auth=_request_auth,
|
1850
|
+
_content_type=_content_type,
|
1851
|
+
_headers=_headers,
|
1852
|
+
_host_index=_host_index
|
1853
|
+
)
|
1854
|
+
|
1855
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1856
|
+
'200': "UserServiceAccountCredentials",
|
1857
|
+
'500': "InternalServerError",
|
1858
|
+
'400': "BadRequestError",
|
1859
|
+
'404': "NotFoundError",
|
1860
|
+
'422': "HTTPValidationError",
|
1861
|
+
}
|
1862
|
+
response_data = self.api_client.call_api(
|
1863
|
+
*_param,
|
1864
|
+
_request_timeout=_request_timeout
|
1865
|
+
)
|
1866
|
+
response_data.read()
|
1867
|
+
return self.api_client.response_deserialize(
|
1868
|
+
response_data=response_data,
|
1869
|
+
response_types_map=_response_types_map,
|
1870
|
+
).data
|
1871
|
+
|
1872
|
+
|
1873
|
+
@validate_call
|
1874
|
+
def post_organization_service_account_with_http_info(
|
1875
|
+
self,
|
1876
|
+
post_service_account: PostServiceAccount,
|
1877
|
+
_request_timeout: Union[
|
1878
|
+
None,
|
1879
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1880
|
+
Tuple[
|
1881
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1882
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1883
|
+
]
|
1884
|
+
] = None,
|
1885
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1886
|
+
_content_type: Optional[StrictStr] = None,
|
1887
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1888
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1889
|
+
) -> ApiResponse[UserServiceAccountCredentials]:
|
1890
|
+
"""Create Service Account
|
1891
|
+
|
1892
|
+
Requires organization_create_service_account permission.
|
1893
|
+
|
1894
|
+
:param post_service_account: (required)
|
1895
|
+
:type post_service_account: PostServiceAccount
|
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._post_organization_service_account_serialize(
|
1919
|
+
post_service_account=post_service_account,
|
1920
|
+
_request_auth=_request_auth,
|
1921
|
+
_content_type=_content_type,
|
1922
|
+
_headers=_headers,
|
1923
|
+
_host_index=_host_index
|
1924
|
+
)
|
1925
|
+
|
1926
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1927
|
+
'200': "UserServiceAccountCredentials",
|
1928
|
+
'500': "InternalServerError",
|
1929
|
+
'400': "BadRequestError",
|
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
|
+
)
|
1942
|
+
|
1943
|
+
|
1944
|
+
@validate_call
|
1945
|
+
def post_organization_service_account_without_preload_content(
|
1946
|
+
self,
|
1947
|
+
post_service_account: PostServiceAccount,
|
1948
|
+
_request_timeout: Union[
|
1949
|
+
None,
|
1950
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1951
|
+
Tuple[
|
1952
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1953
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1954
|
+
]
|
1955
|
+
] = None,
|
1956
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1957
|
+
_content_type: Optional[StrictStr] = None,
|
1958
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1959
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1960
|
+
) -> RESTResponseType:
|
1961
|
+
"""Create Service Account
|
1962
|
+
|
1963
|
+
Requires organization_create_service_account permission.
|
1964
|
+
|
1965
|
+
:param post_service_account: (required)
|
1966
|
+
:type post_service_account: PostServiceAccount
|
1967
|
+
:param _request_timeout: timeout setting for this request. If one
|
1968
|
+
number provided, it will be total request
|
1969
|
+
timeout. It can also be a pair (tuple) of
|
1970
|
+
(connection, read) timeouts.
|
1971
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1972
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1973
|
+
request; this effectively ignores the
|
1974
|
+
authentication in the spec for a single request.
|
1975
|
+
:type _request_auth: dict, optional
|
1976
|
+
:param _content_type: force content-type for the request.
|
1977
|
+
:type _content_type: str, Optional
|
1978
|
+
:param _headers: set to override the headers for a single
|
1979
|
+
request; this effectively ignores the headers
|
1980
|
+
in the spec for a single request.
|
1981
|
+
:type _headers: dict, optional
|
1982
|
+
:param _host_index: set to override the host_index for a single
|
1983
|
+
request; this effectively ignores the host_index
|
1984
|
+
in the spec for a single request.
|
1985
|
+
:type _host_index: int, optional
|
1986
|
+
:return: Returns the result object.
|
1987
|
+
""" # noqa: E501
|
1988
|
+
|
1989
|
+
_param = self._post_organization_service_account_serialize(
|
1990
|
+
post_service_account=post_service_account,
|
1991
|
+
_request_auth=_request_auth,
|
1992
|
+
_content_type=_content_type,
|
1993
|
+
_headers=_headers,
|
1994
|
+
_host_index=_host_index
|
1995
|
+
)
|
1996
|
+
|
1997
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1998
|
+
'200': "UserServiceAccountCredentials",
|
1999
|
+
'500': "InternalServerError",
|
2000
|
+
'400': "BadRequestError",
|
2001
|
+
'404': "NotFoundError",
|
2002
|
+
'422': "HTTPValidationError",
|
2003
|
+
}
|
2004
|
+
response_data = self.api_client.call_api(
|
2005
|
+
*_param,
|
2006
|
+
_request_timeout=_request_timeout
|
2007
|
+
)
|
2008
|
+
return response_data.response
|
2009
|
+
|
2010
|
+
|
2011
|
+
def _post_organization_service_account_serialize(
|
2012
|
+
self,
|
2013
|
+
post_service_account,
|
2014
|
+
_request_auth,
|
2015
|
+
_content_type,
|
2016
|
+
_headers,
|
2017
|
+
_host_index,
|
2018
|
+
) -> RequestSerialized:
|
2019
|
+
|
2020
|
+
_host = None
|
2021
|
+
|
2022
|
+
_collection_formats: Dict[str, str] = {
|
2023
|
+
}
|
2024
|
+
|
2025
|
+
_path_params: Dict[str, str] = {}
|
2026
|
+
_query_params: List[Tuple[str, str]] = []
|
2027
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2028
|
+
_form_params: List[Tuple[str, str]] = []
|
2029
|
+
_files: Dict[
|
2030
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2031
|
+
] = {}
|
2032
|
+
_body_params: Optional[bytes] = None
|
2033
|
+
|
2034
|
+
# process the path parameters
|
2035
|
+
# process the query parameters
|
2036
|
+
# process the header parameters
|
2037
|
+
# process the form parameters
|
2038
|
+
# process the body parameter
|
2039
|
+
if post_service_account is not None:
|
2040
|
+
_body_params = post_service_account
|
2041
|
+
|
2042
|
+
|
2043
|
+
# set the HTTP header `Accept`
|
2044
|
+
if 'Accept' not in _header_params:
|
2045
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2046
|
+
[
|
2047
|
+
'application/json'
|
2048
|
+
]
|
2049
|
+
)
|
2050
|
+
|
2051
|
+
# set the HTTP header `Content-Type`
|
2052
|
+
if _content_type:
|
2053
|
+
_header_params['Content-Type'] = _content_type
|
2054
|
+
else:
|
2055
|
+
_default_content_type = (
|
2056
|
+
self.api_client.select_header_content_type(
|
2057
|
+
[
|
2058
|
+
'application/json'
|
2059
|
+
]
|
2060
|
+
)
|
2061
|
+
)
|
2062
|
+
if _default_content_type is not None:
|
2063
|
+
_header_params['Content-Type'] = _default_content_type
|
2064
|
+
|
2065
|
+
# authentication setting
|
2066
|
+
_auth_settings: List[str] = [
|
2067
|
+
'OAuth2AuthorizationCode'
|
2068
|
+
]
|
2069
|
+
|
2070
|
+
return self.api_client.param_serialize(
|
2071
|
+
method='POST',
|
2072
|
+
resource_path='/api/v1/organization/service_accounts',
|
2073
|
+
path_params=_path_params,
|
2074
|
+
query_params=_query_params,
|
2075
|
+
header_params=_header_params,
|
2076
|
+
body=_body_params,
|
2077
|
+
post_params=_form_params,
|
2078
|
+
files=_files,
|
2079
|
+
auth_settings=_auth_settings,
|
2080
|
+
collection_formats=_collection_formats,
|
2081
|
+
_host=_host,
|
2082
|
+
_request_auth=_request_auth
|
2083
|
+
)
|
2084
|
+
|
2085
|
+
|
2086
|
+
|
2087
|
+
|
2088
|
+
@validate_call
|
2089
|
+
def post_organization_user(
|
2090
|
+
self,
|
2091
|
+
post_end_user: PostEndUser,
|
2092
|
+
_request_timeout: Union[
|
2093
|
+
None,
|
2094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2095
|
+
Tuple[
|
2096
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2097
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2098
|
+
]
|
2099
|
+
] = None,
|
2100
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2101
|
+
_content_type: Optional[StrictStr] = None,
|
2102
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2103
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2104
|
+
) -> User:
|
2105
|
+
"""Create User
|
2106
|
+
|
2107
|
+
Requires organization_create_user permission.
|
2108
|
+
|
2109
|
+
:param post_end_user: (required)
|
2110
|
+
:type post_end_user: PostEndUser
|
2111
|
+
:param _request_timeout: timeout setting for this request. If one
|
2112
|
+
number provided, it will be total request
|
2113
|
+
timeout. It can also be a pair (tuple) of
|
2114
|
+
(connection, read) timeouts.
|
2115
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2116
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2117
|
+
request; this effectively ignores the
|
2118
|
+
authentication in the spec for a single request.
|
2119
|
+
:type _request_auth: dict, optional
|
2120
|
+
:param _content_type: force content-type for the request.
|
2121
|
+
:type _content_type: str, Optional
|
2122
|
+
:param _headers: set to override the headers for a single
|
2123
|
+
request; this effectively ignores the headers
|
2124
|
+
in the spec for a single request.
|
2125
|
+
:type _headers: dict, optional
|
2126
|
+
:param _host_index: set to override the host_index for a single
|
2127
|
+
request; this effectively ignores the host_index
|
2128
|
+
in the spec for a single request.
|
2129
|
+
:type _host_index: int, optional
|
2130
|
+
:return: Returns the result object.
|
2131
|
+
""" # noqa: E501
|
2132
|
+
|
2133
|
+
_param = self._post_organization_user_serialize(
|
2134
|
+
post_end_user=post_end_user,
|
2135
|
+
_request_auth=_request_auth,
|
2136
|
+
_content_type=_content_type,
|
2137
|
+
_headers=_headers,
|
2138
|
+
_host_index=_host_index
|
2139
|
+
)
|
2140
|
+
|
2141
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2142
|
+
'200': "User",
|
2143
|
+
'500': "InternalServerError",
|
2144
|
+
'400': "BadRequestError",
|
2145
|
+
'409': "ConflictError",
|
2146
|
+
'404': "NotFoundError",
|
2147
|
+
'422': "HTTPValidationError",
|
2148
|
+
}
|
2149
|
+
response_data = self.api_client.call_api(
|
2150
|
+
*_param,
|
2151
|
+
_request_timeout=_request_timeout
|
2152
|
+
)
|
2153
|
+
response_data.read()
|
2154
|
+
return self.api_client.response_deserialize(
|
2155
|
+
response_data=response_data,
|
2156
|
+
response_types_map=_response_types_map,
|
2157
|
+
).data
|
2158
|
+
|
2159
|
+
|
2160
|
+
@validate_call
|
2161
|
+
def post_organization_user_with_http_info(
|
2162
|
+
self,
|
2163
|
+
post_end_user: PostEndUser,
|
2164
|
+
_request_timeout: Union[
|
2165
|
+
None,
|
2166
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2167
|
+
Tuple[
|
2168
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2169
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2170
|
+
]
|
2171
|
+
] = None,
|
2172
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2173
|
+
_content_type: Optional[StrictStr] = None,
|
2174
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2175
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2176
|
+
) -> ApiResponse[User]:
|
2177
|
+
"""Create User
|
2178
|
+
|
2179
|
+
Requires organization_create_user permission.
|
2180
|
+
|
2181
|
+
:param post_end_user: (required)
|
2182
|
+
:type post_end_user: PostEndUser
|
2183
|
+
:param _request_timeout: timeout setting for this request. If one
|
2184
|
+
number provided, it will be total request
|
2185
|
+
timeout. It can also be a pair (tuple) of
|
2186
|
+
(connection, read) timeouts.
|
2187
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2188
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2189
|
+
request; this effectively ignores the
|
2190
|
+
authentication in the spec for a single request.
|
2191
|
+
:type _request_auth: dict, optional
|
2192
|
+
:param _content_type: force content-type for the request.
|
2193
|
+
:type _content_type: str, Optional
|
2194
|
+
:param _headers: set to override the headers for a single
|
2195
|
+
request; this effectively ignores the headers
|
2196
|
+
in the spec for a single request.
|
2197
|
+
:type _headers: dict, optional
|
2198
|
+
:param _host_index: set to override the host_index for a single
|
2199
|
+
request; this effectively ignores the host_index
|
2200
|
+
in the spec for a single request.
|
2201
|
+
:type _host_index: int, optional
|
2202
|
+
:return: Returns the result object.
|
2203
|
+
""" # noqa: E501
|
2204
|
+
|
2205
|
+
_param = self._post_organization_user_serialize(
|
2206
|
+
post_end_user=post_end_user,
|
2207
|
+
_request_auth=_request_auth,
|
2208
|
+
_content_type=_content_type,
|
2209
|
+
_headers=_headers,
|
2210
|
+
_host_index=_host_index
|
2211
|
+
)
|
2212
|
+
|
2213
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2214
|
+
'200': "User",
|
2215
|
+
'500': "InternalServerError",
|
2216
|
+
'400': "BadRequestError",
|
2217
|
+
'409': "ConflictError",
|
2218
|
+
'404': "NotFoundError",
|
2219
|
+
'422': "HTTPValidationError",
|
2220
|
+
}
|
2221
|
+
response_data = self.api_client.call_api(
|
2222
|
+
*_param,
|
2223
|
+
_request_timeout=_request_timeout
|
2224
|
+
)
|
2225
|
+
response_data.read()
|
2226
|
+
return self.api_client.response_deserialize(
|
2227
|
+
response_data=response_data,
|
2228
|
+
response_types_map=_response_types_map,
|
2229
|
+
)
|
2230
|
+
|
2231
|
+
|
2232
|
+
@validate_call
|
2233
|
+
def post_organization_user_without_preload_content(
|
2234
|
+
self,
|
2235
|
+
post_end_user: PostEndUser,
|
2236
|
+
_request_timeout: Union[
|
2237
|
+
None,
|
2238
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2239
|
+
Tuple[
|
2240
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2241
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2242
|
+
]
|
2243
|
+
] = None,
|
2244
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2245
|
+
_content_type: Optional[StrictStr] = None,
|
2246
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2247
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2248
|
+
) -> RESTResponseType:
|
2249
|
+
"""Create User
|
2250
|
+
|
2251
|
+
Requires organization_create_user permission.
|
2252
|
+
|
2253
|
+
:param post_end_user: (required)
|
2254
|
+
:type post_end_user: PostEndUser
|
2255
|
+
:param _request_timeout: timeout setting for this request. If one
|
2256
|
+
number provided, it will be total request
|
2257
|
+
timeout. It can also be a pair (tuple) of
|
2258
|
+
(connection, read) timeouts.
|
2259
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2260
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2261
|
+
request; this effectively ignores the
|
2262
|
+
authentication in the spec for a single request.
|
2263
|
+
:type _request_auth: dict, optional
|
2264
|
+
:param _content_type: force content-type for the request.
|
2265
|
+
:type _content_type: str, Optional
|
2266
|
+
:param _headers: set to override the headers for a single
|
2267
|
+
request; this effectively ignores the headers
|
2268
|
+
in the spec for a single request.
|
2269
|
+
:type _headers: dict, optional
|
2270
|
+
:param _host_index: set to override the host_index for a single
|
2271
|
+
request; this effectively ignores the host_index
|
2272
|
+
in the spec for a single request.
|
2273
|
+
:type _host_index: int, optional
|
2274
|
+
:return: Returns the result object.
|
2275
|
+
""" # noqa: E501
|
2276
|
+
|
2277
|
+
_param = self._post_organization_user_serialize(
|
2278
|
+
post_end_user=post_end_user,
|
2279
|
+
_request_auth=_request_auth,
|
2280
|
+
_content_type=_content_type,
|
2281
|
+
_headers=_headers,
|
2282
|
+
_host_index=_host_index
|
2283
|
+
)
|
2284
|
+
|
2285
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2286
|
+
'200': "User",
|
2287
|
+
'500': "InternalServerError",
|
2288
|
+
'400': "BadRequestError",
|
2289
|
+
'409': "ConflictError",
|
2290
|
+
'404': "NotFoundError",
|
2291
|
+
'422': "HTTPValidationError",
|
2292
|
+
}
|
2293
|
+
response_data = self.api_client.call_api(
|
2294
|
+
*_param,
|
2295
|
+
_request_timeout=_request_timeout
|
2296
|
+
)
|
2297
|
+
return response_data.response
|
2298
|
+
|
2299
|
+
|
2300
|
+
def _post_organization_user_serialize(
|
2301
|
+
self,
|
2302
|
+
post_end_user,
|
2303
|
+
_request_auth,
|
2304
|
+
_content_type,
|
2305
|
+
_headers,
|
2306
|
+
_host_index,
|
2307
|
+
) -> RequestSerialized:
|
2308
|
+
|
2309
|
+
_host = None
|
2310
|
+
|
2311
|
+
_collection_formats: Dict[str, str] = {
|
2312
|
+
}
|
2313
|
+
|
2314
|
+
_path_params: Dict[str, str] = {}
|
2315
|
+
_query_params: List[Tuple[str, str]] = []
|
2316
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2317
|
+
_form_params: List[Tuple[str, str]] = []
|
2318
|
+
_files: Dict[
|
2319
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2320
|
+
] = {}
|
2321
|
+
_body_params: Optional[bytes] = None
|
2322
|
+
|
2323
|
+
# process the path parameters
|
2324
|
+
# process the query parameters
|
2325
|
+
# process the header parameters
|
2326
|
+
# process the form parameters
|
2327
|
+
# process the body parameter
|
2328
|
+
if post_end_user is not None:
|
2329
|
+
_body_params = post_end_user
|
2330
|
+
|
2331
|
+
|
2332
|
+
# set the HTTP header `Accept`
|
2333
|
+
if 'Accept' not in _header_params:
|
2334
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2335
|
+
[
|
2336
|
+
'application/json'
|
2337
|
+
]
|
2338
|
+
)
|
2339
|
+
|
2340
|
+
# set the HTTP header `Content-Type`
|
2341
|
+
if _content_type:
|
2342
|
+
_header_params['Content-Type'] = _content_type
|
2343
|
+
else:
|
2344
|
+
_default_content_type = (
|
2345
|
+
self.api_client.select_header_content_type(
|
2346
|
+
[
|
2347
|
+
'application/json'
|
2348
|
+
]
|
2349
|
+
)
|
2350
|
+
)
|
2351
|
+
if _default_content_type is not None:
|
2352
|
+
_header_params['Content-Type'] = _default_content_type
|
2353
|
+
|
2354
|
+
# authentication setting
|
2355
|
+
_auth_settings: List[str] = [
|
2356
|
+
'OAuth2AuthorizationCode'
|
2357
|
+
]
|
2358
|
+
|
2359
|
+
return self.api_client.param_serialize(
|
2360
|
+
method='POST',
|
2361
|
+
resource_path='/api/v1/organization/users',
|
2362
|
+
path_params=_path_params,
|
2363
|
+
query_params=_query_params,
|
2364
|
+
header_params=_header_params,
|
2365
|
+
body=_body_params,
|
2366
|
+
post_params=_form_params,
|
2367
|
+
files=_files,
|
2368
|
+
auth_settings=_auth_settings,
|
2369
|
+
collection_formats=_collection_formats,
|
2370
|
+
_host=_host,
|
2371
|
+
_request_auth=_request_auth
|
2372
|
+
)
|
2373
|
+
|
2374
|
+
|
2375
|
+
|
2376
|
+
|
2377
|
+
@validate_call
|
2378
|
+
def post_organization_user_invite(
|
2379
|
+
self,
|
2380
|
+
invite_new_user: InviteNewUser,
|
2381
|
+
_request_timeout: Union[
|
2382
|
+
None,
|
2383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2384
|
+
Tuple[
|
2385
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2386
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2387
|
+
]
|
2388
|
+
] = None,
|
2389
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2390
|
+
_content_type: Optional[StrictStr] = None,
|
2391
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2392
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2393
|
+
) -> object:
|
2394
|
+
"""Create User Via Email Invite
|
2395
|
+
|
2396
|
+
Requires organization_invite_user permission. Also requires underlying permissions for managing user permissions: group_create_group_membership, organization_create_role_binding, workspace_create_role_binding, or project_create_role_binding depending on whether the user is being added to a group or granted a role bound to an organization, workspace, or project.
|
2397
|
+
|
2398
|
+
:param invite_new_user: (required)
|
2399
|
+
:type invite_new_user: InviteNewUser
|
2400
|
+
:param _request_timeout: timeout setting for this request. If one
|
2401
|
+
number provided, it will be total request
|
2402
|
+
timeout. It can also be a pair (tuple) of
|
2403
|
+
(connection, read) timeouts.
|
2404
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2405
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2406
|
+
request; this effectively ignores the
|
2407
|
+
authentication in the spec for a single request.
|
2408
|
+
:type _request_auth: dict, optional
|
2409
|
+
:param _content_type: force content-type for the request.
|
2410
|
+
:type _content_type: str, Optional
|
2411
|
+
:param _headers: set to override the headers for a single
|
2412
|
+
request; this effectively ignores the headers
|
2413
|
+
in the spec for a single request.
|
2414
|
+
:type _headers: dict, optional
|
2415
|
+
:param _host_index: set to override the host_index for a single
|
2416
|
+
request; this effectively ignores the host_index
|
2417
|
+
in the spec for a single request.
|
2418
|
+
:type _host_index: int, optional
|
2419
|
+
:return: Returns the result object.
|
2420
|
+
""" # noqa: E501
|
2421
|
+
|
2422
|
+
_param = self._post_organization_user_invite_serialize(
|
2423
|
+
invite_new_user=invite_new_user,
|
2424
|
+
_request_auth=_request_auth,
|
2425
|
+
_content_type=_content_type,
|
2426
|
+
_headers=_headers,
|
2427
|
+
_host_index=_host_index
|
2428
|
+
)
|
2429
|
+
|
2430
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2431
|
+
'201': "object",
|
2432
|
+
'500': "InternalServerError",
|
2433
|
+
'400': "BadRequestError",
|
2434
|
+
'404': "NotFoundError",
|
2435
|
+
'422': "HTTPValidationError",
|
2436
|
+
}
|
2437
|
+
response_data = self.api_client.call_api(
|
2438
|
+
*_param,
|
2439
|
+
_request_timeout=_request_timeout
|
2440
|
+
)
|
2441
|
+
response_data.read()
|
2442
|
+
return self.api_client.response_deserialize(
|
2443
|
+
response_data=response_data,
|
2444
|
+
response_types_map=_response_types_map,
|
2445
|
+
).data
|
2446
|
+
|
2447
|
+
|
2448
|
+
@validate_call
|
2449
|
+
def post_organization_user_invite_with_http_info(
|
2450
|
+
self,
|
2451
|
+
invite_new_user: InviteNewUser,
|
2452
|
+
_request_timeout: Union[
|
2453
|
+
None,
|
2454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2455
|
+
Tuple[
|
2456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2457
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2458
|
+
]
|
2459
|
+
] = None,
|
2460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2461
|
+
_content_type: Optional[StrictStr] = None,
|
2462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2464
|
+
) -> ApiResponse[object]:
|
2465
|
+
"""Create User Via Email Invite
|
2466
|
+
|
2467
|
+
Requires organization_invite_user permission. Also requires underlying permissions for managing user permissions: group_create_group_membership, organization_create_role_binding, workspace_create_role_binding, or project_create_role_binding depending on whether the user is being added to a group or granted a role bound to an organization, workspace, or project.
|
2468
|
+
|
2469
|
+
:param invite_new_user: (required)
|
2470
|
+
:type invite_new_user: InviteNewUser
|
2471
|
+
:param _request_timeout: timeout setting for this request. If one
|
2472
|
+
number provided, it will be total request
|
2473
|
+
timeout. It can also be a pair (tuple) of
|
2474
|
+
(connection, read) timeouts.
|
2475
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2476
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2477
|
+
request; this effectively ignores the
|
2478
|
+
authentication in the spec for a single request.
|
2479
|
+
:type _request_auth: dict, optional
|
2480
|
+
:param _content_type: force content-type for the request.
|
2481
|
+
:type _content_type: str, Optional
|
2482
|
+
:param _headers: set to override the headers for a single
|
2483
|
+
request; this effectively ignores the headers
|
2484
|
+
in the spec for a single request.
|
2485
|
+
:type _headers: dict, optional
|
2486
|
+
:param _host_index: set to override the host_index for a single
|
2487
|
+
request; this effectively ignores the host_index
|
2488
|
+
in the spec for a single request.
|
2489
|
+
:type _host_index: int, optional
|
2490
|
+
:return: Returns the result object.
|
2491
|
+
""" # noqa: E501
|
2492
|
+
|
2493
|
+
_param = self._post_organization_user_invite_serialize(
|
2494
|
+
invite_new_user=invite_new_user,
|
2495
|
+
_request_auth=_request_auth,
|
2496
|
+
_content_type=_content_type,
|
2497
|
+
_headers=_headers,
|
2498
|
+
_host_index=_host_index
|
2499
|
+
)
|
2500
|
+
|
2501
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2502
|
+
'201': "object",
|
2503
|
+
'500': "InternalServerError",
|
2504
|
+
'400': "BadRequestError",
|
2505
|
+
'404': "NotFoundError",
|
2506
|
+
'422': "HTTPValidationError",
|
2507
|
+
}
|
2508
|
+
response_data = self.api_client.call_api(
|
2509
|
+
*_param,
|
2510
|
+
_request_timeout=_request_timeout
|
2511
|
+
)
|
2512
|
+
response_data.read()
|
2513
|
+
return self.api_client.response_deserialize(
|
2514
|
+
response_data=response_data,
|
2515
|
+
response_types_map=_response_types_map,
|
2516
|
+
)
|
2517
|
+
|
2518
|
+
|
2519
|
+
@validate_call
|
2520
|
+
def post_organization_user_invite_without_preload_content(
|
2521
|
+
self,
|
2522
|
+
invite_new_user: InviteNewUser,
|
2523
|
+
_request_timeout: Union[
|
2524
|
+
None,
|
2525
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2526
|
+
Tuple[
|
2527
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2528
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2529
|
+
]
|
2530
|
+
] = None,
|
2531
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2532
|
+
_content_type: Optional[StrictStr] = None,
|
2533
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2534
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2535
|
+
) -> RESTResponseType:
|
2536
|
+
"""Create User Via Email Invite
|
2537
|
+
|
2538
|
+
Requires organization_invite_user permission. Also requires underlying permissions for managing user permissions: group_create_group_membership, organization_create_role_binding, workspace_create_role_binding, or project_create_role_binding depending on whether the user is being added to a group or granted a role bound to an organization, workspace, or project.
|
2539
|
+
|
2540
|
+
:param invite_new_user: (required)
|
2541
|
+
:type invite_new_user: InviteNewUser
|
2542
|
+
:param _request_timeout: timeout setting for this request. If one
|
2543
|
+
number provided, it will be total request
|
2544
|
+
timeout. It can also be a pair (tuple) of
|
2545
|
+
(connection, read) timeouts.
|
2546
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2547
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2548
|
+
request; this effectively ignores the
|
2549
|
+
authentication in the spec for a single request.
|
2550
|
+
:type _request_auth: dict, optional
|
2551
|
+
:param _content_type: force content-type for the request.
|
2552
|
+
:type _content_type: str, Optional
|
2553
|
+
:param _headers: set to override the headers for a single
|
2554
|
+
request; this effectively ignores the headers
|
2555
|
+
in the spec for a single request.
|
2556
|
+
:type _headers: dict, optional
|
2557
|
+
:param _host_index: set to override the host_index for a single
|
2558
|
+
request; this effectively ignores the host_index
|
2559
|
+
in the spec for a single request.
|
2560
|
+
:type _host_index: int, optional
|
2561
|
+
:return: Returns the result object.
|
2562
|
+
""" # noqa: E501
|
2563
|
+
|
2564
|
+
_param = self._post_organization_user_invite_serialize(
|
2565
|
+
invite_new_user=invite_new_user,
|
2566
|
+
_request_auth=_request_auth,
|
2567
|
+
_content_type=_content_type,
|
2568
|
+
_headers=_headers,
|
2569
|
+
_host_index=_host_index
|
2570
|
+
)
|
2571
|
+
|
2572
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2573
|
+
'201': "object",
|
2574
|
+
'500': "InternalServerError",
|
2575
|
+
'400': "BadRequestError",
|
2576
|
+
'404': "NotFoundError",
|
2577
|
+
'422': "HTTPValidationError",
|
2578
|
+
}
|
2579
|
+
response_data = self.api_client.call_api(
|
2580
|
+
*_param,
|
2581
|
+
_request_timeout=_request_timeout
|
2582
|
+
)
|
2583
|
+
return response_data.response
|
2584
|
+
|
2585
|
+
|
2586
|
+
def _post_organization_user_invite_serialize(
|
2587
|
+
self,
|
2588
|
+
invite_new_user,
|
2589
|
+
_request_auth,
|
2590
|
+
_content_type,
|
2591
|
+
_headers,
|
2592
|
+
_host_index,
|
2593
|
+
) -> RequestSerialized:
|
2594
|
+
|
2595
|
+
_host = None
|
2596
|
+
|
2597
|
+
_collection_formats: Dict[str, str] = {
|
2598
|
+
}
|
2599
|
+
|
2600
|
+
_path_params: Dict[str, str] = {}
|
2601
|
+
_query_params: List[Tuple[str, str]] = []
|
2602
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2603
|
+
_form_params: List[Tuple[str, str]] = []
|
2604
|
+
_files: Dict[
|
2605
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2606
|
+
] = {}
|
2607
|
+
_body_params: Optional[bytes] = None
|
2608
|
+
|
2609
|
+
# process the path parameters
|
2610
|
+
# process the query parameters
|
2611
|
+
# process the header parameters
|
2612
|
+
# process the form parameters
|
2613
|
+
# process the body parameter
|
2614
|
+
if invite_new_user is not None:
|
2615
|
+
_body_params = invite_new_user
|
2616
|
+
|
2617
|
+
|
2618
|
+
# set the HTTP header `Accept`
|
2619
|
+
if 'Accept' not in _header_params:
|
2620
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2621
|
+
[
|
2622
|
+
'application/json'
|
2623
|
+
]
|
2624
|
+
)
|
2625
|
+
|
2626
|
+
# set the HTTP header `Content-Type`
|
2627
|
+
if _content_type:
|
2628
|
+
_header_params['Content-Type'] = _content_type
|
2629
|
+
else:
|
2630
|
+
_default_content_type = (
|
2631
|
+
self.api_client.select_header_content_type(
|
2632
|
+
[
|
2633
|
+
'application/json'
|
2634
|
+
]
|
2635
|
+
)
|
2636
|
+
)
|
2637
|
+
if _default_content_type is not None:
|
2638
|
+
_header_params['Content-Type'] = _default_content_type
|
2639
|
+
|
2640
|
+
# authentication setting
|
2641
|
+
_auth_settings: List[str] = [
|
2642
|
+
'OAuth2AuthorizationCode'
|
2643
|
+
]
|
2644
|
+
|
2645
|
+
return self.api_client.param_serialize(
|
2646
|
+
method='POST',
|
2647
|
+
resource_path='/api/v1/organization/users/invite-user',
|
2648
|
+
path_params=_path_params,
|
2649
|
+
query_params=_query_params,
|
2650
|
+
header_params=_header_params,
|
2651
|
+
body=_body_params,
|
2652
|
+
post_params=_form_params,
|
2653
|
+
files=_files,
|
2654
|
+
auth_settings=_auth_settings,
|
2655
|
+
collection_formats=_collection_formats,
|
2656
|
+
_host=_host,
|
2657
|
+
_request_auth=_request_auth
|
2658
|
+
)
|
2659
|
+
|
2660
|
+
|
2661
|
+
|
2662
|
+
|
2663
|
+
@validate_call
|
2664
|
+
def post_user_creds(
|
2665
|
+
self,
|
2666
|
+
user_id: StrictStr,
|
2667
|
+
_request_timeout: Union[
|
2668
|
+
None,
|
2669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2670
|
+
Tuple[
|
2671
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2672
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2673
|
+
]
|
2674
|
+
] = None,
|
2675
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2676
|
+
_content_type: Optional[StrictStr] = None,
|
2677
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2678
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2679
|
+
) -> SensitiveUser:
|
2680
|
+
"""Regenerate User Credentials.
|
2681
|
+
|
2682
|
+
Requires user_regenerate_creds permission.
|
2683
|
+
|
2684
|
+
:param user_id: (required)
|
2685
|
+
:type user_id: str
|
2686
|
+
:param _request_timeout: timeout setting for this request. If one
|
2687
|
+
number provided, it will be total request
|
2688
|
+
timeout. It can also be a pair (tuple) of
|
2689
|
+
(connection, read) timeouts.
|
2690
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2691
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2692
|
+
request; this effectively ignores the
|
2693
|
+
authentication in the spec for a single request.
|
2694
|
+
:type _request_auth: dict, optional
|
2695
|
+
:param _content_type: force content-type for the request.
|
2696
|
+
:type _content_type: str, Optional
|
2697
|
+
:param _headers: set to override the headers for a single
|
2698
|
+
request; this effectively ignores the headers
|
2699
|
+
in the spec for a single request.
|
2700
|
+
:type _headers: dict, optional
|
2701
|
+
:param _host_index: set to override the host_index for a single
|
2702
|
+
request; this effectively ignores the host_index
|
2703
|
+
in the spec for a single request.
|
2704
|
+
:type _host_index: int, optional
|
2705
|
+
:return: Returns the result object.
|
2706
|
+
""" # noqa: E501
|
2707
|
+
|
2708
|
+
_param = self._post_user_creds_serialize(
|
2709
|
+
user_id=user_id,
|
2710
|
+
_request_auth=_request_auth,
|
2711
|
+
_content_type=_content_type,
|
2712
|
+
_headers=_headers,
|
2713
|
+
_host_index=_host_index
|
2714
|
+
)
|
2715
|
+
|
2716
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2717
|
+
'200': "SensitiveUser",
|
2718
|
+
'500': "InternalServerError",
|
2719
|
+
'404': "NotFoundError",
|
2720
|
+
'422': "HTTPValidationError",
|
2721
|
+
}
|
2722
|
+
response_data = self.api_client.call_api(
|
2723
|
+
*_param,
|
2724
|
+
_request_timeout=_request_timeout
|
2725
|
+
)
|
2726
|
+
response_data.read()
|
2727
|
+
return self.api_client.response_deserialize(
|
2728
|
+
response_data=response_data,
|
2729
|
+
response_types_map=_response_types_map,
|
2730
|
+
).data
|
2731
|
+
|
2732
|
+
|
2733
|
+
@validate_call
|
2734
|
+
def post_user_creds_with_http_info(
|
2735
|
+
self,
|
2736
|
+
user_id: StrictStr,
|
2737
|
+
_request_timeout: Union[
|
2738
|
+
None,
|
2739
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2740
|
+
Tuple[
|
2741
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2742
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2743
|
+
]
|
2744
|
+
] = None,
|
2745
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2746
|
+
_content_type: Optional[StrictStr] = None,
|
2747
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2748
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2749
|
+
) -> ApiResponse[SensitiveUser]:
|
2750
|
+
"""Regenerate User Credentials.
|
2751
|
+
|
2752
|
+
Requires user_regenerate_creds permission.
|
2753
|
+
|
2754
|
+
:param user_id: (required)
|
2755
|
+
:type user_id: str
|
2756
|
+
:param _request_timeout: timeout setting for this request. If one
|
2757
|
+
number provided, it will be total request
|
2758
|
+
timeout. It can also be a pair (tuple) of
|
2759
|
+
(connection, read) timeouts.
|
2760
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2761
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2762
|
+
request; this effectively ignores the
|
2763
|
+
authentication in the spec for a single request.
|
2764
|
+
:type _request_auth: dict, optional
|
2765
|
+
:param _content_type: force content-type for the request.
|
2766
|
+
:type _content_type: str, Optional
|
2767
|
+
:param _headers: set to override the headers for a single
|
2768
|
+
request; this effectively ignores the headers
|
2769
|
+
in the spec for a single request.
|
2770
|
+
:type _headers: dict, optional
|
2771
|
+
:param _host_index: set to override the host_index for a single
|
2772
|
+
request; this effectively ignores the host_index
|
2773
|
+
in the spec for a single request.
|
2774
|
+
:type _host_index: int, optional
|
2775
|
+
:return: Returns the result object.
|
2776
|
+
""" # noqa: E501
|
2777
|
+
|
2778
|
+
_param = self._post_user_creds_serialize(
|
2779
|
+
user_id=user_id,
|
2780
|
+
_request_auth=_request_auth,
|
2781
|
+
_content_type=_content_type,
|
2782
|
+
_headers=_headers,
|
2783
|
+
_host_index=_host_index
|
2784
|
+
)
|
2785
|
+
|
2786
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2787
|
+
'200': "SensitiveUser",
|
2788
|
+
'500': "InternalServerError",
|
2789
|
+
'404': "NotFoundError",
|
2790
|
+
'422': "HTTPValidationError",
|
2791
|
+
}
|
2792
|
+
response_data = self.api_client.call_api(
|
2793
|
+
*_param,
|
2794
|
+
_request_timeout=_request_timeout
|
2795
|
+
)
|
2796
|
+
response_data.read()
|
2797
|
+
return self.api_client.response_deserialize(
|
2798
|
+
response_data=response_data,
|
2799
|
+
response_types_map=_response_types_map,
|
2800
|
+
)
|
2801
|
+
|
2802
|
+
|
2803
|
+
@validate_call
|
2804
|
+
def post_user_creds_without_preload_content(
|
2805
|
+
self,
|
2806
|
+
user_id: StrictStr,
|
2807
|
+
_request_timeout: Union[
|
2808
|
+
None,
|
2809
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2810
|
+
Tuple[
|
2811
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2812
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2813
|
+
]
|
2814
|
+
] = None,
|
2815
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2816
|
+
_content_type: Optional[StrictStr] = None,
|
2817
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2818
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2819
|
+
) -> RESTResponseType:
|
2820
|
+
"""Regenerate User Credentials.
|
2821
|
+
|
2822
|
+
Requires user_regenerate_creds permission.
|
2823
|
+
|
2824
|
+
:param user_id: (required)
|
2825
|
+
:type user_id: str
|
2826
|
+
:param _request_timeout: timeout setting for this request. If one
|
2827
|
+
number provided, it will be total request
|
2828
|
+
timeout. It can also be a pair (tuple) of
|
2829
|
+
(connection, read) timeouts.
|
2830
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2831
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2832
|
+
request; this effectively ignores the
|
2833
|
+
authentication in the spec for a single request.
|
2834
|
+
:type _request_auth: dict, optional
|
2835
|
+
:param _content_type: force content-type for the request.
|
2836
|
+
:type _content_type: str, Optional
|
2837
|
+
:param _headers: set to override the headers for a single
|
2838
|
+
request; this effectively ignores the headers
|
2839
|
+
in the spec for a single request.
|
2840
|
+
:type _headers: dict, optional
|
2841
|
+
:param _host_index: set to override the host_index for a single
|
2842
|
+
request; this effectively ignores the host_index
|
2843
|
+
in the spec for a single request.
|
2844
|
+
:type _host_index: int, optional
|
2845
|
+
:return: Returns the result object.
|
2846
|
+
""" # noqa: E501
|
2847
|
+
|
2848
|
+
_param = self._post_user_creds_serialize(
|
2849
|
+
user_id=user_id,
|
2850
|
+
_request_auth=_request_auth,
|
2851
|
+
_content_type=_content_type,
|
2852
|
+
_headers=_headers,
|
2853
|
+
_host_index=_host_index
|
2854
|
+
)
|
2855
|
+
|
2856
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2857
|
+
'200': "SensitiveUser",
|
2858
|
+
'500': "InternalServerError",
|
2859
|
+
'404': "NotFoundError",
|
2860
|
+
'422': "HTTPValidationError",
|
2861
|
+
}
|
2862
|
+
response_data = self.api_client.call_api(
|
2863
|
+
*_param,
|
2864
|
+
_request_timeout=_request_timeout
|
2865
|
+
)
|
2866
|
+
return response_data.response
|
2867
|
+
|
2868
|
+
|
2869
|
+
def _post_user_creds_serialize(
|
2870
|
+
self,
|
2871
|
+
user_id,
|
2872
|
+
_request_auth,
|
2873
|
+
_content_type,
|
2874
|
+
_headers,
|
2875
|
+
_host_index,
|
2876
|
+
) -> RequestSerialized:
|
2877
|
+
|
2878
|
+
_host = None
|
2879
|
+
|
2880
|
+
_collection_formats: Dict[str, str] = {
|
2881
|
+
}
|
2882
|
+
|
2883
|
+
_path_params: Dict[str, str] = {}
|
2884
|
+
_query_params: List[Tuple[str, str]] = []
|
2885
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2886
|
+
_form_params: List[Tuple[str, str]] = []
|
2887
|
+
_files: Dict[
|
2888
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2889
|
+
] = {}
|
2890
|
+
_body_params: Optional[bytes] = None
|
2891
|
+
|
2892
|
+
# process the path parameters
|
2893
|
+
if user_id is not None:
|
2894
|
+
_path_params['user_id'] = user_id
|
2895
|
+
# process the query parameters
|
2896
|
+
# process the header parameters
|
2897
|
+
# process the form parameters
|
2898
|
+
# process the body parameter
|
2899
|
+
|
2900
|
+
|
2901
|
+
# set the HTTP header `Accept`
|
2902
|
+
if 'Accept' not in _header_params:
|
2903
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2904
|
+
[
|
2905
|
+
'application/json'
|
2906
|
+
]
|
2907
|
+
)
|
2908
|
+
|
2909
|
+
|
2910
|
+
# authentication setting
|
2911
|
+
_auth_settings: List[str] = [
|
2912
|
+
'OAuth2AuthorizationCode'
|
2913
|
+
]
|
2914
|
+
|
2915
|
+
return self.api_client.param_serialize(
|
2916
|
+
method='POST',
|
2917
|
+
resource_path='/api/v1/users/{user_id}/credentials',
|
2918
|
+
path_params=_path_params,
|
2919
|
+
query_params=_query_params,
|
2920
|
+
header_params=_header_params,
|
2921
|
+
body=_body_params,
|
2922
|
+
post_params=_form_params,
|
2923
|
+
files=_files,
|
2924
|
+
auth_settings=_auth_settings,
|
2925
|
+
collection_formats=_collection_formats,
|
2926
|
+
_host=_host,
|
2927
|
+
_request_auth=_request_auth
|
2928
|
+
)
|
2929
|
+
|
2930
|
+
|