Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::SelectVideoTrackByAttribute

Inherits:
VideoTrackDescriptor show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb

Overview

Select video tracks from the input by specifying an attribute and an attribute filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSelectVideoTrackByAttribute

Returns a new instance of SelectVideoTrackByAttribute.



17
18
19
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb', line 17

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

Instance Attribute Details

#attributeTrackAttribute

Possible values include: ‘Bitrate’, ‘Language’

Returns:



25
26
27
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb', line 25

def attribute
  @attribute
end

#filterAttributeFilter

TrackAttribute in order to select the tracks. Possible values include: ‘All’, ‘Top’, ‘Bottom’, ‘ValueEquals’

Returns:



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

def filter
  @filter
end

#filter_valueString

AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: ‘1500000’). The TrackAttribute.Language is not supported for video tracks.

Returns:

  • (String)

    The value to filter the tracks by. Only used when



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

def filter_value
  @filter_value
end

#odatatypeObject

Returns the value of attribute odatatype.



21
22
23
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb', line 21

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

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



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
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.SelectVideoTrackByAttribute',
    type: {
      name: 'Composite',
      class_name: 'SelectVideoTrackByAttribute',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        attribute: {
          client_side_validation: true,
          required: true,
          serialized_name: 'attribute',
          type: {
            name: 'String'
          }
        },
        filter: {
          client_side_validation: true,
          required: true,
          serialized_name: 'filter',
          type: {
            name: 'String'
          }
        },
        filter_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filterValue',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end