import * as pulumi from "@pulumi/pulumi"; /** * Creates a Context associated with a MetadataStore. */ export declare class Context extends pulumi.CustomResource { /** * Get an existing Context 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): Context; /** * Returns true if the given object is an instance of Context. 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 Context; /** * The {context} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, the Context'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 Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.) */ readonly contextId: pulumi.Output; /** * Timestamp when this Context was created. */ readonly createTime: pulumi.Output; /** * Description of the Context */ readonly description: pulumi.Output; /** * User provided display name of the Context. May be up to 128 Unicode characters. */ readonly displayName: pulumi.Output; /** * An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */ readonly etag: pulumi.Output; /** * The labels with user-defined metadata to organize your Contexts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Context (System labels are excluded). */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * Properties of the Context. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB. */ readonly metadata: pulumi.Output<{ [key: string]: string; }>; readonly metadataStoreId: pulumi.Output; /** * Immutable. The resource name of the Context. */ readonly name: pulumi.Output; /** * A list of resource names of Contexts that are parents of this Context. A Context may have at most 10 parent_contexts. */ readonly parentContexts: pulumi.Output; readonly project: pulumi.Output; /** * The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. */ readonly schemaTitle: pulumi.Output; /** * The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. */ readonly schemaVersion: pulumi.Output; /** * Timestamp when this Context was last updated. */ readonly updateTime: pulumi.Output; /** * Create a Context 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: ContextArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Context resource. */ export interface ContextArgs { /** * The {context} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, the Context'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 Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.) */ contextId?: pulumi.Input; /** * Description of the Context */ description?: pulumi.Input; /** * User provided display name of the Context. May be up to 128 Unicode characters. */ displayName?: pulumi.Input; /** * An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. */ etag?: pulumi.Input; /** * The labels with user-defined metadata to organize your Contexts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Context (System labels are excluded). */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * Properties of the Context. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; metadataStoreId: pulumi.Input; /** * Immutable. The resource name of the Context. */ name?: pulumi.Input; project?: pulumi.Input; /** * The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. */ schemaTitle?: pulumi.Input; /** * The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store. */ schemaVersion?: pulumi.Input; }