Skip to content

cloudfunctions2.v1beta1.function

"Function is the Schema for the Functions API. A Cloud Function that contains user computation executed in response to an event."

Index

Fields

fn new

new(name)

new returns an instance of Function

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"

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

"FunctionSpec defines the desired state of Function"

fn spec.withDeletionPolicy

withDeletionPolicy(deletionPolicy)

"DeletionPolicy specifies what will happen to the underlying external when this managed resource is deleted - either \"Delete\" or \"Orphan\" the external resource. This field is planned to be deprecated in favor of the ManagementPolicies field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223"

fn spec.withManagementPolicies

withManagementPolicies(managementPolicies)

"THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md"

fn spec.withManagementPoliciesMixin

withManagementPoliciesMixin(managementPolicies)

"THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md"

Note: This function appends passed data to existing values

obj spec.forProvider

fn spec.forProvider.withBuildConfig

withBuildConfig(buildConfig)

"Describes the Build step of the function that builds a container from the given source. Structure is documented below."

fn spec.forProvider.withBuildConfigMixin

withBuildConfigMixin(buildConfig)

"Describes the Build step of the function that builds a container from the given source. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.withDescription

withDescription(description)

"User-provided description of a function."

fn spec.forProvider.withEventTrigger

withEventTrigger(eventTrigger)

"An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below."

fn spec.forProvider.withEventTriggerMixin

withEventTriggerMixin(eventTrigger)

"An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.withLabels

withLabels(labels)

"A set of key/value label pairs associated with this Cloud Function."

fn spec.forProvider.withLabelsMixin

withLabelsMixin(labels)

"A set of key/value label pairs associated with this Cloud Function."

Note: This function appends passed data to existing values

fn spec.forProvider.withLocation

withLocation(location)

"The location of this cloud function."

fn spec.forProvider.withProject

withProject(project)

"The ID of the project in which the resource belongs. If it is not provided, the provider project is used."

fn spec.forProvider.withServiceConfig

withServiceConfig(serviceConfig)

"Describes the Service being deployed. Structure is documented below."

fn spec.forProvider.withServiceConfigMixin

withServiceConfigMixin(serviceConfig)

"Describes the Service being deployed. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.buildConfig

"Describes the Build step of the function that builds a container from the given source. Structure is documented below."

fn spec.forProvider.buildConfig.withDockerRepository

withDockerRepository(dockerRepository)

"User managed repository created in Artifact Registry optionally with a customer managed encryption key."

fn spec.forProvider.buildConfig.withEntryPoint

withEntryPoint(entryPoint)

"The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named \"function\". For Node.js this is name of a function exported by the module specified in source_location."

fn spec.forProvider.buildConfig.withEnvironmentVariables

withEnvironmentVariables(environmentVariables)

"User-provided build-time environment variables for the function."

fn spec.forProvider.buildConfig.withEnvironmentVariablesMixin

withEnvironmentVariablesMixin(environmentVariables)

"User-provided build-time environment variables for the function."

Note: This function appends passed data to existing values

fn spec.forProvider.buildConfig.withRuntime

withRuntime(runtime)

"The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function."

fn spec.forProvider.buildConfig.withSource

withSource(source)

"The location of the function source code. Structure is documented below."

fn spec.forProvider.buildConfig.withSourceMixin

withSourceMixin(source)

"The location of the function source code. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.buildConfig.withWorkerPool

withWorkerPool(workerPool)

"Name of the Cloud Build Custom Worker Pool that should be used to build the function."

obj spec.forProvider.buildConfig.source

"The location of the function source code. Structure is documented below."

fn spec.forProvider.buildConfig.source.withRepoSource

withRepoSource(repoSource)

"If provided, get the source from this location in a Cloud Source Repository. Structure is documented below."

fn spec.forProvider.buildConfig.source.withRepoSourceMixin

withRepoSourceMixin(repoSource)

"If provided, get the source from this location in a Cloud Source Repository. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.buildConfig.source.withStorageSource

withStorageSource(storageSource)

