Skip to content

Commit 3838e91

Browse files
authored
Merge pull request microsoft#308 from microsoft/users/tedchamb/bv
Regenerate after fixing float type handling in generator
2 parents 9a04304 + 73e992b commit 3838e91

File tree

10 files changed

+27
-27
lines changed

10 files changed

+27
-27
lines changed

azure-devops/azure/devops/v5_1/cloud_load_test/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ class BrowserMix(Model):
193193
:param browser_name:
194194
:type browser_name: str
195195
:param browser_percentage:
196-
:type browser_percentage: int
196+
:type browser_percentage: float
197197
"""
198198

199199
_attribute_map = {
200200
'browser_name': {'key': 'browserName', 'type': 'str'},
201-
'browser_percentage': {'key': 'browserPercentage', 'type': 'int'}
201+
'browser_percentage': {'key': 'browserPercentage', 'type': 'float'}
202202
}
203203

204204
def __init__(self, browser_name=None, browser_percentage=None):
@@ -281,7 +281,7 @@ class CounterSample(Model):
281281
:param base_value:
282282
:type base_value: long
283283
:param computed_value:
284-
:type computed_value: int
284+
:type computed_value: float
285285
:param counter_frequency:
286286
:type counter_frequency: long
287287
:param counter_instance_id:
@@ -302,7 +302,7 @@ class CounterSample(Model):
302302

303303
_attribute_map = {
304304
'base_value': {'key': 'baseValue', 'type': 'long'},
305-
'computed_value': {'key': 'computedValue', 'type': 'int'},
305+
'computed_value': {'key': 'computedValue', 'type': 'float'},
306306
'counter_frequency': {'key': 'counterFrequency', 'type': 'long'},
307307
'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'},
308308
'counter_type': {'key': 'counterType', 'type': 'str'},

azure-devops/azure/devops/v5_1/contributions/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,15 +706,15 @@ class ResolvedDataProvider(Model):
706706
Entry for a specific data provider's resulting data
707707
708708
:param duration: The total time the data provider took to resolve its data (in milliseconds)
709-
:type duration: int
709+
:type duration: float
710710
:param error:
711711
:type error: str
712712
:param id:
713713
:type id: str
714714
"""
715715

716716
_attribute_map = {
717-
'duration': {'key': 'duration', 'type': 'int'},
717+
'duration': {'key': 'duration', 'type': 'float'},
718718
'error': {'key': 'error', 'type': 'str'},
719719
'id': {'key': 'id', 'type': 'str'}
720720
}

azure-devops/azure/devops/v5_1/gallery/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def __init__(self, lang=None, lcid=None, title=None):
210210
class EventCounts(Model):
211211
"""
212212
:param average_rating: Average rating on the day for extension
213-
:type average_rating: int
213+
:type average_rating: float
214214
:param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions)
215215
:type buy_count: int
216216
:param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions)
@@ -230,7 +230,7 @@ class EventCounts(Model):
230230
"""
231231

232232
_attribute_map = {
233-
'average_rating': {'key': 'averageRating', 'type': 'int'},
233+
'average_rating': {'key': 'averageRating', 'type': 'float'},
234234
'buy_count': {'key': 'buyCount', 'type': 'int'},
235235
'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'},
236236
'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'},
@@ -1715,15 +1715,15 @@ def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None)
17151715
class ReviewSummary(Model):
17161716
"""
17171717
:param average_rating: Average Rating
1718-
:type average_rating: int
1718+
:type average_rating: float
17191719
:param rating_count: Count of total ratings
17201720
:type rating_count: long
17211721
:param rating_split: Split of count across rating
17221722
:type rating_split: list of :class:`RatingCountPerRating <azure.devops.v5_1.gallery.models.RatingCountPerRating>`
17231723
"""
17241724

17251725
_attribute_map = {
1726-
'average_rating': {'key': 'averageRating', 'type': 'int'},
1726+
'average_rating': {'key': 'averageRating', 'type': 'float'},
17271727
'rating_count': {'key': 'ratingCount', 'type': 'long'},
17281728
'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'}
17291729
}

azure-devops/azure/devops/v5_1/work/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
class Activity(Model):
1313
"""
1414
:param capacity_per_day:
15-
:type capacity_per_day: int
15+
:type capacity_per_day: float
1616
:param name:
1717
:type name: str
1818
"""
1919

2020
_attribute_map = {
21-
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'},
21+
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'float'},
2222
'name': {'key': 'name', 'type': 'str'}
2323
}
2424

