GARSourceConfig#
- pydantic model nublado.config.images.GARSourceConfig#
Configuration for a Google Artifact Registry source.
This is identical to the underlying API model except that camel-case aliases are enabled and unknown attributes sre forbidden, making it suitable for use in parsing configuration files.
- Parameters:
data (
Any)
Show JSON schema
{ "title": "GARSourceConfig", "description": "Configuration for a Google Artifact Registry source.\n\nThis is identical to the underlying API model except that camel-case\naliases are enabled and unknown attributes sre forbidden, making it\nsuitable for use in parsing configuration files.", "type": "object", "properties": { "type": { "const": "google", "title": "Type of image source", "type": "string" }, "location": { "description": "This is the same as the hostname of the registry but with the -docker.pkg.dev suffix removed", "examples": [ "us-central1" ], "title": "Region or multiregion of registry", "type": "string" }, "projectId": { "description": "Google Cloud Platform project ID of the registry", "examples": [ "ceres-lighthouse-6ab4" ], "title": "GCP project ID", "type": "string" }, "repository": { "description": "Google Artifact Registry repository name", "examples": [ "library" ], "title": "GAR repository", "type": "string" }, "image": { "description": "Image name", "examples": [ "sketchbook" ], "title": "GAR image name", "type": "string" } }, "additionalProperties": false, "required": [ "type", "location", "projectId", "repository", "image" ] }
- field image: Annotated[str, Field(title='GAR image name', description='Image name', examples=['sketchbook'])] [Required]#
Image name
- field location: Annotated[str, Field(title='Region or multiregion of registry', description='This is the same as the hostname of the registry but with the -docker.pkg.dev suffix removed', examples=['us-central1'])] [Required]#
This is the same as the hostname of the registry but with the -docker.pkg.dev suffix removed
- field projectId: Annotated[str, Field(title='GCP project ID', description='Google Cloud Platform project ID of the registry', examples=['ceres-lighthouse-6ab4'])] [Required] (name 'project_id')#
Google Cloud Platform project ID of the registry
- field repository: Annotated[str, Field(title='GAR repository', description='Google Artifact Registry repository name', examples=['library'])] [Required]#
Google Artifact Registry repository name
- field type: Annotated[Literal['google'], Field(title='Type of image source')] [Required]#
- to_logging_context()#
Build key/value pairs suitable for passing to structlog.