Class: Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2TcpSocketAction

Returns a new instance of GoogleCloudRunV2TcpSocketAction.



1980
1981
1982
# File 'lib/google/apis/run_v2/classes.rb', line 1980

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#portFixnum

Port number to access on the container. Must be in the range 1 to 65535. 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

Returns:

  • (Fixnum)


1978
1979
1980
# File 'lib/google/apis/run_v2/classes.rb', line 1978

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1985
1986
1987
# File 'lib/google/apis/run_v2/classes.rb', line 1985

def update!(**args)
  @port = args[:port] if args.key?(:port)
end