cloudfunctions/v2 library
Cloud Functions API - v2
Manages lightweight user-provided functions executed in response to events.
For more information, see cloud.google.com/functions
Create an instance of CloudFunctionsApi to access these resources:
Classes
- AuditConfig
- Specifies the audit configuration for a service.
- Binding
-
Associates
members
, or principals, with arole
. - BuildConfig
- Describes the Build step of the function that builds a container from the given source.
- CloudFunctionsApi
- Manages lightweight user-provided functions executed in response to events.
- EventFilter
- Filters events based on exact matches on the CloudEvents attributes.
- EventTrigger
- Describes EventTrigger, used to request events to be sent from another service.
- Function_
- Describes a Cloud Function that contains user computation executed in response to an event.
- GenerateUploadUrlRequest
-
Request of
GenerateSourceUploadUrl
method. - GenerateUploadUrlResponse
-
Response of
GenerateSourceUploadUrl
method. - GoogleCloudFunctionsV2StateMessage
- Informational messages about the state of the Cloud Function or Operation.
- ListFunctionsResponse
-
Response for the
ListFunctions
method. - ListLocationsResponse
- The response message for Locations.ListLocations.
- ListOperationsResponse
- The response message for Operations.ListOperations.
- ListRuntimesResponse
-
Response for the
ListRuntimes
method. - Operation
- This resource represents a long-running operation that is the result of a network API call.
- Policy
- An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.
- ProjectsLocationsFunctionsResource
- ProjectsLocationsOperationsResource
- ProjectsLocationsResource
- ProjectsLocationsRuntimesResource
- ProjectsResource
- RepoSource
- Location of the source in a Google Cloud Source Repository.
- Runtime
- Describes a runtime and any special information (e.g., deprecation status) related to it.
- SecretEnvVar
- Configuration for a secret environment variable.
- SecretVersion
- Configuration for a single version.
- SecretVolume
- Configuration for a secret volume.
- ServiceConfig
- Describes the Service being deployed.
- SetIamPolicyRequest
-
Request message for
SetIamPolicy
method. - Source
- The location of the function source code.
- SourceProvenance
- Provenance of the source.
- StorageSource
- Location of the source in an archive file in Google Cloud Storage.
- UpgradeInfo
- Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.
Typedefs
- AbortFunctionUpgradeRequest = $Empty
-
Request for the
AbortFunctionUpgrade
method. - AuditLogConfig = $AuditLogConfig
- Provides the configuration for logging a type of permissions.
- AutomaticUpdatePolicy = $Empty
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- CommitFunctionUpgradeRequest = $Empty
-
Request for the
CommitFunctionUpgrade
method. - Date = $Date
- Represents a whole or partial calendar date, such as a birthday.
- Expr = $Expr
- Represents a textual expression in the Common Expression Language (CEL) syntax.
- GenerateDownloadUrlRequest = $Empty
-
Request of
GenerateDownloadUrl
method. - GenerateDownloadUrlResponse = $GenerateDownloadUrlResponse
-
Response of
GenerateDownloadUrl
method. - Location = $Location00
- A resource that represents a Google Cloud location.
- OnDeployUpdatePolicy = $OnDeployUpdatePolicy
- Security patches are only applied when a function is redeployed.
- RedirectFunctionUpgradeTrafficRequest = $Empty
-
Request for the
RedirectFunctionUpgradeTraffic
method. - RollbackFunctionUpgradeTrafficRequest = $Empty
-
Request for the
RollbackFunctionUpgradeTraffic
method. - SetupFunctionUpgradeConfigRequest = $Empty
-
Request for the
SetupFunctionUpgradeConfig
method. - Status = $Status
-
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. - TestIamPermissionsRequest = $TestIamPermissionsRequest00
-
Request message for
TestIamPermissions
method. - TestIamPermissionsResponse = $PermissionsResponse
-
Response message for
TestIamPermissions
method.
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.