Sha256: 964880c8581238e3aa18c64c57d546bcd15a64d59cedf21f382a30545cbec306

Contents?: true

Size: 1.92 KB

Versions: 9

Compression:

Stored size: 1.92 KB

Contents

# 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_07_01
  module Models
    #
    # Describes the basic properties of all codecs.
    #
    class Codec

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["#Microsoft.Media.Audio"] = "Audio"
      @@discriminatorMap["#Microsoft.Media.AacAudio"] = "AacAudio"
      @@discriminatorMap["#Microsoft.Media.CopyVideo"] = "CopyVideo"
      @@discriminatorMap["#Microsoft.Media.Video"] = "Video"
      @@discriminatorMap["#Microsoft.Media.Image"] = "Image"
      @@discriminatorMap["#Microsoft.Media.CopyAudio"] = "CopyAudio"
      @@discriminatorMap["#Microsoft.Media.H264Video"] = "H264Video"
      @@discriminatorMap["#Microsoft.Media.JpgImage"] = "JpgImage"
      @@discriminatorMap["#Microsoft.Media.PngImage"] = "PngImage"

      def initialize
        @odatatype = "Codec"
      end

      attr_accessor :odatatype

      # @return [String] An optional label for the codec. The label can be used
      # to control muxing behavior.
      attr_accessor :label


      #
      # Mapper for Codec class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.21.1 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.21.0 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.20.1 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.20.0 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.19.1 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.19.0 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.18.1 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.18.0 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb
azure_mgmt_media_services-0.17.2 lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb