Class: Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobOutput

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

Overview

Describes all the properties of a JobOutput.

Direct Known Subclasses

JobOutputAsset

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJobOutput

Returns a new instance of JobOutput.



18
19
20
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_output.rb', line 18

def initialize
  @odatatype = "JobOutput"
end

Instance Attribute Details

#errorJobError

the details of the error.

Returns:

  • (JobError)

    If the JobOutput is in the Error state, it contains



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

def error
  @error
end

#odatatypeObject

Returns the value of attribute odatatype.



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

def odatatype
  @odatatype
end

#progressInteger

contains the job completion percentage. The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.

Returns:

  • (Integer)

    If the JobOutput is in a Processing state, this



37
38
39
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_output.rb', line 37

def progress
  @progress
end

#stateJobState

values include: ‘Canceled’, ‘Canceling’, ‘Error’, ‘Finished’, ‘Processing’, ‘Queued’, ‘Scheduled’

Returns:

  • (JobState)

    Describes the state of the JobOutput. Possible



31
32
33
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_output.rb', line 31

def state
  @state
end

Class Method Details

.mapperObject

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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JobOutput',
    type: {
      name: 'Composite',
      polymorphic_discriminator: '@odata.type',
      uber_parent: 'JobOutput',
      class_name: 'JobOutput',
      model_properties: {
        error: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'error',
          type: {
            name: 'Composite',
            class_name: 'JobError'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'Enum',
            module: 'JobState'
          }
        },
        progress: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'progress',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end