import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource. */ export declare function getVersion(args: GetVersionArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetVersionArgs { appId: string; includeExtraData?: string; serviceId: string; versionId: string; view?: string; } export interface GetVersionResult { /** * Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set. */ readonly apiConfig: outputs.appengine.v1beta.ApiConfigHandlerResponse; /** * Allows App Engine second generation runtimes to access the legacy bundled services. */ readonly appEngineApis: boolean; /** * 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: outputs.appengine.v1beta.AutomaticScalingResponse; /** * 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: outputs.appengine.v1beta.BasicScalingResponse; /** * Metadata settings that are supplied to this version to enable beta runtime features. */ readonly betaSettings: { [key: string]: string; }; /** * Environment variables available to the build environment.Only returned in GET requests if view=FULL is set. */ readonly buildEnvVariables: { [key: string]: string; }; /** * Time that this version was created. */ readonly createTime: string; /** * Email address of the user who created this version. */ readonly createdBy: string; /** * 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/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set. */ readonly defaultExpiration: string; /** * Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. */ readonly deployment: outputs.appengine.v1beta.DeploymentResponse; /** * Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk. */ readonly diskUsageBytes: string; /** * 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: outputs.appengine.v1beta.EndpointsApiServiceResponse; /** * The entrypoint for the application. */ readonly entrypoint: outputs.appengine.v1beta.EntrypointResponse; /** * App Engine execution environment for this version.Defaults to standard. */ readonly env: string; /** * Environment variables available to the application.Only returned in GET requests if view=FULL is set. */ readonly envVariables: { [key: string]: string; }; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. */ readonly errorHandlers: outputs.appengine.v1beta.ErrorHandlerResponse[]; /** * Settings for App Engine flexible runtimes. */ readonly flexibleRuntimeSettings: outputs.appengine.v1beta.FlexibleRuntimeSettingsResponse; /** * 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: { [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: outputs.appengine.v1beta.UrlMapResponse[]; /** * Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment. */ readonly healthCheck: outputs.appengine.v1beta.HealthCheckResponse; /** * Before an application can receive email or XMPP messages, the application must be configured to enable the service. */ readonly inboundServices: string[]; /** * 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: string; /** * 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: outputs.appengine.v1beta.LibraryResponse[]; /** * Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instances */ readonly livenessCheck: outputs.appengine.v1beta.LivenessCheckResponse; /** * 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: outputs.appengine.v1beta.ManualScalingResponse; /** * Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1. */ readonly name: string; /** * Extra network settings. Only applicable in the App Engine flexible environment. */ readonly network: outputs.appengine.v1beta.NetworkResponse; /** * 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: string; /** * Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation. */ readonly readinessCheck: outputs.appengine.v1beta.ReadinessCheckResponse; /** * Machine resources for this version. Only applicable in the App Engine flexible environment. */ readonly resources: outputs.appengine.v1beta.ResourcesResponse; /** * Desired runtime. Example: python27. */ readonly runtime: string; /** * 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: string; /** * The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel. */ readonly runtimeChannel: string; /** * The path or name of the app's main executable. */ readonly runtimeMainExecutablePath: string; /** * 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: string; /** * 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: string; /** * Whether multiple requests can be dispatched to this version at once. */ readonly threadsafe: boolean; /** * Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com" */ readonly versionUrl: string; /** * Whether to deploy this version in a container on a virtual machine. */ readonly vm: boolean; /** * Enables VPC connectivity for standard apps. */ readonly vpcAccessConnector: outputs.appengine.v1beta.VpcAccessConnectorResponse; /** * 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: string[]; } /** * Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource. */ export declare function getVersionOutput(args: GetVersionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetVersionOutputArgs { appId: pulumi.Input; includeExtraData?: pulumi.Input; serviceId: pulumi.Input; versionId: pulumi.Input; view?: pulumi.Input; }