Resource: Repository
A Repository for storing artifacts with a specific format.
JSON representation |
---|
{ "name": string, "format": enum ( |
Fields | |
---|---|
name |
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1". |
format |
The format of packages that are stored in the repository. |
description |
The user-provided description of the repository. |
labels |
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. An object containing a list of |
createTime |
The time when the repository was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
The time when the repository was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
kmsKeyName |
The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: |
sizeBytes |
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. |
mavenConfig |
Maven repository config contains repository level configuration for the repositories of maven type. |
MavenRepositoryConfig
MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.
JSON representation |
---|
{
"allowSnapshotOverwrites": boolean,
"versionPolicy": enum ( |
Fields | |
---|---|
allowSnapshotOverwrites |
The repository with this flag will allow publishing the same snapshot versions. |
versionPolicy |
Version policy defines the versions that the registry will accept. |
VersionPolicy
VersionPolicy is the version policy for the repository.
Enums | |
---|---|
VERSION_POLICY_UNSPECIFIED |
VERSION_POLICY_UNSPECIFIED - the version policy is not defined. When the version policy is not defined, no validation is performed for the versions. |
RELEASE |
RELEASE - repository will accept only Release versions. |
SNAPSHOT |
SNAPSHOT - repository will accept only Snapshot versions. |
Format
A package format.
Enums | |
---|---|
FORMAT_UNSPECIFIED |
Unspecified package format. |
DOCKER |
Docker package format. |
MAVEN |
Maven package format. |
NPM |
NPM package format. |
APT |
APT package format. |
YUM |
YUM package format. |
PYTHON |
Python package format. |
KFP |
Kubeflow Pipelines package format. |
Methods |
|
---|---|
|
Creates a repository. |
|
Deletes a repository and all of its contents. |
|
Gets a repository. |
|
Gets the IAM policy for a given resource. |
|
Lists repositories. |
|
Updates a repository. |
|
Updates the IAM policy for a given resource. |
|
Tests if the caller has a list of permissions on a resource. |