# 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::MediaServices::Mgmt::V2018_06_01_preview
  module Models
    #
    # Class to specify properties of default content key for each encryption
    # scheme
    #
    class DefaultKey

      include MsRestAzure

      # @return [String] Label can be used to specify Content Key when creating
      # a Streaming Locator
      attr_accessor :label

      # @return [String] Policy used by Default Key
      attr_accessor :policy_name


      #
      # Mapper for DefaultKey class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DefaultKey',
          type: {
            name: 'Composite',
            class_name: 'DefaultKey',
            model_properties: {
              label: {
                client_side_validation: true,
                required: false,
                serialized_name: 'label',
                type: {
                  name: 'String'
                }
              },
              policy_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'policyName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
