Google Cloud Artifact Registry V1 Client - Class UpstreamPolicy (1.1.2)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class UpstreamPolicy.

Artifact policy configuration for the repository contents.

Generated from protobuf message google.devtools.artifactregistry.v1.UpstreamPolicy

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

The user-provided ID of the upstream policy.

↳ repository string

A reference to the repository resource, for example: projects/p1/locations/us-central1/repositories/repo1.

↳ priority int

Entries with a greater priority value take precedence in the pull order.

getId

The user-provided ID of the upstream policy.

Returns
Type Description
string

setId

The user-provided ID of the upstream policy.

Parameter
Name Description
var string
Returns
Type Description
$this

getRepository

A reference to the repository resource, for example: projects/p1/locations/us-central1/repositories/repo1.

Returns
Type Description
string

setRepository

A reference to the repository resource, for example: projects/p1/locations/us-central1/repositories/repo1.

Parameter
Name Description
var string
Returns
Type Description
$this

getPriority

Entries with a greater priority value take precedence in the pull order.

Returns
Type Description
int

setPriority

Entries with a greater priority value take precedence in the pull order.

Parameter
Name Description
var int
Returns
Type Description
$this