Class: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

Configuration of a Cloud Function backend.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BackendServiceCloudFunctionBackend

Returns a new instance of BackendServiceCloudFunctionBackend



3534
3535
3536
# File 'generated/google/apis/compute_alpha/classes.rb', line 3534

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#function_nameString

Required. A cloud function name. Special value ?*? represents all cloud functions in the project. Corresponds to the JSON property functionName

Returns:

  • (String)


3527
3528
3529
# File 'generated/google/apis/compute_alpha/classes.rb', line 3527

def function_name
  @function_name
end

#target_projectString

Required. Project ID of the project hosting the cloud function. Corresponds to the JSON property targetProject

Returns:

  • (String)


3532
3533
3534
# File 'generated/google/apis/compute_alpha/classes.rb', line 3532

def target_project
  @target_project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3539
3540
3541
3542
# File 'generated/google/apis/compute_alpha/classes.rb', line 3539

def update!(**args)
  @function_name = args[:function_name] if args.key?(:function_name)
  @target_project = args[:target_project] if args.key?(:target_project)
end