Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::HTTPGetAction.
HTTPGetAction describes an action based on HTTP Get requests.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#http_headers
def http_headers() -> ::Array<::Google::Cloud::Run::V2::HTTPHeader>
Returns
- (::Array<::Google::Cloud::Run::V2::HTTPHeader>) — Optional. Custom headers to set in the request. HTTP allows repeated headers.
#http_headers=
def http_headers=(value) -> ::Array<::Google::Cloud::Run::V2::HTTPHeader>
Parameter
- value (::Array<::Google::Cloud::Run::V2::HTTPHeader>) — Optional. Custom headers to set in the request. HTTP allows repeated headers.
Returns
- (::Array<::Google::Cloud::Run::V2::HTTPHeader>) — Optional. Custom headers to set in the request. HTTP allows repeated headers.
#path
def path() -> ::String
Returns
- (::String) — Optional. Path to access on the HTTP server. Defaults to '/'.
#path=
def path=(value) -> ::String
Parameter
- value (::String) — Optional. Path to access on the HTTP server. Defaults to '/'.
Returns
- (::String) — Optional. Path to access on the HTTP server. Defaults to '/'.
#port
def port() -> ::Integer
Returns
-
(::Integer) —
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.
#port=
def port=(value) -> ::Integer
Parameter
-
value (::Integer) —
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.
Returns
-
(::Integer) —
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.