Class: Google::Apis::RunV1alpha1::HttpGetAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::HttpGetAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
HTTPGetAction describes an action based on HTTP Get requests.
Instance Attribute Summary collapse
-
#host ⇒ String
Host name to connect to, defaults to the pod IP.
-
#http_headers ⇒ Array<Google::Apis::RunV1alpha1::HttpHeader>
Custom headers to set in the request.
-
#path ⇒ String
Path to access on the HTTP server.
-
#port ⇒ Google::Apis::RunV1alpha1::IntOrString
IntOrString is a type that can hold an int32 or a string.
-
#scheme ⇒ String
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.
1931 1932 1933 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1931 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
Host name to connect to, defaults to the pod IP. You probably want to set "
Host" in httpHeaders instead. +optional
Corresponds to the JSON property host
1906 1907 1908 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1906 def host @host end |
#http_headers ⇒ Array<Google::Apis::RunV1alpha1::HttpHeader>
Custom headers to set in the request. HTTP allows repeated headers. +optional
Corresponds to the JSON property httpHeaders
1911 1912 1913 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1911 def http_headers @http_headers end |
#path ⇒ String
Path to access on the HTTP server. +optional
Corresponds to the JSON property path
1916 1917 1918 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1916 def path @path end |
#port ⇒ Google::Apis::RunV1alpha1::IntOrString
IntOrString is a type that can hold an int32 or a string. When used in JSON or
YAML marshalling and unmarshalling, it produces or consumes the inner type.
This allows you to have, for example, a JSON field that can accept a name or
number.
Corresponds to the JSON property port
1924 1925 1926 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1924 def port @port end |
#scheme ⇒ String
Scheme to use for connecting to the host. Defaults to HTTP. +optional
Corresponds to the JSON property scheme
1929 1930 1931 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1929 def scheme @scheme end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1936 1937 1938 1939 1940 1941 1942 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1936 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 |