import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a share. * Auto-naming is currently not supported for this resource. */ export declare class Share extends pulumi.CustomResource { /** * Get an existing Share 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): Share; /** * Returns true if the given object is an instance of Share. 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 Share; /** * Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup. */ readonly backup: pulumi.Output; /** * File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0. */ readonly capacityGb: pulumi.Output; /** * The time when the share was created. */ readonly createTime: pulumi.Output; /** * A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected. */ readonly description: pulumi.Output; readonly instanceId: pulumi.Output; /** * Resource labels to represent user provided metadata. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores. */ readonly mountName: pulumi.Output; /** * The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`. */ readonly name: pulumi.Output; /** * Nfs Export Options. There is a limit of 10 export options per file share. */ readonly nfsExportOptions: pulumi.Output; readonly project: pulumi.Output; /** * Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. */ readonly shareId: pulumi.Output; /** * The share state. */ readonly state: pulumi.Output; /** * Create a Share 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: ShareArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Share resource. */ export interface ShareArgs { /** * Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup. */ backup?: pulumi.Input; /** * File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0. */ capacityGb?: pulumi.Input; /** * A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected. */ description?: pulumi.Input; instanceId: pulumi.Input; /** * Resource labels to represent user provided metadata. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores. */ mountName?: pulumi.Input; /** * Nfs Export Options. There is a limit of 10 export options per file share. */ nfsExportOptions?: pulumi.Input[]>; project?: pulumi.Input; /** * Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. */ shareId: pulumi.Input; }