Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::Format

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-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/2020-05-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

  • An expansion macro that will use the name of the input video file. If

the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. 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. Resolution - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename.

Returns:

  • (String)

    The pattern of the file names for the generated output



42
43
44
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb', line 42

def filename_pattern
  @filename_pattern
end

#odatatypeObject

Returns the value of attribute odatatype.



27
28
29
# File 'lib/2020-05-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.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb', line 49

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