Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::OperationResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb

Overview

An Operation Result

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#errorOperationError

failure.

Returns:



35
36
37
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb', line 35

def error
  @error
end

#statusString

Returns The operation status.

Returns:

  • (String)

    The operation status.



16
17
18
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb', line 16

def status
  @status
end

#status_codeHttpStatusCode

values include: ‘Continue’, ‘SwitchingProtocols’, ‘OK’, ‘Created’, ‘Accepted’, ‘NonAuthoritativeInformation’, ‘NoContent’, ‘ResetContent’, ‘PartialContent’, ‘MultipleChoices’, ‘MovedPermanently’, ‘Redirect’, ‘SeeOther’, ‘NotModified’, ‘UseProxy’, ‘Unused’, ‘TemporaryRedirect’, ‘BadRequest’, ‘Unauthorized’, ‘PaymentRequired’, ‘Forbidden’, ‘NotFound’, ‘MethodNotAllowed’, ‘NotAcceptable’, ‘ProxyAuthenticationRequired’, ‘RequestTimeout’, ‘Conflict’, ‘Gone’, ‘LengthRequired’, ‘PreconditionFailed’, ‘RequestEntityTooLarge’, ‘RequestUriTooLong’, ‘UnsupportedMediaType’, ‘RequestedRangeNotSatisfiable’, ‘ExpectationFailed’, ‘UpgradeRequired’, ‘InternalServerError’, ‘NotImplemented’, ‘BadGateway’, ‘ServiceUnavailable’, ‘GatewayTimeout’, ‘HttpVersionNotSupported’

Returns:



31
32
33
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb', line 31

def status_code
  @status_code
end

Class Method Details

.mapperObject

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



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
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OperationResult',
    type: {
      name: 'Composite',
      class_name: 'OperationResult',
      model_properties: {
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        status_code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'statusCode',
          type: {
            name: 'String'
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'error',
          type: {
            name: 'Composite',
            class_name: 'OperationError'
          }
        }
      }
    }
  }
end