Class: Google::Apis::RunV1alpha1::HttpGetAction

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

Overview

Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpGetAction

Returns a new instance of HttpGetAction.



552
553
554
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 552

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

Instance Attribute Details

#hostString

(Optional) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. Corresponds to the JSON property host

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 535

def host
  @host
end

#http_headersArray<Google::Apis::RunV1alpha1::HttpHeader>

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



540
541
542
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 540

def http_headers
  @http_headers
end

#pathString

(Optional) Path to access on the HTTP server. Corresponds to the JSON property path

Returns:

  • (String)


545
546
547
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 545

def path
  @path
end

#schemeString

(Optional) Scheme to use for connecting to the host. Defaults to HTTP. Corresponds to the JSON property scheme

Returns:

  • (String)


550
551
552
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 550

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



557
558
559
560
561
562
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 557

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