Class: Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobOutput
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobOutput
- 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
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#error ⇒ JobError
the details of the error.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#progress ⇒ Integer
contains the job completion percentage.
-
#state ⇒ JobState
values include: ‘Canceled’, ‘Canceling’, ‘Error’, ‘Finished’, ‘Processing’, ‘Queued’, ‘Scheduled’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for JobOutput class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ JobOutput
constructor
A new instance of JobOutput.
Constructor Details
#initialize ⇒ JobOutput
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
#error ⇒ JobError
the details of the error.
26 27 28 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_output.rb', line 26 def error @error end |
#odatatype ⇒ Object
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 |
#progress ⇒ Integer
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.
37 38 39 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_media_services/models/job_output.rb', line 37 def progress @progress end |
#state ⇒ JobState
values include: ‘Canceled’, ‘Canceling’, ‘Error’, ‘Finished’, ‘Processing’, ‘Queued’, ‘Scheduled’
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
.mapper ⇒ Object
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 |