Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.
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
38 changes: 19 additions & 19 deletions google/cloud/iot_v1/services/device_manager/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async def create_device_registry(
) -> resources.DeviceRegistry:
r"""Creates a device registry that contains devices.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -323,7 +323,7 @@ async def get_device_registry(
) -> resources.DeviceRegistry:
r"""Gets a device registry configuration.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -421,7 +421,7 @@ async def update_device_registry(
) -> resources.DeviceRegistry:
r"""Updates a device registry configuration.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -524,7 +524,7 @@ async def delete_device_registry(
) -> None:
r"""Deletes a device registry configuration.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -613,7 +613,7 @@ async def list_device_registries(
) -> pagers.ListDeviceRegistriesAsyncPager:
r"""Lists device registries.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -723,7 +723,7 @@ async def create_device(
) -> resources.Device:
r"""Creates a device in a device registry.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -822,7 +822,7 @@ async def get_device(
) -> resources.Device:
r"""Gets details about a device.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -922,7 +922,7 @@ async def update_device(
) -> resources.Device:
r"""Updates a device.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1025,7 +1025,7 @@ async def delete_device(
) -> None:
r"""Deletes a device.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1116,7 +1116,7 @@ async def list_devices(
) -> pagers.ListDevicesAsyncPager:
r"""List devices in a device registry.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1229,7 +1229,7 @@ async def modify_cloud_to_device_config(
the modified configuration version and its metadata.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1344,7 +1344,7 @@ async def list_device_config_versions(
configuration in descending order (i.e.: newest first).


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1446,7 +1446,7 @@ async def list_device_states(
descending order (i.e.: newest first).


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1547,7 +1547,7 @@ async def set_iam_policy(
resource. Replaces any existing policy.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1695,7 +1695,7 @@ async def get_iam_policy(
not have a policy set.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1844,7 +1844,7 @@ async def test_iam_permissions(
permissions, not a NOT_FOUND error.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1965,7 +1965,7 @@ async def send_command_to_device(
from the device.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -2095,7 +2095,7 @@ async def bind_device_to_gateway(
) -> device_manager.BindDeviceToGatewayResponse:
r"""Associates the device with the gateway.

.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -2207,7 +2207,7 @@ async def unbind_device_from_gateway(
gateway.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down
57 changes: 19 additions & 38 deletions google/cloud/iot_v1/services/device_manager/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,7 @@ def create_device_registry(
) -> resources.DeviceRegistry:
r"""Creates a device registry that contains devices.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -533,8 +532,7 @@ def get_device_registry(
) -> resources.DeviceRegistry:
r"""Gets a device registry configuration.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -622,8 +620,7 @@ def update_device_registry(
) -> resources.DeviceRegistry:
r"""Updates a device registry configuration.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -726,8 +723,7 @@ def delete_device_registry(
) -> None:
r"""Deletes a device registry configuration.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -806,8 +802,7 @@ def list_device_registries(
) -> pagers.ListDeviceRegistriesPager:
r"""Lists device registries.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -907,8 +902,7 @@ def create_device(
) -> resources.Device:
r"""Creates a device in a device registry.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1007,8 +1001,7 @@ def get_device(
) -> resources.Device:
r"""Gets details about a device.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1098,8 +1091,7 @@ def update_device(
) -> resources.Device:
r"""Updates a device.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1202,8 +1194,7 @@ def delete_device(
) -> None:
r"""Deletes a device.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1284,8 +1275,7 @@ def list_devices(
) -> pagers.ListDevicesPager:
r"""List devices in a device registry.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1388,8 +1378,7 @@ def modify_cloud_to_device_config(
the modified configuration version and its metadata.



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1495,8 +1484,7 @@ def list_device_config_versions(
configuration in descending order (i.e.: newest first).



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1590,8 +1578,7 @@ def list_device_states(
descending order (i.e.: newest first).



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1682,8 +1669,7 @@ def set_iam_policy(
resource. Replaces any existing policy.



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1830,8 +1816,7 @@ def get_iam_policy(
not have a policy set.



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -1979,8 +1964,7 @@ def test_iam_permissions(
permissions, not a NOT_FOUND error.



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -2100,8 +2084,7 @@ def send_command_to_device(
from the device.



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -2220,8 +2203,7 @@ def bind_device_to_gateway(
) -> device_manager.BindDeviceToGatewayResponse:
r"""Associates the device with the gateway.


.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down Expand Up @@ -2333,8 +2315,7 @@ def unbind_device_from_gateway(
gateway.



.. code-block::
.. code-block:: python

from google.cloud import iot_v1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-iot


# [START cloudiot_generated_iot_v1_DeviceManager_BindDeviceToGateway_async]
# [START cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_async]
from google.cloud import iot_v1


Expand All @@ -44,4 +44,4 @@ async def sample_bind_device_to_gateway():
# Handle the response
print(response)

# [END cloudiot_generated_iot_v1_DeviceManager_BindDeviceToGateway_async]
# [END cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-iot


# [START cloudiot_generated_iot_v1_DeviceManager_BindDeviceToGateway_sync]
# [START cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_sync]
from google.cloud import iot_v1


Expand All @@ -44,4 +44,4 @@ def sample_bind_device_to_gateway():
# Handle the response
print(response)

# [END cloudiot_generated_iot_v1_DeviceManager_BindDeviceToGateway_sync]
# [END cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_sync]
Loading