azure-devops/azure/devops/v6_0/cloud_load_test/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ class BrowserMix(Model):
193193
:param browser_name:
194194
:type browser_name: str
195195
:param browser_percentage:
196-
:type browser_percentage: int
196+
:type browser_percentage: float
197197
"""
198198

199199
_attribute_map = {
200200
'browser_name': {'key': 'browserName', 'type': 'str'},
201-
'browser_percentage': {'key': 'browserPercentage', 'type': 'int'}
201+
'browser_percentage': {'key': 'browserPercentage', 'type': 'float'}
202202
}
203203

204204
def __init__(self, browser_name=None, browser_percentage=None):
@@ -281,7 +281,7 @@ class CounterSample(Model):
281281
:param base_value:
282282
:type base_value: long
283283
:param computed_value:
284-
:type computed_value: int
284+
:type computed_value: float
285285
:param counter_frequency:
286286
:type counter_frequency: long
287287
:param counter_instance_id:
@@ -302,7 +302,7 @@ class CounterSample(Model):
302302

303303
_attribute_map = {
304304
'base_value': {'key': 'baseValue', 'type': 'long'},
305-
'computed_value': {'key': 'computedValue', 'type': 'int'},
305+
'computed_value': {'key': 'computedValue', 'type': 'float'},
306306
'counter_frequency': {'key': 'counterFrequency', 'type': 'long'},
307307
'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'},
308308
'counter_type': {'key': 'counterType', 'type': 'str'},

azure-devops/azure/devops/v6_0/contributions/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,15 +706,15 @@ class ResolvedDataProvider(Model):
706706
Entry for a specific data provider's resulting data
707707
708708
:param duration: The total time the data provider took to resolve its data (in milliseconds)
709-
:type duration: int
709+
:type duration: float
710710
:param error:
711711
:type error: str
712712
:param id:
713713
:type id: str
714714
"""
715715

716716
_attribute_map = {
717-
'duration': {'key': 'duration', 'type': 'int'},
717+
'duration': {'key': 'duration', 'type': 'float'},
718718
'error': {'key': 'error', 'type': 'str'},
719719
'id': {'key': 'id', 'type': 'str'}
720720
}

azure-devops/azure/devops/v6_0/gallery/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def __init__(self, lang=None, lcid=None, title=None):
210210
class EventCounts(Model):
211211
"""
212212
:param average_rating: Average rating on the day for extension
213-
:type average_rating: int
213+
:type average_rating: float
214214
:param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions)
215215
:type buy_count: int
216216
:param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions)
@@ -230,7 +230,7 @@ class EventCounts(Model):
230230
"""
231231

232232
_attribute_map = {
233-
'average_rating': {'key': 'averageRating', 'type': 'int'},
233+
'average_rating': {'key': 'averageRating', 'type': 'float'},
234234
'buy_count': {'key': 'buyCount', 'type': 'int'},
235235
'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'},
236236
'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'},
@@ -1715,15 +1715,15 @@ def __init__(self, has_more_reviews=None, reviews=None, total_review_count=None)
17151715
class ReviewSummary(Model):
17161716
"""
17171717
:param average_rating: Average Rating
1718-
:type average_rating: int
1718+
:type average_rating: float
17191719
:param rating_count: Count of total ratings
17201720
:type rating_count: long
17211721
:param rating_split: Split of count across rating
17221722
:type rating_split: list of :class:`RatingCountPerRating <azure.devops.v6_0.gallery.models.RatingCountPerRating>`
17231723
"""
17241724

17251725
_attribute_map = {
1726-
'average_rating': {'key': 'averageRating', 'type': 'int'},
1726+
'average_rating': {'key': 'averageRating', 'type': 'float'},
17271727
'rating_count': {'key': 'ratingCount', 'type': 'long'},
17281728
'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'}
17291729
}

azure-devops/azure/devops/v6_0/work/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
class Activity(Model):
1313
"""
1414
:param capacity_per_day:
15-
:type capacity_per_day: int
15+
:type capacity_per_day: float
1616
:param name:
1717
:type name: str
1818
"""
1919

2020
_attribute_map = {
21-
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'},
21+
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'float'},
2222
'name': {'key': 'name', 'type': 'str'}
2323
}
2424

azure-devops/azure/devops/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
VERSION = "6.0.0b1"
6+
VERSION = "6.0.0b2"

azure-devops/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup, find_packages
77

88
NAME = "azure-devops"
9-
VERSION = "6.0.0b1"
9+
VERSION = "6.0.0b2"
1010

1111
# To install the library, run the following
1212
#
@@ -38,7 +38,7 @@
3838
name=NAME,
3939
version=VERSION,
4040
license='MIT',
41-
description="Python wrapper around the Azure DevOps 5.x APIs",
41+
description="Python wrapper around the Azure DevOps 6.x APIs",
4242
author="Microsoft Corporation",
4343
author_email="[email protected]",
4444
url="https://github.com/Microsoft/vsts-python-api",

0 commit comments

Comments
 (0)