class Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation

Record to track long running operation.

Attributes

created_timestamp[RW]

@return [String] Timestamp when the operation was created.

error_response[RW]

@return [ErrorResponse] Error details in case of failures.

last_action_timestamp[RW]

@return [String] Timestamp when the current state was entered.

operation_id[RW]

@return [String] Operation Id.

operation_state[RW]

@return [OperationStateType] Operation state. Possible values include: 'Failed', 'NotStarted', 'Running', 'Succeeded'

resource_location[RW]

@return [String] Relative URI to the target resource location for completed resources.

user_id[RW]

@return [String] User Id

Private Class Methods

mapper() click to toggle source

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

# File lib/4.0/generated/azure_cognitiveservices_qnamaker/models/operation.rb, line 43
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Operation',
    type: {
      name: 'Composite',
      class_name: 'Operation',
      model_properties: {
        operation_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'operationState',
          type: {
            name: 'String'
          }
        },
        created_timestamp: {
          client_side_validation: true,
          required: false,
          serialized_name: 'createdTimestamp',
          type: {
            name: 'String'
          }
        },
        last_action_timestamp: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastActionTimestamp',
          type: {
            name: 'String'
          }
        },
        resource_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resourceLocation',
          type: {
            name: 'String'
          }
        },
        user_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'userId',
          type: {
            name: 'String'
          }
        },
        operation_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'operationId',
          type: {
            name: 'String'
          }
        },
        error_response: {
          client_side_validation: true,
          required: false,
          serialized_name: 'errorResponse',
          type: {
            name: 'Composite',
            class_name: 'ErrorResponse'
          }
        }
      }
    }
  }
end