Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

chore: use gapic-generator-python 0.65.2 #143

Merged
merged 2 commits into from
Apr 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,17 @@ async def get_policy(

from google.cloud import binaryauthorization_v1

def sample_get_policy():
async def sample_get_policy():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1.GetPolicyRequest(
name="name_value",
)

# Make the request
response = client.get_policy(request=request)
response = await client.get_policy(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -364,9 +364,9 @@ async def update_policy(

from google.cloud import binaryauthorization_v1

def sample_update_policy():
async def sample_update_policy():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
policy = binaryauthorization_v1.Policy()
Expand All @@ -378,7 +378,7 @@ def sample_update_policy():
)

# Make the request
response = client.update_policy(request=request)
response = await client.update_policy(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -488,9 +488,9 @@ async def create_attestor(

from google.cloud import binaryauthorization_v1

def sample_create_attestor():
async def sample_create_attestor():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
attestor = binaryauthorization_v1.Attestor()
Expand All @@ -504,7 +504,7 @@ def sample_create_attestor():
)

# Make the request
response = client.create_attestor(request=request)
response = await client.create_attestor(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -617,17 +617,17 @@ async def get_attestor(

from google.cloud import binaryauthorization_v1

def sample_get_attestor():
async def sample_get_attestor():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1.GetAttestorRequest(
name="name_value",
)

# Make the request
response = client.get_attestor(request=request)
response = await client.get_attestor(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -728,9 +728,9 @@ async def update_attestor(

from google.cloud import binaryauthorization_v1

def sample_update_attestor():
async def sample_update_attestor():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
attestor = binaryauthorization_v1.Attestor()
Expand All @@ -742,7 +742,7 @@ def sample_update_attestor():
)

# Make the request
response = client.update_attestor(request=request)
response = await client.update_attestor(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -845,9 +845,9 @@ async def list_attestors(

from google.cloud import binaryauthorization_v1

def sample_list_attestors():
async def sample_list_attestors():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1.ListAttestorsRequest(
Expand All @@ -858,7 +858,7 @@ def sample_list_attestors():
page_result = client.list_attestors(request=request)

# Handle the response
for response in page_result:
async for response in page_result:
print(response)

Args:
Expand Down Expand Up @@ -969,17 +969,17 @@ async def delete_attestor(

from google.cloud import binaryauthorization_v1

def sample_delete_attestor():
async def sample_delete_attestor():
# Create a client
client = binaryauthorization_v1.BinauthzManagementServiceV1Client()
client = binaryauthorization_v1.BinauthzManagementServiceV1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1.DeleteAttestorRequest(
name="name_value",
)

# Make the request
client.delete_attestor(request=request)
await client.delete_attestor(request=request)

Args:
request (Union[google.cloud.binaryauthorization_v1.types.DeleteAttestorRequest, dict]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,17 @@ async def get_system_policy(

from google.cloud import binaryauthorization_v1

def sample_get_system_policy():
async def sample_get_system_policy():
# Create a client
client = binaryauthorization_v1.SystemPolicyV1Client()
client = binaryauthorization_v1.SystemPolicyV1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1.GetSystemPolicyRequest(
name="name_value",
)

# Make the request
response = client.get_system_policy(request=request)
response = await client.get_system_policy(request=request)

# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ async def validate_attestation_occurrence(

from google.cloud import binaryauthorization_v1

def sample_validate_attestation_occurrence():
async def sample_validate_attestation_occurrence():
# Create a client
client = binaryauthorization_v1.ValidationHelperV1Client()
client = binaryauthorization_v1.ValidationHelperV1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1.ValidateAttestationOccurrenceRequest(
Expand All @@ -227,7 +227,7 @@ def sample_validate_attestation_occurrence():
)

# Make the request
response = client.validate_attestation_occurrence(request=request)
response = await client.validate_attestation_occurrence(request=request)

# Handle the response
print(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@ async def get_policy(

from google.cloud import binaryauthorization_v1beta1

def sample_get_policy():
async def sample_get_policy():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1beta1.GetPolicyRequest(
name="name_value",
)

# Make the request
response = client.get_policy(request=request)
response = await client.get_policy(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -374,9 +374,9 @@ async def update_policy(

from google.cloud import binaryauthorization_v1beta1

def sample_update_policy():
async def sample_update_policy():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
policy = binaryauthorization_v1beta1.Policy()
Expand All @@ -388,7 +388,7 @@ def sample_update_policy():
)

# Make the request
response = client.update_policy(request=request)
response = await client.update_policy(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -500,9 +500,9 @@ async def create_attestor(

from google.cloud import binaryauthorization_v1beta1

def sample_create_attestor():
async def sample_create_attestor():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
attestor = binaryauthorization_v1beta1.Attestor()
Expand All @@ -516,7 +516,7 @@ def sample_create_attestor():
)

# Make the request
response = client.create_attestor(request=request)
response = await client.create_attestor(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -629,17 +629,17 @@ async def get_attestor(

from google.cloud import binaryauthorization_v1beta1

def sample_get_attestor():
async def sample_get_attestor():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1beta1.GetAttestorRequest(
name="name_value",
)

# Make the request
response = client.get_attestor(request=request)
response = await client.get_attestor(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -740,9 +740,9 @@ async def update_attestor(

from google.cloud import binaryauthorization_v1beta1

def sample_update_attestor():
async def sample_update_attestor():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
attestor = binaryauthorization_v1beta1.Attestor()
Expand All @@ -754,7 +754,7 @@ def sample_update_attestor():
)

# Make the request
response = client.update_attestor(request=request)
response = await client.update_attestor(request=request)

# Handle the response
print(response)
Expand Down Expand Up @@ -858,9 +858,9 @@ async def list_attestors(

from google.cloud import binaryauthorization_v1beta1

def sample_list_attestors():
async def sample_list_attestors():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1beta1.ListAttestorsRequest(
Expand All @@ -871,7 +871,7 @@ def sample_list_attestors():
page_result = client.list_attestors(request=request)

# Handle the response
for response in page_result:
async for response in page_result:
print(response)

Args:
Expand Down Expand Up @@ -982,17 +982,17 @@ async def delete_attestor(

from google.cloud import binaryauthorization_v1beta1

def sample_delete_attestor():
async def sample_delete_attestor():
# Create a client
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1Client()
client = binaryauthorization_v1beta1.BinauthzManagementServiceV1Beta1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1beta1.DeleteAttestorRequest(
name="name_value",
)

# Make the request
client.delete_attestor(request=request)
await client.delete_attestor(request=request)

Args:
request (Union[google.cloud.binaryauthorization_v1beta1.types.DeleteAttestorRequest, dict]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,17 @@ async def get_system_policy(

from google.cloud import binaryauthorization_v1beta1

def sample_get_system_policy():
async def sample_get_system_policy():
# Create a client
client = binaryauthorization_v1beta1.SystemPolicyV1Beta1Client()
client = binaryauthorization_v1beta1.SystemPolicyV1Beta1AsyncClient()

# Initialize request argument(s)
request = binaryauthorization_v1beta1.GetSystemPolicyRequest(
name="name_value",
)

# Make the request
response = client.get_system_policy(request=request)
response = await client.get_system_policy(request=request)

# Handle the response
print(response)
Expand Down
Loading