Resource: AspectType
AspectType is a template for creating Aspects, and represents the JSON-schema for a given Entry, for example, BigQuery Table Schema.
JSON representation |
---|
{ "name": string, "uid": string, "createTime": string, "updateTime": string, "description": string, "displayName": string, "labels": { string: string, ... }, "etag": string, "authorization": { object ( |
Fields | |
---|---|
name |
Output only. The relative resource name of the AspectType, of the form: projects/{project_number}/locations/{locationId}/aspectTypes/{aspectTypeId}. |
uid |
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. |
createTime |
Output only. The time when the AspectType was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time when the AspectType was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
description |
Optional. Description of the AspectType. |
displayName |
Optional. User friendly display name. |
labels |
Optional. User-defined labels for the AspectType. An object containing a list of |
etag |
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. |
authorization |
Immutable. Defines the Authorization for this type. |
metadataTemplate |
Required. MetadataTemplate of the aspect. |
transferStatus |
Output only. Denotes the transfer status of the Aspect Type. It is unspecified for Aspect Types created from Dataplex API. |
Authorization
Autorization for an AspectType.
JSON representation |
---|
{ "alternateUsePermission": string } |
Fields | |
---|---|
alternateUsePermission |
Immutable. The IAM permission grantable on the EntryGroup to allow access to instantiate Aspects of Dataplex owned AspectTypes, only settable for Dataplex owned Types. |
MetadataTemplate
MetadataTemplate definition for an AspectType.
JSON representation |
---|
{ "index": integer, "name": string, "type": string, "recordFields": [ { object ( |
Fields | |
---|---|
index |
Optional. Index is used to encode Template messages. The value of index can range between 1 and 2,147,483,647. Index must be unique within all fields in a Template. (Nested Templates can reuse indexes). Once a Template is defined, the index cannot be changed, because it identifies the field in the actual storage format. Index is a mandatory field, but it is optional for top level fields, and map/array "values" definitions. |
name |
Required. The name of the field. |
type |
Required. The datatype of this field. The following values are supported: Primitive types:
Complex types:
|
recordFields[] |
Optional. Field definition. You must specify it if the type is record. It defines the nested fields. |
enumValues[] |
Optional. The list of values for an enum type. You must define it if the type is enum. |
mapItems |
Optional. If the type is map, set mapItems. mapItems can refer to a primitive field or a complex (record only) field. To specify a primitive field, you only need to set name and type in the nested MetadataTemplate. The recommended value for the name field is item, as this isn't used in the actual payload. |
arrayItems |
Optional. If the type is array, set arrayItems. arrayItems can refer to a primitive field or a complex (record only) field. To specify a primitive field, you only need to set name and type in the nested MetadataTemplate. The recommended value for the name field is item, as this isn't used in the actual payload. |
typeId |
Optional. You can use type id if this definition of the field needs to be reused later. The type id must be unique across the entire template. You can only specify it if the field type is record. |
typeRef |
Optional. A reference to another field definition (not an inline definition). The value must be equal to the value of an id field defined elsewhere in the MetadataTemplate. Only fields with record type can refer to other fields. |
constraints |
Optional. Specifies the constraints on this field. |
annotations |
Optional. Specifies annotations on this field. |
EnumValue
Definition of Enumvalue, to be used for enum fields.
JSON representation |
---|
{ "index": integer, "name": string, "deprecated": string } |
Fields | |
---|---|
index |
Required. Index for the enum value. It can't be modified. |
name |
Required. Name of the enumvalue. This is the actual value that the aspect can contain. |
deprecated |
Optional. You can set this message if you need to deprecate an enum value. |
Constraints
Definition of the constraints of a field.
JSON representation |
---|
{ "required": boolean } |
Fields | |
---|---|
required |
Optional. Marks this field as optional or required. |
Annotations
Definition of the annotations of a field.
JSON representation |
---|
{ "deprecated": string, "displayName": string, "description": string, "displayOrder": integer, "stringType": string, "stringValues": [ string ] } |
Fields | |
---|---|
deprecated |
Optional. Marks a field as deprecated. You can include a deprecation message. |
displayName |
Optional. Display name for a field. |
description |
Optional. Description for a field. |
displayOrder |
Optional. Display order for a field. You can use this to reorder where a field is rendered. |
stringType |
Optional. You can use String Type annotations to specify special meaning to string fields. The following values are supported:
|
stringValues[] |
Optional. Suggested hints for string fields. You can use them to suggest values to users through console. |
Methods |
|
---|---|
|
Creates an AspectType. |
|
Deletes an AspectType. |
|
Gets an AspectType. |
|
Gets the access control policy for a resource. |
|
Lists AspectType resources in a project and location. |
|
Updates an AspectType. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |