project_settings
Creates, updates, deletes, gets or lists a project_settings resource.
Overview
| Name | project_settings |
| Type | Resource |
| Id | google.artifactregistry.project_settings |
Fields
The following fields are returned by SELECT queries:
- get_project_settings
| 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 (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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_project_settings | select | projectsId | Retrieves the Settings for the Project. | |
update_project_settings | update | projectsId | updateMask | Updates 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.
| Name | Datatype | Description |
|---|---|---|
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get_project_settings
Retrieves the Settings for the Project.
SELECT
name,
legacyRedirectionState,
pullPercent
FROM google.artifactregistry.project_settings
WHERE projectsId = '{{ projectsId }}' -- required
;
UPDATE examples
- update_project_settings
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;