metadata_schemas
Creates, updates, deletes, gets or lists a metadata_schemas
resource.
Overview
Name | metadata_schemas |
Type | Resource |
Id | google.aiplatform.metadata_schemas |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the MetadataSchema. |
description | string | Description of the Metadata Schema |
createTime | string | Output only. Timestamp when this MetadataSchema was created. |
schema | string | Required. The raw YAML string representation of the MetadataSchema. The combination of [MetadataSchema.version] and the schema name given by title in [MetadataSchema.schema] must be unique within a MetadataStore. The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object |
schemaType | string | The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema. |
schemaVersion | string | The version of the MetadataSchema. The version's format must match the following regular expression: ^[0-9]+.+.+$ , which would allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, metadataSchemasId, metadataStoresId, projectsId | Retrieves a specific MetadataSchema. |
list | SELECT | locationsId, metadataStoresId, projectsId | Lists MetadataSchemas. |
create | INSERT | locationsId, metadataStoresId, projectsId | Creates a MetadataSchema. |
SELECT
examples
Lists MetadataSchemas.
SELECT
name,
description,
createTime,
schema,
schemaType,
schemaVersion
FROM google.aiplatform.metadata_schemas
WHERE locationsId = '{{ locationsId }}'
AND metadataStoresId = '{{ metadataStoresId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new metadata_schemas
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.aiplatform.metadata_schemas (
locationsId,
metadataStoresId,
projectsId,
schema,
schemaVersion,
schemaType,
description
)
SELECT
'{{ locationsId }}',
'{{ metadataStoresId }}',
'{{ projectsId }}',
'{{ schema }}',
'{{ schemaVersion }}',
'{{ schemaType }}',
'{{ description }}'
;
- name: your_resource_model_name
props:
- name: schema
value: string
- name: createTime
value: string
- name: schemaVersion
value: string
- name: schemaType
value: string
- name: description
value: string
- name: name
value: string