Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::JobInputClip

Inherits:
JobInput
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_clip.rb

Overview

Represents input files for a Job.

Direct Known Subclasses

JobInputAsset, JobInputHttp

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJobInputClip

Returns a new instance of JobInputClip.



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

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

Instance Attribute Details

#end_propertyClipTime

at which processing will end. Defaults to the end of the input media.

Returns:

  • (ClipTime)

    Defines a point on the timeline of the input media



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

def end_property
  @end_property
end

#filesArray<String>

Maximum of 4000 characters each.

Returns:

  • (Array<String>)

    List of files. Required for JobInputHttp.



24
25
26
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_clip.rb', line 24

def files
  @files
end

#labelString

used 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 JobInputClip, that is



41
42
43
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_clip.rb', line 41

def label
  @label
end

#odatatypeObject

Returns the value of attribute odatatype.



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

def odatatype
  @odatatype
end

#startClipTime

at which processing will start. Defaults to the beginning of the input media.

Returns:

  • (ClipTime)

    Defines a point on the timeline of the input media



29
30
31
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_clip.rb', line 29

def start
  @start
end

Class Method Details

.mapperObject

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



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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_clip.rb', line 48

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.JobInputClip',
    type: {
      name: 'Composite',
      class_name: 'JobInputClip',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        files: {
          client_side_validation: true,
          required: false,
          serialized_name: 'files',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        start: {
          client_side_validation: true,
          required: false,
          serialized_name: 'start',
          type: {
            name: 'Composite',
            polymorphic_discriminator: '@odata.type',
            uber_parent: 'ClipTime',
            class_name: 'ClipTime'
          }
        },
        end_property: {
          client_side_validation: true,
          required: false,
          serialized_name: 'end',
          type: {
            name: 'Composite',
            polymorphic_discriminator: '@odata.type',
            uber_parent: 'ClipTime',
            class_name: 'ClipTime'
          }
        },
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end