"If provided, get the source from this location in Google Cloud Storage. Structure is documented below."

fn spec.forProvider.buildConfig.source.withStorageSourceMixin

withStorageSourceMixin(storageSource)

"If provided, get the source from this location in Google Cloud Storage. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.buildConfig.source.repoSource

"If provided, get the source from this location in a Cloud Source Repository. Structure is documented below."

fn spec.forProvider.buildConfig.source.repoSource.withBranchName

withBranchName(branchName)

"Regex matching branches to build."

fn spec.forProvider.buildConfig.source.repoSource.withCommitSha

withCommitSha(commitSha)

"Regex matching tags to build."

fn spec.forProvider.buildConfig.source.repoSource.withDir

withDir(dir)

"Directory, relative to the source root, in which to run the build."

fn spec.forProvider.buildConfig.source.repoSource.withInvertRegex

withInvertRegex(invertRegex)

"Only trigger a build if the revision regex does NOT match the revision regex."

fn spec.forProvider.buildConfig.source.repoSource.withProjectId

withProjectId(projectId)

"Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function."

fn spec.forProvider.buildConfig.source.repoSource.withRepoName

withRepoName(repoName)

"Name of the Cloud Source Repository."

fn spec.forProvider.buildConfig.source.repoSource.withTagName

withTagName(tagName)

"Regex matching tags to build."

obj spec.forProvider.buildConfig.source.storageSource

"If provided, get the source from this location in Google Cloud Storage. Structure is documented below."

fn spec.forProvider.buildConfig.source.storageSource.withBucket

withBucket(bucket)

"Google Cloud Storage bucket containing the source"

fn spec.forProvider.buildConfig.source.storageSource.withGeneration

withGeneration(generation)

"Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used."

fn spec.forProvider.buildConfig.source.storageSource.withObject

withObject(object)

"Google Cloud Storage object containing the source."

obj spec.forProvider.buildConfig.source.storageSource.bucketRef

"Reference to a Bucket in storage to populate bucket."

fn spec.forProvider.buildConfig.source.storageSource.bucketRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.buildConfig.source.storageSource.bucketRef.policy

"Policies for referencing."

fn spec.forProvider.buildConfig.source.storageSource.bucketRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.buildConfig.source.storageSource.bucketRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.buildConfig.source.storageSource.bucketSelector

"Selector for a Bucket in storage to populate bucket."

fn spec.forProvider.buildConfig.source.storageSource.bucketSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.buildConfig.source.storageSource.bucketSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.buildConfig.source.storageSource.bucketSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.buildConfig.source.storageSource.bucketSelector.policy

"Policies for selection."

fn spec.forProvider.buildConfig.source.storageSource.bucketSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.buildConfig.source.storageSource.bucketSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.buildConfig.source.storageSource.objectRef

"Reference to a BucketObject in storage to populate object."

fn spec.forProvider.buildConfig.source.storageSource.objectRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.buildConfig.source.storageSource.objectRef.policy

"Policies for referencing."

fn spec.forProvider.buildConfig.source.storageSource.objectRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.buildConfig.source.storageSource.objectRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.buildConfig.source.storageSource.objectSelector

"Selector for a BucketObject in storage to populate object."

fn spec.forProvider.buildConfig.source.storageSource.objectSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.buildConfig.source.storageSource.objectSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.buildConfig.source.storageSource.objectSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.buildConfig.source.storageSource.objectSelector.policy

"Policies for selection."

fn spec.forProvider.buildConfig.source.storageSource.objectSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.buildConfig.source.storageSource.objectSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.buildConfig.workerPoolRef

"Reference to a WorkerPool in cloudbuild to populate workerPool."

fn spec.forProvider.buildConfig.workerPoolRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.buildConfig.workerPoolRef.policy

"Policies for referencing."

fn spec.forProvider.buildConfig.workerPoolRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.buildConfig.workerPoolRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.buildConfig.workerPoolSelector

"Selector for a WorkerPool in cloudbuild to populate workerPool."

