import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Deploys code and resource files to a new version. * Auto-naming is currently not supported for this resource. */ 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; /** * Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set. */ readonly apiConfig: pulumi.Output; /** * Allows App Engine second generation runtimes to access the legacy bundled services. */ readonly appEngineApis: pulumi.Output; readonly appId: pulumi.Output; /** * Automatic scaling is based on request rate, response latencies, and other application metrics. Instances are dynamically created and destroyed as needed in order to handle traffic. */ readonly automaticScaling: pulumi.Output; /** * A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. */ readonly basicScaling: pulumi.Output; /** * Metadata settings that are supplied to this version to enable beta runtime features. */ readonly betaSettings: pulumi.Output<{ [key: string]: string; }>; /** * Environment variables available to the build environment.Only returned in GET requests if view=FULL is set. */ readonly buildEnvVariables: pulumi.Output<{ [key: string]: string; }>; /** * Time that this version was created. */ readonly createTime: pulumi.Output; /** * Email address of the user who created this version. */ readonly createdBy: pulumi.Output; /** * Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set. */ readonly defaultExpiration: pulumi.Output; /** * Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. */ readonly deployment: pulumi.Output; /** * Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk. */ readonly diskUsageBytes: pulumi.Output; /** * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app. */ readonly endpointsApiService: pulumi.Output; /** * The entrypoint for the application. */ readonly entrypoint: pulumi.Output; /** * App Engine execution environment for this version.Defaults to standard. */ readonly env: pulumi.Output; /** * Environment variables available to the application.Only returned in GET requests if view=FULL is set. */ readonly envVariables: pulumi.Output<{ [key: string]: string; }>; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. */ readonly errorHandlers: pulumi.Output; /** * Settings for App Engine flexible runtimes. */ readonly flexibleRuntimeSettings: pulumi.Output; /** * Additional Google Generated Customer Metadata, this field won't be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest */ readonly generatedCustomerMetadata: pulumi.Output<{ [key: string]: string; }>; /** * An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set. */ readonly handlers: pulumi.Output; /** * Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment. */ readonly healthCheck: pulumi.Output; /** * Before an application can receive email or XMPP messages, the application must be configured to enable the service. */ readonly inboundServices: pulumi.Output; /** * Instance class that is used to run this version. Valid values are: AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. */ readonly instanceClass: pulumi.Output; /** * Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set. */ readonly libraries: pulumi.Output; /** * Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instances */ readonly livenessCheck: pulumi.Output; /** * A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Manually scaled versions are sometimes referred to as "backends". */ readonly manualScaling: pulumi.Output; /** * Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1. */ readonly name: pulumi.Output; /** * Extra network settings. Only applicable in the App Engine flexible environment. */ readonly network: pulumi.Output; /** * Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set. */ readonly nobuildFilesRegex: pulumi.Output; /** * Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation. */ readonly readinessCheck: pulumi.Output; /** * Machine resources for this version. Only applicable in the App Engine flexible environment. */ readonly resources: pulumi.Output; /** * Desired runtime. Example: python27. */ readonly runtime: pulumi.Output; /** * The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref */ readonly runtimeApiVersion: pulumi.Output; /** * The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel. */ readonly runtimeChannel: pulumi.Output; /** * The path or name of the app's main executable. */ readonly runtimeMainExecutablePath: pulumi.Output; /** * The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag. */ readonly serviceAccount: pulumi.Output; readonly serviceId: pulumi.Output; /** * Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. */ readonly servingStatus: pulumi.Output; /** * Whether multiple requests can be dispatched to this version at once. */ readonly threadsafe: pulumi.Output; /** * Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com" */ readonly versionUrl: pulumi.Output; /** * Whether to deploy this version in a container on a virtual machine. */ readonly vm: pulumi.Output; /** * Enables VPC connectivity for standard apps. */ readonly vpcAccessConnector: pulumi.Output; /** * The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated. * * @deprecated The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated. */ readonly zones: 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 { /** * Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set. */ apiConfig?: pulumi.Input; /** * Allows App Engine second generation runtimes to access the legacy bundled services. */ appEngineApis?: pulumi.Input; appId: pulumi.Input; /** * Automatic scaling is based on request rate, response latencies, and other application metrics. Instances are dynamically created and destroyed as needed in order to handle traffic. */ automaticScaling?: pulumi.Input; /** * A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. */ basicScaling?: pulumi.Input; /** * Metadata settings that are supplied to this version to enable beta runtime features. */ betaSettings?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Environment variables available to the build environment.Only returned in GET requests if view=FULL is set. */ buildEnvVariables?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set. */ defaultExpiration?: pulumi.Input; /** * Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. */ deployment?: pulumi.Input; /** * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app. */ endpointsApiService?: pulumi.Input; /** * The entrypoint for the application. */ entrypoint?: pulumi.Input; /** * App Engine execution environment for this version.Defaults to standard. */ env?: pulumi.Input; /** * Environment variables available to the application.Only returned in GET requests if view=FULL is set. */ envVariables?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. */ errorHandlers?: pulumi.Input[]>; /** * Settings for App Engine flexible runtimes. */ flexibleRuntimeSettings?: pulumi.Input; /** * Additional Google Generated Customer Metadata, this field won't be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest */ generatedCustomerMetadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set. */ handlers?: pulumi.Input[]>; /** * Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment. */ healthCheck?: pulumi.Input; /** * Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-". */ id?: pulumi.Input; /** * Before an application can receive email or XMPP messages, the application must be configured to enable the service. */ inboundServices?: pulumi.Input[]>; /** * Instance class that is used to run this version. Valid values are: AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. */ instanceClass?: pulumi.Input; /** * Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set. */ libraries?: pulumi.Input[]>; /** * Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instances */ livenessCheck?: pulumi.Input; /** * A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. Manually scaled versions are sometimes referred to as "backends". */ manualScaling?: pulumi.Input; /** * Extra network settings. Only applicable in the App Engine flexible environment. */ network?: pulumi.Input; /** * Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set. */ nobuildFilesRegex?: pulumi.Input; /** * Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation. */ readinessCheck?: pulumi.Input; /** * Machine resources for this version. Only applicable in the App Engine flexible environment. */ resources?: pulumi.Input; /** * Desired runtime. Example: python27. */ runtime?: pulumi.Input; /** * The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref */ runtimeApiVersion?: pulumi.Input; /** * The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel. */ runtimeChannel?: pulumi.Input; /** * The path or name of the app's main executable. */ runtimeMainExecutablePath?: pulumi.Input; /** * The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag. */ serviceAccount?: pulumi.Input; serviceId: pulumi.Input; /** * Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING. */ servingStatus?: pulumi.Input; /** * Whether multiple requests can be dispatched to this version at once. */ threadsafe?: pulumi.Input; /** * Whether to deploy this version in a container on a virtual machine. */ vm?: pulumi.Input; /** * Enables VPC connectivity for standard apps. */ vpcAccessConnector?: pulumi.Input; /** * The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated. * * @deprecated The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated. */ zones?: pulumi.Input[]>; }