Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb

Overview

Operation status.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_timeDateTime



33
34
35
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 33

def end_time
  @end_time
end

#errorOperationStatusError

operation.



37
38
39
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 37

def error
  @error
end

#idString



20
21
22
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 20

def id
  @id
end

#nameString



23
24
25
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 23

def name
  @name
end

#propertiesOperationStatusExtendedInfo

with this operation.



41
42
43
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 41

def properties
  @properties
end

#start_timeDateTime



30
31
32
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 30

def start_time
  @start_time
end

#statusOperationStatusValues

include: ‘Invalid’, ‘InProgress’, ‘Succeeded’, ‘Failed’, ‘Canceled’



27
28
29
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 27

def status
  @status
end

Class Method Details

.mapperObject

Mapper for OperationStatus 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
115
116
117
118
119
120
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 48

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OperationStatus',
    type: {
      name: 'Composite',
      class_name: 'OperationStatus',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'endTime',
          type: {
            name: 'DateTime'
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'error',
          type: {
            name: 'Composite',
            class_name: 'OperationStatusError'
          }
        },
        properties: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'objectType',
            uber_parent: 'OperationStatusExtendedInfo',
            class_name: 'OperationStatusExtendedInfo'
          }
        }
      }
    }
  }
end