# 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::StorageCache::Mgmt::V2020_10_01
  module Models
    #
    # A usage model.
    #
    class UsageModel

      include MsRestAzure

      # @return [UsageModelDisplay] Localized information describing this usage
      # model.
      attr_accessor :display

      # @return [String] Non-localized keyword name for this usage model.
      attr_accessor :model_name

      # @return [String] The type of Storage Target to which this model is
      # applicable (only nfs3 as of this version).
      attr_accessor :target_type


      #
      # Mapper for UsageModel class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UsageModel',
          type: {
            name: 'Composite',
            class_name: 'UsageModel',
            model_properties: {
              display: {
                client_side_validation: true,
                required: false,
                serialized_name: 'display',
                type: {
                  name: 'Composite',
                  class_name: 'UsageModelDisplay'
                }
              },
              model_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'modelName',
                type: {
                  name: 'String'
                }
              },
              target_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'targetType',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