fn spec.forProvider.buildConfig.workerPoolSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.buildConfig.workerPoolSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.buildConfig.workerPoolSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.buildConfig.workerPoolSelector.policy

"Policies for selection."

fn spec.forProvider.buildConfig.workerPoolSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.buildConfig.workerPoolSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.eventTrigger

"An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below."

fn spec.forProvider.eventTrigger.withEventFilters

withEventFilters(eventFilters)

"Criteria used to filter events. Structure is documented below."

fn spec.forProvider.eventTrigger.withEventFiltersMixin

withEventFiltersMixin(eventFilters)

"Criteria used to filter events. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.eventTrigger.withEventType

withEventType(eventType)

"Required. The type of event to observe."

fn spec.forProvider.eventTrigger.withPubsubTopic

withPubsubTopic(pubsubTopic)

"The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery."

fn spec.forProvider.eventTrigger.withRetryPolicy

withRetryPolicy(retryPolicy)

"Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values are: RETRY_POLICY_UNSPECIFIED, RETRY_POLICY_DO_NOT_RETRY, RETRY_POLICY_RETRY."

fn spec.forProvider.eventTrigger.withServiceAccountEmail

withServiceAccountEmail(serviceAccountEmail)

"The email of the service account for this function."

fn spec.forProvider.eventTrigger.withTriggerRegion

withTriggerRegion(triggerRegion)

"The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function."

obj spec.forProvider.eventTrigger.eventFilters

"Criteria used to filter events. Structure is documented below."

fn spec.forProvider.eventTrigger.eventFilters.withAttribute

withAttribute(attribute)

"'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the gcloud eventarc providers describe command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's event_type attribute."

fn spec.forProvider.eventTrigger.eventFilters.withOperator

withOperator(operator)

"Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern. See documentation on path patterns here'"

fn spec.forProvider.eventTrigger.eventFilters.withValue

withValue(value)

"Required. The value for the attribute. If the operator field is set as match-path-pattern, this value can be a path pattern instead of an exact value."

obj spec.forProvider.eventTrigger.eventFilters.valueRef

"Reference to a Bucket in storage to populate value."

fn spec.forProvider.eventTrigger.eventFilters.valueRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.eventTrigger.eventFilters.valueRef.policy

"Policies for referencing."

fn spec.forProvider.eventTrigger.eventFilters.valueRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.eventTrigger.eventFilters.valueRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.eventTrigger.eventFilters.valueSelector

"Selector for a Bucket in storage to populate value."

fn spec.forProvider.eventTrigger.eventFilters.valueSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.eventTrigger.eventFilters.valueSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.eventTrigger.eventFilters.valueSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.eventTrigger.eventFilters.valueSelector.policy

"Policies for selection."

fn spec.forProvider.eventTrigger.eventFilters.valueSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.eventTrigger.eventFilters.valueSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.eventTrigger.pubsubTopicRef

"Reference to a Topic in pubsub to populate pubsubTopic."

fn spec.forProvider.eventTrigger.pubsubTopicRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.eventTrigger.pubsubTopicRef.policy

"Policies for referencing."

fn spec.forProvider.eventTrigger.pubsubTopicRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.eventTrigger.pubsubTopicRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.eventTrigger.pubsubTopicSelector

"Selector for a Topic in pubsub to populate pubsubTopic."

fn spec.forProvider.eventTrigger.pubsubTopicSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.eventTrigger.pubsubTopicSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.eventTrigger.pubsubTopicSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.eventTrigger.pubsubTopicSelector.policy

"Policies for selection."

fn spec.forProvider.eventTrigger.pubsubTopicSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.eventTrigger.pubsubTopicSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.eventTrigger.serviceAccountEmailRef

"Reference to a ServiceAccount in cloudplatform to populate serviceAccountEmail."

fn spec.forProvider.eventTrigger.serviceAccountEmailRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.eventTrigger.serviceAccountEmailRef.policy

"Policies for referencing."

fn spec.forProvider.eventTrigger.serviceAccountEmailRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.eventTrigger.serviceAccountEmailRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.eventTrigger.serviceAccountEmailSelector

