Method: projects.locations.repositories.patch

Updates a repository.

HTTP request

PATCH https://artifactregistry.googleapis.com/v1beta1/{repository.name=projects/*/locations/*/repositories/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
repository.name

string

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

Query parameters

Parameters
updateMask

string (FieldMask format)

The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Repository.

Response body

If successful, the response body contains an instance of Repository.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following Cloud IAM permission on the name resource:

  • artifactregistry.repositories.update

For more information, see the Cloud IAM Documentation.