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 sdk/core/azure-core/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
recursive-include examples *.py
recursive-include samples *.py

1 change: 1 addition & 0 deletions sdk/core/azure-core/azure/core/_match_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from enum import Enum

class MatchConditions(Enum):
"""An enum to describe match conditions. """
Unconditionally = 1
IfNotModified = 2
IfModified = 3
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/_pipeline_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PipelineClient(PipelineClientBase):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sync.py
.. literalinclude:: ../samples/test_example_sync.py
:start-after: [START build_pipeline_client]
:end-before: [END build_pipeline_client]
:language: python
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/_pipeline_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class AsyncPipelineClient(PipelineClientBase):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START build_async_pipeline_client]
:end-before: [END build_async_pipeline_client]
:language: python
Expand Down
4 changes: 2 additions & 2 deletions sdk/core/azure-core/azure/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Configuration(object):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_config.py
.. literalinclude:: ../samples/test_example_config.py
:start-after: [START configuration]
:end-before: [END configuration]
:language: python
Expand Down Expand Up @@ -99,7 +99,7 @@ class ConnectionConfiguration(object):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_config.py
.. literalinclude:: ../samples/test_example_config.py
:start-after: [START connection_configuration]
:end-before: [END connection_configuration]
:language: python
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/pipeline/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class Pipeline(AbstractContextManager, Generic[HTTPRequestType, HTTPResponseType

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sync.py
.. literalinclude:: ../samples/test_example_sync.py
:start-after: [START build_pipeline]
:end-before: [END build_pipeline]
:language: python
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/pipeline/_base_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class AsyncPipeline(

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START build_async_pipeline]
:end-before: [END build_async_pipeline]
:language: python
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/pipeline/policies/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def on_exception(self, request): # pylint: disable=unused-argument

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sansio.py
.. literalinclude:: ../samples/test_example_sansio.py
:start-after: [START on_exception]
:end-before: [END on_exception]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RedirectPolicy(HTTPPolicy):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sync.py
.. literalinclude:: ../samples/test_example_sync.py
:start-after: [START redirect_policy]
:end-before: [END redirect_policy]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AsyncRedirectPolicy(RedirectPolicy, AsyncHTTPPolicy): # type: ignore

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START async_redirect_policy]
:end-before: [END async_redirect_policy]
:language: python
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/azure/core/pipeline/policies/_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class RetryPolicy(HTTPPolicy):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sync.py
.. literalinclude:: ../samples/test_example_sync.py
:start-after: [START retry_policy]
:end-before: [END retry_policy]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class AsyncRetryPolicy(RetryPolicy, AsyncHTTPPolicy): # type: ignore

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START async_retry_policy]
:end-before: [END async_retry_policy]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class HeadersPolicy(SansIOHTTPPolicy):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sansio.py
.. literalinclude:: ../samples/test_example_sansio.py
:start-after: [START headers_policy]
:end-before: [END headers_policy]
:language: python
Expand Down Expand Up @@ -114,7 +114,7 @@ class UserAgentPolicy(SansIOHTTPPolicy):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sansio.py
.. literalinclude:: ../samples/test_example_sansio.py
:start-after: [START user_agent_policy]
:end-before: [END user_agent_policy]
:language: python
Expand Down Expand Up @@ -185,7 +185,7 @@ class NetworkTraceLoggingPolicy(SansIOHTTPPolicy):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sansio.py
.. literalinclude:: ../samples/test_example_sansio.py
:start-after: [START network_trace_logging_policy]
:end-before: [END network_trace_logging_policy]
:language: python
Expand Down Expand Up @@ -410,7 +410,7 @@ class ProxyPolicy(SansIOHTTPPolicy):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sansio.py
.. literalinclude:: ../samples/test_example_sansio.py
:start-after: [START proxy_policy]
:end-before: [END proxy_policy]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class AioHttpTransport(AsyncHttpTransport):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START aiohttp]
:end-before: [END aiohttp]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class AsyncioRequestsTransport(RequestsTransport, AsyncHttpTransport): # type:

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START asyncio]
:end-before: [END asyncio]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class RequestsTransport(HttpTransport):

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_sync.py
.. literalinclude:: ../samples/test_example_sync.py
:start-after: [START requests]
:end-before: [END requests]
:language: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class TrioRequestsTransport(RequestsTransport, AsyncHttpTransport): # type: ign

.. admonition:: Example:

.. literalinclude:: ../examples/test_example_async.py
.. literalinclude:: ../samples/test_example_async.py
:start-after: [START trio]
:end-before: [END trio]
:language: python
Expand Down