"Selector for a ServiceAccount in cloudplatform to populate serviceAccountEmail."

fn spec.forProvider.eventTrigger.serviceAccountEmailSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.eventTrigger.serviceAccountEmailSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.eventTrigger.serviceAccountEmailSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.eventTrigger.serviceAccountEmailSelector.policy

"Policies for selection."

fn spec.forProvider.eventTrigger.serviceAccountEmailSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.eventTrigger.serviceAccountEmailSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.serviceConfig

"Describes the Service being deployed. Structure is documented below."

fn spec.forProvider.serviceConfig.withAllTrafficOnLatestRevision

withAllTrafficOnLatestRevision(allTrafficOnLatestRevision)

"Whether 100% of traffic is routed to the latest revision. Defaults to true."

fn spec.forProvider.serviceConfig.withAvailableCpu

withAvailableCpu(availableCpu)

"The number of CPUs used in a single container instance. Default value is calculated from available memory."

fn spec.forProvider.serviceConfig.withAvailableMemory

withAvailableMemory(availableMemory)

"The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes."

fn spec.forProvider.serviceConfig.withEnvironmentVariables

withEnvironmentVariables(environmentVariables)

"Environment variables that shall be available during function execution."

fn spec.forProvider.serviceConfig.withEnvironmentVariablesMixin

withEnvironmentVariablesMixin(environmentVariables)

"Environment variables that shall be available during function execution."

Note: This function appends passed data to existing values

fn spec.forProvider.serviceConfig.withIngressSettings

withIngressSettings(ingressSettings)

"Available ingress settings. Defaults to \"ALLOW_ALL\" if unspecified. Default value is ALLOW_ALL. Possible values are: ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB."

fn spec.forProvider.serviceConfig.withMaxInstanceCount

withMaxInstanceCount(maxInstanceCount)

"The limit on the maximum number of function instances that may coexist at a given time."

fn spec.forProvider.serviceConfig.withMaxInstanceRequestConcurrency

withMaxInstanceRequestConcurrency(maxInstanceRequestConcurrency)

"Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1."

fn spec.forProvider.serviceConfig.withMinInstanceCount

withMinInstanceCount(minInstanceCount)

"The limit on the minimum number of function instances that may coexist at a given time."

fn spec.forProvider.serviceConfig.withSecretEnvironmentVariables

withSecretEnvironmentVariables(secretEnvironmentVariables)

"Secret environment variables configuration. Structure is documented below."

fn spec.forProvider.serviceConfig.withSecretEnvironmentVariablesMixin

withSecretEnvironmentVariablesMixin(secretEnvironmentVariables)

"Secret environment variables configuration. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.serviceConfig.withSecretVolumes

withSecretVolumes(secretVolumes)

"Secret volumes configuration. Structure is documented below."

fn spec.forProvider.serviceConfig.withSecretVolumesMixin

withSecretVolumesMixin(secretVolumes)

"Secret volumes configuration. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.serviceConfig.withService

withService(service)

"Name of the service associated with a Function."

fn spec.forProvider.serviceConfig.withServiceAccountEmail

withServiceAccountEmail(serviceAccountEmail)

"The email of the service account for this function."

fn spec.forProvider.serviceConfig.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds."

fn spec.forProvider.serviceConfig.withVpcConnector

withVpcConnector(vpcConnector)

"The Serverless VPC Access connector that this cloud function can connect to."

fn spec.forProvider.serviceConfig.withVpcConnectorEgressSettings

withVpcConnectorEgressSettings(vpcConnectorEgressSettings)

"Available egress settings. Possible values are: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC."

obj spec.forProvider.serviceConfig.secretEnvironmentVariables

"Secret environment variables configuration. Structure is documented below."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.withKey

withKey(key)

"Name of the environment variable."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.withProjectId

withProjectId(projectId)

"Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.withSecret

withSecret(secret)

"Name of the secret in secret manager (not the full resource name)."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.withVersion

withVersion(version)

"Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately."

