# 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::Labservices::Mgmt::V2018_10_15
  module Models
    #
    # This represents the details about a lab that the User is in, and its
    # state.
    #
    class LabDetails

      include MsRestAzure

      # @return [String] Name of the lab
      attr_accessor :name

      # @return [String] The provisioning state of the lab.
      attr_accessor :provisioning_state

      # @return [String] The Id of the lab.
      attr_accessor :id

      # @return [Duration] The maximum duration a user can use a VM in this
      # lab.
      attr_accessor :usage_quota


      #
      # Mapper for LabDetails class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LabDetails',
          type: {
            name: 'Composite',
            class_name: 'LabDetails',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              provisioning_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'provisioningState',
                type: {
                  name: 'String'
                }
              },
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              usage_quota: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'usageQuota',
                type: {
                  name: 'TimeSpan'
                }
              }
            }
          }
        }
      end
    end
  end
end
