Class: Google::Apis::RunV1::HttpGetAction

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

Overview

Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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.



1216
1217
1218
# File 'generated/google/apis/run_v1/classes.rb', line 1216

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

Instance Attribute Details

#hostString

(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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)


1189
1190
1191
# File 'generated/google/apis/run_v1/classes.rb', line 1189

def host
  @host
end

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

(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Custom headers to set in the request. HTTP allows repeated headers. Corresponds to the JSON property httpHeaders



1197
1198
1199
# File 'generated/google/apis/run_v1/classes.rb', line 1197

def http_headers
  @http_headers
end

#pathString

(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Path to access on the HTTP server. Corresponds to the JSON property path

Returns:

  • (String)


1205
1206
1207
# File 'generated/google/apis/run_v1/classes.rb', line 1205

def path
  @path
end

#schemeString

(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Scheme to use for connecting to the host. Defaults to HTTP. Corresponds to the JSON property scheme

Returns:

  • (String)


1214
1215
1216
# File 'generated/google/apis/run_v1/classes.rb', line 1214

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1221
1222
1223
1224
1225
1226
# File 'generated/google/apis/run_v1/classes.rb', line 1221

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