Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#7)
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 f9e7446 commit f1bd3bb
Show file tree
Hide file tree
Showing 4 changed files with 455 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,13 @@ async def list_endpoint_policies(
r"""Lists EndpointPolicies in a given project and
location.
.. code-block:: python
from google.cloud import network_services_v1
def sample_list_endpoint_policies():
async def sample_list_endpoint_policies():
# Create a client
client = network_services_v1.NetworkServicesClient()
client = network_services_v1.NetworkServicesAsyncClient()
# Initialize request argument(s)
request = network_services_v1.ListEndpointPoliciesRequest(
Expand All @@ -257,7 +256,7 @@ def sample_list_endpoint_policies():
page_result = client.list_endpoint_policies(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -353,17 +352,17 @@ async def get_endpoint_policy(
from google.cloud import network_services_v1
def sample_get_endpoint_policy():
async def sample_get_endpoint_policy():
# Create a client
client = network_services_v1.NetworkServicesClient()
client = network_services_v1.NetworkServicesAsyncClient()
# Initialize request argument(s)
request = network_services_v1.GetEndpointPolicyRequest(
name="name_value",
)
# Make the request
response = client.get_endpoint_policy(request=request)
response = await client.get_endpoint_policy(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -452,14 +451,13 @@ async def create_endpoint_policy(
r"""Creates a new EndpointPolicy in a given project and
location.
.. code-block:: python
from google.cloud import network_services_v1
def sample_create_endpoint_policy():
async def sample_create_endpoint_policy():
# Create a client
client = network_services_v1.NetworkServicesClient()
client = network_services_v1.NetworkServicesAsyncClient()
# Initialize request argument(s)
endpoint_policy = network_services_v1.EndpointPolicy()
Expand All @@ -477,7 +475,7 @@ def sample_create_endpoint_policy():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -595,9 +593,9 @@ async def update_endpoint_policy(
from google.cloud import network_services_v1
def sample_update_endpoint_policy():
async def sample_update_endpoint_policy():
# Create a client
client = network_services_v1.NetworkServicesClient()
client = network_services_v1.NetworkServicesAsyncClient()
# Initialize request argument(s)
endpoint_policy = network_services_v1.EndpointPolicy()
Expand All @@ -613,7 +611,7 @@ def sample_update_endpoint_policy():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -727,9 +725,9 @@ async def delete_endpoint_policy(
from google.cloud import network_services_v1
def sample_delete_endpoint_policy():
async def sample_delete_endpoint_policy():
# Create a client
client = network_services_v1.NetworkServicesClient()
client = network_services_v1.NetworkServicesAsyncClient()
# Initialize request argument(s)
request = network_services_v1.DeleteEndpointPolicyRequest(
Expand All @@ -741,7 +739,7 @@ def sample_delete_endpoint_policy():
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 @@ -513,10 +513,9 @@ def list_endpoint_policies(
r"""Lists EndpointPolicies in a given project and
location.
.. code-block:: python
from google.cloud import network_services_v1
from google.cloud import network_services_v1
def sample_list_endpoint_policies():
# Create a client
Expand Down Expand Up @@ -625,7 +624,7 @@ def get_endpoint_policy(
.. code-block:: python
from google.cloud import network_services_v1
from google.cloud import network_services_v1
def sample_get_endpoint_policy():
# Create a client
Expand Down Expand Up @@ -726,10 +725,9 @@ def create_endpoint_policy(
r"""Creates a new EndpointPolicy in a given project and
location.
.. code-block:: python
from google.cloud import network_services_v1
from google.cloud import network_services_v1
def sample_create_endpoint_policy():
# Create a client
Expand Down Expand Up @@ -867,7 +865,7 @@ def update_endpoint_policy(
.. code-block:: python
from google.cloud import network_services_v1
from google.cloud import network_services_v1
def sample_update_endpoint_policy():
# Create a client
Expand Down Expand Up @@ -999,7 +997,7 @@ def delete_endpoint_policy(
.. code-block:: python
from google.cloud import network_services_v1
from google.cloud import network_services_v1
def sample_delete_endpoint_policy():
# Create a client
Expand Down
Loading

0 comments on commit f1bd3bb

Please sign in to comment.