# 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::DevTestLabs::Mgmt::V2016_05_15
  module Models
    #
    # Subnet information.
    #
    class SubnetFragment

      include MsRestAzure

      # @return [String] The resource ID of the subnet.
      attr_accessor :resource_id

      # @return [String] The name of the subnet as seen in the lab.
      attr_accessor :lab_subnet_name

      # @return [UsagePermissionType] The permission policy of the subnet for
      # allowing public IP addresses (i.e. Allow, Deny)). Possible values
      # include: 'Default', 'Deny', 'Allow'
      attr_accessor :allow_public_ip


      #
      # Mapper for SubnetFragment class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SubnetFragment',
          type: {
            name: 'Composite',
            class_name: 'SubnetFragment',
            model_properties: {
              resource_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'resourceId',
                type: {
                  name: 'String'
                }
              },
              lab_subnet_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'labSubnetName',
                type: {
                  name: 'String'
                }
              },
              allow_public_ip: {
                client_side_validation: true,
                required: false,
                serialized_name: 'allowPublicIp',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
