Skip to content

Commit 442c2b4

Browse files
authored
Merge pull request #68 from Microsoft/dev
merge 0.1.6 into master - fix for bytearray data deserialization
2 parents 552156b + 43eae1f commit 442c2b4

File tree

24 files changed

+58
-58
lines changed

24 files changed

+58
-58
lines changed

vsts/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import setup, find_packages
77

88
NAME = "vsts"
9-
VERSION = "0.1.5"
9+
VERSION = "0.1.6"
1010

1111
# To install the library, run the following
1212
#

vsts/vsts/core/v4_0/models/public_key.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class PublicKey(Model):
1313
"""PublicKey.
1414
1515
:param exponent: Gets or sets the exponent for the public key.
16-
:type exponent: list of int
16+
:type exponent: str
1717
:param modulus: Gets or sets the modulus for the public key.
18-
:type modulus: list of int
18+
:type modulus: str
1919
"""
2020

2121
_attribute_map = {
22-
'exponent': {'key': 'exponent', 'type': '[int]'},
23-
'modulus': {'key': 'modulus', 'type': '[int]'}
22+
'exponent': {'key': 'exponent', 'type': 'str'},
23+
'modulus': {'key': 'modulus', 'type': 'str'}
2424
}
2525

2626
def __init__(self, exponent=None, modulus=None):

vsts/vsts/core/v4_1/models/public_key.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class PublicKey(Model):
1313
"""PublicKey.
1414
1515
:param exponent: Gets or sets the exponent for the public key.
16-
:type exponent: list of int
16+
:type exponent: str
1717
:param modulus: Gets or sets the modulus for the public key.
18-
:type modulus: list of int
18+
:type modulus: str
1919
"""
2020

2121
_attribute_map = {
22-
'exponent': {'key': 'exponent', 'type': '[int]'},
23-
'modulus': {'key': 'modulus', 'type': '[int]'}
22+
'exponent': {'key': 'exponent', 'type': 'str'},
23+
'modulus': {'key': 'modulus', 'type': 'str'}
2424
}
2525

2626
def __init__(self, exponent=None, modulus=None):

vsts/vsts/file_container/v4_0/models/file_container_item.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FileContainerItem(Model):
1515
:param container_id: Container Id.
1616
:type container_id: long
1717
:param content_id:
18-
:type content_id: list of int
18+
:type content_id: str
1919
:param content_location: Download Url for the content of this item.
2020
:type content_location: str
2121
:param created_by: Creator.
@@ -27,7 +27,7 @@ class FileContainerItem(Model):
2727
:param file_encoding: Encoding of the file. Zero if not a file.
2828
:type file_encoding: int
2929
:param file_hash: Hash value of the file. Null if not a file.
30-
:type file_hash: list of int
30+
:type file_hash: str
3131
:param file_id: Id of the file content.
3232
:type file_id: int
3333
:param file_length: Length of the file. Zero if not of a file.
@@ -52,13 +52,13 @@ class FileContainerItem(Model):
5252

5353
_attribute_map = {
5454
'container_id': {'key': 'containerId', 'type': 'long'},
55-
'content_id': {'key': 'contentId', 'type': '[int]'},
55+
'content_id': {'key': 'contentId', 'type': 'str'},
5656
'content_location': {'key': 'contentLocation', 'type': 'str'},
5757
'created_by': {'key': 'createdBy', 'type': 'str'},
5858
'date_created': {'key': 'dateCreated', 'type': 'iso-8601'},
5959
'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'},
6060
'file_encoding': {'key': 'fileEncoding', 'type': 'int'},
61-
'file_hash': {'key': 'fileHash', 'type': '[int]'},
61+
'file_hash': {'key': 'fileHash', 'type': 'str'},
6262
'file_id': {'key': 'fileId', 'type': 'int'},
6363
'file_length': {'key': 'fileLength', 'type': 'long'},
6464
'file_type': {'key': 'fileType', 'type': 'int'},

vsts/vsts/file_container/v4_1/models/file_container_item.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FileContainerItem(Model):
1515
:param container_id: Container Id.
1616
:type container_id: long
1717
:param content_id:
18-
:type content_id: list of int
18+
:type content_id: str
1919
:param content_location: Download Url for the content of this item.
2020
:type content_location: str
2121
:param created_by: Creator.
@@ -27,7 +27,7 @@ class FileContainerItem(Model):
2727
:param file_encoding: Encoding of the file. Zero if not a file.
2828
:type file_encoding: int
2929
:param file_hash: Hash value of the file. Null if not a file.
30-
:type file_hash: list of int
30+
:type file_hash: str
3131
:param file_id: Id of the file content.
3232
:type file_id: int
3333
:param file_length: Length of the file. Zero if not of a file.
@@ -52,13 +52,13 @@ class FileContainerItem(Model):
5252

