recommenders_config
Creates, updates, deletes, gets or lists a recommenders_config
resource.
Overview
Name | recommenders_config |
Type | Resource |
Id | google.recommender.recommenders_config |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config |
annotations | object | Allows 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. |
displayName | string | A user-settable field to provide a human-readable name to be used in user interfaces. |
etag | string | Fingerprint of the RecommenderConfig. Provides optimistic locking when updating. |
recommenderGenerationConfig | object | A Configuration to customize the generation of recommendations. Eg, customizing the lookback period considered when generating a recommendation. |
revisionId | string | Output 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. |
updateTime | string | Last time when the config was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
billing_accounts_locations_recommenders_get_config | SELECT | billingAccountsId, locationsId, recommendersId | Gets the requested Recommender Config. There is only one instance of the config for each Recommender. |
organizations_locations_recommenders_get_config | SELECT | locationsId, organizationsId, recommendersId | Gets the requested Recommender Config. There is only one instance of the config for each Recommender. |
projects_locations_recommenders_get_config | SELECT | locationsId, projectsId, recommendersId | Gets the requested Recommender Config. There is only one instance of the config for each Recommender. |
billing_accounts_locations_recommenders_update_config | UPDATE | billingAccountsId, locationsId, recommendersId | Updates a Recommender Config. This will create a new revision of the config. |
organizations_locations_recommenders_update_config | UPDATE | locationsId, organizationsId, recommendersId | Updates a Recommender Config. This will create a new revision of the config. |
projects_locations_recommenders_update_config | UPDATE | locationsId, projectsId, recommendersId | Updates a Recommender Config. This will create a new revision of the config. |
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 locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND recommendersId = '{{ recommendersId }}';
UPDATE
example
Updates a recommenders_config
resource.
/*+ update */
UPDATE google.recommender.recommenders_config
SET
displayName = '{{ displayName }}',
name = '{{ name }}',
etag = '{{ etag }}',
recommenderGenerationConfig = '{{ recommenderGenerationConfig }}',
annotations = '{{ annotations }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND recommendersId = '{{ recommendersId }}';