Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::InputFile

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

Overview

An InputDefinition for a single file. TrackSelections are scoped to the file specified.

Instance Attribute Summary collapse

Attributes inherited from InputDefinition

#included_tracks

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInputFile

Returns a new instance of InputFile.



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

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

Instance Attribute Details

#filenameString

to.

Returns:

  • (String)

    Name of the file that this input definition applies



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

def filename
  @filename
end

#odatatypeObject

Returns the value of attribute odatatype.



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

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

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



32
33
34
35
36
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
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/input_file.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.InputFile',
    type: {
      name: 'Composite',
      class_name: 'InputFile',
      model_properties: {
        included_tracks: {
          client_side_validation: true,
          required: false,
          serialized_name: 'includedTracks',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TrackDescriptorElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: '@odata.type',
                  uber_parent: 'TrackDescriptor',
                  class_name: 'TrackDescriptor'
                }
            }
          }
        },
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        filename: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filename',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end