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

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.
pullPercentintegerThe percentage of pull traffic to redirect from GCR to AR when using partial redirection.

Methods

NameAccessible byRequired ParamsDescription
get_project_settingsSELECTprojectsIdRetrieves the Settings for the Project.
update_project_settingsUPDATEprojectsIdUpdates the Settings for the Project.

SELECT examples

Retrieves the Settings for the Project.

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

UPDATE example

Updates a project_settings resource.

/*+ update */
UPDATE google.artifactregistry.project_settings
SET
name = '{{ name }}',
legacyRedirectionState = '{{ legacyRedirectionState }}',
pullPercent = '{{ pullPercent }}'
WHERE
projectsId = '{{ projectsId }}';