REST Resource: projects.locations.repositories

Resource: Repository

A Repository for storing artifacts with a specific format.

JSON representation
{
  "name": string,
  "format": enum (Format),
  "description": string,
  "labels": {
    string: string,
    ...
  },
  "createTime": string,
  "updateTime": string
}
Fields
name

string

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

format

enum (Format)

The format of packages that are stored in the repository.

description

string

The user-provided description of the repository.

labels

map (key: string, value: string)

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 "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

createTime

string (Timestamp format)

The time when the repository was created.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

The time when the repository was last updated.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Format

A package format.

Enums
FORMAT_UNSPECIFIED Unspecified package format.
DOCKER Docker package format.
MAVEN Maven package format.
NPM NPM package format.

Methods

create

Creates a repository.

delete

Deletes a repository and all of its contents.

get

Gets a repository.

getIamPolicy

Gets the IAM policy for a given resource.

list

Lists repositories.

patch

Updates a repository.

setIamPolicy

Updates the IAM policy for a given resource.

testIamPermissions

Tests if the caller has a list of permissions on a resource.