obj spec.forProvider.serviceConfig.secretEnvironmentVariables.secretRef

"Reference to a Secret in secretmanager to populate secret."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.serviceConfig.secretEnvironmentVariables.secretRef.policy

"Policies for referencing."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector

"Selector for a Secret in secretmanager to populate secret."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector.policy

"Policies for selection."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.serviceConfig.secretEnvironmentVariables.secretSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.serviceConfig.secretVolumes

"Secret volumes configuration. Structure is documented below."

fn spec.forProvider.serviceConfig.secretVolumes.withMountPath

withMountPath(mountPath)

"The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets"

fn spec.forProvider.serviceConfig.secretVolumes.withProjectId

withProjectId(projectId)

"Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function."

fn spec.forProvider.serviceConfig.secretVolumes.withSecret

withSecret(secret)

"Name of the secret in secret manager (not the full resource name)."

fn spec.forProvider.serviceConfig.secretVolumes.withVersions

withVersions(versions)

"List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.' Structure is documented below."

fn spec.forProvider.serviceConfig.secretVolumes.withVersionsMixin

withVersionsMixin(versions)

"List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.' Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.serviceConfig.secretVolumes.secretRef

"Reference to a Secret in secretmanager to populate secret."

fn spec.forProvider.serviceConfig.secretVolumes.secretRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.serviceConfig.secretVolumes.secretRef.policy

"Policies for referencing."

fn spec.forProvider.serviceConfig.secretVolumes.secretRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.serviceConfig.secretVolumes.secretRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.serviceConfig.secretVolumes.secretSelector

"Selector for a Secret in secretmanager to populate secret."

fn spec.forProvider.serviceConfig.secretVolumes.secretSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.serviceConfig.secretVolumes.secretSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.serviceConfig.secretVolumes.secretSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.serviceConfig.secretVolumes.secretSelector.policy

"Policies for selection."

fn spec.forProvider.serviceConfig.secretVolumes.secretSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.serviceConfig.secretVolumes.secretSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.serviceConfig.secretVolumes.versions

"List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.' Structure is documented below."

fn spec.forProvider.serviceConfig.secretVolumes.versions.withPath

withPath(path)

"Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo."

fn spec.forProvider.serviceConfig.secretVolumes.versions.withVersion

withVersion(version)

"Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately."

obj spec.forProvider.serviceConfig.serviceAccountEmailRef

"Reference to a ServiceAccount in cloudplatform to populate serviceAccountEmail."

fn spec.forProvider.serviceConfig.serviceAccountEmailRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.serviceConfig.serviceAccountEmailRef.policy

"Policies for referencing."

fn spec.forProvider.serviceConfig.serviceAccountEmailRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.serviceConfig.serviceAccountEmailRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.serviceConfig.serviceAccountEmailSelector

"Selector for a ServiceAccount in cloudplatform to populate serviceAccountEmail."

fn spec.forProvider.serviceConfig.serviceAccountEmailSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.serviceConfig.serviceAccountEmailSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.serviceConfig.serviceAccountEmailSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.serviceConfig.serviceAccountEmailSelector.policy

"Policies for selection."

fn spec.forProvider.serviceConfig.serviceAccountEmailSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.serviceConfig.serviceAccountEmailSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.initProvider

"THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. InitProvider holds the same fields as ForProvider, with the exception of Identifier and other resource reference fields. The fields that are in InitProvider are merged into ForProvider when the resource is created. The same fields are also added to the terraform ignore_changes hook, to avoid updating them after creation. This is useful for fields that are required on creation, but we do not desire to update them after creation, for example because of an external controller is managing them, like an autoscaler."

fn spec.initProvider.withBuildConfig

withBuildConfig(buildConfig)

"Describes the Build step of the function that builds a container from the given source. Structure is documented below."

fn spec.initProvider.withBuildConfigMixin

withBuildConfigMixin(buildConfig)

"Describes the Build step of the function that builds a container from the given source. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.withDescription

withDescription(description)

"User-provided description of a function."

fn spec.initProvider.withEventTrigger

