diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 894fb6b..b8edda5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cbd7e77..ec867d9 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -1,10 +1,10 @@ gcp-docuploader -gcp-releasetool +gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x importlib-metadata typing-extensions twine wheel setuptools -nox +nox>=2022.11.21 # required to remove dependency on py charset-normalizer<3 click<8.1.0 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 096e480..66a2172 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in # @@ -154,9 +154,9 @@ gcp-docuploader==0.6.4 \ --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in -gcp-releasetool==1.10.0 \ - --hash=sha256:72a38ca91b59c24f7e699e9227c90cbe4dd71b789383cb0164b088abae294c83 \ - --hash=sha256:8c7c99320208383d4bb2b808c6880eb7a81424afe7cdba3c8d84b25f4f0e097d +gcp-releasetool==1.10.5 \ + --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ + --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 # via -r requirements.in google-api-core==2.10.2 \ --hash=sha256:10c06f7739fe57781f87523375e8e1a3a4674bf6392cd6131a3222182b971320 \ @@ -335,9 +335,9 @@ more-itertools==9.0.0 \ --hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \ --hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab # via jaraco-classes -nox==2022.8.7 \ - --hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \ - --hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c +nox==2022.11.21 \ + --hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \ + --hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684 # via -r requirements.in packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ @@ -380,10 +380,6 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core -py==1.11.0 \ - --hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \ - --hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378 - # via nox pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a09efe7..87f5de0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.12.0" + ".": "1.12.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 836a561..2cc205f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-websecurityscanner/#history +## [1.12.1](https://github.com/googleapis/python-websecurityscanner/compare/v1.12.0...v1.12.1) (2023-03-23) + + +### Documentation + +* Fix formatting of request arg in docstring ([#269](https://github.com/googleapis/python-websecurityscanner/issues/269)) ([1fa62df](https://github.com/googleapis/python-websecurityscanner/commit/1fa62df90fcba5a31bef1a31c8f1ccdaa5e44cfa)) + ## [1.12.0](https://github.com/googleapis/python-websecurityscanner/compare/v1.11.1...v1.12.0) (2023-02-09) diff --git a/google/cloud/websecurityscanner/gapic_version.py b/google/cloud/websecurityscanner/gapic_version.py index 7138f21..0d065af 100644 --- a/google/cloud/websecurityscanner/gapic_version.py +++ b/google/cloud/websecurityscanner/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.0" # {x-release-please-version} +__version__ = "1.12.1" # {x-release-please-version} diff --git a/google/cloud/websecurityscanner_v1/gapic_version.py b/google/cloud/websecurityscanner_v1/gapic_version.py index 7138f21..0d065af 100644 --- a/google/cloud/websecurityscanner_v1/gapic_version.py +++ b/google/cloud/websecurityscanner_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.0" # {x-release-please-version} +__version__ = "1.12.1" # {x-release-please-version} diff --git a/google/cloud/websecurityscanner_v1/services/web_security_scanner/async_client.py b/google/cloud/websecurityscanner_v1/services/web_security_scanner/async_client.py index 3302984..4b342be 100644 --- a/google/cloud/websecurityscanner_v1/services/web_security_scanner/async_client.py +++ b/google/cloud/websecurityscanner_v1/services/web_security_scanner/async_client.py @@ -270,8 +270,7 @@ async def sample_create_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest, dict]]): - The request object. Request for the `CreateScanConfig` - method. + The request object. Request for the ``CreateScanConfig`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -349,8 +348,7 @@ async def sample_delete_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest, dict]]): - The request object. Request for the `DeleteScanConfig` - method. + The request object. Request for the ``DeleteScanConfig`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -431,8 +429,7 @@ async def sample_get_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.GetScanConfigRequest, dict]]): - The request object. Request for the `GetScanConfig` - method. + The request object. Request for the ``GetScanConfig`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -523,8 +520,7 @@ async def sample_list_scan_configs(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest, dict]]): - The request object. Request for the `ListScanConfigs` - method. + The request object. Request for the ``ListScanConfigs`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -626,8 +622,7 @@ async def sample_update_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest, dict]]): - The request object. Request for the - `UpdateScanConfigRequest` method. + The request object. Request for the ``UpdateScanConfigRequest`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -707,8 +702,7 @@ async def sample_start_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.StartScanRunRequest, dict]]): - The request object. Request for the `StartScanRun` - method. + The request object. Request for the ``StartScanRun`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -787,7 +781,7 @@ async def sample_get_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.GetScanRunRequest, dict]]): - The request object. Request for the `GetScanRun` method. + The request object. Request for the ``GetScanRun`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -878,8 +872,7 @@ async def sample_list_scan_runs(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.ListScanRunsRequest, dict]]): - The request object. Request for the `ListScanRuns` - method. + The request object. Request for the ``ListScanRuns`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -978,8 +971,7 @@ async def sample_stop_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.StopScanRunRequest, dict]]): - The request object. Request for the `StopScanRun` - method. + The request object. Request for the ``StopScanRun`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1061,8 +1053,7 @@ async def sample_list_crawled_urls(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest, dict]]): - The request object. Request for the `ListCrawledUrls` - method. + The request object. Request for the ``ListCrawledUrls`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1161,7 +1152,7 @@ async def sample_get_finding(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.GetFindingRequest, dict]]): - The request object. Request for the `GetFinding` method. + The request object. Request for the ``GetFinding`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1251,8 +1242,7 @@ async def sample_list_findings(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.ListFindingsRequest, dict]]): - The request object. Request for the `ListFindings` - method. + The request object. Request for the ``ListFindings`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1353,8 +1343,7 @@ async def sample_list_finding_type_stats(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest, dict]]): - The request object. Request for the - `ListFindingTypeStats` method. + The request object. Request for the ``ListFindingTypeStats`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/websecurityscanner_v1/services/web_security_scanner/client.py b/google/cloud/websecurityscanner_v1/services/web_security_scanner/client.py index 0a4f4d3..bc262d3 100644 --- a/google/cloud/websecurityscanner_v1/services/web_security_scanner/client.py +++ b/google/cloud/websecurityscanner_v1/services/web_security_scanner/client.py @@ -500,8 +500,7 @@ def sample_create_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest, dict]): - The request object. Request for the `CreateScanConfig` - method. + The request object. Request for the ``CreateScanConfig`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -580,8 +579,7 @@ def sample_delete_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest, dict]): - The request object. Request for the `DeleteScanConfig` - method. + The request object. Request for the ``DeleteScanConfig`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -653,8 +651,7 @@ def sample_get_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1.types.GetScanConfigRequest, dict]): - The request object. Request for the `GetScanConfig` - method. + The request object. Request for the ``GetScanConfig`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -736,8 +733,7 @@ def sample_list_scan_configs(): Args: request (Union[google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest, dict]): - The request object. Request for the `ListScanConfigs` - method. + The request object. Request for the ``ListScanConfigs`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -830,8 +826,7 @@ def sample_update_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest, dict]): - The request object. Request for the - `UpdateScanConfigRequest` method. + The request object. Request for the ``UpdateScanConfigRequest`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -912,8 +907,7 @@ def sample_start_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1.types.StartScanRunRequest, dict]): - The request object. Request for the `StartScanRun` - method. + The request object. Request for the ``StartScanRun`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -993,7 +987,7 @@ def sample_get_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1.types.GetScanRunRequest, dict]): - The request object. Request for the `GetScanRun` method. + The request object. Request for the ``GetScanRun`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1075,8 +1069,7 @@ def sample_list_scan_runs(): Args: request (Union[google.cloud.websecurityscanner_v1.types.ListScanRunsRequest, dict]): - The request object. Request for the `ListScanRuns` - method. + The request object. Request for the ``ListScanRuns`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1166,8 +1159,7 @@ def sample_stop_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1.types.StopScanRunRequest, dict]): - The request object. Request for the `StopScanRun` - method. + The request object. Request for the ``StopScanRun`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1250,8 +1242,7 @@ def sample_list_crawled_urls(): Args: request (Union[google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest, dict]): - The request object. Request for the `ListCrawledUrls` - method. + The request object. Request for the ``ListCrawledUrls`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1341,7 +1332,7 @@ def sample_get_finding(): Args: request (Union[google.cloud.websecurityscanner_v1.types.GetFindingRequest, dict]): - The request object. Request for the `GetFinding` method. + The request object. Request for the ``GetFinding`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1422,8 +1413,7 @@ def sample_list_findings(): Args: request (Union[google.cloud.websecurityscanner_v1.types.ListFindingsRequest, dict]): - The request object. Request for the `ListFindings` - method. + The request object. Request for the ``ListFindings`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1515,8 +1505,7 @@ def sample_list_finding_type_stats(): Args: request (Union[google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest, dict]): - The request object. Request for the - `ListFindingTypeStats` method. + The request object. Request for the ``ListFindingTypeStats`` method. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/rest.py b/google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/rest.py index c73ca40..18efbcd 100644 --- a/google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/rest.py +++ b/google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming diff --git a/google/cloud/websecurityscanner_v1/types/crawled_url.py b/google/cloud/websecurityscanner_v1/types/crawled_url.py index ac7e984..2449ae1 100644 --- a/google/cloud/websecurityscanner_v1/types/crawled_url.py +++ b/google/cloud/websecurityscanner_v1/types/crawled_url.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/finding.py b/google/cloud/websecurityscanner_v1/types/finding.py index e82bce2..a53a8f9 100644 --- a/google/cloud/websecurityscanner_v1/types/finding.py +++ b/google/cloud/websecurityscanner_v1/types/finding.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/finding_addon.py b/google/cloud/websecurityscanner_v1/types/finding_addon.py index 883ac0b..ef77237 100644 --- a/google/cloud/websecurityscanner_v1/types/finding_addon.py +++ b/google/cloud/websecurityscanner_v1/types/finding_addon.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/finding_type_stats.py b/google/cloud/websecurityscanner_v1/types/finding_type_stats.py index 83e5019..415e77e 100644 --- a/google/cloud/websecurityscanner_v1/types/finding_type_stats.py +++ b/google/cloud/websecurityscanner_v1/types/finding_type_stats.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/scan_config.py b/google/cloud/websecurityscanner_v1/types/scan_config.py index c1ab460..3c89992 100644 --- a/google/cloud/websecurityscanner_v1/types/scan_config.py +++ b/google/cloud/websecurityscanner_v1/types/scan_config.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/scan_config_error.py b/google/cloud/websecurityscanner_v1/types/scan_config_error.py index cf0e022..8f184ae 100644 --- a/google/cloud/websecurityscanner_v1/types/scan_config_error.py +++ b/google/cloud/websecurityscanner_v1/types/scan_config_error.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/scan_run.py b/google/cloud/websecurityscanner_v1/types/scan_run.py index b6f232d..ea0f5fc 100644 --- a/google/cloud/websecurityscanner_v1/types/scan_run.py +++ b/google/cloud/websecurityscanner_v1/types/scan_run.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/scan_run_error_trace.py b/google/cloud/websecurityscanner_v1/types/scan_run_error_trace.py index 1d2fd11..5a2027f 100644 --- a/google/cloud/websecurityscanner_v1/types/scan_run_error_trace.py +++ b/google/cloud/websecurityscanner_v1/types/scan_run_error_trace.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/scan_run_log.py b/google/cloud/websecurityscanner_v1/types/scan_run_log.py index 97fda84..815359a 100644 --- a/google/cloud/websecurityscanner_v1/types/scan_run_log.py +++ b/google/cloud/websecurityscanner_v1/types/scan_run_log.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/scan_run_warning_trace.py b/google/cloud/websecurityscanner_v1/types/scan_run_warning_trace.py index 84e47e5..2f7292e 100644 --- a/google/cloud/websecurityscanner_v1/types/scan_run_warning_trace.py +++ b/google/cloud/websecurityscanner_v1/types/scan_run_warning_trace.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1/types/web_security_scanner.py b/google/cloud/websecurityscanner_v1/types/web_security_scanner.py index eb21f64..26f95b4 100644 --- a/google/cloud/websecurityscanner_v1/types/web_security_scanner.py +++ b/google/cloud/websecurityscanner_v1/types/web_security_scanner.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import field_mask_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/gapic_version.py b/google/cloud/websecurityscanner_v1alpha/gapic_version.py index 7138f21..0d065af 100644 --- a/google/cloud/websecurityscanner_v1alpha/gapic_version.py +++ b/google/cloud/websecurityscanner_v1alpha/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.0" # {x-release-please-version} +__version__ = "1.12.1" # {x-release-please-version} diff --git a/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/async_client.py b/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/async_client.py index 556ff00..3a481a7 100644 --- a/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/async_client.py +++ b/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/async_client.py @@ -283,8 +283,7 @@ async def sample_create_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.CreateScanConfigRequest, dict]]): - The request object. Request for the `CreateScanConfig` - method. + The request object. Request for the ``CreateScanConfig`` method. parent (:class:`str`): Required. The parent resource name where the scan is created, which should @@ -397,8 +396,7 @@ async def sample_delete_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.DeleteScanConfigRequest, dict]]): - The request object. Request for the `DeleteScanConfig` - method. + The request object. Request for the ``DeleteScanConfig`` method. name (:class:`str`): Required. The resource name of the ScanConfig to be deleted. The name @@ -504,8 +502,7 @@ async def sample_get_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.GetScanConfigRequest, dict]]): - The request object. Request for the `GetScanConfig` - method. + The request object. Request for the ``GetScanConfig`` method. name (:class:`str`): Required. The resource name of the ScanConfig to be returned. The name @@ -622,8 +619,7 @@ async def sample_list_scan_configs(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.ListScanConfigsRequest, dict]]): - The request object. Request for the `ListScanConfigs` - method. + The request object. Request for the ``ListScanConfigs`` method. parent (:class:`str`): Required. The parent resource name, which should be a project resource name @@ -754,8 +750,7 @@ async def sample_update_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.UpdateScanConfigRequest, dict]]): - The request object. Request for the - `UpdateScanConfigRequest` method. + The request object. Request for the ``UpdateScanConfigRequest`` method. scan_config (:class:`google.cloud.websecurityscanner_v1alpha.types.ScanConfig`): Required. The ScanConfig to be updated. The name field must be set to @@ -872,8 +867,7 @@ async def sample_start_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.StartScanRunRequest, dict]]): - The request object. Request for the `StartScanRun` - method. + The request object. Request for the ``StartScanRun`` method. name (:class:`str`): Required. The resource name of the ScanConfig to be used. The name follows @@ -976,7 +970,7 @@ async def sample_get_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.GetScanRunRequest, dict]]): - The request object. Request for the `GetScanRun` method. + The request object. Request for the ``GetScanRun`` method. name (:class:`str`): Required. The resource name of the ScanRun to be returned. The name follows @@ -1091,8 +1085,7 @@ async def sample_list_scan_runs(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.ListScanRunsRequest, dict]]): - The request object. Request for the `ListScanRuns` - method. + The request object. Request for the ``ListScanRuns`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan resource name in @@ -1216,8 +1209,7 @@ async def sample_stop_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.StopScanRunRequest, dict]]): - The request object. Request for the `StopScanRun` - method. + The request object. Request for the ``StopScanRun`` method. name (:class:`str`): Required. The resource name of the ScanRun to be stopped. The name follows @@ -1323,8 +1315,7 @@ async def sample_list_crawled_urls(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.ListCrawledUrlsRequest, dict]]): - The request object. Request for the `ListCrawledUrls` - method. + The request object. Request for the ``ListCrawledUrls`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan run resource name @@ -1448,7 +1439,7 @@ async def sample_get_finding(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.GetFindingRequest, dict]]): - The request object. Request for the `GetFinding` method. + The request object. Request for the ``GetFinding`` method. name (:class:`str`): Required. The resource name of the Finding to be returned. The name follows @@ -1565,8 +1556,7 @@ async def sample_list_findings(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.ListFindingsRequest, dict]]): - The request object. Request for the `ListFindings` - method. + The request object. Request for the ``ListFindings`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan run resource name @@ -1702,8 +1692,7 @@ async def sample_list_finding_type_stats(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1alpha.types.ListFindingTypeStatsRequest, dict]]): - The request object. Request for the - `ListFindingTypeStats` method. + The request object. Request for the ``ListFindingTypeStats`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan run resource name diff --git a/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/client.py b/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/client.py index 82d1a42..2d1afcb 100644 --- a/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/client.py +++ b/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/client.py @@ -550,8 +550,7 @@ def sample_create_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.CreateScanConfigRequest, dict]): - The request object. Request for the `CreateScanConfig` - method. + The request object. Request for the ``CreateScanConfig`` method. parent (str): Required. The parent resource name where the scan is created, which should @@ -664,8 +663,7 @@ def sample_delete_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.DeleteScanConfigRequest, dict]): - The request object. Request for the `DeleteScanConfig` - method. + The request object. Request for the ``DeleteScanConfig`` method. name (str): Required. The resource name of the ScanConfig to be deleted. The name @@ -761,8 +759,7 @@ def sample_get_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.GetScanConfigRequest, dict]): - The request object. Request for the `GetScanConfig` - method. + The request object. Request for the ``GetScanConfig`` method. name (str): Required. The resource name of the ScanConfig to be returned. The name @@ -869,8 +866,7 @@ def sample_list_scan_configs(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.ListScanConfigsRequest, dict]): - The request object. Request for the `ListScanConfigs` - method. + The request object. Request for the ``ListScanConfigs`` method. parent (str): Required. The parent resource name, which should be a project resource name @@ -991,8 +987,7 @@ def sample_update_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.UpdateScanConfigRequest, dict]): - The request object. Request for the - `UpdateScanConfigRequest` method. + The request object. Request for the ``UpdateScanConfigRequest`` method. scan_config (google.cloud.websecurityscanner_v1alpha.types.ScanConfig): Required. The ScanConfig to be updated. The name field must be set to @@ -1109,8 +1104,7 @@ def sample_start_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.StartScanRunRequest, dict]): - The request object. Request for the `StartScanRun` - method. + The request object. Request for the ``StartScanRun`` method. name (str): Required. The resource name of the ScanConfig to be used. The name follows @@ -1213,7 +1207,7 @@ def sample_get_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.GetScanRunRequest, dict]): - The request object. Request for the `GetScanRun` method. + The request object. Request for the ``GetScanRun`` method. name (str): Required. The resource name of the ScanRun to be returned. The name follows @@ -1318,8 +1312,7 @@ def sample_list_scan_runs(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.ListScanRunsRequest, dict]): - The request object. Request for the `ListScanRuns` - method. + The request object. Request for the ``ListScanRuns`` method. parent (str): Required. The parent resource name, which should be a scan resource name in @@ -1433,8 +1426,7 @@ def sample_stop_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.StopScanRunRequest, dict]): - The request object. Request for the `StopScanRun` - method. + The request object. Request for the ``StopScanRun`` method. name (str): Required. The resource name of the ScanRun to be stopped. The name follows @@ -1540,8 +1532,7 @@ def sample_list_crawled_urls(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.ListCrawledUrlsRequest, dict]): - The request object. Request for the `ListCrawledUrls` - method. + The request object. Request for the ``ListCrawledUrls`` method. parent (str): Required. The parent resource name, which should be a scan run resource name @@ -1655,7 +1646,7 @@ def sample_get_finding(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.GetFindingRequest, dict]): - The request object. Request for the `GetFinding` method. + The request object. Request for the ``GetFinding`` method. name (str): Required. The resource name of the Finding to be returned. The name follows @@ -1762,8 +1753,7 @@ def sample_list_findings(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.ListFindingsRequest, dict]): - The request object. Request for the `ListFindings` - method. + The request object. Request for the ``ListFindings`` method. parent (str): Required. The parent resource name, which should be a scan run resource name @@ -1889,8 +1879,7 @@ def sample_list_finding_type_stats(): Args: request (Union[google.cloud.websecurityscanner_v1alpha.types.ListFindingTypeStatsRequest, dict]): - The request object. Request for the - `ListFindingTypeStats` method. + The request object. Request for the ``ListFindingTypeStats`` method. parent (str): Required. The parent resource name, which should be a scan run resource name diff --git a/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/transports/rest.py b/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/transports/rest.py index 58c1fe8..6884ae7 100644 --- a/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/transports/rest.py +++ b/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming @@ -560,7 +560,7 @@ class _CreateScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("CreateScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -660,7 +660,7 @@ class _DeleteScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("DeleteScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -736,7 +736,7 @@ class _GetFinding(WebSecurityScannerRestStub): def __hash__(self): return hash("GetFinding") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -825,7 +825,7 @@ class _GetScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("GetScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -914,7 +914,7 @@ class _GetScanRun(WebSecurityScannerRestStub): def __hash__(self): return hash("GetScanRun") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1002,7 +1002,7 @@ class _ListCrawledUrls(WebSecurityScannerRestStub): def __hash__(self): return hash("ListCrawledUrls") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1090,7 +1090,7 @@ class _ListFindings(WebSecurityScannerRestStub): def __hash__(self): return hash("ListFindings") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "filter": "", } @@ -1178,7 +1178,7 @@ class _ListFindingTypeStats(WebSecurityScannerRestStub): def __hash__(self): return hash("ListFindingTypeStats") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1266,7 +1266,7 @@ class _ListScanConfigs(WebSecurityScannerRestStub): def __hash__(self): return hash("ListScanConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1354,7 +1354,7 @@ class _ListScanRuns(WebSecurityScannerRestStub): def __hash__(self): return hash("ListScanRuns") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1440,7 +1440,7 @@ class _StartScanRun(WebSecurityScannerRestStub): def __hash__(self): return hash("StartScanRun") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1537,7 +1537,7 @@ class _StopScanRun(WebSecurityScannerRestStub): def __hash__(self): return hash("StopScanRun") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1634,7 +1634,7 @@ class _UpdateScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("UpdateScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "updateMask": {}, } diff --git a/google/cloud/websecurityscanner_v1alpha/types/crawled_url.py b/google/cloud/websecurityscanner_v1alpha/types/crawled_url.py index adaef11..78f175f 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/crawled_url.py +++ b/google/cloud/websecurityscanner_v1alpha/types/crawled_url.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/types/finding.py b/google/cloud/websecurityscanner_v1alpha/types/finding.py index 610be7f..1c7e939 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/finding.py +++ b/google/cloud/websecurityscanner_v1alpha/types/finding.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/types/finding_addon.py b/google/cloud/websecurityscanner_v1alpha/types/finding_addon.py index 5925e70..6720fac 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/finding_addon.py +++ b/google/cloud/websecurityscanner_v1alpha/types/finding_addon.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/types/finding_type_stats.py b/google/cloud/websecurityscanner_v1alpha/types/finding_type_stats.py index f0c1be2..1992afa 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/finding_type_stats.py +++ b/google/cloud/websecurityscanner_v1alpha/types/finding_type_stats.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/types/scan_config.py b/google/cloud/websecurityscanner_v1alpha/types/scan_config.py index e46789d..01b6456 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/scan_config.py +++ b/google/cloud/websecurityscanner_v1alpha/types/scan_config.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/types/scan_run.py b/google/cloud/websecurityscanner_v1alpha/types/scan_run.py index b9deeb6..0f34f39 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/scan_run.py +++ b/google/cloud/websecurityscanner_v1alpha/types/scan_run.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1alpha/types/web_security_scanner.py b/google/cloud/websecurityscanner_v1alpha/types/web_security_scanner.py index c5cb8bb..56a0881 100644 --- a/google/cloud/websecurityscanner_v1alpha/types/web_security_scanner.py +++ b/google/cloud/websecurityscanner_v1alpha/types/web_security_scanner.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import field_mask_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/gapic_version.py b/google/cloud/websecurityscanner_v1beta/gapic_version.py index 7138f21..0d065af 100644 --- a/google/cloud/websecurityscanner_v1beta/gapic_version.py +++ b/google/cloud/websecurityscanner_v1beta/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.0" # {x-release-please-version} +__version__ = "1.12.1" # {x-release-please-version} diff --git a/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/async_client.py b/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/async_client.py index 07c6c24..e589d93 100644 --- a/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/async_client.py +++ b/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/async_client.py @@ -288,8 +288,7 @@ async def sample_create_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.CreateScanConfigRequest, dict]]): - The request object. Request for the `CreateScanConfig` - method. + The request object. Request for the ``CreateScanConfig`` method. parent (:class:`str`): Required. The parent resource name where the scan is created, which should @@ -401,8 +400,7 @@ async def sample_delete_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.DeleteScanConfigRequest, dict]]): - The request object. Request for the `DeleteScanConfig` - method. + The request object. Request for the ``DeleteScanConfig`` method. name (:class:`str`): Required. The resource name of the ScanConfig to be deleted. The name @@ -508,8 +506,7 @@ async def sample_get_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.GetScanConfigRequest, dict]]): - The request object. Request for the `GetScanConfig` - method. + The request object. Request for the ``GetScanConfig`` method. name (:class:`str`): Required. The resource name of the ScanConfig to be returned. The name @@ -625,8 +622,7 @@ async def sample_list_scan_configs(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.ListScanConfigsRequest, dict]]): - The request object. Request for the `ListScanConfigs` - method. + The request object. Request for the ``ListScanConfigs`` method. parent (:class:`str`): Required. The parent resource name, which should be a project resource name @@ -757,8 +753,7 @@ async def sample_update_scan_config(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.UpdateScanConfigRequest, dict]]): - The request object. Request for the - `UpdateScanConfigRequest` method. + The request object. Request for the ``UpdateScanConfigRequest`` method. scan_config (:class:`google.cloud.websecurityscanner_v1beta.types.ScanConfig`): Required. The ScanConfig to be updated. The name field must be set to @@ -874,8 +869,7 @@ async def sample_start_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.StartScanRunRequest, dict]]): - The request object. Request for the `StartScanRun` - method. + The request object. Request for the ``StartScanRun`` method. name (:class:`str`): Required. The resource name of the ScanConfig to be used. The name follows @@ -979,7 +973,7 @@ async def sample_get_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.GetScanRunRequest, dict]]): - The request object. Request for the `GetScanRun` method. + The request object. Request for the ``GetScanRun`` method. name (:class:`str`): Required. The resource name of the ScanRun to be returned. The name follows @@ -1095,8 +1089,7 @@ async def sample_list_scan_runs(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.ListScanRunsRequest, dict]]): - The request object. Request for the `ListScanRuns` - method. + The request object. Request for the ``ListScanRuns`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan resource name in @@ -1220,8 +1213,7 @@ async def sample_stop_scan_run(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.StopScanRunRequest, dict]]): - The request object. Request for the `StopScanRun` - method. + The request object. Request for the ``StopScanRun`` method. name (:class:`str`): Required. The resource name of the ScanRun to be stopped. The name follows @@ -1328,8 +1320,7 @@ async def sample_list_crawled_urls(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.ListCrawledUrlsRequest, dict]]): - The request object. Request for the `ListCrawledUrls` - method. + The request object. Request for the ``ListCrawledUrls`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan run resource name @@ -1453,7 +1444,7 @@ async def sample_get_finding(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.GetFindingRequest, dict]]): - The request object. Request for the `GetFinding` method. + The request object. Request for the ``GetFinding`` method. name (:class:`str`): Required. The resource name of the Finding to be returned. The name follows @@ -1570,8 +1561,7 @@ async def sample_list_findings(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.ListFindingsRequest, dict]]): - The request object. Request for the `ListFindings` - method. + The request object. Request for the ``ListFindings`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan run resource name @@ -1707,8 +1697,7 @@ async def sample_list_finding_type_stats(): Args: request (Optional[Union[google.cloud.websecurityscanner_v1beta.types.ListFindingTypeStatsRequest, dict]]): - The request object. Request for the - `ListFindingTypeStats` method. + The request object. Request for the ``ListFindingTypeStats`` method. parent (:class:`str`): Required. The parent resource name, which should be a scan run resource name diff --git a/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/client.py b/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/client.py index 55c74db..edc54a4 100644 --- a/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/client.py +++ b/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/client.py @@ -555,8 +555,7 @@ def sample_create_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.CreateScanConfigRequest, dict]): - The request object. Request for the `CreateScanConfig` - method. + The request object. Request for the ``CreateScanConfig`` method. parent (str): Required. The parent resource name where the scan is created, which should @@ -668,8 +667,7 @@ def sample_delete_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.DeleteScanConfigRequest, dict]): - The request object. Request for the `DeleteScanConfig` - method. + The request object. Request for the ``DeleteScanConfig`` method. name (str): Required. The resource name of the ScanConfig to be deleted. The name @@ -765,8 +763,7 @@ def sample_get_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.GetScanConfigRequest, dict]): - The request object. Request for the `GetScanConfig` - method. + The request object. Request for the ``GetScanConfig`` method. name (str): Required. The resource name of the ScanConfig to be returned. The name @@ -872,8 +869,7 @@ def sample_list_scan_configs(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.ListScanConfigsRequest, dict]): - The request object. Request for the `ListScanConfigs` - method. + The request object. Request for the ``ListScanConfigs`` method. parent (str): Required. The parent resource name, which should be a project resource name @@ -994,8 +990,7 @@ def sample_update_scan_config(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.UpdateScanConfigRequest, dict]): - The request object. Request for the - `UpdateScanConfigRequest` method. + The request object. Request for the ``UpdateScanConfigRequest`` method. scan_config (google.cloud.websecurityscanner_v1beta.types.ScanConfig): Required. The ScanConfig to be updated. The name field must be set to @@ -1111,8 +1106,7 @@ def sample_start_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.StartScanRunRequest, dict]): - The request object. Request for the `StartScanRun` - method. + The request object. Request for the ``StartScanRun`` method. name (str): Required. The resource name of the ScanConfig to be used. The name follows @@ -1216,7 +1210,7 @@ def sample_get_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.GetScanRunRequest, dict]): - The request object. Request for the `GetScanRun` method. + The request object. Request for the ``GetScanRun`` method. name (str): Required. The resource name of the ScanRun to be returned. The name follows @@ -1322,8 +1316,7 @@ def sample_list_scan_runs(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.ListScanRunsRequest, dict]): - The request object. Request for the `ListScanRuns` - method. + The request object. Request for the ``ListScanRuns`` method. parent (str): Required. The parent resource name, which should be a scan resource name in @@ -1437,8 +1430,7 @@ def sample_stop_scan_run(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.StopScanRunRequest, dict]): - The request object. Request for the `StopScanRun` - method. + The request object. Request for the ``StopScanRun`` method. name (str): Required. The resource name of the ScanRun to be stopped. The name follows @@ -1545,8 +1537,7 @@ def sample_list_crawled_urls(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.ListCrawledUrlsRequest, dict]): - The request object. Request for the `ListCrawledUrls` - method. + The request object. Request for the ``ListCrawledUrls`` method. parent (str): Required. The parent resource name, which should be a scan run resource name @@ -1660,7 +1651,7 @@ def sample_get_finding(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.GetFindingRequest, dict]): - The request object. Request for the `GetFinding` method. + The request object. Request for the ``GetFinding`` method. name (str): Required. The resource name of the Finding to be returned. The name follows @@ -1767,8 +1758,7 @@ def sample_list_findings(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.ListFindingsRequest, dict]): - The request object. Request for the `ListFindings` - method. + The request object. Request for the ``ListFindings`` method. parent (str): Required. The parent resource name, which should be a scan run resource name @@ -1894,8 +1884,7 @@ def sample_list_finding_type_stats(): Args: request (Union[google.cloud.websecurityscanner_v1beta.types.ListFindingTypeStatsRequest, dict]): - The request object. Request for the - `ListFindingTypeStats` method. + The request object. Request for the ``ListFindingTypeStats`` method. parent (str): Required. The parent resource name, which should be a scan run resource name diff --git a/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/transports/rest.py b/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/transports/rest.py index c59e821..1f0dfbe 100644 --- a/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/transports/rest.py +++ b/google/cloud/websecurityscanner_v1beta/services/web_security_scanner/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming @@ -560,7 +560,7 @@ class _CreateScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("CreateScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -659,7 +659,7 @@ class _DeleteScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("DeleteScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -735,7 +735,7 @@ class _GetFinding(WebSecurityScannerRestStub): def __hash__(self): return hash("GetFinding") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -824,7 +824,7 @@ class _GetScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("GetScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -912,7 +912,7 @@ class _GetScanRun(WebSecurityScannerRestStub): def __hash__(self): return hash("GetScanRun") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1001,7 +1001,7 @@ class _ListCrawledUrls(WebSecurityScannerRestStub): def __hash__(self): return hash("ListCrawledUrls") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1089,7 +1089,7 @@ class _ListFindings(WebSecurityScannerRestStub): def __hash__(self): return hash("ListFindings") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "filter": "", } @@ -1177,7 +1177,7 @@ class _ListFindingTypeStats(WebSecurityScannerRestStub): def __hash__(self): return hash("ListFindingTypeStats") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1265,7 +1265,7 @@ class _ListScanConfigs(WebSecurityScannerRestStub): def __hash__(self): return hash("ListScanConfigs") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1353,7 +1353,7 @@ class _ListScanRuns(WebSecurityScannerRestStub): def __hash__(self): return hash("ListScanRuns") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1439,7 +1439,7 @@ class _StartScanRun(WebSecurityScannerRestStub): def __hash__(self): return hash("StartScanRun") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1537,7 +1537,7 @@ class _StopScanRun(WebSecurityScannerRestStub): def __hash__(self): return hash("StopScanRun") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -1635,7 +1635,7 @@ class _UpdateScanConfig(WebSecurityScannerRestStub): def __hash__(self): return hash("UpdateScanConfig") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "updateMask": {}, } diff --git a/google/cloud/websecurityscanner_v1beta/types/crawled_url.py b/google/cloud/websecurityscanner_v1beta/types/crawled_url.py index a734444..84868d3 100644 --- a/google/cloud/websecurityscanner_v1beta/types/crawled_url.py +++ b/google/cloud/websecurityscanner_v1beta/types/crawled_url.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/finding.py b/google/cloud/websecurityscanner_v1beta/types/finding.py index ec82255..ff5e0cc 100644 --- a/google/cloud/websecurityscanner_v1beta/types/finding.py +++ b/google/cloud/websecurityscanner_v1beta/types/finding.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/finding_addon.py b/google/cloud/websecurityscanner_v1beta/types/finding_addon.py index fb45b1c..52893fc 100644 --- a/google/cloud/websecurityscanner_v1beta/types/finding_addon.py +++ b/google/cloud/websecurityscanner_v1beta/types/finding_addon.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/finding_type_stats.py b/google/cloud/websecurityscanner_v1beta/types/finding_type_stats.py index 0b937df..c1e8329 100644 --- a/google/cloud/websecurityscanner_v1beta/types/finding_type_stats.py +++ b/google/cloud/websecurityscanner_v1beta/types/finding_type_stats.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/scan_config.py b/google/cloud/websecurityscanner_v1beta/types/scan_config.py index 77e75d9..fee50d0 100644 --- a/google/cloud/websecurityscanner_v1beta/types/scan_config.py +++ b/google/cloud/websecurityscanner_v1beta/types/scan_config.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/scan_config_error.py b/google/cloud/websecurityscanner_v1beta/types/scan_config_error.py index d9cad51..4d55c01 100644 --- a/google/cloud/websecurityscanner_v1beta/types/scan_config_error.py +++ b/google/cloud/websecurityscanner_v1beta/types/scan_config_error.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/scan_run.py b/google/cloud/websecurityscanner_v1beta/types/scan_run.py index 8d214fb..6fc19fd 100644 --- a/google/cloud/websecurityscanner_v1beta/types/scan_run.py +++ b/google/cloud/websecurityscanner_v1beta/types/scan_run.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/scan_run_error_trace.py b/google/cloud/websecurityscanner_v1beta/types/scan_run_error_trace.py index d6b9170..afcd84d 100644 --- a/google/cloud/websecurityscanner_v1beta/types/scan_run_error_trace.py +++ b/google/cloud/websecurityscanner_v1beta/types/scan_run_error_trace.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/scan_run_warning_trace.py b/google/cloud/websecurityscanner_v1beta/types/scan_run_warning_trace.py index 892c4cc..59e4520 100644 --- a/google/cloud/websecurityscanner_v1beta/types/scan_run_warning_trace.py +++ b/google/cloud/websecurityscanner_v1beta/types/scan_run_warning_trace.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/websecurityscanner_v1beta/types/web_security_scanner.py b/google/cloud/websecurityscanner_v1beta/types/web_security_scanner.py index ab7d784..fcc19e0 100644 --- a/google/cloud/websecurityscanner_v1beta/types/web_security_scanner.py +++ b/google/cloud/websecurityscanner_v1beta/types/web_security_scanner.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import field_mask_pb2 # type: ignore diff --git a/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1.json index 2137781..eb84e81 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-websecurityscanner", - "version": "1.12.0" + "version": "1.12.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json b/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json index e25d94c..9feb579 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-websecurityscanner", - "version": "1.12.0" + "version": "1.12.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1beta.json b/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1beta.json index 7a88e4c..93e23a6 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1beta.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.websecurityscanner.v1beta.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-websecurityscanner", - "version": "1.12.0" + "version": "1.12.1" }, "snippets": [ {