appengine.v1alpha1.appEngineStandardAppVersion
Index
fn new(name)
obj metadata
fn withAnnotations(annotations)
fn withAnnotationsMixin(annotations)
fn withClusterName(clusterName)
fn withCreationTimestamp(creationTimestamp)
fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
fn withDeletionTimestamp(deletionTimestamp)
fn withFinalizers(finalizers)
fn withFinalizersMixin(finalizers)
fn withGenerateName(generateName)
fn withGeneration(generation)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withName(name)
fn withNamespace(namespace)
fn withOwnerReferences(ownerReferences)
fn withOwnerReferencesMixin(ownerReferences)
fn withResourceVersion(resourceVersion)
fn withSelfLink(selfLink)
fn withUid(uid)
obj spec
fn withAppEngineApis(appEngineApis)
fn withDeleteServiceOnDestroy(deleteServiceOnDestroy)
fn withEnvVariables(envVariables)
fn withEnvVariablesMixin(envVariables)
fn withHandlers(handlers)
fn withHandlersMixin(handlers)
fn withInboundServices(inboundServices)
fn withInboundServicesMixin(inboundServices)
fn withInstanceClass(instanceClass)
fn withLibraries(libraries)
fn withLibrariesMixin(libraries)
fn withNoopOnDestroy(noopOnDestroy)
fn withProject(project)
fn withResourceID(resourceID)
fn withRuntime(runtime)
fn withRuntimeApiVersion(runtimeApiVersion)
fn withServiceAccount(serviceAccount)
fn withThreadsafe(threadsafe)
obj spec.automaticScaling
obj spec.basicScaling
obj spec.deployment
obj spec.entrypoint
obj spec.handlers
obj spec.libraries
obj spec.manualScaling
obj spec.serviceRef
obj spec.vpcAccessConnector
Fields
fn new
new(name)
new returns an instance of AppEngineStandardAppVersion
obj metadata
"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."
fn metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
fn metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
Note: This function appends passed data to existing values
fn metadata.withClusterName
withClusterName(clusterName)
"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."
fn metadata.withCreationTimestamp
withCreationTimestamp(creationTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withDeletionGracePeriodSeconds
withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."
fn metadata.withDeletionTimestamp
withDeletionTimestamp(deletionTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withFinalizers
withFinalizers(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
fn metadata.withFinalizersMixin
withFinalizersMixin(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
Note: This function appends passed data to existing values
fn metadata.withGenerateName
withGenerateName(generateName)
"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"
fn metadata.withGeneration
withGeneration(generation)
"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."
fn metadata.withLabels
withLabels(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
fn metadata.withLabelsMixin
withLabelsMixin(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
Note: This function appends passed data to existing values
fn metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
fn metadata.withNamespace
withNamespace(namespace)
"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"
fn metadata.withOwnerReferences
withOwnerReferences(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
fn metadata.withOwnerReferencesMixin
withOwnerReferencesMixin(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
Note: This function appends passed data to existing values
fn metadata.withResourceVersion
withResourceVersion(resourceVersion)
"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn metadata.withSelfLink
withSelfLink(selfLink)
"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."
fn metadata.withUid
withUid(uid)
"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"
obj spec
fn spec.withAppEngineApis
withAppEngineApis(appEngineApis)
"Allows App Engine second generation runtimes to access the legacy bundled services."
fn spec.withDeleteServiceOnDestroy
withDeleteServiceOnDestroy(deleteServiceOnDestroy)
"If set to 'true', the service will be deleted if it is the last version."
fn spec.withEnvVariables
withEnvVariables(envVariables)
"Environment variables available to the application."
fn spec.withEnvVariablesMixin
withEnvVariablesMixin(envVariables)
"Environment variables available to the application."
Note: This function appends passed data to existing values
fn spec.withHandlers
withHandlers(handlers)
"An ordered list of URL-matching patterns that should be applied to incoming requests.\nThe first matching URL handles the request and other request handlers are not attempted."
fn spec.withHandlersMixin
withHandlersMixin(handlers)
"An ordered list of URL-matching patterns that should be applied to incoming requests.\nThe first matching URL handles the request and other request handlers are not attempted."
Note: This function appends passed data to existing values
fn spec.withInboundServices
withInboundServices(inboundServices)
"A list of the types of messages that this application is able to receive. Possible values: [\"INBOUND_SERVICE_MAIL\", \"INBOUND_SERVICE_MAIL_BOUNCE\", \"INBOUND_SERVICE_XMPP_ERROR\", \"INBOUND_SERVICE_XMPP_MESSAGE\", \"INBOUND_SERVICE_XMPP_SUBSCRIBE\", \"INBOUND_SERVICE_XMPP_PRESENCE\", \"INBOUND_SERVICE_CHANNEL_PRESENCE\", \"INBOUND_SERVICE_WARMUP\"]."
fn spec.withInboundServicesMixin
withInboundServicesMixin(inboundServices)
"A list of the types of messages that this application is able to receive. Possible values: [\"INBOUND_SERVICE_MAIL\", \"INBOUND_SERVICE_MAIL_BOUNCE\", \"INBOUND_SERVICE_XMPP_ERROR\", \"INBOUND_SERVICE_XMPP_MESSAGE\", \"INBOUND_SERVICE_XMPP_SUBSCRIBE\", \"INBOUND_SERVICE_XMPP_PRESENCE\", \"INBOUND_SERVICE_CHANNEL_PRESENCE\", \"INBOUND_SERVICE_WARMUP\"]."
Note: This function appends passed data to existing values
fn spec.withInstanceClass
withInstanceClass(instanceClass)
"Instance class that is used to run this version. Valid values are\nAutomaticScaling: F1, F2, F4, F4_1G\nBasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8\nDefaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen."
fn spec.withLibraries
withLibraries(libraries)
"Configuration for third-party Python runtime libraries that are required by the application."
fn spec.withLibrariesMixin
withLibrariesMixin(libraries)
"Configuration for third-party Python runtime libraries that are required by the application."
Note: This function appends passed data to existing values
fn spec.withNoopOnDestroy
withNoopOnDestroy(noopOnDestroy)
"If set to 'true', the application version will not be deleted."
fn spec.withProject
withProject(project)
"Immutable."
fn spec.withResourceID
withResourceID(resourceID)
"Immutable. Optional. The versionId of the resource. Used for creation and acquisition. When unset, the value of metadata.name
is used as the default."
fn spec.withRuntime
withRuntime(runtime)
"Desired runtime. Example python27."
fn spec.withRuntimeApiVersion
withRuntimeApiVersion(runtimeApiVersion)
"The version of the API in the given runtime environment.\nPlease see the app.yaml reference for valid values at 'https://cloud.google.com/appengine/docs/standard/
fn spec.withServiceAccount
withServiceAccount(serviceAccount)
"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."
fn spec.withThreadsafe
withThreadsafe(threadsafe)
"Whether multiple requests can be dispatched to this version at once."
obj spec.automaticScaling
"Automatic scaling is based on request rate, response latencies, and other application metrics."
fn spec.automaticScaling.withMaxConcurrentRequests
withMaxConcurrentRequests(maxConcurrentRequests)
"Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.\n\nDefaults to a runtime-specific value."
fn spec.automaticScaling.withMaxIdleInstances
withMaxIdleInstances(maxIdleInstances)
"Maximum number of idle instances that should be maintained for this version."
fn spec.automaticScaling.withMaxPendingLatency
withMaxPendingLatency(maxPendingLatency)
"Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.\nA duration in seconds with up to nine fractional digits, terminated by 's'. Example: \"3.5s\"."
fn spec.automaticScaling.withMinIdleInstances
withMinIdleInstances(minIdleInstances)
"Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service."
fn spec.automaticScaling.withMinPendingLatency
withMinPendingLatency(minPendingLatency)
"Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.\nA duration in seconds with up to nine fractional digits, terminated by 's'. Example: \"3.5s\"."
obj spec.automaticScaling.standardSchedulerSettings
"Scheduler settings for standard environment."
fn spec.automaticScaling.standardSchedulerSettings.withMaxInstances
withMaxInstances(maxInstances)
"Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration."
fn spec.automaticScaling.standardSchedulerSettings.withMinInstances
withMinInstances(minInstances)
"Minimum number of instances to run for this version. Set to zero to disable minInstances configuration."
fn spec.automaticScaling.standardSchedulerSettings.withTargetCpuUtilization
withTargetCpuUtilization(targetCpuUtilization)
"Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value."
fn spec.automaticScaling.standardSchedulerSettings.withTargetThroughputUtilization
withTargetThroughputUtilization(targetThroughputUtilization)
"Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value."
obj spec.basicScaling
"Basic scaling creates instances when your application receives requests. Each instance will be shut down when the application becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity."
fn spec.basicScaling.withIdleTimeout
withIdleTimeout(idleTimeout)
"Duration of time after the last request that an instance must wait before the instance is shut down.\nA duration in seconds with up to nine fractional digits, terminated by 's'. Example: \"3.5s\". Defaults to 900s."
fn spec.basicScaling.withMaxInstances
withMaxInstances(maxInstances)
"Maximum number of instances to create for this version. Must be in the range [1.0, 200.0]."
obj spec.deployment
"Code and application artifacts that make up this version."
fn spec.deployment.withFiles
withFiles(files)
"Manifest of the files stored in Google Cloud Storage that are included as part of this version.\nAll files must be readable using the credentials supplied with this call."
fn spec.deployment.withFilesMixin
withFilesMixin(files)
"Manifest of the files stored in Google Cloud Storage that are included as part of this version.\nAll files must be readable using the credentials supplied with this call."
Note: This function appends passed data to existing values
obj spec.deployment.files
"Manifest of the files stored in Google Cloud Storage that are included as part of this version.\nAll files must be readable using the credentials supplied with this call."
fn spec.deployment.files.withName
withName(name)
fn spec.deployment.files.withSha1Sum
withSha1Sum(sha1Sum)
"SHA1 checksum of the file."
fn spec.deployment.files.withSourceUrl
withSourceUrl(sourceUrl)
"Source URL."
obj spec.deployment.zip
"Zip File."
fn spec.deployment.zip.withFilesCount
withFilesCount(filesCount)
"files count."
fn spec.deployment.zip.withSourceUrl
withSourceUrl(sourceUrl)
"Source URL."
obj spec.entrypoint
"The entrypoint for the application."
fn spec.entrypoint.withShell
withShell(shell)
"The format should be a shell command that can be fed to bash -c."
obj spec.handlers
"An ordered list of URL-matching patterns that should be applied to incoming requests.\nThe first matching URL handles the request and other request handlers are not attempted."
fn spec.handlers.withAuthFailAction
withAuthFailAction(authFailAction)
"Actions to take when the user is not logged in. Possible values: [\"AUTH_FAIL_ACTION_REDIRECT\", \"AUTH_FAIL_ACTION_UNAUTHORIZED\"]."
fn spec.handlers.withLogin
withLogin(login)
"Methods to restrict access to a URL based on login status. Possible values: [\"LOGIN_OPTIONAL\", \"LOGIN_ADMIN\", \"LOGIN_REQUIRED\"]."
fn spec.handlers.withRedirectHttpResponseCode
withRedirectHttpResponseCode(redirectHttpResponseCode)
"30x code to use when performing redirects for the secure field. Possible values: [\"REDIRECT_HTTP_RESPONSE_CODE_301\", \"REDIRECT_HTTP_RESPONSE_CODE_302\", \"REDIRECT_HTTP_RESPONSE_CODE_303\", \"REDIRECT_HTTP_RESPONSE_CODE_307\"]."
fn spec.handlers.withSecurityLevel
withSecurityLevel(securityLevel)
"Security (HTTPS) enforcement for this URL. Possible values: [\"SECURE_DEFAULT\", \"SECURE_NEVER\", \"SECURE_OPTIONAL\", \"SECURE_ALWAYS\"]."
fn spec.handlers.withUrlRegex
withUrlRegex(urlRegex)
"URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings.\nAll URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path."
obj spec.handlers.script
"Executes a script to handle the requests that match this URL pattern.\nOnly the auto value is supported for Node.js in the App Engine standard environment, for example \"script:\" \"auto\"."
fn spec.handlers.script.withScriptPath
withScriptPath(scriptPath)
"Path to the script from the application root directory."
obj spec.handlers.staticFiles
"Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them."
fn spec.handlers.staticFiles.withApplicationReadable
withApplicationReadable(applicationReadable)
"Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as\nstatic data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged\nagainst both your code and static data storage resource quotas."
fn spec.handlers.staticFiles.withExpiration
withExpiration(expiration)
"Time a static file served by this handler should be cached by web proxies and browsers.\nA duration in seconds with up to nine fractional digits, terminated by 's'. Example \"3.5s\"."
fn spec.handlers.staticFiles.withHttpHeaders
withHttpHeaders(httpHeaders)
"HTTP headers to use for all responses from these URLs.\nAn object containing a list of \"key:value\" value pairs.\"."
fn spec.handlers.staticFiles.withHttpHeadersMixin
withHttpHeadersMixin(httpHeaders)
"HTTP headers to use for all responses from these URLs.\nAn object containing a list of \"key:value\" value pairs.\"."
Note: This function appends passed data to existing values
fn spec.handlers.staticFiles.withMimeType
withMimeType(mimeType)
"MIME type used to serve all files served by this handler.\nDefaults to file-specific MIME types, which are derived from each file's filename extension."
fn spec.handlers.staticFiles.withPath
withPath(path)
"Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern."
fn spec.handlers.staticFiles.withRequireMatchingFile
withRequireMatchingFile(requireMatchingFile)
"Whether this handler should match the request if the file referenced by the handler does not exist."
fn spec.handlers.staticFiles.withUploadPathRegex
withUploadPathRegex(uploadPathRegex)
"Regular expression that matches the file paths for all files that should be referenced by this handler."
obj spec.libraries
"Configuration for third-party Python runtime libraries that are required by the application."
fn spec.libraries.withName
withName(name)
"Name of the library. Example \"django\"."
fn spec.libraries.withVersion
withVersion(version)
"Version of the library to select, or \"latest\"."
obj spec.manualScaling
"A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time."
fn spec.manualScaling.withInstances
withInstances(instances)
"Number of instances to assign to the service at the start.\n\nNote: When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2\nModules API set_num_instances() you must use 'lifecycle.ignore_changes = [\"manual_scaling\"[0].instances]' to prevent drift detection."
obj spec.serviceRef
fn spec.serviceRef.withExternal
withExternal(external)
"Allowed value: The name
field of an AppEngineService
resource."
fn spec.serviceRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.serviceRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.vpcAccessConnector
"Enables VPC connectivity for standard apps."
fn spec.vpcAccessConnector.withEgressSetting
withEgressSetting(egressSetting)
"The egress setting for the connector, controlling what traffic is diverted through it."
fn spec.vpcAccessConnector.withName
withName(name)
"Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1."