Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::VideoAnalyzerPreset

Inherits:
AudioAnalyzerPreset show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb

Overview

A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file.

Instance Attribute Summary collapse

Attributes inherited from AudioAnalyzerPreset

#audio_language, #experimental_options

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVideoAnalyzerPreset

Returns a new instance of VideoAnalyzerPreset.



17
18
19
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb', line 17

def initialize
  @odatatype = "#Microsoft.Media.VideoAnalyzerPreset"
end

Instance Attribute Details

#insights_to_extractInsightsType

service to generate. The allowed values are ‘AudioInsightsOnly’, ‘VideoInsightsOnly’, and ‘AllInsights’. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: ‘AudioInsightsOnly’, ‘VideoInsightsOnly’, ‘AllInsights’

Returns:

  • (InsightsType)

    Defines the type of insights that you want the



33
34
35
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb', line 33

def insights_to_extract
  @insights_to_extract
end

#odatatypeObject

Returns the value of attribute odatatype.



21
22
23
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb', line 21

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

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



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
90
91
92
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.VideoAnalyzerPreset',
    type: {
      name: 'Composite',
      class_name: 'VideoAnalyzerPreset',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        audio_language: {
          client_side_validation: true,
          required: false,
          serialized_name: 'audioLanguage',
          type: {
            name: 'String'
          }
        },
        experimental_options: {
          client_side_validation: true,
          required: false,
          serialized_name: 'experimentalOptions',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        insights_to_extract: {
          client_side_validation: true,
          required: false,
          serialized_name: 'insightsToExtract',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end