Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.2 (#115)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.63.2

PiperOrigin-RevId: 427792504

Source-Link: googleapis/googleapis@55b9e1e

Source-Link: googleapis/googleapis-gen@bf4e86b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9

* 🦉 Updates from OwlBot

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] committed Feb 11, 2022
1 parent 3ec3550 commit f9cabda
Show file tree
Hide file tree
Showing 44 changed files with 4,314 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,26 @@ async def list_memberships(
) -> pagers.ListMembershipsAsyncPager:
r"""Lists Memberships in a given project and location.
.. code-block::
from google.cloud import gkehub_v1
def sample_list_memberships():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.ListMembershipsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_memberships(request=request)
# Handle the response
for response in page_result:
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.ListMembershipsRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -306,6 +326,25 @@ async def list_features(
) -> pagers.ListFeaturesAsyncPager:
r"""Lists Features in a given project and location.
.. code-block::
from google.cloud import gkehub_v1
def sample_list_features():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.ListFeaturesRequest(
)
# Make the request
page_result = client.list_features(request=request)
# Handle the response
for response in page_result:
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.ListFeaturesRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -386,6 +425,25 @@ async def get_membership(
) -> membership.Membership:
r"""Gets the details of a Membership.
.. code-block::
from google.cloud import gkehub_v1
def sample_get_membership():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.GetMembershipRequest(
name="name_value",
)
# Make the request
response = client.get_membership(request=request)
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.GetMembershipRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -457,6 +515,24 @@ async def get_feature(
) -> feature.Feature:
r"""Gets details of a single Feature.
.. code-block::
from google.cloud import gkehub_v1
def sample_get_feature():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.GetFeatureRequest(
)
# Make the request
response = client.get_feature(request=request)
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.GetFeatureRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -534,6 +610,31 @@ async def create_membership(
Cloud**. To register other clusters, follow the instructions at
https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
.. code-block::
from google.cloud import gkehub_v1
def sample_create_membership():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.CreateMembershipRequest(
parent="parent_value",
membership_id="membership_id_value",
)
# Make the request
operation = client.create_membership(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.CreateMembershipRequest, dict]):
The request object. Request message for the
Expand Down Expand Up @@ -645,6 +746,28 @@ async def create_feature(
) -> operation_async.AsyncOperation:
r"""Adds a new Feature.
.. code-block::
from google.cloud import gkehub_v1
def sample_create_feature():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.CreateFeatureRequest(
)
# Make the request
operation = client.create_feature(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.CreateFeatureRequest, dict]):
The request object. Request message for the
Expand Down Expand Up @@ -747,6 +870,30 @@ async def delete_membership(
at
https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
.. code-block::
from google.cloud import gkehub_v1
def sample_delete_membership():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.DeleteMembershipRequest(
name="name_value",
)
# Make the request
operation = client.delete_membership(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.DeleteMembershipRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -839,6 +986,28 @@ async def delete_feature(
) -> operation_async.AsyncOperation:
r"""Removes a Feature.
.. code-block::
from google.cloud import gkehub_v1
def sample_delete_feature():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.DeleteFeatureRequest(
)
# Make the request
operation = client.delete_feature(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.DeleteFeatureRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -933,6 +1102,29 @@ async def update_membership(
) -> operation_async.AsyncOperation:
r"""Updates an existing Membership.
.. code-block::
from google.cloud import gkehub_v1
def sample_update_membership():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.UpdateMembershipRequest(
name="name_value",
)
# Make the request
operation = client.update_membership(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.UpdateMembershipRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -1040,6 +1232,28 @@ async def update_feature(
) -> operation_async.AsyncOperation:
r"""Updates an existing Feature.
.. code-block::
from google.cloud import gkehub_v1
def sample_update_feature():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.UpdateFeatureRequest(
)
# Make the request
operation = client.update_feature(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.UpdateFeatureRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -1147,6 +1361,26 @@ async def generate_connect_manifest(
**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.
.. code-block::
from google.cloud import gkehub_v1
def sample_generate_connect_manifest():
# Create a client
client = gkehub_v1.GkeHubClient()
# Initialize request argument(s)
request = gkehub_v1.GenerateConnectManifestRequest(
name="name_value",
)
# Make the request
response = client.generate_connect_manifest(request=request)
# Handle the response
print(response)
Args:
request (Union[google.cloud.gkehub_v1.types.GenerateConnectManifestRequest, dict]):
The request object. Request message for
Expand Down
Loading

0 comments on commit f9cabda

Please sign in to comment.