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
Cloud Run fully managed: not supported Cloud Run for Anthos: supported HTTPGetAction describes an action based on HTTP Get requests.
Instance Attribute Summary collapse
-
#host ⇒ String
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Host name to connect to, defaults to the pod IP.
-
#http_headers ⇒ Array<Google::Apis::RunV1::HttpHeader>
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Custom headers to set in the request.
-
#path ⇒ String
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Path to access on the HTTP server.
-
#scheme ⇒ String
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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.
1072 1073 1074 |
# File 'lib/google/apis/run_v1/classes.rb', line 1072 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
(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
1052 1053 1054 |
# File 'lib/google/apis/run_v1/classes.rb', line 1052 def host @host end |
#http_headers ⇒ Array<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
1058 1059 1060 |
# File 'lib/google/apis/run_v1/classes.rb', line 1058 def http_headers @http_headers end |
#path ⇒ String
(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
1064 1065 1066 |
# File 'lib/google/apis/run_v1/classes.rb', line 1064 def path @path end |
#scheme ⇒ String
(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
1070 1071 1072 |
# File 'lib/google/apis/run_v1/classes.rb', line 1070 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1077 1078 1079 1080 1081 1082 |
# File 'lib/google/apis/run_v1/classes.rb', line 1077 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 |