Skip to content

Commit

Permalink
Update models to fix deserialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Nechvátal committed Apr 26, 2023
1 parent aaa385f commit caaf5c3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions azure-devops/azure/devops/v7_0/git/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <azure.devops.v7_0.git.models.ChangeCountDictionary>`
:type change_counts: dict
:param changes:
:type changes: list of :class:`object <azure.devops.v7_0.git.models.object>`
"""

_attribute_map = {
'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'},
'change_counts': {'key': 'changeCounts', 'type': '{int}'},
'changes': {'key': 'changes', 'type': '[object]'}
}

Expand All @@ -684,7 +684,7 @@ class GitCommitRef(Model):
:param committer: Committer of the commit.
:type committer: :class:`GitUserDate <azure.devops.v7_0.git.models.GitUserDate>`
:param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit.
:type change_counts: :class:`ChangeCountDictionary <azure.devops.v7_0.git.models.ChangeCountDictionary>`
:type change_counts: dict
:param changes: An enumeration of the changes included with the commit.
:type changes: list of :class:`object <azure.devops.v7_0.git.models.object>`
:param parents: An enumeration of the parent commit IDs for this commit.
Expand All @@ -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'},
Expand Down Expand Up @@ -3369,7 +3369,7 @@ class GitCommit(GitCommitRef):
:param committer: Committer of the commit.
:type committer: :class:`GitUserDate <azure.devops.v7_0.git.models.GitUserDate>`
:param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit.
:type change_counts: :class:`ChangeCountDictionary <azure.devops.v7_0.git.models.ChangeCountDictionary>`
:type change_counts: dict
:param changes: An enumeration of the changes included with the commit.
:type changes: list of :class:`object <azure.devops.v7_0.git.models.object>`
:param parents: An enumeration of the parent commit IDs for this commit.
Expand All @@ -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'},
Expand Down
12 changes: 6 additions & 6 deletions azure-devops/azure/devops/v7_1/git/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <azure.devops.v7_1.git.models.ChangeCountDictionary>`
:type change_counts: dict
:param changes:
:type changes: list of :class:`object <azure.devops.v7_1.git.models.object>`
"""

_attribute_map = {
'change_counts': {'key': 'changeCounts', 'type': 'ChangeCountDictionary'},
'change_counts': {'key': 'changeCounts', 'type': '{int}'},
'changes': {'key': 'changes', 'type': '[object]'}
}

Expand Down Expand Up @@ -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 <azure.devops.v7_1.git.models.ChangeCountDictionary>`
:type change_counts: dict
:param changes: An enumeration of the changes included with the commit.
:type changes: list of :class:`object <azure.devops.v7_1.git.models.object>`
:param parents: An enumeration of the parent commit IDs for this commit.
Expand All @@ -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'},
Expand Down Expand Up @@ -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 <azure.devops.v7_1.git.models.ChangeCountDictionary>`
:type change_counts: dict
:param changes: An enumeration of the changes included with the commit.
:type changes: list of :class:`object <azure.devops.v7_1.git.models.object>`
:param parents: An enumeration of the parent commit IDs for this commit.
Expand All @@ -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'},
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion azure-devops/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit caaf5c3

Please sign in to comment.