ArtifactRegistryRepositoryArtifactRegistryRemoteRepositoryConfig class
remote_repository_config block. Required when
mode == REMOTE_REPOSITORY; mutually exclusive with
ArtifactRegistryRepositoryArtifactRegistryVirtualRepositoryConfig.
A remote repository acts as a pull-through cache: clients pull from
it, and on cache miss it fetches from a configured upstream registry
(Docker Hub, Maven Central, PyPI, npm, APT/YUM mirrors, or any
"common" URI). The typed surface here covers the most common path
-- a common_repository upstream + optional username/password
credentials. Docker / Maven / npm / APT / YUM public-repository paths
are typed on dockerRepository / mavenRepository / npmRepository /
aptRepository / yumRepository; pythonRepository and other rare
upstreams remain on advancedExtra.
- Annotations
-
- @immutable
Constructors
-
ArtifactRegistryRepositoryArtifactRegistryRemoteRepositoryConfig({TfArg<
String> ? description, ArtifactRegistryRepositoryArtifactRegistryRemoteCommonRepository? commonRepository, ArtifactRegistryRepositoryArtifactRegistryRemoteDockerRepository? dockerRepository, ArtifactRegistryRepositoryArtifactRegistryRemoteMavenRepository? mavenRepository, ArtifactRegistryRepositoryArtifactRegistryRemoteNpmRepository? npmRepository, ArtifactRegistryRepositoryArtifactRegistryRemoteAptRepository? aptRepository, ArtifactRegistryRepositoryArtifactRegistryRemoteYumRepository? yumRepository, ArtifactRegistryRepositoryArtifactRegistryRemoteUpstreamCredentials? upstreamCredentials, TfArg<bool> ? disableUpstreamValidation, Map<String, Object?> ? advancedExtra}) -
const
Properties
-
advancedExtra
→ Map<
String, Object?> ? -
Escape hatch for format-specific upstream blocks not modeled as
typed fields (e.g.
python_repositorywithpublic_repository: 'PYPI'). Keys are Terraform block names; values are the block payload (single block ->[{...}], list of blocks -> list of maps). The map is spread into the emitted Terraform args as-is and is mutually exclusive with commonRepository at the API level (exactly_one_of-- enforced by Terraform at plan time).final - aptRepository → ArtifactRegistryRepositoryArtifactRegistryRemoteAptRepository?
-
APT-format remote upstream (
format == APT,mode == REMOTE_REPOSITORY).final - commonRepository → ArtifactRegistryRepositoryArtifactRegistryRemoteCommonRepository?
-
Generic upstream-by-URI form. Accepts an Artifact Registry repo
path (
projects/.../locations/.../repositories/...), a fully qualified registry URI (https://registry-1.docker.io), or an Artifact Registry HTTPS URI (https://<region>-docker.pkg.dev/<project>/<repo>).final -
description
→ TfArg<
String> ? -
Free-form description of the upstream this remote repo proxies.
final
-
disableUpstreamValidation
→ TfArg<
bool> ? -
When
true, skips upstream-reachability validation at create / update time. This field is INPUT_ONLY -- the API does not return it on read, so changes show as drift unless excluded from the read path.final - dockerRepository → ArtifactRegistryRepositoryArtifactRegistryRemoteDockerRepository?
-
Docker-format remote upstream (
format == DOCKER,mode == REMOTE_REPOSITORY). Mutually exclusive with commonRepository and the other*_repositoryblocks.final - hashCode → int
-
The hash code for this object.
no setterinherited
- mavenRepository → ArtifactRegistryRepositoryArtifactRegistryRemoteMavenRepository?
-
Maven-format remote upstream (
format == MAVEN,mode == REMOTE_REPOSITORY).final - npmRepository → ArtifactRegistryRepositoryArtifactRegistryRemoteNpmRepository?
-
npm-format remote upstream (
format == NPM,mode == REMOTE_REPOSITORY).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upstreamCredentials → ArtifactRegistryRepositoryArtifactRegistryRemoteUpstreamCredentials?
-
Credentials used when pulling from a private upstream. Set this
when the upstream requires authentication (e.g. a private Docker
Hub org, a self-hosted Nexus).
final
- yumRepository → ArtifactRegistryRepositoryArtifactRegistryRemoteYumRepository?
-
YUM-format remote upstream (
format == YUM,mode == REMOTE_REPOSITORY).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited