Class: Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
HTTPGetAction describes an action based on HTTP Get requests.
Instance Attribute Summary collapse
-
#http_headers ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2HttpHeader>
Optional.
-
#path ⇒ String
Optional.
-
#port ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2HttpGetAction
constructor
A new instance of GoogleCloudRunV2HttpGetAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2HttpGetAction
Returns a new instance of GoogleCloudRunV2HttpGetAction.
1216 1217 1218 |
# File 'lib/google/apis/run_v2/classes.rb', line 1216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#http_headers ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2HttpHeader>
Optional. Custom headers to set in the request. HTTP allows repeated headers.
Corresponds to the JSON property httpHeaders
1202 1203 1204 |
# File 'lib/google/apis/run_v2/classes.rb', line 1202 def http_headers @http_headers end |
#path ⇒ String
Optional. Path to access on the HTTP server. Defaults to '/'.
Corresponds to the JSON property path
1207 1208 1209 |
# File 'lib/google/apis/run_v2/classes.rb', line 1207 def path @path end |
#port ⇒ Fixnum
Optional. Port number to access on the container. Must be in the range 1 to
- If not specified, defaults to the exposed port of the container, which
is the value of container.ports[0].containerPort.
Corresponds to the JSON property
port
1214 1215 1216 |
# File 'lib/google/apis/run_v2/classes.rb', line 1214 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1221 1222 1223 1224 1225 |
# File 'lib/google/apis/run_v2/classes.rb', line 1221 def update!(**args) @http_headers = args[:http_headers] if args.key?(:http_headers) @path = args[:path] if args.key?(:path) @port = args[:port] if args.key?(:port) end |