Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::OperationStatus

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

ISO-8601.

Returns:

  • (DateTime)

    The operation end time. The format of the time is



35
36
37
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 35

def end_time
  @end_time
end

#errorOperationStatusError

operation.

Returns:



39
40
41
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 39

def error
  @error
end

#idString

Returns ID of the operation.

Returns:

  • (String)

    ID of the operation.



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

def id
  @id
end

#nameString

Returns Name of the operation.

Returns:

  • (String)

    Name of the operation.



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

def name
  @name
end

#propertiesOperationStatusExtendedInfo

with this operation.

Returns:



43
44
45
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 43

def properties
  @properties
end

#start_timeDateTime

ISO-8601.

Returns:

  • (DateTime)

    The operation start time. The format of the time is



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

def start_time
  @start_time
end

#statusOperationStatusValues

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

Returns:



27
28
29
# File 'lib/2016-06-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.



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
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb', line 50

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: 'Enum',
            module: 'OperationStatusValues'
          }
        },
        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