5353
_attribute_map = {
5454
'container_id': {'key': 'containerId', 'type': 'long'},
55-
'content_id': {'key': 'contentId', 'type': '[int]'},
55+
'content_id': {'key': 'contentId', 'type': 'str'},
5656
'content_location': {'key': 'contentLocation', 'type': 'str'},
5757
'created_by': {'key': 'createdBy', 'type': 'str'},
5858
'date_created': {'key': 'dateCreated', 'type': 'iso-8601'},
5959
'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'},
6060
'file_encoding': {'key': 'fileEncoding', 'type': 'int'},
61-
'file_hash': {'key': 'fileHash', 'type': '[int]'},
61+
'file_hash': {'key': 'fileHash', 'type': 'str'},
6262
'file_id': {'key': 'fileId', 'type': 'int'},
6363
'file_length': {'key': 'fileLength', 'type': 'long'},
6464
'file_type': {'key': 'fileType', 'type': 'int'},

vsts/vsts/gallery/v4_0/models/rating_count_per_rating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class RatingCountPerRating(Model):
1313
"""RatingCountPerRating.
1414
1515
:param rating: Rating value
16-
:type rating: int
16+
:type rating: str
1717
:param rating_count: Count of total ratings
1818
:type rating_count: long
1919
"""
2020

2121
_attribute_map = {
22-
'rating': {'key': 'rating', 'type': 'int'},
22+
'rating': {'key': 'rating', 'type': 'str'},
2323
'rating_count': {'key': 'ratingCount', 'type': 'long'}
2424
}
2525

vsts/vsts/gallery/v4_0/models/review.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Review(Model):
2323
:param product_version: Version of the product for which review was submitted
2424
:type product_version: str
2525
:param rating: Rating procided by the user
26-
:type rating: int
26+
:type rating: str
2727
:param reply: Reply, if any, for this review
2828
:type reply: :class:`ReviewReply <gallery.v4_0.models.ReviewReply>`
2929
:param text: Text description of the review
@@ -44,7 +44,7 @@ class Review(Model):
4444
'is_deleted': {'key': 'isDeleted', 'type': 'bool'},
4545
'is_ignored': {'key': 'isIgnored', 'type': 'bool'},
4646
'product_version': {'key': 'productVersion', 'type': 'str'},
47-
'rating': {'key': 'rating', 'type': 'int'},
47+
'rating': {'key': 'rating', 'type': 'str'},
4848
'reply': {'key': 'reply', 'type': 'ReviewReply'},
4949
'text': {'key': 'text', 'type': 'str'},
5050
'title': {'key': 'title', 'type': 'str'},

vsts/vsts/gallery/v4_1/models/rating_count_per_rating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class RatingCountPerRating(Model):
1313
"""RatingCountPerRating.
1414
1515
:param rating: Rating value
16-
:type rating: int
16+
:type rating: str
1717
:param rating_count: Count of total ratings
1818
:type rating_count: long
1919
"""
2020

2121
_attribute_map = {
22-
'rating': {'key': 'rating', 'type': 'int'},
22+
'rating': {'key': 'rating', 'type': 'str'},
2323
'rating_count': {'key': 'ratingCount', 'type': 'long'}
2424
}
2525

vsts/vsts/gallery/v4_1/models/review.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Review(Model):
2323
:param product_version: Version of the product for which review was submitted
2424
:type product_version: str
2525
:param rating: Rating procided by the user
26-
:type rating: int
26+
:type rating: str
2727
:param reply: Reply, if any, for this review
2828
:type reply: :class:`ReviewReply <gallery.v4_1.models.ReviewReply>`
2929
:param text: Text description of the review
@@ -44,7 +44,7 @@ class Review(Model):
4444
'is_deleted': {'key': 'isDeleted', 'type': 'bool'},
4545
'is_ignored': {'key': 'isIgnored', 'type': 'bool'},
4646
'product_version': {'key': 'productVersion', 'type': 'str'},
47-
'rating': {'key': 'rating', 'type': 'int'},
47+
'rating': {'key': 'rating', 'type': 'str'},
4848
'reply': {'key': 'reply', 'type': 'ReviewReply'},
4949
'text': {'key': 'text', 'type': 'str'},
5050
'title': {'key': 'title', 'type': 'str'},

vsts/vsts/licensing/v4_0/models/client_rights_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class ClientRightsContainer(Model):
1313
"""ClientRightsContainer.
1414
1515
:param certificate_bytes:
16-
:type certificate_bytes: list of int
16+
:type certificate_bytes: str
1717
:param token:
1818
:type token: str
1919
"""
2020

2121
_attribute_map = {
22-
'certificate_bytes': {'key': 'certificateBytes', 'type': '[int]'},
22+
'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'},
2323
'token': {'key': 'token', 'type': 'str'}
2424
}
2525

0 commit comments

Comments
 (0)