Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKey

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb

Overview

Class to specify properties of content key

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#labelString

a Streaming Locator

Returns:

  • (String)

    Label can be used to specify Content Key when creating



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

def label
  @label
end

#policy_nameString

Returns Policy used by Content Key.

Returns:

  • (String)

    Policy used by Content Key



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

def policy_name
  @policy_name
end

#tracksArray<TrackSelection>

Returns Tracks which use this content key.

Returns:



23
24
25
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb', line 23

def tracks
  @tracks
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
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
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb', line 30

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