Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#186)
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 4fcb1ed commit f091a6e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ async def generate_access_token(
from google.cloud import iam_credentials_v1
def sample_generate_access_token():
async def sample_generate_access_token():
# Create a client
client = iam_credentials_v1.IAMCredentialsClient()
client = iam_credentials_v1.IAMCredentialsAsyncClient()
# Initialize request argument(s)
request = iam_credentials_v1.GenerateAccessTokenRequest(
Expand All @@ -247,7 +247,7 @@ def sample_generate_access_token():
)
# Make the request
response = client.generate_access_token(request=request)
response = await client.generate_access_token(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -393,9 +393,9 @@ async def generate_id_token(
from google.cloud import iam_credentials_v1
def sample_generate_id_token():
async def sample_generate_id_token():
# Create a client
client = iam_credentials_v1.IAMCredentialsClient()
client = iam_credentials_v1.IAMCredentialsAsyncClient()
# Initialize request argument(s)
request = iam_credentials_v1.GenerateIdTokenRequest(
Expand All @@ -404,7 +404,7 @@ def sample_generate_id_token():
)
# Make the request
response = client.generate_id_token(request=request)
response = await client.generate_id_token(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -543,9 +543,9 @@ async def sign_blob(
from google.cloud import iam_credentials_v1
def sample_sign_blob():
async def sample_sign_blob():
# Create a client
client = iam_credentials_v1.IAMCredentialsClient()
client = iam_credentials_v1.IAMCredentialsAsyncClient()
# Initialize request argument(s)
request = iam_credentials_v1.SignBlobRequest(
Expand All @@ -554,7 +554,7 @@ def sample_sign_blob():
)
# Make the request
response = client.sign_blob(request=request)
response = await client.sign_blob(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -680,9 +680,9 @@ async def sign_jwt(
from google.cloud import iam_credentials_v1
def sample_sign_jwt():
async def sample_sign_jwt():
# Create a client
client = iam_credentials_v1.IAMCredentialsClient()
client = iam_credentials_v1.IAMCredentialsAsyncClient()
# Initialize request argument(s)
request = iam_credentials_v1.SignJwtRequest(
Expand All @@ -691,7 +691,7 @@ def sample_sign_jwt():
)
# Make the request
response = client.sign_jwt(request=request)
response = await client.sign_jwt(request=request)
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def test_generate_access_token_field_headers():
# a field header. Set these to a non-empty value.
request = common.GenerateAccessTokenRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
Expand All @@ -766,7 +766,7 @@ def test_generate_access_token_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -780,7 +780,7 @@ async def test_generate_access_token_field_headers_async():
# a field header. Set these to a non-empty value.
request = common.GenerateAccessTokenRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
Expand All @@ -800,7 +800,7 @@ async def test_generate_access_token_field_headers_async():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand Down Expand Up @@ -1024,7 +1024,7 @@ def test_generate_id_token_field_headers():
# a field header. Set these to a non-empty value.
request = common.GenerateIdTokenRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
Expand All @@ -1042,7 +1042,7 @@ def test_generate_id_token_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -1056,7 +1056,7 @@ async def test_generate_id_token_field_headers_async():
# a field header. Set these to a non-empty value.
request = common.GenerateIdTokenRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
Expand All @@ -1076,7 +1076,7 @@ async def test_generate_id_token_field_headers_async():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand Down Expand Up @@ -1298,7 +1298,7 @@ def test_sign_blob_field_headers():
# a field header. Set these to a non-empty value.
request = common.SignBlobRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.sign_blob), "__call__") as call:
Expand All @@ -1314,7 +1314,7 @@ def test_sign_blob_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -1328,7 +1328,7 @@ async def test_sign_blob_field_headers_async():
# a field header. Set these to a non-empty value.
request = common.SignBlobRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.sign_blob), "__call__") as call:
Expand All @@ -1346,7 +1346,7 @@ async def test_sign_blob_field_headers_async():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand Down Expand Up @@ -1554,7 +1554,7 @@ def test_sign_jwt_field_headers():
# a field header. Set these to a non-empty value.
request = common.SignJwtRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.sign_jwt), "__call__") as call:
Expand All @@ -1570,7 +1570,7 @@ def test_sign_jwt_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -1584,7 +1584,7 @@ async def test_sign_jwt_field_headers_async():
# a field header. Set these to a non-empty value.
request = common.SignJwtRequest()

request.name = "name/value"
request.name = "name_value"

# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.sign_jwt), "__call__") as call:
Expand All @@ -1602,7 +1602,7 @@ async def test_sign_jwt_field_headers_async():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand Down

0 comments on commit f091a6e

Please sign in to comment.