class Azure::ContainerInstance::Mgmt::V2017_12_01_preview::Models::Port
The port exposed on the container group.
Attributes
port[RW]
@return [Integer] The port number.
protocol[RW]
@return [ContainerGroupNetworkProtocol] The protocol associated with the port. Possible values include: 'TCP', 'UDP'
Public Class Methods
mapper()
click to toggle source
Mapper for Port
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb, line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Port', type: { name: 'Composite', class_name: 'Port', model_properties: { protocol: { client_side_validation: true, required: false, serialized_name: 'protocol', type: { name: 'String' } }, port: { client_side_validation: true, required: true, serialized_name: 'port', type: { name: 'Number' } } } } } end