Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#201)
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 5fcdc63 commit 5f3e656
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 144 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ async def list_insights(
from google.cloud import recommender_v1
def sample_list_insights():
async def sample_list_insights():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.ListInsightsRequest(
Expand All @@ -250,7 +250,7 @@ def sample_list_insights():
page_result = client.list_insights(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -370,17 +370,17 @@ async def get_insight(
from google.cloud import recommender_v1
def sample_get_insight():
async def sample_get_insight():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.GetInsightRequest(
name="name_value",
)
# Make the request
response = client.get_insight(request=request)
response = await client.get_insight(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -483,9 +483,9 @@ async def mark_insight_accepted(
from google.cloud import recommender_v1
def sample_mark_insight_accepted():
async def sample_mark_insight_accepted():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.MarkInsightAcceptedRequest(
Expand All @@ -494,7 +494,7 @@ def sample_mark_insight_accepted():
)
# Make the request
response = client.mark_insight_accepted(request=request)
response = await client.mark_insight_accepted(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -601,9 +601,9 @@ async def list_recommendations(
from google.cloud import recommender_v1
def sample_list_recommendations():
async def sample_list_recommendations():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.ListRecommendationsRequest(
Expand All @@ -614,7 +614,7 @@ def sample_list_recommendations():
page_result = client.list_recommendations(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -762,17 +762,17 @@ async def get_recommendation(
from google.cloud import recommender_v1
def sample_get_recommendation():
async def sample_get_recommendation():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.GetRecommendationRequest(
name="name_value",
)
# Make the request
response = client.get_recommendation(request=request)
response = await client.get_recommendation(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -881,9 +881,9 @@ async def mark_recommendation_claimed(
from google.cloud import recommender_v1
def sample_mark_recommendation_claimed():
async def sample_mark_recommendation_claimed():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.MarkRecommendationClaimedRequest(
Expand All @@ -892,7 +892,7 @@ def sample_mark_recommendation_claimed():
)
# Make the request
response = client.mark_recommendation_claimed(request=request)
response = await client.mark_recommendation_claimed(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1013,9 +1013,9 @@ async def mark_recommendation_succeeded(
from google.cloud import recommender_v1
def sample_mark_recommendation_succeeded():
async def sample_mark_recommendation_succeeded():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.MarkRecommendationSucceededRequest(
Expand All @@ -1024,7 +1024,7 @@ def sample_mark_recommendation_succeeded():
)
# Make the request
response = client.mark_recommendation_succeeded(request=request)
response = await client.mark_recommendation_succeeded(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1145,9 +1145,9 @@ async def mark_recommendation_failed(
from google.cloud import recommender_v1
def sample_mark_recommendation_failed():
async def sample_mark_recommendation_failed():
# Create a client
client = recommender_v1.RecommenderClient()
client = recommender_v1.RecommenderAsyncClient()
# Initialize request argument(s)
request = recommender_v1.MarkRecommendationFailedRequest(
Expand All @@ -1156,7 +1156,7 @@ def sample_mark_recommendation_failed():
)
# Make the request
response = client.mark_recommendation_failed(request=request)
response = await client.mark_recommendation_failed(request=request)
# Handle the response
print(response)
Expand Down
Loading

0 comments on commit 5f3e656

Please sign in to comment.