withEventTrigger(eventTrigger)

"An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below."

fn spec.initProvider.withEventTriggerMixin

withEventTriggerMixin(eventTrigger)

"An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.withLabels

withLabels(labels)

"A set of key/value label pairs associated with this Cloud Function."

fn spec.initProvider.withLabelsMixin

withLabelsMixin(labels)

"A set of key/value label pairs associated with this Cloud Function."

Note: This function appends passed data to existing values

fn spec.initProvider.withProject

withProject(project)

"The ID of the project in which the resource belongs. If it is not provided, the provider project is used."

fn spec.initProvider.withServiceConfig

withServiceConfig(serviceConfig)

"Describes the Service being deployed. Structure is documented below."

fn spec.initProvider.withServiceConfigMixin

withServiceConfigMixin(serviceConfig)

"Describes the Service being deployed. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.buildConfig

"Describes the Build step of the function that builds a container from the given source. Structure is documented below."

fn spec.initProvider.buildConfig.withDockerRepository

withDockerRepository(dockerRepository)

"User managed repository created in Artifact Registry optionally with a customer managed encryption key."

fn spec.initProvider.buildConfig.withEntryPoint

withEntryPoint(entryPoint)

"The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named \"function\". For Node.js this is name of a function exported by the module specified in source_location."

fn spec.initProvider.buildConfig.withEnvironmentVariables

withEnvironmentVariables(environmentVariables)

"User-provided build-time environment variables for the function."

fn spec.initProvider.buildConfig.withEnvironmentVariablesMixin

withEnvironmentVariablesMixin(environmentVariables)

"User-provided build-time environment variables for the function."

Note: This function appends passed data to existing values

fn spec.initProvider.buildConfig.withRuntime

withRuntime(runtime)

"The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function."

fn spec.initProvider.buildConfig.withSource

withSource(source)

"The location of the function source code. Structure is documented below."

fn spec.initProvider.buildConfig.withSourceMixin

withSourceMixin(source)

"The location of the function source code. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.buildConfig.source

"The location of the function source code. Structure is documented below."

fn spec.initProvider.buildConfig.source.withRepoSource

withRepoSource(repoSource)

"If provided, get the source from this location in a Cloud Source Repository. Structure is documented below."

fn spec.initProvider.buildConfig.source.withRepoSourceMixin

withRepoSourceMixin(repoSource)

"If provided, get the source from this location in a Cloud Source Repository. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.buildConfig.source.withStorageSource

withStorageSource(storageSource)

"If provided, get the source from this location in Google Cloud Storage. Structure is documented below."

fn spec.initProvider.buildConfig.source.withStorageSourceMixin

withStorageSourceMixin(storageSource)

"If provided, get the source from this location in Google Cloud Storage. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.buildConfig.source.repoSource

"If provided, get the source from this location in a Cloud Source Repository. Structure is documented below."

fn spec.initProvider.buildConfig.source.repoSource.withBranchName

withBranchName(branchName)

"Regex matching branches to build."

fn spec.initProvider.buildConfig.source.repoSource.withCommitSha

withCommitSha(commitSha)

"Regex matching tags to build."

fn spec.initProvider.buildConfig.source.repoSource.withDir

withDir(dir)

"Directory, relative to the source root, in which to run the build."

fn spec.initProvider.buildConfig.source.repoSource.withInvertRegex

withInvertRegex(invertRegex)

"Only trigger a build if the revision regex does NOT match the revision regex."

fn spec.initProvider.buildConfig.source.repoSource.withProjectId

withProjectId(projectId)

"Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function."

fn spec.initProvider.buildConfig.source.repoSource.withRepoName

withRepoName(repoName)

"Name of the Cloud Source Repository."

fn spec.initProvider.buildConfig.source.repoSource.withTagName

withTagName(tagName)

"Regex matching tags to build."

obj spec.initProvider.buildConfig.source.storageSource

"If provided, get the source from this location in Google Cloud Storage. Structure is documented below."

fn spec.initProvider.buildConfig.source.storageSource.withGeneration

