diff --git a/.flake8 b/.flake8 index 2e438749..87f6e408 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 98994f47..dd98abbd 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:2d816f26f728ac8b24248741e7d4c461c09764ef9f7be3684d557c9632e46dbd -# created: 2023-06-28T17:03:33.371210701Z + digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547 +# created: 2023-10-09T14:06:13.397766266Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml index 41bff0b5..b2016d11 100644 --- a/.github/auto-label.yaml +++ b/.github/auto-label.yaml @@ -1,4 +1,4 @@ -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.gitignore b/.gitignore index b4243ced..d083ea1d 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ docs.metadata # Virtual environment env/ +venv/ # Test logs coverage.xml diff --git a/.kokoro/build.sh b/.kokoro/build.sh index cb3ebc45..ba9d0f34 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/docker/docs/Dockerfile b/.kokoro/docker/docs/Dockerfile index f8137d0a..8e39a2cc 100644 --- a/.kokoro/docker/docs/Dockerfile +++ b/.kokoro/docker/docs/Dockerfile @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh index f5251425..6f397214 100755 --- a/.kokoro/populate-secrets.sh +++ b/.kokoro/populate-secrets.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Google LLC. +# Copyright 2023 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index 1c4d6237..9eafe0be 100755 --- a/.kokoro/publish-docs.sh +++ b/.kokoro/publish-docs.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 32aafa08..8659a8f9 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index c7929db6..0332d326 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -20,9 +20,9 @@ cachetools==5.2.0 \ --hash=sha256:6a94c6402995a99c3970cc7e4884bb60b4a8639938157eeed436098bf9831757 \ --hash=sha256:f9f17d2aec496a9aa6b76f53e3b614c965223c061982d434d160f930c698a9db # via google-auth -certifi==2022.12.7 \ - --hash=sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3 \ - --hash=sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18 +certifi==2023.7.22 \ + --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \ + --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9 # via requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ @@ -113,26 +113,30 @@ commonmark==0.9.1 \ --hash=sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \ --hash=sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9 # via rich -cryptography==41.0.0 \ - --hash=sha256:0ddaee209d1cf1f180f1efa338a68c4621154de0afaef92b89486f5f96047c55 \ - --hash=sha256:14754bcdae909d66ff24b7b5f166d69340ccc6cb15731670435efd5719294895 \ - --hash=sha256:344c6de9f8bda3c425b3a41b319522ba3208551b70c2ae00099c205f0d9fd3be \ - --hash=sha256:34d405ea69a8b34566ba3dfb0521379b210ea5d560fafedf9f800a9a94a41928 \ - --hash=sha256:3680248309d340fda9611498a5319b0193a8dbdb73586a1acf8109d06f25b92d \ - --hash=sha256:3c5ef25d060c80d6d9f7f9892e1d41bb1c79b78ce74805b8cb4aa373cb7d5ec8 \ - --hash=sha256:4ab14d567f7bbe7f1cdff1c53d5324ed4d3fc8bd17c481b395db224fb405c237 \ - --hash=sha256:5c1f7293c31ebc72163a9a0df246f890d65f66b4a40d9ec80081969ba8c78cc9 \ - --hash=sha256:6b71f64beeea341c9b4f963b48ee3b62d62d57ba93eb120e1196b31dc1025e78 \ - --hash=sha256:7d92f0248d38faa411d17f4107fc0bce0c42cae0b0ba5415505df72d751bf62d \ - --hash=sha256:8362565b3835ceacf4dc8f3b56471a2289cf51ac80946f9087e66dc283a810e0 \ - --hash=sha256:84a165379cb9d411d58ed739e4af3396e544eac190805a54ba2e0322feb55c46 \ - --hash=sha256:88ff107f211ea696455ea8d911389f6d2b276aabf3231bf72c8853d22db755c5 \ - --hash=sha256:9f65e842cb02550fac96536edb1d17f24c0a338fd84eaf582be25926e993dde4 \ - --hash=sha256:a4fc68d1c5b951cfb72dfd54702afdbbf0fb7acdc9b7dc4301bbf2225a27714d \ - --hash=sha256:b7f2f5c525a642cecad24ee8670443ba27ac1fab81bba4cc24c7b6b41f2d0c75 \ - --hash=sha256:b846d59a8d5a9ba87e2c3d757ca019fa576793e8758174d3868aecb88d6fc8eb \ - --hash=sha256:bf8fc66012ca857d62f6a347007e166ed59c0bc150cefa49f28376ebe7d992a2 \ - --hash=sha256:f5d0bf9b252f30a31664b6f64432b4730bb7038339bd18b1fafe129cfc2be9be +cryptography==41.0.4 \ + --hash=sha256:004b6ccc95943f6a9ad3142cfabcc769d7ee38a3f60fb0dddbfb431f818c3a67 \ + --hash=sha256:047c4603aeb4bbd8db2756e38f5b8bd7e94318c047cfe4efeb5d715e08b49311 \ + --hash=sha256:0d9409894f495d465fe6fda92cb70e8323e9648af912d5b9141d616df40a87b8 \ + --hash=sha256:23a25c09dfd0d9f28da2352503b23e086f8e78096b9fd585d1d14eca01613e13 \ + --hash=sha256:2ed09183922d66c4ec5fdaa59b4d14e105c084dd0febd27452de8f6f74704143 \ + --hash=sha256:35c00f637cd0b9d5b6c6bd11b6c3359194a8eba9c46d4e875a3660e3b400005f \ + --hash=sha256:37480760ae08065437e6573d14be973112c9e6dcaf5f11d00147ee74f37a3829 \ + --hash=sha256:3b224890962a2d7b57cf5eeb16ccaafba6083f7b811829f00476309bce2fe0fd \ + --hash=sha256:5a0f09cefded00e648a127048119f77bc2b2ec61e736660b5789e638f43cc397 \ + --hash=sha256:5b72205a360f3b6176485a333256b9bcd48700fc755fef51c8e7e67c4b63e3ac \ + --hash=sha256:7e53db173370dea832190870e975a1e09c86a879b613948f09eb49324218c14d \ + --hash=sha256:7febc3094125fc126a7f6fb1f420d0da639f3f32cb15c8ff0dc3997c4549f51a \ + --hash=sha256:80907d3faa55dc5434a16579952ac6da800935cd98d14dbd62f6f042c7f5e839 \ + --hash=sha256:86defa8d248c3fa029da68ce61fe735432b047e32179883bdb1e79ed9bb8195e \ + --hash=sha256:8ac4f9ead4bbd0bc8ab2d318f97d85147167a488be0e08814a37eb2f439d5cf6 \ + --hash=sha256:93530900d14c37a46ce3d6c9e6fd35dbe5f5601bf6b3a5c325c7bffc030344d9 \ + --hash=sha256:9eeb77214afae972a00dee47382d2591abe77bdae166bda672fb1e24702a3860 \ + --hash=sha256:b5f4dfe950ff0479f1f00eda09c18798d4f49b98f4e2006d644b3301682ebdca \ + --hash=sha256:c3391bd8e6de35f6f1140e50aaeb3e2b3d6a9012536ca23ab0d9c35ec18c8a91 \ + --hash=sha256:c880eba5175f4307129784eca96f4e70b88e57aa3f680aeba3bab0e980b0f37d \ + --hash=sha256:cecfefa17042941f94ab54f769c8ce0fe14beff2694e9ac684176a2535bf9714 \ + --hash=sha256:e40211b4923ba5a6dc9769eab704bdb3fbb58d56c5b336d30996c24fcf12aadb \ + --hash=sha256:efc8ad4e6fc4f1752ebfb58aefece8b4e3c4cae940b0994d43649bdfce8d0d4f # via # gcp-releasetool # secretstorage @@ -378,6 +382,7 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core + # googleapis-common-protos pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba @@ -392,9 +397,9 @@ pycparser==2.21 \ --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 # via cffi -pygments==2.13.0 \ - --hash=sha256:56a8508ae95f98e2b9bdf93a6be5ae3f7d8af858b43e02c5a2ff083726be40c1 \ - --hash=sha256:f643f331ab57ba3c9d89212ee4a2dabc6e94f117cf4eefde99a0574720d14c42 +pygments==2.15.0 \ + --hash=sha256:77a3299119af881904cd5ecd1ac6a66214b6e9bed1f2db16993b54adede64094 \ + --hash=sha256:f7e36cffc4c517fbc252861b9a6e4644ca0e5abadf9a113c72d1358ad09b9500 # via # readme-renderer # rich @@ -462,9 +467,9 @@ typing-extensions==4.4.0 \ --hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \ --hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 +urllib3==1.26.17 \ + --hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \ + --hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b # via # requests # twine diff --git a/.kokoro/test-samples-against-head.sh b/.kokoro/test-samples-against-head.sh index ba3a707b..63ac41df 100755 --- a/.kokoro/test-samples-against-head.sh +++ b/.kokoro/test-samples-against-head.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/test-samples-impl.sh b/.kokoro/test-samples-impl.sh index 2c6500ca..5a0f5fab 100755 --- a/.kokoro/test-samples-impl.sh +++ b/.kokoro/test-samples-impl.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2021 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/test-samples.sh b/.kokoro/test-samples.sh index 11c042d3..50b35a48 100755 --- a/.kokoro/test-samples.sh +++ b/.kokoro/test-samples.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh index f39236e9..d85b1f26 100755 --- a/.kokoro/trampoline.sh +++ b/.kokoro/trampoline.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2017 Google Inc. +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/trampoline_v2.sh b/.kokoro/trampoline_v2.sh index 4af6cdc2..59a7cf3a 100755 --- a/.kokoro/trampoline_v2.sh +++ b/.kokoro/trampoline_v2.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5405cc8f..6a8e1695 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,10 +22,10 @@ repos: - id: end-of-file-fixer - id: check-yaml - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 3.9.2 + rev: 6.1.0 hooks: - id: flake8 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6abca04f..2f416052 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,4 +1,4 @@ { - ".": "2.15.1" + ".": "2.16.0" } \ No newline at end of file diff --git a/.trampolinerc b/.trampolinerc index 0eee72ab..a7dfeb42 100644 --- a/.trampolinerc +++ b/.trampolinerc @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Template for .trampolinerc - # Add required env vars here. required_envvars+=( ) diff --git a/CHANGELOG.md b/CHANGELOG.md index e395c0dd..b4beee9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ [1]: https://pypi.org/project/google-cloud-monitoring/#history +## [2.16.0](https://github.com/googleapis/python-monitoring/compare/v2.15.1...v2.16.0) (2023-10-09) + + +### Features + +* Added support for forecast options in AlertPolicy ([218e678](https://github.com/googleapis/python-monitoring/commit/218e67818d7a19e45bd1521adb3cea76efb3f541)) +* Added support for promQL condition type in AlertPolicy ([218e678](https://github.com/googleapis/python-monitoring/commit/218e67818d7a19e45bd1521adb3cea76efb3f541)) +* Added support for retriggering notifications in AlertPolicy ([218e678](https://github.com/googleapis/python-monitoring/commit/218e67818d7a19e45bd1521adb3cea76efb3f541)) + + +### Documentation + +* Minor formatting ([218e678](https://github.com/googleapis/python-monitoring/commit/218e67818d7a19e45bd1521adb3cea76efb3f541)) + ## [2.15.1](https://github.com/googleapis/python-monitoring/compare/v2.15.0...v2.15.1) (2023-07-04) diff --git a/MANIFEST.in b/MANIFEST.in index e783f4c6..e0a66705 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/README.rst b/README.rst index 4a1dbdac..1eaf3f59 100644 --- a/README.rst +++ b/README.rst @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps: Installation ~~~~~~~~~~~~ -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. +Install this library in a virtual environment using `venv`_. `venv`_ is a tool that +creates isolated Python environments. These isolated environments can have separate +versions of Python packages, which allows you to isolate one project's dependencies +from the dependencies of other projects. -With `virtualenv`_, it's possible to install this library without needing system +With `venv`_, it's possible to install this library without needing system install permissions, and without clashing with the installed system dependencies. -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ +.. _`venv`: https://docs.python.org/3/library/venv.html Code samples and snippets ~~~~~~~~~~~~~~~~~~~~~~~~~ -Code samples and snippets live in the `samples/` folder. +Code samples and snippets live in the `samples/`_ folder. + +.. _samples/: https://github.com/googleapis/python-monitoring/tree/main/samples Supported Python Versions @@ -77,10 +80,9 @@ Mac/Linux .. code-block:: console - pip install virtualenv - virtualenv + python3 -m venv source /bin/activate - /bin/pip install google-cloud-monitoring + pip install google-cloud-monitoring Windows @@ -88,10 +90,9 @@ Windows .. code-block:: console - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-monitoring + py -m venv + .\\Scripts\activate + pip install google-cloud-monitoring Next Steps ~~~~~~~~~~ diff --git a/docs/conf.py b/docs/conf.py index 9059cfd2..12f642fd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2021 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring/__init__.py b/google/cloud/monitoring/__init__.py index 8d0c4b59..da630c1b 100644 --- a/google/cloud/monitoring/__init__.py +++ b/google/cloud/monitoring/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring/gapic_version.py b/google/cloud/monitoring/gapic_version.py index 505a42f1..a2303530 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.15.1" # {x-release-please-version} +__version__ = "2.16.0" # {x-release-please-version} diff --git a/google/cloud/monitoring_v3/__init__.py b/google/cloud/monitoring_v3/__init__.py index 8d5521f1..e79553de 100644 --- a/google/cloud/monitoring_v3/__init__.py +++ b/google/cloud/monitoring_v3/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/gapic_version.py b/google/cloud/monitoring_v3/gapic_version.py index 505a42f1..a2303530 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.15.1" # {x-release-please-version} +__version__ = "2.16.0" # {x-release-please-version} diff --git a/google/cloud/monitoring_v3/services/__init__.py b/google/cloud/monitoring_v3/services/__init__.py index e8e1c384..89a37dc9 100644 --- a/google/cloud/monitoring_v3/services/__init__.py +++ b/google/cloud/monitoring_v3/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/__init__.py b/google/cloud/monitoring_v3/services/alert_policy_service/__init__.py index 2116e540..cba72942 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/__init__.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 04a41a1b..03cd2b30 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 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -499,6 +499,11 @@ async def create_alert_policy( ) -> alert.AlertPolicy: r"""Creates a new alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -629,6 +634,11 @@ async def delete_alert_policy( ) -> None: r"""Deletes an alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -737,6 +747,11 @@ async def update_alert_policy( current alerting policy by specifying the fields to be updated via ``updateMask``. Returns the updated alerting policy. + Design your application to single-thread API calls that modify + the state of alerting policies in a single project. This + includes calls to CreateAlertPolicy, DeleteAlertPolicy and + UpdateAlertPolicy. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a 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 6a529842..645fea91 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/client.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -718,6 +718,11 @@ def create_alert_policy( ) -> alert.AlertPolicy: r"""Creates a new alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -848,6 +853,11 @@ def delete_alert_policy( ) -> None: r"""Deletes an alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -947,6 +957,11 @@ def update_alert_policy( current alerting policy by specifying the fields to be updated via ``updateMask``. Returns the updated alerting policy. + Design your application to single-thread API calls that modify + the state of alerting policies in a single project. This + includes calls to CreateAlertPolicy, DeleteAlertPolicy and + UpdateAlertPolicy. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/pagers.py b/google/cloud/monitoring_v3/services/alert_policy_service/pagers.py index fecd4820..52062113 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/pagers.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/transports/__init__.py b/google/cloud/monitoring_v3/services/alert_policy_service/transports/__init__.py index 93860b74..49ee286f 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/transports/base.py b/google/cloud/monitoring_v3/services/alert_policy_service/transports/base.py index a7059c7f..587915e9 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc.py b/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc.py index 38df436c..ae5bc16c 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -303,6 +303,11 @@ def create_alert_policy( Creates a new alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + Returns: Callable[[~.CreateAlertPolicyRequest], ~.AlertPolicy]: @@ -329,6 +334,11 @@ def delete_alert_policy( Deletes an alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + Returns: Callable[[~.DeleteAlertPolicyRequest], ~.Empty]: @@ -358,6 +368,11 @@ def update_alert_policy( current alerting policy by specifying the fields to be updated via ``updateMask``. Returns the updated alerting policy. + Design your application to single-thread API calls that modify + the state of alerting policies in a single project. This + includes calls to CreateAlertPolicy, DeleteAlertPolicy and + UpdateAlertPolicy. + Returns: Callable[[~.UpdateAlertPolicyRequest], ~.AlertPolicy]: diff --git a/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc_asyncio.py index 72b80b6e..e4bc9f97 100644 --- a/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -308,6 +308,11 @@ def create_alert_policy( Creates a new alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + Returns: Callable[[~.CreateAlertPolicyRequest], Awaitable[~.AlertPolicy]]: @@ -334,6 +339,11 @@ def delete_alert_policy( Deletes an alerting policy. + Design your application to single-thread API calls that + modify the state of alerting policies in a single + project. This includes calls to CreateAlertPolicy, + DeleteAlertPolicy and UpdateAlertPolicy. + Returns: Callable[[~.DeleteAlertPolicyRequest], Awaitable[~.Empty]]: @@ -365,6 +375,11 @@ def update_alert_policy( current alerting policy by specifying the fields to be updated via ``updateMask``. Returns the updated alerting policy. + Design your application to single-thread API calls that modify + the state of alerting policies in a single project. This + includes calls to CreateAlertPolicy, DeleteAlertPolicy and + UpdateAlertPolicy. + Returns: Callable[[~.UpdateAlertPolicyRequest], Awaitable[~.AlertPolicy]]: diff --git a/google/cloud/monitoring_v3/services/group_service/__init__.py b/google/cloud/monitoring_v3/services/group_service/__init__.py index 5ab2b892..90e3e8fc 100644 --- a/google/cloud/monitoring_v3/services/group_service/__init__.py +++ b/google/cloud/monitoring_v3/services/group_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 fa354323..1b6fe431 100644 --- a/google/cloud/monitoring_v3/services/group_service/async_client.py +++ b/google/cloud/monitoring_v3/services/group_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/group_service/client.py b/google/cloud/monitoring_v3/services/group_service/client.py index a1105029..0081e306 100644 --- a/google/cloud/monitoring_v3/services/group_service/client.py +++ b/google/cloud/monitoring_v3/services/group_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/group_service/pagers.py b/google/cloud/monitoring_v3/services/group_service/pagers.py index a8d96322..2861dde9 100644 --- a/google/cloud/monitoring_v3/services/group_service/pagers.py +++ b/google/cloud/monitoring_v3/services/group_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/group_service/transports/__init__.py b/google/cloud/monitoring_v3/services/group_service/transports/__init__.py index 795fa20d..ace6bbc5 100644 --- a/google/cloud/monitoring_v3/services/group_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/group_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/group_service/transports/base.py b/google/cloud/monitoring_v3/services/group_service/transports/base.py index fee17266..05bd3fe2 100644 --- a/google/cloud/monitoring_v3/services/group_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/group_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/group_service/transports/grpc.py b/google/cloud/monitoring_v3/services/group_service/transports/grpc.py index bae90bc0..f1a085f7 100644 --- a/google/cloud/monitoring_v3/services/group_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/group_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/group_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/group_service/transports/grpc_asyncio.py index 5e73cf98..3f8f525d 100644 --- a/google/cloud/monitoring_v3/services/group_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/group_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/__init__.py b/google/cloud/monitoring_v3/services/metric_service/__init__.py index 49d23167..4cba91ed 100644 --- a/google/cloud/monitoring_v3/services/metric_service/__init__.py +++ b/google/cloud/monitoring_v3/services/metric_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 f6ead681..062189d4 100644 --- a/google/cloud/monitoring_v3/services/metric_service/async_client.py +++ b/google/cloud/monitoring_v3/services/metric_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/client.py b/google/cloud/monitoring_v3/services/metric_service/client.py index 1158352e..40a45471 100644 --- a/google/cloud/monitoring_v3/services/metric_service/client.py +++ b/google/cloud/monitoring_v3/services/metric_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/pagers.py b/google/cloud/monitoring_v3/services/metric_service/pagers.py index 3bcd99e2..b337003d 100644 --- a/google/cloud/monitoring_v3/services/metric_service/pagers.py +++ b/google/cloud/monitoring_v3/services/metric_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/transports/__init__.py b/google/cloud/monitoring_v3/services/metric_service/transports/__init__.py index e1d5e667..b54c4328 100644 --- a/google/cloud/monitoring_v3/services/metric_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/metric_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/transports/base.py b/google/cloud/monitoring_v3/services/metric_service/transports/base.py index 0c7bfc6e..51a35720 100644 --- a/google/cloud/monitoring_v3/services/metric_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/metric_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/transports/grpc.py b/google/cloud/monitoring_v3/services/metric_service/transports/grpc.py index d8bb6457..898d6c38 100644 --- a/google/cloud/monitoring_v3/services/metric_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/metric_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/metric_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/metric_service/transports/grpc_asyncio.py index 6bb1bec2..5eb83f37 100644 --- a/google/cloud/monitoring_v3/services/metric_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/metric_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/__init__.py b/google/cloud/monitoring_v3/services/notification_channel_service/__init__.py index 67fffb25..0a849027 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/__init__.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 68e098b1..2c84148f 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 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -513,8 +513,10 @@ async def list_notification_channels( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListNotificationChannelsAsyncPager: - r"""Lists the notification channels that have been - created for the project. + r"""Lists the notification channels that have been created for the + project. To list the types of notification channels that are + supported, use the ``ListNotificationChannelDescriptors`` + method. .. code-block:: python @@ -782,6 +784,12 @@ async def create_notification_channel( single notification endpoint such as an email address, SMS number, or PagerDuty service. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -913,6 +921,12 @@ async def update_notification_channel( r"""Updates a notification channel. Fields not specified in the field mask remain unchanged. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -1033,6 +1047,12 @@ async def delete_notification_channel( ) -> None: r"""Deletes a notification channel. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a 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 daff40ee..a8183528 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/client.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -733,8 +733,10 @@ def list_notification_channels( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListNotificationChannelsPager: - r"""Lists the notification channels that have been - created for the project. + r"""Lists the notification channels that have been created for the + project. To list the types of notification channels that are + supported, use the ``ListNotificationChannelDescriptors`` + method. .. code-block:: python @@ -988,6 +990,12 @@ def create_notification_channel( single notification endpoint such as an email address, SMS number, or PagerDuty service. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -1123,6 +1131,12 @@ def update_notification_channel( r"""Updates a notification channel. Fields not specified in the field mask remain unchanged. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -1247,6 +1261,12 @@ def delete_notification_channel( ) -> None: r"""Deletes a notification channel. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py b/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py index aa8a3887..ec268a9a 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/transports/__init__.py b/google/cloud/monitoring_v3/services/notification_channel_service/transports/__init__.py index c45c5b8a..126145e3 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/transports/base.py b/google/cloud/monitoring_v3/services/notification_channel_service/transports/base.py index 914074eb..0e9b70e0 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc.py b/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc.py index ebe382eb..9f8ee376 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -309,8 +309,10 @@ def list_notification_channels( ]: r"""Return a callable for the list notification channels method over gRPC. - Lists the notification channels that have been - created for the project. + Lists the notification channels that have been created for the + project. To list the types of notification channels that are + supported, use the ``ListNotificationChannelDescriptors`` + method. Returns: Callable[[~.ListNotificationChannelsRequest], @@ -378,6 +380,12 @@ def create_notification_channel( single notification endpoint such as an email address, SMS number, or PagerDuty service. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + Returns: Callable[[~.CreateNotificationChannelRequest], ~.NotificationChannel]: @@ -408,6 +416,12 @@ def update_notification_channel( Updates a notification channel. Fields not specified in the field mask remain unchanged. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + Returns: Callable[[~.UpdateNotificationChannelRequest], ~.NotificationChannel]: @@ -436,6 +450,12 @@ def delete_notification_channel( Deletes a notification channel. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + Returns: Callable[[~.DeleteNotificationChannelRequest], ~.Empty]: diff --git a/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc_asyncio.py index 9a0e4059..09370b02 100644 --- a/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/notification_channel_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -314,8 +314,10 @@ def list_notification_channels( ]: r"""Return a callable for the list notification channels method over gRPC. - Lists the notification channels that have been - created for the project. + Lists the notification channels that have been created for the + project. To list the types of notification channels that are + supported, use the ``ListNotificationChannelDescriptors`` + method. Returns: Callable[[~.ListNotificationChannelsRequest], @@ -383,6 +385,12 @@ def create_notification_channel( single notification endpoint such as an email address, SMS number, or PagerDuty service. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + Returns: Callable[[~.CreateNotificationChannelRequest], Awaitable[~.NotificationChannel]]: @@ -413,6 +421,12 @@ def update_notification_channel( Updates a notification channel. Fields not specified in the field mask remain unchanged. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + Returns: Callable[[~.UpdateNotificationChannelRequest], Awaitable[~.NotificationChannel]]: @@ -442,6 +456,12 @@ def delete_notification_channel( Deletes a notification channel. + Design your application to single-thread API calls that + modify the state of notification channels in a single + project. This includes calls to + CreateNotificationChannel, DeleteNotificationChannel and + UpdateNotificationChannel. + Returns: Callable[[~.DeleteNotificationChannelRequest], Awaitable[~.Empty]]: diff --git a/google/cloud/monitoring_v3/services/query_service/__init__.py b/google/cloud/monitoring_v3/services/query_service/__init__.py index 8a5a1a9c..554c9550 100644 --- a/google/cloud/monitoring_v3/services/query_service/__init__.py +++ b/google/cloud/monitoring_v3/services/query_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 ce314ea2..e5a5dc4b 100644 --- a/google/cloud/monitoring_v3/services/query_service/async_client.py +++ b/google/cloud/monitoring_v3/services/query_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/query_service/client.py b/google/cloud/monitoring_v3/services/query_service/client.py index 02f7a6df..f54f6a59 100644 --- a/google/cloud/monitoring_v3/services/query_service/client.py +++ b/google/cloud/monitoring_v3/services/query_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/query_service/pagers.py b/google/cloud/monitoring_v3/services/query_service/pagers.py index d44db766..ca657dd6 100644 --- a/google/cloud/monitoring_v3/services/query_service/pagers.py +++ b/google/cloud/monitoring_v3/services/query_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/query_service/transports/__init__.py b/google/cloud/monitoring_v3/services/query_service/transports/__init__.py index 896dfeb1..b8e14cca 100644 --- a/google/cloud/monitoring_v3/services/query_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/query_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/query_service/transports/base.py b/google/cloud/monitoring_v3/services/query_service/transports/base.py index e60ced7c..ae1f1ee4 100644 --- a/google/cloud/monitoring_v3/services/query_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/query_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/query_service/transports/grpc.py b/google/cloud/monitoring_v3/services/query_service/transports/grpc.py index 2e85015e..65be31c1 100644 --- a/google/cloud/monitoring_v3/services/query_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/query_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/query_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/query_service/transports/grpc_asyncio.py index 55620ee7..61c80d1b 100644 --- a/google/cloud/monitoring_v3/services/query_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/query_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/__init__.py b/google/cloud/monitoring_v3/services/service_monitoring_service/__init__.py index 775fda5c..294ee48e 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/__init__.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 1e9f1bd2..be30c943 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 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 f90892c5..7578d2ed 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/client.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/pagers.py b/google/cloud/monitoring_v3/services/service_monitoring_service/pagers.py index 987b2e86..340996e6 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/pagers.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/__init__.py b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/__init__.py index 2a5440ea..edebee08 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/base.py b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/base.py index dbc5ca5e..1506fbf9 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc.py b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc.py index d0fe7ae2..c179b0bb 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc_asyncio.py index b718fccc..eb507937 100644 --- a/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/service_monitoring_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/__init__.py b/google/cloud/monitoring_v3/services/snooze_service/__init__.py index c750b0ce..f08c0798 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/__init__.py +++ b/google/cloud/monitoring_v3/services/snooze_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 cfb677a8..c335ec22 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/async_client.py +++ b/google/cloud/monitoring_v3/services/snooze_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/client.py b/google/cloud/monitoring_v3/services/snooze_service/client.py index 14b265b9..45ee4c7a 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/client.py +++ b/google/cloud/monitoring_v3/services/snooze_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/pagers.py b/google/cloud/monitoring_v3/services/snooze_service/pagers.py index 6dc25b15..658e37ae 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/pagers.py +++ b/google/cloud/monitoring_v3/services/snooze_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/transports/__init__.py b/google/cloud/monitoring_v3/services/snooze_service/transports/__init__.py index 41113c93..13442f29 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/snooze_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/transports/base.py b/google/cloud/monitoring_v3/services/snooze_service/transports/base.py index 827548b6..95ba8574 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/snooze_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/transports/grpc.py b/google/cloud/monitoring_v3/services/snooze_service/transports/grpc.py index 32f2a6a4..34a66b9d 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/snooze_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/snooze_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/snooze_service/transports/grpc_asyncio.py index 9f8946fa..fd44e1dc 100644 --- a/google/cloud/monitoring_v3/services/snooze_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/snooze_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/__init__.py b/google/cloud/monitoring_v3/services/uptime_check_service/__init__.py index fd938eee..99dfd214 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/__init__.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 eeb8195e..613a21b5 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 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. 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 87dfac96..0d4a05a3 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/client.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/pagers.py b/google/cloud/monitoring_v3/services/uptime_check_service/pagers.py index 76724b86..db598033 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/pagers.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/transports/__init__.py b/google/cloud/monitoring_v3/services/uptime_check_service/transports/__init__.py index 9505fb5e..08d9436d 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/transports/__init__.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/transports/base.py b/google/cloud/monitoring_v3/services/uptime_check_service/transports/base.py index e9c2091d..c765fbc3 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/transports/base.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc.py b/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc.py index 3751442c..d03ae140 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc_asyncio.py b/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc_asyncio.py index 6889c16d..2e19ee64 100644 --- a/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc_asyncio.py +++ b/google/cloud/monitoring_v3/services/uptime_check_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/__init__.py b/google/cloud/monitoring_v3/types/__init__.py index c9524827..bdc70371 100644 --- a/google/cloud/monitoring_v3/types/__init__.py +++ b/google/cloud/monitoring_v3/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/alert.py b/google/cloud/monitoring_v3/types/alert.py index 9c969586..58bf3507 100644 --- a/google/cloud/monitoring_v3/types/alert.py +++ b/google/cloud/monitoring_v3/types/alert.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,12 +56,19 @@ class AlertPolicy(proto.Message): method, do not include the ``name`` field in the alerting policy passed as part of the request. display_name (str): - A short name or phrase used to identify the - policy in dashboards, notifications, and - incidents. To avoid confusion, don't use the - same display name for multiple policies in the - same project. The name is limited to 512 Unicode - characters. + A short name or phrase used to identify the policy in + dashboards, notifications, and incidents. To avoid + confusion, don't use the same display name for multiple + policies in the same project. The name is limited to 512 + Unicode characters. + + The convention for the display_name of a + PrometheusQueryLanguageCondition is "{rule group + name}/{alert name}", where the {rule group name} and {alert + name} should be taken from the corresponding Prometheus + configuration file. This convention is not enforced. In any + case the display_name is not a unique key of the + AlertPolicy. documentation (google.cloud.monitoring_v3.types.AlertPolicy.Documentation): Documentation that is included with notifications and incidents related to this @@ -80,13 +87,23 @@ class AlertPolicy(proto.Message): is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter. + + Note that Prometheus {alert name} is a `valid Prometheus + label + names `__, + whereas Prometheus {rule group} is an unrestricted UTF-8 + string. This means that they cannot be stored as-is in user + labels, because they may contain characters that are not + allowed in user-label values. conditions (MutableSequence[google.cloud.monitoring_v3.types.AlertPolicy.Condition]): A list of conditions for the policy. The conditions are combined by AND or OR according to the ``combiner`` field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If ``condition_time_series_query_language`` is - present, it must be the only ``condition``. + present, it must be the only ``condition``. If + ``condition_monitoring_query_language`` is present, it must + be the only ``condition``. combiner (google.cloud.monitoring_v3.types.AlertPolicy.ConditionCombinerType): How to combine the results of multiple conditions to determine if an incident should be opened. If @@ -103,9 +120,9 @@ class AlertPolicy(proto.Message): that strips it out. validity (google.rpc.status_pb2.Status): Read-only description of how the alert policy - is invalid. OK if the alert policy is valid. If - not OK, the alert policy will not generate - incidents. + is invalid. This field is only set when the + alert policy is invalid. An invalid alert policy + will not generate incidents. notification_channels (MutableSequence[str]): Identifies the notification channels to which notifications should be sent when incidents are opened or closed or when @@ -166,7 +183,7 @@ class Documentation(proto.Message): Attributes: content (str): - The text of the documentation, interpreted according to + The body of the documentation, interpreted according to ``mime_type``. The content may not exceed 8,192 Unicode characters and may not exceed more than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. This text can @@ -177,6 +194,23 @@ class Documentation(proto.Message): value ``"text/markdown"`` is supported. See `Markdown `__ for more information. + subject (str): + Optional. The subject line of the notification. The subject + line may not exceed 10,240 bytes. In notifications generated + by this policy, the contents of the subject line after + variable expansion will be truncated to 255 bytes or shorter + at the latest UTF-8 character boundary. The 255-byte limit + is recommended by `this + thread `__. + It is both the limit imposed by some third-party ticketing + products and it is common to define textual fields in + databases as VARCHAR(255). + + The contents of the subject line can be `templatized by + using + variables `__. + If this field is missing or empty, a default subject line + will be generated. """ content: str = proto.Field( @@ -187,6 +221,10 @@ class Documentation(proto.Message): proto.STRING, number=2, ) + subject: str = proto.Field( + proto.STRING, + number=3, + ) class Condition(proto.Message): r"""A condition is a true/false test that determines when an @@ -257,6 +295,11 @@ class Condition(proto.Message): A condition that uses the Monitoring Query Language to define alerts. + This field is a member of `oneof`_ ``condition``. + condition_prometheus_query_language (google.cloud.monitoring_v3.types.AlertPolicy.Condition.PrometheusQueryLanguageCondition): + A condition that uses the Prometheus query + language to define alerts. + This field is a member of `oneof`_ ``condition``. """ @@ -377,6 +420,12 @@ class MetricThreshold(proto.Message): ``denominator_aggregations`` fields must use the same alignment period and produce time series that have the same periodicity and labels. + forecast_options (google.cloud.monitoring_v3.types.AlertPolicy.Condition.MetricThreshold.ForecastOptions): + When this field is present, the ``MetricThreshold`` + condition forecasts whether the time series is predicted to + violate the threshold within the ``forecast_horizon``. When + this field is not set, the ``MetricThreshold`` tests the + current value of the timeseries against the threshold. comparison (google.cloud.monitoring_v3.types.ComparisonType): The comparison to apply between the time series (indicated by ``filter`` and ``aggregation``) and the threshold @@ -415,6 +464,26 @@ class MetricThreshold(proto.Message): data stops arriving. """ + class ForecastOptions(proto.Message): + r"""Options used when forecasting the time series and testing + the predicted value against the threshold. + + Attributes: + forecast_horizon (google.protobuf.duration_pb2.Duration): + Required. The length of time into the future to forecast + whether a time series will violate the threshold. If the + predicted value is found to violate the threshold, and the + violation is observed in all forecasts made for the + configured ``duration``, then the time series is considered + to be failing. + """ + + forecast_horizon: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=1, + message=duration_pb2.Duration, + ) + filter: str = proto.Field( proto.STRING, number=2, @@ -435,6 +504,11 @@ class MetricThreshold(proto.Message): number=10, message=common.Aggregation, ) + forecast_options: "AlertPolicy.Condition.MetricThreshold.ForecastOptions" = proto.Field( + proto.MESSAGE, + number=12, + message="AlertPolicy.Condition.MetricThreshold.ForecastOptions", + ) comparison: common.ComparisonType = proto.Field( proto.ENUM, number=4, @@ -626,6 +700,134 @@ class MonitoringQueryLanguageCondition(proto.Message): ) ) + class PrometheusQueryLanguageCondition(proto.Message): + r"""A condition type that allows alert policies to be defined using + `Prometheus Query Language + (PromQL) `__. + + The PrometheusQueryLanguageCondition message contains information + from a Prometheus alerting rule and its associated rule group. + + A Prometheus alerting rule is described + `here `__. + The semantics of a Prometheus alerting rule is described + `here `__. + + A Prometheus rule group is described + `here `__. + The semantics of a Prometheus rule group is described + `here `__. + + Because Cloud Alerting has no representation of a Prometheus rule + group resource, we must embed the information of the parent rule + group inside each of the conditions that refer to it. We must also + update the contents of all Prometheus alerts in case the information + of their rule group changes. + + The PrometheusQueryLanguageCondition protocol buffer combines the + information of the corresponding rule group and alerting rule. The + structure of the PrometheusQueryLanguageCondition protocol buffer + does NOT mimic the structure of the Prometheus rule group and + alerting rule YAML declarations. The + PrometheusQueryLanguageCondition protocol buffer may change in the + future to support future rule group and/or alerting rule features. + There are no new such features at the present time (2023-06-26). + + Attributes: + query (str): + Required. The PromQL expression to evaluate. + Every evaluation cycle this expression is + evaluated at the current time, and all resultant + time series become pending/firing alerts. This + field must not be empty. + duration (google.protobuf.duration_pb2.Duration): + Optional. Alerts are considered firing once + their PromQL expression was evaluated to be + "true" for this long. Alerts whose PromQL + expression was not evaluated to be "true" for + long enough are considered pending. + Must be a non-negative duration or missing. + This field is optional. Its default value is + zero. + evaluation_interval (google.protobuf.duration_pb2.Duration): + Optional. How often this rule should be + evaluated. Must be a positive multiple of 30 + seconds or missing. This field is optional. Its + default value is 30 seconds. If this + PrometheusQueryLanguageCondition was generated + from a Prometheus alerting rule, then this value + should be taken from the enclosing rule group. + labels (MutableMapping[str, str]): + Optional. Labels to add to or overwrite in the PromQL query + result. Label names `must be + valid `__. + Label values can be `templatized by using + variables `__. + The only available variable names are the names of the + labels in the PromQL result, including "**name**" and + "value". "labels" may be empty. + rule_group (str): + Optional. The rule group name of this alert + in the corresponding Prometheus configuration + file. + + Some external tools may require this field to be + populated correctly in order to refer to the + original Prometheus configuration file. The rule + group name and the alert name are necessary to + update the relevant AlertPolicies in case the + definition of the rule group changes in the + future. + + This field is optional. If this field is not + empty, then it must contain a valid UTF-8 + string. + This field may not exceed 2048 Unicode + characters in length. + alert_rule (str): + Optional. The alerting rule name of this alert in the + corresponding Prometheus configuration file. + + Some external tools may require this field to be populated + correctly in order to refer to the original Prometheus + configuration file. The rule group name and the alert name + are necessary to update the relevant AlertPolicies in case + the definition of the rule group changes in the future. + + This field is optional. If this field is not empty, then it + must be a `valid Prometheus label + name `__. + This field may not exceed 2048 Unicode characters in length. + """ + + query: str = proto.Field( + proto.STRING, + number=1, + ) + duration: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=2, + message=duration_pb2.Duration, + ) + evaluation_interval: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=3, + message=duration_pb2.Duration, + ) + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=4, + ) + rule_group: str = proto.Field( + proto.STRING, + number=5, + ) + alert_rule: str = proto.Field( + proto.STRING, + number=6, + ) + name: str = proto.Field( proto.STRING, number=12, @@ -658,6 +860,12 @@ class MonitoringQueryLanguageCondition(proto.Message): oneof="condition", message="AlertPolicy.Condition.MonitoringQueryLanguageCondition", ) + condition_prometheus_query_language: "AlertPolicy.Condition.PrometheusQueryLanguageCondition" = proto.Field( + proto.MESSAGE, + number=21, + oneof="condition", + message="AlertPolicy.Condition.PrometheusQueryLanguageCondition", + ) class AlertStrategy(proto.Message): r"""Control over how the notification channels in @@ -673,6 +881,9 @@ class AlertStrategy(proto.Message): If an alert policy that was active has no data for this long, any open incidents will close + notification_channel_strategy (MutableSequence[google.cloud.monitoring_v3.types.AlertPolicy.AlertStrategy.NotificationChannelStrategy]): + Control how notifications will be sent out, + on a per-channel basis. """ class NotificationRateLimit(proto.Message): @@ -690,6 +901,37 @@ class NotificationRateLimit(proto.Message): message=duration_pb2.Duration, ) + class NotificationChannelStrategy(proto.Message): + r"""Control over how the notification channels in + ``notification_channels`` are notified when this alert fires, on a + per-channel basis. + + Attributes: + notification_channel_names (MutableSequence[str]): + The full REST resource name for the notification channels + that these settings apply to. Each of these correspond to + the name field in one of the NotificationChannel objects + referenced in the notification_channels field of this + AlertPolicy. The format is: + + :: + + projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + renotify_interval (google.protobuf.duration_pb2.Duration): + The frequency at which to send reminder + notifications for open incidents. + """ + + notification_channel_names: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=1, + ) + renotify_interval: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=2, + message=duration_pb2.Duration, + ) + notification_rate_limit: "AlertPolicy.AlertStrategy.NotificationRateLimit" = ( proto.Field( proto.MESSAGE, @@ -702,6 +944,13 @@ class NotificationRateLimit(proto.Message): number=3, message=duration_pb2.Duration, ) + notification_channel_strategy: MutableSequence[ + "AlertPolicy.AlertStrategy.NotificationChannelStrategy" + ] = proto.RepeatedField( + proto.MESSAGE, + number=4, + message="AlertPolicy.AlertStrategy.NotificationChannelStrategy", + ) name: str = proto.Field( proto.STRING, diff --git a/google/cloud/monitoring_v3/types/alert_service.py b/google/cloud/monitoring_v3/types/alert_service.py index 9f634c85..58f9c1cd 100644 --- a/google/cloud/monitoring_v3/types/alert_service.py +++ b/google/cloud/monitoring_v3/types/alert_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/common.py b/google/cloud/monitoring_v3/types/common.py index fa6715b6..53776216 100644 --- a/google/cloud/monitoring_v3/types/common.py +++ b/google/cloud/monitoring_v3/types/common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/dropped_labels.py b/google/cloud/monitoring_v3/types/dropped_labels.py index 460d8b3f..93d1bd0d 100644 --- a/google/cloud/monitoring_v3/types/dropped_labels.py +++ b/google/cloud/monitoring_v3/types/dropped_labels.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/group.py b/google/cloud/monitoring_v3/types/group.py index bd09098c..e6e82074 100644 --- a/google/cloud/monitoring_v3/types/group.py +++ b/google/cloud/monitoring_v3/types/group.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/group_service.py b/google/cloud/monitoring_v3/types/group_service.py index 0305beec..4196a2bf 100644 --- a/google/cloud/monitoring_v3/types/group_service.py +++ b/google/cloud/monitoring_v3/types/group_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/metric.py b/google/cloud/monitoring_v3/types/metric.py index 0fe120fb..14c22788 100644 --- a/google/cloud/monitoring_v3/types/metric.py +++ b/google/cloud/monitoring_v3/types/metric.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/metric_service.py b/google/cloud/monitoring_v3/types/metric_service.py index e7d49919..7c245f3c 100644 --- a/google/cloud/monitoring_v3/types/metric_service.py +++ b/google/cloud/monitoring_v3/types/metric_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/mutation_record.py b/google/cloud/monitoring_v3/types/mutation_record.py index faf306d0..8fb9e8fd 100644 --- a/google/cloud/monitoring_v3/types/mutation_record.py +++ b/google/cloud/monitoring_v3/types/mutation_record.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/notification.py b/google/cloud/monitoring_v3/types/notification.py index c283cd3a..8ff93683 100644 --- a/google/cloud/monitoring_v3/types/notification.py +++ b/google/cloud/monitoring_v3/types/notification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/notification_service.py b/google/cloud/monitoring_v3/types/notification_service.py index 1bbe4c19..66c93b35 100644 --- a/google/cloud/monitoring_v3/types/notification_service.py +++ b/google/cloud/monitoring_v3/types/notification_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/query_service.py b/google/cloud/monitoring_v3/types/query_service.py index 6fea046e..b494c95c 100644 --- a/google/cloud/monitoring_v3/types/query_service.py +++ b/google/cloud/monitoring_v3/types/query_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/service.py b/google/cloud/monitoring_v3/types/service.py index 51a0282d..669e3e0d 100644 --- a/google/cloud/monitoring_v3/types/service.py +++ b/google/cloud/monitoring_v3/types/service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/service_service.py b/google/cloud/monitoring_v3/types/service_service.py index 5e04832f..9d025f60 100644 --- a/google/cloud/monitoring_v3/types/service_service.py +++ b/google/cloud/monitoring_v3/types/service_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/snooze.py b/google/cloud/monitoring_v3/types/snooze.py index 58ae9fd8..c0ead05c 100644 --- a/google/cloud/monitoring_v3/types/snooze.py +++ b/google/cloud/monitoring_v3/types/snooze.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -73,7 +73,7 @@ class Criteria(proto.Message): projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] - There is a limit of 10 policies per snooze. This limit is + There is a limit of 16 policies per snooze. This limit is checked during snooze creation. """ diff --git a/google/cloud/monitoring_v3/types/snooze_service.py b/google/cloud/monitoring_v3/types/snooze_service.py index 7cba4953..faa1dfa3 100644 --- a/google/cloud/monitoring_v3/types/snooze_service.py +++ b/google/cloud/monitoring_v3/types/snooze_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/span_context.py b/google/cloud/monitoring_v3/types/span_context.py index 77601b3c..026b7fd9 100644 --- a/google/cloud/monitoring_v3/types/span_context.py +++ b/google/cloud/monitoring_v3/types/span_context.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/uptime.py b/google/cloud/monitoring_v3/types/uptime.py index 46cd8fcf..4627271d 100644 --- a/google/cloud/monitoring_v3/types/uptime.py +++ b/google/cloud/monitoring_v3/types/uptime.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/monitoring_v3/types/uptime_service.py b/google/cloud/monitoring_v3/types/uptime_service.py index 0242960d..c2e8e876 100644 --- a/google/cloud/monitoring_v3/types/uptime_service.py +++ b/google/cloud/monitoring_v3/types/uptime_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/noxfile.py b/noxfile.py index 50dd27a4..83bdc2cf 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2018 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,21 +17,24 @@ # Generated by synthtool. DO NOT EDIT! from __future__ import absolute_import + import os import pathlib import re import shutil +from typing import Dict, List import warnings import nox -BLACK_VERSION = "black==22.3.0" -ISORT_VERSION = "isort==5.10.1" +FLAKE8_VERSION = "flake8==6.1.0" +BLACK_VERSION = "black[jupyter]==23.7.0" +ISORT_VERSION = "isort==5.11.0" LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] DEFAULT_PYTHON_VERSION = "3.8" -UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] +UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"] UNIT_TEST_STANDARD_DEPENDENCIES = [ "mock", "asyncmock", @@ -39,27 +42,27 @@ "pytest-cov", "pytest-asyncio", ] -UNIT_TEST_EXTERNAL_DEPENDENCIES = [] -UNIT_TEST_LOCAL_DEPENDENCIES = [] -UNIT_TEST_DEPENDENCIES = [] -UNIT_TEST_EXTRAS = [ +UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] +UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = [] +UNIT_TEST_DEPENDENCIES: List[str] = [] +UNIT_TEST_EXTRAS: List[str] = [ "pandas", ] -UNIT_TEST_EXTRAS_BY_PYTHON = {} +UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] -SYSTEM_TEST_STANDARD_DEPENDENCIES = [ +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"] +SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ "mock", "pytest", "google-cloud-testutils", ] -SYSTEM_TEST_EXTERNAL_DEPENDENCIES = [] -SYSTEM_TEST_LOCAL_DEPENDENCIES = [] -SYSTEM_TEST_DEPENDENCIES = [] -SYSTEM_TEST_EXTRAS = [ +SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] +SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = [] +SYSTEM_TEST_DEPENDENCIES: List[str] = [] +SYSTEM_TEST_EXTRAS: List[str] = [ "pandas", ] -SYSTEM_TEST_EXTRAS_BY_PYTHON = {} +SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() @@ -72,6 +75,7 @@ "lint_setup_py", "blacken", "docs", + "format", ] # Error if a python version is missing @@ -85,7 +89,7 @@ def lint(session): Returns a failure if the linters find linting errors or sufficiently serious code quality issues. """ - session.install("flake8", BLACK_VERSION) + session.install(FLAKE8_VERSION, BLACK_VERSION) session.run( "black", "--check", @@ -190,7 +194,6 @@ def unit(session): def install_systemtest_dependencies(session, *constraints): - # Use pre-release gRPC for system tests. # Exclude version 1.52.0rc1 which has a known issue. # See https://github.com/grpc/grpc/issues/32163 @@ -403,6 +406,7 @@ def prerelease_deps(session): "python", "-c", "import google.protobuf; print(google.protobuf.__version__)" ) session.run("python", "-c", "import grpc; print(grpc.__version__)") + session.run("python", "-c", "import google.auth; print(google.auth.__version__)") session.run("py.test", "tests/unit") diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_async.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_async.py index 6086110b..388a1324 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_async.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_sync.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_sync.py index e01f0ce4..f121ca93 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_create_alert_policy_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_async.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_async.py index e1b35652..ee365c7e 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_async.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_sync.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_sync.py index 9e245fcc..efa85ec5 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_delete_alert_policy_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_async.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_async.py index 41b7c4ae..b056b44d 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_async.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_sync.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_sync.py index a9ee89a2..1db11b80 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_get_alert_policy_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_async.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_async.py index 75808ccd..1a51c682 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_async.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_sync.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_sync.py index e58f6024..c2aa1881 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_list_alert_policies_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_async.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_async.py index 1aa197f6..ad1e2ebb 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_async.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_sync.py b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_sync.py index a9160b78..88489b2b 100644 --- a/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_alert_policy_service_update_alert_policy_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_create_group_async.py b/samples/generated_samples/monitoring_v3_generated_group_service_create_group_async.py index 0b958456..442a1060 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_create_group_async.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_create_group_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_create_group_sync.py b/samples/generated_samples/monitoring_v3_generated_group_service_create_group_sync.py index 51225e3c..147d2c75 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_create_group_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_create_group_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_async.py b/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_async.py index 00544970..58e50412 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_async.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_sync.py b/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_sync.py index 13c7fa2a..812a2038 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_delete_group_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_get_group_async.py b/samples/generated_samples/monitoring_v3_generated_group_service_get_group_async.py index b1aab892..434d219d 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_get_group_async.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_get_group_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_get_group_sync.py b/samples/generated_samples/monitoring_v3_generated_group_service_get_group_sync.py index 49e476fb..364ae58c 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_get_group_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_get_group_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_async.py b/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_async.py index e45571c1..5984890b 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_async.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_sync.py b/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_sync.py index b302ec65..0f638482 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_list_group_members_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_async.py b/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_async.py index 58a541cf..ba987741 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_async.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_sync.py b/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_sync.py index cd516eca..60032db3 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_list_groups_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_update_group_async.py b/samples/generated_samples/monitoring_v3_generated_group_service_update_group_async.py index 13317dad..15d11667 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_update_group_async.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_update_group_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_group_service_update_group_sync.py b/samples/generated_samples/monitoring_v3_generated_group_service_update_group_sync.py index 1a5bdc84..aea1549e 100644 --- a/samples/generated_samples/monitoring_v3_generated_group_service_update_group_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_group_service_update_group_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_async.py index ac52b0af..ff28f4f8 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_sync.py index 425dd9fb..e9148fef 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_create_metric_descriptor_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_async.py index 6b20a7a5..7c094812 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_sync.py index 68a76921..658df424 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_create_service_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_async.py index 98e60c05..4f7bf02a 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_sync.py index 3c78ce1c..1cfb8c1f 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_create_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_async.py index 2cec78c9..9f0e88e4 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_sync.py index 92c99cf9..0b925a5a 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_delete_metric_descriptor_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_async.py index 300f7a5d..522d18cd 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_sync.py index 46763363..7f562c22 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_get_metric_descriptor_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_async.py index fb51531f..13c988b3 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_sync.py index 8920c790..ef77253f 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_get_monitored_resource_descriptor_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_async.py index 08c8d838..bfedabae 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_sync.py index 31d03e32..0bade30b 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_list_metric_descriptors_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_async.py index d773435a..4ba12bb0 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_sync.py index 33fec385..06839ebe 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_list_monitored_resource_descriptors_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_async.py b/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_async.py index 0acd8e9d..cbd80d63 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_async.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_sync.py b/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_sync.py index 896be2f0..918d9dd8 100644 --- a/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_metric_service_list_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_async.py index 34ca9c4b..7281b1d9 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_sync.py index 2c2120a7..9309de7d 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_create_notification_channel_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_async.py index d3258a57..341a9524 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_sync.py index 3548f54d..22a759ba 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_delete_notification_channel_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_async.py index 5b359c2a..43e4361c 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_async.py index 622ec952..ec38ecc0 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_sync.py index a6171e8c..fc70075d 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_descriptor_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_sync.py index 517adad9..793d0405 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_async.py index 80cefe90..7921fe26 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_sync.py index ed917396..1b860a95 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_get_notification_channel_verification_code_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_async.py index 98fe7526..f43746e3 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_sync.py index e3dc263c..8c8b5780 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channel_descriptors_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_async.py index b8b78c03..e7a030c4 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_sync.py index 974dda24..b5222c9a 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_list_notification_channels_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_async.py index 1e55dad0..208748ad 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_sync.py index 9d6ff3fb..435eec3d 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_send_notification_channel_verification_code_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_async.py index 060d6389..a461484c 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_sync.py index 022003b3..ec3990d5 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_update_notification_channel_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_async.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_async.py index d569cbeb..9158cae3 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_async.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_sync.py b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_sync.py index 909745e2..9d88d1cf 100644 --- a/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_notification_channel_service_verify_notification_channel_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_async.py b/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_async.py index fea426a8..0ec8b3c0 100644 --- a/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_async.py +++ b/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_sync.py b/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_sync.py index b5de5097..d2f63d6b 100644 --- a/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_query_service_query_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_async.py index 3557df63..8caef0bd 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_async.py index b7132dfa..7c90dce0 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_sync.py index 07a1dafc..108cf5f8 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_level_objective_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_sync.py index 4da88964..429cd076 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_create_service_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_async.py index 1040f02b..0b15e3c4 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_async.py index d9deb48a..24a916f4 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_sync.py index 9ebce604..59eb4875 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_level_objective_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_sync.py index 3d2c73d9..e0b2a06f 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_delete_service_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_async.py index 38d50663..507d0a36 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_async.py index faa4453d..656b26ef 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_sync.py index ef2dfa62..4056f77a 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_level_objective_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_sync.py index 02c9bd2f..c6a03863 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_get_service_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_async.py index a3979220..baadeb4c 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_sync.py index 2cdcfb87..f793db0b 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_service_level_objectives_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_async.py index ba174f5e..d6dc4283 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_sync.py index fedeb68e..d4240ff7 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_list_services_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_async.py index 4aec6f8b..bd24f819 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_async.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_async.py index 31b9d3f7..d0fcbd22 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_async.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_sync.py index 518e53b1..bc161936 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_level_objective_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_sync.py b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_sync.py index fff6a9a1..ce0f5329 100644 --- a/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_service_monitoring_service_update_service_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_async.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_async.py index 7b1564d1..e95696b2 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_async.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_sync.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_sync.py index 8f364237..6c07e390 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_create_snooze_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_async.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_async.py index 80ac6c8f..8f04fe53 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_async.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_sync.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_sync.py index bd8bb388..2d76342e 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_get_snooze_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_async.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_async.py index b7e78eaf..45c876a0 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_async.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_sync.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_sync.py index bb6c504a..f4628f8a 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_list_snoozes_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_async.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_async.py index 37c43908..c3e87a63 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_async.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_sync.py b/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_sync.py index 154c2915..e26ee257 100644 --- a/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_snooze_service_update_snooze_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_async.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_async.py index c739d8d1..e3716016 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_async.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_sync.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_sync.py index d8e7e4fe..6f9f1e2f 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_create_uptime_check_config_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_async.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_async.py index 95b60323..1ce4f1e4 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_async.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_sync.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_sync.py index fa481f71..a684388b 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_delete_uptime_check_config_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_async.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_async.py index 14d54fa6..7496072a 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_async.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_sync.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_sync.py index fa33cedd..7c24c82c 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_get_uptime_check_config_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_async.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_async.py index 4ec62954..273075b4 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_async.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_sync.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_sync.py index edef20e2..eed7e526 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_configs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_async.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_async.py index a3219739..c5b5b3ea 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_async.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_sync.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_sync.py index 433a70b1..014d85ed 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_list_uptime_check_ips_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_async.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_async.py index d0e5d360..272fd1c9 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_async.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_sync.py b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_sync.py index c8b04241..c8a8816b 100644 --- a/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_sync.py +++ b/samples/generated_samples/monitoring_v3_generated_uptime_check_service_update_uptime_check_config_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/snippet_metadata_google.monitoring.v3.json b/samples/generated_samples/snippet_metadata_google.monitoring.v3.json index 583fc6c7..9503e0f2 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.15.1" + "version": "2.16.0" }, "snippets": [ { diff --git a/scripts/decrypt-secrets.sh b/scripts/decrypt-secrets.sh index 21f6d2a2..0018b421 100755 --- a/scripts/decrypt-secrets.sh +++ b/scripts/decrypt-secrets.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. +# Copyright 2023 Google LLC All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/scripts/fixup_monitoring_v3_keywords.py b/scripts/fixup_monitoring_v3_keywords.py index 60275b44..5644b774 100644 --- a/scripts/fixup_monitoring_v3_keywords.py +++ b/scripts/fixup_monitoring_v3_keywords.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/scripts/readme-gen/readme_gen.py b/scripts/readme-gen/readme_gen.py index 91b59676..1acc1198 100644 --- a/scripts/readme-gen/readme_gen.py +++ b/scripts/readme-gen/readme_gen.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2016 Google Inc +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,17 +33,17 @@ autoescape=True, ) -README_TMPL = jinja_env.get_template('README.tmpl.rst') +README_TMPL = jinja_env.get_template("README.tmpl.rst") def get_help(file): - return subprocess.check_output(['python', file, '--help']).decode() + return subprocess.check_output(["python", file, "--help"]).decode() def main(): parser = argparse.ArgumentParser() - parser.add_argument('source') - parser.add_argument('--destination', default='README.rst') + parser.add_argument("source") + parser.add_argument("--destination", default="README.rst") args = parser.parse_args() @@ -51,9 +51,9 @@ def main(): root = os.path.dirname(source) destination = os.path.join(root, args.destination) - jinja_env.globals['get_help'] = get_help + jinja_env.globals["get_help"] = get_help - with io.open(source, 'r') as f: + with io.open(source, "r") as f: config = yaml.load(f) # This allows get_help to execute in the right directory. @@ -61,9 +61,9 @@ def main(): output = README_TMPL.render(config) - with io.open(destination, 'w') as f: + with io.open(destination, "w") as f: f.write(output) -if __name__ == '__main__': +if __name__ == "__main__": main() diff --git a/setup.cfg b/setup.cfg index c3a2b39f..05235008 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/__init__.py b/tests/__init__.py index e8e1c384..89a37dc9 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index e8e1c384..89a37dc9 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/__init__.py b/tests/unit/gapic/__init__.py index e8e1c384..89a37dc9 100644 --- a/tests/unit/gapic/__init__.py +++ b/tests/unit/gapic/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/__init__.py b/tests/unit/gapic/monitoring_v3/__init__.py index e8e1c384..89a37dc9 100644 --- a/tests/unit/gapic/monitoring_v3/__init__.py +++ b/tests/unit/gapic/monitoring_v3/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_alert_policy_service.py b/tests/unit/gapic/monitoring_v3/test_alert_policy_service.py index 87968c16..1011c6f5 100644 --- a/tests/unit/gapic/monitoring_v3/test_alert_policy_service.py +++ b/tests/unit/gapic/monitoring_v3/test_alert_policy_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_group_service.py b/tests/unit/gapic/monitoring_v3/test_group_service.py index dc7908f8..041dbd4c 100644 --- a/tests/unit/gapic/monitoring_v3/test_group_service.py +++ b/tests/unit/gapic/monitoring_v3/test_group_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_metric_service.py b/tests/unit/gapic/monitoring_v3/test_metric_service.py index 22cb780b..bb34076b 100644 --- a/tests/unit/gapic/monitoring_v3/test_metric_service.py +++ b/tests/unit/gapic/monitoring_v3/test_metric_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_notification_channel_service.py b/tests/unit/gapic/monitoring_v3/test_notification_channel_service.py index 6ac83041..87d1699a 100644 --- a/tests/unit/gapic/monitoring_v3/test_notification_channel_service.py +++ b/tests/unit/gapic/monitoring_v3/test_notification_channel_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_query_service.py b/tests/unit/gapic/monitoring_v3/test_query_service.py index 2df43ed3..132f652e 100644 --- a/tests/unit/gapic/monitoring_v3/test_query_service.py +++ b/tests/unit/gapic/monitoring_v3/test_query_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_service_monitoring_service.py b/tests/unit/gapic/monitoring_v3/test_service_monitoring_service.py index 09a81789..d253d947 100644 --- a/tests/unit/gapic/monitoring_v3/test_service_monitoring_service.py +++ b/tests/unit/gapic/monitoring_v3/test_service_monitoring_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_snooze_service.py b/tests/unit/gapic/monitoring_v3/test_snooze_service.py index 59e4573f..e19939c4 100644 --- a/tests/unit/gapic/monitoring_v3/test_snooze_service.py +++ b/tests/unit/gapic/monitoring_v3/test_snooze_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/monitoring_v3/test_uptime_check_service.py b/tests/unit/gapic/monitoring_v3/test_uptime_check_service.py index fc4bdae9..3f4dc1c3 100644 --- a/tests/unit/gapic/monitoring_v3/test_uptime_check_service.py +++ b/tests/unit/gapic/monitoring_v3/test_uptime_check_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.