From 4edc16d3bed30559479295e6cbfd3aff987d09e3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 25 Jan 2023 13:16:58 -0500 Subject: [PATCH 1/8] chore: Update gapic-generator-python to v1.8.2 (#526) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.8.2 PiperOrigin-RevId: 504289125 Source-Link: https://github.com/googleapis/googleapis/commit/38a48a44a44279e9cf9f2f864b588958a2d87491 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2dc22663dbe47a972c8d8c2f8a4df013dafdcbc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJkYzIyNjYzZGJlNDdhOTcyYzhkOGMyZjhhNGRmMDEzZGFmZGNiYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- .coveragerc | 1 + google/cloud/monitoring_v3/__init__.py | 2 +- .../snippet_metadata_google.monitoring.v3.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 292fcda2..24d3b4a2 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,6 +5,7 @@ branch = True show_missing = True omit = google/cloud/monitoring/__init__.py + google/cloud/monitoring/gapic_version.py exclude_lines = # Re-enable the standard pragma pragma: NO COVER diff --git a/google/cloud/monitoring_v3/__init__.py b/google/cloud/monitoring_v3/__init__.py index b8386245..8d5521f1 100644 --- a/google/cloud/monitoring_v3/__init__.py +++ b/google/cloud/monitoring_v3/__init__.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -from google.cloud.monitoring import gapic_version as package_version +from google.cloud.monitoring_v3 import gapic_version as package_version __version__ = package_version.__version__ diff --git a/samples/generated_samples/snippet_metadata_google.monitoring.v3.json b/samples/generated_samples/snippet_metadata_google.monitoring.v3.json index dd8bae83..04888a5f 100644 --- a/samples/generated_samples/snippet_metadata_google.monitoring.v3.json +++ b/samples/generated_samples/snippet_metadata_google.monitoring.v3.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-monitoring", - "version": "2.14.1" + "version": "0.1.0" }, "snippets": [ { From b6c4db335667c648c93a78a3b020684b1bc8248f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 16:40:19 +0000 Subject: [PATCH 2/8] chore: fix prerelease_deps nox session [autoapprove] (#527) Source-Link: https://togithub.com/googleapis/synthtool/commit/26c7505b2f76981ec1707b851e1595c8c06e90fc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790 --- .github/.OwlBot.lock.yaml | 2 +- noxfile.py | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 889f77df..f0f3b24b 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:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 + digest: sha256:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790 diff --git a/noxfile.py b/noxfile.py index acb29ac3..606a7ac8 100644 --- a/noxfile.py +++ b/noxfile.py @@ -192,9 +192,9 @@ def unit(session): def install_systemtest_dependencies(session, *constraints): # Use pre-release gRPC for system tests. - # Exclude version 1.49.0rc1 which has a known issue. - # See https://github.com/grpc/grpc/pull/30642 - session.install("--pre", "grpcio!=1.49.0rc1") + # Exclude version 1.52.0rc1 which has a known issue. + # See https://github.com/grpc/grpc/issues/32163 + session.install("--pre", "grpcio!=1.52.0rc1") session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints) @@ -349,9 +349,7 @@ def prerelease_deps(session): unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES session.install(*unit_deps_all) system_deps_all = ( - SYSTEM_TEST_STANDARD_DEPENDENCIES - + SYSTEM_TEST_EXTERNAL_DEPENDENCIES - + SYSTEM_TEST_EXTRAS + SYSTEM_TEST_STANDARD_DEPENDENCIES + SYSTEM_TEST_EXTERNAL_DEPENDENCIES ) session.install(*system_deps_all) @@ -381,8 +379,8 @@ def prerelease_deps(session): # dependency of grpc "six", "googleapis-common-protos", - # Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642 - "grpcio!=1.49.0rc1", + # Exclude version 1.52.0rc1 which has a known issue. See https://github.com/grpc/grpc/issues/32163 + "grpcio!=1.52.0rc1", "grpcio-status", "google-api-core", "proto-plus", From e1566720e975a948aea22fd86fed9aa246bc514f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:16:24 +0000 Subject: [PATCH 3/8] build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gcp/templates/python_library/.kokoro (#531) Source-Link: https://togithub.com/googleapis/synthtool/commit/bb171351c3946d3c3c32e60f5f18cee8c464ec51 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/requirements.txt | 49 ++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f0f3b24b..894fb6bc 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:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790 + digest: sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 05dc4672..096e4800 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -113,33 +113,28 @@ commonmark==0.9.1 \ --hash=sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \ --hash=sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9 # via rich -cryptography==38.0.3 \ - --hash=sha256:068147f32fa662c81aebab95c74679b401b12b57494872886eb5c1139250ec5d \ - --hash=sha256:06fc3cc7b6f6cca87bd56ec80a580c88f1da5306f505876a71c8cfa7050257dd \ - --hash=sha256:25c1d1f19729fb09d42e06b4bf9895212292cb27bb50229f5aa64d039ab29146 \ - --hash=sha256:402852a0aea73833d982cabb6d0c3bb582c15483d29fb7085ef2c42bfa7e38d7 \ - --hash=sha256:4e269dcd9b102c5a3d72be3c45d8ce20377b8076a43cbed6f660a1afe365e436 \ - --hash=sha256:5419a127426084933076132d317911e3c6eb77568a1ce23c3ac1e12d111e61e0 \ - --hash=sha256:554bec92ee7d1e9d10ded2f7e92a5d70c1f74ba9524947c0ba0c850c7b011828 \ - --hash=sha256:5e89468fbd2fcd733b5899333bc54d0d06c80e04cd23d8c6f3e0542358c6060b \ - --hash=sha256:65535bc550b70bd6271984d9863a37741352b4aad6fb1b3344a54e6950249b55 \ - --hash=sha256:6ab9516b85bebe7aa83f309bacc5f44a61eeb90d0b4ec125d2d003ce41932d36 \ - --hash=sha256:6addc3b6d593cd980989261dc1cce38263c76954d758c3c94de51f1e010c9a50 \ - --hash=sha256:728f2694fa743a996d7784a6194da430f197d5c58e2f4e278612b359f455e4a2 \ - --hash=sha256:785e4056b5a8b28f05a533fab69febf5004458e20dad7e2e13a3120d8ecec75a \ - --hash=sha256:78cf5eefac2b52c10398a42765bfa981ce2372cbc0457e6bf9658f41ec3c41d8 \ - --hash=sha256:7f836217000342d448e1c9a342e9163149e45d5b5eca76a30e84503a5a96cab0 \ - --hash=sha256:8d41a46251bf0634e21fac50ffd643216ccecfaf3701a063257fe0b2be1b6548 \ - --hash=sha256:984fe150f350a3c91e84de405fe49e688aa6092b3525f407a18b9646f6612320 \ - --hash=sha256:9b24bcff7853ed18a63cfb0c2b008936a9554af24af2fb146e16d8e1aed75748 \ - --hash=sha256:b1b35d9d3a65542ed2e9d90115dfd16bbc027b3f07ee3304fc83580f26e43249 \ - --hash=sha256:b1b52c9e5f8aa2b802d48bd693190341fae201ea51c7a167d69fc48b60e8a959 \ - --hash=sha256:bbf203f1a814007ce24bd4d51362991d5cb90ba0c177a9c08825f2cc304d871f \ - --hash=sha256:be243c7e2bfcf6cc4cb350c0d5cdf15ca6383bbcb2a8ef51d3c9411a9d4386f0 \ - --hash=sha256:bfbe6ee19615b07a98b1d2287d6a6073f734735b49ee45b11324d85efc4d5cbd \ - --hash=sha256:c46837ea467ed1efea562bbeb543994c2d1f6e800785bd5a2c98bc096f5cb220 \ - --hash=sha256:dfb4f4dd568de1b6af9f4cda334adf7d72cf5bc052516e1b2608b683375dd95c \ - --hash=sha256:ed7b00096790213e09eb11c97cc6e2b757f15f3d2f85833cd2d3ec3fe37c1722 +cryptography==39.0.1 \ + --hash=sha256:0f8da300b5c8af9f98111ffd512910bc792b4c77392a9523624680f7956a99d4 \ + --hash=sha256:35f7c7d015d474f4011e859e93e789c87d21f6f4880ebdc29896a60403328f1f \ + --hash=sha256:5aa67414fcdfa22cf052e640cb5ddc461924a045cacf325cd164e65312d99502 \ + --hash=sha256:5d2d8b87a490bfcd407ed9d49093793d0f75198a35e6eb1a923ce1ee86c62b41 \ + --hash=sha256:6687ef6d0a6497e2b58e7c5b852b53f62142cfa7cd1555795758934da363a965 \ + --hash=sha256:6f8ba7f0328b79f08bdacc3e4e66fb4d7aab0c3584e0bd41328dce5262e26b2e \ + --hash=sha256:706843b48f9a3f9b9911979761c91541e3d90db1ca905fd63fee540a217698bc \ + --hash=sha256:807ce09d4434881ca3a7594733669bd834f5b2c6d5c7e36f8c00f691887042ad \ + --hash=sha256:83e17b26de248c33f3acffb922748151d71827d6021d98c70e6c1a25ddd78505 \ + --hash=sha256:96f1157a7c08b5b189b16b47bc9db2332269d6680a196341bf30046330d15388 \ + --hash=sha256:aec5a6c9864be7df2240c382740fcf3b96928c46604eaa7f3091f58b878c0bb6 \ + --hash=sha256:b0afd054cd42f3d213bf82c629efb1ee5f22eba35bf0eec88ea9ea7304f511a2 \ + --hash=sha256:ced4e447ae29ca194449a3f1ce132ded8fcab06971ef5f618605aacaa612beac \ + --hash=sha256:d1f6198ee6d9148405e49887803907fe8962a23e6c6f83ea7d98f1c0de375695 \ + --hash=sha256:e124352fd3db36a9d4a21c1aa27fd5d051e621845cb87fb851c08f4f75ce8be6 \ + --hash=sha256:e422abdec8b5fa8462aa016786680720d78bdce7a30c652b7fadf83a4ba35336 \ + --hash=sha256:ef8b72fa70b348724ff1218267e7f7375b8de4e8194d1636ee60510aae104cd0 \ + --hash=sha256:f0c64d1bd842ca2633e74a1a28033d139368ad959872533b1bab8c80e8240a0c \ + --hash=sha256:f24077a3b5298a5a06a8e0536e3ea9ec60e4c7ac486755e5fb6e6ea9b3500106 \ + --hash=sha256:fdd188c8a6ef8769f148f88f859884507b954cc64db6b52f66ef199bb9ad660a \ + --hash=sha256:fe913f20024eb2cb2f323e42a64bdf2911bb9738a15dba7d3cce48151034e3a8 # via # gcp-releasetool # secretstorage From 27ceb109462c6f2cbc2f59c946b34f232ea04312 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Feb 2023 12:15:12 -0500 Subject: [PATCH 4/8] chore(python): upgrade gcp-releasetool in .kokoro [autoapprove] (#533) Source-Link: https://github.com/googleapis/synthtool/commit/5f2a6089f73abf06238fe4310f6a14d6f6d1eed3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/requirements.in | 2 +- .kokoro/requirements.txt | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 894fb6bc..5fc5daa3 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:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf + digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cbd7e77f..882178ce 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -1,5 +1,5 @@ gcp-docuploader -gcp-releasetool +gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x importlib-metadata typing-extensions twine diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 096e4800..fa99c129 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -154,9 +154,9 @@ gcp-docuploader==0.6.4 \ --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in -gcp-releasetool==1.10.0 \ - --hash=sha256:72a38ca91b59c24f7e699e9227c90cbe4dd71b789383cb0164b088abae294c83 \ - --hash=sha256:8c7c99320208383d4bb2b808c6880eb7a81424afe7cdba3c8d84b25f4f0e097d +gcp-releasetool==1.10.5 \ + --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ + --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 # via -r requirements.in google-api-core==2.10.2 \ --hash=sha256:10c06f7739fe57781f87523375e8e1a3a4674bf6392cd6131a3222182b971320 \ From b1c768ba5bb82caea7f6e761ba07843c864ac3a8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Feb 2023 06:07:06 -0500 Subject: [PATCH 5/8] chore: Update gapic-generator-python to v1.8.5 (#532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: https://github.com/googleapis/googleapis/commit/a45d9c09c1287ffdf938f4e8083e791046c0b23b Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert --------- Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- google/cloud/monitoring_v3/types/alert.py | 2 ++ google/cloud/monitoring_v3/types/alert_service.py | 2 ++ google/cloud/monitoring_v3/types/common.py | 2 ++ google/cloud/monitoring_v3/types/dropped_labels.py | 2 ++ google/cloud/monitoring_v3/types/group.py | 2 ++ google/cloud/monitoring_v3/types/group_service.py | 2 ++ google/cloud/monitoring_v3/types/metric.py | 2 ++ google/cloud/monitoring_v3/types/metric_service.py | 2 ++ google/cloud/monitoring_v3/types/mutation_record.py | 2 ++ google/cloud/monitoring_v3/types/notification.py | 2 ++ google/cloud/monitoring_v3/types/notification_service.py | 2 ++ google/cloud/monitoring_v3/types/query_service.py | 1 + google/cloud/monitoring_v3/types/service.py | 2 ++ google/cloud/monitoring_v3/types/service_service.py | 2 ++ google/cloud/monitoring_v3/types/snooze.py | 2 ++ google/cloud/monitoring_v3/types/snooze_service.py | 2 ++ google/cloud/monitoring_v3/types/span_context.py | 2 ++ google/cloud/monitoring_v3/types/uptime.py | 2 ++ google/cloud/monitoring_v3/types/uptime_service.py | 2 ++ 19 files changed, 37 insertions(+) diff --git a/google/cloud/monitoring_v3/types/alert.py b/google/cloud/monitoring_v3/types/alert.py index 1cd02153..9c969586 100644 --- a/google/cloud/monitoring_v3/types/alert.py +++ b/google/cloud/monitoring_v3/types/alert.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/alert_service.py b/google/cloud/monitoring_v3/types/alert_service.py index bc92e77e..9f634c85 100644 --- a/google/cloud/monitoring_v3/types/alert_service.py +++ b/google/cloud/monitoring_v3/types/alert_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/common.py b/google/cloud/monitoring_v3/types/common.py index e3636820..fa6715b6 100644 --- a/google/cloud/monitoring_v3/types/common.py +++ b/google/cloud/monitoring_v3/types/common.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/dropped_labels.py b/google/cloud/monitoring_v3/types/dropped_labels.py index 8c35da2d..460d8b3f 100644 --- a/google/cloud/monitoring_v3/types/dropped_labels.py +++ b/google/cloud/monitoring_v3/types/dropped_labels.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/group.py b/google/cloud/monitoring_v3/types/group.py index 27136380..bd09098c 100644 --- a/google/cloud/monitoring_v3/types/group.py +++ b/google/cloud/monitoring_v3/types/group.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/group_service.py b/google/cloud/monitoring_v3/types/group_service.py index c7551099..0305beec 100644 --- a/google/cloud/monitoring_v3/types/group_service.py +++ b/google/cloud/monitoring_v3/types/group_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/metric.py b/google/cloud/monitoring_v3/types/metric.py index 50690db7..0fe120fb 100644 --- a/google/cloud/monitoring_v3/types/metric.py +++ b/google/cloud/monitoring_v3/types/metric.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/metric_service.py b/google/cloud/monitoring_v3/types/metric_service.py index dfdbac61..e7d49919 100644 --- a/google/cloud/monitoring_v3/types/metric_service.py +++ b/google/cloud/monitoring_v3/types/metric_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/mutation_record.py b/google/cloud/monitoring_v3/types/mutation_record.py index 1a56ac68..faf306d0 100644 --- a/google/cloud/monitoring_v3/types/mutation_record.py +++ b/google/cloud/monitoring_v3/types/mutation_record.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/notification.py b/google/cloud/monitoring_v3/types/notification.py index f3b5bf50..c283cd3a 100644 --- a/google/cloud/monitoring_v3/types/notification.py +++ b/google/cloud/monitoring_v3/types/notification.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/notification_service.py b/google/cloud/monitoring_v3/types/notification_service.py index 29cc64a1..1bbe4c19 100644 --- a/google/cloud/monitoring_v3/types/notification_service.py +++ b/google/cloud/monitoring_v3/types/notification_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/query_service.py b/google/cloud/monitoring_v3/types/query_service.py index f8dea358..6fea046e 100644 --- a/google/cloud/monitoring_v3/types/query_service.py +++ b/google/cloud/monitoring_v3/types/query_service.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +import proto # type: ignore __protobuf__ = proto.module( diff --git a/google/cloud/monitoring_v3/types/service.py b/google/cloud/monitoring_v3/types/service.py index fc80b402..51a0282d 100644 --- a/google/cloud/monitoring_v3/types/service.py +++ b/google/cloud/monitoring_v3/types/service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/service_service.py b/google/cloud/monitoring_v3/types/service_service.py index b86a0cfe..5e04832f 100644 --- a/google/cloud/monitoring_v3/types/service_service.py +++ b/google/cloud/monitoring_v3/types/service_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/snooze.py b/google/cloud/monitoring_v3/types/snooze.py index eb5fd012..58ae9fd8 100644 --- a/google/cloud/monitoring_v3/types/snooze.py +++ b/google/cloud/monitoring_v3/types/snooze.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/snooze_service.py b/google/cloud/monitoring_v3/types/snooze_service.py index be0cc021..7cba4953 100644 --- a/google/cloud/monitoring_v3/types/snooze_service.py +++ b/google/cloud/monitoring_v3/types/snooze_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/span_context.py b/google/cloud/monitoring_v3/types/span_context.py index 173bbf0f..77601b3c 100644 --- a/google/cloud/monitoring_v3/types/span_context.py +++ b/google/cloud/monitoring_v3/types/span_context.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/uptime.py b/google/cloud/monitoring_v3/types/uptime.py index 088dee08..1adf77af 100644 --- a/google/cloud/monitoring_v3/types/uptime.py +++ b/google/cloud/monitoring_v3/types/uptime.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/monitoring_v3/types/uptime_service.py b/google/cloud/monitoring_v3/types/uptime_service.py index e433b8df..11e44bb6 100644 --- a/google/cloud/monitoring_v3/types/uptime_service.py +++ b/google/cloud/monitoring_v3/types/uptime_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore From 8a08d7493a0d9e0111d3eb6bf7ee4265599cef32 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 08:31:38 -0400 Subject: [PATCH 6/8] chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#534) Source-Link: https://github.com/googleapis/synthtool/commit/92006bb3cdc84677aa93c7f5235424ec2b157146 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 Co-authored-by: Owl Bot --- .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 e10167f5d0def6fd6707fc8bda56a2cfe6a47eac 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:38:51 -0400 Subject: [PATCH 7/8] docs: Fix formatting of request arg in docstring (#535) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added overrides_by_request_protocol to backend.proto feat: added field proto_reference_documentation_uri to proto reference documentation. feat: added SERVICE_NOT_VISIBLE and GCP_SUSPENDED into error reason PiperOrigin-RevId: 517437454 Source-Link: https://github.com/googleapis/googleapis/commit/ecb1cf0a0021267dd452289fc71c75674ae29fe3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8731b8fd2044a93c32309d633dfc2e836bf13cbf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODczMWI4ZmQyMDQ0YTkzYzMyMzA5ZDYzM2RmYzJlODM2YmYxM2NiZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 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 --- .../alert_policy_service/async_client.py | 15 +++---- .../services/alert_policy_service/client.py | 15 +++---- .../services/group_service/async_client.py | 16 +++---- .../services/group_service/client.py | 16 +++---- .../services/metric_service/async_client.py | 36 +++++++-------- .../services/metric_service/client.py | 36 +++++++-------- .../async_client.py | 30 +++++-------- .../notification_channel_service/client.py | 30 +++++-------- .../services/query_service/async_client.py | 2 +- .../services/query_service/client.py | 2 +- .../async_client.py | 25 +++++------ .../service_monitoring_service/client.py | 25 +++++------ .../services/snooze_service/async_client.py | 45 ++++++++++--------- .../services/snooze_service/client.py | 45 ++++++++++--------- .../uptime_check_service/async_client.py | 21 ++++----- .../services/uptime_check_service/client.py | 21 ++++----- 16 files changed, 166 insertions(+), 214 deletions(-) diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/async_client.py b/google/cloud/monitoring_v3/services/alert_policy_service/async_client.py index b3427eaf..e5797399 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/async_client.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/async_client.py @@ -277,8 +277,7 @@ async def sample_list_alert_policies(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListAlertPoliciesRequest, dict]]): - The request object. The protocol for the - `ListAlertPolicies` request. + The request object. The protocol for the ``ListAlertPolicies`` request. name (:class:`str`): Required. The `project `__ @@ -410,8 +409,7 @@ async def sample_get_alert_policy(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetAlertPolicyRequest, dict]]): - The request object. The protocol for the - `GetAlertPolicy` request. + The request object. The protocol for the ``GetAlertPolicy`` request. name (:class:`str`): Required. The alerting policy to retrieve. The format is: @@ -529,8 +527,7 @@ async def sample_create_alert_policy(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateAlertPolicyRequest, dict]]): - The request object. The protocol for the - `CreateAlertPolicy` request. + The request object. The protocol for the ``CreateAlertPolicy`` request. name (:class:`str`): Required. The `project `__ @@ -657,8 +654,7 @@ async def sample_delete_alert_policy(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteAlertPolicyRequest, dict]]): - The request object. The protocol for the - `DeleteAlertPolicy` request. + The request object. The protocol for the ``DeleteAlertPolicy`` request. name (:class:`str`): Required. The alerting policy to delete. The format is: @@ -768,8 +764,7 @@ async def sample_update_alert_policy(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateAlertPolicyRequest, dict]]): - The request object. The protocol for the - `UpdateAlertPolicy` request. + The request object. The protocol for the ``UpdateAlertPolicy`` request. update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): Optional. A list of alerting policy field names. If this field is not empty, each listed field in the existing diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/client.py b/google/cloud/monitoring_v3/services/alert_policy_service/client.py index 50a992f0..6a529842 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/client.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/client.py @@ -514,8 +514,7 @@ def sample_list_alert_policies(): Args: request (Union[google.cloud.monitoring_v3.types.ListAlertPoliciesRequest, dict]): - The request object. The protocol for the - `ListAlertPolicies` request. + The request object. The protocol for the ``ListAlertPolicies`` request. name (str): Required. The `project `__ @@ -638,8 +637,7 @@ def sample_get_alert_policy(): Args: request (Union[google.cloud.monitoring_v3.types.GetAlertPolicyRequest, dict]): - The request object. The protocol for the - `GetAlertPolicy` request. + The request object. The protocol for the ``GetAlertPolicy`` request. name (str): Required. The alerting policy to retrieve. The format is: @@ -748,8 +746,7 @@ def sample_create_alert_policy(): Args: request (Union[google.cloud.monitoring_v3.types.CreateAlertPolicyRequest, dict]): - The request object. The protocol for the - `CreateAlertPolicy` request. + The request object. The protocol for the ``CreateAlertPolicy`` request. name (str): Required. The `project `__ @@ -876,8 +873,7 @@ def sample_delete_alert_policy(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteAlertPolicyRequest, dict]): - The request object. The protocol for the - `DeleteAlertPolicy` request. + The request object. The protocol for the ``DeleteAlertPolicy`` request. name (str): Required. The alerting policy to delete. The format is: @@ -978,8 +974,7 @@ def sample_update_alert_policy(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateAlertPolicyRequest, dict]): - The request object. The protocol for the - `UpdateAlertPolicy` request. + The request object. The protocol for the ``UpdateAlertPolicy`` request. update_mask (google.protobuf.field_mask_pb2.FieldMask): Optional. A list of alerting policy field names. If this field is not empty, each listed field in the existing diff --git a/google/cloud/monitoring_v3/services/group_service/async_client.py b/google/cloud/monitoring_v3/services/group_service/async_client.py index 059d4240..2ba10c31 100644 --- a/google/cloud/monitoring_v3/services/group_service/async_client.py +++ b/google/cloud/monitoring_v3/services/group_service/async_client.py @@ -265,7 +265,7 @@ async def sample_list_groups(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListGroupsRequest, dict]]): - The request object. The `ListGroup` request. + The request object. The ``ListGroup`` request. name (:class:`str`): Required. The `project `__ @@ -391,7 +391,7 @@ async def sample_get_group(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetGroupRequest, dict]]): - The request object. The `GetGroup` request. + The request object. The ``GetGroup`` request. name (:class:`str`): Required. The group to retrieve. The format is: @@ -536,7 +536,7 @@ async def sample_create_group(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateGroupRequest, dict]]): - The request object. The `CreateGroup` request. + The request object. The ``CreateGroup`` request. name (:class:`str`): Required. The `project `__ @@ -682,7 +682,7 @@ async def sample_update_group(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateGroupRequest, dict]]): - The request object. The `UpdateGroup` request. + The request object. The ``UpdateGroup`` request. group (:class:`google.cloud.monitoring_v3.types.Group`): Required. The new definition of the group. All fields of the existing group, excepting ``name``, are replaced @@ -823,9 +823,9 @@ async def sample_delete_group(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteGroupRequest, dict]]): - The request object. The `DeleteGroup` request. The - default behavior is to be able to delete a single group - without any descendants. + The request object. The ``DeleteGroup`` request. The default behavior is to + be able to delete a single group without any + descendants. name (:class:`str`): Required. The group to delete. The format is: @@ -931,7 +931,7 @@ async def sample_list_group_members(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListGroupMembersRequest, dict]]): - The request object. The `ListGroupMembers` request. + The request object. The ``ListGroupMembers`` request. name (:class:`str`): Required. The group whose members are listed. The format is: diff --git a/google/cloud/monitoring_v3/services/group_service/client.py b/google/cloud/monitoring_v3/services/group_service/client.py index fa85d311..a1105029 100644 --- a/google/cloud/monitoring_v3/services/group_service/client.py +++ b/google/cloud/monitoring_v3/services/group_service/client.py @@ -489,7 +489,7 @@ def sample_list_groups(): Args: request (Union[google.cloud.monitoring_v3.types.ListGroupsRequest, dict]): - The request object. The `ListGroup` request. + The request object. The ``ListGroup`` request. name (str): Required. The `project `__ @@ -606,7 +606,7 @@ def sample_get_group(): Args: request (Union[google.cloud.monitoring_v3.types.GetGroupRequest, dict]): - The request object. The `GetGroup` request. + The request object. The ``GetGroup`` request. name (str): Required. The group to retrieve. The format is: @@ -742,7 +742,7 @@ def sample_create_group(): Args: request (Union[google.cloud.monitoring_v3.types.CreateGroupRequest, dict]): - The request object. The `CreateGroup` request. + The request object. The ``CreateGroup`` request. name (str): Required. The `project `__ @@ -888,7 +888,7 @@ def sample_update_group(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateGroupRequest, dict]): - The request object. The `UpdateGroup` request. + The request object. The ``UpdateGroup`` request. group (google.cloud.monitoring_v3.types.Group): Required. The new definition of the group. All fields of the existing group, excepting ``name``, are replaced @@ -1020,9 +1020,9 @@ def sample_delete_group(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteGroupRequest, dict]): - The request object. The `DeleteGroup` request. The - default behavior is to be able to delete a single group - without any descendants. + The request object. The ``DeleteGroup`` request. The default behavior is to + be able to delete a single group without any + descendants. name (str): Required. The group to delete. The format is: @@ -1119,7 +1119,7 @@ def sample_list_group_members(): Args: request (Union[google.cloud.monitoring_v3.types.ListGroupMembersRequest, dict]): - The request object. The `ListGroupMembers` request. + The request object. The ``ListGroupMembers`` request. name (str): Required. The group whose members are listed. The format is: diff --git a/google/cloud/monitoring_v3/services/metric_service/async_client.py b/google/cloud/monitoring_v3/services/metric_service/async_client.py index ff05149f..8588bcef 100644 --- a/google/cloud/monitoring_v3/services/metric_service/async_client.py +++ b/google/cloud/monitoring_v3/services/metric_service/async_client.py @@ -272,8 +272,7 @@ async def sample_list_monitored_resource_descriptors(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListMonitoredResourceDescriptorsRequest, dict]]): - The request object. The - `ListMonitoredResourceDescriptors` request. + The request object. The ``ListMonitoredResourceDescriptors`` request. name (:class:`str`): Required. The `project `__ @@ -402,8 +401,7 @@ async def sample_get_monitored_resource_descriptor(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetMonitoredResourceDescriptorRequest, dict]]): - The request object. The `GetMonitoredResourceDescriptor` - request. + The request object. The ``GetMonitoredResourceDescriptor`` request. name (:class:`str`): Required. The monitored resource descriptor to get. The format is: @@ -426,12 +424,14 @@ async def sample_get_monitored_resource_descriptor(): Returns: google.api.monitored_resource_pb2.MonitoredResourceDescriptor: - An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a - type name and a set of labels. For example, the - monitored resource descriptor for Google Compute - Engine VM instances has a type of "gce_instance" and - specifies the use of the labels "instance_id" and - "zone" to identify particular VM instances. + An object that describes the schema of a + [MonitoredResource][google.api.MonitoredResource] + object using a type name and a set of labels. For + example, the monitored resource descriptor for Google + Compute Engine VM instances has a type of + "gce_instance" and specifies the use of the labels + "instance_id" and "zone" to identify particular VM + instances. Different APIs can support different monitored resource types. APIs generally provide a list method @@ -533,7 +533,7 @@ async def sample_list_metric_descriptors(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListMetricDescriptorsRequest, dict]]): - The request object. The `ListMetricDescriptors` request. + The request object. The ``ListMetricDescriptors`` request. name (:class:`str`): Required. The `project `__ @@ -662,7 +662,7 @@ async def sample_get_metric_descriptor(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetMetricDescriptorRequest, dict]]): - The request object. The `GetMetricDescriptor` request. + The request object. The ``GetMetricDescriptor`` request. name (:class:`str`): Required. The metric descriptor on which to execute the request. The format is: @@ -789,8 +789,7 @@ async def sample_create_metric_descriptor(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateMetricDescriptorRequest, dict]]): - The request object. The `CreateMetricDescriptor` - request. + The request object. The ``CreateMetricDescriptor`` request. name (:class:`str`): Required. The `project `__ @@ -907,8 +906,7 @@ async def sample_delete_metric_descriptor(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteMetricDescriptorRequest, dict]]): - The request object. The `DeleteMetricDescriptor` - request. + The request object. The ``DeleteMetricDescriptor`` request. name (:class:`str`): Required. The metric descriptor on which to execute the request. The format is: @@ -1023,7 +1021,7 @@ async def sample_list_time_series(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListTimeSeriesRequest, dict]]): - The request object. The `ListTimeSeries` request. + The request object. The ``ListTimeSeries`` request. name (:class:`str`): Required. The `project `__, @@ -1193,7 +1191,7 @@ async def sample_create_time_series(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateTimeSeriesRequest, dict]]): - The request object. The `CreateTimeSeries` request. + The request object. The ``CreateTimeSeries`` request. name (:class:`str`): Required. The `project `__ @@ -1313,7 +1311,7 @@ async def sample_create_service_time_series(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateTimeSeriesRequest, dict]]): - The request object. The `CreateTimeSeries` request. + The request object. The ``CreateTimeSeries`` request. name (:class:`str`): Required. The `project `__ diff --git a/google/cloud/monitoring_v3/services/metric_service/client.py b/google/cloud/monitoring_v3/services/metric_service/client.py index 0d40b09c..1158352e 100644 --- a/google/cloud/monitoring_v3/services/metric_service/client.py +++ b/google/cloud/monitoring_v3/services/metric_service/client.py @@ -517,8 +517,7 @@ def sample_list_monitored_resource_descriptors(): Args: request (Union[google.cloud.monitoring_v3.types.ListMonitoredResourceDescriptorsRequest, dict]): - The request object. The - `ListMonitoredResourceDescriptors` request. + The request object. The ``ListMonitoredResourceDescriptors`` request. name (str): Required. The `project `__ @@ -642,8 +641,7 @@ def sample_get_monitored_resource_descriptor(): Args: request (Union[google.cloud.monitoring_v3.types.GetMonitoredResourceDescriptorRequest, dict]): - The request object. The `GetMonitoredResourceDescriptor` - request. + The request object. The ``GetMonitoredResourceDescriptor`` request. name (str): Required. The monitored resource descriptor to get. The format is: @@ -666,12 +664,14 @@ def sample_get_monitored_resource_descriptor(): Returns: google.api.monitored_resource_pb2.MonitoredResourceDescriptor: - An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a - type name and a set of labels. For example, the - monitored resource descriptor for Google Compute - Engine VM instances has a type of "gce_instance" and - specifies the use of the labels "instance_id" and - "zone" to identify particular VM instances. + An object that describes the schema of a + [MonitoredResource][google.api.MonitoredResource] + object using a type name and a set of labels. For + example, the monitored resource descriptor for Google + Compute Engine VM instances has a type of + "gce_instance" and specifies the use of the labels + "instance_id" and "zone" to identify particular VM + instances. Different APIs can support different monitored resource types. APIs generally provide a list method @@ -768,7 +768,7 @@ def sample_list_metric_descriptors(): Args: request (Union[google.cloud.monitoring_v3.types.ListMetricDescriptorsRequest, dict]): - The request object. The `ListMetricDescriptors` request. + The request object. The ``ListMetricDescriptors`` request. name (str): Required. The `project `__ @@ -888,7 +888,7 @@ def sample_get_metric_descriptor(): Args: request (Union[google.cloud.monitoring_v3.types.GetMetricDescriptorRequest, dict]): - The request object. The `GetMetricDescriptor` request. + The request object. The ``GetMetricDescriptor`` request. name (str): Required. The metric descriptor on which to execute the request. The format is: @@ -1006,8 +1006,7 @@ def sample_create_metric_descriptor(): Args: request (Union[google.cloud.monitoring_v3.types.CreateMetricDescriptorRequest, dict]): - The request object. The `CreateMetricDescriptor` - request. + The request object. The ``CreateMetricDescriptor`` request. name (str): Required. The `project `__ @@ -1124,8 +1123,7 @@ def sample_delete_metric_descriptor(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteMetricDescriptorRequest, dict]): - The request object. The `DeleteMetricDescriptor` - request. + The request object. The ``DeleteMetricDescriptor`` request. name (str): Required. The metric descriptor on which to execute the request. The format is: @@ -1231,7 +1229,7 @@ def sample_list_time_series(): Args: request (Union[google.cloud.monitoring_v3.types.ListTimeSeriesRequest, dict]): - The request object. The `ListTimeSeries` request. + The request object. The ``ListTimeSeries`` request. name (str): Required. The `project `__, @@ -1392,7 +1390,7 @@ def sample_create_time_series(): Args: request (Union[google.cloud.monitoring_v3.types.CreateTimeSeriesRequest, dict]): - The request object. The `CreateTimeSeries` request. + The request object. The ``CreateTimeSeries`` request. name (str): Required. The `project `__ @@ -1512,7 +1510,7 @@ def sample_create_service_time_series(): Args: request (Union[google.cloud.monitoring_v3.types.CreateTimeSeriesRequest, dict]): - The request object. The `CreateTimeSeries` request. + The request object. The ``CreateTimeSeries`` request. name (str): Required. The `project `__ diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/async_client.py b/google/cloud/monitoring_v3/services/notification_channel_service/async_client.py index 2459d53e..7c7bc7f9 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/async_client.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/async_client.py @@ -284,8 +284,7 @@ async def sample_list_notification_channel_descriptors(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListNotificationChannelDescriptorsRequest, dict]]): - The request object. The - `ListNotificationChannelDescriptors` request. + The request object. The ``ListNotificationChannelDescriptors`` request. name (:class:`str`): Required. The REST resource name of the parent from which to retrieve the notification channel descriptors. @@ -425,8 +424,7 @@ async def sample_get_notification_channel_descriptor(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetNotificationChannelDescriptorRequest, dict]]): - The request object. The - `GetNotificationChannelDescriptor` response. + The request object. The ``GetNotificationChannelDescriptor`` response. name (:class:`str`): Required. The channel type for which to execute the request. The format is: @@ -547,8 +545,7 @@ async def sample_list_notification_channels(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListNotificationChannelsRequest, dict]]): - The request object. The `ListNotificationChannels` - request. + The request object. The ``ListNotificationChannels`` request. name (:class:`str`): Required. The `project `__ @@ -689,8 +686,7 @@ async def sample_get_notification_channel(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetNotificationChannelRequest, dict]]): - The request object. The `GetNotificationChannel` - request. + The request object. The ``GetNotificationChannel`` request. name (:class:`str`): Required. The channel for which to execute the request. The format is: @@ -814,8 +810,7 @@ async def sample_create_notification_channel(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateNotificationChannelRequest, dict]]): - The request object. The `CreateNotificationChannel` - request. + The request object. The ``CreateNotificationChannel`` request. name (:class:`str`): Required. The `project `__ @@ -945,8 +940,7 @@ async def sample_update_notification_channel(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateNotificationChannelRequest, dict]]): - The request object. The `UpdateNotificationChannel` - request. + The request object. The ``UpdateNotificationChannel`` request. update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): The fields to update. This corresponds to the ``update_mask`` field @@ -1064,8 +1058,7 @@ async def sample_delete_notification_channel(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteNotificationChannelRequest, dict]]): - The request object. The `DeleteNotificationChannel` - request. + The request object. The ``DeleteNotificationChannel`` request. name (:class:`str`): Required. The channel for which to execute the request. The format is: @@ -1189,8 +1182,7 @@ async def sample_send_notification_channel_verification_code(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.SendNotificationChannelVerificationCodeRequest, dict]]): - The request object. The - `SendNotificationChannelVerificationCode` request. + The request object. The ``SendNotificationChannelVerificationCode`` request. name (:class:`str`): Required. The notification channel to which to send a verification code. @@ -1315,8 +1307,7 @@ async def sample_get_notification_channel_verification_code(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetNotificationChannelVerificationCodeRequest, dict]]): - The request object. The - `GetNotificationChannelVerificationCode` request. + The request object. The ``GetNotificationChannelVerificationCode`` request. name (:class:`str`): Required. The notification channel for which a verification code is to be @@ -1436,8 +1427,7 @@ async def sample_verify_notification_channel(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.VerifyNotificationChannelRequest, dict]]): - The request object. The `VerifyNotificationChannel` - request. + The request object. The ``VerifyNotificationChannel`` request. name (:class:`str`): Required. The notification channel to verify. diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/client.py b/google/cloud/monitoring_v3/services/notification_channel_service/client.py index 26145487..daff40ee 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/client.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/client.py @@ -512,8 +512,7 @@ def sample_list_notification_channel_descriptors(): Args: request (Union[google.cloud.monitoring_v3.types.ListNotificationChannelDescriptorsRequest, dict]): - The request object. The - `ListNotificationChannelDescriptors` request. + The request object. The ``ListNotificationChannelDescriptors`` request. name (str): Required. The REST resource name of the parent from which to retrieve the notification channel descriptors. @@ -648,8 +647,7 @@ def sample_get_notification_channel_descriptor(): Args: request (Union[google.cloud.monitoring_v3.types.GetNotificationChannelDescriptorRequest, dict]): - The request object. The - `GetNotificationChannelDescriptor` response. + The request object. The ``GetNotificationChannelDescriptor`` response. name (str): Required. The channel type for which to execute the request. The format is: @@ -767,8 +765,7 @@ def sample_list_notification_channels(): Args: request (Union[google.cloud.monitoring_v3.types.ListNotificationChannelsRequest, dict]): - The request object. The `ListNotificationChannels` - request. + The request object. The ``ListNotificationChannels`` request. name (str): Required. The `project `__ @@ -904,8 +901,7 @@ def sample_get_notification_channel(): Args: request (Union[google.cloud.monitoring_v3.types.GetNotificationChannelRequest, dict]): - The request object. The `GetNotificationChannel` - request. + The request object. The ``GetNotificationChannel`` request. name (str): Required. The channel for which to execute the request. The format is: @@ -1020,8 +1016,7 @@ def sample_create_notification_channel(): Args: request (Union[google.cloud.monitoring_v3.types.CreateNotificationChannelRequest, dict]): - The request object. The `CreateNotificationChannel` - request. + The request object. The ``CreateNotificationChannel`` request. name (str): Required. The `project `__ @@ -1155,8 +1150,7 @@ def sample_update_notification_channel(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateNotificationChannelRequest, dict]): - The request object. The `UpdateNotificationChannel` - request. + The request object. The ``UpdateNotificationChannel`` request. update_mask (google.protobuf.field_mask_pb2.FieldMask): The fields to update. This corresponds to the ``update_mask`` field @@ -1278,8 +1272,7 @@ def sample_delete_notification_channel(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteNotificationChannelRequest, dict]): - The request object. The `DeleteNotificationChannel` - request. + The request object. The ``DeleteNotificationChannel`` request. name (str): Required. The channel for which to execute the request. The format is: @@ -1398,8 +1391,7 @@ def sample_send_notification_channel_verification_code(): Args: request (Union[google.cloud.monitoring_v3.types.SendNotificationChannelVerificationCodeRequest, dict]): - The request object. The - `SendNotificationChannelVerificationCode` request. + The request object. The ``SendNotificationChannelVerificationCode`` request. name (str): Required. The notification channel to which to send a verification code. @@ -1530,8 +1522,7 @@ def sample_get_notification_channel_verification_code(): Args: request (Union[google.cloud.monitoring_v3.types.GetNotificationChannelVerificationCodeRequest, dict]): - The request object. The - `GetNotificationChannelVerificationCode` request. + The request object. The ``GetNotificationChannelVerificationCode`` request. name (str): Required. The notification channel for which a verification code is to be @@ -1648,8 +1639,7 @@ def sample_verify_notification_channel(): Args: request (Union[google.cloud.monitoring_v3.types.VerifyNotificationChannelRequest, dict]): - The request object. The `VerifyNotificationChannel` - request. + The request object. The ``VerifyNotificationChannel`` request. name (str): Required. The notification channel to verify. diff --git a/google/cloud/monitoring_v3/services/query_service/async_client.py b/google/cloud/monitoring_v3/services/query_service/async_client.py index 50c58ed6..7d903681 100644 --- a/google/cloud/monitoring_v3/services/query_service/async_client.py +++ b/google/cloud/monitoring_v3/services/query_service/async_client.py @@ -252,7 +252,7 @@ async def sample_query_time_series(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.QueryTimeSeriesRequest, dict]]): - The request object. The `QueryTimeSeries` request. + The request object. The ``QueryTimeSeries`` request. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/monitoring_v3/services/query_service/client.py b/google/cloud/monitoring_v3/services/query_service/client.py index 469da8fe..02f7a6df 100644 --- a/google/cloud/monitoring_v3/services/query_service/client.py +++ b/google/cloud/monitoring_v3/services/query_service/client.py @@ -461,7 +461,7 @@ def sample_query_time_series(): Args: request (Union[google.cloud.monitoring_v3.types.QueryTimeSeriesRequest, dict]): - The request object. The `QueryTimeSeries` request. + The request object. The ``QueryTimeSeries`` request. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/async_client.py b/google/cloud/monitoring_v3/services/service_monitoring_service/async_client.py index df5568bd..a2874a12 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/async_client.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/async_client.py @@ -272,7 +272,7 @@ async def sample_create_service(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateServiceRequest, dict]]): - The request object. The `CreateService` request. + The request object. The ``CreateService`` request. parent (:class:`str`): Required. Resource `name `__ @@ -389,7 +389,7 @@ async def sample_get_service(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetServiceRequest, dict]]): - The request object. The `GetService` request. + The request object. The ``GetService`` request. name (:class:`str`): Required. Resource name of the ``Service``. The format is: @@ -508,7 +508,7 @@ async def sample_list_services(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListServicesRequest, dict]]): - The request object. The `ListServices` request. + The request object. The ``ListServices`` request. parent (:class:`str`): Required. Resource name of the parent containing the listed services, either a @@ -635,7 +635,7 @@ async def sample_update_service(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateServiceRequest, dict]]): - The request object. The `UpdateService` request. + The request object. The ``UpdateService`` request. service (:class:`google.cloud.monitoring_v3.types.Service`): Required. The ``Service`` to draw updates from. The given ``name`` specifies the resource to update. @@ -739,7 +739,7 @@ async def sample_delete_service(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteServiceRequest, dict]]): - The request object. The `DeleteService` request. + The request object. The ``DeleteService`` request. name (:class:`str`): Required. Resource name of the ``Service`` to delete. The format is: @@ -847,8 +847,7 @@ async def sample_create_service_level_objective(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateServiceLevelObjectiveRequest, dict]]): - The request object. The `CreateServiceLevelObjective` - request. + The request object. The ``CreateServiceLevelObjective`` request. parent (:class:`str`): Required. Resource name of the parent ``Service``. The format is: @@ -976,8 +975,7 @@ async def sample_get_service_level_objective(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetServiceLevelObjectiveRequest, dict]]): - The request object. The `GetServiceLevelObjective` - request. + The request object. The ``GetServiceLevelObjective`` request. name (:class:`str`): Required. Resource name of the ``ServiceLevelObjective`` to get. The format is: @@ -1105,8 +1103,7 @@ async def sample_list_service_level_objectives(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListServiceLevelObjectivesRequest, dict]]): - The request object. The `ListServiceLevelObjectives` - request. + The request object. The ``ListServiceLevelObjectives`` request. parent (:class:`str`): Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. @@ -1234,8 +1231,7 @@ async def sample_update_service_level_objective(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateServiceLevelObjectiveRequest, dict]]): - The request object. The `UpdateServiceLevelObjective` - request. + The request object. The ``UpdateServiceLevelObjective`` request. service_level_objective (:class:`google.cloud.monitoring_v3.types.ServiceLevelObjective`): Required. The ``ServiceLevelObjective`` to draw updates from. The given ``name`` specifies the resource to @@ -1354,8 +1350,7 @@ async def sample_delete_service_level_objective(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteServiceLevelObjectiveRequest, dict]]): - The request object. The `DeleteServiceLevelObjective` - request. + The request object. The ``DeleteServiceLevelObjective`` request. name (:class:`str`): Required. Resource name of the ``ServiceLevelObjective`` to delete. The format is: diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/client.py b/google/cloud/monitoring_v3/services/service_monitoring_service/client.py index 355f7feb..f90892c5 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/client.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/client.py @@ -505,7 +505,7 @@ def sample_create_service(): Args: request (Union[google.cloud.monitoring_v3.types.CreateServiceRequest, dict]): - The request object. The `CreateService` request. + The request object. The ``CreateService`` request. parent (str): Required. Resource `name `__ @@ -622,7 +622,7 @@ def sample_get_service(): Args: request (Union[google.cloud.monitoring_v3.types.GetServiceRequest, dict]): - The request object. The `GetService` request. + The request object. The ``GetService`` request. name (str): Required. Resource name of the ``Service``. The format is: @@ -732,7 +732,7 @@ def sample_list_services(): Args: request (Union[google.cloud.monitoring_v3.types.ListServicesRequest, dict]): - The request object. The `ListServices` request. + The request object. The ``ListServices`` request. parent (str): Required. Resource name of the parent containing the listed services, either a @@ -850,7 +850,7 @@ def sample_update_service(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateServiceRequest, dict]): - The request object. The `UpdateService` request. + The request object. The ``UpdateService`` request. service (google.cloud.monitoring_v3.types.Service): Required. The ``Service`` to draw updates from. The given ``name`` specifies the resource to update. @@ -954,7 +954,7 @@ def sample_delete_service(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteServiceRequest, dict]): - The request object. The `DeleteService` request. + The request object. The ``DeleteService`` request. name (str): Required. Resource name of the ``Service`` to delete. The format is: @@ -1053,8 +1053,7 @@ def sample_create_service_level_objective(): Args: request (Union[google.cloud.monitoring_v3.types.CreateServiceLevelObjectiveRequest, dict]): - The request object. The `CreateServiceLevelObjective` - request. + The request object. The ``CreateServiceLevelObjective`` request. parent (str): Required. Resource name of the parent ``Service``. The format is: @@ -1184,8 +1183,7 @@ def sample_get_service_level_objective(): Args: request (Union[google.cloud.monitoring_v3.types.GetServiceLevelObjectiveRequest, dict]): - The request object. The `GetServiceLevelObjective` - request. + The request object. The ``GetServiceLevelObjective`` request. name (str): Required. Resource name of the ``ServiceLevelObjective`` to get. The format is: @@ -1306,8 +1304,7 @@ def sample_list_service_level_objectives(): Args: request (Union[google.cloud.monitoring_v3.types.ListServiceLevelObjectivesRequest, dict]): - The request object. The `ListServiceLevelObjectives` - request. + The request object. The ``ListServiceLevelObjectives`` request. parent (str): Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. @@ -1428,8 +1425,7 @@ def sample_update_service_level_objective(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateServiceLevelObjectiveRequest, dict]): - The request object. The `UpdateServiceLevelObjective` - request. + The request object. The ``UpdateServiceLevelObjective`` request. service_level_objective (google.cloud.monitoring_v3.types.ServiceLevelObjective): Required. The ``ServiceLevelObjective`` to draw updates from. The given ``name`` specifies the resource to @@ -1550,8 +1546,7 @@ def sample_delete_service_level_objective(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteServiceLevelObjectiveRequest, dict]): - The request object. The `DeleteServiceLevelObjective` - request. + The request object. The ``DeleteServiceLevelObjective`` request. name (str): Required. Resource name of the ``ServiceLevelObjective`` to delete. The format is: diff --git a/google/cloud/monitoring_v3/services/snooze_service/async_client.py b/google/cloud/monitoring_v3/services/snooze_service/async_client.py index cf6134bf..b85da8a8 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/async_client.py +++ b/google/cloud/monitoring_v3/services/snooze_service/async_client.py @@ -270,9 +270,9 @@ async def sample_create_snooze(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateSnoozeRequest, dict]]): - The request object. The message definition for creating - a `Snooze`. Users must provide the body of the `Snooze` - to be created but must omit the `Snooze` field, `name`. + The request object. The message definition for creating a ``Snooze``. Users + must provide the body of the ``Snooze`` to be created + but must omit the ``Snooze`` field, ``name``. parent (:class:`str`): Required. The `project `__ @@ -393,9 +393,9 @@ async def sample_list_snoozes(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListSnoozesRequest, dict]]): - The request object. The message definition for listing - `Snooze`s associated with the given `parent`, satisfying - the optional `filter`. + The request object. The message definition for listing ``Snooze``\ s + associated with the given ``parent``, satisfying the + optional ``filter``. parent (:class:`str`): Required. The `project `__ @@ -522,9 +522,9 @@ async def sample_get_snooze(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetSnoozeRequest, dict]]): - The request object. The message definition for - retrieving a `Snooze`. Users must specify the field, - `name`, which identifies the `Snooze`. + The request object. The message definition for retrieving a ``Snooze``. + Users must specify the field, ``name``, which identifies + the ``Snooze``. name (:class:`str`): Required. The ID of the ``Snooze`` to retrieve. The format is: @@ -647,21 +647,22 @@ async def sample_update_snooze(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateSnoozeRequest, dict]]): - The request object. The message definition for updating - a `Snooze`. The field, `snooze.name` identifies the - `Snooze` to be updated. The remainder of `snooze` gives - the content the `Snooze` in question will be assigned. + The request object. The message definition for updating a ``Snooze``. The + field, ``snooze.name`` identifies the ``Snooze`` to be + updated. The remainder of ``snooze`` gives the content + the ``Snooze`` in question will be assigned. What fields can be updated depends on the start time and - end time of the `Snooze`. - * end time is in the past: These `Snooze`s are - considered read-only and cannot be updated. - * start time is in the past and end time is in the - future: `display_name` and `interval.end_time` can - be updated. - * start time is in the future: `display_name`, - `interval.start_time` and `interval.end_time` can be - updated. + end time of the ``Snooze``. + + - end time is in the past: These ``Snooze``\ s are + considered read-only and cannot be updated. + - start time is in the past and end time is in the + future: ``display_name`` and ``interval.end_time`` + can be updated. + - start time is in the future: ``display_name``, + ``interval.start_time`` and ``interval.end_time`` can + be updated. snooze (:class:`google.cloud.monitoring_v3.types.Snooze`): Required. The ``Snooze`` to update. Must have the name field present. diff --git a/google/cloud/monitoring_v3/services/snooze_service/client.py b/google/cloud/monitoring_v3/services/snooze_service/client.py index ec6ff805..14b265b9 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/client.py +++ b/google/cloud/monitoring_v3/services/snooze_service/client.py @@ -507,9 +507,9 @@ def sample_create_snooze(): Args: request (Union[google.cloud.monitoring_v3.types.CreateSnoozeRequest, dict]): - The request object. The message definition for creating - a `Snooze`. Users must provide the body of the `Snooze` - to be created but must omit the `Snooze` field, `name`. + The request object. The message definition for creating a ``Snooze``. Users + must provide the body of the ``Snooze`` to be created + but must omit the ``Snooze`` field, ``name``. parent (str): Required. The `project `__ @@ -630,9 +630,9 @@ def sample_list_snoozes(): Args: request (Union[google.cloud.monitoring_v3.types.ListSnoozesRequest, dict]): - The request object. The message definition for listing - `Snooze`s associated with the given `parent`, satisfying - the optional `filter`. + The request object. The message definition for listing ``Snooze``\ s + associated with the given ``parent``, satisfying the + optional ``filter``. parent (str): Required. The `project `__ @@ -750,9 +750,9 @@ def sample_get_snooze(): Args: request (Union[google.cloud.monitoring_v3.types.GetSnoozeRequest, dict]): - The request object. The message definition for - retrieving a `Snooze`. Users must specify the field, - `name`, which identifies the `Snooze`. + The request object. The message definition for retrieving a ``Snooze``. + Users must specify the field, ``name``, which identifies + the ``Snooze``. name (str): Required. The ID of the ``Snooze`` to retrieve. The format is: @@ -866,21 +866,22 @@ def sample_update_snooze(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateSnoozeRequest, dict]): - The request object. The message definition for updating - a `Snooze`. The field, `snooze.name` identifies the - `Snooze` to be updated. The remainder of `snooze` gives - the content the `Snooze` in question will be assigned. + The request object. The message definition for updating a ``Snooze``. The + field, ``snooze.name`` identifies the ``Snooze`` to be + updated. The remainder of ``snooze`` gives the content + the ``Snooze`` in question will be assigned. What fields can be updated depends on the start time and - end time of the `Snooze`. - * end time is in the past: These `Snooze`s are - considered read-only and cannot be updated. - * start time is in the past and end time is in the - future: `display_name` and `interval.end_time` can - be updated. - * start time is in the future: `display_name`, - `interval.start_time` and `interval.end_time` can be - updated. + end time of the ``Snooze``. + + - end time is in the past: These ``Snooze``\ s are + considered read-only and cannot be updated. + - start time is in the past and end time is in the + future: ``display_name`` and ``interval.end_time`` + can be updated. + - start time is in the future: ``display_name``, + ``interval.start_time`` and ``interval.end_time`` can + be updated. snooze (google.cloud.monitoring_v3.types.Snooze): Required. The ``Snooze`` to update. Must have the name field present. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/async_client.py b/google/cloud/monitoring_v3/services/uptime_check_service/async_client.py index af6c0ab5..4f150c6c 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/async_client.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/async_client.py @@ -273,8 +273,7 @@ async def sample_list_uptime_check_configs(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListUptimeCheckConfigsRequest, dict]]): - The request object. The protocol for the - `ListUptimeCheckConfigs` request. + The request object. The protocol for the ``ListUptimeCheckConfigs`` request. parent (:class:`str`): Required. The `project `__ @@ -403,8 +402,7 @@ async def sample_get_uptime_check_config(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.GetUptimeCheckConfigRequest, dict]]): - The request object. The protocol for the - `GetUptimeCheckConfig` request. + The request object. The protocol for the ``GetUptimeCheckConfig`` request. name (:class:`str`): Required. The Uptime check configuration to retrieve. The format is: @@ -522,8 +520,8 @@ async def sample_create_uptime_check_config(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.CreateUptimeCheckConfigRequest, dict]]): - The request object. The protocol for the - `CreateUptimeCheckConfig` request. + The request object. The protocol for the ``CreateUptimeCheckConfig`` + request. parent (:class:`str`): Required. The `project `__ @@ -644,8 +642,8 @@ async def sample_update_uptime_check_config(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.UpdateUptimeCheckConfigRequest, dict]]): - The request object. The protocol for the - `UpdateUptimeCheckConfig` request. + The request object. The protocol for the ``UpdateUptimeCheckConfig`` + request. uptime_check_config (:class:`google.cloud.monitoring_v3.types.UptimeCheckConfig`): Required. If an ``updateMask`` has been specified, this field gives the values for the set of fields mentioned @@ -762,8 +760,8 @@ async def sample_delete_uptime_check_config(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.DeleteUptimeCheckConfigRequest, dict]]): - The request object. The protocol for the - `DeleteUptimeCheckConfig` request. + The request object. The protocol for the ``DeleteUptimeCheckConfig`` + request. name (:class:`str`): Required. The Uptime check configuration to delete. The format is: @@ -868,8 +866,7 @@ async def sample_list_uptime_check_ips(): Args: request (Optional[Union[google.cloud.monitoring_v3.types.ListUptimeCheckIpsRequest, dict]]): - The request object. The protocol for the - `ListUptimeCheckIps` request. + The request object. The protocol for the ``ListUptimeCheckIps`` request. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/client.py b/google/cloud/monitoring_v3/services/uptime_check_service/client.py index 3fca44ff..f026969a 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/client.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/client.py @@ -493,8 +493,7 @@ def sample_list_uptime_check_configs(): Args: request (Union[google.cloud.monitoring_v3.types.ListUptimeCheckConfigsRequest, dict]): - The request object. The protocol for the - `ListUptimeCheckConfigs` request. + The request object. The protocol for the ``ListUptimeCheckConfigs`` request. parent (str): Required. The `project `__ @@ -616,8 +615,7 @@ def sample_get_uptime_check_config(): Args: request (Union[google.cloud.monitoring_v3.types.GetUptimeCheckConfigRequest, dict]): - The request object. The protocol for the - `GetUptimeCheckConfig` request. + The request object. The protocol for the ``GetUptimeCheckConfig`` request. name (str): Required. The Uptime check configuration to retrieve. The format is: @@ -726,8 +724,8 @@ def sample_create_uptime_check_config(): Args: request (Union[google.cloud.monitoring_v3.types.CreateUptimeCheckConfigRequest, dict]): - The request object. The protocol for the - `CreateUptimeCheckConfig` request. + The request object. The protocol for the ``CreateUptimeCheckConfig`` + request. parent (str): Required. The `project `__ @@ -850,8 +848,8 @@ def sample_update_uptime_check_config(): Args: request (Union[google.cloud.monitoring_v3.types.UpdateUptimeCheckConfigRequest, dict]): - The request object. The protocol for the - `UpdateUptimeCheckConfig` request. + The request object. The protocol for the ``UpdateUptimeCheckConfig`` + request. uptime_check_config (google.cloud.monitoring_v3.types.UptimeCheckConfig): Required. If an ``updateMask`` has been specified, this field gives the values for the set of fields mentioned @@ -970,8 +968,8 @@ def sample_delete_uptime_check_config(): Args: request (Union[google.cloud.monitoring_v3.types.DeleteUptimeCheckConfigRequest, dict]): - The request object. The protocol for the - `DeleteUptimeCheckConfig` request. + The request object. The protocol for the ``DeleteUptimeCheckConfig`` + request. name (str): Required. The Uptime check configuration to delete. The format is: @@ -1069,8 +1067,7 @@ def sample_list_uptime_check_ips(): Args: request (Union[google.cloud.monitoring_v3.types.ListUptimeCheckIpsRequest, dict]): - The request object. The protocol for the - `ListUptimeCheckIps` request. + The request object. The protocol for the ``ListUptimeCheckIps`` request. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. From 1296fbbca3aed3ee3e004125cc7be7550cc47e81 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:51:43 -0400 Subject: [PATCH 8/8] chore(main): release 2.14.2 (#536) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ google/cloud/monitoring/gapic_version.py | 2 +- google/cloud/monitoring_v3/gapic_version.py | 2 +- .../snippet_metadata_google.monitoring.v3.json | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 06613a33..a5a303f1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,4 +1,4 @@ { - ".": "2.14.1" + ".": "2.14.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c5cbcff..eab1d999 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-monitoring/#history +## [2.14.2](https://github.com/googleapis/python-monitoring/compare/v2.14.1...v2.14.2) (2023-03-23) + + +### Documentation + +* Fix formatting of request arg in docstring ([#535](https://github.com/googleapis/python-monitoring/issues/535)) ([e10167f](https://github.com/googleapis/python-monitoring/commit/e10167f5d0def6fd6707fc8bda56a2cfe6a47eac)) + ## [2.14.1](https://github.com/googleapis/python-monitoring/compare/v2.14.0...v2.14.1) (2023-01-20) diff --git a/google/cloud/monitoring/gapic_version.py b/google/cloud/monitoring/gapic_version.py index ef7c5006..3344051a 100644 --- a/google/cloud/monitoring/gapic_version.py +++ b/google/cloud/monitoring/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.14.1" # {x-release-please-version} +__version__ = "2.14.2" # {x-release-please-version} diff --git a/google/cloud/monitoring_v3/gapic_version.py b/google/cloud/monitoring_v3/gapic_version.py index ef7c5006..3344051a 100644 --- a/google/cloud/monitoring_v3/gapic_version.py +++ b/google/cloud/monitoring_v3/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.14.1" # {x-release-please-version} +__version__ = "2.14.2" # {x-release-please-version} diff --git a/samples/generated_samples/snippet_metadata_google.monitoring.v3.json b/samples/generated_samples/snippet_metadata_google.monitoring.v3.json index 04888a5f..746b37d6 100644 --- a/samples/generated_samples/snippet_metadata_google.monitoring.v3.json +++ b/samples/generated_samples/snippet_metadata_google.monitoring.v3.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-monitoring", - "version": "0.1.0" + "version": "2.14.2" }, "snippets": [ {