Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class Repository.
A Repository for storing artifacts with a specific format.
Generated from protobuf message google.devtools.artifactregistry.v1.Repository
Namespace
Google \ Cloud \ ArtifactRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ maven_config
Repository\MavenRepositoryConfig
Maven repository config contains repository level configuration for the repositories of maven type.
↳ docker_config
Repository\DockerRepositoryConfig
Docker repository config contains repository level configuration for the repositories of docker type.
↳ virtual_repository_config
↳ remote_repository_config
↳ name
string
The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1
. For each location in a project, repository names must be unique.
↳ format
int
Optional. The format of packages that are stored in the repository.
↳ description
string
The user-provided description of the repository.
↳ labels
array| Google\Protobuf\Internal\MapField
Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
↳ create_time
↳ update_time
↳ kms_key_name
string
The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
. This value may not be changed after the Repository has been created.
↳ mode
int
Optional. The mode of the repository.
↳ cleanup_policies
array| Google\Protobuf\Internal\MapField
Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
↳ size_bytes
int|string
Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
↳ satisfies_pzs
bool
Output only. If set, the repository satisfies physical zone separation.
↳ cleanup_policy_dry_run
bool
Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
↳ vulnerability_scanning_config
Repository\VulnerabilityScanningConfig
Optional. Config and state for vulnerability scanning of resources within this Repository.
↳ disallow_unspecified_mode
bool
Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
↳ satisfies_pzi
bool
Output only. If set, the repository satisfies physical zone isolation.
↳ registry_uri
string
Output only. The repository endpoint, for example: us-docker.pkg.dev/my-proj/my-repo
.
getMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
hasMavenConfig
setMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
$this
getDockerConfig
Docker repository config contains repository level configuration for the repositories of docker type.
hasDockerConfig
setDockerConfig
Docker repository config contains repository level configuration for the repositories of docker type.
$this
getVirtualRepositoryConfig
Configuration specific for a Virtual Repository.
hasVirtualRepositoryConfig
setVirtualRepositoryConfig
Configuration specific for a Virtual Repository.
$this
getRemoteRepositoryConfig
Configuration specific for a Remote Repository.
hasRemoteRepositoryConfig
setRemoteRepositoryConfig
Configuration specific for a Remote Repository.
$this
getName
The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1
. For each location
in a project, repository names must be unique.
string
setName
The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1
. For each location
in a project, repository names must be unique.
var
string
$this
getFormat
Optional. The format of packages that are stored in the repository.
int
setFormat
Optional. The format of packages that are stored in the repository.
var
int
$this
getDescription
The user-provided description of the repository.
string
setDescription
The user-provided description of the repository.
var
string
$this
getLabels
Labels with user-defined metadata.
This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
setLabels
Labels with user-defined metadata.
This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
$this
getCreateTime
Output only. The time when the repository was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the repository was created.
$this
getUpdateTime
Output only. The time when the repository was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the repository was last updated.
$this
getKmsKeyName
The Cloud KMS resource name of the customer managed encryption key that's
used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
This value may not be changed after the Repository has been created.
string
setKmsKeyName
The Cloud KMS resource name of the customer managed encryption key that's
used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
This value may not be changed after the Repository has been created.
var
string
$this
getMode
Optional. The mode of the repository.
int
setMode
Optional. The mode of the repository.
var
int
$this
getCleanupPolicies
Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
setCleanupPolicies
Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
$this
getSizeBytes
Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
int|string
setSizeBytes
Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
var
int|string
$this
getSatisfiesPzs
Output only. If set, the repository satisfies physical zone separation.
bool
setSatisfiesPzs
Output only. If set, the repository satisfies physical zone separation.
var
bool
$this
getCleanupPolicyDryRun
Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
bool
setCleanupPolicyDryRun
Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
var
bool
$this
getVulnerabilityScanningConfig
Optional. Config and state for vulnerability scanning of resources within this Repository.
hasVulnerabilityScanningConfig
clearVulnerabilityScanningConfig
setVulnerabilityScanningConfig
Optional. Config and state for vulnerability scanning of resources within this Repository.
$this
getDisallowUnspecifiedMode
Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
bool
setDisallowUnspecifiedMode
Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
var
bool
$this
getSatisfiesPzi
Output only. If set, the repository satisfies physical zone isolation.
bool
setSatisfiesPzi
Output only. If set, the repository satisfies physical zone isolation.
var
bool
$this
getRegistryUri
Output only. The repository endpoint, for example: us-docker.pkg.dev/my-proj/my-repo
.
string
setRegistryUri
Output only. The repository endpoint, for example: us-docker.pkg.dev/my-proj/my-repo
.
var
string
$this
getFormatConfig
string
getModeConfig
string