Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader

Inherits:
ContentKeyPolicyPlayReadyContentKeyLocation show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb

Overview

Specifies that the content key ID is in the PlayReady header.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader

Returns a new instance of ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.



16
17
18
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb', line 16

def initialize
  @odatatype = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader"
end

Instance Attribute Details

#odatatypeObject

Returns the value of attribute odatatype.



20
21
22
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb', line 20

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

Mapper for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader class as Ruby Hash. This will be used for serialization/deserialization.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader',
    type: {
      name: 'Composite',
      class_name: 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end