Service Client: Google::Cloud::Functions::V2alpha::Functions::FunctionServiceClient

Client stub representing the remote FunctionService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to functions.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Functions::V2alpha::Functions - Compiled Protocol Buffers messages for google/cloud/functions/v2alpha/functions.proto

SYNOPSIS

use Google::Cloud::Functions::V2alpha::Functions;

my $msg = Google::Cloud::Functions::V2alpha::Functions::Function->new({
    name => $name,
    description => $description,
    build_config => $build_config,
    service_config => $service_config,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Functions::V2alpha::Functions::Function->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/functions/v2alpha/functions.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Functions::V2alpha::Functions::Function

Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`

  • $msg->description() / $msg->description($value)

    Type: String

    User-provided description of a function.

  • $msg->build_config() / $msg->build_config($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::BuildConfig)

    Describes the Build step of the function that builds a container from the given source.

  • $msg->service_config() / $msg->service_config($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::ServiceConfig)

    Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).

  • $msg->event_trigger() / $msg->event_trigger($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::EventTrigger)

    An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::Function::State)

    Output only. State of the function.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The last update timestamp of a Cloud Function.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::Function::LabelsEntry)

    Labels associated with this Cloud Function.

  • $msg->state_messages() / $msg->state_messages($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::StateMessage)

    Output only. State Messages for this Cloud Function.

  • $msg->environment() / $msg->environment($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::Environment)

    Describe whether the function is 1st Gen or 2nd Gen.

  • $msg->url() / $msg->url($value)

    Type: String

    Output only. The deployed url for the function.

  • $msg->kms_key_name() / $msg->kms_key_name($value)

    Type: String

    [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.

    It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.

  • $msg->satisfies_pzs() / $msg->satisfies_pzs($value)

    Type: Bool

    Output only. Reserved for future use.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.

Enum: Function::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • FAILED => 2

  • DEPLOYING => 3

  • DELETING => 4

  • UNKNOWN => 5

Google::Cloud::Functions::V2alpha::Functions::StateMessage

Informational messages about the state of the Cloud Function or Operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::StateMessage::Severity)

    Severity of the state message.

  • $msg->type() / $msg->type($value)

    Type: String

    One-word CamelCase type of the state message.

  • $msg->message() / $msg->message($value)

    Type: String

    The message.

Enum: StateMessage::Severity

  • SEVERITY_UNSPECIFIED => 0

  • ERROR => 1

  • WARNING => 2

  • INFO => 3

Google::Cloud::Functions::V2alpha::Functions::StorageSource

Location of the source in an archive file in Google Cloud Storage.

Inherits from Protobuf::Message.

Accessors

  • $msg->bucket() / $msg->bucket($value)

    Type: String

    Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

  • $msg->object() / $msg->object($value)

    Type: String

    Google Cloud Storage object containing the source.

    This object must be a gzipped archive file (`.tar.gz`) containing source to build.

  • $msg->generation() / $msg->generation($value)

    Type: Int64

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

  • $msg->source_upload_url() / $msg->source_upload_url($value)

    Type: String

    When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.

Google::Cloud::Functions::V2alpha::Functions::RepoSource

Location of the source in a Google Cloud Source Repository.

Inherits from Protobuf::Message.

Accessors

  • $msg->branch_name() / $msg->branch_name($value)

    Type: String

    Regex matching branches to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->tag_name() / $msg->tag_name($value)

    Type: String

    Regex matching tags to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->commit_sha() / $msg->commit_sha($value)

    Type: String

    Explicit commit SHA to build.

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

  • $msg->repo_name() / $msg->repo_name($value)

    Type: String

    Name of the Cloud Source Repository.

  • $msg->dir() / $msg->dir($value)

    Type: String

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

    This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)

  • $msg->invert_regex() / $msg->invert_regex($value)

    Type: Bool

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

Google::Cloud::Functions::V2alpha::Functions::Source

The location of the function source code.

Inherits from Protobuf::Message.

Accessors

  • $msg->storage_source() / $msg->storage_source($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::StorageSource)

    If provided, get the source from this location in Google Cloud Storage.

  • $msg->repo_source() / $msg->repo_source($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::RepoSource)

    If provided, get the source from this location in a Cloud Source Repository.

  • $msg->git_uri() / $msg->git_uri($value)

    Type: String

    If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>

Google::Cloud::Functions::V2alpha::Functions::SourceProvenance

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

Inherits from Protobuf::Message.

Accessors

  • $msg->resolved_storage_source() / $msg->resolved_storage_source($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::StorageSource)

    A copy of the build's `source.storage_source`, if exists, with any generations resolved.

  • $msg->resolved_repo_source() / $msg->resolved_repo_source($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::RepoSource)

    A copy of the build's `source.repo_source`, if exists, with any revisions resolved.

  • $msg->git_uri() / $msg->git_uri($value)

    Type: String

    A copy of the build's `source.git_uri`, if exists, with any commits resolved.

Google::Cloud::Functions::V2alpha::Functions::BuildConfig

Describes the Build step of the function that builds a container from the given source.

Inherits from Protobuf::Message.

Accessors

  • $msg->automatic_update_policy() / $msg->automatic_update_policy($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::AutomaticUpdatePolicy)

  • $msg->on_deploy_update_policy() / $msg->on_deploy_update_policy($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::OnDeployUpdatePolicy)

  • $msg->build() / $msg->build($value)

    Type: String

    Output only. The Cloud Build name of the latest successful deployment of the function.

  • $msg->runtime() / $msg->runtime($value)

    Type: String

    The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).

  • $msg->entry_point() / $msg->entry_point($value)

    Type: String

    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`.

  • $msg->source() / $msg->source($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::Source)

    The location of the function source code.

  • $msg->source_provenance() / $msg->source_provenance($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::SourceProvenance)

    Output only. A permanent fixed identifier for source.

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: String

    Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.

    If the project id is not the same as the function, then the Cloud Functions Service Agent (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.

  • $msg->environment_variables() / $msg->environment_variables($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::BuildConfig::EnvironmentVariablesEntry)

    User-provided build-time environment variables for the function

  • $msg->docker_registry() / $msg->docker_registry($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::BuildConfig::DockerRegistry)

    Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry.

    If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.

  • $msg->docker_repository() / $msg->docker_repository($value)

    Type: String

    Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region.

    It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.

    Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.

  • $msg->service_account() / $msg->service_account($value)

    Type: String

    Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.

Enum: BuildConfig::DockerRegistry

  • DOCKER_REGISTRY_UNSPECIFIED => 0

  • CONTAINER_REGISTRY => 1

  • ARTIFACT_REGISTRY => 2

Google::Cloud::Functions::V2alpha::Functions::ServiceConfig

Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).

Inherits from Protobuf::Message.

Accessors

  • $msg->service() / $msg->service($value)

    Type: String

    Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`

  • $msg->timeout_seconds() / $msg->timeout_seconds($value)

    Type: Int32

    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.

  • $msg->available_memory() / $msg->available_memory($value)

    Type: String

    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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.

  • $msg->available_cpu() / $msg->available_cpu($value)

    Type: String

    The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU

  • $msg->environment_variables() / $msg->environment_variables($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::ServiceConfig::EnvironmentVariablesEntry)

    Environment variables that shall be available during function execution.

  • $msg->max_instance_count() / $msg->max_instance_count($value)

    Type: Int32

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

    In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate.

    See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.

  • $msg->min_instance_count() / $msg->min_instance_count($value)

    Type: Int32

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

    Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.

  • $msg->vpc_connector() / $msg->vpc_connector($value)

    Type: String

    The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.

  • $msg->vpc_connector_egress_settings() / $msg->vpc_connector_egress_settings($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::ServiceConfig::VpcConnectorEgressSettings)

    The egress settings for the connector, controlling what traffic is diverted through it.

  • $msg->ingress_settings() / $msg->ingress_settings($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::ServiceConfig::IngressSettings)

    The ingress settings for the function, controlling what traffic can reach it.

  • $msg->uri() / $msg->uri($value)

    Type: String

    Output only. URI of the Service deployed.

  • $msg->service_account_email() / $msg->service_account_email($value)

    Type: String

    The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.

  • $msg->all_traffic_on_latest_revision() / $msg->all_traffic_on_latest_revision($value)

    Type: Bool

    Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.

  • $msg->secret_environment_variables() / $msg->secret_environment_variables($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::SecretEnvVar)

    Secret environment variables configuration.

  • $msg->secret_volumes() / $msg->secret_volumes($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::SecretVolume)

    Secret volumes configuration.

  • $msg->revision() / $msg->revision($value)

    Type: String

    Output only. The name of service revision.

  • $msg->max_instance_request_concurrency() / $msg->max_instance_request_concurrency($value)

    Type: Int32

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

  • $msg->security_level() / $msg->security_level($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::ServiceConfig::SecurityLevel)

    Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.

  • $msg->binary_authorization_policy() / $msg->binary_authorization_policy($value)

    Type: String

    Optional. The binary authorization policy to be checked when deploying the Cloud Run service.

Enum: ServiceConfig::VpcConnectorEgressSettings

  • VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED => 0

  • PRIVATE_RANGES_ONLY => 1

  • ALL_TRAFFIC => 2

Enum: ServiceConfig::IngressSettings

  • INGRESS_SETTINGS_UNSPECIFIED => 0

  • ALLOW_ALL => 1

  • ALLOW_INTERNAL_ONLY => 2

  • ALLOW_INTERNAL_AND_GCLB => 3

Enum: ServiceConfig::SecurityLevel

  • SECURITY_LEVEL_UNSPECIFIED => 0

  • SECURE_ALWAYS => 1

  • SECURE_OPTIONAL => 2

Google::Cloud::Functions::V2alpha::Functions::SecretEnvVar

Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    Name of the environment variable.

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.

  • $msg->secret() / $msg->secret($value)

    Type: String

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

  • $msg->version() / $msg->version($value)

    Type: String

    Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.

Google::Cloud::Functions::V2alpha::Functions::SecretVolume

Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.

Inherits from Protobuf::Message.

Accessors

  • $msg->mount_path() / $msg->mount_path($value)

    Type: String

    The path within the container to mount the secret volume. For example, setting the mount_path 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

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.

  • $msg->secret() / $msg->secret($value)

    Type: String

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

  • $msg->versions() / $msg->versions($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::SecretVolume::SecretVersion)

    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.

Google::Cloud::Functions::V2alpha::Functions::EventTrigger

Describes EventTrigger, used to request events to be sent from another service.

Inherits from Protobuf::Message.

Accessors

  • $msg->trigger() / $msg->trigger($value)

    Type: String

    Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.

  • $msg->trigger_region() / $msg->trigger_region($value)

    Type: String

    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.

  • $msg->event_type() / $msg->event_type($value)

    Type: String

    Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.

  • $msg->event_filters() / $msg->event_filters($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::EventFilter)

    Criteria used to filter events.

  • $msg->pubsub_topic() / $msg->pubsub_topic($value)

    Type: String

    Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`.

    This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.

  • $msg->service_account_email() / $msg->service_account_email($value)

    Type: String

    Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.

  • $msg->retry_policy() / $msg->retry_policy($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::EventTrigger::RetryPolicy)

    Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).

  • $msg->channel() / $msg->channel($value)

    Type: String

    Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.

  • $msg->service() / $msg->service($value)

    Type: String

    Optional. The hostname of the service that 1st Gen function should be observed.

    If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace.

    The field is only applicable to 1st Gen functions.

Enum: EventTrigger::RetryPolicy

  • RETRY_POLICY_UNSPECIFIED => 0

  • RETRY_POLICY_DO_NOT_RETRY => 1

  • RETRY_POLICY_RETRY => 2

Google::Cloud::Functions::V2alpha::Functions::EventFilter

Filters events based on exact matches on the CloudEvents attributes.

Inherits from Protobuf::Message.

Accessors

  • $msg->attribute() / $msg->attribute($value)

    Type: String

    Required. The name of a CloudEvents attribute.

  • $msg->value() / $msg->value($value)

    Type: String

    Required. The value for the attribute.

  • $msg->operator() / $msg->operator($value)

    Type: String

    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`.

Google::Cloud::Functions::V2alpha::Functions::GetFunctionRequest

Request for the `GetFunction` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the function which details should be obtained.

  • $msg->revision() / $msg->revision($value)

    Type: String

    Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function.

Google::Cloud::Functions::V2alpha::Functions::ListFunctionsRequest

Request for the `ListFunctions` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location from which the function should be listed, specified in the format `projects/*/locations/*` If you want to list functions in all locations, use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The value returned by the last `ListFunctionsResponse`; indicates that this is a continuation of a prior `ListFunctions` call, and that the system should return the next page of data.

  • $msg->filter() / $msg->filter($value)

    Type: String

    The filter for Functions that match the filter expression, following the syntax outlined in https://google.aip.dev/160.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting oder is ascending. See https://google.aip.dev/132#ordering.

Google::Cloud::Functions::V2alpha::Functions::ListFunctionsResponse

Response for the `ListFunctions` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->functions() / $msg->functions($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::Function)

    The functions that match the request.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Locations that could not be reached. The response does not include any functions from these locations.

Google::Cloud::Functions::V2alpha::Functions::CreateFunctionRequest

Request for the `CreateFunction` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location in which the function should be created, specified in the format `projects/*/locations/*`

  • $msg->function() / $msg->function($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::Function)

    Required. Function to be created.

  • $msg->function_id() / $msg->function_id($value)

    Type: String

    The ID to use for the function, which will become the final component of the function's resource name.

    This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Google::Cloud::Functions::V2alpha::Functions::UpdateFunctionRequest

Request for the `UpdateFunction` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Functions::V2alpha::Functions::DeleteFunctionRequest

Request for the `DeleteFunction` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the function which should be deleted.

Google::Cloud::Functions::V2alpha::Functions::GenerateUploadUrlRequest

Request of `GenerateSourceUploadUrl` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*/locations/*`.

  • $msg->kms_key_name() / $msg->kms_key_name($value)

    Type: String

    [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment.

    It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.

    The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).

  • $msg->environment() / $msg->environment($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::Environment)

    The function environment the generated upload url will be used for. The upload url for 2nd Gen functions can also be used for 1st gen functions, but not vice versa. If not specified, 2nd generation-style upload URLs are generated.

Google::Cloud::Functions::V2alpha::Functions::GenerateUploadUrlResponse

Response of `GenerateSourceUploadUrl` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->upload_url() / $msg->upload_url($value)

    Type: String

    The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.

  • $msg->storage_source() / $msg->storage_source($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::StorageSource)

    The location of the source code in the upload bucket.

    Once the archive is uploaded using the `upload_url` use this field to set the `function.build_config.source.storage_source` during CreateFunction and UpdateFunction.

    Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.

Google::Cloud::Functions::V2alpha::Functions::GenerateDownloadUrlRequest

Request of `GenerateDownloadUrl` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of function for which source code Google Cloud Storage signed URL should be generated.

Google::Cloud::Functions::V2alpha::Functions::GenerateDownloadUrlResponse

Response of `GenerateDownloadUrl` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->download_url() / $msg->download_url($value)

    Type: String

    The generated Google Cloud Storage signed URL that should be used for function source code download.

Google::Cloud::Functions::V2alpha::Functions::ListRuntimesRequest

Request for the `ListRuntimes` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location from which the runtimes should be listed, specified in the format `projects/*/locations/*`

  • $msg->filter() / $msg->filter($value)

    Type: String

    The filter for Runtimes that match the filter expression, following the syntax outlined in https://google.aip.dev/160.

Google::Cloud::Functions::V2alpha::Functions::ListRuntimesResponse

Response for the `ListRuntimes` method.

Inherits from Protobuf::Message.

Accessors

Enum: ListRuntimesResponse::RuntimeStage

  • RUNTIME_STAGE_UNSPECIFIED => 0

  • DEVELOPMENT => 1

  • ALPHA => 2

  • BETA => 3

  • GA => 4

  • DEPRECATED => 5

  • DECOMMISSIONED => 6

Google::Cloud::Functions::V2alpha::Functions::AutomaticUpdatePolicy

Security patches are applied automatically to the runtime without requiring the function to be redeployed.

Inherits from Protobuf::Message.

Google::Cloud::Functions::V2alpha::Functions::OnDeployUpdatePolicy

Security patches are only applied when a function is redeployed.

Inherits from Protobuf::Message.

Accessors

  • $msg->runtime_version() / $msg->runtime_version($value)

    Type: String

    Output only. contains the runtime version which was used during latest function deployment.

Google::Cloud::Functions::V2alpha::Functions::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the operation was created.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time the operation finished running.

  • $msg->target() / $msg->target($value)

    Type: String

    Server-defined resource path for the target of the operation.

  • $msg->verb() / $msg->verb($value)

    Type: String

    Name of the verb executed by the operation.

  • $msg->status_detail() / $msg->status_detail($value)

    Type: String

    Human-readable status of the operation, if any.

  • $msg->cancel_requested() / $msg->cancel_requested($value)

    Type: Bool

    Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

  • $msg->api_version() / $msg->api_version($value)

    Type: String

    API version used to start the operation.

  • $msg->request_resource() / $msg->request_resource($value)

    Type: Message (Google::Protobuf::Any::Any)

    The original request that started the operation.

  • $msg->stages() / $msg->stages($value)

    Type: Message (Google::Cloud::Functions::V2alpha::Functions::Stage)

    Mechanism for reporting in-progress stages

  • $msg->build_name() / $msg->build_name($value)

    Type: String

    The build name of the function for create and update operations.

  • $msg->operation_type() / $msg->operation_type($value)

    Type: Enum (Google::Cloud::Functions::V2alpha::OperationType)

    The operation type.

Google::Cloud::Functions::V2alpha::Functions::LocationMetadata

Extra GCF specific location information.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Functions::V2alpha::Functions::Stage

Each Stage of the deployment process

Inherits from Protobuf::Message.

Accessors

Enum: Stage::Name

  • NAME_UNSPECIFIED => 0

  • ARTIFACT_REGISTRY => 1

  • BUILD => 2

  • SERVICE => 3

  • TRIGGER => 4

  • SERVICE_ROLLBACK => 5

  • TRIGGER_ROLLBACK => 6

Enum: Stage::State

  • STATE_UNSPECIFIED => 0

  • NOT_STARTED => 1

  • IN_PROGRESS => 2

  • COMPLETE => 3

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Functions::V2alpha::Functions::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.