Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Format

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

Overview

Base class for output.

Direct Known Subclasses

ImageFormat, MultiBitrateFormat

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFormat

Returns a new instance of Format.



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

def initialize
  @odatatype = "Format"
end

Instance Attribute Details

#filename_patternString

files. The following macros are supported in the file name: Basename

  • The base name of the input video Extension - The appropriate

extension for this format. Label - The label assigned to the codec/layer. Index - A unique index for thumbnails. Only applicable to thumbnails. Bitrate - The audio/video bitrate. Not applicable to thumbnails. Codec - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

Returns:

  • (String)

    The pattern of the file names for the generated output



37
38
39
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/format.rb', line 37

def filename_pattern
  @filename_pattern
end

#odatatypeObject

Returns the value of attribute odatatype.



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

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

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



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/format.rb', line 44

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