Merge pull request #309 from microsoft/dev

Regenerate after fixing float type handling in generator
This commit is contained in:
Ted Chambers 2020-01-03 14:53:48 -05:00 коммит произвёл GitHub
Родитель a713b9b207 ee1f365e33
Коммит 1c2401c378
10 изменённых файлов: 27 добавлений и 27 удалений

Просмотреть файл

@ -193,12 +193,12 @@ class BrowserMix(Model):
:param browser_name:
:type browser_name: str
:param browser_percentage:
:type browser_percentage: int
:type browser_percentage: float
"""
_attribute_map = {
'browser_name': {'key': 'browserName', 'type': 'str'},
'browser_percentage': {'key': 'browserPercentage', 'type': 'int'}
'browser_percentage': {'key': 'browserPercentage', 'type': 'float'}
}
def __init__(self, browser_name=None, browser_percentage=None):
@ -281,7 +281,7 @@ class CounterSample(Model):
:param base_value:
:type base_value: long
:param computed_value:
:type computed_value: int
:type computed_value: float
:param counter_frequency:
:type counter_frequency: long
:param counter_instance_id:
@ -302,7 +302,7 @@ class CounterSample(Model):
_attribute_map = {
'base_value': {'key': 'baseValue', 'type': 'long'},
'computed_value': {'key': 'computedValue', 'type': 'int'},
'computed_value': {'key': 'computedValue', 'type': 'float'},
'counter_frequency': {'key': 'counterFrequency', 'type': 'long'},
'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'},
'counter_type': {'key': 'counterType', 'type': 'str'},

Просмотреть файл

@ -706,7 +706,7 @@ class ResolvedDataProvider(Model):
Entry for a specific data provider's resulting data
:param duration: The total time the data provider took to resolve its data (in milliseconds)
:type duration: int
:type duration: float
:param error:
:type error: str
:param id:
@ -714,7 +714,7 @@ class ResolvedDataProvider(Model):
"""
_attribute_map = {
'duration': {'key': 'duration', 'type': 'int'},
'duration': {'key': 'duration', 'type': 'float'},
'error': {'key': 'error', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'}
}

Просмотреть файл

@ -210,7 +210,7 @@ class CategoryLanguageTitle(Model):
class EventCounts(Model):
"""
:param average_rating: Average rating on the day for extension
:type average_rating: int
:type average_rating: float
:param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions)
:type buy_count: int
: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):
"""
_attribute_map = {
'average_rating': {'key': 'averageRating', 'type': 'int'},
'average_rating': {'key': 'averageRating', 'type': 'float'},
'buy_count': {'key': 'buyCount', 'type': 'int'},
'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'},
'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'},
@ -1715,7 +1715,7 @@ class ReviewsResult(Model):
class ReviewSummary(Model):
"""
:param average_rating: Average Rating
:type average_rating: int
:type average_rating: float
:param rating_count: Count of total ratings
:type rating_count: long
:param rating_split: Split of count across rating
@ -1723,7 +1723,7 @@ class ReviewSummary(Model):
"""
_attribute_map = {
'average_rating': {'key': 'averageRating', 'type': 'int'},
'average_rating': {'key': 'averageRating', 'type': 'float'},
'rating_count': {'key': 'ratingCount', 'type': 'long'},
'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'}
}

Просмотреть файл

@ -12,13 +12,13 @@ from msrest.serialization import Model
class Activity(Model):
"""
:param capacity_per_day:
:type capacity_per_day: int
:type capacity_per_day: float
:param name:
:type name: str
"""
_attribute_map = {
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'},
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'float'},
'name': {'key': 'name', 'type': 'str'}
}

Просмотреть файл

