project_config
Creates, updates, deletes, gets or lists a project_config resource.
Overview
| Name | project_config |
| Type | Resource |
| Id | google.artifactregistry.project_config |
Fields
The following fields are returned by SELECT queries:
- get_project_config
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the project's configuration. Always of the form: projects/{project}/locations/{location}/projectConfig |
platformLogsConfig | object | Optional. Configuration for platform logs. (id: PlatformLogsConfig) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_project_config | select | projectsId, locationsId | Retrieves the project configuration. | |
update_project_config | update | projectsId, locationsId | updateMask | Updates the project configuration. |
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 |
|---|---|---|
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get_project_config
Retrieves the project configuration.
SELECT
name,
platformLogsConfig
FROM google.artifactregistry.project_config
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;
UPDATE examples
- update_project_config
Updates the project configuration.
UPDATE google.artifactregistry.project_config
SET
data__name = '{{ name }}',
data__platformLogsConfig = '{{ platformLogsConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
platformLogsConfig;