Skip to content

Commit

Permalink
Removed msrest from older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rimobul committed Jan 23, 2024
1 parent 60898fe commit 3faf8ce
Show file tree
Hide file tree
Showing 160 changed files with 163 additions and 165 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ To use the API, establish a connection using a [personal access token](https://d

```python
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
from azure.identity import UsernamePasswordCredential
import pprint

# Fill in with your personal access token and org URL
personal_access_token = 'YOURPAT'
organization_url = 'https://dev.azure.com/YOURORG'

# Create a connection to the org
credentials = BasicAuthentication('', personal_access_token)
credentials = UsernamePasswordCredential(username = '', password = personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)

# Get a client (the "core" client provides access to projects, teams, etc)
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from azure.core.serialization import Model


class ApiResourceLocation(Model):
Expand Down
7 changes: 3 additions & 4 deletions azure-devops/azure/devops/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
import re
import uuid

from msrest import Deserializer, Serializer
from msrest.exceptions import DeserializationError, SerializationError
from msrest.universal_http import ClientRequest
from msrest.service_client import ServiceClient
from azure.core.rest import HttpRequest, HttpResponse
from azure.core.rest.exceptions import DeserializationError, SerializationError
from azure.core.rest.service_client import ServiceClient
from .exceptions import AzureDevOpsAuthenticationError, AzureDevOpsClientRequestError, AzureDevOpsServiceError
from .client_configuration import ClientConfiguration
from . import _models
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/client_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from msrest import Configuration
from azure.core.rest import Configuration
from .version import VERSION


Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import logging

from msrest.service_client import ServiceClient
from azure.core.rest.service_client import ServiceClient
from ._file_cache import RESOURCE_CACHE as RESOURCE_FILE_CACHE
from .client_configuration import ClientConfiguration
from .exceptions import AzureDevOpsClientRequestError
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from msrest.authentication import (
from azure.core.rest.authentication import (
BasicAuthentication,
BasicTokenAuthentication,
OAuthTokenAuthentication)
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from msrest.exceptions import (
from azure.core.rest.exceptions import (
ClientException,
ClientRequestError,
AuthenticationError,
Expand Down
3 changes: 1 addition & 2 deletions azure-devops/azure/devops/issue_tests/test_issue_268.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import pprint
import unittest

from msrest import Deserializer
from msrest.universal_http import HTTPClientResponse
from azure.core.rest import HttpRequest, HttpResponse


class _TestResponse(HTTPClientResponse):
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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.accounts import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/build/build_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.build import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/cix/cix_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.cix import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/core/core_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.core import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.elastic import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/feed/feed_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.feed import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/git/git_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8

from msrest.universal_http import ClientRequest
from azure.core.rest import HttpRequest, HttpResponse
from .git_client_base import GitClientBase


Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/git/git_client_base.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.git import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/graph/graph_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.graph import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.identity import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.member_entitlement_management import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.notification import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/npm/npm_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.npm import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/nuget/nuget_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.nuget import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.operations import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.pipelines import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/policy/policy_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.policy import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.profile import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.project_analysis import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.release import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/search/search_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.search import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.security import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.service_endpoint import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.service_hooks import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/symbol/symbol_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.symbol import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/task/task_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.task import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.task_agent import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/test/test_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.test import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.test_plan import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.test_results import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/tfvc/tfvc_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.tfvc import models

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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.token_admin import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/wiki/wiki_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.wiki import models

Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/work/work_client.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 msrest import Serializer, Deserializer
from azure.core.rest import HttpRequest, HttpResponse
from ...client import Client
from ...v7_0.work import models

Expand Down
Loading

0 comments on commit 3faf8ce

Please sign in to comment.