Skip to main content

recommenders_config

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

Overview

Namerecommenders_config
TypeResource
Idgoogle.recommender.recommenders_config

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
annotationsobjectAllows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
displayNamestringA user-settable field to provide a human-readable name to be used in user interfaces.
etagstringFingerprint of the RecommenderConfig. Provides optimistic locking when updating.
recommenderGenerationConfigobjectRecommenderGenerationConfig which configures the Generation of recommendations for this recommender. (id: GoogleCloudRecommenderV1RecommenderGenerationConfig)
revisionIdstringOutput only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.
updateTimestring (google-datetime)Last time when the config was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_recommenders_get_configselectprojectsId, locationsId, recommendersIdGets the requested Recommender Config. There is only one instance of the config for each Recommender.
billing_accounts_locations_recommenders_get_configselectbillingAccountsId, locationsId, recommendersIdGets the requested Recommender Config. There is only one instance of the config for each Recommender.
organizations_locations_recommenders_get_configselectorganizationsId, locationsId, recommendersIdGets the requested Recommender Config. There is only one instance of the config for each Recommender.
projects_locations_recommenders_update_configupdateprojectsId, locationsId, recommendersIdupdateMask, validateOnlyUpdates a Recommender Config. This will create a new revision of the config.
billing_accounts_locations_recommenders_update_configupdatebillingAccountsId, locationsId, recommendersIdupdateMask, validateOnlyUpdates a Recommender Config. This will create a new revision of the config.
organizations_locations_recommenders_update_configupdateorganizationsId, locationsId, recommendersIdupdateMask, validateOnlyUpdates a Recommender Config. This will create a new revision of the config.

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
billingAccountsIdstring
locationsIdstring
organizationsIdstring
projectsIdstring
recommendersIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets the requested Recommender Config. There is only one instance of the config for each Recommender.

SELECT
name,
annotations,
displayName,
etag,
recommenderGenerationConfig,
revisionId,
updateTime
FROM google.recommender.recommenders_config
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND recommendersId = '{{ recommendersId }}' -- required;

UPDATE examples

Updates a Recommender Config. This will create a new revision of the config.

UPDATE google.recommender.recommenders_config
SET
data__name = '{{ name }}',
data__recommenderGenerationConfig = '{{ recommenderGenerationConfig }}',
data__etag = '{{ etag }}',
data__updateTime = '{{ updateTime }}',
data__annotations = '{{ annotations }}',
data__displayName = '{{ displayName }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND recommendersId = '{{ recommendersId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
annotations,
displayName,
etag,
recommenderGenerationConfig,
revisionId,
updateTime;