Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Codec

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

Overview

Describes the basic properties of all codecs.

Direct Known Subclasses

Audio, CopyAudio, CopyVideo, Video

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCodec

Returns a new instance of Codec.



26
27
28
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb', line 26

def initialize
  @odatatype = "Codec"
end

Instance Attribute Details

#labelString

to control muxing behavior.

Returns:

  • (String)

    An optional label for the codec. The label can be used



34
35
36
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb', line 34

def label
  @label
end

#odatatypeObject

Returns the value of attribute odatatype.



30
31
32
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb', line 30

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

Mapper for Codec 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
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Codec',
    type: {
      name: 'Composite',
      polymorphic_discriminator: '@odata.type',
      uber_parent: 'Codec',
      class_name: 'Codec',
      model_properties: {
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end