project_settings
Creates, updates, deletes, gets or lists a project_settings
resource.
Overview
Name | project_settings |
Type | Resource |
Id | google.artifactregistry.project_settings |
Fields
Name | Datatype | Description |
---|---|---|
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 |
legacyRedirectionState | string | The redirection state of the legacy repositories in this project. |
pullPercent | integer | The percentage of pull traffic to redirect from GCR to AR when using partial redirection. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_project_settings | SELECT | projectsId | Retrieves the Settings for the Project. |
update_project_settings | UPDATE | projectsId | Updates 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 }}';