Class: Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationResultContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb

Overview

Operation Result.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#action_logArray<OperationResultLogItemContract>

provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation.

Returns:



44
45
46
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 44

def action_log
  @action_log
end

#errorErrorResponse

Returns Error Body Contract.

Returns:



38
39
40
# File 'lib/2017-03-01/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/2017-03-01/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/2017-03-01/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/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 26

def started
  @started
end

#statusAsyncOperationStatus

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

Returns:



20
21
22
# File 'lib/2017-03-01/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/2017-03-01/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.



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
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb', line 51

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: 'AsyncOperationStatus'
          }
        },
        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: 'ErrorResponse'
          }
        },
        action_log: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'actionLog',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'OperationResultLogItemContractElementType',
                type: {
                  name: 'Composite',
                  class_name: 'OperationResultLogItemContract'
                }
            }
          }
        }
      }
    }
  }
end