Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#246)
Browse files Browse the repository at this point in the history
* chore: update to gapic-generator-python 1.5.0

feat: add support for `google.cloud.<api>.__version__`
PiperOrigin-RevId: 484665853

Source-Link: googleapis/googleapis@8eb249a

Source-Link: googleapis/googleapis-gen@c8aa327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update version in gapic_version.py

* add .release-please-manifest.json with correct version

* add owlbot.py to exclude generated gapic_version.py

* set manifest to true in .github/release-please.yml

* add release-please-config.json

* chore: Update to gapic-generator-python 1.6.0

feat(python): Add typing to proto.Message based class attributes

feat(python): Snippetgen handling of repeated enum field

PiperOrigin-RevId: 487326846

Source-Link: googleapis/googleapis@da380c7

Source-Link: googleapis/googleapis-gen@61ef576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: new APIs added to reflect updates to the filestore service

- Add ENTERPRISE Tier
- Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot
- Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare
- Add ConnectMode to NetworkConfig (for Private Service Access support)
- New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING)
- Add SuspensionReason (for KMS related suspension)
- Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled

PiperOrigin-RevId: 487492758

Source-Link: googleapis/googleapis@5be5981

Source-Link: googleapis/googleapis-gen@ab0e217
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update path to snippet metadata json

* chore: Update gapic-generator-python to v1.6.1

PiperOrigin-RevId: 488036204

Source-Link: googleapis/googleapis@08f275f

Source-Link: googleapis/googleapis-gen@555c094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Nov 26, 2022
1 parent 342e673 commit a7959ae
Show file tree
Hide file tree
Showing 64 changed files with 1,108 additions and 746 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
releaseType: python
handleGHRelease: true
manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.9.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Websecurityscanner v1 API

.. automodule:: google.cloud.websecurityscanner_v1.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Websecurityscanner v1alpha API

.. automodule:: google.cloud.websecurityscanner_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Websecurityscanner v1beta API

