Class: Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction
- 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
TCPSocketAction describes an action based on opening a socket
Instance Attribute Summary collapse
-
#port ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2TcpSocketAction
constructor
A new instance of GoogleCloudRunV2TcpSocketAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2TcpSocketAction
Returns a new instance of GoogleCloudRunV2TcpSocketAction.
2658 2659 2660 |
# File 'lib/google/apis/run_v2/classes.rb', line 2658 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
2656 2657 2658 |
# File 'lib/google/apis/run_v2/classes.rb', line 2656 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2663 2664 2665 |
# File 'lib/google/apis/run_v2/classes.rb', line 2663 def update!(**args) @port = args[:port] if args.key?(:port) end |