Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
chore: use gapic-generator-python 0.53.4 (#122)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

docs: list oneofs in docstring
fix(deps): require google-api-core >= 1.28.0
fix(deps): drop packaging dependency

committer: busunkim96@
PiperOrigin-RevId: 406468269

Source-Link: googleapis/googleapis@83d81b0

Source-Link: googleapis/googleapis-gen@2ff001f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 1, 2021
1 parent e965045 commit 0134472
Show file tree
Hide file tree
Showing 20 changed files with 235 additions and 515 deletions.
Expand Up @@ -19,13 +19,15 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

import google.api_core.client_options as ClientOptions # type: ignore
from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]

from google.cloud.websecurityscanner_v1.services.web_security_scanner import pagers
from google.cloud.websecurityscanner_v1.types import crawled_url
from google.cloud.websecurityscanner_v1.types import finding
Expand Down Expand Up @@ -177,16 +179,16 @@ def __init__(

async def create_scan_config(
self,
request: web_security_scanner.CreateScanConfigRequest = None,
request: Union[web_security_scanner.CreateScanConfigRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_config.ScanConfig:
r"""Creates a new ScanConfig.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest, dict]):
The request object. Request for the `CreateScanConfig`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -226,17 +228,17 @@ async def create_scan_config(

async def delete_scan_config(
self,
request: web_security_scanner.DeleteScanConfigRequest = None,
request: Union[web_security_scanner.DeleteScanConfigRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes an existing ScanConfig and its child
resources.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest, dict]):
The request object. Request for the `DeleteScanConfig`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -279,16 +281,16 @@ async def delete_scan_config(

async def get_scan_config(
self,
request: web_security_scanner.GetScanConfigRequest = None,
request: Union[web_security_scanner.GetScanConfigRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_config.ScanConfig:
r"""Gets a ScanConfig.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.GetScanConfigRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.GetScanConfigRequest, dict]):
The request object. Request for the `GetScanConfig`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -338,16 +340,16 @@ async def get_scan_config(

async def list_scan_configs(
self,
request: web_security_scanner.ListScanConfigsRequest = None,
request: Union[web_security_scanner.ListScanConfigsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListScanConfigsAsyncPager:
r"""Lists ScanConfigs under a given project.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest, dict]):
The request object. Request for the `ListScanConfigs`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -405,17 +407,17 @@ async def list_scan_configs(

async def update_scan_config(
self,
request: web_security_scanner.UpdateScanConfigRequest = None,
request: Union[web_security_scanner.UpdateScanConfigRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_config.ScanConfig:
r"""Updates a ScanConfig. This method support partial
update of a ScanConfig.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest, dict]):
The request object. Request for the
`UpdateScanConfigRequest` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -457,16 +459,16 @@ async def update_scan_config(

async def start_scan_run(
self,
request: web_security_scanner.StartScanRunRequest = None,
request: Union[web_security_scanner.StartScanRunRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_run.ScanRun:
r"""Start a ScanRun according to the given ScanConfig.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.StartScanRunRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.StartScanRunRequest, dict]):
The request object. Request for the `StartScanRun`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -507,16 +509,16 @@ async def start_scan_run(

async def get_scan_run(
self,
request: web_security_scanner.GetScanRunRequest = None,
request: Union[web_security_scanner.GetScanRunRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_run.ScanRun:
r"""Gets a ScanRun.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.GetScanRunRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.GetScanRunRequest, dict]):
The request object. Request for the `GetScanRun` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -566,17 +568,17 @@ async def get_scan_run(

async def list_scan_runs(
self,
request: web_security_scanner.ListScanRunsRequest = None,
request: Union[web_security_scanner.ListScanRunsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListScanRunsAsyncPager:
r"""Lists ScanRuns under a given ScanConfig, in
descending order of ScanRun stop time.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.ListScanRunsRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.ListScanRunsRequest, dict]):
The request object. Request for the `ListScanRuns`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -634,16 +636,16 @@ async def list_scan_runs(

async def stop_scan_run(
self,
request: web_security_scanner.StopScanRunRequest = None,
request: Union[web_security_scanner.StopScanRunRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_run.ScanRun:
r"""Stops a ScanRun. The stopped ScanRun is returned.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.StopScanRunRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.StopScanRunRequest, dict]):
The request object. Request for the `StopScanRun`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -684,16 +686,16 @@ async def stop_scan_run(

async def list_crawled_urls(
self,
request: web_security_scanner.ListCrawledUrlsRequest = None,
request: Union[web_security_scanner.ListCrawledUrlsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListCrawledUrlsAsyncPager:
r"""List CrawledUrls under a given ScanRun.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest, dict]):
The request object. Request for the `ListCrawledUrls`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -751,16 +753,16 @@ async def list_crawled_urls(

async def get_finding(
self,
request: web_security_scanner.GetFindingRequest = None,
request: Union[web_security_scanner.GetFindingRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> finding.Finding:
r"""Gets a Finding.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.GetFindingRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.GetFindingRequest, dict]):
The request object. Request for the `GetFinding` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -810,16 +812,16 @@ async def get_finding(

async def list_findings(
self,
request: web_security_scanner.ListFindingsRequest = None,
request: Union[web_security_scanner.ListFindingsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListFindingsAsyncPager:
r"""List Findings under a given ScanRun.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.ListFindingsRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.ListFindingsRequest, dict]):
The request object. Request for the `ListFindings`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -877,16 +879,16 @@ async def list_findings(

async def list_finding_type_stats(
self,
request: web_security_scanner.ListFindingTypeStatsRequest = None,
request: Union[web_security_scanner.ListFindingTypeStatsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> web_security_scanner.ListFindingTypeStatsResponse:
r"""List all FindingTypeStats under a given ScanRun.
Args:
request (:class:`google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest`):
request (Union[google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest, dict]):
The request object. Request for the
`ListFindingTypeStats` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down

0 comments on commit 0134472

Please sign in to comment.