Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer

Inherits:
Object
  • Object
show all
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

JpgLayer, PngLayer, VideoLayer

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLayer

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

#heightString

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.

Returns:

  • (String)

    The height of the output video for this layer. The



40
41
42
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 40

def height
  @height
end

#labelString

used in multiplexing different video and audio layers, or in naming the output file.

Returns:

  • (String)

    The alphanumeric label for this layer, which can be



45
46
47
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb', line 45

def label
  @label
end

#odatatypeObject

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

#widthString

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.

Returns:

  • (String)

    The width of the output video for this layer. The



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

.mapperObject

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