Class: Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInput

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_input.rb

Overview

Base class for inputs to a Job.

Direct Known Subclasses

JobInputClip, JobInputs

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJobInput

Returns a new instance of JobInput.



21
22
23
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_input.rb', line 21

def initialize
  @odatatype = "JobInput"
end

Instance Attribute Details

#labelString

to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label ‘xyz’ and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label ‘xyz’.

Returns:

  • (String)

    A label that is assigned to a JobInput, that is used



33
34
35
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_input.rb', line 33

def label
  @label
end

#odatatypeObject

Returns the value of attribute odatatype.



25
26
27
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_input.rb', line 25

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

Mapper for JobInput 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
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_input.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JobInput',
    type: {
      name: 'Composite',
      polymorphic_discriminator: '@odata.type',
      uber_parent: 'JobInput',
      class_name: 'JobInput',
      model_properties: {
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end