aspect_types
Creates, updates, deletes, gets or lists a aspect_types
resource.
Overview
Name | aspect_types |
Type | Resource |
Id | google.dataplex.aspect_types |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The relative resource name of the AspectType, of the form: projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. |
description | string | Optional. Description of the AspectType. |
authorization | object | Autorization for an AspectType. |
createTime | string | Output only. The time when the AspectType was created. |
displayName | string | Optional. User friendly display name. |
etag | string | The service computes this checksum. The client may send it on update and delete requests to ensure it has an up-to-date value before proceeding. |
labels | object | Optional. User-defined labels for the AspectType. |
metadataTemplate | object | MetadataTemplate definition for an AspectType. |
uid | string | Output only. System generated globally unique ID for the AspectType. If you delete and recreate the AspectType with the same name, then this ID will be different. |
updateTime | string | Output only. The time when the AspectType was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_aspect_types_get | SELECT | aspectTypesId, locationsId, projectsId | Gets an AspectType. |
projects_locations_aspect_types_list | SELECT | locationsId, projectsId | Lists AspectType resources in a project and location. |
projects_locations_aspect_types_create | INSERT | locationsId, projectsId | Creates an AspectType. |
projects_locations_aspect_types_delete | DELETE | aspectTypesId, locationsId, projectsId | Deletes an AspectType. |
projects_locations_aspect_types_patch | UPDATE | aspectTypesId, locationsId, projectsId | Updates an AspectType. |
SELECT
examples
Lists AspectType resources in a project and location.
SELECT
name,
description,
authorization,
createTime,
displayName,
etag,
labels,
metadataTemplate,
uid,
updateTime
FROM google.dataplex.aspect_types
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new aspect_types
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dataplex.aspect_types (
locationsId,
projectsId,
description,
displayName,
labels,
etag,
authorization,
metadataTemplate
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ description }}',
'{{ displayName }}',
'{{ labels }}',
'{{ etag }}',
'{{ authorization }}',
'{{ metadataTemplate }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: uid
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: displayName
value: string
- name: labels
value: object
- name: etag
value: string
- name: authorization
value:
- name: alternateUsePermission
value: string
- name: metadataTemplate
value:
- name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- - name: index
value: integer
- name: name
value: string
- name: type
value: string
- name: recordFields
value:
- []
- name: enumValues
value:
- []
- name: typeId
value: string
- name: typeRef
value: string
- name: constraints
value: []
- name: annotations
value: []
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
- name: enumValues
value:
- - name: index
value: integer
- name: name
value: string
- name: deprecated
value: string
- name: typeId
value: string
- name: typeRef
value: string
UPDATE
example
Updates a aspect_types
resource.
/*+ update */
UPDATE google.dataplex.aspect_types
SET
description = '{{ description }}',
displayName = '{{ displayName }}',
labels = '{{ labels }}',
etag = '{{ etag }}',
authorization = '{{ authorization }}',
metadataTemplate = '{{ metadataTemplate }}'
WHERE
aspectTypesId = '{{ aspectTypesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified aspect_types
resource.
/*+ delete */
DELETE FROM google.dataplex.aspect_types
WHERE aspectTypesId = '{{ aspectTypesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';