Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::Overlay

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb

Overview

Base type for all overlays - image, audio or video.

Direct Known Subclasses

AudioOverlay, VideoOverlay

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOverlay



19
20
21
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 19

def initialize
  @odatatype = "Overlay"
end

Instance Attribute Details

#audio_gain_levelFloat

should be in the range [0, 1.0]. The default is 1.0.



62
63
64
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 62

def audio_gain_level
  @audio_gain_level
end

#end_propertyDuration

at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration.



47
48
49
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 47

def end_property
  @end_property
end

#fade_in_durationDuration

the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S).



53
54
55
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 53

def fade_in_duration
  @fade_in_duration
end

#fade_out_durationDuration

input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S).



58
59
60
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 58

def fade_out_duration
  @fade_out_duration
end

#input_labelString

overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See aka.ms/mesformats for the complete list of supported audio and video file formats.



31
32
33
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 31

def input_label
  @input_label
end

#odatatypeObject

Returns the value of attribute odatatype.



23
24
25
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 23

def odatatype
  @odatatype
end

#startDuration

video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video.



38
39
40
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 38

def start
  @start
end

Class Method Details

.mapperObject

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



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 69

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Overlay',
    type: {
      name: 'Composite',
      polymorphic_discriminator: '@odata.type',
      uber_parent: 'Overlay',
      class_name: 'Overlay',
      model_properties: {
        input_label: {
          client_side_validation: true,
          required: true,
          serialized_name: 'inputLabel',
          type: {
            name: 'String'
          }
        },
        start: {
          client_side_validation: true,
          required: false,
          serialized_name: 'start',
          type: {
            name: 'TimeSpan'
          }
        },
        end_property: {
          client_side_validation: true,
          required: false,
          serialized_name: 'end',
          type: {
            name: 'TimeSpan'
          }
        },
        fade_in_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fadeInDuration',
          type: {
            name: 'TimeSpan'
          }
        },
        fade_out_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fadeOutDuration',
          type: {
            name: 'TimeSpan'
          }
        },
        audio_gain_level: {
          client_side_validation: true,
          required: false,
          serialized_name: 'audioGainLevel',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end