Skip to content

Commit 174ecbe

Browse files
authored
Merge pull request #200 from Microsoft/dev
M149
2 parents de4e5c6 + 6c04b20 commit 174ecbe

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed

azure-devops/azure/devops/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Connection(object):
2424

2525
def __init__(self, base_url=None, creds=None, user_agent=None):
2626
self._config = ClientConfiguration(base_url)
27+
self._config.credentials = creds
2728
self._addition_user_agent = user_agent
2829
if user_agent is not None:
2930
self._config.add_user_agent(user_agent)

azure-devops/azure/devops/v5_1/maven/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@
3838
'PluginConfiguration',
3939
'ReferenceLink',
4040
'ReferenceLinks',
41+
'UpstreamSourceInfo',
4142
'MavenClient'
4243
]

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ class Package(Model):
635635
:type name: str
636636
:param permanently_deleted_date: If and when the package was permanently deleted.
637637
:type permanently_deleted_date: datetime
638+
:param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved.
639+
:type source_chain: list of :class:`UpstreamSourceInfo <azure.devops.v5_1.maven.models.UpstreamSourceInfo>`
638640
:param version: The version of the package.
639641
:type version: str
640642
"""
@@ -645,16 +647,18 @@ class Package(Model):
645647
'id': {'key': 'id', 'type': 'str'},
646648
'name': {'key': 'name', 'type': 'str'},
647649
'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'},
650+
'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'},
648651
'version': {'key': 'version', 'type': 'str'}
649652
}
650653

651-
def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, version=None):
654+
def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, version=None):
652655
super(Package, self).__init__()
653656
self._links = _links
654657
self.deleted_date = deleted_date
655658
self.id = id
656659
self.name = name
657660
self.permanently_deleted_date = permanently_deleted_date
661+
self.source_chain = source_chain
658662
self.version = version
659663

660664

@@ -731,6 +735,34 @@ def __init__(self, links=None):
731735
self.links = links
732736

733737

738+
class UpstreamSourceInfo(Model):
739+
"""UpstreamSourceInfo.
740+
741+
:param id: Identity of the upstream source.
742+
:type id: str
743+
:param location: Locator for connecting to the upstream source.
744+
:type location: str
745+
:param name: Display name.
746+
:type name: str
747+
:param source_type: Source type, such as Public or Internal.
748+
:type source_type: object
749+
"""
750+
751+
_attribute_map = {
752+
'id': {'key': 'id', 'type': 'str'},
753+
'location': {'key': 'location', 'type': 'str'},
754+
'name': {'key': 'name', 'type': 'str'},
755+
'source_type': {'key': 'sourceType', 'type': 'object'}
756+
}
757+
758+
def __init__(self, id=None, location=None, name=None, source_type=None):
759+
super(UpstreamSourceInfo, self).__init__()
760+
self.id = id
761+
self.location = location
762+
self.name = name
763+
self.source_type = source_type
764+
765+
734766
class MavenPomDependency(MavenPomGav):
735767
"""MavenPomDependency.
736768
@@ -813,6 +845,7 @@ def __init__(self, name=None, url=None, distribution=None):
813845
'PluginConfiguration',
814846
'ReferenceLink',
815847
'ReferenceLinks',
848+
'UpstreamSourceInfo',
816849
'MavenPomDependency',
817850
'MavenPomLicense',
818851
]

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 = "5.0.0b3"
6+
VERSION = "5.0.0b4"

azure-devops/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 = "azure-devops"
9-
VERSION = "5.0.0b3"
9+
VERSION = "5.0.0b4"
1010

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

0 commit comments

Comments
 (0)