Skip to main content

entry_types

Creates, updates, deletes, gets or lists an entry_types resource.

Overview

Nameentry_types
TypeResource
Idgoogle.dataplex.entry_types

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The relative resource name of the EntryType, of the form: projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}.
authorizationobjectImmutable. Authorization defined for this type. (id: GoogleCloudDataplexV1EntryTypeAuthorization)
createTimestring (google-datetime)Output only. The time when the EntryType was created.
descriptionstringOptional. Description of the EntryType.
displayNamestringOptional. User friendly display name.
etagstringOptional. This checksum is computed by the service, and might be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labelsobjectOptional. User-defined labels for the EntryType.
platformstringOptional. The platform that Entries of this type belongs to.
requiredAspectsarrayAspectInfo for the entry type.
systemstringOptional. The system that Entries of this type belongs to. Examples include CloudSQL, MariaDB etc
typeAliasesarrayOptional. Indicates the classes this Entry Type belongs to, for example, TABLE, DATABASE, MODEL.
uidstringOutput only. System generated globally unique ID for the EntryType. This ID will be different if the EntryType is deleted and re-created with the same name.
updateTimestring (google-datetime)Output only. The time when the EntryType was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_entry_types_getselectprojectsId, locationsId, entryTypesIdGets an EntryType.
projects_locations_entry_types_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists EntryType resources in a project and location.
projects_locations_entry_types_createinsertprojectsId, locationsIdentryTypeId, validateOnlyCreates an EntryType.
projects_locations_entry_types_patchupdateprojectsId, locationsId, entryTypesIdupdateMask, validateOnlyUpdates an EntryType.
projects_locations_entry_types_deletedeleteprojectsId, locationsId, entryTypesIdetagDeletes an EntryType.

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
entryTypesIdstring
locationsIdstring
projectsIdstring
entryTypeIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets an EntryType.

SELECT
name,
authorization,
createTime,
description,
displayName,
etag,
labels,
platform,
requiredAspects,
system,
typeAliases,
uid,
updateTime
FROM google.dataplex.entry_types
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND entryTypesId = '{{ entryTypesId }}' -- required;

INSERT examples

Creates an EntryType.

INSERT INTO google.dataplex.entry_types (
data__description,
data__displayName,
data__labels,
data__etag,
data__typeAliases,
data__platform,
data__system,
data__requiredAspects,
data__authorization,
projectsId,
locationsId,
entryTypeId,
validateOnly
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ etag }}',
'{{ typeAliases }}',
'{{ platform }}',
'{{ system }}',
'{{ requiredAspects }}',
'{{ authorization }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ entryTypeId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an EntryType.

UPDATE google.dataplex.entry_types
SET
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}',
data__typeAliases = '{{ typeAliases }}',
data__platform = '{{ platform }}',
data__system = '{{ system }}',
data__requiredAspects = '{{ requiredAspects }}',
data__authorization = '{{ authorization }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryTypesId = '{{ entryTypesId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes an EntryType.

DELETE FROM google.dataplex.entry_types
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND entryTypesId = '{{ entryTypesId }}' --required
AND etag = '{{ etag }}';