Skip to content

Commit

Permalink
chore: Update to gapic-generator-python 1.6.0 (#207)
Browse files Browse the repository at this point in the history
* 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

* fix docs build

* fix url in setup.py

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 12, 2022
1 parent 041449f commit dfec793
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 187 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Area120 Tables v1alpha1 API

.. automodule:: google.area120.tables_v1alpha1.types
:members:
:undoc-members:
:show-inheritance:
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 @@ -179,9 +189,9 @@ def transport(self) -> TablesServiceTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, TablesServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the tables service client.
Expand Down Expand Up @@ -225,11 +235,11 @@ def __init__(

async def get_table(
self,
request: Union[tables.GetTableRequest, dict] = None,
request: Optional[Union[tables.GetTableRequest, 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]] = (),
) -> tables.Table:
r"""Gets a table. Returns NOT_FOUND if the table does not exist.
Expand Down Expand Up @@ -261,7 +271,7 @@ async def sample_get_table():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.GetTableRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.GetTableRequest, dict]]):
The request object. Request message for
TablesService.GetTable.
name (:class:`str`):
Expand Down Expand Up @@ -325,10 +335,10 @@ async def sample_get_table():

async def list_tables(
self,
request: Union[tables.ListTablesRequest, dict] = None,
request: Optional[Union[tables.ListTablesRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListTablesAsyncPager:
r"""Lists tables for the user.
Expand Down Expand Up @@ -360,7 +370,7 @@ async def sample_list_tables():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.ListTablesRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.ListTablesRequest, dict]]):
The request object. Request message for
TablesService.ListTables.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -411,11 +421,11 @@ async def sample_list_tables():

async def get_workspace(
self,
request: Union[tables.GetWorkspaceRequest, dict] = None,
request: Optional[Union[tables.GetWorkspaceRequest, 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]] = (),
) -> tables.Workspace:
r"""Gets a workspace. Returns NOT_FOUND if the workspace does not
Expand Down Expand Up @@ -448,7 +458,7 @@ async def sample_get_workspace():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.GetWorkspaceRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.GetWorkspaceRequest, dict]]):
The request object. Request message for
TablesService.GetWorkspace.
name (:class:`str`):
Expand Down Expand Up @@ -513,10 +523,10 @@ async def sample_get_workspace():

async def list_workspaces(
self,
request: Union[tables.ListWorkspacesRequest, dict] = None,
request: Optional[Union[tables.ListWorkspacesRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListWorkspacesAsyncPager:
r"""Lists workspaces for the user.
Expand Down Expand Up @@ -548,7 +558,7 @@ async def sample_list_workspaces():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.ListWorkspacesRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.ListWorkspacesRequest, dict]]):
The request object. Request message for
TablesService.ListWorkspaces.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -599,11 +609,11 @@ async def sample_list_workspaces():

async def get_row(
self,
request: Union[tables.GetRowRequest, dict] = None,
request: Optional[Union[tables.GetRowRequest, 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]] = (),
) -> tables.Row:
r"""Gets a row. Returns NOT_FOUND if the row does not exist in the
Expand Down Expand Up @@ -636,7 +646,7 @@ async def sample_get_row():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.GetRowRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.GetRowRequest, dict]]):
The request object. Request message for
TablesService.GetRow.
name (:class:`str`):
Expand Down Expand Up @@ -701,11 +711,11 @@ async def sample_get_row():

async def list_rows(
self,
request: Union[tables.ListRowsRequest, dict] = None,
request: Optional[Union[tables.ListRowsRequest, 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.ListRowsAsyncPager:
r"""Lists rows in a table. Returns NOT_FOUND if the table does not
Expand Down Expand Up @@ -739,7 +749,7 @@ async def sample_list_rows():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.ListRowsRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.ListRowsRequest, dict]]):
The request object. Request message for
TablesService.ListRows.
parent (:class:`str`):
Expand Down Expand Up @@ -817,12 +827,12 @@ async def sample_list_rows():

