View Source GoogleApi.CloudFunctions.V2.Model.Function (google_api_cloud_functions v0.37.0)

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

Attributes

  • buildConfig (type: GoogleApi.CloudFunctions.V2.Model.BuildConfig.t, default: nil) - Describes the Build step of the function that builds a container from the given source.
  • createTime (type: DateTime.t, default: nil) - Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
  • description (type: String.t, default: nil) - User-provided description of a function.
  • environment (type: String.t, default: nil) - Describe whether the function is 1st Gen or 2nd Gen.
  • eventTrigger (type: GoogleApi.CloudFunctions.V2.Model.EventTrigger.t, default: nil) - An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
  • kmsKeyName (type: String.t, default: nil) - [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 (type: map(), default: nil) - Labels associated with this Cloud Function.
  • name (type: String.t, default: nil) - A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
  • satisfiesPzs (type: boolean(), default: nil) - Output only. Reserved for future use.
  • serviceConfig (type: GoogleApi.CloudFunctions.V2.Model.ServiceConfig.t, default: nil) - Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
  • state (type: String.t, default: nil) - Output only. State of the function.
  • stateMessages (type: list(GoogleApi.CloudFunctions.V2.Model.GoogleCloudFunctionsV2StateMessage.t), default: nil) - Output only. State Messages for this Cloud Function.
  • updateTime (type: DateTime.t, default: nil) - Output only. The last update timestamp of a Cloud Function.
  • upgradeInfo (type: GoogleApi.CloudFunctions.V2.Model.UpgradeInfo.t, default: nil) - Output only. UpgradeInfo for this Cloud Function
  • url (type: String.t, default: nil) - Output only. The deployed url for the function.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudFunctions.V2.Model.Function{
  buildConfig: GoogleApi.CloudFunctions.V2.Model.BuildConfig.t() | nil,
  createTime: DateTime.t() | nil,
  description: String.t() | nil,
  environment: String.t() | nil,
  eventTrigger: GoogleApi.CloudFunctions.V2.Model.EventTrigger.t() | nil,
  kmsKeyName: String.t() | nil,
  labels: map() | nil,
  name: String.t() | nil,
  satisfiesPzs: boolean() | nil,
  serviceConfig: GoogleApi.CloudFunctions.V2.Model.ServiceConfig.t() | nil,
  state: String.t() | nil,
  stateMessages:
    [GoogleApi.CloudFunctions.V2.Model.GoogleCloudFunctionsV2StateMessage.t()]
    | nil,
  updateTime: DateTime.t() | nil,
  upgradeInfo: GoogleApi.CloudFunctions.V2.Model.UpgradeInfo.t() | nil,
  url: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.