import * as pulumi from "@pulumi/pulumi"; import * as enums from "../../types/enums"; /** * 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. */ export declare class MetadataSchema extends pulumi.CustomResource { /** * Get an existing MetadataSchema resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): MetadataSchema; /** * Returns true if the given object is an instance of MetadataSchema. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MetadataSchema; /** * Timestamp when this MetadataSchema was created. */ readonly createTime: pulumi.Output; /** * Description of the Metadata Schema */ readonly description: pulumi.Output; readonly location: pulumi.Output; /** * 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.) */ readonly metadataSchemaId: pulumi.Output; readonly metadataStoreId: pulumi.Output; /** * The resource name of the MetadataSchema. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * 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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject) */ readonly schema: pulumi.Output; /** * The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema. */ readonly schemaType: pulumi.Output; /** * 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. */ readonly schemaVersion: pulumi.Output; /** * Create a MetadataSchema resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MetadataSchemaArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a MetadataSchema resource. */ export interface MetadataSchemaArgs { /** * Description of the Metadata Schema */ description?: pulumi.Input; location?: pulumi.Input; /** * 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.) */ metadataSchemaId?: pulumi.Input; metadataStoreId: pulumi.Input; project?: pulumi.Input; /** * 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](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject) */ schema: pulumi.Input; /** * The type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema. */ schemaType?: pulumi.Input; /** * 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. */ schemaVersion?: pulumi.Input; }