1# --------------------------------------------------------------------------------------------
2# Copyright (c) Microsoft Corporation. All rights reserved.
3# Licensed under the MIT License. See License.txt in the project root for license information.
4# --------------------------------------------------------------------------------------------
5# Generated file, DO NOT EDIT
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------------------------
8
9from msrest.serialization import Model
10
11
12class GitRefUpdateResult(Model):
13    """GitRefUpdateResult.
14
15    :param custom_message: Custom message for the result object For instance, Reason for failing.
16    :type custom_message: str
17    :param is_locked: Whether the ref is locked or not
18    :type is_locked: bool
19    :param name: Ref name
20    :type name: str
21    :param new_object_id: New object ID
22    :type new_object_id: str
23    :param old_object_id: Old object ID
24    :type old_object_id: str
25    :param rejected_by: Name of the plugin that rejected the updated.
26    :type rejected_by: str
27    :param repository_id: Repository ID
28    :type repository_id: str
29    :param success: True if the ref update succeeded, false otherwise
30    :type success: bool
31    :param update_status: Status of the update from the TFS server.
32    :type update_status: object
33    """
34
35    _attribute_map = {
36        'custom_message': {'key': 'customMessage', 'type': 'str'},
37        'is_locked': {'key': 'isLocked', 'type': 'bool'},
38        'name': {'key': 'name', 'type': 'str'},
39        'new_object_id': {'key': 'newObjectId', 'type': 'str'},
40        'old_object_id': {'key': 'oldObjectId', 'type': 'str'},
41        'rejected_by': {'key': 'rejectedBy', 'type': 'str'},
42        'repository_id': {'key': 'repositoryId', 'type': 'str'},
43        'success': {'key': 'success', 'type': 'bool'},
44        'update_status': {'key': 'updateStatus', 'type': 'object'}
45    }
46
47    def __init__(self, custom_message=None, is_locked=None, name=None, new_object_id=None, old_object_id=None, rejected_by=None, repository_id=None, success=None, update_status=None):
48        super(GitRefUpdateResult, self).__init__()
49        self.custom_message = custom_message
50        self.is_locked = is_locked
51        self.name = name
52        self.new_object_id = new_object_id
53        self.old_object_id = old_object_id
54        self.rejected_by = rejected_by
55        self.repository_id = repository_id
56        self.success = success
57        self.update_status = update_status
58