class Google::Apis::ComputeBeta::NamedPort
The named port. For example: <“http”, 80>.
Attributes
name[RW]
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. Corresponds to the JSON property `name` @return [String]
port[RW]
The port number, which can be a value between 1 and 65535. Corresponds to the JSON property `port` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 19344 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/compute_beta/classes.rb, line 19349 def update!(**args) @name = args[:name] if args.key?(:name) @port = args[:port] if args.key?(:port) end