Skip to main content

feature_groups

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

Overview

Namefeature_groups
TypeResource
Idgoogle.aiplatform.feature_groups

Fields

NameDatatypeDescription
namestringIdentifier. Name of the FeatureGroup. Format: projects/{project}/locations/{location}/featureGroups/{featureGroup}
descriptionstringOptional. Description of the FeatureGroup.
bigQueryobjectInput source type for BigQuery Tables and Views.
createTimestringOutput only. Timestamp when this FeatureGroup was created.
etagstringOptional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectOptional. The labels with user-defined metadata to organize your FeatureGroup. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureGroup(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
updateTimestringOutput only. Timestamp when this FeatureGroup was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfeatureGroupsId, locationsId, projectsIdGets details of a single FeatureGroup.
listSELECTlocationsId, projectsIdLists FeatureGroups in a given project and location.
createINSERTlocationsId, projectsIdCreates a new FeatureGroup in a given project and location.
deleteDELETEfeatureGroupsId, locationsId, projectsIdDeletes a single FeatureGroup.
patchUPDATEfeatureGroupsId, locationsId, projectsIdUpdates the parameters of a single FeatureGroup.

SELECT examples

Lists FeatureGroups in a given project and location.

SELECT
name,
description,
bigQuery,
createTime,
etag,
labels,
updateTime
FROM google.aiplatform.feature_groups
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new feature_groups resource.

/*+ create */
INSERT INTO google.aiplatform.feature_groups (
locationsId,
projectsId,
bigQuery,
labels,
etag,
description,
name
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ bigQuery }}',
'{{ labels }}',
'{{ etag }}',
'{{ description }}',
'{{ name }}'
;

UPDATE example

Updates a feature_groups resource.

/*+ update */
UPDATE google.aiplatform.feature_groups
SET
bigQuery = '{{ bigQuery }}',
labels = '{{ labels }}',
etag = '{{ etag }}',
description = '{{ description }}',
name = '{{ name }}'
WHERE
featureGroupsId = '{{ featureGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified feature_groups resource.

/*+ delete */
DELETE FROM google.aiplatform.feature_groups
WHERE featureGroupsId = '{{ featureGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';