Class: Azure::IotHub::Mgmt::V2017_01_19::Models::JobResponse

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb

Overview

The properties of the Job Response object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_time_utcDateTime

Returns The time the job stopped processing.

Returns:

  • (DateTime)

    The time the job stopped processing.



22
23
24
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 22

def end_time_utc
  @end_time_utc
end

#failure_reasonString

for the failure.

Returns:

  • (String)

    If status == failed, this string containing the reason



36
37
38
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 36

def failure_reason
  @failure_reason
end

#job_idString

Returns The job identifier.

Returns:

  • (String)

    The job identifier.



16
17
18
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 16

def job_id
  @job_id
end

#parent_job_idString

Returns The job identifier of the parent job, if any.

Returns:

  • (String)

    The job identifier of the parent job, if any.



42
43
44
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 42

def parent_job_id
  @parent_job_id
end

#start_time_utcDateTime

Returns The start time of the job.

Returns:

  • (DateTime)

    The start time of the job.



19
20
21
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 19

def start_time_utc
  @start_time_utc
end

#statusJobStatus

‘unknown’, ‘enqueued’, ‘running’, ‘completed’, ‘failed’, ‘cancelled’

Returns:

  • (JobStatus)

    The status of the job. Possible values include:



32
33
34
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 32

def status
  @status
end

#status_messageString

Returns The status message for the job.

Returns:

  • (String)

    The status message for the job.



39
40
41
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 39

def status_message
  @status_message
end

#typeJobType

‘unknown’, ‘export’, ‘import’, ‘backup’, ‘readDeviceProperties’, ‘writeDeviceProperties’, ‘updateDeviceConfiguration’, ‘rebootDevice’, ‘factoryResetDevice’, ‘firmwareUpdate’

Returns:

  • (JobType)

    The type of the job. Possible values include:



28
29
30
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 28

def type
  @type
end

Class Method Details

.mapperObject

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



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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/2017-01-19/generated/azure_mgmt_iot_hub/models/job_response.rb', line 49

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JobResponse',
    type: {
      name: 'Composite',
      class_name: 'JobResponse',
      model_properties: {
        job_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'jobId',
          type: {
            name: 'String'
          }
        },
        start_time_utc: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startTimeUtc',
          type: {
            name: 'DateTimeRfc1123'
          }
        },
        end_time_utc: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'endTimeUtc',
          type: {
            name: 'DateTimeRfc1123'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'status',
          type: {
            name: 'Enum',
            module: 'JobStatus'
          }
        },
        failure_reason: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'failureReason',
          type: {
            name: 'String'
          }
        },
        status_message: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'statusMessage',
          type: {
            name: 'String'
          }
        },
        parent_job_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'parentJobId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end