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
Port number to access on the container.
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.
1820 1821 1822 |
# File 'lib/google/apis/run_v2/classes.rb', line 1820 def initialize(**args) update!(**args) end |
Instance Attribute Details
#port ⇒ Fixnum
Port number to access on the container. Must be in the range 1 to 65535. If
not specified, defaults to 8080.
Corresponds to the JSON property port
1818 1819 1820 |
# File 'lib/google/apis/run_v2/classes.rb', line 1818 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1825 1826 1827 |
# File 'lib/google/apis/run_v2/classes.rb', line 1825 def update!(**args) @port = args[:port] if args.key?(:port) end |