Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::Function.
Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#build_config
def build_config() -> ::Google::Cloud::Functions::V2::BuildConfig
- (::Google::Cloud::Functions::V2::BuildConfig) — Describes the Build step of the function that builds a container from the given source.
#build_config=
def build_config=(value) -> ::Google::Cloud::Functions::V2::BuildConfig
- value (::Google::Cloud::Functions::V2::BuildConfig) — Describes the Build step of the function that builds a container from the given source.
- (::Google::Cloud::Functions::V2::BuildConfig) — Describes the Build step of the function that builds a container from the given source.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
#description
def description() -> ::String
- (::String) — User-provided description of a function.
#description=
def description=(value) -> ::String
- value (::String) — User-provided description of a function.
- (::String) — User-provided description of a function.
#environment
def environment() -> ::Google::Cloud::Functions::V2::Environment
- (::Google::Cloud::Functions::V2::Environment) — Describe whether the function is 1st Gen or 2nd Gen.
#environment=
def environment=(value) -> ::Google::Cloud::Functions::V2::Environment
- value (::Google::Cloud::Functions::V2::Environment) — Describe whether the function is 1st Gen or 2nd Gen.
- (::Google::Cloud::Functions::V2::Environment) — Describe whether the function is 1st Gen or 2nd Gen.
#event_trigger
def event_trigger() -> ::Google::Cloud::Functions::V2::EventTrigger
- (::Google::Cloud::Functions::V2::EventTrigger) — An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
#event_trigger=
def event_trigger=(value) -> ::Google::Cloud::Functions::V2::EventTrigger
- value (::Google::Cloud::Functions::V2::EventTrigger) — An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- (::Google::Cloud::Functions::V2::EventTrigger) — An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
#kms_key_name
def kms_key_name() -> ::String
-
(::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}
.
#kms_key_name=
def kms_key_name=(value) -> ::String
-
value (::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}
.
-
(::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}
.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Labels associated with this Cloud Function.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Labels associated with this Cloud Function.
- (::Google::Protobuf::Map{::String => ::String}) — Labels associated with this Cloud Function.
#name
def name() -> ::String
-
(::String) — A user-defined name of the function. Function names must be unique
globally and match pattern
projects/*/locations/*/functions/*
#name=
def name=(value) -> ::String
-
value (::String) — A user-defined name of the function. Function names must be unique
globally and match pattern
projects/*/locations/*/functions/*
-
(::String) — A user-defined name of the function. Function names must be unique
globally and match pattern
projects/*/locations/*/functions/*
#satisfies_pzs
def satisfies_pzs() -> ::Boolean
- (::Boolean) — Output only. Reserved for future use.
#service_config
def service_config() -> ::Google::Cloud::Functions::V2::ServiceConfig
- (::Google::Cloud::Functions::V2::ServiceConfig) — Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
#service_config=
def service_config=(value) -> ::Google::Cloud::Functions::V2::ServiceConfig
- value (::Google::Cloud::Functions::V2::ServiceConfig) — Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- (::Google::Cloud::Functions::V2::ServiceConfig) — Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
#state
def state() -> ::Google::Cloud::Functions::V2::Function::State
- (::Google::Cloud::Functions::V2::Function::State) — Output only. State of the function.
#state_messages
def state_messages() -> ::Array<::Google::Cloud::Functions::V2::StateMessage>
- (::Array<::Google::Cloud::Functions::V2::StateMessage>) — Output only. State Messages for this Cloud Function.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The last update timestamp of a Cloud Function.
#url
def url() -> ::String
- (::String) — Output only. The deployed url for the function.