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. |
create |
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: |
update |
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. |
display |
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. |
metadata |
Required. MetadataTemplate of the aspect. |
transfer |
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 | |
---|---|
alternate |
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:
|
record |
Optional. Field definition. You must specify it if the type is record. It defines the nested fields. |
enum |
Optional. The list of values for an enum type. You must define it if the type is enum. |
map |
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. |
array |
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. |
type |
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. |
type |
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. |
display |
Optional. Display name for a field. |
description |
Optional. Description for a field. |
display |
Optional. Display order for a field. You can use this to reorder where a field is rendered. |
string |
Optional. You can use String Type annotations to specify special meaning to string fields. The following values are supported:
|
string |
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. |