Class: Google::Apis::RunV1alpha1::TcpSocketAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::TcpSocketAction
- 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
TCPSocketAction describes an action based on opening a socket
Instance Attribute Summary collapse
-
#host ⇒ String
Optional: Host name to connect to, defaults to the pod IP.
-
#port ⇒ Google::Apis::RunV1alpha1::IntOrString
IntOrString is a type that can hold an int32 or a string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TcpSocketAction
constructor
A new instance of TcpSocketAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TcpSocketAction
Returns a new instance of TcpSocketAction
4377 4378 4379 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
Optional: Host name to connect to, defaults to the pod IP.
+optional
Corresponds to the JSON property host
4367 4368 4369 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4367 def host @host 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
4375 4376 4377 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4375 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4382 4383 4384 4385 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4382 def update!(**args) @host = args[:host] if args.key?(:host) @port = args[:port] if args.key?(:port) end |