Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.aiplatform/v1.MetadataSchema
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a MetadataSchema. Auto-naming is currently not supported for this resource. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create MetadataSchema Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetadataSchema(name: string, args: MetadataSchemaArgs, opts?: CustomResourceOptions);
@overload
def MetadataSchema(resource_name: str,
args: MetadataSchemaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetadataSchema(resource_name: str,
opts: Optional[ResourceOptions] = None,
metadata_store_id: Optional[str] = None,
schema: Optional[str] = None,
description: Optional[str] = None,
location: Optional[str] = None,
metadata_schema_id: Optional[str] = None,
project: Optional[str] = None,
schema_type: Optional[MetadataSchemaSchemaType] = None,
schema_version: Optional[str] = None)
func NewMetadataSchema(ctx *Context, name string, args MetadataSchemaArgs, opts ...ResourceOption) (*MetadataSchema, error)
public MetadataSchema(string name, MetadataSchemaArgs args, CustomResourceOptions? opts = null)
public MetadataSchema(String name, MetadataSchemaArgs args)
public MetadataSchema(String name, MetadataSchemaArgs args, CustomResourceOptions options)
type: google-native:aiplatform/v1:MetadataSchema
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MetadataSchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MetadataSchemaArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MetadataSchemaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetadataSchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetadataSchemaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var metadataSchemaResource = new GoogleNative.Aiplatform.V1.MetadataSchema("metadataSchemaResource", new()
{
MetadataStoreId = "string",
Schema = "string",
Description = "string",
Location = "string",
MetadataSchemaId = "string",
Project = "string",
SchemaType = GoogleNative.Aiplatform.V1.MetadataSchemaSchemaType.MetadataSchemaTypeUnspecified,
SchemaVersion = "string",
});
example, err := aiplatform.NewMetadataSchema(ctx, "metadataSchemaResource", &aiplatform.MetadataSchemaArgs{
MetadataStoreId: pulumi.String("string"),
Schema: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
MetadataSchemaId: pulumi.String("string"),
Project: pulumi.String("string"),
SchemaType: aiplatform.MetadataSchemaSchemaTypeMetadataSchemaTypeUnspecified,
SchemaVersion: pulumi.String("string"),
})
var metadataSchemaResource = new MetadataSchema("metadataSchemaResource", MetadataSchemaArgs.builder()
.metadataStoreId("string")
.schema("string")
.description("string")
.location("string")
.metadataSchemaId("string")
.project("string")
.schemaType("METADATA_SCHEMA_TYPE_UNSPECIFIED")
.schemaVersion("string")
.build());
metadata_schema_resource = google_native.aiplatform.v1.MetadataSchema("metadataSchemaResource",
metadata_store_id="string",
schema="string",
description="string",
location="string",
metadata_schema_id="string",
project="string",
schema_type=google_native.aiplatform.v1.MetadataSchemaSchemaType.METADATA_SCHEMA_TYPE_UNSPECIFIED,
schema_version="string")
const metadataSchemaResource = new google_native.aiplatform.v1.MetadataSchema("metadataSchemaResource", {
metadataStoreId: "string",
schema: "string",
description: "string",
location: "string",
metadataSchemaId: "string",
project: "string",
schemaType: google_native.aiplatform.v1.MetadataSchemaSchemaType.MetadataSchemaTypeUnspecified,
schemaVersion: "string",
});
type: google-native:aiplatform/v1:MetadataSchema
properties:
description: string
location: string
metadataSchemaId: string
metadataStoreId: string
project: string
schema: string
schemaType: METADATA_SCHEMA_TYPE_UNSPECIFIED
schemaVersion: string
MetadataSchema Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MetadataSchema resource accepts the following input properties:
- Metadata
Store stringId - Schema string
- 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 - Description string
- Description of the Metadata Schema
- Location string
- Metadata
Schema stringId - 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.) - Project string
- Schema
Type Pulumi.Google Native. Aiplatform. V1. Metadata Schema Schema Type - The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
- Schema
Version 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.
- Metadata
Store stringId - Schema string
- 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 - Description string
- Description of the Metadata Schema
- Location string
- Metadata
Schema stringId - 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.) - Project string
- Schema
Type MetadataSchema Schema Type - The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
- Schema
Version 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.
- metadata
Store StringId - schema String
- 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 - description String
- Description of the Metadata Schema
- location String
- metadata
Schema StringId - 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.) - project String
- schema
Type MetadataSchema Schema Type - The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
- schema
Version 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.
- metadata
Store stringId - schema string
- 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 - description string
- Description of the Metadata Schema
- location string
- metadata
Schema stringId - 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.) - project string
- schema
Type MetadataSchema Schema Type - The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
- schema
Version 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.
- metadata_
store_ strid - schema str
- 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 - description str
- Description of the Metadata Schema
- location str
- metadata_
schema_ strid - 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.) - project str
- schema_
type MetadataSchema Schema Type - The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
- schema_
version str - 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.
- metadata
Store StringId - schema String
- 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 - description String
- Description of the Metadata Schema
- location String
- metadata
Schema StringId - 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.) - project String
- schema
Type "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.
- schema
Version 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetadataSchema resource produces the following output properties:
- Create
Time string - Timestamp when this MetadataSchema was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the MetadataSchema.
- Create
Time string - Timestamp when this MetadataSchema was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the MetadataSchema.
- create
Time String - Timestamp when this MetadataSchema was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the MetadataSchema.
- create
Time string - Timestamp when this MetadataSchema was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the MetadataSchema.
- create_
time str - Timestamp when this MetadataSchema was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the MetadataSchema.
- create
Time String - Timestamp when this MetadataSchema was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the MetadataSchema.
Supporting Types
MetadataSchemaSchemaType, MetadataSchemaSchemaTypeArgs
- Metadata
Schema Type Unspecified - METADATA_SCHEMA_TYPE_UNSPECIFIEDUnspecified type for the MetadataSchema.
- Artifact
Type - ARTIFACT_TYPEA type indicating that the MetadataSchema will be used by Artifacts.
- Execution
Type - EXECUTION_TYPEA typee indicating that the MetadataSchema will be used by Executions.
- Context
Type - CONTEXT_TYPEA state indicating that the MetadataSchema will be used by Contexts.
- Metadata
Schema Schema Type Metadata Schema Type Unspecified - METADATA_SCHEMA_TYPE_UNSPECIFIEDUnspecified type for the MetadataSchema.
- Metadata
Schema Schema Type Artifact Type - ARTIFACT_TYPEA type indicating that the MetadataSchema will be used by Artifacts.
- Metadata
Schema Schema Type Execution Type - EXECUTION_TYPEA typee indicating that the MetadataSchema will be used by Executions.
- Metadata
Schema Schema Type Context Type - CONTEXT_TYPEA state indicating that the MetadataSchema will be used by Contexts.
- Metadata
Schema Type Unspecified - METADATA_SCHEMA_TYPE_UNSPECIFIEDUnspecified type for the MetadataSchema.
- Artifact
Type - ARTIFACT_TYPEA type indicating that the MetadataSchema will be used by Artifacts.
- Execution
Type - EXECUTION_TYPEA typee indicating that the MetadataSchema will be used by Executions.
- Context
Type - CONTEXT_TYPEA state indicating that the MetadataSchema will be used by Contexts.
- Metadata
Schema Type Unspecified - METADATA_SCHEMA_TYPE_UNSPECIFIEDUnspecified type for the MetadataSchema.
- Artifact
Type - ARTIFACT_TYPEA type indicating that the MetadataSchema will be used by Artifacts.
- Execution
Type - EXECUTION_TYPEA typee indicating that the MetadataSchema will be used by Executions.
- Context
Type - CONTEXT_TYPEA state indicating that the MetadataSchema will be used by Contexts.
- METADATA_SCHEMA_TYPE_UNSPECIFIED
- METADATA_SCHEMA_TYPE_UNSPECIFIEDUnspecified type for the MetadataSchema.
- ARTIFACT_TYPE
- ARTIFACT_TYPEA type indicating that the MetadataSchema will be used by Artifacts.
- EXECUTION_TYPE
- EXECUTION_TYPEA typee indicating that the MetadataSchema will be used by Executions.
- CONTEXT_TYPE
- CONTEXT_TYPEA state indicating that the MetadataSchema will be used by Contexts.
- "METADATA_SCHEMA_TYPE_UNSPECIFIED"
- METADATA_SCHEMA_TYPE_UNSPECIFIEDUnspecified type for the MetadataSchema.
- "ARTIFACT_TYPE"
- ARTIFACT_TYPEA type indicating that the MetadataSchema will be used by Artifacts.
- "EXECUTION_TYPE"
- EXECUTION_TYPEA typee indicating that the MetadataSchema will be used by Executions.
- "CONTEXT_TYPE"
- CONTEXT_TYPEA state indicating that the MetadataSchema will be used by Contexts.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.