withGeneration(generation)

"Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used."

obj spec.initProvider.eventTrigger

"An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below."

fn spec.initProvider.eventTrigger.withEventFilters

withEventFilters(eventFilters)

"Criteria used to filter events. Structure is documented below."

fn spec.initProvider.eventTrigger.withEventFiltersMixin

withEventFiltersMixin(eventFilters)

"Criteria used to filter events. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.eventTrigger.withEventType

withEventType(eventType)

"Required. The type of event to observe."

fn spec.initProvider.eventTrigger.withRetryPolicy

withRetryPolicy(retryPolicy)

"Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values are: RETRY_POLICY_UNSPECIFIED, RETRY_POLICY_DO_NOT_RETRY, RETRY_POLICY_RETRY."

fn spec.initProvider.eventTrigger.withTriggerRegion

withTriggerRegion(triggerRegion)

"The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function."

obj spec.initProvider.eventTrigger.eventFilters

"Criteria used to filter events. Structure is documented below."

fn spec.initProvider.eventTrigger.eventFilters.withAttribute

withAttribute(attribute)

"'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the gcloud eventarc providers describe command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's event_type attribute."

fn spec.initProvider.eventTrigger.eventFilters.withOperator

withOperator(operator)

"Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern. See documentation on path patterns here'"

obj spec.initProvider.serviceConfig

"Describes the Service being deployed. Structure is documented below."

fn spec.initProvider.serviceConfig.withAllTrafficOnLatestRevision

withAllTrafficOnLatestRevision(allTrafficOnLatestRevision)

"Whether 100% of traffic is routed to the latest revision. Defaults to true."

fn spec.initProvider.serviceConfig.withAvailableCpu

withAvailableCpu(availableCpu)

"The number of CPUs used in a single container instance. Default value is calculated from available memory."

fn spec.initProvider.serviceConfig.withAvailableMemory

withAvailableMemory(availableMemory)

"The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes."

fn spec.initProvider.serviceConfig.withEnvironmentVariables

withEnvironmentVariables(environmentVariables)

"Environment variables that shall be available during function execution."

fn spec.initProvider.serviceConfig.withEnvironmentVariablesMixin

withEnvironmentVariablesMixin(environmentVariables)

"Environment variables that shall be available during function execution."

Note: This function appends passed data to existing values

fn spec.initProvider.serviceConfig.withIngressSettings

withIngressSettings(ingressSettings)

"Available ingress settings. Defaults to \"ALLOW_ALL\" if unspecified. Default value is ALLOW_ALL. Possible values are: ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB."

fn spec.initProvider.serviceConfig.withMaxInstanceCount

withMaxInstanceCount(maxInstanceCount)

"The limit on the maximum number of function instances that may coexist at a given time."

fn spec.initProvider.serviceConfig.withMaxInstanceRequestConcurrency

withMaxInstanceRequestConcurrency(maxInstanceRequestConcurrency)

"Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1."

fn spec.initProvider.serviceConfig.withMinInstanceCount

withMinInstanceCount(minInstanceCount)

"The limit on the minimum number of function instances that may coexist at a given time."

fn spec.initProvider.serviceConfig.withSecretEnvironmentVariables

withSecretEnvironmentVariables(secretEnvironmentVariables)

"Secret environment variables configuration. Structure is documented below."

fn spec.initProvider.serviceConfig.withSecretEnvironmentVariablesMixin

withSecretEnvironmentVariablesMixin(secretEnvironmentVariables)

"Secret environment variables configuration. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.serviceConfig.withSecretVolumes

withSecretVolumes(secretVolumes)

"Secret volumes configuration. Structure is documented below."

fn spec.initProvider.serviceConfig.withSecretVolumesMixin

withSecretVolumesMixin(secretVolumes)

"Secret volumes configuration. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.serviceConfig.withService

withService(service)

"Name of the service associated with a Function."

fn spec.initProvider.serviceConfig.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds."

fn spec.initProvider.serviceConfig.withVpcConnector

withVpcConnector(vpcConnector)

