Skip to main content

project_settings

Creates, updates, deletes, gets or lists a project_settings resource.

Overview

Nameproject_settings
TypeResource
Idgoogle.artifactregistry.project_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set
legacyRedirectionStatestringThe redirection state of the legacy repositories in this project. (REDIRECTION_STATE_UNSPECIFIED, REDIRECTION_FROM_GCR_IO_DISABLED, REDIRECTION_FROM_GCR_IO_ENABLED, REDIRECTION_FROM_GCR_IO_FINALIZED, REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING, REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING)
pullPercentinteger (int32)The percentage of pull traffic to redirect from GCR to AR when using partial redirection.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_project_settingsselectprojectsIdRetrieves the Settings for the Project.
update_project_settingsupdateprojectsIdupdateMaskUpdates the Settings for the Project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves the Settings for the Project.

SELECT
name,
legacyRedirectionState,
pullPercent
FROM google.artifactregistry.project_settings
WHERE projectsId = '{{ projectsId }}' -- required
;

UPDATE examples

Updates the Settings for the Project.

UPDATE google.artifactregistry.project_settings
SET
data__pullPercent = {{ pullPercent }},
data__name = '{{ name }}',
data__legacyRedirectionState = '{{ legacyRedirectionState }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
legacyRedirectionState,
pullPercent;