class Google::Apis::RunV1alpha1::TcpSocketAction

Not supported by Cloud Run TCPSocketAction describes an action based on opening a socket

Attributes

host[RW]

(Optional) Optional: Host name to connect to, defaults to the pod IP. Corresponds to the JSON property `host` @return [String]

port[RW]

Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. This field is currently limited to integer types only because of proto's inability to properly support the IntOrString golang type. Corresponds to the JSON property `port` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 1634
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1alpha1/classes.rb, line 1639
def update!(**args)
  @host = args[:host] if args.key?(:host)
  @port = args[:port] if args.key?(:port)
end