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:

Successful response

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.
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__name = '{{ name }}',
data__legacyRedirectionState = '{{ legacyRedirectionState }}',
data__pullPercent = {{ pullPercent }}
WHERE
projectsId = '{{ projectsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
legacyRedirectionState,
pullPercent;