DockerAuth¶
- class baseten.client.managementapi.DockerAuth(*, registry, auth_method, gcp_service_account_json_docker_auth=None, aws_iam_docker_auth=None, aws_oidc_docker_auth=None, gcp_oidc_docker_auth=None, registry_secret_docker_auth=None)¶
Bases:
BaseModel- Parameters:
registry (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Registry', description='Registry to authenticate with')])
auth_method (Annotated[DockerAuthType, FieldInfo(annotation=NoneType, required=True, description='Method to authenticate with the registry', examples=['GCP_SERVICE_ACCOUNT_JSON', 'AWS_IAM', 'AWS_OIDC', 'GCP_OIDC', 'REGISTRY_SECRET'])])
gcp_service_account_json_docker_auth (Annotated[GcpServiceAccountJsonDockerAuth | None, FieldInfo(annotation=NoneType, required=True, description='GCP service account details for the registry')])
aws_iam_docker_auth (Annotated[AwsIamDockerAuth | None, FieldInfo(annotation=NoneType, required=True, description='AWS details for the registry')])
aws_oidc_docker_auth (Annotated[AwsOidcDockerAuth | None, FieldInfo(annotation=NoneType, required=True, description='AWS OIDC details for the registry')])
gcp_oidc_docker_auth (Annotated[GcpOidcDockerAuth | None, FieldInfo(annotation=NoneType, required=True, description='GCP OIDC details for the registry')])
registry_secret_docker_auth (Annotated[RegistrySecretDockerAuth | None, FieldInfo(annotation=NoneType, required=True, description='Required when auth_method is REGISTRY_SECRET. Supports any Docker registry (Docker Hub, GHCR, NGC, etc.) via username:password credentials stored as a Baseten secret.')])
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].