Class: Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

HTTPGetAction describes an action based on HTTP Get requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2HttpGetAction

Returns a new instance of GoogleCloudRunV2HttpGetAction.



667
668
669
# File 'lib/google/apis/run_v2/classes.rb', line 667

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

Instance Attribute Details

#http_headersArray<Google::Apis::RunV2::GoogleCloudRunV2HttpHeader>

Custom headers to set in the request. HTTP allows repeated headers. Corresponds to the JSON property httpHeaders



660
661
662
# File 'lib/google/apis/run_v2/classes.rb', line 660

def http_headers
  @http_headers
end

#pathString

Path to access on the HTTP server. Defaults to '/'. Corresponds to the JSON property path

Returns:

  • (String)


665
666
667
# File 'lib/google/apis/run_v2/classes.rb', line 665

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



672
673
674
675
# File 'lib/google/apis/run_v2/classes.rb', line 672

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