Google Cloud Artifact Registry V1 Client - Class ProjectSettings (1.1.1)

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

The Artifact Registry settings that apply to a Project.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

↳ legacy_redirection_state int

The redirection state of the legacy repositories in this project.

↳ pull_percent int

The percentage of pull traffic to redirect from GCR to AR when using partial redirection.

getName

The name of the project's settings.

Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

Returns
Type Description
string

setName

The name of the project's settings.

Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set

Parameter
Name Description
var string
Returns
Type Description
$this

getLegacyRedirectionState

The redirection state of the legacy repositories in this project.

Returns
Type Description
int

setLegacyRedirectionState

The redirection state of the legacy repositories in this project.

Parameter
Name Description
var int
Returns
Type Description
$this

getPullPercent

The percentage of pull traffic to redirect from GCR to AR when using partial redirection.

Returns
Type Description
int

setPullPercent

The percentage of pull traffic to redirect from GCR to AR when using partial redirection.

Parameter
Name Description
var int
Returns
Type Description
$this