import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a new version for the specified site. */ export declare class Version extends pulumi.CustomResource { /** * Get an existing Version 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): Version; /** * Returns true if the given object is an instance of Version. 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 Version; /** * The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](https://firebase.google.com/docs/cli/#the_firebasejson_file) file. */ readonly config: pulumi.Output; /** * The time at which the version was created. */ readonly createTime: pulumi.Output; /** * Identifies the user who created the version. */ readonly createUser: pulumi.Output; /** * The time at which the version was `DELETED`. */ readonly deleteTime: pulumi.Output; /** * Identifies the user who `DELETED` the version. */ readonly deleteUser: pulumi.Output; /** * The total number of files associated with the version. This value is calculated after a version is `FINALIZED`. */ readonly fileCount: pulumi.Output; /** * The time at which the version was `FINALIZED`. */ readonly finalizeTime: pulumi.Output; /** * Identifies the user who `FINALIZED` the version. */ readonly finalizeUser: pulumi.Output; /** * The labels used for extra metadata and/or filtering. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call [`CreateVersion`](sites.versions/create). */ readonly name: pulumi.Output; readonly project: pulumi.Output; readonly siteId: pulumi.Output; /** * The self-reported size of the version. This value is used for a pre-emptive quota check for legacy version uploads. */ readonly sizeBytes: pulumi.Output; /** * The deploy status of the version. For a successful deploy, call [`CreateVersion`](sites.versions/create) to make a new version (`CREATED` status), [upload all desired files](sites.versions/populateFiles) to the version, then [update](sites.versions/patch) the version to the `FINALIZED` status. Note that if you leave the version in the `CREATED` state for more than 12 hours, the system will automatically mark the version as `ABANDONED`. You can also change the status of a version to `DELETED` by calling [`DeleteVersion`](sites.versions/delete). */ readonly status: pulumi.Output; /** * The total stored bytesize of the version. This value is calculated after a version is `FINALIZED`. */ readonly versionBytes: pulumi.Output; /** * A unique id for the new version. This is was only specified for legacy version creations, and should be blank. */ readonly versionId: pulumi.Output; /** * Create a Version 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: VersionArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Version resource. */ export interface VersionArgs { /** * The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](https://firebase.google.com/docs/cli/#the_firebasejson_file) file. */ config?: pulumi.Input; /** * The labels used for extra metadata and/or filtering. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call [`CreateVersion`](sites.versions/create). */ name?: pulumi.Input; project?: pulumi.Input; siteId: pulumi.Input; /** * The self-reported size of the version. This value is used for a pre-emptive quota check for legacy version uploads. */ sizeBytes?: pulumi.Input; /** * A unique id for the new version. This is was only specified for legacy version creations, and should be blank. */ versionId?: pulumi.Input; }