# 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::V2019_05_01_preview module Models # # The properties of the Content Key Policy. # class ContentKeyPolicyProperties include MsRestAzure # @return The legacy Policy ID. attr_accessor :policy_id # @return [DateTime] The creation date of the Policy attr_accessor :created # @return [DateTime] The last modified date of the Policy attr_accessor :last_modified # @return [String] A description for the Policy. attr_accessor :description # @return [Array] The Key Policy options. attr_accessor :options # # Mapper for ContentKeyPolicyProperties class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyProperties', type: { name: 'Composite', class_name: 'ContentKeyPolicyProperties', model_properties: { policy_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'policyId', type: { name: 'String' } }, created: { client_side_validation: true, required: false, read_only: true, serialized_name: 'created', type: { name: 'DateTime' } }, last_modified: { client_side_validation: true, required: false, read_only: true, serialized_name: 'lastModified', type: { name: 'DateTime' } }, description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, options: { client_side_validation: true, required: true, serialized_name: 'options', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyOptionElementType', type: { name: 'Composite', class_name: 'ContentKeyPolicyOption' } } } } } } } end end end end