Class: Google::Apis::RunV1alpha1::HttpGetAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::HttpGetAction
- 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
-
#host ⇒ String
(Optional) Host name to connect to, defaults to the pod IP.
-
#http_headers ⇒ Array<Google::Apis::RunV1alpha1::HttpHeader>
(Optional) Custom headers to set in the request.
-
#path ⇒ String
(Optional) Path to access on the HTTP server.
-
#scheme ⇒ String
(Optional) Scheme to use for connecting to the host.
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.
580 581 582 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
(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
563 564 565 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 563 def host @host end |
#http_headers ⇒ Array<Google::Apis::RunV1alpha1::HttpHeader>
(Optional) Custom headers to set in the request. HTTP allows repeated headers.
Corresponds to the JSON property httpHeaders
568 569 570 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 568 def http_headers @http_headers end |
#path ⇒ String
(Optional) Path to access on the HTTP server.
Corresponds to the JSON property path
573 574 575 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 573 def path @path end |
#scheme ⇒ String
(Optional) Scheme to use for connecting to the host. Defaults to HTTP.
Corresponds to the JSON property scheme
578 579 580 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 578 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
585 586 587 588 589 590 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 585 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 |