Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::Format
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2020_05_01::Models::Format
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb
Overview
Base class for output.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#filename_pattern ⇒ String
files.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Format class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ Format
constructor
A new instance of Format.
Constructor Details
#initialize ⇒ Format
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_pattern ⇒ String
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.
42 43 44 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb', line 42 def filename_pattern @filename_pattern end |
#odatatype ⇒ Object
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
.mapper ⇒ Object
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 |