async def create_row(
self,
request: Union[tables.CreateRowRequest, dict] = None,
request: Optional[Union[tables.CreateRowRequest, dict]] = None,
*,
parent: str = None,
row: tables.Row = None,
parent: Optional[str] = None,
row: Optional[tables.Row] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
r"""Creates a row.
Expand Down Expand Up @@ -854,7 +864,7 @@ async def sample_create_row():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.CreateRowRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.CreateRowRequest, dict]]):
The request object. Request message for
TablesService.CreateRow.
parent (:class:`str`):
Expand Down Expand Up @@ -926,10 +936,10 @@ async def sample_create_row():

async def batch_create_rows(
self,
request: Union[tables.BatchCreateRowsRequest, dict] = None,
request: Optional[Union[tables.BatchCreateRowsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.BatchCreateRowsResponse:
r"""Creates multiple rows.
Expand Down Expand Up @@ -965,7 +975,7 @@ async def sample_batch_create_rows():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.BatchCreateRowsRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.BatchCreateRowsRequest, dict]]):
The request object. Request message for
TablesService.BatchCreateRows.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1010,12 +1020,12 @@ async def sample_batch_create_rows():

async def update_row(
self,
request: Union[tables.UpdateRowRequest, dict] = None,
request: Optional[Union[tables.UpdateRowRequest, dict]] = None,
*,
row: tables.Row = None,
update_mask: field_mask_pb2.FieldMask = None,
row: Optional[tables.Row] = 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]] = (),
) -> tables.Row:
r"""Updates a row.
Expand Down Expand Up @@ -1046,7 +1056,7 @@ async def sample_update_row():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.UpdateRowRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.UpdateRowRequest, dict]]):
The request object. Request message for
TablesService.UpdateRow.
row (:class:`google.area120.tables_v1alpha1.types.Row`):
Expand Down Expand Up @@ -1115,10 +1125,10 @@ async def sample_update_row():

async def batch_update_rows(
self,
request: Union[tables.BatchUpdateRowsRequest, dict] = None,
request: Optional[Union[tables.BatchUpdateRowsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.BatchUpdateRowsResponse:
r"""Updates multiple rows.
Expand Down Expand Up @@ -1150,7 +1160,7 @@ async def sample_batch_update_rows():
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.BatchUpdateRowsRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.BatchUpdateRowsRequest, dict]]):
The request object. Request message for
TablesService.BatchUpdateRows.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1195,11 +1205,11 @@ async def sample_batch_update_rows():

async def delete_row(
self,
request: Union[tables.DeleteRowRequest, dict] = None,
request: Optional[Union[tables.DeleteRowRequest, 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 row.
Expand Down Expand Up @@ -1228,7 +1238,7 @@ async def sample_delete_row():
await client.delete_row(request=request)
Args:
request (Union[google.area120.tables_v1alpha1.types.DeleteRowRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.DeleteRowRequest, dict]]):
The request object. Request message for
TablesService.DeleteRow
name (:class:`str`):
Expand Down Expand Up @@ -1286,10 +1296,10 @@ async def sample_delete_row():

async def batch_delete_rows(
self,
request: Union[tables.BatchDeleteRowsRequest, dict] = None,
request: Optional[Union[tables.BatchDeleteRowsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes multiple rows.
Expand Down Expand Up @@ -1319,7 +1329,7 @@ async def sample_batch_delete_rows():
await client.batch_delete_rows(request=request)
Args:
request (Union[google.area120.tables_v1alpha1.types.BatchDeleteRowsRequest, dict]):
request (Optional[Union[google.area120.tables_v1alpha1.types.BatchDeleteRowsRequest, dict]]):
The request object. Request message for
TablesService.BatchDeleteRows
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Loading

0 comments on commit dfec793

Please sign in to comment.