Sha256: fb8cdeac936c1ff80c30c585861d24fdb3f94819379434461808055dee389119

Contents?: true

Size: 1.45 KB

Versions: 9

Compression:

Stored size: 1.45 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ContainerInstance::Mgmt::V2017_12_01_preview
  module Models
    #
    # The port exposed on the container group.
    #
    class Port

      include MsRestAzure

      # @return [ContainerGroupNetworkProtocol] The protocol associated with
      # the port. Possible values include: 'TCP', 'UDP'
      attr_accessor :protocol

      # @return [Integer] The port number.
      attr_accessor :port


      #
      # Mapper for Port class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
azure_mgmt_container_instance-0.18.0 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.6 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.5 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.4 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.3 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.2 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.1 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.17.0 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb
azure_mgmt_container_instance-0.16.0 lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb