Skip to main content

entity_types

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

Overview

Nameentity_types
TypeResource
Idgoogle.aiplatform.entity_types

Fields

NameDatatypeDescription
namestringImmutable. Name of the EntityType. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type} The last part entitytype is assigned by the client. The entity_type can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and underscore(), and ASCII digits 0-9 starting with a letter. The value will be unique given a featurestore.
descriptionstringOptional. Description of the EntityType.
createTimestringOutput only. Timestamp when this EntityType was created.
etagstringOptional. Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectOptional. The labels with user-defined metadata to organize your EntityTypes. 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 EntityType (System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
monitoringConfigobjectConfiguration of how features in Featurestore are monitored.
offlineStorageTtlDaysintegerOptional. Config for data retention policy in offline storage. TTL in days for feature values that will be stored in offline storage. The Feature Store offline storage periodically removes obsolete feature values older than offline_storage_ttl_days since the feature generation time. If unset (or explicitly set to 0), default to 4000 days TTL.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
updateTimestringOutput only. Timestamp when this EntityType was most recently updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTentityTypesId, featurestoresId, locationsId, projectsIdGets details of a single EntityType.
listSELECTfeaturestoresId, locationsId, projectsIdLists EntityTypes in a given Featurestore.
createINSERTfeaturestoresId, locationsId, projectsIdCreates a new EntityType in a given Featurestore.
deleteDELETEentityTypesId, featurestoresId, locationsId, projectsIdDeletes a single EntityType. The EntityType must not have any Features or force must be set to true for the request to succeed.
patchUPDATEentityTypesId, featurestoresId, locationsId, projectsIdUpdates the parameters of a single EntityType.
export_feature_valuesEXECentityTypesId, featurestoresId, locationsId, projectsIdExports Feature values from all the entities of a target EntityType.
import_feature_valuesEXECentityTypesId, featurestoresId, locationsId, projectsIdImports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.
read_feature_valuesEXECentityTypesId, featurestoresId, locationsId, projectsIdReads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.
streaming_read_feature_valuesEXECentityTypesId, featurestoresId, locationsId, projectsIdReads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.
write_feature_valuesEXECentityTypesId, featurestoresId, locationsId, projectsIdWrites Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.

SELECT examples

Lists EntityTypes in a given Featurestore.

SELECT
name,
description,
createTime,
etag,
labels,
monitoringConfig,
offlineStorageTtlDays,
satisfiesPzi,
satisfiesPzs,
updateTime
FROM google.aiplatform.entity_types
WHERE featurestoresId = '{{ featurestoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.aiplatform.entity_types (
featurestoresId,
locationsId,
projectsId,
name,
etag,
offlineStorageTtlDays,
labels,
description,
monitoringConfig
)
SELECT
'{{ featurestoresId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ etag }}',
'{{ offlineStorageTtlDays }}',
'{{ labels }}',
'{{ description }}',
'{{ monitoringConfig }}'
;

UPDATE example

Updates a entity_types resource.

/*+ update */
UPDATE google.aiplatform.entity_types
SET
name = '{{ name }}',
etag = '{{ etag }}',
offlineStorageTtlDays = '{{ offlineStorageTtlDays }}',
labels = '{{ labels }}',
description = '{{ description }}',
monitoringConfig = '{{ monitoringConfig }}'
WHERE
entityTypesId = '{{ entityTypesId }}'
AND featurestoresId = '{{ featurestoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified entity_types resource.

/*+ delete */
DELETE FROM google.aiplatform.entity_types
WHERE entityTypesId = '{{ entityTypesId }}'
AND featurestoresId = '{{ featurestoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';