"The Serverless VPC Access connector that this cloud function can connect to."

fn spec.initProvider.serviceConfig.withVpcConnectorEgressSettings

withVpcConnectorEgressSettings(vpcConnectorEgressSettings)

"Available egress settings. Possible values are: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC."

obj spec.initProvider.serviceConfig.secretEnvironmentVariables

"Secret environment variables configuration. Structure is documented below."

fn spec.initProvider.serviceConfig.secretEnvironmentVariables.withKey

withKey(key)

"Name of the environment variable."

fn spec.initProvider.serviceConfig.secretEnvironmentVariables.withProjectId

withProjectId(projectId)

"Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function."

fn spec.initProvider.serviceConfig.secretEnvironmentVariables.withVersion

withVersion(version)

"Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately."

obj spec.initProvider.serviceConfig.secretVolumes

"Secret volumes configuration. Structure is documented below."

fn spec.initProvider.serviceConfig.secretVolumes.withMountPath

withMountPath(mountPath)

"The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets"

fn spec.initProvider.serviceConfig.secretVolumes.withProjectId

withProjectId(projectId)

"Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function."

fn spec.initProvider.serviceConfig.secretVolumes.withVersions

withVersions(versions)

"List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.' Structure is documented below."

fn spec.initProvider.serviceConfig.secretVolumes.withVersionsMixin

withVersionsMixin(versions)

"List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.' Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.serviceConfig.secretVolumes.versions

"List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.' Structure is documented below."

fn spec.initProvider.serviceConfig.secretVolumes.versions.withPath

withPath(path)

"Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo."

fn spec.initProvider.serviceConfig.secretVolumes.versions.withVersion

withVersion(version)

"Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately."

obj spec.providerConfigRef

"ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured."

fn spec.providerConfigRef.withName

withName(name)

"Name of the referenced object."

obj spec.providerConfigRef.policy

"Policies for referencing."

fn spec.providerConfigRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.providerConfigRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.providerRef

"ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef"

fn spec.providerRef.withName

withName(name)

"Name of the referenced object."

obj spec.providerRef.policy

"Policies for referencing."

fn spec.providerRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.providerRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.publishConnectionDetailsTo

"PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource."

fn spec.publishConnectionDetailsTo.withName

withName(name)

"Name is the name of the connection secret."

obj spec.publishConnectionDetailsTo.configRef

"SecretStoreConfigRef specifies which secret store config should be used for this ConnectionSecret."

fn spec.publishConnectionDetailsTo.configRef.withName

withName(name)

"Name of the referenced object."

obj spec.publishConnectionDetailsTo.configRef.policy

"Policies for referencing."

fn spec.publishConnectionDetailsTo.configRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.publishConnectionDetailsTo.configRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.publishConnectionDetailsTo.metadata

"Metadata is the metadata for connection secret."

fn spec.publishConnectionDetailsTo.metadata.withAnnotations

withAnnotations(annotations)

"Annotations are the annotations to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.annotations\". - It is up to Secret Store implementation for others store types."

fn spec.publishConnectionDetailsTo.metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations are the annotations to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.annotations\". - It is up to Secret Store implementation for others store types."

Note: This function appends passed data to existing values

fn spec.publishConnectionDetailsTo.metadata.withLabels

withLabels(labels)

"Labels are the labels/tags to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.labels\". - It is up to Secret Store implementation for others store types."

fn spec.publishConnectionDetailsTo.metadata.withLabelsMixin

withLabelsMixin(labels)

"Labels are the labels/tags to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.labels\". - It is up to Secret Store implementation for others store types."

Note: This function appends passed data to existing values

fn spec.publishConnectionDetailsTo.metadata.withType

withType(type)

"Type is the SecretType for the connection secret. - Only valid for Kubernetes Secret Stores."

obj spec.writeConnectionSecretToRef

"WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other."

fn spec.writeConnectionSecretToRef.withName

withName(name)

"Name of the secret."

fn spec.writeConnectionSecretToRef.withNamespace

withNamespace(namespace)

"Namespace of the secret."