Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb
Overview
The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#height ⇒ String
value can be absolute (in pixels) or relative (in percentage).
-
#label ⇒ String
used in multiplexing different video and audio layers, or in naming the output file.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#width ⇒ String
value can be absolute (in pixels) or relative (in percentage).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Layer class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ Layer
constructor
A new instance of Layer.
Constructor Details
#initialize ⇒ Layer
Returns a new instance of Layer.
24 25 26 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 24 def initialize @odatatype = "Layer" end |
Instance Attribute Details
#height ⇒ String
value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.
40 41 42 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 40 def height @height end |
#label ⇒ String
used in multiplexing different video and audio layers, or in naming the output file.
45 46 47 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 45 def label @label end |
#odatatype ⇒ Object
Returns the value of attribute odatatype.
28 29 30 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 28 def odatatype @odatatype end |
#width ⇒ String
value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.
34 35 36 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 34 def width @width end |
Class Method Details
.mapper ⇒ Object
Mapper for Layer class as Ruby Hash. This will be used for serialization/deserialization.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 52 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Layer', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'Layer', class_name: 'Layer', model_properties: { width: { client_side_validation: true, required: false, serialized_name: 'width', type: { name: 'String' } }, height: { client_side_validation: true, required: false, serialized_name: 'height', type: { name: 'String' } }, label: { client_side_validation: true, required: false, serialized_name: 'label', type: { name: 'String' } } } } } end |