Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ for project in projects:

## API documentation

This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/vsts/?view=vsts-rest-5.0) for details on calling different APIs.
This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1) for details on calling different APIs.

## Samples

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v5_0.accounts.models import *
from ...v5_1.accounts.models import *
from .accounts_client import AccountsClient

__all__ = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from msrest import Serializer, Deserializer
from ...client import Client
from ...v5_0.accounts import models
from ...v5_1.accounts import models


class AccountsClient(Client):
Expand Down Expand Up @@ -42,7 +42,7 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None):
query_parameters['properties'] = self._serialize.query('properties', properties, 'str')
response = self._send(http_method='GET',
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
version='5.0',
version='5.1',
query_parameters=query_parameters)
return self._deserialize('[Account]', self._unwrap_collection(response))

3 changes: 2 additions & 1 deletion azure-devops/azure/devops/released/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v5_0.build.models import *
from ...v5_1.build.models import *
from .build_client import BuildClient

__all__ = [
'AgentPoolQueue',
'AgentSpecification',
'AggregatedResultsAnalysis',
'AggregatedResultsByOutcome',
'AggregatedResultsDifference',
Expand Down
128 changes: 64 additions & 64 deletions azure-devops/azure/devops/released/build/build_client.py

Large diffs are not rendered by default.

61 changes: 41 additions & 20 deletions azure-devops/azure/devops/released/client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,141 +9,162 @@

class ClientFactory(object):
"""ClientFactory.
A factory class to get the 5.0 released clients.
A factory class to get the 5.1 released clients.
"""

def __init__(self, connection):
self._connection = connection

def get_accounts_client(self):
"""get_accounts_client.
Gets the 5.0 version of the AccountsClient
Gets the 5.1 version of the AccountsClient
:rtype: :class:`<AccountsClient> <azure.devops.released.accounts.accounts_client.AccountsClient>`
"""
return self._connection.get_client('azure.devops.released.accounts.accounts_client.AccountsClient')

def get_build_client(self):
"""get_build_client.
Gets the 5.0 version of the BuildClient
Gets the 5.1 version of the BuildClient
:rtype: :class:`<BuildClient> <azure.devops.released.build.build_client.BuildClient>`
"""
return self._connection.get_client('azure.devops.released.build.build_client.BuildClient')

def get_cloud_load_test_client(self):
"""get_cloud_load_test_client.
Gets the 5.0 version of the CloudLoadTestClient
Gets the 5.1 version of the CloudLoadTestClient
:rtype: :class:`<CloudLoadTestClient> <azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient>`
"""
return self._connection.get_client('azure.devops.released.cloud_load_test.cloud_load_test_client.CloudLoadTestClient')

def get_core_client(self):
"""get_core_client.
Gets the 5.0 version of the CoreClient
Gets the 5.1 version of the CoreClient
:rtype: :class:`<CoreClient> <azure.devops.released.core.core_client.CoreClient>`
"""
return self._connection.get_client('azure.devops.released.core.core_client.CoreClient')

def get_git_client(self):
"""get_git_client.
Gets the 5.0 version of the GitClient
Gets the 5.1 version of the GitClient
:rtype: :class:`<GitClient> <azure.devops.released.git.git_client.GitClient>`
"""
return self._connection.get_client('azure.devops.released.git.git_client.GitClient')

def get_identity_client(self):
"""get_identity_client.
Gets the 5.0 version of the IdentityClient
Gets the 5.1 version of the IdentityClient
:rtype: :class:`<IdentityClient> <azure.devops.released.identity.identity_client.IdentityClient>`
"""
return self._connection.get_client('azure.devops.released.identity.identity_client.IdentityClient')

def get_notification_client(self):
"""get_notification_client.
Gets the 5.1 version of the NotificationClient
:rtype: :class:`<NotificationClient> <azure.devops.released.notification.notification_client.NotificationClient>`
"""
return self._connection.get_client('azure.devops.released.notification.notification_client.NotificationClient')

def get_operations_client(self):
"""get_operations_client.
Gets the 5.0 version of the OperationsClient
Gets the 5.1 version of the OperationsClient
:rtype: :class:`<OperationsClient> <azure.devops.released.operations.operations_client.OperationsClient>`
"""
return self._connection.get_client('azure.devops.released.operations.operations_client.OperationsClient')

def get_policy_client(self):
"""get_policy_client.
Gets the 5.0 version of the PolicyClient
Gets the 5.1 version of the PolicyClient
:rtype: :class:`<PolicyClient> <azure.devops.released.policy.policy_client.PolicyClient>`
"""
return self._connection.get_client('azure.devops.released.policy.policy_client.PolicyClient')

def get_profile_client(self):
"""get_profile_client.
Gets the 5.0 version of the ProfileClient
Gets the 5.1 version of the ProfileClient
:rtype: :class:`<ProfileClient> <azure.devops.released.profile.profile_client.ProfileClient>`
"""
return self._connection.get_client('azure.devops.released.profile.profile_client.ProfileClient')

def get_release_client(self):
"""get_release_client.
Gets the 5.0 version of the ReleaseClient
Gets the 5.1 version of the ReleaseClient
:rtype: :class:`<ReleaseClient> <azure.devops.released.release.release_client.ReleaseClient>`
"""
return self._connection.get_client('azure.devops.released.release.release_client.ReleaseClient')

def get_security_client(self):
"""get_security_client.
Gets the 5.0 version of the SecurityClient
Gets the 5.1 version of the SecurityClient
:rtype: :class:`<SecurityClient> <azure.devops.released.security.security_client.SecurityClient>`
"""
return self._connection.get_client('azure.devops.released.security.security_client.SecurityClient')

def get_service_hooks_client(self):
"""get_service_hooks_client.
Gets the 5.0 version of the ServiceHooksClient
Gets the 5.1 version of the ServiceHooksClient
:rtype: :class:`<ServiceHooksClient> <azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient>`
"""
return self._connection.get_client('azure.devops.released.service_hooks.service_hooks_client.ServiceHooksClient')

def get_task_client(self):
"""get_task_client.
Gets the 5.0 version of the TaskClient
Gets the 5.1 version of the TaskClient
:rtype: :class:`<TaskClient> <azure.devops.released.task.task_client.TaskClient>`
"""
return self._connection.get_client('azure.devops.released.task.task_client.TaskClient')

def get_task_agent_client(self):
"""get_task_agent_client.
Gets the 5.0 version of the TaskAgentClient
Gets the 5.1 version of the TaskAgentClient
:rtype: :class:`<TaskAgentClient> <azure.devops.released.task_agent.task_agent_client.TaskAgentClient>`
"""
return self._connection.get_client('azure.devops.released.task_agent.task_agent_client.TaskAgentClient')

def get_test_client(self):
"""get_test_client.
Gets the 5.0 version of the TestClient
Gets the 5.1 version of the TestClient
:rtype: :class:`<TestClient> <azure.devops.released.test.test_client.TestClient>`
"""
return self._connection.get_client('azure.devops.released.test.test_client.TestClient')

def get_test_plan_client(self):
"""get_test_plan_client.
Gets the 5.1 version of the TestPlanClient
:rtype: :class:`<TestPlanClient> <azure.devops.released.test_plan.test_plan_client.TestPlanClient>`
"""
return self._connection.get_client('azure.devops.released.test_plan.test_plan_client.TestPlanClient')

def get_test_results_client(self):
"""get_test_results_client.
Gets the 5.1 version of the TestResultsClient
:rtype: :class:`<TestResultsClient> <azure.devops.released.test_results.test_results_client.TestResultsClient>`
"""
return self._connection.get_client('azure.devops.released.test_results.test_results_client.TestResultsClient')

def get_tfvc_client(self):
"""get_tfvc_client.
Gets the 5.0 version of the TfvcClient
Gets the 5.1 version of the TfvcClient
:rtype: :class:`<TfvcClient> <azure.devops.released.tfvc.tfvc_client.TfvcClient>`
"""
return self._connection.get_client('azure.devops.released.tfvc.tfvc_client.TfvcClient')

def get_wiki_client(self):
"""get_wiki_client.
Gets the 5.0 version of the WikiClient
Gets the 5.1 version of the WikiClient
:rtype: :class:`<WikiClient> <azure.devops.released.wiki.wiki_client.WikiClient>`
"""
return self._connection.get_client('azure.devops.released.wiki.wiki_client.WikiClient')

def get_work_client(self):
"""get_work_client.
Gets the 5.0 version of the WorkClient
Gets the 5.1 version of the WorkClient
:rtype: :class:`<WorkClient> <azure.devops.released.work.work_client.WorkClient>`
"""
return self._connection.get_client('azure.devops.released.work.work_client.WorkClient')

def get_work_item_tracking_client(self):
"""get_work_item_tracking_client.
Gets the 5.0 version of the WorkItemTrackingClient
Gets the 5.1 version of the WorkItemTrackingClient
:rtype: :class:`<WorkItemTrackingClient> <azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient>`
"""
return self._connection.get_client('azure.devops.released.work_item_tracking.work_item_tracking_client.WorkItemTrackingClient')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v5_0.cloud_load_test.models import *
from ...v5_1.cloud_load_test.models import *
from .cloud_load_test_client import CloudLoadTestClient

__all__ = [
Expand All @@ -25,6 +25,8 @@
'Diagnostics',
'DropAccessData',
'ErrorDetails',
'GraphSubjectBase',
'IdentityRef',
'LoadGenerationGeoLocation',
'LoadTest',
'LoadTestDefinition',
Expand All @@ -33,6 +35,7 @@
'LoadTestRunSettings',
'OverridableRunSettings',
'PageSummary',
'ReferenceLinks',
'RequestSummary',
'ScenarioSummary',
'StaticAgentRunSetting',
Expand Down
Loading