@ -193,12 +193,12 @@ class BrowserMix(Model):
:param browser_name:
:type browser_name: str
:param browser_percentage:
:type browser_percentage: int
:type browser_percentage: float
"""
_attribute_map = {
'browser_name': {'key': 'browserName', 'type': 'str'},
'browser_percentage': {'key': 'browserPercentage', 'type': 'int'}
'browser_percentage': {'key': 'browserPercentage', 'type': 'float'}
}
def __init__(self, browser_name=None, browser_percentage=None):
@ -281,7 +281,7 @@ class CounterSample(Model):
:param base_value:
:type base_value: long
:param computed_value:
:type computed_value: int
:type computed_value: float
:param counter_frequency:
:type counter_frequency: long
:param counter_instance_id:
@ -302,7 +302,7 @@ class CounterSample(Model):
_attribute_map = {
'base_value': {'key': 'baseValue', 'type': 'long'},
'computed_value': {'key': 'computedValue', 'type': 'int'},
'computed_value': {'key': 'computedValue', 'type': 'float'},
'counter_frequency': {'key': 'counterFrequency', 'type': 'long'},
'counter_instance_id': {'key': 'counterInstanceId', 'type': 'str'},
'counter_type': {'key': 'counterType', 'type': 'str'},

Просмотреть файл

@ -706,7 +706,7 @@ class ResolvedDataProvider(Model):
Entry for a specific data provider's resulting data
:param duration: The total time the data provider took to resolve its data (in milliseconds)
:type duration: int
:type duration: float
:param error:
:type error: str
:param id:
@ -714,7 +714,7 @@ class ResolvedDataProvider(Model):
"""
_attribute_map = {
'duration': {'key': 'duration', 'type': 'int'},
'duration': {'key': 'duration', 'type': 'float'},
'error': {'key': 'error', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'}
}

Просмотреть файл

@ -210,7 +210,7 @@ class CategoryLanguageTitle(Model):
class EventCounts(Model):
"""
:param average_rating: Average rating on the day for extension
:type average_rating: int
:type average_rating: float
:param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions)
:type buy_count: int
: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):
"""
_attribute_map = {
'average_rating': {'key': 'averageRating', 'type': 'int'},
'average_rating': {'key': 'averageRating', 'type': 'float'},
'buy_count': {'key': 'buyCount', 'type': 'int'},
'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'},
'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'},
@ -1715,7 +1715,7 @@ class ReviewsResult(Model):
class ReviewSummary(Model):
"""
:param average_rating: Average Rating
:type average_rating: int
:type average_rating: float
:param rating_count: Count of total ratings
:type rating_count: long
:param rating_split: Split of count across rating
@ -1723,7 +1723,7 @@ class ReviewSummary(Model):
"""
_attribute_map = {
'average_rating': {'key': 'averageRating', 'type': 'int'},
'average_rating': {'key': 'averageRating', 'type': 'float'},
'rating_count': {'key': 'ratingCount', 'type': 'long'},
'rating_split': {'key': 'ratingSplit', 'type': '[RatingCountPerRating]'}
}

Просмотреть файл

@ -12,13 +12,13 @@ from msrest.serialization import Model
class Activity(Model):
"""
:param capacity_per_day:
:type capacity_per_day: int
:type capacity_per_day: float
:param name:
:type name: str
"""
_attribute_map = {
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'},
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'float'},
'name': {'key': 'name', 'type': 'str'}
}

Просмотреть файл

@ -3,4 +3,4 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
VERSION = "6.0.0b1"
VERSION = "6.0.0b2"

Просмотреть файл

@ -6,7 +6,7 @@
from setuptools import setup, find_packages
NAME = "azure-devops"
VERSION = "6.0.0b1"
VERSION = "6.0.0b2"
# To install the library, run the following
#
@ -38,7 +38,7 @@ setup(
name=NAME,
version=VERSION,
license='MIT',
description="Python wrapper around the Azure DevOps 5.x APIs",
description="Python wrapper around the Azure DevOps 6.x APIs",
author="Microsoft Corporation",
author_email="vstscli@microsoft.com",
url="https://github.com/Microsoft/vsts-python-api",