# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class RepairTaskCancelDescription(Model):
"""Describes a request to cancel a repair task.
This type supports the Service Fabric platform; it is not meant to be used
directly from your code.
All required parameters must be populated in order to send to Azure.
:param task_id: Required. The ID of the repair task.
:type task_id: str
:param version: The current version number of the repair task. If
non-zero, then the request will only succeed if this value matches the
actual current version of the repair task. If zero, then no version check
is performed.
:type version: str
:param request_abort: _True_ if the repair should be stopped as soon as
possible even if it has already started executing. _False_ if the repair
should be cancelled only if execution has not yet started.
:type request_abort: bool
"""
_validation = {
'task_id': {'required': True},
}
_attribute_map = {
'task_id': {'key': 'TaskId', 'type': 'str'},
'version': {'key': 'Version', 'type': 'str'},
'request_abort': {'key': 'RequestAbort', 'type': 'bool'},
}
def __init__(self, *, task_id: str, version: str=None, request_abort: bool=None, **kwargs) -> None:
super(RepairTaskCancelDescription, self).__init__(**kwargs)
self.task_id = task_id
self.version = version
self.request_abort = request_abort