From 0cebf04c61e79f4c01c496601f4aed5d535ef4cf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Mar 2023 10:14:32 +0000 Subject: [PATCH 1/8] chore(deps): update all dependencies (#451) --- .../api-client/accesstoken_example/requirements-test.txt | 2 +- samples/api-client/accesstoken_example/requirements.txt | 8 ++++---- samples/api-client/manager/requirements.txt | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/samples/api-client/accesstoken_example/requirements-test.txt b/samples/api-client/accesstoken_example/requirements-test.txt index 1cbe85f2..18c8b948 100644 --- a/samples/api-client/accesstoken_example/requirements-test.txt +++ b/samples/api-client/accesstoken_example/requirements-test.txt @@ -1,3 +1,3 @@ pytest==7.2.1 -google-cloud-pubsub==2.14.1 +google-cloud-pubsub==2.15.0 google-cloud-storage==2.7.0 diff --git a/samples/api-client/accesstoken_example/requirements.txt b/samples/api-client/accesstoken_example/requirements.txt index a941ab9c..f278c480 100644 --- a/samples/api-client/accesstoken_example/requirements.txt +++ b/samples/api-client/accesstoken_example/requirements.txt @@ -1,10 +1,10 @@ cryptography==39.0.1 flaky==3.7.0 -google-api-python-client==2.78.0 +google-api-python-client==2.79.0 google-auth-httplib2==0.1.0 -google-auth==2.16.0 -google-cloud-iot==2.8.1 -google-cloud-pubsub==2.14.1 +google-auth==2.16.1 +google-cloud-iot==2.9.0 +google-cloud-pubsub==2.15.0 google-cloud-storage==2.7.0 paho-mqtt==1.6.1 pyjwt==2.6.0 diff --git a/samples/api-client/manager/requirements.txt b/samples/api-client/manager/requirements.txt index c83a0195..799705cd 100644 --- a/samples/api-client/manager/requirements.txt +++ b/samples/api-client/manager/requirements.txt @@ -1,9 +1,9 @@ cryptography==39.0.1 flaky==3.7.0 -google-api-python-client==2.78.0 +google-api-python-client==2.79.0 google-auth-httplib2==0.1.0 -google-auth==2.16.0 -google-cloud-iot==2.8.1 -google-cloud-pubsub==2.14.1 +google-auth==2.16.1 +google-cloud-iot==2.9.0 +google-cloud-pubsub==2.15.0 paho-mqtt==1.6.1 pyjwt==2.6.0 From bfa9c9da970d3b351bd7b1b9bbc623ad96412462 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Mar 2023 13:48:56 +0000 Subject: [PATCH 2/8] chore(deps): update dependency google-api-python-client to v2.80.0 (#454) --- samples/api-client/accesstoken_example/requirements.txt | 2 +- samples/api-client/manager/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/api-client/accesstoken_example/requirements.txt b/samples/api-client/accesstoken_example/requirements.txt index f278c480..7cea1130 100644 --- a/samples/api-client/accesstoken_example/requirements.txt +++ b/samples/api-client/accesstoken_example/requirements.txt @@ -1,6 +1,6 @@ cryptography==39.0.1 flaky==3.7.0 -google-api-python-client==2.79.0 +google-api-python-client==2.80.0 google-auth-httplib2==0.1.0 google-auth==2.16.1 google-cloud-iot==2.9.0 diff --git a/samples/api-client/manager/requirements.txt b/samples/api-client/manager/requirements.txt index 799705cd..a5256f71 100644 --- a/samples/api-client/manager/requirements.txt +++ b/samples/api-client/manager/requirements.txt @@ -1,6 +1,6 @@ cryptography==39.0.1 flaky==3.7.0 -google-api-python-client==2.79.0 +google-api-python-client==2.80.0 google-auth-httplib2==0.1.0 google-auth==2.16.1 google-cloud-iot==2.9.0 From 9b8b723bc36c05afa00c79c7f0914ec80beffa25 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 4 Mar 2023 11:31:07 +0000 Subject: [PATCH 3/8] chore(deps): update all dependencies (#455) --- samples/api-client/accesstoken_example/requirements-test.txt | 2 +- samples/api-client/accesstoken_example/requirements.txt | 4 ++-- samples/api-client/manager/requirements-test.txt | 2 +- samples/api-client/manager/requirements.txt | 4 ++-- samples/api-client/mqtt_example/requirements-test.txt | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/api-client/accesstoken_example/requirements-test.txt b/samples/api-client/accesstoken_example/requirements-test.txt index 18c8b948..109c3272 100644 --- a/samples/api-client/accesstoken_example/requirements-test.txt +++ b/samples/api-client/accesstoken_example/requirements-test.txt @@ -1,3 +1,3 @@ -pytest==7.2.1 +pytest==7.2.2 google-cloud-pubsub==2.15.0 google-cloud-storage==2.7.0 diff --git a/samples/api-client/accesstoken_example/requirements.txt b/samples/api-client/accesstoken_example/requirements.txt index 7cea1130..b1f4c2ee 100644 --- a/samples/api-client/accesstoken_example/requirements.txt +++ b/samples/api-client/accesstoken_example/requirements.txt @@ -1,8 +1,8 @@ -cryptography==39.0.1 +cryptography==39.0.2 flaky==3.7.0 google-api-python-client==2.80.0 google-auth-httplib2==0.1.0 -google-auth==2.16.1 +google-auth==2.16.2 google-cloud-iot==2.9.0 google-cloud-pubsub==2.15.0 google-cloud-storage==2.7.0 diff --git a/samples/api-client/manager/requirements-test.txt b/samples/api-client/manager/requirements-test.txt index 805eb2a9..c021c5b5 100644 --- a/samples/api-client/manager/requirements-test.txt +++ b/samples/api-client/manager/requirements-test.txt @@ -1 +1 @@ -pytest==7.2.1 +pytest==7.2.2 diff --git a/samples/api-client/manager/requirements.txt b/samples/api-client/manager/requirements.txt index a5256f71..6e9bbfac 100644 --- a/samples/api-client/manager/requirements.txt +++ b/samples/api-client/manager/requirements.txt @@ -1,8 +1,8 @@ -cryptography==39.0.1 +cryptography==39.0.2 flaky==3.7.0 google-api-python-client==2.80.0 google-auth-httplib2==0.1.0 -google-auth==2.16.1 +google-auth==2.16.2 google-cloud-iot==2.9.0 google-cloud-pubsub==2.15.0 paho-mqtt==1.6.1 diff --git a/samples/api-client/mqtt_example/requirements-test.txt b/samples/api-client/mqtt_example/requirements-test.txt index 805eb2a9..c021c5b5 100644 --- a/samples/api-client/mqtt_example/requirements-test.txt +++ b/samples/api-client/mqtt_example/requirements-test.txt @@ -1 +1 @@ -pytest==7.2.1 +pytest==7.2.2 From 33923e3420ac63457b4e54343d6ee87a4c9bc5e3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 14 Mar 2023 17:38:50 -0400 Subject: [PATCH 4/8] chore: regenerate API index (#457) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: regenerate API index Source-Link: https://github.com/googleapis/googleapis/commit/40a03de111ea6b1d9a3aef0ed1127ffdb01d0601 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6c17328e9e1c2b58e9600722e8fc8cbe84600d7f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmMxNzMyOGU5ZTFjMmI1OGU5NjAwNzIyZThmYzhjYmU4NDYwMGQ3ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/iot_v1/services/device_manager/transports/rest.py | 6 ++++-- .../snippet_metadata_google.cloud.iot.v1.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/google/cloud/iot_v1/services/device_manager/transports/rest.py b/google/cloud/iot_v1/services/device_manager/transports/rest.py index fb28d2db..2e3d838a 100644 --- a/google/cloud/iot_v1/services/device_manager/transports/rest.py +++ b/google/cloud/iot_v1/services/device_manager/transports/rest.py @@ -1426,7 +1426,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -2170,7 +2171,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], diff --git a/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json index 941846d6..017afae4 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-iot", - "version": "2.9.0" + "version": "0.1.0" }, "snippets": [ { From c4868082c733c20e492e8203c4ce52def238f26d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 12:42:16 +0000 Subject: [PATCH 5/8] chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#458) Source-Link: https://togithub.com/googleapis/synthtool/commit/92006bb3cdc84677aa93c7f5235424ec2b157146 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/requirements.in | 2 +- .kokoro/requirements.txt | 14 +++++--------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5fc5daa3..b8edda51 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index 882178ce..ec867d9f 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -5,6 +5,6 @@ typing-extensions twine wheel setuptools -nox +nox>=2022.11.21 # required to remove dependency on py charset-normalizer<3 click<8.1.0 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index fa99c129..66a2172a 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in # @@ -335,9 +335,9 @@ more-itertools==9.0.0 \ --hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \ --hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab # via jaraco-classes -nox==2022.8.7 \ - --hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \ - --hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c +nox==2022.11.21 \ + --hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \ + --hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684 # via -r requirements.in packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ @@ -380,10 +380,6 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core -py==1.11.0 \ - --hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \ - --hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378 - # via nox pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba From 70bdacb12af5ad76f653f972800bed21fa083e78 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 17 Mar 2023 12:42:57 -0700 Subject: [PATCH 6/8] chore: Update gapic-generator-python to v1.9.0 (#459) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.9.0 PiperOrigin-RevId: 517425588 Source-Link: https://github.com/googleapis/googleapis/commit/33c93eb8b4d3aaf88e44a1be197811052be62282 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5f59789d19fc43270ff2124967d4ec8992b8e8f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDVmNTk3ODlkMTlmYzQzMjcwZmYyMTI0OTY3ZDRlYzg5OTJiOGU4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 80480257..bbc3efd4 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ "proto-plus >= 1.22.0, <2.0.0dev", "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'", "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", - "grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev", + "grpc-google-iam-v1 >= 0.12.4, <1.0.0dev", ] url = "https://github.com/googleapis/python-iot" From c97f63ed2c6bafee8037ff4091c2a2b6850770ed Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 23 Mar 2023 09:32:24 -0400 Subject: [PATCH 7/8] docs: Fix formatting of request arg in docstring (#460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Fix formatting of request arg in docstring chore: Update gapic-generator-python to v1.9.1 PiperOrigin-RevId: 518604533 Source-Link: https://github.com/googleapis/googleapis/commit/8a085aeddfa010af5bcef090827aac5255383d7e Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../services/device_manager/async_client.py | 44 ++++++++----------- .../iot_v1/services/device_manager/client.py | 44 ++++++++----------- 2 files changed, 38 insertions(+), 50 deletions(-) diff --git a/google/cloud/iot_v1/services/device_manager/async_client.py b/google/cloud/iot_v1/services/device_manager/async_client.py index 032754a8..66fe74b0 100644 --- a/google/cloud/iot_v1/services/device_manager/async_client.py +++ b/google/cloud/iot_v1/services/device_manager/async_client.py @@ -266,7 +266,7 @@ async def sample_create_device_registry(): Args: request (Optional[Union[google.cloud.iot_v1.types.CreateDeviceRegistryRequest, dict]]): - The request object. Request for `CreateDeviceRegistry`. + The request object. Request for ``CreateDeviceRegistry``. parent (:class:`str`): Required. The project and cloud region where this device registry must be created. For example, @@ -377,7 +377,7 @@ async def sample_get_device_registry(): Args: request (Optional[Union[google.cloud.iot_v1.types.GetDeviceRegistryRequest, dict]]): - The request object. Request for `GetDeviceRegistry`. + The request object. Request for ``GetDeviceRegistry``. name (:class:`str`): Required. The name of the device registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. @@ -488,7 +488,7 @@ async def sample_update_device_registry(): Args: request (Optional[Union[google.cloud.iot_v1.types.UpdateDeviceRegistryRequest, dict]]): - The request object. Request for `UpdateDeviceRegistry`. + The request object. Request for ``UpdateDeviceRegistry``. device_registry (:class:`google.cloud.iot_v1.types.DeviceRegistry`): Required. The new values for the device registry. The ``id`` field must be empty, and the ``name`` field must @@ -603,7 +603,7 @@ async def sample_delete_device_registry(): Args: request (Optional[Union[google.cloud.iot_v1.types.DeleteDeviceRegistryRequest, dict]]): - The request object. Request for `DeleteDeviceRegistry`. + The request object. Request for ``DeleteDeviceRegistry``. name (:class:`str`): Required. The name of the device registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. @@ -708,7 +708,7 @@ async def sample_list_device_registries(): Args: request (Optional[Union[google.cloud.iot_v1.types.ListDeviceRegistriesRequest, dict]]): - The request object. Request for `ListDeviceRegistries`. + The request object. Request for ``ListDeviceRegistries``. parent (:class:`str`): Required. The project and cloud region path. For example, @@ -832,7 +832,7 @@ async def sample_create_device(): Args: request (Optional[Union[google.cloud.iot_v1.types.CreateDeviceRequest, dict]]): - The request object. Request for `CreateDevice`. + The request object. Request for ``CreateDevice``. parent (:class:`str`): Required. The name of the device registry where this device should be created. For example, @@ -943,7 +943,7 @@ async def sample_get_device(): Args: request (Optional[Union[google.cloud.iot_v1.types.GetDeviceRequest, dict]]): - The request object. Request for `GetDevice`. + The request object. Request for ``GetDevice``. name (:class:`str`): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1054,7 +1054,7 @@ async def sample_update_device(): Args: request (Optional[Union[google.cloud.iot_v1.types.UpdateDeviceRequest, dict]]): - The request object. Request for `UpdateDevice`. + The request object. Request for ``UpdateDevice``. device (:class:`google.cloud.iot_v1.types.Device`): Required. The new values for the device. The ``id`` and ``num_id`` fields must be empty, and the field ``name`` @@ -1167,7 +1167,7 @@ async def sample_delete_device(): Args: request (Optional[Union[google.cloud.iot_v1.types.DeleteDeviceRequest, dict]]): - The request object. Request for `DeleteDevice`. + The request object. Request for ``DeleteDevice``. name (:class:`str`): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1272,7 +1272,7 @@ async def sample_list_devices(): Args: request (Optional[Union[google.cloud.iot_v1.types.ListDevicesRequest, dict]]): - The request object. Request for `ListDevices`. + The request object. Request for ``ListDevices``. parent (:class:`str`): Required. The device registry path. Required. For example, @@ -1401,8 +1401,7 @@ async def sample_modify_cloud_to_device_config(): Args: request (Optional[Union[google.cloud.iot_v1.types.ModifyCloudToDeviceConfigRequest, dict]]): - The request object. Request for - `ModifyCloudToDeviceConfig`. + The request object. Request for ``ModifyCloudToDeviceConfig``. name (:class:`str`): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1528,8 +1527,7 @@ async def sample_list_device_config_versions(): Args: request (Optional[Union[google.cloud.iot_v1.types.ListDeviceConfigVersionsRequest, dict]]): - The request object. Request for - `ListDeviceConfigVersions`. + The request object. Request for ``ListDeviceConfigVersions``. name (:class:`str`): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1641,7 +1639,7 @@ async def sample_list_device_states(): Args: request (Optional[Union[google.cloud.iot_v1.types.ListDeviceStatesRequest, dict]]): - The request object. Request for `ListDeviceStates`. + The request object. Request for ``ListDeviceStates``. name (:class:`str`): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1754,8 +1752,7 @@ async def sample_set_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being specified. See the @@ -1922,8 +1919,7 @@ async def sample_get_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being requested. See the @@ -2092,8 +2088,7 @@ async def sample_test_iam_permissions(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (:class:`str`): REQUIRED: The resource for which the policy detail is being requested. See @@ -2227,7 +2222,7 @@ async def sample_send_command_to_device(): Args: request (Optional[Union[google.cloud.iot_v1.types.SendCommandToDeviceRequest, dict]]): - The request object. Request for `SendCommandToDevice`. + The request object. Request for ``SendCommandToDevice``. name (:class:`str`): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -2372,7 +2367,7 @@ async def sample_bind_device_to_gateway(): Args: request (Optional[Union[google.cloud.iot_v1.types.BindDeviceToGatewayRequest, dict]]): - The request object. Request for `BindDeviceToGateway`. + The request object. Request for ``BindDeviceToGateway``. parent (:class:`str`): Required. The name of the registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. @@ -2497,8 +2492,7 @@ async def sample_unbind_device_from_gateway(): Args: request (Optional[Union[google.cloud.iot_v1.types.UnbindDeviceFromGatewayRequest, dict]]): - The request object. Request for - `UnbindDeviceFromGateway`. + The request object. Request for ``UnbindDeviceFromGateway``. parent (:class:`str`): Required. The name of the registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. diff --git a/google/cloud/iot_v1/services/device_manager/client.py b/google/cloud/iot_v1/services/device_manager/client.py index 5c9769ff..9922906c 100644 --- a/google/cloud/iot_v1/services/device_manager/client.py +++ b/google/cloud/iot_v1/services/device_manager/client.py @@ -515,7 +515,7 @@ def sample_create_device_registry(): Args: request (Union[google.cloud.iot_v1.types.CreateDeviceRegistryRequest, dict]): - The request object. Request for `CreateDeviceRegistry`. + The request object. Request for ``CreateDeviceRegistry``. parent (str): Required. The project and cloud region where this device registry must be created. For example, @@ -626,7 +626,7 @@ def sample_get_device_registry(): Args: request (Union[google.cloud.iot_v1.types.GetDeviceRegistryRequest, dict]): - The request object. Request for `GetDeviceRegistry`. + The request object. Request for ``GetDeviceRegistry``. name (str): Required. The name of the device registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. @@ -727,7 +727,7 @@ def sample_update_device_registry(): Args: request (Union[google.cloud.iot_v1.types.UpdateDeviceRegistryRequest, dict]): - The request object. Request for `UpdateDeviceRegistry`. + The request object. Request for ``UpdateDeviceRegistry``. device_registry (google.cloud.iot_v1.types.DeviceRegistry): Required. The new values for the device registry. The ``id`` field must be empty, and the ``name`` field must @@ -842,7 +842,7 @@ def sample_delete_device_registry(): Args: request (Union[google.cloud.iot_v1.types.DeleteDeviceRegistryRequest, dict]): - The request object. Request for `DeleteDeviceRegistry`. + The request object. Request for ``DeleteDeviceRegistry``. name (str): Required. The name of the device registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. @@ -937,7 +937,7 @@ def sample_list_device_registries(): Args: request (Union[google.cloud.iot_v1.types.ListDeviceRegistriesRequest, dict]): - The request object. Request for `ListDeviceRegistries`. + The request object. Request for ``ListDeviceRegistries``. parent (str): Required. The project and cloud region path. For example, @@ -1051,7 +1051,7 @@ def sample_create_device(): Args: request (Union[google.cloud.iot_v1.types.CreateDeviceRequest, dict]): - The request object. Request for `CreateDevice`. + The request object. Request for ``CreateDevice``. parent (str): Required. The name of the device registry where this device should be created. For example, @@ -1162,7 +1162,7 @@ def sample_get_device(): Args: request (Union[google.cloud.iot_v1.types.GetDeviceRequest, dict]): - The request object. Request for `GetDevice`. + The request object. Request for ``GetDevice``. name (str): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1263,7 +1263,7 @@ def sample_update_device(): Args: request (Union[google.cloud.iot_v1.types.UpdateDeviceRequest, dict]): - The request object. Request for `UpdateDevice`. + The request object. Request for ``UpdateDevice``. device (google.cloud.iot_v1.types.Device): Required. The new values for the device. The ``id`` and ``num_id`` fields must be empty, and the field ``name`` @@ -1376,7 +1376,7 @@ def sample_delete_device(): Args: request (Union[google.cloud.iot_v1.types.DeleteDeviceRequest, dict]): - The request object. Request for `DeleteDevice`. + The request object. Request for ``DeleteDevice``. name (str): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1471,7 +1471,7 @@ def sample_list_devices(): Args: request (Union[google.cloud.iot_v1.types.ListDevicesRequest, dict]): - The request object. Request for `ListDevices`. + The request object. Request for ``ListDevices``. parent (str): Required. The device registry path. Required. For example, @@ -1590,8 +1590,7 @@ def sample_modify_cloud_to_device_config(): Args: request (Union[google.cloud.iot_v1.types.ModifyCloudToDeviceConfigRequest, dict]): - The request object. Request for - `ModifyCloudToDeviceConfig`. + The request object. Request for ``ModifyCloudToDeviceConfig``. name (str): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1708,8 +1707,7 @@ def sample_list_device_config_versions(): Args: request (Union[google.cloud.iot_v1.types.ListDeviceConfigVersionsRequest, dict]): - The request object. Request for - `ListDeviceConfigVersions`. + The request object. Request for ``ListDeviceConfigVersions``. name (str): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1813,7 +1811,7 @@ def sample_list_device_states(): Args: request (Union[google.cloud.iot_v1.types.ListDeviceStatesRequest, dict]): - The request object. Request for `ListDeviceStates`. + The request object. Request for ``ListDeviceStates``. name (str): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -1916,8 +1914,7 @@ def sample_set_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being specified. See the @@ -2081,8 +2078,7 @@ def sample_get_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being requested. See the @@ -2248,8 +2244,7 @@ def sample_test_iam_permissions(): Args: request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (str): REQUIRED: The resource for which the policy detail is being requested. See @@ -2381,7 +2376,7 @@ def sample_send_command_to_device(): Args: request (Union[google.cloud.iot_v1.types.SendCommandToDeviceRequest, dict]): - The request object. Request for `SendCommandToDevice`. + The request object. Request for ``SendCommandToDevice``. name (str): Required. The name of the device. For example, ``projects/p0/locations/us-central1/registries/registry0/devices/device0`` @@ -2515,7 +2510,7 @@ def sample_bind_device_to_gateway(): Args: request (Union[google.cloud.iot_v1.types.BindDeviceToGatewayRequest, dict]): - The request object. Request for `BindDeviceToGateway`. + The request object. Request for ``BindDeviceToGateway``. parent (str): Required. The name of the registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. @@ -2640,8 +2635,7 @@ def sample_unbind_device_from_gateway(): Args: request (Union[google.cloud.iot_v1.types.UnbindDeviceFromGatewayRequest, dict]): - The request object. Request for - `UnbindDeviceFromGateway`. + The request object. Request for ``UnbindDeviceFromGateway``. parent (str): Required. The name of the registry. For example, ``projects/example-project/locations/us-central1/registries/my-registry``. From adf3ee91a656ad7a7eaf85802cfdbc5a88fc54f9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 10:41:28 -0400 Subject: [PATCH 8/8] chore(main): release 2.9.1 (#461) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ google/cloud/iot/gapic_version.py | 2 +- google/cloud/iot_v1/gapic_version.py | 2 +- .../snippet_metadata_google.cloud.iot.v1.json | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a3906fc0..bb18e556 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.9.0" + ".": "2.9.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index cf39bad2..191be484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-iot/#history +## [2.9.1](https://github.com/googleapis/python-iot/compare/v2.9.0...v2.9.1) (2023-03-23) + + +### Documentation + +* Fix formatting of request arg in docstring ([#460](https://github.com/googleapis/python-iot/issues/460)) ([c97f63e](https://github.com/googleapis/python-iot/commit/c97f63ed2c6bafee8037ff4091c2a2b6850770ed)) + ## [2.9.0](https://github.com/googleapis/python-iot/compare/v2.8.1...v2.9.0) (2023-02-28) diff --git a/google/cloud/iot/gapic_version.py b/google/cloud/iot/gapic_version.py index 60aeb18d..18081a7d 100644 --- a/google/cloud/iot/gapic_version.py +++ b/google/cloud/iot/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.9.0" # {x-release-please-version} +__version__ = "2.9.1" # {x-release-please-version} diff --git a/google/cloud/iot_v1/gapic_version.py b/google/cloud/iot_v1/gapic_version.py index 60aeb18d..18081a7d 100644 --- a/google/cloud/iot_v1/gapic_version.py +++ b/google/cloud/iot_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.9.0" # {x-release-please-version} +__version__ = "2.9.1" # {x-release-please-version} diff --git a/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json index 017afae4..39fa6454 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.iot.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-iot", - "version": "0.1.0" + "version": "2.9.1" }, "snippets": [ {