artifact_registry library
Artifact Registry: container / package repository, per-repository IAM.
Format is set at creation time and immutable. Pair format: DOCKER
with ArtifactRegistryDockerConfig, format: MAVEN with
ArtifactRegistryMavenConfig. Mode is STANDARD_REPOSITORY (default),
VIRTUAL_REPOSITORY (aggregating proxy), or REMOTE_REPOSITORY
(caching proxy).
Note: google_artifact_registry_vpcsc_config is beta-only; not curated
in v0.8.0-dev. A follow-up PR extends the schema fixture against
terraform-provider-google-beta and adds that resource.
Classes
- ArtifactRegistryCleanupCondition
-
cleanup_policies.condition-- match versions by tag / age / prefix. At least one of the predicate fields should be set for the condition to be meaningful. - ArtifactRegistryCleanupMostRecentVersions
-
cleanup_policies.most_recent_versions-- retain the N most recent versions per matched package. Only valid paired withaction == KEEP. - ArtifactRegistryCleanupPolicy
-
One
cleanup_policiesentry. Each policy pairs an action (KEEP/DELETE) with EXACTLY ONE of condition (tag/age/prefix match) or mostRecentVersions (retain top-N) -- mirrors the API-levelexactly_one_ofconstraint between the two sub-blocks. - ArtifactRegistryDockerConfig
-
docker_configblock. Applies only when the parent repository'sformatisDOCKER; ignored for other formats. - ArtifactRegistryMavenConfig
-
maven_configblock. Applies only when the parent repository'sformatisMAVEN; ignored for other formats. - ArtifactRegistryRemoteCommonRepository
-
remote_repository_config.common_repository-- generic upstream by URI. Mutually exclusive with the format-specific*_repositoryblocks (see ArtifactRegistryRemoteRepositoryConfig.advancedExtra). - ArtifactRegistryRemoteRepositoryConfig
-
remote_repository_configblock. Required whenmode == REMOTE_REPOSITORY; mutually exclusive with ArtifactRegistryVirtualRepositoryConfig. - ArtifactRegistryRemoteUpstreamCredentials
-
remote_repository_config.upstream_credentials-- single helper for the only credential variant currently modeled by the schema (username_password_credentials). - ArtifactRegistryRemoteUsernamePasswordCredentials
-
remote_repository_config.upstream_credentials .username_password_credentialsblock. - ArtifactRegistryVirtualRepositoryConfig
-
virtual_repository_configblock. Required whenmode == VIRTUAL_REPOSITORY; mutually exclusive with ArtifactRegistryRemoteRepositoryConfig. - ArtifactRegistryVirtualUpstreamPolicy
-
One
virtual_repository_config.upstream_policiesentry. - ArtifactRegistryVulnerabilityScanningConfig
-
vulnerability_scanning_configblock. Controls whether the Container Analysis API auto-scans artifacts pushed to this repo. Only enablementConfig is user-settable;enablementStateandenablementStateReasonare returned by the API and surface as read getters on the parent class. - GoogleArtifactRegistryRepository
-
Factory wrapper for
google_artifact_registry_repository(providerhashicorp/google ~> 7.0). - GoogleArtifactRegistryRepositoryIamMember
-
Factory wrapper for
google_artifact_registry_repository_iam_member.
Enums
- ArtifactRegistryCleanupAction
-
cleanup_policies.action-- what the cleanup policy does to matching versions when its condition fires. - ArtifactRegistryCleanupTagState
-
cleanup_policies.condition.tag_state-- limits a cleanup condition to tagged / untagged / any versions. Schema defaultANY. - ArtifactRegistryMavenVersionPolicy
-
maven_config.version_policy-- which Maven version classes the repository accepts. Schema defaultVERSION_POLICY_UNSPECIFIED. - ArtifactRegistryMode
-
modeforgoogle_artifact_registry_repository. Picks the repository shape: standard (push/pull), virtual (federated view over other repositories), or remote (pull-through cache of an upstream registry). The schema defaults toSTANDARD_REPOSITORY. - ArtifactRegistryVulnerabilityEnablementConfig
-
vulnerability_scanning_config.enablement_config-- whether vulnerability scanning is enabled for artifacts pushed to this repo.INHERITEDdefers to the project-level Artifact Analysis API state.