Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit e9e71b1

Browse files
chore: use gapic-generator-python 0.62.1 (#249)
- [ ] Regenerate this pull request now. fix: resolve DuplicateCredentialArgs error when using credentials_file committer: parthea PiperOrigin-RevId: 425964861 Source-Link: googleapis/googleapis@84b1a5a Source-Link: https://github.com/googleapis/googleapis-gen/commit/4fb761bbd8506ac156f49bac5f18306aa8eb3aa8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9
1 parent c3ec086 commit e9e71b1

File tree

6 files changed

+145
-61
lines changed

6 files changed

+145
-61
lines changed

google/cloud/iot_v1/services/device_manager/async_client.py

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async def create_device_registry(
255255
A container for a group of devices.
256256
"""
257257
# Create or coerce a protobuf request object.
258-
# Sanity check: If we got a request object, we should *not* have
258+
# Quick check: If we got a request object, we should *not* have
259259
# gotten any keyword arguments that map to the request.
260260
has_flattened_params = any([parent, device_registry])
261261
if request is not None and has_flattened_params:
@@ -325,7 +325,7 @@ async def get_device_registry(
325325
A container for a group of devices.
326326
"""
327327
# Create or coerce a protobuf request object.
328-
# Sanity check: If we got a request object, we should *not* have
328+
# Quick check: If we got a request object, we should *not* have
329329
# gotten any keyword arguments that map to the request.
330330
has_flattened_params = any([name])
331331
if request is not None and has_flattened_params:
@@ -417,7 +417,7 @@ async def update_device_registry(
417417
A container for a group of devices.
418418
"""
419419
# Create or coerce a protobuf request object.
420-
# Sanity check: If we got a request object, we should *not* have
420+
# Quick check: If we got a request object, we should *not* have
421421
# gotten any keyword arguments that map to the request.
422422
has_flattened_params = any([device_registry, update_mask])
423423
if request is not None and has_flattened_params:
@@ -485,7 +485,7 @@ async def delete_device_registry(
485485
sent along with the request as metadata.
486486
"""
487487
# Create or coerce a protobuf request object.
488-
# Sanity check: If we got a request object, we should *not* have
488+
# Quick check: If we got a request object, we should *not* have
489489
# gotten any keyword arguments that map to the request.
490490
has_flattened_params = any([name])
491491
if request is not None and has_flattened_params:
@@ -567,7 +567,7 @@ async def list_device_registries(
567567
568568
"""
569569
# Create or coerce a protobuf request object.
570-
# Sanity check: If we got a request object, we should *not* have
570+
# Quick check: If we got a request object, we should *not* have
571571
# gotten any keyword arguments that map to the request.
572572
has_flattened_params = any([parent])
573573
if request is not None and has_flattened_params:
@@ -662,7 +662,7 @@ async def create_device(
662662
The device resource.
663663
"""
664664
# Create or coerce a protobuf request object.
665-
# Sanity check: If we got a request object, we should *not* have
665+
# Quick check: If we got a request object, we should *not* have
666666
# gotten any keyword arguments that map to the request.
667667
has_flattened_params = any([parent, device])
668668
if request is not None and has_flattened_params:
@@ -734,7 +734,7 @@ async def get_device(
734734
The device resource.
735735
"""
736736
# Create or coerce a protobuf request object.
737-
# Sanity check: If we got a request object, we should *not* have
737+
# Quick check: If we got a request object, we should *not* have
738738
# gotten any keyword arguments that map to the request.
739739
has_flattened_params = any([name])
740740
if request is not None and has_flattened_params:
@@ -826,7 +826,7 @@ async def update_device(
826826
The device resource.
827827
"""
828828
# Create or coerce a protobuf request object.
829-
# Sanity check: If we got a request object, we should *not* have
829+
# Quick check: If we got a request object, we should *not* have
830830
# gotten any keyword arguments that map to the request.
831831
has_flattened_params = any([device, update_mask])
832832
if request is not None and has_flattened_params:
@@ -896,7 +896,7 @@ async def delete_device(
896896
sent along with the request as metadata.
897897
"""
898898
# Create or coerce a protobuf request object.
899-
# Sanity check: If we got a request object, we should *not* have
899+
# Quick check: If we got a request object, we should *not* have
900900
# gotten any keyword arguments that map to the request.
901901
has_flattened_params = any([name])
902902
if request is not None and has_flattened_params:
@@ -978,7 +978,7 @@ async def list_devices(
978978
979979
"""
980980
# Create or coerce a protobuf request object.
981-
# Sanity check: If we got a request object, we should *not* have
981+
# Quick check: If we got a request object, we should *not* have
982982
# gotten any keyword arguments that map to the request.
983983
has_flattened_params = any([parent])
984984
if request is not None and has_flattened_params:
@@ -1077,7 +1077,7 @@ async def modify_cloud_to_device_config(
10771077
10781078
"""
10791079
# Create or coerce a protobuf request object.
1080-
# Sanity check: If we got a request object, we should *not* have
1080+
# Quick check: If we got a request object, we should *not* have
10811081
# gotten any keyword arguments that map to the request.
10821082
has_flattened_params = any([name, binary_data])
10831083
if request is not None and has_flattened_params:
@@ -1162,7 +1162,7 @@ async def list_device_config_versions(
11621162
Response for ListDeviceConfigVersions.
11631163
"""
11641164
# Create or coerce a protobuf request object.
1165-
# Sanity check: If we got a request object, we should *not* have
1165+
# Quick check: If we got a request object, we should *not* have
11661166
# gotten any keyword arguments that map to the request.
11671167
has_flattened_params = any([name])
11681168
if request is not None and has_flattened_params:
@@ -1243,7 +1243,7 @@ async def list_device_states(
12431243
Response for ListDeviceStates.
12441244
"""
12451245
# Create or coerce a protobuf request object.
1246-
# Sanity check: If we got a request object, we should *not* have
1246+
# Quick check: If we got a request object, we should *not* have
12471247
# gotten any keyword arguments that map to the request.
12481248
has_flattened_params = any([name])
12491249
if request is not None and has_flattened_params:
@@ -1380,7 +1380,7 @@ async def set_iam_policy(
13801380
13811381
"""
13821382
# Create or coerce a protobuf request object.
1383-
# Sanity check: If we got a request object, we should *not* have
1383+
# Quick check: If we got a request object, we should *not* have
13841384
# gotten any keyword arguments that map to the request.
13851385
has_flattened_params = any([resource])
13861386
if request is not None and has_flattened_params:
@@ -1508,7 +1508,7 @@ async def get_iam_policy(
15081508
15091509
"""
15101510
# Create or coerce a protobuf request object.
1511-
# Sanity check: If we got a request object, we should *not* have
1511+
# Quick check: If we got a request object, we should *not* have
15121512
# gotten any keyword arguments that map to the request.
15131513
has_flattened_params = any([resource])
15141514
if request is not None and has_flattened_params:
@@ -1591,7 +1591,7 @@ async def test_iam_permissions(
15911591
Response message for TestIamPermissions method.
15921592
"""
15931593
# Create or coerce a protobuf request object.
1594-
# Sanity check: If we got a request object, we should *not* have
1594+
# Quick check: If we got a request object, we should *not* have
15951595
# gotten any keyword arguments that map to the request.
15961596
has_flattened_params = any([resource, permissions])
15971597
if request is not None and has_flattened_params:
@@ -1682,12 +1682,13 @@ async def send_command_to_device(
16821682
If empty, the command will be delivered
16831683
to the /devices/{device-id}/commands
16841684
topic, otherwise it will be delivered to
1685-
the /devices/{device-
1686-
id}/commands/{subfolder} topic. Multi-
1687-
level subfolders are allowed. This field
1688-
must not have more than 256 characters,
1689-
and must not contain any MQTT wildcards
1690-
("+" or "#") or null characters.
1685+
the
1686+
/devices/{device-id}/commands/{subfolder}
1687+
topic. Multi-level subfolders are
1688+
allowed. This field must not have more
1689+
than 256 characters, and must not
1690+
contain any MQTT wildcards ("+" or "#")
1691+
or null characters.
16911692
16921693
This corresponds to the ``subfolder`` field
16931694
on the ``request`` instance; if ``request`` is provided, this
@@ -1703,7 +1704,7 @@ async def send_command_to_device(
17031704
Response for SendCommandToDevice.
17041705
"""
17051706
# Create or coerce a protobuf request object.
1706-
# Sanity check: If we got a request object, we should *not* have
1707+
# Quick check: If we got a request object, we should *not* have
17071708
# gotten any keyword arguments that map to the request.
17081709
has_flattened_params = any([name, binary_data, subfolder])
17091710
if request is not None and has_flattened_params:
@@ -1803,7 +1804,7 @@ async def bind_device_to_gateway(
18031804
Response for BindDeviceToGateway.
18041805
"""
18051806
# Create or coerce a protobuf request object.
1806-
# Sanity check: If we got a request object, we should *not* have
1807+
# Quick check: If we got a request object, we should *not* have
18071808
# gotten any keyword arguments that map to the request.
18081809
has_flattened_params = any([parent, gateway_id, device_id])
18091810
if request is not None and has_flattened_params:
@@ -1894,7 +1895,7 @@ async def unbind_device_from_gateway(
18941895
Response for UnbindDeviceFromGateway.
18951896
"""
18961897
# Create or coerce a protobuf request object.
1897-
# Sanity check: If we got a request object, we should *not* have
1898+
# Quick check: If we got a request object, we should *not* have
18981899
# gotten any keyword arguments that map to the request.
18991900
has_flattened_params = any([parent, gateway_id, device_id])
19001901
if request is not None and has_flattened_params:

google/cloud/iot_v1/services/device_manager/client.py

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def create_device_registry(
464464
A container for a group of devices.
465465
"""
466466
# Create or coerce a protobuf request object.
467-
# Sanity check: If we got a request object, we should *not* have
467+
# Quick check: If we got a request object, we should *not* have
468468
# gotten any keyword arguments that map to the request.
469469
has_flattened_params = any([parent, device_registry])
470470
if request is not None and has_flattened_params:
@@ -534,7 +534,7 @@ def get_device_registry(
534534
A container for a group of devices.
535535
"""
536536
# Create or coerce a protobuf request object.
537-
# Sanity check: If we got a request object, we should *not* have
537+
# Quick check: If we got a request object, we should *not* have
538538
# gotten any keyword arguments that map to the request.
539539
has_flattened_params = any([name])
540540
if request is not None and has_flattened_params:
@@ -616,7 +616,7 @@ def update_device_registry(
616616
A container for a group of devices.
617617
"""
618618
# Create or coerce a protobuf request object.
619-
# Sanity check: If we got a request object, we should *not* have
619+
# Quick check: If we got a request object, we should *not* have
620620
# gotten any keyword arguments that map to the request.
621621
has_flattened_params = any([device_registry, update_mask])
622622
if request is not None and has_flattened_params:
@@ -684,7 +684,7 @@ def delete_device_registry(
684684
sent along with the request as metadata.
685685
"""
686686
# Create or coerce a protobuf request object.
687-
# Sanity check: If we got a request object, we should *not* have
687+
# Quick check: If we got a request object, we should *not* have
688688
# gotten any keyword arguments that map to the request.
689689
has_flattened_params = any([name])
690690
if request is not None and has_flattened_params:
@@ -756,7 +756,7 @@ def list_device_registries(
756756
757757
"""
758758
# Create or coerce a protobuf request object.
759-
# Sanity check: If we got a request object, we should *not* have
759+
# Quick check: If we got a request object, we should *not* have
760760
# gotten any keyword arguments that map to the request.
761761
has_flattened_params = any([parent])
762762
if request is not None and has_flattened_params:
@@ -841,7 +841,7 @@ def create_device(
841841
The device resource.
842842
"""
843843
# Create or coerce a protobuf request object.
844-
# Sanity check: If we got a request object, we should *not* have
844+
# Quick check: If we got a request object, we should *not* have
845845
# gotten any keyword arguments that map to the request.
846846
has_flattened_params = any([parent, device])
847847
if request is not None and has_flattened_params:
@@ -913,7 +913,7 @@ def get_device(
913913
The device resource.
914914
"""
915915
# Create or coerce a protobuf request object.
916-
# Sanity check: If we got a request object, we should *not* have
916+
# Quick check: If we got a request object, we should *not* have
917917
# gotten any keyword arguments that map to the request.
918918
has_flattened_params = any([name])
919919
if request is not None and has_flattened_params:
@@ -995,7 +995,7 @@ def update_device(
995995
The device resource.
996996
"""
997997
# Create or coerce a protobuf request object.
998-
# Sanity check: If we got a request object, we should *not* have
998+
# Quick check: If we got a request object, we should *not* have
999999
# gotten any keyword arguments that map to the request.
10001000
has_flattened_params = any([device, update_mask])
10011001
if request is not None and has_flattened_params:
@@ -1065,7 +1065,7 @@ def delete_device(
10651065
sent along with the request as metadata.
10661066
"""
10671067
# Create or coerce a protobuf request object.
1068-
# Sanity check: If we got a request object, we should *not* have
1068+
# Quick check: If we got a request object, we should *not* have
10691069
# gotten any keyword arguments that map to the request.
10701070
has_flattened_params = any([name])
10711071
if request is not None and has_flattened_params:
@@ -1137,7 +1137,7 @@ def list_devices(
11371137
11381138
"""
11391139
# Create or coerce a protobuf request object.
1140-
# Sanity check: If we got a request object, we should *not* have
1140+
# Quick check: If we got a request object, we should *not* have
11411141
# gotten any keyword arguments that map to the request.
11421142
has_flattened_params = any([parent])
11431143
if request is not None and has_flattened_params:
@@ -1226,7 +1226,7 @@ def modify_cloud_to_device_config(
12261226
12271227
"""
12281228
# Create or coerce a protobuf request object.
1229-
# Sanity check: If we got a request object, we should *not* have
1229+
# Quick check: If we got a request object, we should *not* have
12301230
# gotten any keyword arguments that map to the request.
12311231
has_flattened_params = any([name, binary_data])
12321232
if request is not None and has_flattened_params:
@@ -1302,7 +1302,7 @@ def list_device_config_versions(
13021302
Response for ListDeviceConfigVersions.
13031303
"""
13041304
# Create or coerce a protobuf request object.
1305-
# Sanity check: If we got a request object, we should *not* have
1305+
# Quick check: If we got a request object, we should *not* have
13061306
# gotten any keyword arguments that map to the request.
13071307
has_flattened_params = any([name])
13081308
if request is not None and has_flattened_params:
@@ -1375,7 +1375,7 @@ def list_device_states(
13751375
Response for ListDeviceStates.
13761376
"""
13771377
# Create or coerce a protobuf request object.
1378-
# Sanity check: If we got a request object, we should *not* have
1378+
# Quick check: If we got a request object, we should *not* have
13791379
# gotten any keyword arguments that map to the request.
13801380
has_flattened_params = any([name])
13811381
if request is not None and has_flattened_params:
@@ -1502,7 +1502,7 @@ def set_iam_policy(
15021502
15031503
"""
15041504
# Create or coerce a protobuf request object.
1505-
# Sanity check: If we got a request object, we should *not* have
1505+
# Quick check: If we got a request object, we should *not* have
15061506
# gotten any keyword arguments that map to the request.
15071507
has_flattened_params = any([resource])
15081508
if request is not None and has_flattened_params:
@@ -1629,7 +1629,7 @@ def get_iam_policy(
16291629
16301630
"""
16311631
# Create or coerce a protobuf request object.
1632-
# Sanity check: If we got a request object, we should *not* have
1632+
# Quick check: If we got a request object, we should *not* have
16331633
# gotten any keyword arguments that map to the request.
16341634
has_flattened_params = any([resource])
16351635
if request is not None and has_flattened_params:
@@ -1711,7 +1711,7 @@ def test_iam_permissions(
17111711
Response message for TestIamPermissions method.
17121712
"""
17131713
# Create or coerce a protobuf request object.
1714-
# Sanity check: If we got a request object, we should *not* have
1714+
# Quick check: If we got a request object, we should *not* have
17151715
# gotten any keyword arguments that map to the request.
17161716
has_flattened_params = any([resource, permissions])
17171717
if request is not None and has_flattened_params:
@@ -1801,12 +1801,13 @@ def send_command_to_device(
18011801
If empty, the command will be delivered
18021802
to the /devices/{device-id}/commands
18031803
topic, otherwise it will be delivered to
1804-
the /devices/{device-
1805-
id}/commands/{subfolder} topic. Multi-
1806-
level subfolders are allowed. This field
1807-
must not have more than 256 characters,
1808-
and must not contain any MQTT wildcards
1809-
("+" or "#") or null characters.
1804+
the
1805+
/devices/{device-id}/commands/{subfolder}
1806+
topic. Multi-level subfolders are
1807+
allowed. This field must not have more
1808+
than 256 characters, and must not
1809+
contain any MQTT wildcards ("+" or "#")
1810+
or null characters.
18101811
18111812
This corresponds to the ``subfolder`` field
18121813
on the ``request`` instance; if ``request`` is provided, this
@@ -1822,7 +1823,7 @@ def send_command_to_device(
18221823
Response for SendCommandToDevice.
18231824
"""
18241825
# Create or coerce a protobuf request object.
1825-
# Sanity check: If we got a request object, we should *not* have
1826+
# Quick check: If we got a request object, we should *not* have
18261827
# gotten any keyword arguments that map to the request.
18271828
has_flattened_params = any([name, binary_data, subfolder])
18281829
if request is not None and has_flattened_params:
@@ -1911,7 +1912,7 @@ def bind_device_to_gateway(
19111912
Response for BindDeviceToGateway.
19121913
"""
19131914
# Create or coerce a protobuf request object.
1914-
# Sanity check: If we got a request object, we should *not* have
1915+
# Quick check: If we got a request object, we should *not* have
19151916
# gotten any keyword arguments that map to the request.
19161917
has_flattened_params = any([parent, gateway_id, device_id])
19171918
if request is not None and has_flattened_params:
@@ -2002,7 +2003,7 @@ def unbind_device_from_gateway(
20022003
Response for UnbindDeviceFromGateway.
20032004
"""
20042005
# Create or coerce a protobuf request object.
2005-
# Sanity check: If we got a request object, we should *not* have
2006+
# Quick check: If we got a request object, we should *not* have
20062007
# gotten any keyword arguments that map to the request.
20072008
has_flattened_params = any([parent, gateway_id, device_id])
20082009
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)