Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::OperationResultContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb

Overview

Operation Result.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#errorErrorBodyContract

Returns:



38
39
40
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 38

def error
  @error
end

#idString

Returns Operation result identifier.

Returns:

  • (String)

    Operation result identifier.



16
17
18
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 16

def id
  @id
end

#result_infoString

Returns Optional result info.

Returns:

  • (String)

    Optional result info.



35
36
37
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 35

def result_info
  @result_info
end

#startedDateTime

to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    Start time of an async operation. The date conforms



26
27
28
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 26

def started
  @started
end

#statusAsyncOperationState

values include: ‘Started’, ‘InProgress’, ‘Succeeded’, ‘Failed’

Returns:



20
21
22
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 20

def status
  @status
end

#updatedDateTime

conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    Last update time of an async operation. The date



32
33
34
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 32

def updated
  @updated
end

Class Method Details

.mapperObject

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



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
102
103
104
105
106
107
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 45

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OperationResultContract',
    type: {
      name: 'Composite',
      class_name: 'OperationResultContract',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'Enum',
            module: 'AsyncOperationState'
          }
        },
        started: {
          client_side_validation: true,
          required: false,
          serialized_name: 'started',
          type: {
            name: 'DateTime'
          }
        },
        updated: {
          client_side_validation: true,
          required: false,
          serialized_name: 'updated',
          type: {
            name: 'DateTime'
          }
        },
        result_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resultInfo',
          type: {
            name: 'String'
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'error',
          type: {
            name: 'Composite',
            class_name: 'ErrorBodyContract'
          }
        }
      }
    }
  }
end