diff --git a/packages/google-area120-tables/docs/tables_v1alpha1/types.rst b/packages/google-area120-tables/docs/tables_v1alpha1/types.rst index 440ad8b90d55..9c77b6c0de0d 100644 --- a/packages/google-area120-tables/docs/tables_v1alpha1/types.rst +++ b/packages/google-area120-tables/docs/tables_v1alpha1/types.rst @@ -3,5 +3,4 @@ Types for Google Area120 Tables v1alpha1 API .. automodule:: google.area120.tables_v1alpha1.types :members: - :undoc-members: :show-inheritance: diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/async_client.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/async_client.py index c2826e82d001..c787d2db2a96 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/async_client.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/async_client.py @@ -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 @@ -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. @@ -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. @@ -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`): @@ -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. @@ -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, @@ -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 @@ -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`): @@ -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. @@ -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, @@ -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 @@ -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`): @@ -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 @@ -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`): @@ -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. @@ -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`): @@ -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. @@ -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, @@ -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. @@ -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`): @@ -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. @@ -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, @@ -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. @@ -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`): @@ -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. @@ -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, diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/client.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/client.py index 09f2da1d545f..bf2242721b11 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/client.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union, cast +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -60,7 +71,7 @@ class TablesServiceClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[TablesServiceTransport]: """Returns an appropriate transport class. @@ -374,7 +385,7 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, TablesServiceTransport, None] = None, + transport: Optional[Union[str, TablesServiceTransport]] = None, client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: @@ -475,11 +486,11 @@ def __init__( 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. @@ -575,10 +586,10 @@ def sample_get_table(): 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.ListTablesPager: r"""Lists tables for the user. @@ -662,11 +673,11 @@ def sample_list_tables(): 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 @@ -764,10 +775,10 @@ def sample_get_workspace(): 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.ListWorkspacesPager: r"""Lists workspaces for the user. @@ -851,11 +862,11 @@ def sample_list_workspaces(): 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 @@ -953,11 +964,11 @@ def sample_get_row(): 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.ListRowsPager: r"""Lists rows in a table. Returns NOT_FOUND if the table does not @@ -1069,12 +1080,12 @@ def sample_list_rows(): 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. @@ -1178,10 +1189,10 @@ def sample_create_row(): 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. @@ -1263,12 +1274,12 @@ def sample_batch_create_rows(): 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. @@ -1368,10 +1379,10 @@ def sample_update_row(): 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. @@ -1449,11 +1460,11 @@ def sample_batch_update_rows(): 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. @@ -1540,10 +1551,10 @@ def sample_delete_row(): 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. diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/base.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/base.py index edfa7633d3c1..eed2888fe3e2 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/base.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/base.py @@ -56,7 +56,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc.py index fef5d33112ce..b9cfa88b1688 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc.py @@ -60,14 +60,14 @@ def __init__( self, *, host: str = "area120tables.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -194,8 +194,8 @@ def __init__( def create_channel( cls, host: str = "area120tables.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc_asyncio.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc_asyncio.py index e01eefce4777..b6a337aa7194 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc_asyncio.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/grpc_asyncio.py @@ -62,7 +62,7 @@ class TablesServiceGrpcAsyncIOTransport(TablesServiceTransport): def create_channel( cls, host: str = "area120tables.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -105,15 +105,15 @@ def __init__( self, *, host: str = "area120tables.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/rest.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/rest.py index 65e4ce8777c4..5e8d6088811d 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/rest.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/services/tables_service/transports/rest.py @@ -416,10 +416,10 @@ def __init__( self, *, host: str = "area120tables.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -511,7 +511,7 @@ def __call__( request: tables.BatchCreateRowsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.BatchCreateRowsResponse: r"""Call the batch create rows method over HTTP. @@ -610,7 +610,7 @@ def __call__( request: tables.BatchDeleteRowsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ): r"""Call the batch delete rows method over HTTP. @@ -695,7 +695,7 @@ def __call__( request: tables.BatchUpdateRowsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.BatchUpdateRowsResponse: r"""Call the batch update rows method over HTTP. @@ -794,7 +794,7 @@ def __call__( request: tables.CreateRowRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.Row: r"""Call the create row method over HTTP. @@ -889,7 +889,7 @@ def __call__( request: tables.DeleteRowRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ): r"""Call the delete row method over HTTP. @@ -963,7 +963,7 @@ def __call__( request: tables.GetRowRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.Row: r"""Call the get row method over HTTP. @@ -1049,7 +1049,7 @@ def __call__( request: tables.GetTableRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.Table: r"""Call the get table method over HTTP. @@ -1135,7 +1135,7 @@ def __call__( request: tables.GetWorkspaceRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.Workspace: r"""Call the get workspace method over HTTP. @@ -1221,7 +1221,7 @@ def __call__( request: tables.ListRowsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.ListRowsResponse: r"""Call the list rows method over HTTP. @@ -1299,7 +1299,7 @@ def __call__( request: tables.ListTablesRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.ListTablesResponse: r"""Call the list tables method over HTTP. @@ -1376,7 +1376,7 @@ def __call__( request: tables.ListWorkspacesRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.ListWorkspacesResponse: r"""Call the list workspaces method over HTTP. @@ -1463,7 +1463,7 @@ def __call__( request: tables.UpdateRowRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> tables.Row: r"""Call the update row method over HTTP. diff --git a/packages/google-area120-tables/google/area120/tables_v1alpha1/types/tables.py b/packages/google-area120-tables/google/area120/tables_v1alpha1/types/tables.py index f6f9023d25f1..83c2b6642956 100644 --- a/packages/google-area120-tables/google/area120/tables_v1alpha1/types/tables.py +++ b/packages/google-area120-tables/google/area120/tables_v1alpha1/types/tables.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import struct_pb2 # type: ignore import proto # type: ignore @@ -64,7 +66,7 @@ class GetTableRequest(proto.Message): Format: tables/{table} """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) @@ -90,11 +92,11 @@ class ListTablesRequest(proto.Message): token. """ - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=1, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=2, ) @@ -104,7 +106,7 @@ class ListTablesResponse(proto.Message): r"""Response message for TablesService.ListTables. Attributes: - tables (Sequence[google.area120.tables_v1alpha1.types.Table]): + tables (MutableSequence[google.area120.tables_v1alpha1.types.Table]): The list of tables. next_page_token (str): A token, which can be sent as ``page_token`` to retrieve the @@ -116,12 +118,12 @@ class ListTablesResponse(proto.Message): def raw_page(self): return self - tables = proto.RepeatedField( + tables: MutableSequence["Table"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Table", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) @@ -136,7 +138,7 @@ class GetWorkspaceRequest(proto.Message): retrieve. Format: workspaces/{workspace} """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) @@ -161,11 +163,11 @@ class ListWorkspacesRequest(proto.Message): page token. """ - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=1, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=2, ) @@ -175,7 +177,7 @@ class ListWorkspacesResponse(proto.Message): r"""Response message for TablesService.ListWorkspaces. Attributes: - workspaces (Sequence[google.area120.tables_v1alpha1.types.Workspace]): + workspaces (MutableSequence[google.area120.tables_v1alpha1.types.Workspace]): The list of workspaces. next_page_token (str): A token, which can be sent as ``page_token`` to retrieve the @@ -187,12 +189,12 @@ class ListWorkspacesResponse(proto.Message): def raw_page(self): return self - workspaces = proto.RepeatedField( + workspaces: MutableSequence["Workspace"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Workspace", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) @@ -210,11 +212,11 @@ class GetRowRequest(proto.Message): row. Defaults to user entered name. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - view = proto.Field( + view: "View" = proto.Field( proto.ENUM, number=2, enum="View", @@ -252,24 +254,24 @@ class ListRowsRequest(proto.Message): filtering not supported. """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=2, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=3, ) - view = proto.Field( + view: "View" = proto.Field( proto.ENUM, number=4, enum="View", ) - filter = proto.Field( + filter: str = proto.Field( proto.STRING, number=5, ) @@ -279,7 +281,7 @@ class ListRowsResponse(proto.Message): r"""Response message for TablesService.ListRows. Attributes: - rows (Sequence[google.area120.tables_v1alpha1.types.Row]): + rows (MutableSequence[google.area120.tables_v1alpha1.types.Row]): The rows from the specified table. next_page_token (str): A token, which can be sent as ``page_token`` to retrieve the @@ -291,12 +293,12 @@ class ListRowsResponse(proto.Message): def raw_page(self): return self - rows = proto.RepeatedField( + rows: MutableSequence["Row"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Row", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) @@ -316,16 +318,16 @@ class CreateRowRequest(proto.Message): row. Defaults to user entered name. """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - row = proto.Field( + row: "Row" = proto.Field( proto.MESSAGE, number=2, message="Row", ) - view = proto.Field( + view: "View" = proto.Field( proto.ENUM, number=3, enum="View", @@ -339,18 +341,18 @@ class BatchCreateRowsRequest(proto.Message): parent (str): Required. The parent table where the rows will be created. Format: tables/{table} - requests (Sequence[google.area120.tables_v1alpha1.types.CreateRowRequest]): + requests (MutableSequence[google.area120.tables_v1alpha1.types.CreateRowRequest]): Required. The request message specifying the rows to create. A maximum of 500 rows can be created in a single batch. """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - requests = proto.RepeatedField( + requests: MutableSequence["CreateRowRequest"] = proto.RepeatedField( proto.MESSAGE, number=2, message="CreateRowRequest", @@ -361,11 +363,11 @@ class BatchCreateRowsResponse(proto.Message): r"""Response message for TablesService.BatchCreateRows. Attributes: - rows (Sequence[google.area120.tables_v1alpha1.types.Row]): + rows (MutableSequence[google.area120.tables_v1alpha1.types.Row]): The created rows. """ - rows = proto.RepeatedField( + rows: MutableSequence["Row"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Row", @@ -385,17 +387,17 @@ class UpdateRowRequest(proto.Message): row. Defaults to user entered name. """ - row = proto.Field( + row: "Row" = proto.Field( proto.MESSAGE, number=1, message="Row", ) - update_mask = proto.Field( + update_mask: field_mask_pb2.FieldMask = proto.Field( proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, ) - view = proto.Field( + view: "View" = proto.Field( proto.ENUM, number=3, enum="View", @@ -409,18 +411,18 @@ class BatchUpdateRowsRequest(proto.Message): parent (str): Required. The parent table shared by all rows being updated. Format: tables/{table} - requests (Sequence[google.area120.tables_v1alpha1.types.UpdateRowRequest]): + requests (MutableSequence[google.area120.tables_v1alpha1.types.UpdateRowRequest]): Required. The request messages specifying the rows to update. A maximum of 500 rows can be modified in a single batch. """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - requests = proto.RepeatedField( + requests: MutableSequence["UpdateRowRequest"] = proto.RepeatedField( proto.MESSAGE, number=2, message="UpdateRowRequest", @@ -431,11 +433,11 @@ class BatchUpdateRowsResponse(proto.Message): r"""Response message for TablesService.BatchUpdateRows. Attributes: - rows (Sequence[google.area120.tables_v1alpha1.types.Row]): + rows (MutableSequence[google.area120.tables_v1alpha1.types.Row]): The updated rows. """ - rows = proto.RepeatedField( + rows: MutableSequence["Row"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Row", @@ -451,7 +453,7 @@ class DeleteRowRequest(proto.Message): Format: tables/{table}/rows/{row} """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) @@ -464,7 +466,7 @@ class BatchDeleteRowsRequest(proto.Message): parent (str): Required. The parent table shared by all rows being deleted. Format: tables/{table} - names (Sequence[str]): + names (MutableSequence[str]): Required. The names of the rows to delete. All rows must belong to the parent table or else the entire batch will fail. A maximum of 500 @@ -472,11 +474,11 @@ class BatchDeleteRowsRequest(proto.Message): Format: tables/{table}/rows/{row} """ - parent = proto.Field( + parent: str = proto.Field( proto.STRING, number=1, ) - names = proto.RepeatedField( + names: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=2, ) @@ -491,20 +493,20 @@ class Table(proto.Message): ``tables/{table}``. display_name (str): The human readable title of the table. - columns (Sequence[google.area120.tables_v1alpha1.types.ColumnDescription]): + columns (MutableSequence[google.area120.tables_v1alpha1.types.ColumnDescription]): List of columns in this table. Order of columns matches the display order. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - display_name = proto.Field( + display_name: str = proto.Field( proto.STRING, number=2, ) - columns = proto.RepeatedField( + columns: MutableSequence["ColumnDescription"] = proto.RepeatedField( proto.MESSAGE, number=3, message="ColumnDescription", @@ -527,7 +529,7 @@ class ColumnDescription(proto.Message): types supported on Tables website. id (str): Internal id for a column. - labels (Sequence[google.area120.tables_v1alpha1.types.LabeledItem]): + labels (MutableSequence[google.area120.tables_v1alpha1.types.LabeledItem]): Optional. Range of labeled values for the column. Some columns like tags and drop-downs limit the values to a set of possible values. We @@ -545,29 +547,29 @@ class ColumnDescription(proto.Message): relationship column. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - data_type = proto.Field( + data_type: str = proto.Field( proto.STRING, number=2, ) - id = proto.Field( + id: str = proto.Field( proto.STRING, number=3, ) - labels = proto.RepeatedField( + labels: MutableSequence["LabeledItem"] = proto.RepeatedField( proto.MESSAGE, number=4, message="LabeledItem", ) - relationship_details = proto.Field( + relationship_details: "RelationshipDetails" = proto.Field( proto.MESSAGE, number=5, message="RelationshipDetails", ) - lookup_details = proto.Field( + lookup_details: "LookupDetails" = proto.Field( proto.MESSAGE, number=6, message="LookupDetails", @@ -584,11 +586,11 @@ class LabeledItem(proto.Message): Internal id associated with the item. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - id = proto.Field( + id: str = proto.Field( proto.STRING, number=2, ) @@ -603,7 +605,7 @@ class RelationshipDetails(proto.Message): linked to. """ - linked_table = proto.Field( + linked_table: str = proto.Field( proto.STRING, number=1, ) @@ -621,11 +623,11 @@ class LookupDetails(proto.Message): The id of the relationship column. """ - relationship_column = proto.Field( + relationship_column: str = proto.Field( proto.STRING, number=1, ) - relationship_column_id = proto.Field( + relationship_column_id: str = proto.Field( proto.STRING, number=2, ) @@ -639,18 +641,18 @@ class Row(proto.Message): The resource name of the row. Row names have the form ``tables/{table}/rows/{row}``. The name is ignored when creating a row. - values (Mapping[str, google.protobuf.struct_pb2.Value]): + values (MutableMapping[str, google.protobuf.struct_pb2.Value]): The values of the row. This is a map of column key to value. Key is user entered name(default) or the internal column id based on the view in the request. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - values = proto.MapField( + values: MutableMapping[str, struct_pb2.Value] = proto.MapField( proto.STRING, proto.MESSAGE, number=2, @@ -667,19 +669,19 @@ class Workspace(proto.Message): form ``workspaces/{workspace}``. display_name (str): The human readable title of the workspace. - tables (Sequence[google.area120.tables_v1alpha1.types.Table]): + tables (MutableSequence[google.area120.tables_v1alpha1.types.Table]): The list of tables in the workspace. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - display_name = proto.Field( + display_name: str = proto.Field( proto.STRING, number=2, ) - tables = proto.RepeatedField( + tables: MutableSequence["Table"] = proto.RepeatedField( proto.MESSAGE, number=3, message="Table", diff --git a/packages/google-area120-tables/release-please-config.json b/packages/google-area120-tables/release-please-config.json index bc2ae698ff38..488ec942c7bd 100644 --- a/packages/google-area120-tables/release-please-config.json +++ b/packages/google-area120-tables/release-please-config.json @@ -7,7 +7,7 @@ "google/area120/tables/gapic_version.py", { "type": "json", - "path": "samples/generated_samples/snippet_metadata_tables_v1alpha1.json", + "path": "samples/generated_samples/snippet_metadata_google.area120.tables.v1alpha1.json", "jsonpath": "$.clientLibrary.version" } ] diff --git a/packages/google-area120-tables/samples/generated_samples/snippet_metadata_tables_v1alpha1.json b/packages/google-area120-tables/samples/generated_samples/snippet_metadata_google.area120.tables.v1alpha1.json similarity index 99% rename from packages/google-area120-tables/samples/generated_samples/snippet_metadata_tables_v1alpha1.json rename to packages/google-area120-tables/samples/generated_samples/snippet_metadata_google.area120.tables.v1alpha1.json index b18baaf60d0b..fdfb568d52d6 100644 --- a/packages/google-area120-tables/samples/generated_samples/snippet_metadata_tables_v1alpha1.json +++ b/packages/google-area120-tables/samples/generated_samples/snippet_metadata_google.area120.tables.v1alpha1.json @@ -7,7 +7,8 @@ } ], "language": "PYTHON", - "name": "google-area120-tables" + "name": "google-area120-tables", + "version": "0.1.0" }, "snippets": [ {