Skip to content
6 changes: 3 additions & 3 deletions sdk/cosmos/azure-cosmos/azure/cosmos/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def read_item(
:raise `CosmosHttpResponseError`: If the given item couldn't be retrieved.
:rtype: dict[str, Any]

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START update_item]
:end-before: [END update_item]
:language: python
Expand Down Expand Up @@ -320,15 +320,15 @@ def query_items(
:returns: An Iterable of items (dicts).
:rtype: Iterable[dict[str, Any]]

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START query_items]
:end-before: [END query_items]
:language: python
:dedent: 0
:caption: Get all products that have not been discontinued:
:name: query_items

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START query_items_param]
:end-before: [END query_items_param]
:language: python
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos/azure/cosmos/cosmos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class CosmosClient(object):
and so on.
*connection_policy* - An instance of ~azure.cosmos.documents.ConnectionPolicy

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START create_client]
:end-before: [END create_client]
:language: python
Expand Down Expand Up @@ -222,7 +222,7 @@ def create_database( # pylint: disable=redefined-builtin
:rtype: ~azure.cosmos.database.DatabaseProxy
:raises `CosmosResourceExistsError`: If database with the given ID already exists.

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START create_database]
:end-before: [END create_database]
:language: python
Expand Down
12 changes: 6 additions & 6 deletions sdk/cosmos/azure-cosmos/azure/cosmos/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ def create_container(
:raise CosmosHttpResponseError: The container creation failed.
:rtype: ~azure.cosmos.container.ContainerProxy

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START create_container]
:end-before: [END create_container]
:language: python
:dedent: 0
:caption: Create a container with default settings:
:name: create_container

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START create_container_with_settings]
:end-before: [END create_container_with_settings]
:language: python
Expand Down Expand Up @@ -264,7 +264,7 @@ def get_container_client(self, container):
or a dict representing the properties of the container to be retrieved.
:rtype: ~azure.cosmos.container.ContainerProxy

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START get_container]
:end-before: [END get_container]
:language: python
Expand Down Expand Up @@ -297,7 +297,7 @@ def list_containers(self, max_item_count=None, populate_query_metrics=None, **kw
:returns: An Iterable of container properties (dicts).
:rtype: Iterable[dict[str, Any]]

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START list_containers]
:end-before: [END list_containers]
:language: python
Expand Down Expand Up @@ -395,7 +395,7 @@ def replace_container(
:returns: A `ContainerProxy` instance representing the container after replace completed.
:rtype: ~azure.cosmos.container.ContainerProxy

.. literalinclude:: ../../examples/examples.py
.. literalinclude:: ../../samples/examples.py
:start-after: [START reset_container_properties]
:end-before: [END reset_container_properties]
:language: python
Expand Down Expand Up @@ -522,7 +522,7 @@ def create_user(self, body, **kwargs):
:raise `CosmosHttpResponseError`: If the given user couldn't be created.
:rtype: ~azure.cosmos.user.UserProxy

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