Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.2 (#68)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.63.2
docs: add generated snippets

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] authored Feb 11, 2022
1 parent bb3e183 commit 9ffa59d
Show file tree
Hide file tree
Showing 17 changed files with 1,626 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,27 @@ async def list_available_versions(
r"""Lists possible versions for Data Fusion instances in
the specified project and location.
.. code-block::
from google.cloud import data_fusion_v1
def sample_list_available_versions():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
request = data_fusion_v1.ListAvailableVersionsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_available_versions(request=request)
# Handle the response
for response in page_result:
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.ListAvailableVersionsRequest, dict]):
The request object. Request message for the list
Expand Down Expand Up @@ -300,6 +321,27 @@ async def list_instances(
r"""Lists Data Fusion instances in the specified project
and location.
.. code-block::
from google.cloud import data_fusion_v1
def sample_list_instances():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
request = data_fusion_v1.ListInstancesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_instances(request=request)
# Handle the response
for response in page_result:
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.ListInstancesRequest, dict]):
The request object. Request message for listing Data
Expand Down Expand Up @@ -358,6 +400,25 @@ async def get_instance(
) -> datafusion.Instance:
r"""Gets details of a single Data Fusion instance.
.. code-block::
from google.cloud import data_fusion_v1
def sample_get_instance():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
request = data_fusion_v1.GetInstanceRequest(
name="name_value",
)
# Make the request
response = client.get_instance(request=request)
# Handle the response
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.GetInstanceRequest, dict]):
The request object. Request message for getting details
Expand Down Expand Up @@ -409,6 +470,31 @@ async def create_instance(
r"""Creates a new Data Fusion instance in the specified
project and location.
.. code-block::
from google.cloud import data_fusion_v1
def sample_create_instance():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
request = data_fusion_v1.CreateInstanceRequest(
parent="parent_value",
instance_id="instance_id_value",
)
# Make the request
operation = client.create_instance(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.CreateInstanceRequest, dict]):
The request object. Request message for creating a Data
Expand Down Expand Up @@ -508,6 +594,29 @@ async def delete_instance(
) -> operation_async.AsyncOperation:
r"""Deletes a single Date Fusion instance.
.. code-block::
from google.cloud import data_fusion_v1
def sample_delete_instance():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
request = data_fusion_v1.DeleteInstanceRequest(
name="name_value",
)
# Make the request
operation = client.delete_instance(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.DeleteInstanceRequest, dict]):
The request object. Request message for deleting a Data
Expand Down Expand Up @@ -602,6 +711,32 @@ async def update_instance(
) -> operation_async.AsyncOperation:
r"""Updates a single Data Fusion instance.
.. code-block::
from google.cloud import data_fusion_v1
def sample_update_instance():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
instance = data_fusion_v1.Instance()
instance.type_ = "DEVELOPER"
request = data_fusion_v1.UpdateInstanceRequest(
instance=instance,
)
# Make the request
operation = client.update_instance(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.UpdateInstanceRequest, dict]):
The request object. Request message for updating a Data
Expand Down Expand Up @@ -706,6 +841,30 @@ async def restart_instance(
r"""Restart a single Data Fusion instance.
At the end of an operation instance is fully restarted.
.. code-block::
from google.cloud import data_fusion_v1
def sample_restart_instance():
# Create a client
client = data_fusion_v1.DataFusionClient()
# Initialize request argument(s)
request = data_fusion_v1.RestartInstanceRequest(
name="name_value",
)
# Make the request
operation = client.restart_instance(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.data_fusion_v1.types.RestartInstanceRequest, dict]):
The request object. Request message for restarting a
Expand Down
Loading

0 comments on commit 9ffa59d

Please sign in to comment.