Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.53.4 (#103)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

docs: list oneofs in docstring
fix(deps): require google-api-core >= 1.28.0
fix(deps): drop packaging dependency

committer: busunkim96@
PiperOrigin-RevId: 406468269

Source-Link: googleapis/googleapis@83d81b0

Source-Link: googleapis/googleapis-gen@2ff001f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZmMDAxZmJhY2I5ZTc3ZTcxZDczNGRlNWY5NTVjMDVmZGFlODUyNiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 1, 2021
1 parent 9d1d88b commit 9e7a086
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 191 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

import google.api_core.client_options as ClientOptions # type: ignore
from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]

from google.area120.tables_v1alpha1.services.tables_service import pagers
from google.area120.tables_v1alpha1.types import tables
from google.protobuf import field_mask_pb2 # type: ignore
Expand Down Expand Up @@ -182,17 +184,17 @@ def __init__(

async def get_table(
self,
request: tables.GetTableRequest = None,
request: Union[tables.GetTableRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Table:
r"""Gets a table. Returns NOT_FOUND if the table does not exist.
Args:
request (:class:`google.area120.tables_v1alpha1.types.GetTableRequest`):
request (Union[google.area120.tables_v1alpha1.types.GetTableRequest, dict]):
The request object. Request message for
TablesService.GetTable.
name (:class:`str`):
Expand Down Expand Up @@ -251,16 +253,16 @@ async def get_table(

async def list_tables(
self,
request: tables.ListTablesRequest = None,
request: Union[tables.ListTablesRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListTablesAsyncPager:
r"""Lists tables for the user.
Args:
request (:class:`google.area120.tables_v1alpha1.types.ListTablesRequest`):
request (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 @@ -303,18 +305,18 @@ async def list_tables(

async def get_workspace(
self,
request: tables.GetWorkspaceRequest = None,
request: Union[tables.GetWorkspaceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Workspace:
r"""Gets a workspace. Returns NOT_FOUND if the workspace does not
exist.
Args:
request (:class:`google.area120.tables_v1alpha1.types.GetWorkspaceRequest`):
request (Union[google.area120.tables_v1alpha1.types.GetWorkspaceRequest, dict]):
The request object. Request message for
TablesService.GetWorkspace.
name (:class:`str`):
Expand Down Expand Up @@ -374,16 +376,16 @@ async def get_workspace(

async def list_workspaces(
self,
request: tables.ListWorkspacesRequest = None,
request: Union[tables.ListWorkspacesRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListWorkspacesAsyncPager:
r"""Lists workspaces for the user.
Args:
request (:class:`google.area120.tables_v1alpha1.types.ListWorkspacesRequest`):
request (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 @@ -426,18 +428,18 @@ async def list_workspaces(

async def get_row(
self,
request: tables.GetRowRequest = None,
request: Union[tables.GetRowRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
r"""Gets a row. Returns NOT_FOUND if the row does not exist in the
table.
Args:
request (:class:`google.area120.tables_v1alpha1.types.GetRowRequest`):
request (Union[google.area120.tables_v1alpha1.types.GetRowRequest, dict]):
The request object. Request message for
TablesService.GetRow.
name (:class:`str`):
Expand Down Expand Up @@ -497,18 +499,18 @@ async def get_row(

async def list_rows(
self,
request: tables.ListRowsRequest = None,
request: Union[tables.ListRowsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListRowsAsyncPager:
r"""Lists rows in a table. Returns NOT_FOUND if the table does not
exist.
Args:
request (:class:`google.area120.tables_v1alpha1.types.ListRowsRequest`):
request (Union[google.area120.tables_v1alpha1.types.ListRowsRequest, dict]):
The request object. Request message for
TablesService.ListRows.
parent (:class:`str`):
Expand Down Expand Up @@ -578,18 +580,18 @@ async def list_rows(

async def create_row(
self,
request: tables.CreateRowRequest = None,
request: Union[tables.CreateRowRequest, dict] = None,
*,
parent: str = None,
row: tables.Row = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
r"""Creates a row.
Args:
request (:class:`google.area120.tables_v1alpha1.types.CreateRowRequest`):
request (Union[google.area120.tables_v1alpha1.types.CreateRowRequest, dict]):
The request object. Request message for
TablesService.CreateRow.
parent (:class:`str`):
Expand Down Expand Up @@ -656,16 +658,16 @@ async def create_row(

async def batch_create_rows(
self,
request: tables.BatchCreateRowsRequest = None,
request: Union[tables.BatchCreateRowsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.BatchCreateRowsResponse:
r"""Creates multiple rows.
Args:
request (:class:`google.area120.tables_v1alpha1.types.BatchCreateRowsRequest`):
request (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 @@ -705,18 +707,18 @@ async def batch_create_rows(

async def update_row(
self,
request: tables.UpdateRowRequest = None,
request: Union[tables.UpdateRowRequest, dict] = None,
*,
row: tables.Row = None,
update_mask: field_mask_pb2.FieldMask = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
r"""Updates a row.
Args:
request (:class:`google.area120.tables_v1alpha1.types.UpdateRowRequest`):
request (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 @@ -780,16 +782,16 @@ async def update_row(

async def batch_update_rows(
self,
request: tables.BatchUpdateRowsRequest = None,
request: Union[tables.BatchUpdateRowsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.BatchUpdateRowsResponse:
r"""Updates multiple rows.
Args:
request (:class:`google.area120.tables_v1alpha1.types.BatchUpdateRowsRequest`):
request (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 @@ -829,17 +831,17 @@ async def batch_update_rows(

async def delete_row(
self,
request: tables.DeleteRowRequest = None,
request: Union[tables.DeleteRowRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes a row.
Args:
request (:class:`google.area120.tables_v1alpha1.types.DeleteRowRequest`):
request (Union[google.area120.tables_v1alpha1.types.DeleteRowRequest, dict]):
The request object. Request message for
TablesService.DeleteRow
name (:class:`str`):
Expand Down Expand Up @@ -894,16 +896,16 @@ async def delete_row(

async def batch_delete_rows(
self,
request: tables.BatchDeleteRowsRequest = None,
request: Union[tables.BatchDeleteRowsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes multiple rows.
Args:
request (:class:`google.area120.tables_v1alpha1.types.BatchDeleteRowsRequest`):
request (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
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]

from google.area120.tables_v1alpha1.services.tables_service import pagers
from google.area120.tables_v1alpha1.types import tables
from google.protobuf import field_mask_pb2 # type: ignore
Expand Down Expand Up @@ -382,7 +384,7 @@ def get_table(
request: Union[tables.GetTableRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Table:
Expand Down Expand Up @@ -450,7 +452,7 @@ def list_tables(
self,
request: Union[tables.ListTablesRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListTablesPager:
Expand Down Expand Up @@ -504,7 +506,7 @@ def get_workspace(
request: Union[tables.GetWorkspaceRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Workspace:
Expand Down Expand Up @@ -574,7 +576,7 @@ def list_workspaces(
self,
request: Union[tables.ListWorkspacesRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListWorkspacesPager:
Expand Down Expand Up @@ -628,7 +630,7 @@ def get_row(
request: Union[tables.GetRowRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
Expand Down Expand Up @@ -699,7 +701,7 @@ def list_rows(
request: Union[tables.ListRowsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListRowsPager:
Expand Down Expand Up @@ -781,7 +783,7 @@ def create_row(
*,
parent: str = None,
row: tables.Row = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
Expand Down Expand Up @@ -857,7 +859,7 @@ def batch_create_rows(
self,
request: Union[tables.BatchCreateRowsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.BatchCreateRowsResponse:
Expand Down Expand Up @@ -909,7 +911,7 @@ def update_row(
*,
row: tables.Row = None,
update_mask: field_mask_pb2.FieldMask = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.Row:
Expand Down Expand Up @@ -982,7 +984,7 @@ def batch_update_rows(
self,
request: Union[tables.BatchUpdateRowsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> tables.BatchUpdateRowsResponse:
Expand Down Expand Up @@ -1033,7 +1035,7 @@ def delete_row(
request: Union[tables.DeleteRowRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
Expand Down Expand Up @@ -1097,7 +1099,7 @@ def batch_delete_rows(
self,
request: Union[tables.BatchDeleteRowsRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
Expand Down
Loading

0 comments on commit 9e7a086

Please sign in to comment.