# 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_03_30_preview module Models # # Class to specify properties of content key # class StreamingPolicyContentKey include MsRestAzure # @return [String] Label can be used to specify Content Key when creating # Stremaing Locator attr_accessor :label # @return [String] Policy used by Content Key attr_accessor :policy_name # @return [Array] Tracks which use this content key attr_accessor :tracks # # Mapper for StreamingPolicyContentKey class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'StreamingPolicyContentKey', type: { name: 'Composite', class_name: 'StreamingPolicyContentKey', 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' } }, tracks: { client_side_validation: true, required: false, serialized_name: 'tracks', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'TrackSelectionElementType', type: { name: 'Composite', class_name: 'TrackSelection' } } } } } } } end end end end