Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#149)
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 <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2022
1 parent 023dceb commit 2f32e7e
Show file tree
Hide file tree
Showing 22 changed files with 336 additions and 167 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.5.3"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Data Fusion v1 API

.. automodule:: google.cloud.data_fusion_v1.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.data_fusion import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.data_fusion_v1.services.data_fusion.async_client import (
DataFusionAsyncClient,
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.5.3" # {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.data_fusion import gapic_version as package_version

__version__ = package_version.__version__


from .services.data_fusion import DataFusionAsyncClient, DataFusionClient
from .types.datafusion import (
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 @@ -164,9 +174,9 @@ def transport(self) -> DataFusionTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, DataFusionTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the data fusion client.
Expand Down Expand Up @@ -210,11 +220,11 @@ def __init__(

async def list_available_versions(
self,
request: Union[datafusion.ListAvailableVersionsRequest, dict] = None,
request: Optional[Union[datafusion.ListAvailableVersionsRequest, 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.ListAvailableVersionsAsyncPager:
r"""Lists possible versions for Data Fusion instances in
Expand Down Expand Up @@ -248,7 +258,7 @@ async def sample_list_available_versions():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.ListAvailableVersionsRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.ListAvailableVersionsRequest, dict]]):
The request object. Request message for the list
available versions request.
parent (:class:`str`):
Expand Down Expand Up @@ -328,10 +338,10 @@ async def sample_list_available_versions():

async def list_instances(
self,
request: Union[datafusion.ListInstancesRequest, dict] = None,
request: Optional[Union[datafusion.ListInstancesRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListInstancesAsyncPager:
r"""Lists Data Fusion instances in the specified project
Expand Down Expand Up @@ -365,7 +375,7 @@ async def sample_list_instances():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.ListInstancesRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.ListInstancesRequest, dict]]):
The request object. Request message for listing Data
Fusion instances.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -422,10 +432,10 @@ async def sample_list_instances():

async def get_instance(
self,
request: Union[datafusion.GetInstanceRequest, dict] = None,
request: Optional[Union[datafusion.GetInstanceRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> datafusion.Instance:
r"""Gets details of a single Data Fusion instance.
Expand Down Expand Up @@ -457,7 +467,7 @@ async def sample_get_instance():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.GetInstanceRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.GetInstanceRequest, dict]]):
The request object. Request message for getting details
about a Data Fusion instance.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -500,13 +510,13 @@ async def sample_get_instance():

async def create_instance(
self,
request: Union[datafusion.CreateInstanceRequest, dict] = None,
request: Optional[Union[datafusion.CreateInstanceRequest, dict]] = None,
*,
parent: str = None,
instance: datafusion.Instance = None,
instance_id: str = None,
parent: Optional[str] = None,
instance: Optional[datafusion.Instance] = None,
instance_id: 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"""Creates a new Data Fusion instance in the specified
Expand Down Expand Up @@ -544,7 +554,7 @@ async def sample_create_instance():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.CreateInstanceRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.CreateInstanceRequest, dict]]):
The request object. Request message for creating a Data
Fusion instance.
parent (:class:`str`):
Expand Down Expand Up @@ -638,11 +648,11 @@ async def sample_create_instance():

async def delete_instance(
self,
request: Union[datafusion.DeleteInstanceRequest, dict] = None,
request: Optional[Union[datafusion.DeleteInstanceRequest, 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 single Date Fusion instance.
Expand Down Expand Up @@ -678,7 +688,7 @@ async def sample_delete_instance():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.DeleteInstanceRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.DeleteInstanceRequest, dict]]):
The request object. Request message for deleting a Data
Fusion instance.
name (:class:`str`):
Expand Down Expand Up @@ -763,12 +773,12 @@ async def sample_delete_instance():

async def update_instance(
self,
request: Union[datafusion.UpdateInstanceRequest, dict] = None,
request: Optional[Union[datafusion.UpdateInstanceRequest, dict]] = None,
*,
instance: datafusion.Instance = None,
update_mask: field_mask_pb2.FieldMask = None,
instance: Optional[datafusion.Instance] = None,
update_mask: Optional[field_mask_pb2.FieldMask] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Updates a single Data Fusion instance.
Expand Down Expand Up @@ -807,7 +817,7 @@ async def sample_update_instance():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.UpdateInstanceRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.UpdateInstanceRequest, dict]]):
The request object. Request message for updating a Data
Fusion instance. Data Fusion allows updating the labels,
options, and stack driver settings. This is also used
Expand Down Expand Up @@ -906,10 +916,10 @@ async def sample_update_instance():

async def restart_instance(
self,
request: Union[datafusion.RestartInstanceRequest, dict] = None,
request: Optional[Union[datafusion.RestartInstanceRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Restart a single Data Fusion instance.
Expand Down Expand Up @@ -946,7 +956,7 @@ async def sample_restart_instance():
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.RestartInstanceRequest, dict]):
request (Optional[Union[google.cloud.data_fusion_v1.types.RestartInstanceRequest, dict]]):
The request object. Request message for restarting a
Data Fusion instance.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Loading

0 comments on commit 2f32e7e

Please sign in to comment.