# 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::TrafficManager::Mgmt::V2018_04_01
  module Models
    #
    # Subnet first address, scope, and/or last address.
    #
    class EndpointPropertiesSubnetsItem

      include MsRestAzure

      # @return [String] First address in the subnet.
      attr_accessor :first

      # @return [String] Last address in the subnet.
      attr_accessor :last

      # @return [Integer] Block size (number of leading bits in the subnet
      # mask).
      attr_accessor :scope


      #
      # Mapper for EndpointPropertiesSubnetsItem class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'EndpointProperties_subnetsItem',
          type: {
            name: 'Composite',
            class_name: 'EndpointPropertiesSubnetsItem',
            model_properties: {
              first: {
                client_side_validation: true,
                required: false,
                serialized_name: 'first',
                type: {
                  name: 'String'
                }
              },
              last: {
                client_side_validation: true,
                required: false,
                serialized_name: 'last',
                type: {
                  name: 'String'
                }
              },
              scope: {
                client_side_validation: true,
                required: false,
                serialized_name: 'scope',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
