class Azure::ContainerInstance::Mgmt::V2020_11_01::Models::ContainerPort
The port exposed on the container instance.
Attributes
port[RW]
@return [Integer] The port number exposed within the container group.
protocol[RW]
@return [ContainerNetworkProtocol] The protocol associated with the port. Possible values include: 'TCP', 'UDP'
Private Class Methods
mapper()
click to toggle source
Mapper for ContainerPort
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-11-01/generated/azure_mgmt_container_instance/models/container_port.rb, line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContainerPort', type: { name: 'Composite', class_name: 'ContainerPort', 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