diff --git a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/async_client.py b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/async_client.py index e82258d78cd4..661d5662adaa 100644 --- a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/async_client.py +++ b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/async_client.py @@ -238,6 +238,30 @@ async def create_lake( ) -> operation_async.AsyncOperation: r"""Creates a lake resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.CreateLakeRequest( + parent="parent_value", + lake_id="lake_id_value", + ) + + # Make the request + operation = client.create_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateLakeRequest, dict]): The request object. Create lake request. @@ -356,6 +380,28 @@ async def update_lake( ) -> operation_async.AsyncOperation: r"""Updates a lake resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.UpdateLakeRequest( + ) + + # Make the request + operation = client.update_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateLakeRequest, dict]): The request object. Update lake request. @@ -456,6 +502,30 @@ async def delete_lake( r"""Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteLakeRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteLakeRequest, dict]): The request object. Delete lake request. @@ -547,6 +617,26 @@ async def list_lakes( ) -> pagers.ListLakesAsyncPager: r"""Lists lake resources in a project and location. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_lakes(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lakes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListLakesRequest, dict]): The request object. List lakes request. @@ -636,6 +726,25 @@ async def get_lake( ) -> resources.Lake: r"""Retrieves a lake resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetLakeRequest( + name="name_value", + ) + + # Make the request + response = client.get_lake(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetLakeRequest, dict]): The request object. Get lake request. @@ -729,6 +838,26 @@ async def list_lake_actions( ) -> pagers.ListLakeActionsAsyncPager: r"""Lists action resources in a lake. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_lake_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakeActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lake_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListLakeActionsRequest, dict]): The request object. List lake actions request. @@ -818,6 +947,35 @@ async def create_zone( ) -> operation_async.AsyncOperation: r"""Creates a zone resource within a lake. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.CreateZoneRequest( + parent="parent_value", + zone_id="zone_id_value", + zone=zone, + ) + + # Make the request + operation = client.create_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateZoneRequest, dict]): The request object. Create zone request. @@ -929,6 +1087,33 @@ async def update_zone( ) -> operation_async.AsyncOperation: r"""Updates a zone resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.UpdateZoneRequest( + zone=zone, + ) + + # Make the request + operation = client.update_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateZoneRequest, dict]): The request object. Update zone request. @@ -1022,6 +1207,30 @@ async def delete_zone( r"""Deletes a zone resource. All assets within a zone must be deleted before the zone can be deleted. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteZoneRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteZoneRequest, dict]): The request object. Delete zone request. @@ -1113,6 +1322,26 @@ async def list_zones( ) -> pagers.ListZonesAsyncPager: r"""Lists zone resources in a lake. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_zones(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZonesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zones(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListZonesRequest, dict]): The request object. List zones request. @@ -1200,6 +1429,25 @@ async def get_zone( ) -> resources.Zone: r"""Retrieves a zone resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetZoneRequest( + name="name_value", + ) + + # Make the request + response = client.get_zone(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetZoneRequest, dict]): The request object. Get zone request. @@ -1285,6 +1533,26 @@ async def list_zone_actions( ) -> pagers.ListZoneActionsAsyncPager: r"""Lists action resources in a zone. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_zone_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZoneActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zone_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListZoneActionsRequest, dict]): The request object. List zone actions request. @@ -1374,6 +1642,34 @@ async def create_asset( ) -> operation_async.AsyncOperation: r"""Creates an asset resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.CreateAssetRequest( + parent="parent_value", + asset_id="asset_id_value", + asset=asset, + ) + + # Make the request + operation = client.create_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateAssetRequest, dict]): The request object. Create asset request. @@ -1479,6 +1775,32 @@ async def update_asset( ) -> operation_async.AsyncOperation: r"""Updates an asset resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.UpdateAssetRequest( + asset=asset, + ) + + # Make the request + operation = client.update_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateAssetRequest, dict]): The request object. Update asset request. @@ -1570,6 +1892,30 @@ async def delete_asset( resource is detached (default) or deleted based on the associated Lifecycle policy. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteAssetRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteAssetRequest, dict]): The request object. Delete asset request. @@ -1661,6 +2007,26 @@ async def list_assets( ) -> pagers.ListAssetsAsyncPager: r"""Lists asset resources in a zone. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_assets(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_assets(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListAssetsRequest, dict]): The request object. List assets request. @@ -1748,6 +2114,25 @@ async def get_asset( ) -> resources.Asset: r"""Retrieves an asset resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetAssetRequest( + name="name_value", + ) + + # Make the request + response = client.get_asset(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetAssetRequest, dict]): The request object. Get asset request. @@ -1828,6 +2213,26 @@ async def list_asset_actions( ) -> pagers.ListAssetActionsAsyncPager: r"""Lists action resources in an asset. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_asset_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_asset_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListAssetActionsRequest, dict]): The request object. List asset actions request. @@ -1917,6 +2322,37 @@ async def create_task( ) -> operation_async.AsyncOperation: r"""Creates a task resource within a lake. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.CreateTaskRequest( + parent="parent_value", + task_id="task_id_value", + task=task, + ) + + # Make the request + operation = client.create_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateTaskRequest, dict]): The request object. Create task request. @@ -2013,6 +2449,35 @@ async def update_task( ) -> operation_async.AsyncOperation: r"""Update the task resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.UpdateTaskRequest( + task=task, + ) + + # Make the request + operation = client.update_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateTaskRequest, dict]): The request object. Update task request. @@ -2103,6 +2568,29 @@ async def delete_task( ) -> operation_async.AsyncOperation: r"""Delete the task resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteTaskRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteTaskRequest, dict]): The request object. Delete task request. @@ -2194,6 +2682,26 @@ async def list_tasks( ) -> pagers.ListTasksAsyncPager: r"""Lists tasks under the given lake. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_tasks(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListTasksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_tasks(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListTasksRequest, dict]): The request object. List tasks request. @@ -2281,6 +2789,25 @@ async def get_task( ) -> tasks.Task: r"""Get task resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetTaskRequest( + name="name_value", + ) + + # Make the request + response = client.get_task(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetTaskRequest, dict]): The request object. Get task request. @@ -2358,6 +2885,26 @@ async def list_jobs( ) -> pagers.ListJobsAsyncPager: r"""Lists Jobs under the given task. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_jobs(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_jobs(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListJobsRequest, dict]): The request object. List jobs request. @@ -2445,6 +2992,25 @@ async def get_job( ) -> tasks.Job: r"""Get job resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_job(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetJobRequest( + name="name_value", + ) + + # Make the request + response = client.get_job(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetJobRequest, dict]): The request object. Get job request. @@ -2524,6 +3090,22 @@ async def cancel_job( ) -> None: r"""Cancel jobs running for the task resource. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_cancel_job(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.CancelJobRequest( + name="name_value", + ) + + # Make the request + client.cancel_job(request=request) + Args: request (Union[google.cloud.dataplex_v1.types.CancelJobRequest, dict]): The request object. Cancel task jobs. diff --git a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/client.py b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/client.py index ba77578fdaa8..b952e2a7854e 100644 --- a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/client.py +++ b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/dataplex_service/client.py @@ -507,6 +507,31 @@ def create_lake( ) -> operation.Operation: r"""Creates a lake resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.CreateLakeRequest( + parent="parent_value", + lake_id="lake_id_value", + ) + + # Make the request + operation = client.create_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateLakeRequest, dict]): The request object. Create lake request. @@ -625,6 +650,29 @@ def update_lake( ) -> operation.Operation: r"""Updates a lake resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.UpdateLakeRequest( + ) + + # Make the request + operation = client.update_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateLakeRequest, dict]): The request object. Update lake request. @@ -725,6 +773,31 @@ def delete_lake( r"""Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted. + + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteLakeRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteLakeRequest, dict]): The request object. Delete lake request. @@ -816,6 +889,27 @@ def list_lakes( ) -> pagers.ListLakesPager: r"""Lists lake resources in a project and location. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_lakes(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lakes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListLakesRequest, dict]): The request object. List lakes request. @@ -896,6 +990,26 @@ def get_lake( ) -> resources.Lake: r"""Retrieves a lake resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetLakeRequest( + name="name_value", + ) + + # Make the request + response = client.get_lake(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetLakeRequest, dict]): The request object. Get lake request. @@ -980,6 +1094,27 @@ def list_lake_actions( ) -> pagers.ListLakeActionsPager: r"""Lists action resources in a lake. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_lake_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakeActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lake_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListLakeActionsRequest, dict]): The request object. List lake actions request. @@ -1060,6 +1195,36 @@ def create_zone( ) -> operation.Operation: r"""Creates a zone resource within a lake. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.CreateZoneRequest( + parent="parent_value", + zone_id="zone_id_value", + zone=zone, + ) + + # Make the request + operation = client.create_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateZoneRequest, dict]): The request object. Create zone request. @@ -1171,6 +1336,34 @@ def update_zone( ) -> operation.Operation: r"""Updates a zone resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.UpdateZoneRequest( + zone=zone, + ) + + # Make the request + operation = client.update_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateZoneRequest, dict]): The request object. Update zone request. @@ -1264,6 +1457,31 @@ def delete_zone( r"""Deletes a zone resource. All assets within a zone must be deleted before the zone can be deleted. + + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteZoneRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteZoneRequest, dict]): The request object. Delete zone request. @@ -1355,6 +1573,27 @@ def list_zones( ) -> pagers.ListZonesPager: r"""Lists zone resources in a lake. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_zones(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZonesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zones(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListZonesRequest, dict]): The request object. List zones request. @@ -1433,6 +1672,26 @@ def get_zone( ) -> resources.Zone: r"""Retrieves a zone resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetZoneRequest( + name="name_value", + ) + + # Make the request + response = client.get_zone(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetZoneRequest, dict]): The request object. Get zone request. @@ -1509,6 +1768,27 @@ def list_zone_actions( ) -> pagers.ListZoneActionsPager: r"""Lists action resources in a zone. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_zone_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZoneActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zone_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListZoneActionsRequest, dict]): The request object. List zone actions request. @@ -1589,6 +1869,35 @@ def create_asset( ) -> operation.Operation: r"""Creates an asset resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.CreateAssetRequest( + parent="parent_value", + asset_id="asset_id_value", + asset=asset, + ) + + # Make the request + operation = client.create_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateAssetRequest, dict]): The request object. Create asset request. @@ -1694,6 +2003,33 @@ def update_asset( ) -> operation.Operation: r"""Updates an asset resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.UpdateAssetRequest( + asset=asset, + ) + + # Make the request + operation = client.update_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateAssetRequest, dict]): The request object. Update asset request. @@ -1785,6 +2121,31 @@ def delete_asset( resource is detached (default) or deleted based on the associated Lifecycle policy. + + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteAssetRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteAssetRequest, dict]): The request object. Delete asset request. @@ -1876,6 +2237,27 @@ def list_assets( ) -> pagers.ListAssetsPager: r"""Lists asset resources in a zone. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_assets(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_assets(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListAssetsRequest, dict]): The request object. List assets request. @@ -1954,6 +2336,26 @@ def get_asset( ) -> resources.Asset: r"""Retrieves an asset resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetAssetRequest( + name="name_value", + ) + + # Make the request + response = client.get_asset(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetAssetRequest, dict]): The request object. Get asset request. @@ -2025,6 +2427,27 @@ def list_asset_actions( ) -> pagers.ListAssetActionsPager: r"""Lists action resources in an asset. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_asset_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_asset_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListAssetActionsRequest, dict]): The request object. List asset actions request. @@ -2105,6 +2528,38 @@ def create_task( ) -> operation.Operation: r"""Creates a task resource within a lake. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_create_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.CreateTaskRequest( + parent="parent_value", + task_id="task_id_value", + task=task, + ) + + # Make the request + operation = client.create_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.CreateTaskRequest, dict]): The request object. Create task request. @@ -2201,6 +2656,36 @@ def update_task( ) -> operation.Operation: r"""Update the task resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_update_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.UpdateTaskRequest( + task=task, + ) + + # Make the request + operation = client.update_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.UpdateTaskRequest, dict]): The request object. Update task request. @@ -2291,6 +2776,30 @@ def delete_task( ) -> operation.Operation: r"""Delete the task resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_delete_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteTaskRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.DeleteTaskRequest, dict]): The request object. Delete task request. @@ -2382,6 +2891,27 @@ def list_tasks( ) -> pagers.ListTasksPager: r"""Lists tasks under the given lake. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_tasks(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListTasksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_tasks(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListTasksRequest, dict]): The request object. List tasks request. @@ -2460,6 +2990,26 @@ def get_task( ) -> tasks.Task: r"""Get task resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetTaskRequest( + name="name_value", + ) + + # Make the request + response = client.get_task(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetTaskRequest, dict]): The request object. Get task request. @@ -2528,6 +3078,27 @@ def list_jobs( ) -> pagers.ListJobsPager: r"""Lists Jobs under the given task. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_jobs(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_jobs(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListJobsRequest, dict]): The request object. List jobs request. @@ -2606,6 +3177,26 @@ def get_job( ) -> tasks.Job: r"""Get job resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_job(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetJobRequest( + name="name_value", + ) + + # Make the request + response = client.get_job(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetJobRequest, dict]): The request object. Get job request. @@ -2676,6 +3267,23 @@ def cancel_job( ) -> None: r"""Cancel jobs running for the task resource. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_cancel_job(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.CancelJobRequest( + name="name_value", + ) + + # Make the request + client.cancel_job(request=request) + Args: request (Union[google.cloud.dataplex_v1.types.CancelJobRequest, dict]): The request object. Cancel task jobs. diff --git a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/async_client.py b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/async_client.py index ef6bc91d3259..3cb31a283101 100644 --- a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/async_client.py +++ b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/async_client.py @@ -220,6 +220,25 @@ async def get_entity( ) -> metadata_.Entity: r"""Get a metadata entity. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_entity(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetEntityRequest( + name="name_value", + ) + + # Make the request + response = client.get_entity(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetEntityRequest, dict]): The request object. Get metadata entity request. @@ -299,6 +318,27 @@ async def list_entities( ) -> pagers.ListEntitiesAsyncPager: r"""List metadata entities in a zone. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_entities(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListEntitiesRequest( + parent="parent_value", + view="FILESETS", + ) + + # Make the request + page_result = client.list_entities(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListEntitiesRequest, dict]): The request object. List metadata entities request. @@ -386,6 +426,25 @@ async def get_partition( ) -> metadata_.Partition: r"""Get a metadata partition of an entity. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_partition(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetPartitionRequest( + name="name_value", + ) + + # Make the request + response = client.get_partition(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetPartitionRequest, dict]): The request object. Get metadata partition request. @@ -465,6 +524,26 @@ async def list_partitions( ) -> pagers.ListPartitionsAsyncPager: r"""List metadata partitions of an entity. + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_partitions(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListPartitionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_partitions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListPartitionsRequest, dict]): The request object. List metadata partitions request. diff --git a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/client.py b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/client.py index ff6d555c4b03..1f109ad8514a 100644 --- a/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/client.py +++ b/packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/client.py @@ -454,6 +454,26 @@ def get_entity( ) -> metadata_.Entity: r"""Get a metadata entity. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_entity(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetEntityRequest( + name="name_value", + ) + + # Make the request + response = client.get_entity(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetEntityRequest, dict]): The request object. Get metadata entity request. @@ -524,6 +544,28 @@ def list_entities( ) -> pagers.ListEntitiesPager: r"""List metadata entities in a zone. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_entities(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListEntitiesRequest( + parent="parent_value", + view="FILESETS", + ) + + # Make the request + page_result = client.list_entities(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListEntitiesRequest, dict]): The request object. List metadata entities request. @@ -602,6 +644,26 @@ def get_partition( ) -> metadata_.Partition: r"""Get a metadata partition of an entity. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_get_partition(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetPartitionRequest( + name="name_value", + ) + + # Make the request + response = client.get_partition(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.GetPartitionRequest, dict]): The request object. Get metadata partition request. @@ -672,6 +734,27 @@ def list_partitions( ) -> pagers.ListPartitionsPager: r"""List metadata partitions of an entity. + + .. code-block:: + + from google.cloud import dataplex_v1 + + def sample_list_partitions(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListPartitionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_partitions(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.dataplex_v1.types.ListPartitionsRequest, dict]): The request object. List metadata partitions request. diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_cancel_job_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_cancel_job_async.py new file mode 100644 index 000000000000..cac2b18fe501 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_cancel_job_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CancelJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CancelJob_async] +from google.cloud import dataplex_v1 + + +async def sample_cancel_job(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.CancelJobRequest( + name="name_value", + ) + + # Make the request + await client.cancel_job(request=request) + + +# [END dataplex_generated_dataplex_v1_DataplexService_CancelJob_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_cancel_job_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_cancel_job_sync.py new file mode 100644 index 000000000000..f6de7b5fbc98 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_cancel_job_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CancelJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CancelJob_sync] +from google.cloud import dataplex_v1 + + +def sample_cancel_job(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.CancelJobRequest( + name="name_value", + ) + + # Make the request + client.cancel_job(request=request) + + +# [END dataplex_generated_dataplex_v1_DataplexService_CancelJob_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_asset_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_asset_async.py new file mode 100644 index 000000000000..f5a50b563950 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_asset_async.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateAsset_async] +from google.cloud import dataplex_v1 + + +async def sample_create_asset(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.CreateAssetRequest( + parent="parent_value", + asset_id="asset_id_value", + asset=asset, + ) + + # Make the request + operation = client.create_asset(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateAsset_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_asset_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_asset_sync.py new file mode 100644 index 000000000000..6c7c4ae25c44 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_asset_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateAsset_sync] +from google.cloud import dataplex_v1 + + +def sample_create_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.CreateAssetRequest( + parent="parent_value", + asset_id="asset_id_value", + asset=asset, + ) + + # Make the request + operation = client.create_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateAsset_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_lake_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_lake_async.py new file mode 100644 index 000000000000..ed306c6b7020 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_lake_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateLake_async] +from google.cloud import dataplex_v1 + + +async def sample_create_lake(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.CreateLakeRequest( + parent="parent_value", + lake_id="lake_id_value", + ) + + # Make the request + operation = client.create_lake(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateLake_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_lake_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_lake_sync.py new file mode 100644 index 000000000000..e01555d997bc --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_lake_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateLake_sync] +from google.cloud import dataplex_v1 + + +def sample_create_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.CreateLakeRequest( + parent="parent_value", + lake_id="lake_id_value", + ) + + # Make the request + operation = client.create_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateLake_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_task_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_task_async.py new file mode 100644 index 000000000000..8a3f84169f9f --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_task_async.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateTask_async] +from google.cloud import dataplex_v1 + + +async def sample_create_task(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.CreateTaskRequest( + parent="parent_value", + task_id="task_id_value", + task=task, + ) + + # Make the request + operation = client.create_task(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateTask_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_task_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_task_sync.py new file mode 100644 index 000000000000..5aa821f829e1 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_task_sync.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateTask_sync] +from google.cloud import dataplex_v1 + + +def sample_create_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.CreateTaskRequest( + parent="parent_value", + task_id="task_id_value", + task=task, + ) + + # Make the request + operation = client.create_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateTask_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_zone_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_zone_async.py new file mode 100644 index 000000000000..31e23e6f94e9 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_zone_async.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateZone_async] +from google.cloud import dataplex_v1 + + +async def sample_create_zone(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.CreateZoneRequest( + parent="parent_value", + zone_id="zone_id_value", + zone=zone, + ) + + # Make the request + operation = client.create_zone(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateZone_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_zone_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_zone_sync.py new file mode 100644 index 000000000000..f279807b30fe --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_create_zone_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_CreateZone_sync] +from google.cloud import dataplex_v1 + + +def sample_create_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.CreateZoneRequest( + parent="parent_value", + zone_id="zone_id_value", + zone=zone, + ) + + # Make the request + operation = client.create_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_CreateZone_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_asset_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_asset_async.py new file mode 100644 index 000000000000..56cf3b876b37 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_asset_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteAsset_async] +from google.cloud import dataplex_v1 + + +async def sample_delete_asset(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteAssetRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_asset(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteAsset_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_asset_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_asset_sync.py new file mode 100644 index 000000000000..962e7305e844 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_asset_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteAsset_sync] +from google.cloud import dataplex_v1 + + +def sample_delete_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteAssetRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteAsset_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_lake_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_lake_async.py new file mode 100644 index 000000000000..dfa0929aabef --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_lake_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteLake_async] +from google.cloud import dataplex_v1 + + +async def sample_delete_lake(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteLakeRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_lake(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteLake_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_lake_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_lake_sync.py new file mode 100644 index 000000000000..bb21cf33a3ed --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_lake_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteLake_sync] +from google.cloud import dataplex_v1 + + +def sample_delete_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteLakeRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteLake_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_task_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_task_async.py new file mode 100644 index 000000000000..c31546ec5558 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_task_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteTask_async] +from google.cloud import dataplex_v1 + + +async def sample_delete_task(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteTaskRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_task(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteTask_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_task_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_task_sync.py new file mode 100644 index 000000000000..aa570f67ea30 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_task_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteTask_sync] +from google.cloud import dataplex_v1 + + +def sample_delete_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteTaskRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteTask_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_zone_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_zone_async.py new file mode 100644 index 000000000000..81903d73b893 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_zone_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteZone_async] +from google.cloud import dataplex_v1 + + +async def sample_delete_zone(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteZoneRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_zone(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteZone_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_zone_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_zone_sync.py new file mode 100644 index 000000000000..9e987aaf8846 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_delete_zone_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_DeleteZone_sync] +from google.cloud import dataplex_v1 + + +def sample_delete_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.DeleteZoneRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_DeleteZone_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_asset_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_asset_async.py new file mode 100644 index 000000000000..966934c0cd4d --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_asset_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetAsset_async] +from google.cloud import dataplex_v1 + + +async def sample_get_asset(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetAssetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_asset(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetAsset_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_asset_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_asset_sync.py new file mode 100644 index 000000000000..865738808e5c --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_asset_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetAsset_sync] +from google.cloud import dataplex_v1 + + +def sample_get_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetAssetRequest( + name="name_value", + ) + + # Make the request + response = client.get_asset(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetAsset_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_job_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_job_async.py new file mode 100644 index 000000000000..e472d75f1724 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_job_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetJob_async] +from google.cloud import dataplex_v1 + + +async def sample_get_job(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetJobRequest( + name="name_value", + ) + + # Make the request + response = await client.get_job(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetJob_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_job_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_job_sync.py new file mode 100644 index 000000000000..f59271fb72b3 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_job_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetJob_sync] +from google.cloud import dataplex_v1 + + +def sample_get_job(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetJobRequest( + name="name_value", + ) + + # Make the request + response = client.get_job(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetJob_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_lake_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_lake_async.py new file mode 100644 index 000000000000..7d7ed7e980ff --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_lake_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetLake_async] +from google.cloud import dataplex_v1 + + +async def sample_get_lake(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetLakeRequest( + name="name_value", + ) + + # Make the request + response = await client.get_lake(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetLake_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_lake_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_lake_sync.py new file mode 100644 index 000000000000..c0f741ec8793 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_lake_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetLake_sync] +from google.cloud import dataplex_v1 + + +def sample_get_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetLakeRequest( + name="name_value", + ) + + # Make the request + response = client.get_lake(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetLake_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_task_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_task_async.py new file mode 100644 index 000000000000..54b0f0acfc33 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_task_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetTask_async] +from google.cloud import dataplex_v1 + + +async def sample_get_task(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetTaskRequest( + name="name_value", + ) + + # Make the request + response = await client.get_task(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetTask_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_task_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_task_sync.py new file mode 100644 index 000000000000..39ec5cae334e --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_task_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetTask_sync] +from google.cloud import dataplex_v1 + + +def sample_get_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetTaskRequest( + name="name_value", + ) + + # Make the request + response = client.get_task(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetTask_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_zone_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_zone_async.py new file mode 100644 index 000000000000..efcd7f6e5b6c --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_zone_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetZone_async] +from google.cloud import dataplex_v1 + + +async def sample_get_zone(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetZoneRequest( + name="name_value", + ) + + # Make the request + response = await client.get_zone(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetZone_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_zone_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_zone_sync.py new file mode 100644 index 000000000000..c70cdb454afe --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_get_zone_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_GetZone_sync] +from google.cloud import dataplex_v1 + + +def sample_get_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetZoneRequest( + name="name_value", + ) + + # Make the request + response = client.get_zone(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_GetZone_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_async.py new file mode 100644 index 000000000000..d4a0c2df9258 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAssetActions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListAssetActions_async] +from google.cloud import dataplex_v1 + + +async def sample_list_asset_actions(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_asset_actions(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListAssetActions_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_sync.py new file mode 100644 index 000000000000..e445cb5a2a33 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAssetActions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListAssetActions_sync] +from google.cloud import dataplex_v1 + + +def sample_list_asset_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_asset_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListAssetActions_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_assets_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_assets_async.py new file mode 100644 index 000000000000..f6afc668b8a2 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_assets_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAssets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListAssets_async] +from google.cloud import dataplex_v1 + + +async def sample_list_assets(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_assets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListAssets_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_assets_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_assets_sync.py new file mode 100644 index 000000000000..232db19c1c8b --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_assets_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAssets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListAssets_sync] +from google.cloud import dataplex_v1 + + +def sample_list_assets(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListAssetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_assets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListAssets_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_jobs_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_jobs_async.py new file mode 100644 index 000000000000..850ae92d8136 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_jobs_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListJobs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListJobs_async] +from google.cloud import dataplex_v1 + + +async def sample_list_jobs(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_jobs(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListJobs_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_jobs_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_jobs_sync.py new file mode 100644 index 000000000000..2bf4b4a83a22 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_jobs_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListJobs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListJobs_sync] +from google.cloud import dataplex_v1 + + +def sample_list_jobs(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_jobs(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListJobs_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_async.py new file mode 100644 index 000000000000..b5da2fd28eaa --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListLakeActions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListLakeActions_async] +from google.cloud import dataplex_v1 + + +async def sample_list_lake_actions(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakeActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lake_actions(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListLakeActions_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_sync.py new file mode 100644 index 000000000000..48dbec16b588 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListLakeActions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListLakeActions_sync] +from google.cloud import dataplex_v1 + + +def sample_list_lake_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakeActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lake_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListLakeActions_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lakes_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lakes_async.py new file mode 100644 index 000000000000..b27528fae4d2 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lakes_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListLakes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListLakes_async] +from google.cloud import dataplex_v1 + + +async def sample_list_lakes(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lakes(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListLakes_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lakes_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lakes_sync.py new file mode 100644 index 000000000000..ec5254fb6b6d --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_lakes_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListLakes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListLakes_sync] +from google.cloud import dataplex_v1 + + +def sample_list_lakes(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListLakesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_lakes(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListLakes_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_tasks_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_tasks_async.py new file mode 100644 index 000000000000..328a494d0357 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_tasks_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListTasks +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListTasks_async] +from google.cloud import dataplex_v1 + + +async def sample_list_tasks(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListTasksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_tasks(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListTasks_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_tasks_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_tasks_sync.py new file mode 100644 index 000000000000..50dfda05898f --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_tasks_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListTasks +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListTasks_sync] +from google.cloud import dataplex_v1 + + +def sample_list_tasks(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListTasksRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_tasks(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListTasks_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_async.py new file mode 100644 index 000000000000..c1736b2afe8c --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListZoneActions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListZoneActions_async] +from google.cloud import dataplex_v1 + + +async def sample_list_zone_actions(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZoneActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zone_actions(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListZoneActions_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_sync.py new file mode 100644 index 000000000000..720764e96efa --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListZoneActions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListZoneActions_sync] +from google.cloud import dataplex_v1 + + +def sample_list_zone_actions(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZoneActionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zone_actions(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListZoneActions_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zones_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zones_async.py new file mode 100644 index 000000000000..62d5828a9f53 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zones_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListZones +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListZones_async] +from google.cloud import dataplex_v1 + + +async def sample_list_zones(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZonesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zones(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListZones_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zones_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zones_sync.py new file mode 100644 index 000000000000..f05a71868686 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_list_zones_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListZones +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_ListZones_sync] +from google.cloud import dataplex_v1 + + +def sample_list_zones(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListZonesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_zones(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_ListZones_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_asset_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_asset_async.py new file mode 100644 index 000000000000..183dceb51323 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_asset_async.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateAsset_async] +from google.cloud import dataplex_v1 + + +async def sample_update_asset(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.UpdateAssetRequest( + asset=asset, + ) + + # Make the request + operation = client.update_asset(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateAsset_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_asset_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_asset_sync.py new file mode 100644 index 000000000000..8a331a4acdae --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_asset_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateAsset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateAsset_sync] +from google.cloud import dataplex_v1 + + +def sample_update_asset(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + asset = dataplex_v1.Asset() + asset.resource_spec.type_ = "BIGQUERY_DATASET" + + request = dataplex_v1.UpdateAssetRequest( + asset=asset, + ) + + # Make the request + operation = client.update_asset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateAsset_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_lake_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_lake_async.py new file mode 100644 index 000000000000..1acfae456383 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_lake_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateLake_async] +from google.cloud import dataplex_v1 + + +async def sample_update_lake(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.UpdateLakeRequest( + ) + + # Make the request + operation = client.update_lake(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateLake_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_lake_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_lake_sync.py new file mode 100644 index 000000000000..581e85ec7883 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_lake_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateLake +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateLake_sync] +from google.cloud import dataplex_v1 + + +def sample_update_lake(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.UpdateLakeRequest( + ) + + # Make the request + operation = client.update_lake(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateLake_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_task_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_task_async.py new file mode 100644 index 000000000000..d4bee35a4fae --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_task_async.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateTask_async] +from google.cloud import dataplex_v1 + + +async def sample_update_task(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.UpdateTaskRequest( + task=task, + ) + + # Make the request + operation = client.update_task(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateTask_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_task_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_task_sync.py new file mode 100644 index 000000000000..e3962922fe66 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_task_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateTask +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateTask_sync] +from google.cloud import dataplex_v1 + + +def sample_update_task(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + task = dataplex_v1.Task() + task.spark.main_jar_file_uri = "main_jar_file_uri_value" + task.trigger_spec.schedule = "schedule_value" + task.trigger_spec.type_ = "RECURRING" + task.execution_spec.service_account = "service_account_value" + + request = dataplex_v1.UpdateTaskRequest( + task=task, + ) + + # Make the request + operation = client.update_task(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateTask_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_zone_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_zone_async.py new file mode 100644 index 000000000000..62182e767483 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_zone_async.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateZone_async] +from google.cloud import dataplex_v1 + + +async def sample_update_zone(): + # Create a client + client = dataplex_v1.DataplexServiceAsyncClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.UpdateZoneRequest( + zone=zone, + ) + + # Make the request + operation = client.update_zone(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateZone_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_zone_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_zone_sync.py new file mode 100644 index 000000000000..e6bc67383f53 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_dataplex_service_update_zone_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateZone +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_DataplexService_UpdateZone_sync] +from google.cloud import dataplex_v1 + + +def sample_update_zone(): + # Create a client + client = dataplex_v1.DataplexServiceClient() + + # Initialize request argument(s) + zone = dataplex_v1.Zone() + zone.type_ = "CURATED" + zone.resource_spec.location_type = "MULTI_REGION" + + request = dataplex_v1.UpdateZoneRequest( + zone=zone, + ) + + # Make the request + operation = client.update_zone(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_DataplexService_UpdateZone_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_entity_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_entity_async.py new file mode 100644 index 000000000000..9bb7c9613d99 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_entity_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEntity +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_GetEntity_async] +from google.cloud import dataplex_v1 + + +async def sample_get_entity(): + # Create a client + client = dataplex_v1.MetadataServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetEntityRequest( + name="name_value", + ) + + # Make the request + response = await client.get_entity(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_GetEntity_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_entity_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_entity_sync.py new file mode 100644 index 000000000000..956194416427 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_entity_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEntity +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_GetEntity_sync] +from google.cloud import dataplex_v1 + + +def sample_get_entity(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetEntityRequest( + name="name_value", + ) + + # Make the request + response = client.get_entity(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_GetEntity_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_partition_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_partition_async.py new file mode 100644 index 000000000000..4d38366c1838 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_partition_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetPartition +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_GetPartition_async] +from google.cloud import dataplex_v1 + + +async def sample_get_partition(): + # Create a client + client = dataplex_v1.MetadataServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.GetPartitionRequest( + name="name_value", + ) + + # Make the request + response = await client.get_partition(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_GetPartition_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_partition_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_partition_sync.py new file mode 100644 index 000000000000..76ed9c07d6ed --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_get_partition_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetPartition +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_GetPartition_sync] +from google.cloud import dataplex_v1 + + +def sample_get_partition(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.GetPartitionRequest( + name="name_value", + ) + + # Make the request + response = client.get_partition(request=request) + + # Handle the response + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_GetPartition_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_entities_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_entities_async.py new file mode 100644 index 000000000000..12765216d433 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_entities_async.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListEntities +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_ListEntities_async] +from google.cloud import dataplex_v1 + + +async def sample_list_entities(): + # Create a client + client = dataplex_v1.MetadataServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListEntitiesRequest( + parent="parent_value", + view="FILESETS", + ) + + # Make the request + page_result = client.list_entities(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_ListEntities_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_entities_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_entities_sync.py new file mode 100644 index 000000000000..3ea3779fc23d --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_entities_sync.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListEntities +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_ListEntities_sync] +from google.cloud import dataplex_v1 + + +def sample_list_entities(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListEntitiesRequest( + parent="parent_value", + view="FILESETS", + ) + + # Make the request + page_result = client.list_entities(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_ListEntities_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_partitions_async.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_partitions_async.py new file mode 100644 index 000000000000..e8db74646a21 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_partitions_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPartitions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_ListPartitions_async] +from google.cloud import dataplex_v1 + + +async def sample_list_partitions(): + # Create a client + client = dataplex_v1.MetadataServiceAsyncClient() + + # Initialize request argument(s) + request = dataplex_v1.ListPartitionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_partitions(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_ListPartitions_async] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_partitions_sync.py b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_partitions_sync.py new file mode 100644 index 000000000000..53706a12eb16 --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/dataplex_generated_dataplex_v1_metadata_service_list_partitions_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPartitions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-dataplex + + +# [START dataplex_generated_dataplex_v1_MetadataService_ListPartitions_sync] +from google.cloud import dataplex_v1 + + +def sample_list_partitions(): + # Create a client + client = dataplex_v1.MetadataServiceClient() + + # Initialize request argument(s) + request = dataplex_v1.ListPartitionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_partitions(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END dataplex_generated_dataplex_v1_MetadataService_ListPartitions_sync] diff --git a/packages/google-cloud-dataplex/samples/generated_samples/snippet_metadata_dataplex_v1.json b/packages/google-cloud-dataplex/samples/generated_samples/snippet_metadata_dataplex_v1.json new file mode 100644 index 000000000000..72afed9a644b --- /dev/null +++ b/packages/google-cloud-dataplex/samples/generated_samples/snippet_metadata_dataplex_v1.json @@ -0,0 +1,2670 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CancelJob" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_cancel_job_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CancelJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CancelJob" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_cancel_job_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CancelJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_asset_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateAsset_async", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_asset_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateAsset_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_lake_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateLake_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_lake_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateLake_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_task_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateTask_async", + "segments": [ + { + "end": 56, + "start": 27, + "type": "FULL" + }, + { + "end": 56, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 53, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 57, + "start": 54, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_task_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateTask_sync", + "segments": [ + { + "end": 56, + "start": 27, + "type": "FULL" + }, + { + "end": 56, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 53, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 57, + "start": 54, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_zone_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateZone_async", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 51, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 55, + "start": 52, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "CreateZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_create_zone_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_CreateZone_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 51, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 55, + "start": 52, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_asset_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteAsset_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_asset_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteAsset_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_lake_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteLake_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_lake_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteLake_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_task_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteTask_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_task_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteTask_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_zone_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteZone_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "DeleteZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_delete_zone_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_DeleteZone_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_asset_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetAsset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_asset_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetAsset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetJob" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_job_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetJob_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetJob" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_job_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetJob_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_lake_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetLake_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_lake_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetLake_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_task_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetTask_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_task_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetTask_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_zone_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetZone_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "GetZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_get_zone_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_GetZone_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListAssetActions" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListAssetActions_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListAssetActions" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_asset_actions_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListAssetActions_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListAssets" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_assets_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListAssets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListAssets" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_assets_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListAssets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListJobs" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_jobs_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListJobs_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListJobs" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_jobs_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListJobs_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListLakeActions" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListLakeActions_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListLakeActions" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_lake_actions_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListLakeActions_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListLakes" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_lakes_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListLakes_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListLakes" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_lakes_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListLakes_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListTasks" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_tasks_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListTasks_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListTasks" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_tasks_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListTasks_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListZoneActions" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListZoneActions_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListZoneActions" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_zone_actions_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListZoneActions_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListZones" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_zones_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListZones_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "ListZones" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_list_zones_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_ListZones_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_asset_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateAsset_async", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateAsset" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_asset_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateAsset_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_lake_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateLake_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateLake" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_lake_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateLake_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_task_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateTask_async", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 51, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 55, + "start": 52, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateTask" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_task_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateTask_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 51, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 55, + "start": 52, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_zone_async.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateZone_async", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataplexService" + }, + "shortName": "UpdateZone" + } + }, + "file": "dataplex_generated_dataplex_v1_dataplex_service_update_zone_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_DataplexService_UpdateZone_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "GetEntity" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_get_entity_async.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_GetEntity_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "GetEntity" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_get_entity_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_GetEntity_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "GetPartition" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_get_partition_async.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_GetPartition_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "GetPartition" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_get_partition_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_GetPartition_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "ListEntities" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_list_entities_async.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_ListEntities_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "ListEntities" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_list_entities_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_ListEntities_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "ListPartitions" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_list_partitions_async.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_ListPartitions_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "MetadataService" + }, + "shortName": "ListPartitions" + } + }, + "file": "dataplex_generated_dataplex_v1_metadata_service_list_partitions_sync.py", + "regionTag": "dataplex_generated_dataplex_v1_MetadataService_ListPartitions_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}