Skip to main content

project_config

Creates, updates, deletes, gets or lists a project_config resource.

Overview

Nameproject_config
TypeResource
Idgoogle.artifactregistry.project_config

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the project's configuration. Always of the form: projects/{project}/locations/{location}/projectConfig
platformLogsConfigobjectOptional. Configuration for platform logs. (id: PlatformLogsConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_project_configselectprojectsId, locationsIdRetrieves the project configuration.
update_project_configupdateprojectsId, locationsIdupdateMaskUpdates 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves the project configuration.

SELECT
name,
platformLogsConfig
FROM google.artifactregistry.project_config
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;

UPDATE examples

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;