Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#87)
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 4396e27 commit 6f15f72
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ async def create_environment(
from google.cloud.orchestration.airflow import service_v1
def sample_create_environment():
async def sample_create_environment():
# Create a client
client = service_v1.EnvironmentsClient()
client = service_v1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1.CreateEnvironmentRequest(
Expand All @@ -234,7 +234,7 @@ def sample_create_environment():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -336,16 +336,16 @@ async def get_environment(
from google.cloud.orchestration.airflow import service_v1
def sample_get_environment():
async def sample_get_environment():
# Create a client
client = service_v1.EnvironmentsClient()
client = service_v1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1.GetEnvironmentRequest(
)
# Make the request
response = client.get_environment(request=request)
response = await client.get_environment(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -430,9 +430,9 @@ async def list_environments(
from google.cloud.orchestration.airflow import service_v1
def sample_list_environments():
async def sample_list_environments():
# Create a client
client = service_v1.EnvironmentsClient()
client = service_v1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1.ListEnvironmentsRequest(
Expand All @@ -442,7 +442,7 @@ def sample_list_environments():
page_result = client.list_environments(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -540,9 +540,9 @@ async def update_environment(
from google.cloud.orchestration.airflow import service_v1
def sample_update_environment():
async def sample_update_environment():
# Create a client
client = service_v1.EnvironmentsClient()
client = service_v1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1.UpdateEnvironmentRequest(
Expand All @@ -553,7 +553,7 @@ def sample_update_environment():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -828,9 +828,9 @@ async def delete_environment(
from google.cloud.orchestration.airflow import service_v1
def sample_delete_environment():
async def sample_delete_environment():
# Create a client
client = service_v1.EnvironmentsClient()
client = service_v1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1.DeleteEnvironmentRequest(
Expand All @@ -841,7 +841,7 @@ def sample_delete_environment():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ async def list_image_versions(
from google.cloud.orchestration.airflow import service_v1
def sample_list_image_versions():
async def sample_list_image_versions():
# Create a client
client = service_v1.ImageVersionsClient()
client = service_v1.ImageVersionsAsyncClient()
# Initialize request argument(s)
request = service_v1.ListImageVersionsRequest(
Expand All @@ -228,7 +228,7 @@ def sample_list_image_versions():
page_result = client.list_image_versions(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ async def create_environment(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_create_environment():
async def sample_create_environment():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.CreateEnvironmentRequest(
Expand All @@ -239,7 +239,7 @@ def sample_create_environment():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -341,16 +341,16 @@ async def get_environment(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_get_environment():
async def sample_get_environment():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.GetEnvironmentRequest(
)
# Make the request
response = client.get_environment(request=request)
response = await client.get_environment(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -435,9 +435,9 @@ async def list_environments(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_list_environments():
async def sample_list_environments():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.ListEnvironmentsRequest(
Expand All @@ -447,7 +447,7 @@ def sample_list_environments():
page_result = client.list_environments(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -545,9 +545,9 @@ async def update_environment(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_update_environment():
async def sample_update_environment():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.UpdateEnvironmentRequest(
Expand All @@ -558,7 +558,7 @@ def sample_update_environment():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -853,9 +853,9 @@ async def delete_environment(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_delete_environment():
async def sample_delete_environment():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.DeleteEnvironmentRequest(
Expand All @@ -866,7 +866,7 @@ def sample_delete_environment():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -971,9 +971,9 @@ async def restart_web_server(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_restart_web_server():
async def sample_restart_web_server():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.RestartWebServerRequest(
Expand All @@ -984,7 +984,7 @@ def sample_restart_web_server():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -1060,9 +1060,9 @@ async def check_upgrade(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_check_upgrade():
async def sample_check_upgrade():
# Create a client
client = service_v1beta1.EnvironmentsClient()
client = service_v1beta1.EnvironmentsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.CheckUpgradeRequest(
Expand All @@ -1073,7 +1073,7 @@ def sample_check_upgrade():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ async def list_image_versions(
from google.cloud.orchestration.airflow import service_v1beta1
def sample_list_image_versions():
async def sample_list_image_versions():
# Create a client
client = service_v1beta1.ImageVersionsClient()
client = service_v1beta1.ImageVersionsAsyncClient()
# Initialize request argument(s)
request = service_v1beta1.ListImageVersionsRequest(
Expand All @@ -230,7 +230,7 @@ def sample_list_image_versions():
page_result = client.list_image_versions(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 6f15f72

Please sign in to comment.