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

Commit 15b7d1f

Browse files
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: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 1151190 commit 15b7d1f

15 files changed

Lines changed: 144 additions & 144 deletions

File tree

google/cloud/websecurityscanner_v1/services/web_security_scanner/client.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

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

373373
def create_scan_config(
374374
self,
375-
request: web_security_scanner.CreateScanConfigRequest = None,
375+
request: Union[web_security_scanner.CreateScanConfigRequest, dict] = None,
376376
*,
377377
retry: retries.Retry = gapic_v1.method.DEFAULT,
378378
timeout: float = None,
@@ -381,7 +381,7 @@ def create_scan_config(
381381
r"""Creates a new ScanConfig.
382382
383383
Args:
384-
request (google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest):
384+
request (Union[google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest, dict]):
385385
The request object. Request for the `CreateScanConfig`
386386
method.
387387
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -422,7 +422,7 @@ def create_scan_config(
422422

423423
def delete_scan_config(
424424
self,
425-
request: web_security_scanner.DeleteScanConfigRequest = None,
425+
request: Union[web_security_scanner.DeleteScanConfigRequest, dict] = None,
426426
*,
427427
retry: retries.Retry = gapic_v1.method.DEFAULT,
428428
timeout: float = None,
@@ -432,7 +432,7 @@ def delete_scan_config(
432432
resources.
433433
434434
Args:
435-
request (google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest):
435+
request (Union[google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest, dict]):
436436
The request object. Request for the `DeleteScanConfig`
437437
method.
438438
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -466,7 +466,7 @@ def delete_scan_config(
466466

467467
def get_scan_config(
468468
self,
469-
request: web_security_scanner.GetScanConfigRequest = None,
469+
request: Union[web_security_scanner.GetScanConfigRequest, dict] = None,
470470
*,
471471
retry: retries.Retry = gapic_v1.method.DEFAULT,
472472
timeout: float = None,
@@ -475,7 +475,7 @@ def get_scan_config(
475475
r"""Gets a ScanConfig.
476476
477477
Args:
478-
request (google.cloud.websecurityscanner_v1.types.GetScanConfigRequest):
478+
request (Union[google.cloud.websecurityscanner_v1.types.GetScanConfigRequest, dict]):
479479
The request object. Request for the `GetScanConfig`
480480
method.
481481
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -516,7 +516,7 @@ def get_scan_config(
516516

517517
def list_scan_configs(
518518
self,
519-
request: web_security_scanner.ListScanConfigsRequest = None,
519+
request: Union[web_security_scanner.ListScanConfigsRequest, dict] = None,
520520
*,
521521
retry: retries.Retry = gapic_v1.method.DEFAULT,
522522
timeout: float = None,
@@ -525,7 +525,7 @@ def list_scan_configs(
525525
r"""Lists ScanConfigs under a given project.
526526
527527
Args:
528-
request (google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest):
528+
request (Union[google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest, dict]):
529529
The request object. Request for the `ListScanConfigs`
530530
method.
531531
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -574,7 +574,7 @@ def list_scan_configs(
574574

575575
def update_scan_config(
576576
self,
577-
request: web_security_scanner.UpdateScanConfigRequest = None,
577+
request: Union[web_security_scanner.UpdateScanConfigRequest, dict] = None,
578578
*,
579579
retry: retries.Retry = gapic_v1.method.DEFAULT,
580580
timeout: float = None,
@@ -584,7 +584,7 @@ def update_scan_config(
584584
update of a ScanConfig.
585585
586586
Args:
587-
request (google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest):
587+
request (Union[google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest, dict]):
588588
The request object. Request for the
589589
`UpdateScanConfigRequest` method.
590590
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -627,7 +627,7 @@ def update_scan_config(
627627

628628
def start_scan_run(
629629
self,
630-
request: web_security_scanner.StartScanRunRequest = None,
630+
request: Union[web_security_scanner.StartScanRunRequest, dict] = None,
631631
*,
632632
retry: retries.Retry = gapic_v1.method.DEFAULT,
633633
timeout: float = None,
@@ -636,7 +636,7 @@ def start_scan_run(
636636
r"""Start a ScanRun according to the given ScanConfig.
637637
638638
Args:
639-
request (google.cloud.websecurityscanner_v1.types.StartScanRunRequest):
639+
request (Union[google.cloud.websecurityscanner_v1.types.StartScanRunRequest, dict]):
640640
The request object. Request for the `StartScanRun`
641641
method.
642642
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -678,7 +678,7 @@ def start_scan_run(
678678

679679
def get_scan_run(
680680
self,
681-
request: web_security_scanner.GetScanRunRequest = None,
681+
request: Union[web_security_scanner.GetScanRunRequest, dict] = None,
682682
*,
683683
retry: retries.Retry = gapic_v1.method.DEFAULT,
684684
timeout: float = None,
@@ -687,7 +687,7 @@ def get_scan_run(
687687
r"""Gets a ScanRun.
688688
689689
Args:
690-
request (google.cloud.websecurityscanner_v1.types.GetScanRunRequest):
690+
request (Union[google.cloud.websecurityscanner_v1.types.GetScanRunRequest, dict]):
691691
The request object. Request for the `GetScanRun` method.
692692
retry (google.api_core.retry.Retry): Designation of what errors, if any,
693693
should be retried.
@@ -728,7 +728,7 @@ def get_scan_run(
728728

729729
def list_scan_runs(
730730
self,
731-
request: web_security_scanner.ListScanRunsRequest = None,
731+
request: Union[web_security_scanner.ListScanRunsRequest, dict] = None,
732732
*,
733733
retry: retries.Retry = gapic_v1.method.DEFAULT,
734734
timeout: float = None,
@@ -738,7 +738,7 @@ def list_scan_runs(
738738
descending order of ScanRun stop time.
739739
740740
Args:
741-
request (google.cloud.websecurityscanner_v1.types.ListScanRunsRequest):
741+
request (Union[google.cloud.websecurityscanner_v1.types.ListScanRunsRequest, dict]):
742742
The request object. Request for the `ListScanRuns`
743743
method.
744744
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -787,7 +787,7 @@ def list_scan_runs(
787787

788788
def stop_scan_run(
789789
self,
790-
request: web_security_scanner.StopScanRunRequest = None,
790+
request: Union[web_security_scanner.StopScanRunRequest, dict] = None,
791791
*,
792792
retry: retries.Retry = gapic_v1.method.DEFAULT,
793793
timeout: float = None,
@@ -796,7 +796,7 @@ def stop_scan_run(
796796
r"""Stops a ScanRun. The stopped ScanRun is returned.
797797
798798
Args:
799-
request (google.cloud.websecurityscanner_v1.types.StopScanRunRequest):
799+
request (Union[google.cloud.websecurityscanner_v1.types.StopScanRunRequest, dict]):
800800
The request object. Request for the `StopScanRun`
801801
method.
802802
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -838,7 +838,7 @@ def stop_scan_run(
838838

839839
def list_crawled_urls(
840840
self,
841-
request: web_security_scanner.ListCrawledUrlsRequest = None,
841+
request: Union[web_security_scanner.ListCrawledUrlsRequest, dict] = None,
842842
*,
843843
retry: retries.Retry = gapic_v1.method.DEFAULT,
844844
timeout: float = None,
@@ -847,7 +847,7 @@ def list_crawled_urls(
847847
r"""List CrawledUrls under a given ScanRun.
848848
849849
Args:
850-
request (google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest):
850+
request (Union[google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest, dict]):
851851
The request object. Request for the `ListCrawledUrls`
852852
method.
853853
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -896,7 +896,7 @@ def list_crawled_urls(
896896

897897
def get_finding(
898898
self,
899-
request: web_security_scanner.GetFindingRequest = None,
899+
request: Union[web_security_scanner.GetFindingRequest, dict] = None,
900900
*,
901901
retry: retries.Retry = gapic_v1.method.DEFAULT,
902902
timeout: float = None,
@@ -905,7 +905,7 @@ def get_finding(
905905
r"""Gets a Finding.
906906
907907
Args:
908-
request (google.cloud.websecurityscanner_v1.types.GetFindingRequest):
908+
request (Union[google.cloud.websecurityscanner_v1.types.GetFindingRequest, dict]):
909909
The request object. Request for the `GetFinding` method.
910910
retry (google.api_core.retry.Retry): Designation of what errors, if any,
911911
should be retried.
@@ -946,7 +946,7 @@ def get_finding(
946946

947947
def list_findings(
948948
self,
949-
request: web_security_scanner.ListFindingsRequest = None,
949+
request: Union[web_security_scanner.ListFindingsRequest, dict] = None,
950950
*,
951951
retry: retries.Retry = gapic_v1.method.DEFAULT,
952952
timeout: float = None,
@@ -955,7 +955,7 @@ def list_findings(
955955
r"""List Findings under a given ScanRun.
956956
957957
Args:
958-
request (google.cloud.websecurityscanner_v1.types.ListFindingsRequest):
958+
request (Union[google.cloud.websecurityscanner_v1.types.ListFindingsRequest, dict]):
959959
The request object. Request for the `ListFindings`
960960
method.
961961
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -1004,7 +1004,7 @@ def list_findings(
10041004

10051005
def list_finding_type_stats(
10061006
self,
1007-
request: web_security_scanner.ListFindingTypeStatsRequest = None,
1007+
request: Union[web_security_scanner.ListFindingTypeStatsRequest, dict] = None,
10081008
*,
10091009
retry: retries.Retry = gapic_v1.method.DEFAULT,
10101010
timeout: float = None,
@@ -1013,7 +1013,7 @@ def list_finding_type_stats(
10131013
r"""List all FindingTypeStats under a given ScanRun.
10141014
10151015
Args:
1016-
request (google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest):
1016+
request (Union[google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest, dict]):
10171017
The request object. Request for the
10181018
`ListFindingTypeStats` method.
10191019
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(
121121
**scopes_kwargs, quota_project_id=quota_project_id
122122
)
123123

124-
# If the credentials is service account credentials, then always try to use self signed JWT.
124+
# If the credentials are service account credentials, then always try to use self signed JWT.
125125
if (
126126
always_use_jwt_access
127127
and isinstance(credentials, service_account.Credentials)

google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@ def __init__(
8787
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8888
If provided, it overrides the ``host`` argument and tries to create
8989
a mutual TLS channel with client SSL credentials from
90-
``client_cert_source`` or applicatin default SSL credentials.
90+
``client_cert_source`` or application default SSL credentials.
9191
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
9292
Deprecated. A callback to provide client SSL certificate bytes and
9393
private key bytes, both in PEM format. It is ignored if
9494
``api_mtls_endpoint`` is None.
9595
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
96-
for grpc channel. It is ignored if ``channel`` is provided.
96+
for the grpc channel. It is ignored if ``channel`` is provided.
9797
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9898
A callback to provide client certificate bytes and private key bytes,
99-
both in PEM format. It is used to configure mutual TLS channel. It is
99+
both in PEM format. It is used to configure a mutual TLS channel. It is
100100
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
101101
quota_project_id (Optional[str]): An optional project to use for billing
102102
and quota.

google/cloud/websecurityscanner_v1/services/web_security_scanner/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ def __init__(
134134
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
135135
If provided, it overrides the ``host`` argument and tries to create
136136
a mutual TLS channel with client SSL credentials from
137-
``client_cert_source`` or applicatin default SSL credentials.
137+
``client_cert_source`` or application default SSL credentials.
138138
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
139139
Deprecated. A callback to provide client SSL certificate bytes and
140140
private key bytes, both in PEM format. It is ignored if
141141
``api_mtls_endpoint`` is None.
142142
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
143-
for grpc channel. It is ignored if ``channel`` is provided.
143+
for the grpc channel. It is ignored if ``channel`` is provided.
144144
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
145145
A callback to provide client certificate bytes and private key bytes,
146-
both in PEM format. It is used to configure mutual TLS channel. It is
146+
both in PEM format. It is used to configure a mutual TLS channel. It is
147147
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
148148
quota_project_id (Optional[str]): An optional project to use for billing
149149
and quota.

0 commit comments

Comments
 (0)