Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idgoogle.migrationcenter.settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. The name of the resource.
disableCloudLoggingbooleanDisable Cloud Logging for the Migration Center API. Users are billed for the logs.
preferenceSetstringThe preference set used by default for a project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_settingsselectprojectsId, locationsIdGets the details of regional settings.
update_settingsupdateprojectsId, locationsIdupdateMask, requestIdUpdates the regional-level project settings.

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
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the details of regional settings.

SELECT
name,
disableCloudLogging,
preferenceSet
FROM google.migrationcenter.settings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;

UPDATE examples

Updates the regional-level project settings.

UPDATE google.migrationcenter.settings
SET
data__preferenceSet = '{{ preferenceSet }}',
data__disableCloudLogging = {{ disableCloudLogging }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;