Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::StreamingLocatorContentKey

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb

Overview

Class for content key in Streaming Locator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject

Returns ID of Content Key.

Returns:

  • ID of Content Key



16
17
18
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 16

def id
  @id
end

#label_reference_in_streaming_policyString

Policy

Returns:

  • (String)

    Label of Content Key as specified in the Streaming



25
26
27
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 25

def label_reference_in_streaming_policy
  @label_reference_in_streaming_policy
end

#policy_nameString

Returns ContentKeyPolicy used by Content Key.

Returns:

  • (String)

    ContentKeyPolicy used by Content Key



31
32
33
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 31

def policy_name
  @policy_name
end

#tracksArray<TrackSelection>

Returns Tracks which use this Content Key.

Returns:



34
35
36
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 34

def tracks
  @tracks
end

#typeStreamingLocatorContentKeyType

Key. Possible values include: ‘CommonEncryptionCenc’, ‘CommonEncryptionCbcs’, ‘EnvelopeEncryption’

Returns:



21
22
23
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 21

def type
  @type
end

#valueString

Returns Value of Content Key.

Returns:

  • (String)

    Value of Content Key



28
29
30
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 28

def value
  @value
end

Class Method Details

.mapperObject

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



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'StreamingLocatorContentKey',
    type: {
      name: 'Composite',
      class_name: 'StreamingLocatorContentKey',
      model_properties: {
        id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        label_reference_in_streaming_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'labelReferenceInStreamingPolicy',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        policy_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'policyName',
          type: {
            name: 'String'
          }
        },
        tracks: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tracks',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TrackSelectionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TrackSelection'
                }
            }
          }
        }
      }
    }
  }
end