Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Audio
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb
Overview
Defines the common properties for all audio codecs.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bitrate ⇒ Integer
encoded audio.
-
#channels ⇒ Integer
The number of channels in the audio.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#sampling_rate ⇒ Integer
The sampling rate to use for encoding in hertz.
Attributes inherited from Codec
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Audio class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ Audio
constructor
A new instance of Audio.
Constructor Details
#initialize ⇒ Audio
Returns a new instance of Audio.
16 17 18 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 16 def initialize @odatatype = "#Microsoft.Media.Audio" end |
Instance Attribute Details
#bitrate ⇒ Integer
encoded audio.
30 31 32 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 30 def bitrate @bitrate end |
#channels ⇒ Integer
Returns The number of channels in the audio.
23 24 25 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 23 def channels @channels end |
#odatatype ⇒ Object
Returns the value of attribute odatatype.
20 21 22 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 20 def odatatype @odatatype end |
#sampling_rate ⇒ Integer
Returns The sampling rate to use for encoding in hertz.
26 27 28 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 26 def sampling_rate @sampling_rate end |
Class Method Details
.mapper ⇒ Object
Mapper for Audio class as Ruby Hash. This will be used for serialization/deserialization.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 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 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: '#Microsoft.Media.Audio', type: { name: 'Composite', class_name: 'Audio', model_properties: { label: { client_side_validation: true, required: false, serialized_name: 'label', type: { name: 'String' } }, odatatype: { client_side_validation: true, required: true, serialized_name: '@odata\\.type', type: { name: 'String' } }, channels: { client_side_validation: true, required: false, serialized_name: 'channels', type: { name: 'Number' } }, sampling_rate: { client_side_validation: true, required: false, serialized_name: 'samplingRate', type: { name: 'Number' } }, bitrate: { client_side_validation: true, required: false, serialized_name: 'bitrate', type: { name: 'Number' } } } } } end |