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

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

Overview

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.



1380
1381
1382
# File 'lib/google/apis/run_v1/classes.rb', line 1380

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

Instance Attribute Details

#hostString

Not supported by Cloud Run. Corresponds to the JSON property host

Returns:

  • (String)


1358
1359
1360
# File 'lib/google/apis/run_v1/classes.rb', line 1358

def host
  @host
end

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

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



1363
1364
1365
# File 'lib/google/apis/run_v1/classes.rb', line 1363

def http_headers
  @http_headers
end

#pathString

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

Returns:

  • (String)


1368
1369
1370
# File 'lib/google/apis/run_v1/classes.rb', line 1368

def path
  @path
end

#portFixnum

Port number to access on the container. Number must be in the range 1 to 65535. Corresponds to the JSON property port

Returns:

  • (Fixnum)


1373
1374
1375
# File 'lib/google/apis/run_v1/classes.rb', line 1373

def port
  @port
end

#schemeString

Not supported by Cloud Run. Corresponds to the JSON property scheme

Returns:

  • (String)


1378
1379
1380
# File 'lib/google/apis/run_v1/classes.rb', line 1378

def scheme
  @scheme
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1385
1386
1387
1388
1389
1390
1391
# File 'lib/google/apis/run_v1/classes.rb', line 1385

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