From caaf5c359fb459c5a159e45efef55ffba9b55282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Nechv=C3=A1tal?= Date: Wed, 26 Apr 2023 19:23:22 +0200 Subject: [PATCH] Update models to fix deserialization error --- azure-devops/azure/devops/v7_0/git/models.py | 12 ++++++------ azure-devops/azure/devops/v7_1/git/models.py | 12 ++++++------ azure-devops/azure/devops/version.py | 2 +- azure-devops/setup.py | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/azure-devops/azure/devops/v7_0/git/models.py b/azure-devops/azure/devops/v7_0/git/models.py index e45b0ed1..4aca8973 100644 --- a/azure-devops/azure/devops/v7_0/git/models.py +++ b/azure-devops/azure/devops/v7_0/git/models.py @@ -651,13 +651,13 @@ def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None class GitCommitChanges(Model): """ :param change_counts: - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: :type changes: list of :class:`object ` """ _attribute_map = { - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[object]'} } @@ -684,7 +684,7 @@ class GitCommitRef(Model): :param committer: Committer of the commit. :type committer: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: An enumeration of the changes included with the commit. :type changes: list of :class:`object ` :param parents: An enumeration of the parent commit IDs for this commit. @@ -708,7 +708,7 @@ class GitCommitRef(Model): 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[object]'}, 'parents': {'key': 'parents', 'type': '[str]'}, 'push': {'key': 'push', 'type': 'GitPushRef'}, @@ -3369,7 +3369,7 @@ class GitCommit(GitCommitRef): :param committer: Committer of the commit. :type committer: :class:`GitUserDate ` :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: An enumeration of the changes included with the commit. :type changes: list of :class:`object ` :param parents: An enumeration of the parent commit IDs for this commit. @@ -3395,7 +3395,7 @@ class GitCommit(GitCommitRef): 'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'}, 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[object]'}, 'parents': {'key': 'parents', 'type': '[str]'}, 'push': {'key': 'push', 'type': 'GitPushRef'}, diff --git a/azure-devops/azure/devops/v7_1/git/models.py b/azure-devops/azure/devops/v7_1/git/models.py index 4a997bb9..914663bd 100644 --- a/azure-devops/azure/devops/v7_1/git/models.py +++ b/azure-devops/azure/devops/v7_1/git/models.py @@ -779,13 +779,13 @@ def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None class GitCommitChanges(Model): """ :param change_counts: - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: :type changes: list of :class:`object ` """ _attribute_map = { - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[object]'} } @@ -814,7 +814,7 @@ class GitCommitRef(Model): :param commit_too_many_changes: Indicates that commit contains too many changes to be displayed :type commit_too_many_changes: bool :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: An enumeration of the changes included with the commit. :type changes: list of :class:`object ` :param parents: An enumeration of the parent commit IDs for this commit. @@ -839,7 +839,7 @@ class GitCommitRef(Model): 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, 'commit_too_many_changes': {'key': 'commitTooManyChanges', 'type': 'bool'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[object]'}, 'parents': {'key': 'parents', 'type': '[str]'}, 'push': {'key': 'push', 'type': 'GitPushRef'}, @@ -3511,7 +3511,7 @@ class GitCommit(GitCommitRef): :param commit_too_many_changes: Indicates that commit contains too many changes to be displayed :type commit_too_many_changes: bool :param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit. - :type change_counts: :class:`ChangeCountDictionary ` + :type change_counts: dict :param changes: An enumeration of the changes included with the commit. :type changes: list of :class:`object ` :param parents: An enumeration of the parent commit IDs for this commit. @@ -3538,7 +3538,7 @@ class GitCommit(GitCommitRef): 'commit_id': {'key': 'commitId', 'type': 'str'}, 'committer': {'key': 'committer', 'type': 'GitUserDate'}, 'commit_too_many_changes': {'key': 'commitTooManyChanges', 'type': 'bool'}, - 'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'}, + 'change_counts': {'key': 'changeCounts', 'type': '{int}'}, 'changes': {'key': 'changes', 'type': '[object]'}, 'parents': {'key': 'parents', 'type': '[str]'}, 'push': {'key': 'push', 'type': 'GitPushRef'}, diff --git a/azure-devops/azure/devops/version.py b/azure-devops/azure/devops/version.py index 86c6cf62..37beec89 100644 --- a/azure-devops/azure/devops/version.py +++ b/azure-devops/azure/devops/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = "7.1.0b2" +VERSION = "7.1.0b3" diff --git a/azure-devops/setup.py b/azure-devops/setup.py index aa86971f..1c91180f 100644 --- a/azure-devops/setup.py +++ b/azure-devops/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages NAME = "azure-devops" -VERSION = "7.1.0b2" +VERSION = "7.1.0b3" # To install the library, run the following #