@@ -244,11 +244,12 @@ def create_device_registry(
244
244
>>> response = client.create_device_registry(parent, device_registry)
245
245
246
246
Args:
247
- parent (str): The project and cloud region where this device registry must be created.
248
- For example, ``projects/example-project/locations/us-central1``.
249
- device_registry (Union[dict, ~google.cloud.iot_v1.types.DeviceRegistry]): The device registry. The field ``name`` must be empty. The server will
250
- generate that field from the device registry ``id`` provided and the
251
- ``parent`` field.
247
+ parent (str): Required. The project and cloud region where this device registry must
248
+ be created. For example,
249
+ ``projects/example-project/locations/us-central1``.
250
+ device_registry (Union[dict, ~google.cloud.iot_v1.types.DeviceRegistry]): Required. The device registry. The field ``name`` must be empty. The
251
+ server will generate that field from the device registry ``id`` provided
252
+ and the ``parent`` field.
252
253
253
254
If a dict is provided, it must be of the same form as the protobuf
254
255
message :class:`~google.cloud.iot_v1.types.DeviceRegistry`
@@ -322,7 +323,7 @@ def get_device_registry(
322
323
>>> response = client.get_device_registry(name)
323
324
324
325
Args:
325
- name (str): The name of the device registry. For example,
326
+ name (str): Required. The name of the device registry. For example,
326
327
``projects/example-project/locations/us-central1/registries/my-registry``.
327
328
retry (Optional[google.api_core.retry.Retry]): A retry object used
328
329
to retry requests. If ``None`` is specified, requests will
@@ -397,16 +398,16 @@ def update_device_registry(
397
398
>>> response = client.update_device_registry(device_registry, update_mask)
398
399
399
400
Args:
400
- device_registry (Union[dict, ~google.cloud.iot_v1.types.DeviceRegistry]): The new values for the device registry. The ``id`` field must be empty,
401
- and the ``name`` field must indicate the path of the resource. For
402
- example,
401
+ device_registry (Union[dict, ~google.cloud.iot_v1.types.DeviceRegistry]): Required. The new values for the device registry. The ``id`` field must
402
+ be empty, and the ``name`` field must indicate the path of the resource.
403
+ For example,
403
404
``projects/example-project/locations/us-central1/registries/my-registry``.
404
405
405
406
If a dict is provided, it must be of the same form as the protobuf
406
407
message :class:`~google.cloud.iot_v1.types.DeviceRegistry`
407
- update_mask (Union[dict, ~google.cloud.iot_v1.types.FieldMask]): Only updates the ``device_registry`` fields indicated by this mask. The
408
- field mask must not be empty, and it must not contain fields that are
409
- immutable or only set by the server. Mutable top-level fields:
408
+ update_mask (Union[dict, ~google.cloud.iot_v1.types.FieldMask]): Required. Only updates the ``device_registry`` fields indicated by this
409
+ mask. The field mask must not be empty, and it must not contain fields
410
+ that are immutable or only set by the server. Mutable top-level fields:
410
411
``event_notification_config``, ``http_config``, ``mqtt_config``, and
411
412
``state_notification_config``.
412
413
@@ -482,7 +483,7 @@ def delete_device_registry(
482
483
>>> client.delete_device_registry(name)
483
484
484
485
Args:
485
- name (str): The name of the device registry. For example,
486
+ name (str): Required. The name of the device registry. For example,
486
487
``projects/example-project/locations/us-central1/registries/my-registry``.
487
488
retry (Optional[google.api_core.retry.Retry]): A retry object used
488
489
to retry requests. If ``None`` is specified, requests will
@@ -562,7 +563,7 @@ def list_device_registries(
562
563
... pass
563
564
564
565
Args:
565
- parent (str): The project and cloud region path. For example,
566
+ parent (str): Required. The project and cloud region path. For example,
566
567
``projects/example-project/locations/us-central1``.
567
568
page_size (int): The maximum number of resources contained in the
568
569
underlying API response. If page streaming is performed per-
@@ -657,12 +658,12 @@ def create_device(
657
658
>>> response = client.create_device(parent, device)
658
659
659
660
Args:
660
- parent (str): The name of the device registry where this device should be created. For
661
- example,
661
+ parent (str): Required. The name of the device registry where this device should be
662
+ created. For example,
662
663
``projects/example-project/locations/us-central1/registries/my-registry``.
663
- device (Union[dict, ~google.cloud.iot_v1.types.Device]): The device registration details. The field ``name`` must be empty. The
664
- server generates ``name`` from the device registry ``id`` and the
665
- ``parent`` field.
664
+ device (Union[dict, ~google.cloud.iot_v1.types.Device]): Required. The device registration details. The field ``name`` must be
665
+ empty. The server generates ``name`` from the device registry ``id`` and
666
+ the ``parent`` field.
666
667
667
668
If a dict is provided, it must be of the same form as the protobuf
668
669
message :class:`~google.cloud.iot_v1.types.Device`
@@ -735,7 +736,7 @@ def get_device(
735
736
>>> response = client.get_device(name)
736
737
737
738
Args:
738
- name (str): The name of the device. For example,
739
+ name (str): Required. The name of the device. For example,
739
740
``projects/p0/locations/us-central1/registries/registry0/devices/device0``
740
741
or
741
742
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
@@ -817,15 +818,16 @@ def update_device(
817
818
>>> response = client.update_device(device, update_mask)
818
819
819
820
Args:
820
- device (Union[dict, ~google.cloud.iot_v1.types.Device]): The new values for the device. The ``id`` and ``num_id`` fields must be
821
- empty, and the field ``name`` must specify the name path. For example,
821
+ device (Union[dict, ~google.cloud.iot_v1.types.Device]): Required. The new values for the device. The ``id`` and ``num_id``
822
+ fields must be empty, and the field ``name`` must specify the name path.
823
+ For example,
822
824
``projects/p0/locations/us-central1/registries/registry0/devices/device0``\ or
823
825
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
824
826
825
827
If a dict is provided, it must be of the same form as the protobuf
826
828
message :class:`~google.cloud.iot_v1.types.Device`
827
- update_mask (Union[dict, ~google.cloud.iot_v1.types.FieldMask]): Only updates the ``device`` fields indicated by this mask. The field
828
- mask must not be empty, and it must not contain fields that are
829
+ update_mask (Union[dict, ~google.cloud.iot_v1.types.FieldMask]): Required. Only updates the ``device`` fields indicated by this mask. The
830
+ field mask must not be empty, and it must not contain fields that are
829
831
immutable or only set by the server. Mutable top-level fields:
830
832
``credentials``, ``blocked``, and ``metadata``
831
833
@@ -901,7 +903,7 @@ def delete_device(
901
903
>>> client.delete_device(name)
902
904
903
905
Args:
904
- name (str): The name of the device. For example,
906
+ name (str): Required. The name of the device. For example,
905
907
``projects/p0/locations/us-central1/registries/registry0/devices/device0``
906
908
or
907
909
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
@@ -987,7 +989,7 @@ def list_devices(
987
989
... pass
988
990
989
991
Args:
990
- parent (str): The device registry path. Required. For example,
992
+ parent (str): Required. The device registry path. Required. For example,
991
993
``projects/my-project/locations/us-central1/registries/my-registry``.
992
994
device_num_ids (list[long]): A list of device numeric IDs. If empty, this field is ignored. Maximum
993
995
IDs: 10,000.
@@ -1104,11 +1106,11 @@ def modify_cloud_to_device_config(
1104
1106
>>> response = client.modify_cloud_to_device_config(name, binary_data)
1105
1107
1106
1108
Args:
1107
- name (str): The name of the device. For example,
1109
+ name (str): Required. The name of the device. For example,
1108
1110
``projects/p0/locations/us-central1/registries/registry0/devices/device0``
1109
1111
or
1110
1112
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
1111
- binary_data (bytes): The configuration data for the device.
1113
+ binary_data (bytes): Required. The configuration data for the device.
1112
1114
version_to_update (long): The version number to update. If this value is zero, it will not check the
1113
1115
version number of the server and will always update the current version;
1114
1116
otherwise, this update will fail if the version number found on the server
@@ -1188,7 +1190,7 @@ def list_device_config_versions(
1188
1190
>>> response = client.list_device_config_versions(name)
1189
1191
1190
1192
Args:
1191
- name (str): The name of the device. For example,
1193
+ name (str): Required. The name of the device. For example,
1192
1194
``projects/p0/locations/us-central1/registries/registry0/devices/device0``
1193
1195
or
1194
1196
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
@@ -1269,7 +1271,7 @@ def list_device_states(
1269
1271
>>> response = client.list_device_states(name)
1270
1272
1271
1273
Args:
1272
- name (str): The name of the device. For example,
1274
+ name (str): Required. The name of the device. For example,
1273
1275
``projects/p0/locations/us-central1/registries/registry0/devices/device0``
1274
1276
or
1275
1277
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
@@ -1343,7 +1345,8 @@ def set_iam_policy(
1343
1345
>>>
1344
1346
>>> client = iot_v1.DeviceManagerClient()
1345
1347
>>>
1346
- >>> resource = client.registry_path('[PROJECT]', '[LOCATION]', '[REGISTRY]')
1348
+ >>> # TODO: Initialize `resource`:
1349
+ >>> resource = ''
1347
1350
>>>
1348
1351
>>> # TODO: Initialize `policy`:
1349
1352
>>> policy = {}
@@ -1426,7 +1429,8 @@ def get_iam_policy(
1426
1429
>>>
1427
1430
>>> client = iot_v1.DeviceManagerClient()
1428
1431
>>>
1429
- >>> resource = client.registry_path('[PROJECT]', '[LOCATION]', '[REGISTRY]')
1432
+ >>> # TODO: Initialize `resource`:
1433
+ >>> resource = ''
1430
1434
>>>
1431
1435
>>> response = client.get_iam_policy(resource)
1432
1436
@@ -1506,7 +1510,8 @@ def test_iam_permissions(
1506
1510
>>>
1507
1511
>>> client = iot_v1.DeviceManagerClient()
1508
1512
>>>
1509
- >>> resource = client.registry_path('[PROJECT]', '[LOCATION]', '[REGISTRY]')
1513
+ >>> # TODO: Initialize `resource`:
1514
+ >>> resource = ''
1510
1515
>>>
1511
1516
>>> # TODO: Initialize `permissions`:
1512
1517
>>> permissions = []
@@ -1609,11 +1614,11 @@ def send_command_to_device(
1609
1614
>>> response = client.send_command_to_device(name, binary_data)
1610
1615
1611
1616
Args:
1612
- name (str): The name of the device. For example,
1617
+ name (str): Required. The name of the device. For example,
1613
1618
``projects/p0/locations/us-central1/registries/registry0/devices/device0``
1614
1619
or
1615
1620
``projects/p0/locations/us-central1/registries/registry0/devices/{num_id}``.
1616
- binary_data (bytes): The command data to send to the device.
1621
+ binary_data (bytes): Required. The command data to send to the device.
1617
1622
subfolder (str): Optional subfolder for the command. If empty, the command will be delivered
1618
1623
to the /devices/{device-id}/commands topic, otherwise it will be delivered
1619
1624
to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
@@ -1697,12 +1702,12 @@ def bind_device_to_gateway(
1697
1702
>>> response = client.bind_device_to_gateway(parent, gateway_id, device_id)
1698
1703
1699
1704
Args:
1700
- parent (str): The name of the registry. For example,
1705
+ parent (str): Required. The name of the registry. For example,
1701
1706
``projects/example-project/locations/us-central1/registries/my-registry``.
1702
- gateway_id (str): The value of ``gateway_id`` can be either the device numeric ID or the
1703
- user-defined device identifier.
1704
- device_id (str): The device to associate with the specified gateway. The value of
1705
- ``device_id`` can be either the device numeric ID or the user-defined
1707
+ gateway_id (str): Required. The value of ``gateway_id`` can be either the device numeric
1708
+ ID or the user-defined device identifier.
1709
+ device_id (str): Required. The device to associate with the specified gateway. The value
1710
+ of ``device_id`` can be either the device numeric ID or the user-defined
1706
1711
device identifier.
1707
1712
retry (Optional[google.api_core.retry.Retry]): A retry object used
1708
1713
to retry requests. If ``None`` is specified, requests will
@@ -1782,13 +1787,13 @@ def unbind_device_from_gateway(
1782
1787
>>> response = client.unbind_device_from_gateway(parent, gateway_id, device_id)
1783
1788
1784
1789
Args:
1785
- parent (str): The name of the registry. For example,
1790
+ parent (str): Required. The name of the registry. For example,
1786
1791
``projects/example-project/locations/us-central1/registries/my-registry``.
1787
- gateway_id (str): The value of ``gateway_id`` can be either the device numeric ID or the
1792
+ gateway_id (str): Required. The value of ``gateway_id`` can be either the device numeric
1793
+ ID or the user-defined device identifier.
1794
+ device_id (str): Required. The device to disassociate from the specified gateway. The
1795
+ value of ``device_id`` can be either the device numeric ID or the
1788
1796
user-defined device identifier.
1789
- device_id (str): The device to disassociate from the specified gateway. The value of
1790
- ``device_id`` can be either the device numeric ID or the user-defined
1791
- device identifier.
1792
1797
retry (Optional[google.api_core.retry.Retry]): A retry object used
1793
1798
to retry requests. If ``None`` is specified, requests will
1794
1799
be retried using a default configuration.
0 commit comments