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

Commit

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

docs: add autogenerated code snippets
PiperOrigin-RevId: 426256923

Source-Link: googleapis/googleapis@9ebabfa

Source-Link: googleapis/googleapis-gen@a881752
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTg4MTc1MjYzZTYwYTFkNDVkM2E0NDc4NDg2NTJiMGY2NzBiMmNiOCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Feb 4, 2022
1 parent 6474a00 commit ae17805
Show file tree
Hide file tree
Showing 27 changed files with 2,582 additions and 0 deletions.
224 changes: 224 additions & 0 deletions google/area120/tables_v1alpha1/services/tables_service/async_client.py
Expand Up @@ -232,6 +232,25 @@ async def get_table(
) -> tables.Table:
r"""Gets a table. Returns NOT_FOUND if the table does not exist.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_get_table():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.GetTableRequest(
name="name_value",
)
# Make the request
response = client.get_table(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.GetTableRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -300,6 +319,23 @@ async def list_tables(
) -> pagers.ListTablesAsyncPager:
r"""Lists tables for the user.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_list_tables():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.ListTablesRequest(
)
# Make the request
page_result = client.list_tables(request=request)
for response in page_result:
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.ListTablesRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -354,6 +390,26 @@ async def get_workspace(
r"""Gets a workspace. Returns NOT_FOUND if the workspace does not
exist.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_get_workspace():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.GetWorkspaceRequest(
name="name_value",
)
# Make the request
response = client.get_workspace(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.GetWorkspaceRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -423,6 +479,23 @@ async def list_workspaces(
) -> pagers.ListWorkspacesAsyncPager:
r"""Lists workspaces for the user.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_list_workspaces():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.ListWorkspacesRequest(
)
# Make the request
page_result = client.list_workspaces(request=request)
for response in page_result:
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.ListWorkspacesRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -477,6 +550,26 @@ async def get_row(
r"""Gets a row. Returns NOT_FOUND if the row does not exist in the
table.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_get_row():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.GetRowRequest(
name="name_value",
)
# Make the request
response = client.get_row(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.GetRowRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -548,6 +641,25 @@ async def list_rows(
r"""Lists rows in a table. Returns NOT_FOUND if the table does not
exist.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_list_rows():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.ListRowsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_rows(request=request)
for response in page_result:
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.ListRowsRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -629,6 +741,25 @@ async def create_row(
) -> tables.Row:
r"""Creates a row.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_create_row():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.CreateRowRequest(
parent="parent_value",
)
# Make the request
response = client.create_row(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.CreateRowRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -705,6 +836,29 @@ async def batch_create_rows(
) -> tables.BatchCreateRowsResponse:
r"""Creates multiple rows.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_batch_create_rows():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
requests = tables_v1alpha1.CreateRowRequest()
requests.parent = "parent_value"
request = tables_v1alpha1.BatchCreateRowsRequest(
parent="parent_value",
requests=requests,
)
# Make the request
response = client.batch_create_rows(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.BatchCreateRowsRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -756,6 +910,24 @@ async def update_row(
) -> tables.Row:
r"""Updates a row.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_update_row():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.UpdateRowRequest(
)
# Make the request
response = client.update_row(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.UpdateRowRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -829,6 +1001,25 @@ async def batch_update_rows(
) -> tables.BatchUpdateRowsResponse:
r"""Updates multiple rows.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_batch_update_rows():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.BatchUpdateRowsRequest(
parent="parent_value",
)
# Make the request
response = client.batch_update_rows(request=request)
# Handle response
print(response)
Args:
request (Union[google.area120.tables_v1alpha1.types.BatchUpdateRowsRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -879,6 +1070,22 @@ async def delete_row(
) -> None:
r"""Deletes a row.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_delete_row():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.DeleteRowRequest(
name="name_value",
)
# Make the request
response = client.delete_row(request=request)
Args:
request (Union[google.area120.tables_v1alpha1.types.DeleteRowRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -943,6 +1150,23 @@ async def batch_delete_rows(
) -> None:
r"""Deletes multiple rows.
.. code-block::
from google.area120 import tables_v1alpha1
def sample_batch_delete_rows():
# Create a client
client = tables_v1alpha1.TablesServiceClient()
# Initialize request argument(s)
request = tables_v1alpha1.BatchDeleteRowsRequest(
parent="parent_value",
names=['names_value_1', 'names_value_2'],
)
# Make the request
response = client.batch_delete_rows(request=request)
Args:
request (Union[google.area120.tables_v1alpha1.types.BatchDeleteRowsRequest, dict]):
The request object. Request message for
Expand Down

0 comments on commit ae17805

Please sign in to comment.