Skip to content

Commit fef7099

Browse files
authored
Merge pull request #450 from microsoft/dev7.1
Initial support for 7.1 API version
2 parents 252a276 + 2a7f41a commit fef7099

File tree

449 files changed

+38515
-32873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+38515
-32873
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 5
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
12+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
1313

1414
steps:
1515
- uses: actions/checkout@v1

azure-devops/azure/devops/connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from .client_configuration import ClientConfiguration
1111
from .exceptions import AzureDevOpsClientRequestError
1212
from .released.client_factory import ClientFactory
13-
from .v5_1.location.location_client import LocationClient
14-
from .v5_1.client_factory import ClientFactoryV5_1
15-
from .v6_0.client_factory import ClientFactoryV6_0
13+
from .v7_1.location.location_client import LocationClient
14+
from .v7_1.client_factory import ClientFactoryV7_1
15+
from .v7_0.client_factory import ClientFactoryV7_0
1616

1717
logger = logging.getLogger(__name__)
1818

@@ -33,8 +33,8 @@ def __init__(self, base_url=None, creds=None, user_agent=None):
3333
self._creds = creds
3434
self._resource_areas = None
3535
self.clients = ClientFactory(self)
36-
self.clients_v5_1 = ClientFactoryV5_1(self)
37-
self.clients_v6_0 = ClientFactoryV6_0(self)
36+
self.clients_v7_1 = ClientFactoryV7_1(self)
37+
self.clients_v7_0 = ClientFactoryV7_0(self)
3838
self.use_fiddler = False
3939

4040
def get_client(self, client_type):

azure-devops/azure/devops/issue_tests/test_issue_268.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ def text(self, encoding=None):
2222
class TestDeserialization(unittest.TestCase):
2323

2424
# https://github.com/microsoft/azure-devops-python-api/issues/268
25-
def test_deserialization_issue_268_51(self):
26-
from azure.devops.v5_1.task_agent import models
25+
def test_deserialization_issue_268_71(self):
26+
from azure.devops.v7_1.task_agent import models
2727
self._test_deserialization(models.__dict__.items(), _268_type, _268_json)
2828

2929
# https://github.com/microsoft/azure-devops-python-api/issues/268
30-
def test_deserialization_issue_268_60(self):
31-
from azure.devops.v6_0.task_agent import models
30+
def test_deserialization_issue_268_70(self):
31+
from azure.devops.v7_0.task_agent import models
3232
self._test_deserialization(models.__dict__.items(), _268_type, _268_json)
3333

3434
@staticmethod

azure-devops/azure/devops/released/accounts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------------------------
88

9-
from ...v5_1.accounts.models import *
9+
from ...v7_0.accounts.models import *
1010
from .accounts_client import AccountsClient
1111

1212
__all__ = [

azure-devops/azure/devops/released/accounts/accounts_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from msrest import Serializer, Deserializer
1010
from ...client import Client
11-
from ...v5_1.accounts import models
11+
from ...v7_0.accounts import models
1212

1313

1414
class AccountsClient(Client):
@@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None):
2727

2828
def get_accounts(self, owner_id=None, member_id=None, properties=None):
2929
"""GetAccounts.
30-
Get a list of accounts for a specific owner or a specific member.
30+
Get a list of accounts for a specific owner or a specific member. One of the following parameters is required: ownerId, memberId.
3131
:param str owner_id: ID for the owner of the accounts.
3232
:param str member_id: ID for a member of the accounts.
3333
:param str properties:
@@ -42,7 +42,7 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None):
4242
query_parameters['properties'] = self._serialize.query('properties', properties, 'str')
4343
response = self._send(http_method='GET',
4444
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
45-
version='5.1',
45+
version='7.0',
4646
query_parameters=query_parameters)
4747
return self._deserialize('[Account]', self._unwrap_collection(response))
4848

azure-devops/azure/devops/released/build/__init__.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------------------------
88

9-
from ...v5_1.build.models import *
9+
from ...v7_0.build.models import *
1010
from .build_client import BuildClient
1111

1212
__all__ = [
@@ -46,28 +46,41 @@
4646
'BuildRepository',
4747
'BuildRequestValidationResult',
4848
'BuildResourceUsage',
49+
'BuildRetentionHistory',
50+
'BuildRetentionSample',
4951
'BuildSettings',
50-
'Change',
5152
'DataSourceBindingBase',
5253
'DefinitionReference',
5354
'DefinitionResourceReference',
5455
'Deployment',
5556
'Folder',
5657
'GraphSubjectBase',
58+
'Change',
5759
'IdentityRef',
5860
'Issue',
61+
'JobReference',
5962
'JsonPatchOperation',
63+
'MinimalRetentionLease',
64+
'NewRetentionLease',
65+
'PhaseReference',
66+
'PipelineGeneralSettings',
67+
'PipelineReference',
6068
'ProcessParameters',
69+
'ProjectRetentionSetting',
6170
'PullRequest',
6271
'ReferenceLinks',
6372
'ReleaseReference',
6473
'RepositoryWebhook',
6574
'ResourceRef',
75+
'RetentionLease',
76+
'RetentionLeaseUpdate',
6677
'RetentionPolicy',
78+
'RetentionSetting',
6779
'SourceProviderAttributes',
6880
'SourceRepositories',
6981
'SourceRepository',
7082
'SourceRepositoryItem',
83+
'StageReference',
7184
'SupportedTrigger',
7285
'TaskAgentPoolReference',
7386
'TaskDefinitionReference',
@@ -82,9 +95,14 @@
8295
'TimelineAttempt',
8396
'TimelineRecord',
8497
'TimelineReference',
98+
'UpdateProjectRetentionSettingModel',
99+
'UpdateRetentionSettingModel',
100+
'UpdateStageParameters',
101+
'UpdateTagParameters',
85102
'VariableGroup',
86103
'VariableGroupReference',
87104
'WebApiConnectedServiceRef',
88105
'XamlBuildControllerReference',
106+
'YamlBuild',
89107
'BuildClient'
90108
]

0 commit comments

Comments
 (0)