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

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

Overview

HTTPGetAction describes an action based on HTTP Get requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HttpGetAction

Returns a new instance of HttpGetAction.



2085
2086
2087
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2085

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

Instance Attribute Details

#hostString

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

Returns:

  • (String)


2056
2057
2058
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2056

def host
  @host
end

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

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



2062
2063
2064
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2062

def http_headers
  @http_headers
end

#pathString

Path to access on the HTTP server. +optional Corresponds to the JSON property path

Returns:

  • (String)


2068
2069
2070
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2068

def path
  @path
end

#portGoogle::Apis::RunV1alpha1::IntOrString

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. Corresponds to the JSON property port



2076
2077
2078
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2076

def port
  @port
end

#schemeString

Scheme to use for connecting to the host. Defaults to HTTP. +optional Corresponds to the JSON property scheme

Returns:

  • (String)


2083
2084
2085
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2083

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2090
2091
2092
2093
2094
2095
2096
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2090

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)
  @port = args[:port] if args.key?(:port)
  @scheme = args[:scheme] if args.key?(:scheme)
end