v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132661,4471.5 MB
projects

Creates a MetadataSchema.

post/v1/{+parent}/metadataSchemas

Path parameters

parentstring required

Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

Query parameters

metadataSchemaIdstring

The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)

Request body

createTimestring google-datetime

Output only. Timestamp when this MetadataSchema was created.

namestring

Output only. The resource name of the MetadataSchema.

descriptionstring

Description of the Metadata Schema

schemaVersionstring

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.

schemaType'METADATA_SCHEMA_TYPE_UNSPECIFIED' | 'ARTIFACT_TYPE' | 'EXECUTION_TYPE' | 'CONTEXT_TYPE'

The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.

schemastring

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

Response

Successful response