Class: Azure::RecoveryServicesBackup::Mgmt::V2020_02_02::Models::OperationStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-02-02/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



29
30
31
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 29

def end_time
  @end_time
end

#errorOperationStatusError

operation.



33
34
35
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 33

def error
  @error
end

#idString



16
17
18
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 16

def id
  @id
end

#nameString



19
20
21
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 19

def name
  @name
end

#start_timeDateTime



26
27
28
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 26

def start_time
  @start_time
end

#statusOperationStatusValues

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



23
24
25
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 23

def status
  @status
end

Class Method Details

.mapperObject

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



40
41
42
43
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/2020-02-02/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 40

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'
          }
        }
      }
    }
  }
end