Source code for azure.servicefabric.models.failed_property_batch_info_py3

# 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 .property_batch_info_py3 import PropertyBatchInfo


[docs]class FailedPropertyBatchInfo(PropertyBatchInfo): """Derived from PropertyBatchInfo. Represents the property batch failing. Contains information about the specific batch failure. All required parameters must be populated in order to send to Azure. :param kind: Required. Constant filled by server. :type kind: str :param error_message: The error message of the failed operation. Describes the exception thrown due to the first unsuccessful operation in the property batch. :type error_message: str :param operation_index: The index of the unsuccessful operation in the property batch. :type operation_index: int """ _validation = { 'kind': {'required': True}, } _attribute_map = { 'kind': {'key': 'Kind', 'type': 'str'}, 'error_message': {'key': 'ErrorMessage', 'type': 'str'}, 'operation_index': {'key': 'OperationIndex', 'type': 'int'}, } def __init__(self, *, error_message: str=None, operation_index: int=None, **kwargs) -> None: super(FailedPropertyBatchInfo, self).__init__(**kwargs) self.error_message = error_message self.operation_index = operation_index self.kind = 'Failed'