Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#37)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.2

PiperOrigin-RevId: 444333013

Source-Link: googleapis/googleapis@f91b6cf

Source-Link: googleapis/googleapis-gen@16eb360
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 28, 2022
1 parent 3ea4843 commit ab31009
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 335 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ async def create_content(
from google.cloud import dataplex_v1
def sample_create_content():
async def sample_create_content():
# Create a client
client = dataplex_v1.ContentServiceClient()
client = dataplex_v1.ContentServiceAsyncClient()
# Initialize request argument(s)
content = dataplex_v1.Content()
Expand All @@ -242,7 +242,7 @@ def sample_create_content():
)
# Make the request
response = client.create_content(request=request)
response = await client.create_content(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -334,9 +334,9 @@ async def update_content(
from google.cloud import dataplex_v1
def sample_update_content():
async def sample_update_content():
# Create a client
client = dataplex_v1.ContentServiceClient()
client = dataplex_v1.ContentServiceAsyncClient()
# Initialize request argument(s)
content = dataplex_v1.Content()
Expand All @@ -349,7 +349,7 @@ def sample_update_content():
)
# Make the request
response = client.update_content(request=request)
response = await client.update_content(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -442,17 +442,17 @@ async def delete_content(
from google.cloud import dataplex_v1
def sample_delete_content():
async def sample_delete_content():
# Create a client
client = dataplex_v1.ContentServiceClient()
client = dataplex_v1.ContentServiceAsyncClient()
# Initialize request argument(s)
request = dataplex_v1.DeleteContentRequest(
name="name_value",
)
# Make the request
client.delete_content(request=request)
await client.delete_content(request=request)
Args:
request (Union[google.cloud.dataplex_v1.types.DeleteContentRequest, dict]):
Expand Down Expand Up @@ -524,17 +524,17 @@ async def get_content(
from google.cloud import dataplex_v1
def sample_get_content():
async def sample_get_content():
# Create a client
client = dataplex_v1.ContentServiceClient()
client = dataplex_v1.ContentServiceAsyncClient()
# Initialize request argument(s)
request = dataplex_v1.GetContentRequest(
name="name_value",
)
# Make the request
response = client.get_content(request=request)
response = await client.get_content(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -618,9 +618,9 @@ async def list_content(
from google.cloud import dataplex_v1
def sample_list_content():
async def sample_list_content():
# Create a client
client = dataplex_v1.ContentServiceClient()
client = dataplex_v1.ContentServiceAsyncClient()
# Initialize request argument(s)
request = dataplex_v1.ListContentRequest(
Expand All @@ -631,7 +631,7 @@ def sample_list_content():
page_result = client.list_content(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down
Loading

0 comments on commit ab31009

Please sign in to comment.