from msrest.serialization import Model


class OperationResult(Model):

    _required = []

    _attribute_map = {
        'status': {'key': 'status', 'type': 'str'},
        'error': {'key': 'error', 'type': 'OperationResultError'},
    }

    def __init__(self, *args, **kwargs):
        """OperationResult

        :param str status: The status of the request. Possible values for this
        property include: 'Succeeded', 'Failed', 'canceled', 'Accepted',
        'Creating', 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted',
        'OK'.
        :param OperationResultError error
        """
        self.status = None
        self.error = None

        super(OperationResult, self).__init__(*args, **kwargs)