.. automodule:: google.cloud.websecurityscanner_v1beta.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.websecurityscanner import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.websecurityscanner_v1.services.web_security_scanner.async_client import (
WebSecurityScannerAsyncClient,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.9.2" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.websecurityscanner import gapic_version as package_version

__version__ = package_version.__version__


from .services.web_security_scanner import (
WebSecurityScannerAsyncClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)

from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
Expand Down Expand Up @@ -176,9 +186,9 @@ def transport(self) -> WebSecurityScannerTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, WebSecurityScannerTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the web security scanner client.
Expand Down Expand Up @@ -222,10 +232,12 @@ def __init__(

async def create_scan_config(
self,
request: Union[web_security_scanner.CreateScanConfigRequest, dict] = None,
request: Optional[
Union[web_security_scanner.CreateScanConfigRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_config.ScanConfig:
r"""Creates a new ScanConfig.
Expand Down Expand Up @@ -256,7 +268,7 @@ async def sample_create_scan_config():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.CreateScanConfigRequest, dict]):
request (Optional[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 @@ -301,10 +313,12 @@ async def sample_create_scan_config():

async def delete_scan_config(
self,
request: Union[web_security_scanner.DeleteScanConfigRequest, dict] = None,
request: Optional[
Union[web_security_scanner.DeleteScanConfigRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes an existing ScanConfig and its child
Expand Down Expand Up @@ -333,7 +347,7 @@ async def sample_delete_scan_config():
await client.delete_scan_config(request=request)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.DeleteScanConfigRequest, dict]):
request (Optional[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 @@ -379,10 +393,12 @@ async def sample_delete_scan_config():

async def get_scan_config(
self,
request: Union[web_security_scanner.GetScanConfigRequest, dict] = None,
request: Optional[
Union[web_security_scanner.GetScanConfigRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_config.ScanConfig:
r"""Gets a ScanConfig.
Expand Down Expand Up @@ -413,7 +429,7 @@ async def sample_get_scan_config():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.GetScanConfigRequest, dict]):
request (Optional[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 @@ -468,10 +484,12 @@ async def sample_get_scan_config():

async def list_scan_configs(
self,
request: Union[web_security_scanner.ListScanConfigsRequest, dict] = None,
request: Optional[
Union[web_security_scanner.ListScanConfigsRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListScanConfigsAsyncPager:
r"""Lists ScanConfigs under a given project.
Expand Down Expand Up @@ -503,7 +521,7 @@ async def sample_list_scan_configs():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.ListScanConfigsRequest, dict]):
request (Optional[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 @@ -569,10 +587,12 @@ async def sample_list_scan_configs():

async def update_scan_config(
self,
request: Union[web_security_scanner.UpdateScanConfigRequest, dict] = None,
request: Optional[
Union[web_security_scanner.UpdateScanConfigRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_config.ScanConfig:
r"""Updates a ScanConfig. This method support partial
Expand Down Expand Up @@ -604,7 +624,7 @@ async def sample_update_scan_config():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.UpdateScanConfigRequest, dict]):
request (Optional[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 @@ -651,10 +671,10 @@ async def sample_update_scan_config():

async def start_scan_run(
self,
request: Union[web_security_scanner.StartScanRunRequest, dict] = None,
request: Optional[Union[web_security_scanner.StartScanRunRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_run.ScanRun:
r"""Start a ScanRun according to the given ScanConfig.
Expand Down Expand Up @@ -685,7 +705,7 @@ async def sample_start_scan_run():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.StartScanRunRequest, dict]):
request (Optional[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 @@ -731,10 +751,10 @@ async def sample_start_scan_run():

async def get_scan_run(
self,
request: Union[web_security_scanner.GetScanRunRequest, dict] = None,
request: Optional[Union[web_security_scanner.GetScanRunRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_run.ScanRun:
r"""Gets a ScanRun.
Expand Down Expand Up @@ -765,7 +785,7 @@ async def sample_get_scan_run():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.GetScanRunRequest, dict]):
request (Optional[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 @@ -820,10 +840,10 @@ async def sample_get_scan_run():

async def list_scan_runs(
self,
request: Union[web_security_scanner.ListScanRunsRequest, dict] = None,
request: Optional[Union[web_security_scanner.ListScanRunsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListScanRunsAsyncPager:
r"""Lists ScanRuns under a given ScanConfig, in
Expand Down Expand Up @@ -856,7 +876,7 @@ async def sample_list_scan_runs():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.ListScanRunsRequest, dict]):
request (Optional[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 @@ -922,10 +942,10 @@ async def sample_list_scan_runs():

async def stop_scan_run(
self,
request: Union[web_security_scanner.StopScanRunRequest, dict] = None,
request: Optional[Union[web_security_scanner.StopScanRunRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> scan_run.ScanRun:
r"""Stops a ScanRun. The stopped ScanRun is returned.
Expand Down Expand Up @@ -956,7 +976,7 @@ async def sample_stop_scan_run():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.StopScanRunRequest, dict]):
request (Optional[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 @@ -1002,10 +1022,12 @@ async def sample_stop_scan_run():

async def list_crawled_urls(
self,
request: Union[web_security_scanner.ListCrawledUrlsRequest, dict] = None,
request: Optional[
Union[web_security_scanner.ListCrawledUrlsRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListCrawledUrlsAsyncPager:
r"""List CrawledUrls under a given ScanRun.
Expand Down Expand Up @@ -1037,7 +1059,7 @@ async def sample_list_crawled_urls():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.ListCrawledUrlsRequest, dict]):
request (Optional[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 @@ -1103,10 +1125,10 @@ async def sample_list_crawled_urls():

async def get_finding(
self,
request: Union[web_security_scanner.GetFindingRequest, dict] = None,
request: Optional[Union[web_security_scanner.GetFindingRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> finding.Finding:
r"""Gets a Finding.
Expand Down Expand Up @@ -1137,7 +1159,7 @@ async def sample_get_finding():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.GetFindingRequest, dict]):
request (Optional[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 @@ -1192,10 +1214,10 @@ async def sample_get_finding():

async def list_findings(
self,
request: Union[web_security_scanner.ListFindingsRequest, dict] = None,
request: Optional[Union[web_security_scanner.ListFindingsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListFindingsAsyncPager:
r"""List Findings under a given ScanRun.
Expand Down Expand Up @@ -1227,7 +1249,7 @@ async def sample_list_findings():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.ListFindingsRequest, dict]):
request (Optional[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 @@ -1293,10 +1315,12 @@ async def sample_list_findings():

async def list_finding_type_stats(
self,
request: Union[web_security_scanner.ListFindingTypeStatsRequest, dict] = None,
request: Optional[
Union[web_security_scanner.ListFindingTypeStatsRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> web_security_scanner.ListFindingTypeStatsResponse:
r"""List all FindingTypeStats under a given ScanRun.
Expand Down Expand Up @@ -1327,7 +1351,7 @@ async def sample_list_finding_type_stats():
print(response)
Args:
request (Union[google.cloud.websecurityscanner_v1.types.ListFindingTypeStatsRequest, dict]):
request (Optional[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
Loading

0 comments on commit a7959ae

Please sign in to comment.