Class: Google::Apis::RunV1::HttpGetAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::HttpGetAction
- 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
-
#host ⇒ String
Not supported by Cloud Run.
-
#http_headers ⇒ Array<Google::Apis::RunV1::HttpHeader>
Custom headers to set in the request.
-
#path ⇒ String
Path to access on the HTTP server.
-
#port ⇒ Fixnum
Port number to access on the container.
-
#scheme ⇒ String
Not supported by Cloud Run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpGetAction
constructor
A new instance of HttpGetAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpGetAction
Returns a new instance of HttpGetAction.
1358 1359 1360 |
# File 'lib/google/apis/run_v1/classes.rb', line 1358 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
Not supported by Cloud Run.
Corresponds to the JSON property host
1336 1337 1338 |
# File 'lib/google/apis/run_v1/classes.rb', line 1336 def host @host end |
#http_headers ⇒ Array<Google::Apis::RunV1::HttpHeader>
Custom headers to set in the request. HTTP allows repeated headers.
Corresponds to the JSON property httpHeaders
1341 1342 1343 |
# File 'lib/google/apis/run_v1/classes.rb', line 1341 def http_headers @http_headers end |
#path ⇒ String
Path to access on the HTTP server.
Corresponds to the JSON property path
1346 1347 1348 |
# File 'lib/google/apis/run_v1/classes.rb', line 1346 def path @path end |
#port ⇒ Fixnum
Port number to access on the container. Number must be in the range 1 to 65535.
Corresponds to the JSON property port
1351 1352 1353 |
# File 'lib/google/apis/run_v1/classes.rb', line 1351 def port @port end |
#scheme ⇒ String
Not supported by Cloud Run.
Corresponds to the JSON property scheme
1356 1357 1358 |
# File 'lib/google/apis/run_v1/classes.rb', line 1356 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1363 1364 1365 1366 1367 1368 1369 |
# File 'lib/google/apis/run_v1/classes.rb', line 1363 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 |