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

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#156)
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: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44
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

* 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: https://github.com/googleapis/googleapis-gen/commit/ab0e217f560cc2c1afc11441c2eab6b6950efd2b
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: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f
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 115f565 commit f2b26b1
Show file tree
Hide file tree
Showing 24 changed files with 451 additions and 256 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
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
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.5.4"
}
1 change: 0 additions & 1 deletion docs/network_management_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Network Management v1 API

.. automodule:: google.cloud.network_management_v1.types
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions google/cloud/network_management/__init__.py
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.network_management import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.network_management_v1.services.reachability_service.async_client import (
ReachabilityServiceAsyncClient,
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/network_management/gapic_version.py
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.5.4" # {x-release-please-version}
4 changes: 4 additions & 0 deletions google/cloud/network_management_v1/__init__.py
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.network_management import gapic_version as package_version

__version__ = package_version.__version__


from .services.reachability_service import (
ReachabilityServiceAsyncClient,
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 @@ -180,9 +190,9 @@ def transport(self) -> ReachabilityServiceTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, ReachabilityServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the reachability service client.
Expand Down Expand Up @@ -226,11 +236,13 @@ def __init__(

async def list_connectivity_tests(
self,
request: Union[reachability.ListConnectivityTestsRequest, dict] = None,
request: Optional[
Union[reachability.ListConnectivityTestsRequest, dict]
] = None,
*,
parent: str = None,
parent: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListConnectivityTestsAsyncPager:
r"""Lists all Connectivity Tests owned by a project.
Expand Down Expand Up @@ -263,7 +275,7 @@ async def sample_list_connectivity_tests():
print(response)
Args:
request (Union[google.cloud.network_management_v1.types.ListConnectivityTestsRequest, dict]):
request (Optional[Union[google.cloud.network_management_v1.types.ListConnectivityTestsRequest, dict]]):
The request object. Request for the
`ListConnectivityTests` method.
parent (:class:`str`):
Expand Down Expand Up @@ -340,11 +352,11 @@ async def sample_list_connectivity_tests():

async def get_connectivity_test(
self,
request: Union[reachability.GetConnectivityTestRequest, dict] = None,
request: Optional[Union[reachability.GetConnectivityTestRequest, dict]] = None,
*,
name: str = None,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> connectivity_test.ConnectivityTest:
r"""Gets the details of a specific Connectivity Test.
Expand Down Expand Up @@ -376,7 +388,7 @@ async def sample_get_connectivity_test():
print(response)
Args:
request (Union[google.cloud.network_management_v1.types.GetConnectivityTestRequest, dict]):
request (Optional[Union[google.cloud.network_management_v1.types.GetConnectivityTestRequest, dict]]):
The request object. Request for the
`GetConnectivityTest` method.
name (:class:`str`):
Expand Down Expand Up @@ -443,13 +455,15 @@ async def sample_get_connectivity_test():

async def create_connectivity_test(
self,
request: Union[reachability.CreateConnectivityTestRequest, dict] = None,
request: Optional[
Union[reachability.CreateConnectivityTestRequest, dict]
] = None,
*,
parent: str = None,
test_id: str = None,
resource: connectivity_test.ConnectivityTest = None,
parent: Optional[str] = None,
test_id: Optional[str] = None,
resource: Optional[connectivity_test.ConnectivityTest] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Creates a new Connectivity Test. After you create a test, the
Expand Down Expand Up @@ -503,7 +517,7 @@ async def sample_create_connectivity_test():
print(response)
Args:
request (Union[google.cloud.network_management_v1.types.CreateConnectivityTestRequest, dict]):
request (Optional[Union[google.cloud.network_management_v1.types.CreateConnectivityTestRequest, dict]]):
The request object. Request for the
`CreateConnectivityTest` method.
parent (:class:`str`):
Expand Down Expand Up @@ -603,12 +617,14 @@ async def sample_create_connectivity_test():

async def update_connectivity_test(
self,
request: Union[reachability.UpdateConnectivityTestRequest, dict] = None,
request: Optional[
Union[reachability.UpdateConnectivityTestRequest, dict]
] = None,
*,
update_mask: field_mask_pb2.FieldMask = None,
resource: connectivity_test.ConnectivityTest = None,
update_mask: Optional[field_mask_pb2.FieldMask] = None,
resource: Optional[connectivity_test.ConnectivityTest] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Updates the configuration of an existing ``ConnectivityTest``.
Expand Down Expand Up @@ -662,7 +678,7 @@ async def sample_update_connectivity_test():
print(response)
Args:
request (Union[google.cloud.network_management_v1.types.UpdateConnectivityTestRequest, dict]):
request (Optional[Union[google.cloud.network_management_v1.types.UpdateConnectivityTestRequest, dict]]):
The request object. Request for the
`UpdateConnectivityTest` method.
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
Expand Down Expand Up @@ -751,10 +767,12 @@ async def sample_update_connectivity_test():

async def rerun_connectivity_test(
self,
request: Union[reachability.RerunConnectivityTestRequest, dict] = None,
request: Optional[
Union[reachability.RerunConnectivityTestRequest, dict]
] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Rerun an existing ``ConnectivityTest``. After the user triggers
Expand Down Expand Up @@ -803,7 +821,7 @@ async def sample_rerun_connectivity_test():
print(response)
Args:
request (Union[google.cloud.network_management_v1.types.RerunConnectivityTestRequest, dict]):
request (Optional[Union[google.cloud.network_management_v1.types.RerunConnectivityTestRequest, dict]]):
The request object. Request for the
`RerunConnectivityTest` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -859,11 +877,13 @@ async def sample_rerun_connectivity_test():

async def delete_connectivity_test(
self,
request: Union[reachability.DeleteConnectivityTestRequest, dict] = None,
request: Optional[
Union[reachability.DeleteConnectivityTestRequest, dict]
] = None,
*,
name: str = None,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Deletes a specific ``ConnectivityTest``.
Expand Down Expand Up @@ -899,7 +919,7 @@ async def sample_delete_connectivity_test():
print(response)
Args:
request (Union[google.cloud.network_management_v1.types.DeleteConnectivityTestRequest, dict]):
request (Optional[Union[google.cloud.network_management_v1.types.DeleteConnectivityTestRequest, dict]]):
The request object. Request for the
`DeleteConnectivityTest` method.
name (:class:`str`):
Expand Down
Loading

0 comments on commit f2b26b1

Please sign in to comment.