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

Commit

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

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 24, 2021
1 parent 1151190 commit 15b7d1f
Show file tree
Hide file tree
Showing 15 changed files with 144 additions and 144 deletions.
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
Expand Down Expand Up @@ -372,7 +372,7 @@ def __init__(

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,
timeout: float = None,
Expand All @@ -381,7 +381,7 @@ def create_scan_config(
r"""Creates a new ScanConfig.
Args:
request (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 @@ -422,7 +422,7 @@ def create_scan_config(

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,
timeout: float = None,
Expand All @@ -432,7 +432,7 @@ def delete_scan_config(
resources.
Args:
request (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 @@ -466,7 +466,7 @@ def delete_scan_config(

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,
timeout: float = None,
Expand All @@ -475,7 +475,7 @@ def get_scan_config(
r"""Gets a ScanConfig.
Args:
request (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 @@ -516,7 +516,7 @@ def get_scan_config(

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,
timeout: float = None,
Expand All @@ -525,7 +525,7 @@ def list_scan_configs(
r"""Lists ScanConfigs under a given project.
Args:
request (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 @@ -574,7 +574,7 @@ def list_scan_configs(

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,
timeout: float = None,
Expand All @@ -584,7 +584,7 @@ def update_scan_config(
update of a ScanConfig.
Args:
request (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 @@ -627,7 +627,7 @@ def update_scan_config(

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,
timeout: float = None,
Expand All @@ -636,7 +636,7 @@ def start_scan_run(
r"""Start a ScanRun according to the given ScanConfig.
Args:
request (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 @@ -678,7 +678,7 @@ def start_scan_run(

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,
timeout: float = None,
Expand All @@ -687,7 +687,7 @@ def get_scan_run(
r"""Gets a ScanRun.
Args:
request (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 @@ -728,7 +728,7 @@ def get_scan_run(

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,
timeout: float = None,
Expand All @@ -738,7 +738,7 @@ def list_scan_runs(
descending order of ScanRun stop time.
Args:
request (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 @@ -787,7 +787,7 @@ def list_scan_runs(

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,
timeout: float = None,
Expand All @@ -796,7 +796,7 @@ def stop_scan_run(
r"""Stops a ScanRun. The stopped ScanRun is returned.
Args:
request (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 @@ -838,7 +838,7 @@ def stop_scan_run(

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,
timeout: float = None,
Expand All @@ -847,7 +847,7 @@ def list_crawled_urls(
r"""List CrawledUrls under a given ScanRun.
Args:
request (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 @@ -896,7 +896,7 @@ def list_crawled_urls(

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,
timeout: float = None,
Expand All @@ -905,7 +905,7 @@ def get_finding(
r"""Gets a Finding.
Args:
request (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 @@ -946,7 +946,7 @@ def get_finding(

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,
timeout: float = None,
Expand All @@ -955,7 +955,7 @@ def list_findings(
r"""List Findings under a given ScanRun.
Args:
request (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 @@ -1004,7 +1004,7 @@ def list_findings(

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,
timeout: float = None,
Expand All @@ -1013,7 +1013,7 @@ def list_finding_type_stats(
r"""List all FindingTypeStats under a given ScanRun.
Args:
request (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
Expand Up @@ -121,7 +121,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Expand Up @@ -87,16 +87,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Expand Up @@ -134,16 +134,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down

0 comments on commit 15b7d1f

Please sign in to comment.