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

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#144)
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

* 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

* configure release-please to use manifest

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 21, 2022
1 parent 4e17345 commit 8f180ec
Show file tree
Hide file tree
Showing 39 changed files with 712 additions and 404 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseType: python
handleGHRelease: true
manifest: true
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.7.2"
}
1 change: 0 additions & 1 deletion docs/bigquery_migration_v2/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Bigquery Migration v2 API

.. automodule:: google.cloud.bigquery_migration_v2.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/bigquery_migration_v2alpha/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Bigquery Migration v2alpha API

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

__version__ = package_version.__version__


from google.cloud.bigquery_migration_v2.services.migration_service.async_client import (
MigrationServiceAsyncClient,
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/bigquery_migration/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__ = "0.7.2" # {x-release-please-version}
4 changes: 4 additions & 0 deletions google/cloud/bigquery_migration_v2/__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.bigquery_migration import gapic_version as package_version

__version__ = package_version.__version__


from .services.migration_service import (
MigrationServiceAsyncClient,
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 @@ -175,9 +185,9 @@ def transport(self) -> MigrationServiceTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, MigrationServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the migration service client.
Expand Down Expand Up @@ -221,12 +231,14 @@ def __init__(

async def create_migration_workflow(
self,
request: Union[migration_service.CreateMigrationWorkflowRequest, dict] = None,
request: Optional[
Union[migration_service.CreateMigrationWorkflowRequest, dict]
] = None,
*,
parent: str = None,
migration_workflow: migration_entities.MigrationWorkflow = None,
parent: Optional[str] = None,
migration_workflow: Optional[migration_entities.MigrationWorkflow] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> migration_entities.MigrationWorkflow:
r"""Creates a migration workflow.
Expand Down Expand Up @@ -258,7 +270,7 @@ async def sample_create_migration_workflow():
print(response)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.CreateMigrationWorkflowRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.CreateMigrationWorkflowRequest, dict]]):
The request object. Request to create a migration
workflow resource.
parent (:class:`str`):
Expand Down Expand Up @@ -335,11 +347,13 @@ async def sample_create_migration_workflow():

async def get_migration_workflow(
self,
request: Union[migration_service.GetMigrationWorkflowRequest, dict] = None,
request: Optional[
Union[migration_service.GetMigrationWorkflowRequest, 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]] = (),
) -> migration_entities.MigrationWorkflow:
r"""Gets a previously created migration workflow.
Expand Down Expand Up @@ -371,7 +385,7 @@ async def sample_get_migration_workflow():
print(response)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.GetMigrationWorkflowRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.GetMigrationWorkflowRequest, dict]]):
The request object. A request to get a previously
created migration workflow.
name (:class:`str`):
Expand Down Expand Up @@ -448,11 +462,13 @@ async def sample_get_migration_workflow():

async def list_migration_workflows(
self,
request: Union[migration_service.ListMigrationWorkflowsRequest, dict] = None,
request: Optional[
Union[migration_service.ListMigrationWorkflowsRequest, 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.ListMigrationWorkflowsAsyncPager:
r"""Lists previously created migration workflow.
Expand Down Expand Up @@ -485,7 +501,7 @@ async def sample_list_migration_workflows():
print(response)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.ListMigrationWorkflowsRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.ListMigrationWorkflowsRequest, dict]]):
The request object. A request to list previously created
migration workflows.
parent (:class:`str`):
Expand Down Expand Up @@ -572,11 +588,13 @@ async def sample_list_migration_workflows():

async def delete_migration_workflow(
self,
request: Union[migration_service.DeleteMigrationWorkflowRequest, dict] = None,
request: Optional[
Union[migration_service.DeleteMigrationWorkflowRequest, 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]] = (),
) -> None:
r"""Deletes a migration workflow by name.
Expand Down Expand Up @@ -605,7 +623,7 @@ async def sample_delete_migration_workflow():
await client.delete_migration_workflow(request=request)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.DeleteMigrationWorkflowRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.DeleteMigrationWorkflowRequest, dict]]):
The request object. A request to delete a previously
created migration workflow.
name (:class:`str`):
Expand Down Expand Up @@ -663,11 +681,13 @@ async def sample_delete_migration_workflow():

async def start_migration_workflow(
self,
request: Union[migration_service.StartMigrationWorkflowRequest, dict] = None,
request: Optional[
Union[migration_service.StartMigrationWorkflowRequest, 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]] = (),
) -> None:
r"""Starts a previously created migration workflow. I.e.,
Expand Down Expand Up @@ -700,7 +720,7 @@ async def sample_start_migration_workflow():
await client.start_migration_workflow(request=request)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.StartMigrationWorkflowRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.StartMigrationWorkflowRequest, dict]]):
The request object. A request to start a previously
created migration workflow.
name (:class:`str`):
Expand Down Expand Up @@ -767,11 +787,13 @@ async def sample_start_migration_workflow():

async def get_migration_subtask(
self,
request: Union[migration_service.GetMigrationSubtaskRequest, dict] = None,
request: Optional[
Union[migration_service.GetMigrationSubtaskRequest, 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]] = (),
) -> migration_entities.MigrationSubtask:
r"""Gets a previously created migration subtask.
Expand Down Expand Up @@ -803,7 +825,7 @@ async def sample_get_migration_subtask():
print(response)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.GetMigrationSubtaskRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.GetMigrationSubtaskRequest, dict]]):
The request object. A request to get a previously
created migration subtasks.
name (:class:`str`):
Expand Down Expand Up @@ -874,11 +896,13 @@ async def sample_get_migration_subtask():

async def list_migration_subtasks(
self,
request: Union[migration_service.ListMigrationSubtasksRequest, dict] = None,
request: Optional[
Union[migration_service.ListMigrationSubtasksRequest, 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.ListMigrationSubtasksAsyncPager:
r"""Lists previously created migration subtasks.
Expand Down Expand Up @@ -911,7 +935,7 @@ async def sample_list_migration_subtasks():
print(response)
Args:
request (Union[google.cloud.bigquery_migration_v2.types.ListMigrationSubtasksRequest, dict]):
request (Optional[Union[google.cloud.bigquery_migration_v2.types.ListMigrationSubtasksRequest, dict]]):
The request object. A request to list previously created
migration subtasks.
parent (:class:`str`):
Expand Down
Loading

0 comments on commit 8f180ec

Please sign in to comment.