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

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
NameDescription
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
TypeDescription
string

setId

The user-provided ID of the upstream policy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepository

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

Returns
TypeDescription
string

setRepository

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPriority

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

Returns
TypeDescription
int

setPriority

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this