Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#183)
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 4f6786b commit c574db7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,17 @@ async def delete_posix_account(
from google.cloud import oslogin_v1
def sample_delete_posix_account():
async def sample_delete_posix_account():
# Create a client
client = oslogin_v1.OsLoginServiceClient()
client = oslogin_v1.OsLoginServiceAsyncClient()
# Initialize request argument(s)
request = oslogin_v1.DeletePosixAccountRequest(
name="name_value",
)
# Make the request
client.delete_posix_account(request=request)
await client.delete_posix_account(request=request)
Args:
request (Union[google.cloud.oslogin_v1.types.DeletePosixAccountRequest, dict]):
Expand Down Expand Up @@ -323,17 +323,17 @@ async def delete_ssh_public_key(
from google.cloud import oslogin_v1
def sample_delete_ssh_public_key():
async def sample_delete_ssh_public_key():
# Create a client
client = oslogin_v1.OsLoginServiceClient()
client = oslogin_v1.OsLoginServiceAsyncClient()
# Initialize request argument(s)
request = oslogin_v1.DeleteSshPublicKeyRequest(
name="name_value",
)
# Make the request
client.delete_ssh_public_key(request=request)
await client.delete_ssh_public_key(request=request)
Args:
request (Union[google.cloud.oslogin_v1.types.DeleteSshPublicKeyRequest, dict]):
Expand Down Expand Up @@ -419,17 +419,17 @@ async def get_login_profile(
from google.cloud import oslogin_v1
def sample_get_login_profile():
async def sample_get_login_profile():
# Create a client
client = oslogin_v1.OsLoginServiceClient()
client = oslogin_v1.OsLoginServiceAsyncClient()
# Initialize request argument(s)
request = oslogin_v1.GetLoginProfileRequest(
name="name_value",
)
# Make the request
response = client.get_login_profile(request=request)
response = await client.get_login_profile(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -525,17 +525,17 @@ async def get_ssh_public_key(
from google.cloud import oslogin_v1
def sample_get_ssh_public_key():
async def sample_get_ssh_public_key():
# Create a client
client = oslogin_v1.OsLoginServiceClient()
client = oslogin_v1.OsLoginServiceAsyncClient()
# Initialize request argument(s)
request = oslogin_v1.GetSshPublicKeyRequest(
name="name_value",
)
# Make the request
response = client.get_ssh_public_key(request=request)
response = await client.get_ssh_public_key(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -637,17 +637,17 @@ async def import_ssh_public_key(
from google.cloud import oslogin_v1
def sample_import_ssh_public_key():
async def sample_import_ssh_public_key():
# Create a client
client = oslogin_v1.OsLoginServiceClient()
client = oslogin_v1.OsLoginServiceAsyncClient()
# Initialize request argument(s)
request = oslogin_v1.ImportSshPublicKeyRequest(
parent="parent_value",
)
# Make the request
response = client.import_ssh_public_key(request=request)
response = await client.import_ssh_public_key(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -763,17 +763,17 @@ async def update_ssh_public_key(
from google.cloud import oslogin_v1
def sample_update_ssh_public_key():
async def sample_update_ssh_public_key():
# Create a client
client = oslogin_v1.OsLoginServiceClient()
client = oslogin_v1.OsLoginServiceAsyncClient()
# Initialize request argument(s)
request = oslogin_v1.UpdateSshPublicKeyRequest(
name="name_value",
)
# Make the request
response = client.update_ssh_public_key(request=request)
response = await client.update_ssh_public_key(request=request)
# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def test_delete_posix_account_field_headers():
# a field header. Set these to a non-empty value.
request = oslogin.DeletePosixAccountRequest()

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 @@ -767,7 +767,7 @@ def test_delete_posix_account_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -781,7 +781,7 @@ async def test_delete_posix_account_field_headers_async():
# a field header. Set these to a non-empty value.
request = oslogin.DeletePosixAccountRequest()

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 @@ -799,7 +799,7 @@ async def test_delete_posix_account_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 @@ -983,7 +983,7 @@ def test_delete_ssh_public_key_field_headers():
# a field header. Set these to a non-empty value.
request = oslogin.DeleteSshPublicKeyRequest()

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 @@ -1001,7 +1001,7 @@ def test_delete_ssh_public_key_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -1015,7 +1015,7 @@ async def test_delete_ssh_public_key_field_headers_async():
# a field header. Set these to a non-empty value.
request = oslogin.DeleteSshPublicKeyRequest()

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 @@ -1033,7 +1033,7 @@ async def test_delete_ssh_public_key_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 @@ -1225,7 +1225,7 @@ def test_get_login_profile_field_headers():
# a field header. Set these to a non-empty value.
request = oslogin.GetLoginProfileRequest()

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 @@ -1243,7 +1243,7 @@ def test_get_login_profile_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -1257,7 +1257,7 @@ async def test_get_login_profile_field_headers_async():
# a field header. Set these to a non-empty value.
request = oslogin.GetLoginProfileRequest()

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 @@ -1277,7 +1277,7 @@ async def test_get_login_profile_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 @@ -1483,7 +1483,7 @@ def test_get_ssh_public_key_field_headers():
# a field header. Set these to a non-empty value.
request = oslogin.GetSshPublicKeyRequest()

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 @@ -1501,7 +1501,7 @@ def test_get_ssh_public_key_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -1515,7 +1515,7 @@ async def test_get_ssh_public_key_field_headers_async():
# a field header. Set these to a non-empty value.
request = oslogin.GetSshPublicKeyRequest()

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 @@ -1533,7 +1533,7 @@ async def test_get_ssh_public_key_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 @@ -1719,7 +1719,7 @@ def test_import_ssh_public_key_field_headers():
# a field header. Set these to a non-empty value.
request = oslogin.ImportSshPublicKeyRequest()

request.parent = "parent/value"
request.parent = "parent_value"

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


Expand All @@ -1751,7 +1751,7 @@ async def test_import_ssh_public_key_field_headers_async():
# a field header. Set these to a non-empty value.
request = oslogin.ImportSshPublicKeyRequest()

request.parent = "parent/value"
request.parent = "parent_value"

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


Expand Down Expand Up @@ -1997,7 +1997,7 @@ def test_update_ssh_public_key_field_headers():
# a field header. Set these to a non-empty value.
request = oslogin.UpdateSshPublicKeyRequest()

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 @@ -2015,7 +2015,7 @@ def test_update_ssh_public_key_field_headers():
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"name=name/value",
"name=name_value",
) in kw["metadata"]


Expand All @@ -2029,7 +2029,7 @@ async def test_update_ssh_public_key_field_headers_async():
# a field header. Set these to a non-empty value.
request = oslogin.UpdateSshPublicKeyRequest()

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 @@ -2047,7 +2047,7 @@ async def test_update_ssh_public_key_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 c574db7

Please sign in to comment.