From 75656c11c8e9ff8e0ffc509476477db268aca08d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Feb 2022 12:00:46 -0500 Subject: [PATCH 1/4] docs: add generated snippets (#66) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 chore: use gapic-generator-python 0.63.2 PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * run the generator locally at commit 98aa690 Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- .../services/datastream/async_client.py | 592 +++++ .../services/datastream/client.py | 617 +++++ .../services/datastream/async_client.py | 510 ++++ .../services/datastream/client.py | 531 ++++ ...astream_create_connection_profile_async.py | 58 + ...tastream_create_connection_profile_sync.py | 58 + ...astream_create_private_connection_async.py | 54 + ...tastream_create_private_connection_sync.py | 54 + ...stream_v1_datastream_create_route_async.py | 55 + ...astream_v1_datastream_create_route_sync.py | 55 + ...tream_v1_datastream_create_stream_async.py | 56 + ...stream_v1_datastream_create_stream_sync.py | 56 + ...astream_delete_connection_profile_async.py | 49 + ...tastream_delete_connection_profile_sync.py | 49 + ...astream_delete_private_connection_async.py | 49 + ...tastream_delete_private_connection_sync.py | 49 + ...stream_v1_datastream_delete_route_async.py | 49 + ...astream_v1_datastream_delete_route_sync.py | 49 + ...tream_v1_datastream_delete_stream_async.py | 49 + ...stream_v1_datastream_delete_stream_sync.py | 49 + ...tream_discover_connection_profile_async.py | 54 + ...stream_discover_connection_profile_sync.py | 54 + ...am_v1_datastream_fetch_static_ips_async.py | 46 + ...eam_v1_datastream_fetch_static_ips_sync.py | 46 + ...datastream_get_connection_profile_async.py | 45 + ..._datastream_get_connection_profile_sync.py | 45 + ...datastream_get_private_connection_async.py | 45 + ..._datastream_get_private_connection_sync.py | 45 + ...atastream_v1_datastream_get_route_async.py | 45 + ...datastream_v1_datastream_get_route_sync.py | 45 + ...tastream_v1_datastream_get_stream_async.py | 45 + ...m_v1_datastream_get_stream_object_async.py | 45 + ...am_v1_datastream_get_stream_object_sync.py | 45 + ...atastream_v1_datastream_get_stream_sync.py | 45 + ...tastream_list_connection_profiles_async.py | 46 + ...atastream_list_connection_profiles_sync.py | 46 + ...tastream_list_private_connections_async.py | 46 + ...atastream_list_private_connections_sync.py | 46 + ...astream_v1_datastream_list_routes_async.py | 46 + ...tastream_v1_datastream_list_routes_sync.py | 46 + ...v1_datastream_list_stream_objects_async.py | 46 + ..._v1_datastream_list_stream_objects_sync.py | 46 + ...stream_v1_datastream_list_streams_async.py | 46 + ...astream_v1_datastream_list_streams_sync.py | 46 + ...1_datastream_lookup_stream_object_async.py | 50 + ...v1_datastream_lookup_stream_object_sync.py | 50 + ..._v1_datastream_start_backfill_job_async.py | 45 + ...m_v1_datastream_start_backfill_job_sync.py | 45 + ...m_v1_datastream_stop_backfill_job_async.py | 45 + ...am_v1_datastream_stop_backfill_job_sync.py | 45 + ...astream_update_connection_profile_async.py | 56 + ...tastream_update_connection_profile_sync.py | 56 + ...tream_v1_datastream_update_stream_async.py | 54 + ...stream_v1_datastream_update_stream_sync.py | 54 + ...astream_create_connection_profile_async.py | 58 + ...tastream_create_connection_profile_sync.py | 58 + ...astream_create_private_connection_async.py | 54 + ...tastream_create_private_connection_sync.py | 54 + ..._v1alpha1_datastream_create_route_async.py | 55 + ...m_v1alpha1_datastream_create_route_sync.py | 55 + ...v1alpha1_datastream_create_stream_async.py | 56 + ..._v1alpha1_datastream_create_stream_sync.py | 56 + ...astream_delete_connection_profile_async.py | 49 + ...tastream_delete_connection_profile_sync.py | 49 + ...astream_delete_private_connection_async.py | 49 + ...tastream_delete_private_connection_sync.py | 49 + ..._v1alpha1_datastream_delete_route_async.py | 49 + ...m_v1alpha1_datastream_delete_route_sync.py | 49 + ...v1alpha1_datastream_delete_stream_async.py | 49 + ..._v1alpha1_datastream_delete_stream_sync.py | 49 + ...tream_discover_connection_profile_async.py | 54 + ...stream_discover_connection_profile_sync.py | 54 + ..._v1alpha1_datastream_fetch_errors_async.py | 48 + ...m_v1alpha1_datastream_fetch_errors_sync.py | 48 + ...lpha1_datastream_fetch_static_ips_async.py | 46 + ...alpha1_datastream_fetch_static_ips_sync.py | 46 + ...datastream_get_connection_profile_async.py | 45 + ..._datastream_get_connection_profile_sync.py | 45 + ...datastream_get_private_connection_async.py | 45 + ..._datastream_get_private_connection_sync.py | 45 + ...eam_v1alpha1_datastream_get_route_async.py | 45 + ...ream_v1alpha1_datastream_get_route_sync.py | 45 + ...am_v1alpha1_datastream_get_stream_async.py | 45 + ...eam_v1alpha1_datastream_get_stream_sync.py | 45 + ...tastream_list_connection_profiles_async.py | 46 + ...atastream_list_connection_profiles_sync.py | 46 + ...tastream_list_private_connections_async.py | 46 + ...atastream_list_private_connections_sync.py | 46 + ...m_v1alpha1_datastream_list_routes_async.py | 46 + ...am_v1alpha1_datastream_list_routes_sync.py | 46 + ..._v1alpha1_datastream_list_streams_async.py | 46 + ...m_v1alpha1_datastream_list_streams_sync.py | 46 + ...astream_update_connection_profile_async.py | 56 + ...tastream_update_connection_profile_sync.py | 56 + ...v1alpha1_datastream_update_stream_async.py | 54 + ..._v1alpha1_datastream_update_stream_sync.py | 54 + .../snippet_metadata_datastream_v1.json | 2229 +++++++++++++++++ .../snippet_metadata_datastream_v1alpha1.json | 1873 ++++++++++++++ 98 files changed, 10882 insertions(+) create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py create mode 100644 samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py create mode 100644 samples/generated_samples/snippet_metadata_datastream_v1.json create mode 100644 samples/generated_samples/snippet_metadata_datastream_v1alpha1.json diff --git a/google/cloud/datastream_v1/services/datastream/async_client.py b/google/cloud/datastream_v1/services/datastream/async_client.py index fe0b497..4807b2a 100644 --- a/google/cloud/datastream_v1/services/datastream/async_client.py +++ b/google/cloud/datastream_v1/services/datastream/async_client.py @@ -228,6 +228,27 @@ async def list_connection_profiles( r"""Use this method to list connection profiles created in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_connection_profiles(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListConnectionProfilesRequest, dict]): The request object. Request message for listing @@ -309,6 +330,26 @@ async def get_connection_profile( r"""Use this method to get details about a connection profile. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = client.get_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetConnectionProfileRequest, dict]): The request object. Request message for getting a @@ -384,6 +425,39 @@ async def create_connection_profile( r"""Use this method to create a connection profile in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreateConnectionProfileRequest, dict]): The request object. Request message for creating a @@ -485,6 +559,37 @@ async def update_connection_profile( r"""Use this method to update the parameters of a connection profile. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_update_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.UpdateConnectionProfileRequest, dict]): The request object. Connection profile update message. @@ -581,6 +686,29 @@ async def delete_connection_profile( ) -> operation_async.AsyncOperation: r"""Use this method to delete a connection profile. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeleteConnectionProfileRequest, dict]): The request object. Request message for deleting a @@ -676,6 +804,35 @@ async def discover_connection_profile( returns children data objects of a parent data object that's optionally supplied in the request. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_discover_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + full_hierarchy=True, + parent="parent_value", + ) + + # Make the request + response = client.discover_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DiscoverConnectionProfileRequest, dict]): The request object. Request message for 'discover' @@ -725,6 +882,27 @@ async def list_streams( r"""Use this method to list streams in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_streams(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListStreamsRequest, dict]): The request object. Request message for listing streams. @@ -803,6 +981,25 @@ async def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetStreamRequest, dict]): The request object. Request message for getting a @@ -876,6 +1073,36 @@ async def create_stream( ) -> operation_async.AsyncOperation: r"""Use this method to create a stream. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreateStreamRequest, dict]): The request object. Request message for creating a @@ -977,6 +1204,35 @@ async def update_stream( r"""Use this method to update the configuration of a stream. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_update_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.UpdateStreamRequest, dict]): The request object. Request message for updating a @@ -1075,6 +1331,29 @@ async def delete_stream( ) -> operation_async.AsyncOperation: r"""Use this method to delete a stream. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeleteStreamRequest, dict]): The request object. Request message for deleting a @@ -1167,6 +1446,25 @@ async def get_stream_object( ) -> datastream_resources.StreamObject: r"""Use this method to get details about a stream object. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_stream_object(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamObjectRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream_object(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetStreamObjectRequest, dict]): The request object. Request for fetching a specific @@ -1238,6 +1536,31 @@ async def lookup_stream_object( r"""Use this method to look up a stream object by its source object identifier. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_lookup_stream_object(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + source_object_identifier = datastream_v1.SourceObjectIdentifier() + source_object_identifier.oracle_identifier.schema = "schema_value" + source_object_identifier.oracle_identifier.table = "table_value" + + request = datastream_v1.LookupStreamObjectRequest( + parent="parent_value", + source_object_identifier=source_object_identifier, + ) + + # Make the request + response = client.lookup_stream_object(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.LookupStreamObjectRequest, dict]): The request object. Request for looking up a specific @@ -1289,6 +1612,27 @@ async def list_stream_objects( r"""Use this method to list the objects of a specific stream. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_stream_objects(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamObjectsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_stream_objects(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListStreamObjectsRequest, dict]): The request object. Request for listing all objects for @@ -1370,6 +1714,26 @@ async def start_backfill_job( r"""Use this method to start a backfill job for the specified stream object. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_start_backfill_job(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.StartBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = client.start_backfill_job(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.StartBackfillJobRequest, dict]): The request object. Request for manually initiating a @@ -1444,6 +1808,26 @@ async def stop_backfill_job( r"""Use this method to stop a backfill job for the specified stream object. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_stop_backfill_job(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.StopBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = client.stop_backfill_job(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.StopBackfillJobRequest, dict]): The request object. Request for manually stopping a @@ -1517,6 +1901,27 @@ async def fetch_static_ips( r"""The FetchStaticIps API call exposes the static IP addresses used by Datastream. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_fetch_static_ips(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.FetchStaticIpsRequest, dict]): The request object. Request message for 'FetchStaticIps' @@ -1601,6 +2006,35 @@ async def create_private_connection( r"""Use this method to create a private connectivity configuration. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + private_connection = datastream_v1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreatePrivateConnectionRequest, dict]): The request object. Request for creating a private @@ -1701,6 +2135,26 @@ async def get_private_connection( r"""Use this method to get details about a private connectivity configuration. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = client.get_private_connection(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetPrivateConnectionRequest, dict]): The request object. Request to get a private connection @@ -1775,6 +2229,27 @@ async def list_private_connections( r"""Use this method to list private connectivity configurations in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_private_connections(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListPrivateConnectionsRequest, dict]): The request object. Request for listing private @@ -1857,6 +2332,30 @@ async def delete_private_connection( r"""Use this method to delete a private connectivity configuration. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeletePrivateConnectionRequest, dict]): The request object. Request to delete a private @@ -1952,6 +2451,36 @@ async def create_route( r"""Use this method to create a route for a private connectivity configuration in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + route = datastream_v1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreateRouteRequest, dict]): The request object. Route creation request. @@ -2048,6 +2577,25 @@ async def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = client.get_route(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetRouteRequest, dict]): The request object. Route get request. @@ -2121,6 +2669,27 @@ async def list_routes( r"""Use this method to list routes created for a private connectivity configuration in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_routes(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListRoutesRequest, dict]): The request object. Route list request. @@ -2199,6 +2768,29 @@ async def delete_route( ) -> operation_async.AsyncOperation: r"""Use this method to delete a route. + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeleteRouteRequest, dict]): The request object. Route deletion request. diff --git a/google/cloud/datastream_v1/services/datastream/client.py b/google/cloud/datastream_v1/services/datastream/client.py index 3520a34..c1dae67 100644 --- a/google/cloud/datastream_v1/services/datastream/client.py +++ b/google/cloud/datastream_v1/services/datastream/client.py @@ -505,6 +505,28 @@ def list_connection_profiles( r"""Use this method to list connection profiles created in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_connection_profiles(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListConnectionProfilesRequest, dict]): The request object. Request message for listing @@ -586,6 +608,27 @@ def get_connection_profile( r"""Use this method to get details about a connection profile. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = client.get_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetConnectionProfileRequest, dict]): The request object. Request message for getting a @@ -661,6 +704,40 @@ def create_connection_profile( r"""Use this method to create a connection profile in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreateConnectionProfileRequest, dict]): The request object. Request message for creating a @@ -764,6 +841,38 @@ def update_connection_profile( r"""Use this method to update the parameters of a connection profile. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_update_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.UpdateConnectionProfileRequest, dict]): The request object. Connection profile update message. @@ -862,6 +971,30 @@ def delete_connection_profile( ) -> operation.Operation: r"""Use this method to delete a connection profile. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeleteConnectionProfileRequest, dict]): The request object. Request message for deleting a @@ -959,6 +1092,36 @@ def discover_connection_profile( returns children data objects of a parent data object that's optionally supplied in the request. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_discover_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + full_hierarchy=True, + parent="parent_value", + ) + + # Make the request + response = client.discover_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DiscoverConnectionProfileRequest, dict]): The request object. Request message for 'discover' @@ -1011,6 +1174,28 @@ def list_streams( r"""Use this method to list streams in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_streams(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListStreamsRequest, dict]): The request object. Request message for listing streams. @@ -1089,6 +1274,26 @@ def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetStreamRequest, dict]): The request object. Request message for getting a @@ -1162,6 +1367,37 @@ def create_stream( ) -> operation.Operation: r"""Use this method to create a stream. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreateStreamRequest, dict]): The request object. Request message for creating a @@ -1263,6 +1499,36 @@ def update_stream( r"""Use this method to update the configuration of a stream. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_update_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.UpdateStreamRequest, dict]): The request object. Request message for updating a @@ -1361,6 +1627,30 @@ def delete_stream( ) -> operation.Operation: r"""Use this method to delete a stream. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeleteStreamRequest, dict]): The request object. Request message for deleting a @@ -1453,6 +1743,26 @@ def get_stream_object( ) -> datastream_resources.StreamObject: r"""Use this method to get details about a stream object. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_stream_object(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamObjectRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream_object(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetStreamObjectRequest, dict]): The request object. Request for fetching a specific @@ -1524,6 +1834,32 @@ def lookup_stream_object( r"""Use this method to look up a stream object by its source object identifier. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_lookup_stream_object(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + source_object_identifier = datastream_v1.SourceObjectIdentifier() + source_object_identifier.oracle_identifier.schema = "schema_value" + source_object_identifier.oracle_identifier.table = "table_value" + + request = datastream_v1.LookupStreamObjectRequest( + parent="parent_value", + source_object_identifier=source_object_identifier, + ) + + # Make the request + response = client.lookup_stream_object(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.LookupStreamObjectRequest, dict]): The request object. Request for looking up a specific @@ -1576,6 +1912,28 @@ def list_stream_objects( r"""Use this method to list the objects of a specific stream. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_stream_objects(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamObjectsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_stream_objects(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListStreamObjectsRequest, dict]): The request object. Request for listing all objects for @@ -1657,6 +2015,27 @@ def start_backfill_job( r"""Use this method to start a backfill job for the specified stream object. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_start_backfill_job(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.StartBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = client.start_backfill_job(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.StartBackfillJobRequest, dict]): The request object. Request for manually initiating a @@ -1731,6 +2110,27 @@ def stop_backfill_job( r"""Use this method to stop a backfill job for the specified stream object. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_stop_backfill_job(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.StopBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = client.stop_backfill_job(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.StopBackfillJobRequest, dict]): The request object. Request for manually stopping a @@ -1804,6 +2204,28 @@ def fetch_static_ips( r"""The FetchStaticIps API call exposes the static IP addresses used by Datastream. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_fetch_static_ips(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.FetchStaticIpsRequest, dict]): The request object. Request message for 'FetchStaticIps' @@ -1888,6 +2310,36 @@ def create_private_connection( r"""Use this method to create a private connectivity configuration. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + private_connection = datastream_v1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreatePrivateConnectionRequest, dict]): The request object. Request for creating a private @@ -1990,6 +2442,27 @@ def get_private_connection( r"""Use this method to get details about a private connectivity configuration. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = client.get_private_connection(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetPrivateConnectionRequest, dict]): The request object. Request to get a private connection @@ -2064,6 +2537,28 @@ def list_private_connections( r"""Use this method to list private connectivity configurations in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_private_connections(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListPrivateConnectionsRequest, dict]): The request object. Request for listing private @@ -2146,6 +2641,31 @@ def delete_private_connection( r"""Use this method to delete a private connectivity configuration. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeletePrivateConnectionRequest, dict]): The request object. Request to delete a private @@ -2243,6 +2763,37 @@ def create_route( r"""Use this method to create a route for a private connectivity configuration in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_create_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + route = datastream_v1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.CreateRouteRequest, dict]): The request object. Route creation request. @@ -2339,6 +2890,26 @@ def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_get_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = client.get_route(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.GetRouteRequest, dict]): The request object. Route get request. @@ -2412,6 +2983,28 @@ def list_routes( r"""Use this method to list routes created for a private connectivity configuration in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_list_routes(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1.types.ListRoutesRequest, dict]): The request object. Route list request. @@ -2490,6 +3083,30 @@ def delete_route( ) -> operation.Operation: r"""Use this method to delete a route. + + .. code-block:: + + from google.cloud import datastream_v1 + + def sample_delete_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1.types.DeleteRouteRequest, dict]): The request object. Route deletion request. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/async_client.py b/google/cloud/datastream_v1alpha1/services/datastream/async_client.py index 7d5c834..11eb3df 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/async_client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/async_client.py @@ -224,6 +224,27 @@ async def list_connection_profiles( r"""Use this method to list connection profiles created in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_connection_profiles(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListConnectionProfilesRequest, dict]): The request object. @@ -302,6 +323,26 @@ async def get_connection_profile( r"""Use this method to get details about a connection profile. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = client.get_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetConnectionProfileRequest, dict]): The request object. @@ -373,6 +414,39 @@ async def create_connection_profile( r"""Use this method to create a connection profile in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreateConnectionProfileRequest, dict]): The request object. @@ -473,6 +547,37 @@ async def update_connection_profile( r"""Use this method to update the parameters of a connection profile. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_update_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.UpdateConnectionProfileRequest, dict]): The request object. @@ -569,6 +674,29 @@ async def delete_connection_profile( ) -> operation_async.AsyncOperation: r"""Use this method to delete a connection profile.. + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeleteConnectionProfileRequest, dict]): The request object. @@ -663,6 +791,35 @@ async def discover_connection_profile( returns children data objects under a parent data object that's optionally supplied in the request. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_discover_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + recursive=True, + parent="parent_value", + ) + + # Make the request + response = client.discover_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DiscoverConnectionProfileRequest, dict]): The request object. Request message for 'discover' @@ -712,6 +869,27 @@ async def list_streams( r"""Use this method to list streams in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_streams(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListStreamsRequest, dict]): The request object. @@ -789,6 +967,25 @@ async def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetStreamRequest, dict]): The request object. @@ -859,6 +1056,36 @@ async def create_stream( ) -> operation_async.AsyncOperation: r"""Use this method to create a stream. + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreateStreamRequest, dict]): The request object. @@ -957,6 +1184,35 @@ async def update_stream( r"""Use this method to update the configuration of a stream. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_update_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.UpdateStreamRequest, dict]): The request object. @@ -1052,6 +1308,29 @@ async def delete_stream( ) -> operation_async.AsyncOperation: r"""Use this method to delete a stream. + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeleteStreamRequest, dict]): The request object. @@ -1143,6 +1422,29 @@ async def fetch_errors( r"""Use this method to fetch any errors associated with a stream. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_fetch_errors(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchErrorsRequest( + ) + + # Make the request + operation = client.fetch_errors(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.FetchErrorsRequest, dict]): The request object. Request message for 'FetchErrors' @@ -1207,6 +1509,27 @@ async def fetch_static_ips( children data objects under a parent data object that's optionally supplied in the request. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_fetch_static_ips(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.FetchStaticIpsRequest, dict]): The request object. Request message for 'FetchStaticIps' @@ -1290,6 +1613,35 @@ async def create_private_connection( r"""Use this method to create a private connectivity configuration. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + private_connection = datastream_v1alpha1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1alpha1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreatePrivateConnectionRequest, dict]): The request object. @@ -1389,6 +1741,26 @@ async def get_private_connection( r"""Use this method to get details about a private connectivity configuration. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = client.get_private_connection(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetPrivateConnectionRequest, dict]): The request object. @@ -1462,6 +1834,27 @@ async def list_private_connections( r"""Use this method to list private connectivity configurations in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_private_connections(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListPrivateConnectionsRequest, dict]): The request object. @@ -1541,6 +1934,30 @@ async def delete_private_connection( r"""Use this method to delete a private connectivity configuration. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeletePrivateConnectionRequest, dict]): The request object. @@ -1635,6 +2052,36 @@ async def create_route( r"""Use this method to create a route for a private connectivity in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + route = datastream_v1alpha1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1alpha1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreateRouteRequest, dict]): The request object. route creation request @@ -1732,6 +2179,25 @@ async def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = client.get_route(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetRouteRequest, dict]): The request object. route get request @@ -1805,6 +2271,27 @@ async def list_routes( r"""Use this method to list routes created for a private connectivity in a project and location. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_routes(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListRoutesRequest, dict]): The request object. route list request @@ -1883,6 +2370,29 @@ async def delete_route( ) -> operation_async.AsyncOperation: r"""Use this method to delete a route. + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeleteRouteRequest, dict]): The request object. route deletion request diff --git a/google/cloud/datastream_v1alpha1/services/datastream/client.py b/google/cloud/datastream_v1alpha1/services/datastream/client.py index 53794fa..b2455c5 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/client.py @@ -472,6 +472,28 @@ def list_connection_profiles( r"""Use this method to list connection profiles created in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_connection_profiles(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListConnectionProfilesRequest, dict]): The request object. @@ -550,6 +572,27 @@ def get_connection_profile( r"""Use this method to get details about a connection profile. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = client.get_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetConnectionProfileRequest, dict]): The request object. @@ -621,6 +664,40 @@ def create_connection_profile( r"""Use this method to create a connection profile in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreateConnectionProfileRequest, dict]): The request object. @@ -723,6 +800,38 @@ def update_connection_profile( r"""Use this method to update the parameters of a connection profile. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_update_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.UpdateConnectionProfileRequest, dict]): The request object. @@ -821,6 +930,30 @@ def delete_connection_profile( ) -> operation.Operation: r"""Use this method to delete a connection profile.. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeleteConnectionProfileRequest, dict]): The request object. @@ -917,6 +1050,36 @@ def discover_connection_profile( returns children data objects under a parent data object that's optionally supplied in the request. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_discover_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + recursive=True, + parent="parent_value", + ) + + # Make the request + response = client.discover_connection_profile(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DiscoverConnectionProfileRequest, dict]): The request object. Request message for 'discover' @@ -969,6 +1132,28 @@ def list_streams( r"""Use this method to list streams in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_streams(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListStreamsRequest, dict]): The request object. @@ -1046,6 +1231,26 @@ def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetStreamRequest, dict]): The request object. @@ -1116,6 +1321,37 @@ def create_stream( ) -> operation.Operation: r"""Use this method to create a stream. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreateStreamRequest, dict]): The request object. @@ -1214,6 +1450,36 @@ def update_stream( r"""Use this method to update the configuration of a stream. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_update_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.UpdateStreamRequest, dict]): The request object. @@ -1309,6 +1575,30 @@ def delete_stream( ) -> operation.Operation: r"""Use this method to delete a stream. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeleteStreamRequest, dict]): The request object. @@ -1400,6 +1690,30 @@ def fetch_errors( r"""Use this method to fetch any errors associated with a stream. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_fetch_errors(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchErrorsRequest( + ) + + # Make the request + operation = client.fetch_errors(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.FetchErrorsRequest, dict]): The request object. Request message for 'FetchErrors' @@ -1465,6 +1779,28 @@ def fetch_static_ips( children data objects under a parent data object that's optionally supplied in the request. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_fetch_static_ips(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.FetchStaticIpsRequest, dict]): The request object. Request message for 'FetchStaticIps' @@ -1548,6 +1884,36 @@ def create_private_connection( r"""Use this method to create a private connectivity configuration. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + private_connection = datastream_v1alpha1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1alpha1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreatePrivateConnectionRequest, dict]): The request object. @@ -1649,6 +2015,27 @@ def get_private_connection( r"""Use this method to get details about a private connectivity configuration. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = client.get_private_connection(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetPrivateConnectionRequest, dict]): The request object. @@ -1722,6 +2109,28 @@ def list_private_connections( r"""Use this method to list private connectivity configurations in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_private_connections(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListPrivateConnectionsRequest, dict]): The request object. @@ -1801,6 +2210,31 @@ def delete_private_connection( r"""Use this method to delete a private connectivity configuration. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeletePrivateConnectionRequest, dict]): The request object. @@ -1897,6 +2331,37 @@ def create_route( r"""Use this method to create a route for a private connectivity in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_create_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + route = datastream_v1alpha1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1alpha1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.CreateRouteRequest, dict]): The request object. route creation request @@ -1994,6 +2459,26 @@ def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_get_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = client.get_route(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.GetRouteRequest, dict]): The request object. route get request @@ -2067,6 +2552,28 @@ def list_routes( r"""Use this method to list routes created for a private connectivity in a project and location. + + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_list_routes(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.ListRoutesRequest, dict]): The request object. route list request @@ -2145,6 +2652,30 @@ def delete_route( ) -> operation.Operation: r"""Use this method to delete a route. + + .. code-block:: + + from google.cloud import datastream_v1alpha1 + + def sample_delete_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.datastream_v1alpha1.types.DeleteRouteRequest, dict]): The request object. route deletion request diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py new file mode 100644 index 0000000..b0c1c08 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py @@ -0,0 +1,58 @@ +# -*- 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 CreateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_async] +from google.cloud import datastream_v1 + + +async def sample_create_connection_profile(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py new file mode 100644 index 0000000..1fdcf33 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py @@ -0,0 +1,58 @@ +# -*- 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 CreateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_sync] +from google.cloud import datastream_v1 + + +def sample_create_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_async.py new file mode 100644 index 0000000..4daad35 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_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 CreatePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_async] +from google.cloud import datastream_v1 + + +async def sample_create_private_connection(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + private_connection = datastream_v1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_sync.py new file mode 100644 index 0000000..5f55360 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_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 CreatePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_sync] +from google.cloud import datastream_v1 + + +def sample_create_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + private_connection = datastream_v1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_async.py new file mode 100644 index 0000000..759222f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_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 CreateRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreateRoute_async] +from google.cloud import datastream_v1 + + +async def sample_create_route(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + route = datastream_v1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreateRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_sync.py new file mode 100644 index 0000000..d0044ff --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_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 CreateRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreateRoute_sync] +from google.cloud import datastream_v1 + + +def sample_create_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + route = datastream_v1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreateRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py new file mode 100644 index 0000000..81845fb --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py @@ -0,0 +1,56 @@ +# -*- 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 CreateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreateStream_async] +from google.cloud import datastream_v1 + + +async def sample_create_stream(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py new file mode 100644 index 0000000..81ad5b8 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py @@ -0,0 +1,56 @@ +# -*- 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 CreateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_CreateStream_sync] +from google.cloud import datastream_v1 + + +def sample_create_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_CreateStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py new file mode 100644 index 0000000..6598134 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_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 DeleteConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_async] +from google.cloud import datastream_v1 + + +async def sample_delete_connection_profile(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py new file mode 100644 index 0000000..0450450 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_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 DeleteConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_sync] +from google.cloud import datastream_v1 + + +def sample_delete_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_async.py new file mode 100644 index 0000000..5b8420d --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_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 DeletePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_async] +from google.cloud import datastream_v1 + + +async def sample_delete_private_connection(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py new file mode 100644 index 0000000..52d32b9 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_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 DeletePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_sync] +from google.cloud import datastream_v1 + + +def sample_delete_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_async.py new file mode 100644 index 0000000..1341681 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_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 DeleteRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeleteRoute_async] +from google.cloud import datastream_v1 + + +async def sample_delete_route(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeleteRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_sync.py new file mode 100644 index 0000000..ab73fd8 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_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 DeleteRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeleteRoute_sync] +from google.cloud import datastream_v1 + + +def sample_delete_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeleteRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_async.py new file mode 100644 index 0000000..8205581 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_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 DeleteStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeleteStream_async] +from google.cloud import datastream_v1 + + +async def sample_delete_stream(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeleteStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_sync.py new file mode 100644 index 0000000..3beb9fb --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_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 DeleteStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DeleteStream_sync] +from google.cloud import datastream_v1 + + +def sample_delete_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DeleteStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py new file mode 100644 index 0000000..b9135bf --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_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 DiscoverConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_async] +from google.cloud import datastream_v1 + + +async def sample_discover_connection_profile(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + full_hierarchy=True, + parent="parent_value", + ) + + # Make the request + response = await client.discover_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py new file mode 100644 index 0000000..d5f3053 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_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 DiscoverConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_sync] +from google.cloud import datastream_v1 + + +def sample_discover_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + full_hierarchy=True, + parent="parent_value", + ) + + # Make the request + response = client.discover_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py new file mode 100644 index 0000000..b0b5166 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_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 FetchStaticIps +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_FetchStaticIps_async] +from google.cloud import datastream_v1 + + +async def sample_fetch_static_ips(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_FetchStaticIps_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py new file mode 100644 index 0000000..a551558 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_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 FetchStaticIps +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_FetchStaticIps_sync] +from google.cloud import datastream_v1 + + +def sample_fetch_static_ips(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_FetchStaticIps_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_async.py new file mode 100644 index 0000000..8abace7 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_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 GetConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetConnectionProfile_async] +from google.cloud import datastream_v1 + + +async def sample_get_connection_profile(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = await client.get_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py new file mode 100644 index 0000000..77dd7b7 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_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 GetConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetConnectionProfile_sync] +from google.cloud import datastream_v1 + + +def sample_get_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = client.get_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_async.py new file mode 100644 index 0000000..1844b08 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_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 GetPrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetPrivateConnection_async] +from google.cloud import datastream_v1 + + +async def sample_get_private_connection(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = await client.get_private_connection(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetPrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_sync.py new file mode 100644 index 0000000..2cdd056 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_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 GetPrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetPrivateConnection_sync] +from google.cloud import datastream_v1 + + +def sample_get_private_connection(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = client.get_private_connection(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetPrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_async.py new file mode 100644 index 0000000..a7b8970 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_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 GetRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetRoute_async] +from google.cloud import datastream_v1 + + +async def sample_get_route(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = await client.get_route(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_sync.py new file mode 100644 index 0000000..933b37b --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_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 GetRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetRoute_sync] +from google.cloud import datastream_v1 + + +def sample_get_route(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = client.get_route(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_async.py new file mode 100644 index 0000000..9285b1a --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_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 GetStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetStream_async] +from google.cloud import datastream_v1 + + +async def sample_get_stream(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = await client.get_stream(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_async.py new file mode 100644 index 0000000..66a3c1e --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_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 GetStreamObject +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetStreamObject_async] +from google.cloud import datastream_v1 + + +async def sample_get_stream_object(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamObjectRequest( + name="name_value", + ) + + # Make the request + response = await client.get_stream_object(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetStreamObject_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_sync.py new file mode 100644 index 0000000..2696872 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_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 GetStreamObject +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetStreamObject_sync] +from google.cloud import datastream_v1 + + +def sample_get_stream_object(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamObjectRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream_object(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetStreamObject_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_sync.py new file mode 100644 index 0000000..1da1e45 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_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 GetStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_GetStream_sync] +from google.cloud import datastream_v1 + + +def sample_get_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_GetStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py new file mode 100644 index 0000000..2f0b579 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_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 ListConnectionProfiles +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_async] +from google.cloud import datastream_v1 + + +async def sample_list_connection_profiles(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py new file mode 100644 index 0000000..5b398f0 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_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 ListConnectionProfiles +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_sync] +from google.cloud import datastream_v1 + + +def sample_list_connection_profiles(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_async.py new file mode 100644 index 0000000..5a59734 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_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 ListPrivateConnections +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListPrivateConnections_async] +from google.cloud import datastream_v1 + + +async def sample_list_private_connections(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListPrivateConnections_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_sync.py new file mode 100644 index 0000000..c1657dc --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_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 ListPrivateConnections +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListPrivateConnections_sync] +from google.cloud import datastream_v1 + + +def sample_list_private_connections(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListPrivateConnections_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_async.py new file mode 100644 index 0000000..be5b53c --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_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 ListRoutes +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListRoutes_async] +from google.cloud import datastream_v1 + + +async def sample_list_routes(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListRoutes_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_sync.py new file mode 100644 index 0000000..5c0d84f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_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 ListRoutes +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListRoutes_sync] +from google.cloud import datastream_v1 + + +def sample_list_routes(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListRoutes_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_async.py new file mode 100644 index 0000000..76fec3b --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_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 ListStreamObjects +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListStreamObjects_async] +from google.cloud import datastream_v1 + + +async def sample_list_stream_objects(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamObjectsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_stream_objects(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListStreamObjects_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py new file mode 100644 index 0000000..293fea2 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_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 ListStreamObjects +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListStreamObjects_sync] +from google.cloud import datastream_v1 + + +def sample_list_stream_objects(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamObjectsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_stream_objects(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListStreamObjects_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_async.py new file mode 100644 index 0000000..c9a58d3 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_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 ListStreams +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListStreams_async] +from google.cloud import datastream_v1 + + +async def sample_list_streams(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListStreams_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_sync.py new file mode 100644 index 0000000..5b4b832 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_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 ListStreams +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_ListStreams_sync] +from google.cloud import datastream_v1 + + +def sample_list_streams(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1_Datastream_ListStreams_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py new file mode 100644 index 0000000..767819d --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_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 LookupStreamObject +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_LookupStreamObject_async] +from google.cloud import datastream_v1 + + +async def sample_lookup_stream_object(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + source_object_identifier = datastream_v1.SourceObjectIdentifier() + source_object_identifier.oracle_identifier.schema = "schema_value" + source_object_identifier.oracle_identifier.table = "table_value" + + request = datastream_v1.LookupStreamObjectRequest( + parent="parent_value", + source_object_identifier=source_object_identifier, + ) + + # Make the request + response = await client.lookup_stream_object(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_LookupStreamObject_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py new file mode 100644 index 0000000..5c7a5af --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_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 LookupStreamObject +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_LookupStreamObject_sync] +from google.cloud import datastream_v1 + + +def sample_lookup_stream_object(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + source_object_identifier = datastream_v1.SourceObjectIdentifier() + source_object_identifier.oracle_identifier.schema = "schema_value" + source_object_identifier.oracle_identifier.table = "table_value" + + request = datastream_v1.LookupStreamObjectRequest( + parent="parent_value", + source_object_identifier=source_object_identifier, + ) + + # Make the request + response = client.lookup_stream_object(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_LookupStreamObject_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_async.py new file mode 100644 index 0000000..f8617ec --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_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 StartBackfillJob +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_StartBackfillJob_async] +from google.cloud import datastream_v1 + + +async def sample_start_backfill_job(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.StartBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = await client.start_backfill_job(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_StartBackfillJob_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py new file mode 100644 index 0000000..538d1d4 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_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 StartBackfillJob +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_StartBackfillJob_sync] +from google.cloud import datastream_v1 + + +def sample_start_backfill_job(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.StartBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = client.start_backfill_job(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_StartBackfillJob_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py new file mode 100644 index 0000000..10107b1 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_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 StopBackfillJob +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_StopBackfillJob_async] +from google.cloud import datastream_v1 + + +async def sample_stop_backfill_job(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1.StopBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = await client.stop_backfill_job(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_StopBackfillJob_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py new file mode 100644 index 0000000..ee770e0 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_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 StopBackfillJob +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_StopBackfillJob_sync] +from google.cloud import datastream_v1 + + +def sample_stop_backfill_job(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1.StopBackfillJobRequest( + object_="object__value", + ) + + # Make the request + response = client.stop_backfill_job(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_StopBackfillJob_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py new file mode 100644 index 0000000..879698f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py @@ -0,0 +1,56 @@ +# -*- 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 UpdateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_async] +from google.cloud import datastream_v1 + + +async def sample_update_connection_profile(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py new file mode 100644 index 0000000..4d075f1 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py @@ -0,0 +1,56 @@ +# -*- 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 UpdateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_sync] +from google.cloud import datastream_v1 + + +def sample_update_connection_profile(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_async.py new file mode 100644 index 0000000..a4b2b09 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_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 UpdateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_UpdateStream_async] +from google.cloud import datastream_v1 + + +async def sample_update_stream(): + # Create a client + client = datastream_v1.DatastreamAsyncClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_UpdateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_sync.py new file mode 100644 index 0000000..33ac5bd --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_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 UpdateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1_Datastream_UpdateStream_sync] +from google.cloud import datastream_v1 + + +def sample_update_stream(): + # Create a client + client = datastream_v1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile = "source_connection_profile_value" + stream.destination_config.destination_connection_profile = "destination_connection_profile_value" + + request = datastream_v1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1_Datastream_UpdateStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py new file mode 100644 index 0000000..2740679 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py @@ -0,0 +1,58 @@ +# -*- 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 CreateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_create_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py new file mode 100644 index 0000000..bb1f369 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py @@ -0,0 +1,58 @@ +# -*- 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 CreateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_create_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.CreateConnectionProfileRequest( + parent="parent_value", + connection_profile_id="connection_profile_id_value", + connection_profile=connection_profile, + ) + + # Make the request + operation = client.create_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py new file mode 100644 index 0000000..06efebb --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_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 CreatePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_create_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + private_connection = datastream_v1alpha1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1alpha1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py new file mode 100644 index 0000000..0bc366f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_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 CreatePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_create_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + private_connection = datastream_v1alpha1.PrivateConnection() + private_connection.display_name = "display_name_value" + + request = datastream_v1alpha1.CreatePrivateConnectionRequest( + parent="parent_value", + private_connection_id="private_connection_id_value", + private_connection=private_connection, + ) + + # Make the request + operation = client.create_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_async.py new file mode 100644 index 0000000..45e1a93 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_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 CreateRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_create_route(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + route = datastream_v1alpha1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1alpha1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py new file mode 100644 index 0000000..6e72888 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_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 CreateRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_create_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + route = datastream_v1alpha1.Route() + route.display_name = "display_name_value" + route.destination_address = "destination_address_value" + + request = datastream_v1alpha1.CreateRouteRequest( + parent="parent_value", + route_id="route_id_value", + route=route, + ) + + # Make the request + operation = client.create_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py new file mode 100644 index 0000000..93d8a7a --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py @@ -0,0 +1,56 @@ +# -*- 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 CreateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreateStream_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_create_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py new file mode 100644 index 0000000..60f9e55 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py @@ -0,0 +1,56 @@ +# -*- 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 CreateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_CreateStream_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_create_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.CreateStreamRequest( + parent="parent_value", + stream_id="stream_id_value", + stream=stream, + ) + + # Make the request + operation = client.create_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_CreateStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py new file mode 100644 index 0000000..c07a0a6 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_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 DeleteConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_delete_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py new file mode 100644 index 0000000..c367b85 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_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 DeleteConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_delete_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteConnectionProfileRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py new file mode 100644 index 0000000..c6103ee --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_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 DeletePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_delete_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py new file mode 100644 index 0000000..93d0a0d --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_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 DeletePrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_delete_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeletePrivateConnectionRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_private_connection(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py new file mode 100644 index 0000000..169b54e --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_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 DeleteRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_delete_route(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py new file mode 100644 index 0000000..da2b14f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_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 DeleteRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_delete_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteRouteRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_route(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py new file mode 100644 index 0000000..33b625f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_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 DeleteStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_delete_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py new file mode 100644 index 0000000..5e37a7a --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_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 DeleteStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_delete_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.DeleteStreamRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py new file mode 100644 index 0000000..ca37dd5 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_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 DiscoverConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_discover_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + recursive=True, + parent="parent_value", + ) + + # Make the request + response = await client.discover_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py new file mode 100644 index 0000000..d9002fb --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_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 DiscoverConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_discover_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.DiscoverConnectionProfileRequest( + connection_profile=connection_profile, + recursive=True, + parent="parent_value", + ) + + # Make the request + response = client.discover_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py new file mode 100644 index 0000000..a927751 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_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 FetchErrors +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_fetch_errors(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchErrorsRequest( + ) + + # Make the request + operation = client.fetch_errors(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py new file mode 100644 index 0000000..596168f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_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 FetchErrors +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_fetch_errors(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchErrorsRequest( + ) + + # Make the request + operation = client.fetch_errors(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py new file mode 100644 index 0000000..f89034e --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_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 FetchStaticIps +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_fetch_static_ips(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py new file mode 100644 index 0000000..577e8de --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_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 FetchStaticIps +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_fetch_static_ips(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.FetchStaticIpsRequest( + name="name_value", + ) + + # Make the request + page_result = client.fetch_static_ips(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py new file mode 100644 index 0000000..abbcf29 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_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 GetConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_get_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = await client.get_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py new file mode 100644 index 0000000..71e21d2 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_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 GetConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_get_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetConnectionProfileRequest( + name="name_value", + ) + + # Make the request + response = client.get_connection_profile(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py new file mode 100644 index 0000000..156409e --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_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 GetPrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_get_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = await client.get_private_connection(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py new file mode 100644 index 0000000..a657fe5 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_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 GetPrivateConnection +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_get_private_connection(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetPrivateConnectionRequest( + name="name_value", + ) + + # Make the request + response = client.get_private_connection(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_async.py new file mode 100644 index 0000000..f882cbe --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_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 GetRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetRoute_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_get_route(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = await client.get_route(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py new file mode 100644 index 0000000..d522bb3 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_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 GetRoute +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetRoute_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_get_route(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetRouteRequest( + name="name_value", + ) + + # Make the request + response = client.get_route(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py new file mode 100644 index 0000000..4c5c4f9 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_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 GetStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetStream_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_get_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = await client.get_stream(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py new file mode 100644 index 0000000..fbfcfa9 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_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 GetStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_GetStream_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_get_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.GetStreamRequest( + name="name_value", + ) + + # Make the request + response = client.get_stream(request=request) + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_GetStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py new file mode 100644 index 0000000..90a8511 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_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 ListConnectionProfiles +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_list_connection_profiles(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py new file mode 100644 index 0000000..59ca172 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_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 ListConnectionProfiles +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_list_connection_profiles(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListConnectionProfilesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_connection_profiles(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py new file mode 100644 index 0000000..a276107 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_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 ListPrivateConnections +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_list_private_connections(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py new file mode 100644 index 0000000..3bc6db5 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_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 ListPrivateConnections +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_list_private_connections(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListPrivateConnectionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_private_connections(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py new file mode 100644 index 0000000..59eb945 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_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 ListRoutes +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_list_routes(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py new file mode 100644 index 0000000..bdec495 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_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 ListRoutes +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_list_routes(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListRoutesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py new file mode 100644 index 0000000..dcea80c --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_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 ListStreams +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListStreams_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_list_streams(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListStreams_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py new file mode 100644 index 0000000..2997158 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_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 ListStreams +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_ListStreams_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_list_streams(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + request = datastream_v1alpha1.ListStreamsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_streams(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_ListStreams_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py new file mode 100644 index 0000000..8368631 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py @@ -0,0 +1,56 @@ +# -*- 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 UpdateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_update_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py new file mode 100644 index 0000000..a3de16d --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py @@ -0,0 +1,56 @@ +# -*- 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 UpdateConnectionProfile +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_update_connection_profile(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + connection_profile = datastream_v1alpha1.ConnectionProfile() + connection_profile.oracle_profile.hostname = "hostname_value" + connection_profile.oracle_profile.username = "username_value" + connection_profile.oracle_profile.password = "password_value" + connection_profile.oracle_profile.database_service = "database_service_value" + connection_profile.display_name = "display_name_value" + + request = datastream_v1alpha1.UpdateConnectionProfileRequest( + connection_profile=connection_profile, + ) + + # Make the request + operation = client.update_connection_profile(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py new file mode 100644 index 0000000..bcd7d85 --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_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 UpdateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_async] +from google.cloud import datastream_v1alpha1 + + +async def sample_update_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamAsyncClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py new file mode 100644 index 0000000..ea9763f --- /dev/null +++ b/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_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 UpdateStream +# 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-datastream + + +# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_sync] +from google.cloud import datastream_v1alpha1 + + +def sample_update_stream(): + # Create a client + client = datastream_v1alpha1.DatastreamClient() + + # Initialize request argument(s) + stream = datastream_v1alpha1.Stream() + stream.display_name = "display_name_value" + stream.source_config.source_connection_profile_name = "source_connection_profile_name_value" + stream.destination_config.destination_connection_profile_name = "destination_connection_profile_name_value" + + request = datastream_v1alpha1.UpdateStreamRequest( + stream=stream, + ) + + # Make the request + operation = client.update_stream(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_sync] diff --git a/samples/generated_samples/snippet_metadata_datastream_v1.json b/samples/generated_samples/snippet_metadata_datastream_v1.json new file mode 100644 index 0000000..6c8b306 --- /dev/null +++ b/samples/generated_samples/snippet_metadata_datastream_v1.json @@ -0,0 +1,2229 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_async", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_sync", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreatePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_private_connection_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_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": "Datastream" + }, + "shortName": "CreatePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_private_connection_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_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": "Datastream" + }, + "shortName": "CreateRoute" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_route_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreateRoute_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": "Datastream" + }, + "shortName": "CreateRoute" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_route_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreateRoute_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": "Datastream" + }, + "shortName": "CreateStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_stream_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreateStream_async", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreateStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_create_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_CreateStream_sync", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "DeleteConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_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": "Datastream" + }, + "shortName": "DeleteConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_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": "Datastream" + }, + "shortName": "DeletePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_private_connection_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_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": "Datastream" + }, + "shortName": "DeletePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_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": "Datastream" + }, + "shortName": "DeleteRoute" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_route_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteRoute_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": "Datastream" + }, + "shortName": "DeleteRoute" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_route_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteRoute_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": "Datastream" + }, + "shortName": "DeleteStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_stream_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteStream_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": "Datastream" + }, + "shortName": "DeleteStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_delete_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteStream_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": "Datastream" + }, + "shortName": "DiscoverConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_async", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "DiscoverConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "FetchStaticIps" + } + }, + "file": "datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_FetchStaticIps_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": "Datastream" + }, + "shortName": "FetchStaticIps" + } + }, + "file": "datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_FetchStaticIps_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": "Datastream" + }, + "shortName": "GetConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetConnectionProfile_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": "Datastream" + }, + "shortName": "GetConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetConnectionProfile_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": "Datastream" + }, + "shortName": "GetPrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_private_connection_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetPrivateConnection_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": "Datastream" + }, + "shortName": "GetPrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_private_connection_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetPrivateConnection_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": "Datastream" + }, + "shortName": "GetRoute" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_route_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetRoute_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": "Datastream" + }, + "shortName": "GetRoute" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_route_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetRoute_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": "Datastream" + }, + "shortName": "GetStreamObject" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_stream_object_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetStreamObject_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": "Datastream" + }, + "shortName": "GetStreamObject" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_stream_object_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetStreamObject_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": "Datastream" + }, + "shortName": "GetStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_stream_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetStream_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": "Datastream" + }, + "shortName": "GetStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_get_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_GetStream_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": "Datastream" + }, + "shortName": "ListConnectionProfiles" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_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": "Datastream" + }, + "shortName": "ListConnectionProfiles" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_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": "Datastream" + }, + "shortName": "ListPrivateConnections" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_private_connections_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListPrivateConnections_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": "Datastream" + }, + "shortName": "ListPrivateConnections" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_private_connections_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListPrivateConnections_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": "Datastream" + }, + "shortName": "ListRoutes" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_routes_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListRoutes_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": "Datastream" + }, + "shortName": "ListRoutes" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_routes_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListRoutes_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": "Datastream" + }, + "shortName": "ListStreamObjects" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_stream_objects_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreamObjects_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": "Datastream" + }, + "shortName": "ListStreamObjects" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreamObjects_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": "Datastream" + }, + "shortName": "ListStreams" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_streams_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreams_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": "Datastream" + }, + "shortName": "ListStreams" + } + }, + "file": "datastream_generated_datastream_v1_datastream_list_streams_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreams_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": "Datastream" + }, + "shortName": "LookupStreamObject" + } + }, + "file": "datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_LookupStreamObject_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "LookupStreamObject" + } + }, + "file": "datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_LookupStreamObject_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "StartBackfillJob" + } + }, + "file": "datastream_generated_datastream_v1_datastream_start_backfill_job_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_StartBackfillJob_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": "Datastream" + }, + "shortName": "StartBackfillJob" + } + }, + "file": "datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_StartBackfillJob_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": "Datastream" + }, + "shortName": "StopBackfillJob" + } + }, + "file": "datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_StopBackfillJob_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": "Datastream" + }, + "shortName": "StopBackfillJob" + } + }, + "file": "datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_StopBackfillJob_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": "Datastream" + }, + "shortName": "UpdateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_update_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_async", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "UpdateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_sync", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "UpdateStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_update_stream_async.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateStream_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": "Datastream" + }, + "shortName": "UpdateStream" + } + }, + "file": "datastream_generated_datastream_v1_datastream_update_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateStream_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" + } + ] + } + ] +} diff --git a/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json b/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json new file mode 100644 index 0000000..bdb6d6c --- /dev/null +++ b/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json @@ -0,0 +1,1873 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_async", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_sync", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreatePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_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": "Datastream" + }, + "shortName": "CreatePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_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": "Datastream" + }, + "shortName": "CreateRoute" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_route_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_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": "Datastream" + }, + "shortName": "CreateRoute" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_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": "Datastream" + }, + "shortName": "CreateStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateStream_async", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "CreateStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateStream_sync", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "DeleteConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_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": "Datastream" + }, + "shortName": "DeleteConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_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": "Datastream" + }, + "shortName": "DeletePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_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": "Datastream" + }, + "shortName": "DeletePrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_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": "Datastream" + }, + "shortName": "DeleteRoute" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_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": "Datastream" + }, + "shortName": "DeleteRoute" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_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": "Datastream" + }, + "shortName": "DeleteStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_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": "Datastream" + }, + "shortName": "DeleteStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_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": "Datastream" + }, + "shortName": "DiscoverConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_async", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "DiscoverConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "FetchErrors" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_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": "Datastream" + }, + "shortName": "FetchErrors" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_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": "Datastream" + }, + "shortName": "FetchStaticIps" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_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": "Datastream" + }, + "shortName": "FetchStaticIps" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_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": "Datastream" + }, + "shortName": "GetConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_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": "Datastream" + }, + "shortName": "GetConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_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": "Datastream" + }, + "shortName": "GetPrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_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": "Datastream" + }, + "shortName": "GetPrivateConnection" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_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": "Datastream" + }, + "shortName": "GetRoute" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_route_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetRoute_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": "Datastream" + }, + "shortName": "GetRoute" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetRoute_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": "Datastream" + }, + "shortName": "GetStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetStream_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": "Datastream" + }, + "shortName": "GetStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetStream_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": "Datastream" + }, + "shortName": "ListConnectionProfiles" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_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": "Datastream" + }, + "shortName": "ListConnectionProfiles" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_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": "Datastream" + }, + "shortName": "ListPrivateConnections" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_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": "Datastream" + }, + "shortName": "ListPrivateConnections" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_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": "Datastream" + }, + "shortName": "ListRoutes" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_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": "Datastream" + }, + "shortName": "ListRoutes" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_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": "Datastream" + }, + "shortName": "ListStreams" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListStreams_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": "Datastream" + }, + "shortName": "ListStreams" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListStreams_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": "Datastream" + }, + "shortName": "UpdateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_async", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "UpdateConnectionProfile" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_sync", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Datastream" + }, + "shortName": "UpdateStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_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": "Datastream" + }, + "shortName": "UpdateStream" + } + }, + "file": "datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py", + "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_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" + } + ] + } + ] +} From bf2107a9c1d63281a7acc6fe2107c612a8880b36 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 17:04:20 -0500 Subject: [PATCH 2/4] chore: use gapic-generator-python 0.63.4 (#68) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.4 chore: fix snippet region tag format chore: fix docstring code block formatting PiperOrigin-RevId: 430730865 Source-Link: https://github.com/googleapis/googleapis/commit/ea5800229f73f94fd7204915a86ed09dcddf429a Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca893ff8af25fc7fe001de1405a517d80446ecca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: delete duplicates * async_client.py Co-authored-by: Owl Bot Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Co-authored-by: Anthonios Partheniou --- .../services/datastream/async_client.py | 50 ++--- .../services/datastream/client.py | 75 +++---- .../services/datastream/async_client.py | 42 ++-- .../services/datastream/client.py | 63 ++---- ...stream_create_connection_profile_async.py} | 4 +- ...astream_create_connection_profile_sync.py} | 4 +- ...stream_create_private_connection_async.py} | 4 +- ...astream_create_private_connection_sync.py} | 4 +- ...enerated_datastream_create_route_async.py} | 4 +- ...generated_datastream_create_route_sync.py} | 4 +- ...nerated_datastream_create_stream_async.py} | 4 +- ...enerated_datastream_create_stream_sync.py} | 4 +- ...stream_delete_connection_profile_async.py} | 4 +- ...astream_delete_connection_profile_sync.py} | 4 +- ...stream_delete_private_connection_async.py} | 4 +- ...astream_delete_private_connection_sync.py} | 4 +- ...enerated_datastream_delete_route_async.py} | 4 +- ...generated_datastream_delete_route_sync.py} | 4 +- ...nerated_datastream_delete_stream_async.py} | 4 +- ...enerated_datastream_delete_stream_sync.py} | 4 +- ...ream_discover_connection_profile_async.py} | 4 +- ...tream_discover_connection_profile_sync.py} | 4 +- ...ated_datastream_fetch_static_ips_async.py} | 4 +- ...rated_datastream_fetch_static_ips_sync.py} | 4 +- ...atastream_get_connection_profile_async.py} | 4 +- ...datastream_get_connection_profile_sync.py} | 4 +- ...atastream_get_private_connection_async.py} | 4 +- ...datastream_get_private_connection_sync.py} | 4 +- ...1_generated_datastream_get_route_async.py} | 4 +- ...v1_generated_datastream_get_route_sync.py} | 4 +- ..._generated_datastream_get_stream_async.py} | 4 +- ...ted_datastream_get_stream_object_async.py} | 4 +- ...ated_datastream_get_stream_object_sync.py} | 4 +- ...1_generated_datastream_get_stream_sync.py} | 4 +- ...astream_list_connection_profiles_async.py} | 4 +- ...tastream_list_connection_profiles_sync.py} | 4 +- ...astream_list_private_connections_async.py} | 4 +- ...tastream_list_private_connections_sync.py} | 4 +- ...generated_datastream_list_routes_async.py} | 4 +- ..._generated_datastream_list_routes_sync.py} | 4 +- ...d_datastream_list_stream_objects_async.py} | 4 +- ...ed_datastream_list_stream_objects_sync.py} | 4 +- ...enerated_datastream_list_streams_async.py} | 4 +- ...generated_datastream_list_streams_sync.py} | 4 +- ..._datastream_lookup_stream_object_async.py} | 4 +- ...d_datastream_lookup_stream_object_sync.py} | 4 +- ...ed_datastream_start_backfill_job_async.py} | 4 +- ...ted_datastream_start_backfill_job_sync.py} | 4 +- ...ted_datastream_stop_backfill_job_async.py} | 4 +- ...ated_datastream_stop_backfill_job_sync.py} | 4 +- ...stream_update_connection_profile_async.py} | 4 +- ...astream_update_connection_profile_sync.py} | 4 +- ...nerated_datastream_update_stream_async.py} | 4 +- ...enerated_datastream_update_stream_sync.py} | 4 +- ...stream_create_connection_profile_async.py} | 4 +- ...astream_create_connection_profile_sync.py} | 4 +- ...stream_create_private_connection_async.py} | 4 +- ...astream_create_private_connection_sync.py} | 4 +- ...enerated_datastream_create_route_async.py} | 4 +- ...generated_datastream_create_route_sync.py} | 4 +- ...nerated_datastream_create_stream_async.py} | 4 +- ...enerated_datastream_create_stream_sync.py} | 4 +- ...stream_delete_connection_profile_async.py} | 4 +- ...astream_delete_connection_profile_sync.py} | 4 +- ...stream_delete_private_connection_async.py} | 4 +- ...astream_delete_private_connection_sync.py} | 4 +- ...enerated_datastream_delete_route_async.py} | 4 +- ...generated_datastream_delete_route_sync.py} | 4 +- ...nerated_datastream_delete_stream_async.py} | 4 +- ...enerated_datastream_delete_stream_sync.py} | 4 +- ...ream_discover_connection_profile_async.py} | 4 +- ...tream_discover_connection_profile_sync.py} | 4 +- ...enerated_datastream_fetch_errors_async.py} | 4 +- ...generated_datastream_fetch_errors_sync.py} | 4 +- ...ated_datastream_fetch_static_ips_async.py} | 4 +- ...rated_datastream_fetch_static_ips_sync.py} | 4 +- ...atastream_get_connection_profile_async.py} | 4 +- ...datastream_get_connection_profile_sync.py} | 4 +- ...atastream_get_private_connection_async.py} | 4 +- ...datastream_get_private_connection_sync.py} | 4 +- ...1_generated_datastream_get_route_async.py} | 4 +- ...a1_generated_datastream_get_route_sync.py} | 4 +- ..._generated_datastream_get_stream_async.py} | 4 +- ...1_generated_datastream_get_stream_sync.py} | 4 +- ...astream_list_connection_profiles_async.py} | 4 +- ...tastream_list_connection_profiles_sync.py} | 4 +- ...astream_list_private_connections_async.py} | 4 +- ...tastream_list_private_connections_sync.py} | 4 +- ...generated_datastream_list_routes_async.py} | 4 +- ..._generated_datastream_list_routes_sync.py} | 4 +- ...enerated_datastream_list_streams_async.py} | 4 +- ...generated_datastream_list_streams_sync.py} | 4 +- ...stream_update_connection_profile_async.py} | 4 +- ...astream_update_connection_profile_sync.py} | 4 +- ...nerated_datastream_update_stream_async.py} | 4 +- ...enerated_datastream_update_stream_sync.py} | 4 +- .../snippet_metadata_datastream_v1.json | 200 +++++++++--------- .../snippet_metadata_datastream_v1alpha1.json | 168 +++++++-------- 98 files changed, 460 insertions(+), 506 deletions(-) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_connection_profile_async.py => datastream_v1_generated_datastream_create_connection_profile_async.py} (92%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py => datastream_v1_generated_datastream_create_connection_profile_sync.py} (92%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_private_connection_async.py => datastream_v1_generated_datastream_create_private_connection_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_private_connection_sync.py => datastream_v1_generated_datastream_create_private_connection_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_route_async.py => datastream_v1_generated_datastream_create_route_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_route_sync.py => datastream_v1_generated_datastream_create_route_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_stream_async.py => datastream_v1_generated_datastream_create_stream_async.py} (92%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_create_stream_sync.py => datastream_v1_generated_datastream_create_stream_sync.py} (92%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py => datastream_v1_generated_datastream_delete_connection_profile_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py => datastream_v1_generated_datastream_delete_connection_profile_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_private_connection_async.py => datastream_v1_generated_datastream_delete_private_connection_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py => datastream_v1_generated_datastream_delete_private_connection_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_route_async.py => datastream_v1_generated_datastream_delete_route_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_route_sync.py => datastream_v1_generated_datastream_delete_route_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_stream_async.py => datastream_v1_generated_datastream_delete_stream_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_delete_stream_sync.py => datastream_v1_generated_datastream_delete_stream_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py => datastream_v1_generated_datastream_discover_connection_profile_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py => datastream_v1_generated_datastream_discover_connection_profile_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py => datastream_v1_generated_datastream_fetch_static_ips_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py => datastream_v1_generated_datastream_fetch_static_ips_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_connection_profile_async.py => datastream_v1_generated_datastream_get_connection_profile_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py => datastream_v1_generated_datastream_get_connection_profile_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_private_connection_async.py => datastream_v1_generated_datastream_get_private_connection_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_private_connection_sync.py => datastream_v1_generated_datastream_get_private_connection_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_route_async.py => datastream_v1_generated_datastream_get_route_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_route_sync.py => datastream_v1_generated_datastream_get_route_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_stream_async.py => datastream_v1_generated_datastream_get_stream_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_stream_object_async.py => datastream_v1_generated_datastream_get_stream_object_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_stream_object_sync.py => datastream_v1_generated_datastream_get_stream_object_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_get_stream_sync.py => datastream_v1_generated_datastream_get_stream_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py => datastream_v1_generated_datastream_list_connection_profiles_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py => datastream_v1_generated_datastream_list_connection_profiles_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_private_connections_async.py => datastream_v1_generated_datastream_list_private_connections_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_private_connections_sync.py => datastream_v1_generated_datastream_list_private_connections_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_routes_async.py => datastream_v1_generated_datastream_list_routes_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_routes_sync.py => datastream_v1_generated_datastream_list_routes_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_stream_objects_async.py => datastream_v1_generated_datastream_list_stream_objects_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py => datastream_v1_generated_datastream_list_stream_objects_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_streams_async.py => datastream_v1_generated_datastream_list_streams_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_list_streams_sync.py => datastream_v1_generated_datastream_list_streams_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py => datastream_v1_generated_datastream_lookup_stream_object_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py => datastream_v1_generated_datastream_lookup_stream_object_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_start_backfill_job_async.py => datastream_v1_generated_datastream_start_backfill_job_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py => datastream_v1_generated_datastream_start_backfill_job_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py => datastream_v1_generated_datastream_stop_backfill_job_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py => datastream_v1_generated_datastream_stop_backfill_job_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_update_connection_profile_async.py => datastream_v1_generated_datastream_update_connection_profile_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py => datastream_v1_generated_datastream_update_connection_profile_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_update_stream_async.py => datastream_v1_generated_datastream_update_stream_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1_datastream_update_stream_sync.py => datastream_v1_generated_datastream_update_stream_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py => datastream_v1alpha1_generated_datastream_create_connection_profile_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py => datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py => datastream_v1alpha1_generated_datastream_create_private_connection_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py => datastream_v1alpha1_generated_datastream_create_private_connection_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_route_async.py => datastream_v1alpha1_generated_datastream_create_route_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py => datastream_v1alpha1_generated_datastream_create_route_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py => datastream_v1alpha1_generated_datastream_create_stream_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py => datastream_v1alpha1_generated_datastream_create_stream_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py => datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py => datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py => datastream_v1alpha1_generated_datastream_delete_private_connection_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py => datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py => datastream_v1alpha1_generated_datastream_delete_route_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py => datastream_v1alpha1_generated_datastream_delete_route_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py => datastream_v1alpha1_generated_datastream_delete_stream_async.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py => datastream_v1alpha1_generated_datastream_delete_stream_sync.py} (90%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py => datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py => datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py => datastream_v1alpha1_generated_datastream_fetch_errors_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py => datastream_v1alpha1_generated_datastream_fetch_errors_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py => datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py => datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py => datastream_v1alpha1_generated_datastream_get_connection_profile_async.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py => datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py => datastream_v1alpha1_generated_datastream_get_private_connection_async.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py => datastream_v1alpha1_generated_datastream_get_private_connection_sync.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_route_async.py => datastream_v1alpha1_generated_datastream_get_route_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py => datastream_v1alpha1_generated_datastream_get_route_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py => datastream_v1alpha1_generated_datastream_get_stream_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py => datastream_v1alpha1_generated_datastream_get_stream_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py => datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py => datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py => datastream_v1alpha1_generated_datastream_list_private_connections_async.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py => datastream_v1alpha1_generated_datastream_list_private_connections_sync.py} (88%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py => datastream_v1alpha1_generated_datastream_list_routes_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py => datastream_v1alpha1_generated_datastream_list_routes_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py => datastream_v1alpha1_generated_datastream_list_streams_async.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py => datastream_v1alpha1_generated_datastream_list_streams_sync.py} (89%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py => datastream_v1alpha1_generated_datastream_update_connection_profile_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py => datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py => datastream_v1alpha1_generated_datastream_update_stream_async.py} (91%) rename samples/generated_samples/{datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py => datastream_v1alpha1_generated_datastream_update_stream_sync.py} (91%) diff --git a/google/cloud/datastream_v1/services/datastream/async_client.py b/google/cloud/datastream_v1/services/datastream/async_client.py index 4807b2a..df758e2 100644 --- a/google/cloud/datastream_v1/services/datastream/async_client.py +++ b/google/cloud/datastream_v1/services/datastream/async_client.py @@ -229,7 +229,7 @@ async def list_connection_profiles( in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -331,7 +331,7 @@ async def get_connection_profile( profile. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -426,7 +426,7 @@ async def create_connection_profile( project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -560,7 +560,7 @@ async def update_connection_profile( connection profile. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -686,7 +686,7 @@ async def delete_connection_profile( ) -> operation_async.AsyncOperation: r"""Use this method to delete a connection profile. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -805,7 +805,7 @@ async def discover_connection_profile( that's optionally supplied in the request. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -883,7 +883,7 @@ async def list_streams( location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -981,7 +981,7 @@ async def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1073,7 +1073,7 @@ async def create_stream( ) -> operation_async.AsyncOperation: r"""Use this method to create a stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1205,7 +1205,7 @@ async def update_stream( stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1331,7 +1331,7 @@ async def delete_stream( ) -> operation_async.AsyncOperation: r"""Use this method to delete a stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1446,7 +1446,7 @@ async def get_stream_object( ) -> datastream_resources.StreamObject: r"""Use this method to get details about a stream object. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1537,7 +1537,7 @@ async def lookup_stream_object( source object identifier. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1613,7 +1613,7 @@ async def list_stream_objects( stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1715,7 +1715,7 @@ async def start_backfill_job( specified stream object. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1809,7 +1809,7 @@ async def stop_backfill_job( specified stream object. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1902,7 +1902,7 @@ async def fetch_static_ips( addresses used by Datastream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2007,7 +2007,7 @@ async def create_private_connection( configuration. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2136,7 +2136,7 @@ async def get_private_connection( connectivity configuration. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2230,7 +2230,7 @@ async def list_private_connections( configurations in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2333,7 +2333,7 @@ async def delete_private_connection( configuration. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2452,7 +2452,7 @@ async def create_route( connectivity configuration in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2577,7 +2577,7 @@ async def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2670,7 +2670,7 @@ async def list_routes( connectivity configuration in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2768,7 +2768,7 @@ async def delete_route( ) -> operation_async.AsyncOperation: r"""Use this method to delete a route. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 diff --git a/google/cloud/datastream_v1/services/datastream/client.py b/google/cloud/datastream_v1/services/datastream/client.py index c1dae67..66f547b 100644 --- a/google/cloud/datastream_v1/services/datastream/client.py +++ b/google/cloud/datastream_v1/services/datastream/client.py @@ -506,8 +506,7 @@ def list_connection_profiles( in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -609,8 +608,7 @@ def get_connection_profile( profile. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -705,8 +703,7 @@ def create_connection_profile( project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -842,8 +839,7 @@ def update_connection_profile( connection profile. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -971,8 +967,7 @@ def delete_connection_profile( ) -> operation.Operation: r"""Use this method to delete a connection profile. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1093,8 +1088,7 @@ def discover_connection_profile( that's optionally supplied in the request. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1175,8 +1169,7 @@ def list_streams( location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1274,8 +1267,7 @@ def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1367,8 +1359,7 @@ def create_stream( ) -> operation.Operation: r"""Use this method to create a stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1500,8 +1491,7 @@ def update_stream( stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1627,8 +1617,7 @@ def delete_stream( ) -> operation.Operation: r"""Use this method to delete a stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1743,8 +1732,7 @@ def get_stream_object( ) -> datastream_resources.StreamObject: r"""Use this method to get details about a stream object. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1835,8 +1823,7 @@ def lookup_stream_object( source object identifier. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -1913,8 +1900,7 @@ def list_stream_objects( stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2016,8 +2002,7 @@ def start_backfill_job( specified stream object. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2111,8 +2096,7 @@ def stop_backfill_job( specified stream object. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2205,8 +2189,7 @@ def fetch_static_ips( addresses used by Datastream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2311,8 +2294,7 @@ def create_private_connection( configuration. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2443,8 +2425,7 @@ def get_private_connection( connectivity configuration. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2538,8 +2519,7 @@ def list_private_connections( configurations in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2642,8 +2622,7 @@ def delete_private_connection( configuration. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2764,8 +2743,7 @@ def create_route( connectivity configuration in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2890,8 +2868,7 @@ def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -2984,8 +2961,7 @@ def list_routes( connectivity configuration in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 @@ -3083,8 +3059,7 @@ def delete_route( ) -> operation.Operation: r"""Use this method to delete a route. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1 diff --git a/google/cloud/datastream_v1alpha1/services/datastream/async_client.py b/google/cloud/datastream_v1alpha1/services/datastream/async_client.py index 11eb3df..21f7a16 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/async_client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/async_client.py @@ -225,7 +225,7 @@ async def list_connection_profiles( in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -324,7 +324,7 @@ async def get_connection_profile( profile. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -415,7 +415,7 @@ async def create_connection_profile( project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -548,7 +548,7 @@ async def update_connection_profile( connection profile. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -674,7 +674,7 @@ async def delete_connection_profile( ) -> operation_async.AsyncOperation: r"""Use this method to delete a connection profile.. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -792,7 +792,7 @@ async def discover_connection_profile( that's optionally supplied in the request. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -870,7 +870,7 @@ async def list_streams( location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -967,7 +967,7 @@ async def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1056,7 +1056,7 @@ async def create_stream( ) -> operation_async.AsyncOperation: r"""Use this method to create a stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1185,7 +1185,7 @@ async def update_stream( stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1308,7 +1308,7 @@ async def delete_stream( ) -> operation_async.AsyncOperation: r"""Use this method to delete a stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1423,7 +1423,7 @@ async def fetch_errors( stream. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1510,7 +1510,7 @@ async def fetch_static_ips( optionally supplied in the request. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1614,7 +1614,7 @@ async def create_private_connection( configuration. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1742,7 +1742,7 @@ async def get_private_connection( connectivity configuration. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1835,7 +1835,7 @@ async def list_private_connections( configurations in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1935,7 +1935,7 @@ async def delete_private_connection( configuration. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2053,7 +2053,7 @@ async def create_route( connectivity in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2179,7 +2179,7 @@ async def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2272,7 +2272,7 @@ async def list_routes( connectivity in a project and location. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2370,7 +2370,7 @@ async def delete_route( ) -> operation_async.AsyncOperation: r"""Use this method to delete a route. - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 diff --git a/google/cloud/datastream_v1alpha1/services/datastream/client.py b/google/cloud/datastream_v1alpha1/services/datastream/client.py index b2455c5..84978c5 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/client.py @@ -473,8 +473,7 @@ def list_connection_profiles( in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -573,8 +572,7 @@ def get_connection_profile( profile. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -665,8 +663,7 @@ def create_connection_profile( project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -801,8 +798,7 @@ def update_connection_profile( connection profile. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -930,8 +926,7 @@ def delete_connection_profile( ) -> operation.Operation: r"""Use this method to delete a connection profile.. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1051,8 +1046,7 @@ def discover_connection_profile( that's optionally supplied in the request. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1133,8 +1127,7 @@ def list_streams( location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1231,8 +1224,7 @@ def get_stream( ) -> datastream_resources.Stream: r"""Use this method to get details about a stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1321,8 +1313,7 @@ def create_stream( ) -> operation.Operation: r"""Use this method to create a stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1451,8 +1442,7 @@ def update_stream( stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1575,8 +1565,7 @@ def delete_stream( ) -> operation.Operation: r"""Use this method to delete a stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1691,8 +1680,7 @@ def fetch_errors( stream. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1780,8 +1768,7 @@ def fetch_static_ips( optionally supplied in the request. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -1885,8 +1872,7 @@ def create_private_connection( configuration. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2016,8 +2002,7 @@ def get_private_connection( connectivity configuration. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2110,8 +2095,7 @@ def list_private_connections( configurations in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2211,8 +2195,7 @@ def delete_private_connection( configuration. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2332,8 +2315,7 @@ def create_route( connectivity in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2459,8 +2441,7 @@ def get_route( ) -> datastream_resources.Route: r"""Use this method to get details about a route. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2553,8 +2534,7 @@ def list_routes( connectivity in a project and location. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 @@ -2652,8 +2632,7 @@ def delete_route( ) -> operation.Operation: r"""Use this method to delete a route. - - .. code-block:: + .. code-block:: python from google.cloud import datastream_v1alpha1 diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py similarity index 92% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py index b0c1c08..95b5392 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_async] +# [START datastream_v1_generated_Datastream_CreateConnectionProfile_async] from google.cloud import datastream_v1 @@ -55,4 +55,4 @@ async def sample_create_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_async] +# [END datastream_v1_generated_Datastream_CreateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py similarity index 92% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py index 1fdcf33..e48bd6b 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_sync] +# [START datastream_v1_generated_Datastream_CreateConnectionProfile_sync] from google.cloud import datastream_v1 @@ -55,4 +55,4 @@ def sample_create_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_sync] +# [END datastream_v1_generated_Datastream_CreateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py index 4daad35..b614391 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_async] +# [START datastream_v1_generated_Datastream_CreatePrivateConnection_async] from google.cloud import datastream_v1 @@ -51,4 +51,4 @@ async def sample_create_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_async] +# [END datastream_v1_generated_Datastream_CreatePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py index 5f55360..2613db5 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_sync] +# [START datastream_v1_generated_Datastream_CreatePrivateConnection_sync] from google.cloud import datastream_v1 @@ -51,4 +51,4 @@ def sample_create_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_sync] +# [END datastream_v1_generated_Datastream_CreatePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py index 759222f..45d5137 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreateRoute_async] +# [START datastream_v1_generated_Datastream_CreateRoute_async] from google.cloud import datastream_v1 @@ -52,4 +52,4 @@ async def sample_create_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreateRoute_async] +# [END datastream_v1_generated_Datastream_CreateRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py index d0044ff..71ea25f 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_route_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreateRoute_sync] +# [START datastream_v1_generated_Datastream_CreateRoute_sync] from google.cloud import datastream_v1 @@ -52,4 +52,4 @@ def sample_create_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreateRoute_sync] +# [END datastream_v1_generated_Datastream_CreateRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py similarity index 92% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py index 81845fb..98005ef 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreateStream_async] +# [START datastream_v1_generated_Datastream_CreateStream_async] from google.cloud import datastream_v1 @@ -53,4 +53,4 @@ async def sample_create_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreateStream_async] +# [END datastream_v1_generated_Datastream_CreateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py similarity index 92% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py index 81ad5b8..01e1c70 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_create_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_CreateStream_sync] +# [START datastream_v1_generated_Datastream_CreateStream_sync] from google.cloud import datastream_v1 @@ -53,4 +53,4 @@ def sample_create_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_CreateStream_sync] +# [END datastream_v1_generated_Datastream_CreateStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py index 6598134..f62d257 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_async] +# [START datastream_v1_generated_Datastream_DeleteConnectionProfile_async] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ async def sample_delete_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_async] +# [END datastream_v1_generated_Datastream_DeleteConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py index 0450450..f6d3f1f 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_sync] +# [START datastream_v1_generated_Datastream_DeleteConnectionProfile_sync] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ def sample_delete_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_sync] +# [END datastream_v1_generated_Datastream_DeleteConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py index 5b8420d..ba8e816 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_async] +# [START datastream_v1_generated_Datastream_DeletePrivateConnection_async] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ async def sample_delete_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_async] +# [END datastream_v1_generated_Datastream_DeletePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py index 52d32b9..b02cb6f 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_sync] +# [START datastream_v1_generated_Datastream_DeletePrivateConnection_sync] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ def sample_delete_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_sync] +# [END datastream_v1_generated_Datastream_DeletePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py index 1341681..e7bcfd6 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeleteRoute_async] +# [START datastream_v1_generated_Datastream_DeleteRoute_async] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ async def sample_delete_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeleteRoute_async] +# [END datastream_v1_generated_Datastream_DeleteRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py index ab73fd8..c64834e 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_route_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeleteRoute_sync] +# [START datastream_v1_generated_Datastream_DeleteRoute_sync] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ def sample_delete_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeleteRoute_sync] +# [END datastream_v1_generated_Datastream_DeleteRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py index 8205581..c092db2 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeleteStream_async] +# [START datastream_v1_generated_Datastream_DeleteStream_async] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ async def sample_delete_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeleteStream_async] +# [END datastream_v1_generated_Datastream_DeleteStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py index 3beb9fb..3b8d3d8 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_delete_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DeleteStream_sync] +# [START datastream_v1_generated_Datastream_DeleteStream_sync] from google.cloud import datastream_v1 @@ -46,4 +46,4 @@ def sample_delete_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DeleteStream_sync] +# [END datastream_v1_generated_Datastream_DeleteStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py index b9135bf..22903b7 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_async] +# [START datastream_v1_generated_Datastream_DiscoverConnectionProfile_async] from google.cloud import datastream_v1 @@ -51,4 +51,4 @@ async def sample_discover_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_async] +# [END datastream_v1_generated_Datastream_DiscoverConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py index d5f3053..ddf1c22 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_sync] +# [START datastream_v1_generated_Datastream_DiscoverConnectionProfile_sync] from google.cloud import datastream_v1 @@ -51,4 +51,4 @@ def sample_discover_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_sync] +# [END datastream_v1_generated_Datastream_DiscoverConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py index b0b5166..56a6313 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_FetchStaticIps_async] +# [START datastream_v1_generated_Datastream_FetchStaticIps_async] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ async def sample_fetch_static_ips(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_FetchStaticIps_async] +# [END datastream_v1_generated_Datastream_FetchStaticIps_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py index a551558..9319a19 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_FetchStaticIps_sync] +# [START datastream_v1_generated_Datastream_FetchStaticIps_sync] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ def sample_fetch_static_ips(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_FetchStaticIps_sync] +# [END datastream_v1_generated_Datastream_FetchStaticIps_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py index 8abace7..9e26b56 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetConnectionProfile_async] +# [START datastream_v1_generated_Datastream_GetConnectionProfile_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_get_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetConnectionProfile_async] +# [END datastream_v1_generated_Datastream_GetConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py index 77dd7b7..d84c8f7 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetConnectionProfile_sync] +# [START datastream_v1_generated_Datastream_GetConnectionProfile_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_get_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetConnectionProfile_sync] +# [END datastream_v1_generated_Datastream_GetConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py index 1844b08..c10d5f5 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetPrivateConnection_async] +# [START datastream_v1_generated_Datastream_GetPrivateConnection_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_get_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetPrivateConnection_async] +# [END datastream_v1_generated_Datastream_GetPrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py index 2cdd056..b1446a5 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetPrivateConnection_sync] +# [START datastream_v1_generated_Datastream_GetPrivateConnection_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_get_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetPrivateConnection_sync] +# [END datastream_v1_generated_Datastream_GetPrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py index a7b8970..c340788 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetRoute_async] +# [START datastream_v1_generated_Datastream_GetRoute_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_get_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetRoute_async] +# [END datastream_v1_generated_Datastream_GetRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py index 933b37b..331d691 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_route_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetRoute_sync] +# [START datastream_v1_generated_Datastream_GetRoute_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_get_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetRoute_sync] +# [END datastream_v1_generated_Datastream_GetRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py index 9285b1a..e45ded2 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetStream_async] +# [START datastream_v1_generated_Datastream_GetStream_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_get_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetStream_async] +# [END datastream_v1_generated_Datastream_GetStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py index 66a3c1e..7eb9be6 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetStreamObject_async] +# [START datastream_v1_generated_Datastream_GetStreamObject_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_get_stream_object(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetStreamObject_async] +# [END datastream_v1_generated_Datastream_GetStreamObject_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py index 2696872..c244a8d 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_object_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetStreamObject_sync] +# [START datastream_v1_generated_Datastream_GetStreamObject_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_get_stream_object(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetStreamObject_sync] +# [END datastream_v1_generated_Datastream_GetStreamObject_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py index 1da1e45..dca8bc8 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_get_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_GetStream_sync] +# [START datastream_v1_generated_Datastream_GetStream_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_get_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_GetStream_sync] +# [END datastream_v1_generated_Datastream_GetStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py index 2f0b579..0403c43 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_async] +# [START datastream_v1_generated_Datastream_ListConnectionProfiles_async] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ async def sample_list_connection_profiles(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_async] +# [END datastream_v1_generated_Datastream_ListConnectionProfiles_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py index 5b398f0..badd7ea 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_sync] +# [START datastream_v1_generated_Datastream_ListConnectionProfiles_sync] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ def sample_list_connection_profiles(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_sync] +# [END datastream_v1_generated_Datastream_ListConnectionProfiles_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py index 5a59734..ceebc21 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListPrivateConnections_async] +# [START datastream_v1_generated_Datastream_ListPrivateConnections_async] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ async def sample_list_private_connections(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListPrivateConnections_async] +# [END datastream_v1_generated_Datastream_ListPrivateConnections_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py index c1657dc..29222bd 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_private_connections_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListPrivateConnections_sync] +# [START datastream_v1_generated_Datastream_ListPrivateConnections_sync] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ def sample_list_private_connections(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListPrivateConnections_sync] +# [END datastream_v1_generated_Datastream_ListPrivateConnections_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py index be5b53c..d152696 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListRoutes_async] +# [START datastream_v1_generated_Datastream_ListRoutes_async] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ async def sample_list_routes(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListRoutes_async] +# [END datastream_v1_generated_Datastream_ListRoutes_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py index 5c0d84f..2e56395 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_routes_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListRoutes_sync] +# [START datastream_v1_generated_Datastream_ListRoutes_sync] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ def sample_list_routes(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListRoutes_sync] +# [END datastream_v1_generated_Datastream_ListRoutes_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py index 76fec3b..9ff7453 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListStreamObjects_async] +# [START datastream_v1_generated_Datastream_ListStreamObjects_async] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ async def sample_list_stream_objects(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListStreamObjects_async] +# [END datastream_v1_generated_Datastream_ListStreamObjects_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py index 293fea2..2378cc9 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListStreamObjects_sync] +# [START datastream_v1_generated_Datastream_ListStreamObjects_sync] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ def sample_list_stream_objects(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListStreamObjects_sync] +# [END datastream_v1_generated_Datastream_ListStreamObjects_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py index c9a58d3..7eed340 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListStreams_async] +# [START datastream_v1_generated_Datastream_ListStreams_async] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ async def sample_list_streams(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListStreams_async] +# [END datastream_v1_generated_Datastream_ListStreams_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py index 5b4b832..aefdd1f 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_list_streams_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_ListStreams_sync] +# [START datastream_v1_generated_Datastream_ListStreams_sync] from google.cloud import datastream_v1 @@ -43,4 +43,4 @@ def sample_list_streams(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1_Datastream_ListStreams_sync] +# [END datastream_v1_generated_Datastream_ListStreams_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py index 767819d..6c64482 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_LookupStreamObject_async] +# [START datastream_v1_generated_Datastream_LookupStreamObject_async] from google.cloud import datastream_v1 @@ -47,4 +47,4 @@ async def sample_lookup_stream_object(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_LookupStreamObject_async] +# [END datastream_v1_generated_Datastream_LookupStreamObject_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py index 5c7a5af..1b7d4b2 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_LookupStreamObject_sync] +# [START datastream_v1_generated_Datastream_LookupStreamObject_sync] from google.cloud import datastream_v1 @@ -47,4 +47,4 @@ def sample_lookup_stream_object(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_LookupStreamObject_sync] +# [END datastream_v1_generated_Datastream_LookupStreamObject_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_async.py b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py index f8617ec..318f6af 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_StartBackfillJob_async] +# [START datastream_v1_generated_Datastream_StartBackfillJob_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_start_backfill_job(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_StartBackfillJob_async] +# [END datastream_v1_generated_Datastream_StartBackfillJob_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py index 538d1d4..04c3029 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_StartBackfillJob_sync] +# [START datastream_v1_generated_Datastream_StartBackfillJob_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_start_backfill_job(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_StartBackfillJob_sync] +# [END datastream_v1_generated_Datastream_StartBackfillJob_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py index 10107b1..355c1cb 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_StopBackfillJob_async] +# [START datastream_v1_generated_Datastream_StopBackfillJob_async] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ async def sample_stop_backfill_job(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_StopBackfillJob_async] +# [END datastream_v1_generated_Datastream_StopBackfillJob_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py index ee770e0..00a3a24 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_StopBackfillJob_sync] +# [START datastream_v1_generated_Datastream_StopBackfillJob_sync] from google.cloud import datastream_v1 @@ -42,4 +42,4 @@ def sample_stop_backfill_job(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_StopBackfillJob_sync] +# [END datastream_v1_generated_Datastream_StopBackfillJob_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py index 879698f..0aa293a 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_async] +# [START datastream_v1_generated_Datastream_UpdateConnectionProfile_async] from google.cloud import datastream_v1 @@ -53,4 +53,4 @@ async def sample_update_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_async] +# [END datastream_v1_generated_Datastream_UpdateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py index 4d075f1..7201f02 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_sync] +# [START datastream_v1_generated_Datastream_UpdateConnectionProfile_sync] from google.cloud import datastream_v1 @@ -53,4 +53,4 @@ def sample_update_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_sync] +# [END datastream_v1_generated_Datastream_UpdateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_async.py rename to samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py index a4b2b09..63a7448 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_UpdateStream_async] +# [START datastream_v1_generated_Datastream_UpdateStream_async] from google.cloud import datastream_v1 @@ -51,4 +51,4 @@ async def sample_update_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_UpdateStream_async] +# [END datastream_v1_generated_Datastream_UpdateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_sync.py rename to samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py index 33ac5bd..1d1ed2c 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1_datastream_update_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1_Datastream_UpdateStream_sync] +# [START datastream_v1_generated_Datastream_UpdateStream_sync] from google.cloud import datastream_v1 @@ -51,4 +51,4 @@ def sample_update_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1_Datastream_UpdateStream_sync] +# [END datastream_v1_generated_Datastream_UpdateStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py index 2740679..5ecf5e8 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_async] +# [START datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_async] from google.cloud import datastream_v1alpha1 @@ -55,4 +55,4 @@ async def sample_create_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_async] +# [END datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py index bb1f369..ef4eccc 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_sync] +# [START datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_sync] from google.cloud import datastream_v1alpha1 @@ -55,4 +55,4 @@ def sample_create_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_sync] +# [END datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py index 06efebb..4fa7a5b 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_async] +# [START datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_async] from google.cloud import datastream_v1alpha1 @@ -51,4 +51,4 @@ async def sample_create_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_async] +# [END datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py index 0bc366f..760d35f 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_sync] +# [START datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_sync] from google.cloud import datastream_v1alpha1 @@ -51,4 +51,4 @@ def sample_create_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_sync] +# [END datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py index 45e1a93..afa89fe 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_async] +# [START datastream_v1alpha1_generated_Datastream_CreateRoute_async] from google.cloud import datastream_v1alpha1 @@ -52,4 +52,4 @@ async def sample_create_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_async] +# [END datastream_v1alpha1_generated_Datastream_CreateRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py index 6e72888..d848d05 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_sync] +# [START datastream_v1alpha1_generated_Datastream_CreateRoute_sync] from google.cloud import datastream_v1alpha1 @@ -52,4 +52,4 @@ def sample_create_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_sync] +# [END datastream_v1alpha1_generated_Datastream_CreateRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py index 93d8a7a..dd8a188 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreateStream_async] +# [START datastream_v1alpha1_generated_Datastream_CreateStream_async] from google.cloud import datastream_v1alpha1 @@ -53,4 +53,4 @@ async def sample_create_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreateStream_async] +# [END datastream_v1alpha1_generated_Datastream_CreateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py index 60f9e55..bd3c33c 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_CreateStream_sync] +# [START datastream_v1alpha1_generated_Datastream_CreateStream_sync] from google.cloud import datastream_v1alpha1 @@ -53,4 +53,4 @@ def sample_create_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_CreateStream_sync] +# [END datastream_v1alpha1_generated_Datastream_CreateStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py index c07a0a6..6b1687b 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_async] +# [START datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_async] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ async def sample_delete_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_async] +# [END datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py index c367b85..1dd79dc 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_sync] +# [START datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_sync] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ def sample_delete_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_sync] +# [END datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py index c6103ee..de2b72b 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_async] +# [START datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_async] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ async def sample_delete_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_async] +# [END datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py index 93d0a0d..03ad8fa 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_sync] +# [START datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_sync] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ def sample_delete_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_sync] +# [END datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py index 169b54e..6b610a9 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_async] +# [START datastream_v1alpha1_generated_Datastream_DeleteRoute_async] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ async def sample_delete_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_async] +# [END datastream_v1alpha1_generated_Datastream_DeleteRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py index da2b14f..27efe88 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_sync] +# [START datastream_v1alpha1_generated_Datastream_DeleteRoute_sync] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ def sample_delete_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_sync] +# [END datastream_v1alpha1_generated_Datastream_DeleteRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py index 33b625f..35fb233 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_async] +# [START datastream_v1alpha1_generated_Datastream_DeleteStream_async] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ async def sample_delete_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_async] +# [END datastream_v1alpha1_generated_Datastream_DeleteStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py similarity index 90% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py index 5e37a7a..8a5f824 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_sync] +# [START datastream_v1alpha1_generated_Datastream_DeleteStream_sync] from google.cloud import datastream_v1alpha1 @@ -46,4 +46,4 @@ def sample_delete_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_sync] +# [END datastream_v1alpha1_generated_Datastream_DeleteStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py index ca37dd5..98f10b9 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_async] +# [START datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_async] from google.cloud import datastream_v1alpha1 @@ -51,4 +51,4 @@ async def sample_discover_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_async] +# [END datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py index d9002fb..7486c81 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_sync] +# [START datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_sync] from google.cloud import datastream_v1alpha1 @@ -51,4 +51,4 @@ def sample_discover_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_sync] +# [END datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py index a927751..b284f54 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_async] +# [START datastream_v1alpha1_generated_Datastream_FetchErrors_async] from google.cloud import datastream_v1alpha1 @@ -45,4 +45,4 @@ async def sample_fetch_errors(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_async] +# [END datastream_v1alpha1_generated_Datastream_FetchErrors_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py index 596168f..3ddb770 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_sync] +# [START datastream_v1alpha1_generated_Datastream_FetchErrors_sync] from google.cloud import datastream_v1alpha1 @@ -45,4 +45,4 @@ def sample_fetch_errors(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_sync] +# [END datastream_v1alpha1_generated_Datastream_FetchErrors_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py index f89034e..c2b3540 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_async] +# [START datastream_v1alpha1_generated_Datastream_FetchStaticIps_async] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ async def sample_fetch_static_ips(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_async] +# [END datastream_v1alpha1_generated_Datastream_FetchStaticIps_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py index 577e8de..296e183 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_sync] +# [START datastream_v1alpha1_generated_Datastream_FetchStaticIps_sync] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ def sample_fetch_static_ips(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_sync] +# [END datastream_v1alpha1_generated_Datastream_FetchStaticIps_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py index abbcf29..1c34dfe 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_async] +# [START datastream_v1alpha1_generated_Datastream_GetConnectionProfile_async] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ async def sample_get_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_async] +# [END datastream_v1alpha1_generated_Datastream_GetConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py index 71e21d2..2c8ddf6 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_sync] +# [START datastream_v1alpha1_generated_Datastream_GetConnectionProfile_sync] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ def sample_get_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_sync] +# [END datastream_v1alpha1_generated_Datastream_GetConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py index 156409e..e856add 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_async] +# [START datastream_v1alpha1_generated_Datastream_GetPrivateConnection_async] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ async def sample_get_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_async] +# [END datastream_v1alpha1_generated_Datastream_GetPrivateConnection_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py index a657fe5..f896c2f 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_sync] +# [START datastream_v1alpha1_generated_Datastream_GetPrivateConnection_sync] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ def sample_get_private_connection(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_sync] +# [END datastream_v1alpha1_generated_Datastream_GetPrivateConnection_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py index f882cbe..62a5d13 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetRoute_async] +# [START datastream_v1alpha1_generated_Datastream_GetRoute_async] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ async def sample_get_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetRoute_async] +# [END datastream_v1alpha1_generated_Datastream_GetRoute_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py index d522bb3..2af1d80 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetRoute_sync] +# [START datastream_v1alpha1_generated_Datastream_GetRoute_sync] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ def sample_get_route(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetRoute_sync] +# [END datastream_v1alpha1_generated_Datastream_GetRoute_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py index 4c5c4f9..e3fa37a 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetStream_async] +# [START datastream_v1alpha1_generated_Datastream_GetStream_async] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ async def sample_get_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetStream_async] +# [END datastream_v1alpha1_generated_Datastream_GetStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py index fbfcfa9..f1a4119 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_GetStream_sync] +# [START datastream_v1alpha1_generated_Datastream_GetStream_sync] from google.cloud import datastream_v1alpha1 @@ -42,4 +42,4 @@ def sample_get_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_GetStream_sync] +# [END datastream_v1alpha1_generated_Datastream_GetStream_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py index 90a8511..0b190c7 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_async] +# [START datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_async] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ async def sample_list_connection_profiles(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_async] +# [END datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py index 59ca172..4ef1127 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_sync] +# [START datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_sync] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ def sample_list_connection_profiles(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_sync] +# [END datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py index a276107..4f0894a 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_async] +# [START datastream_v1alpha1_generated_Datastream_ListPrivateConnections_async] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ async def sample_list_private_connections(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_async] +# [END datastream_v1alpha1_generated_Datastream_ListPrivateConnections_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py similarity index 88% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py index 3bc6db5..5f45675 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_sync] +# [START datastream_v1alpha1_generated_Datastream_ListPrivateConnections_sync] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ def sample_list_private_connections(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_sync] +# [END datastream_v1alpha1_generated_Datastream_ListPrivateConnections_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py index 59eb945..adefcca 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_async] +# [START datastream_v1alpha1_generated_Datastream_ListRoutes_async] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ async def sample_list_routes(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_async] +# [END datastream_v1alpha1_generated_Datastream_ListRoutes_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py index bdec495..86f1045 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_sync] +# [START datastream_v1alpha1_generated_Datastream_ListRoutes_sync] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ def sample_list_routes(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_sync] +# [END datastream_v1alpha1_generated_Datastream_ListRoutes_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py index dcea80c..35ae58a 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListStreams_async] +# [START datastream_v1alpha1_generated_Datastream_ListStreams_async] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ async def sample_list_streams(): async for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListStreams_async] +# [END datastream_v1alpha1_generated_Datastream_ListStreams_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py similarity index 89% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py index 2997158..328d077 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_ListStreams_sync] +# [START datastream_v1alpha1_generated_Datastream_ListStreams_sync] from google.cloud import datastream_v1alpha1 @@ -43,4 +43,4 @@ def sample_list_streams(): for response in page_result: print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_ListStreams_sync] +# [END datastream_v1alpha1_generated_Datastream_ListStreams_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py index 8368631..2bcc63b 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_async] +# [START datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_async] from google.cloud import datastream_v1alpha1 @@ -53,4 +53,4 @@ async def sample_update_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_async] +# [END datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py index a3de16d..4034592 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_sync] +# [START datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_sync] from google.cloud import datastream_v1alpha1 @@ -53,4 +53,4 @@ def sample_update_connection_profile(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_sync] +# [END datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_sync] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py index bcd7d85..47db18d 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_async] +# [START datastream_v1alpha1_generated_Datastream_UpdateStream_async] from google.cloud import datastream_v1alpha1 @@ -51,4 +51,4 @@ async def sample_update_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_async] +# [END datastream_v1alpha1_generated_Datastream_UpdateStream_async] diff --git a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py similarity index 91% rename from samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py rename to samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py index ea9763f..147501c 100644 --- a/samples/generated_samples/datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datastream -# [START datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_sync] +# [START datastream_v1alpha1_generated_Datastream_UpdateStream_sync] from google.cloud import datastream_v1alpha1 @@ -51,4 +51,4 @@ def sample_update_stream(): # Handle the response print(response) -# [END datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_sync] +# [END datastream_v1alpha1_generated_Datastream_UpdateStream_sync] diff --git a/samples/generated_samples/snippet_metadata_datastream_v1.json b/samples/generated_samples/snippet_metadata_datastream_v1.json index 6c8b306..41ce403 100644 --- a/samples/generated_samples/snippet_metadata_datastream_v1.json +++ b/samples/generated_samples/snippet_metadata_datastream_v1.json @@ -10,8 +10,8 @@ "shortName": "CreateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_create_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_async", + "file": "datastream_v1_generated_datastream_create_connection_profile_async.py", + "regionTag": "datastream_v1_generated_Datastream_CreateConnectionProfile_async", "segments": [ { "end": 57, @@ -54,8 +54,8 @@ "shortName": "CreateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_create_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreateConnectionProfile_sync", + "file": "datastream_v1_generated_datastream_create_connection_profile_sync.py", + "regionTag": "datastream_v1_generated_Datastream_CreateConnectionProfile_sync", "segments": [ { "end": 57, @@ -99,8 +99,8 @@ "shortName": "CreatePrivateConnection" } }, - "file": "datastream_generated_datastream_v1_datastream_create_private_connection_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_async", + "file": "datastream_v1_generated_datastream_create_private_connection_async.py", + "regionTag": "datastream_v1_generated_Datastream_CreatePrivateConnection_async", "segments": [ { "end": 53, @@ -143,8 +143,8 @@ "shortName": "CreatePrivateConnection" } }, - "file": "datastream_generated_datastream_v1_datastream_create_private_connection_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreatePrivateConnection_sync", + "file": "datastream_v1_generated_datastream_create_private_connection_sync.py", + "regionTag": "datastream_v1_generated_Datastream_CreatePrivateConnection_sync", "segments": [ { "end": 53, @@ -188,8 +188,8 @@ "shortName": "CreateRoute" } }, - "file": "datastream_generated_datastream_v1_datastream_create_route_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreateRoute_async", + "file": "datastream_v1_generated_datastream_create_route_async.py", + "regionTag": "datastream_v1_generated_Datastream_CreateRoute_async", "segments": [ { "end": 54, @@ -232,8 +232,8 @@ "shortName": "CreateRoute" } }, - "file": "datastream_generated_datastream_v1_datastream_create_route_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreateRoute_sync", + "file": "datastream_v1_generated_datastream_create_route_sync.py", + "regionTag": "datastream_v1_generated_Datastream_CreateRoute_sync", "segments": [ { "end": 54, @@ -277,8 +277,8 @@ "shortName": "CreateStream" } }, - "file": "datastream_generated_datastream_v1_datastream_create_stream_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreateStream_async", + "file": "datastream_v1_generated_datastream_create_stream_async.py", + "regionTag": "datastream_v1_generated_Datastream_CreateStream_async", "segments": [ { "end": 55, @@ -321,8 +321,8 @@ "shortName": "CreateStream" } }, - "file": "datastream_generated_datastream_v1_datastream_create_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_CreateStream_sync", + "file": "datastream_v1_generated_datastream_create_stream_sync.py", + "regionTag": "datastream_v1_generated_Datastream_CreateStream_sync", "segments": [ { "end": 55, @@ -366,8 +366,8 @@ "shortName": "DeleteConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_async", + "file": "datastream_v1_generated_datastream_delete_connection_profile_async.py", + "regionTag": "datastream_v1_generated_Datastream_DeleteConnectionProfile_async", "segments": [ { "end": 48, @@ -410,8 +410,8 @@ "shortName": "DeleteConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteConnectionProfile_sync", + "file": "datastream_v1_generated_datastream_delete_connection_profile_sync.py", + "regionTag": "datastream_v1_generated_Datastream_DeleteConnectionProfile_sync", "segments": [ { "end": 48, @@ -455,8 +455,8 @@ "shortName": "DeletePrivateConnection" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_private_connection_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_async", + "file": "datastream_v1_generated_datastream_delete_private_connection_async.py", + "regionTag": "datastream_v1_generated_Datastream_DeletePrivateConnection_async", "segments": [ { "end": 48, @@ -499,8 +499,8 @@ "shortName": "DeletePrivateConnection" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_private_connection_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeletePrivateConnection_sync", + "file": "datastream_v1_generated_datastream_delete_private_connection_sync.py", + "regionTag": "datastream_v1_generated_Datastream_DeletePrivateConnection_sync", "segments": [ { "end": 48, @@ -544,8 +544,8 @@ "shortName": "DeleteRoute" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_route_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteRoute_async", + "file": "datastream_v1_generated_datastream_delete_route_async.py", + "regionTag": "datastream_v1_generated_Datastream_DeleteRoute_async", "segments": [ { "end": 48, @@ -588,8 +588,8 @@ "shortName": "DeleteRoute" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_route_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteRoute_sync", + "file": "datastream_v1_generated_datastream_delete_route_sync.py", + "regionTag": "datastream_v1_generated_Datastream_DeleteRoute_sync", "segments": [ { "end": 48, @@ -633,8 +633,8 @@ "shortName": "DeleteStream" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_stream_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteStream_async", + "file": "datastream_v1_generated_datastream_delete_stream_async.py", + "regionTag": "datastream_v1_generated_Datastream_DeleteStream_async", "segments": [ { "end": 48, @@ -677,8 +677,8 @@ "shortName": "DeleteStream" } }, - "file": "datastream_generated_datastream_v1_datastream_delete_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DeleteStream_sync", + "file": "datastream_v1_generated_datastream_delete_stream_sync.py", + "regionTag": "datastream_v1_generated_Datastream_DeleteStream_sync", "segments": [ { "end": 48, @@ -722,8 +722,8 @@ "shortName": "DiscoverConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_discover_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_async", + "file": "datastream_v1_generated_datastream_discover_connection_profile_async.py", + "regionTag": "datastream_v1_generated_Datastream_DiscoverConnectionProfile_async", "segments": [ { "end": 53, @@ -766,8 +766,8 @@ "shortName": "DiscoverConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_discover_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_DiscoverConnectionProfile_sync", + "file": "datastream_v1_generated_datastream_discover_connection_profile_sync.py", + "regionTag": "datastream_v1_generated_Datastream_DiscoverConnectionProfile_sync", "segments": [ { "end": 53, @@ -811,8 +811,8 @@ "shortName": "FetchStaticIps" } }, - "file": "datastream_generated_datastream_v1_datastream_fetch_static_ips_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_FetchStaticIps_async", + "file": "datastream_v1_generated_datastream_fetch_static_ips_async.py", + "regionTag": "datastream_v1_generated_Datastream_FetchStaticIps_async", "segments": [ { "end": 45, @@ -855,8 +855,8 @@ "shortName": "FetchStaticIps" } }, - "file": "datastream_generated_datastream_v1_datastream_fetch_static_ips_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_FetchStaticIps_sync", + "file": "datastream_v1_generated_datastream_fetch_static_ips_sync.py", + "regionTag": "datastream_v1_generated_Datastream_FetchStaticIps_sync", "segments": [ { "end": 45, @@ -900,8 +900,8 @@ "shortName": "GetConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_get_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetConnectionProfile_async", + "file": "datastream_v1_generated_datastream_get_connection_profile_async.py", + "regionTag": "datastream_v1_generated_Datastream_GetConnectionProfile_async", "segments": [ { "end": 44, @@ -944,8 +944,8 @@ "shortName": "GetConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_get_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetConnectionProfile_sync", + "file": "datastream_v1_generated_datastream_get_connection_profile_sync.py", + "regionTag": "datastream_v1_generated_Datastream_GetConnectionProfile_sync", "segments": [ { "end": 44, @@ -989,8 +989,8 @@ "shortName": "GetPrivateConnection" } }, - "file": "datastream_generated_datastream_v1_datastream_get_private_connection_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetPrivateConnection_async", + "file": "datastream_v1_generated_datastream_get_private_connection_async.py", + "regionTag": "datastream_v1_generated_Datastream_GetPrivateConnection_async", "segments": [ { "end": 44, @@ -1033,8 +1033,8 @@ "shortName": "GetPrivateConnection" } }, - "file": "datastream_generated_datastream_v1_datastream_get_private_connection_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetPrivateConnection_sync", + "file": "datastream_v1_generated_datastream_get_private_connection_sync.py", + "regionTag": "datastream_v1_generated_Datastream_GetPrivateConnection_sync", "segments": [ { "end": 44, @@ -1078,8 +1078,8 @@ "shortName": "GetRoute" } }, - "file": "datastream_generated_datastream_v1_datastream_get_route_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetRoute_async", + "file": "datastream_v1_generated_datastream_get_route_async.py", + "regionTag": "datastream_v1_generated_Datastream_GetRoute_async", "segments": [ { "end": 44, @@ -1122,8 +1122,8 @@ "shortName": "GetRoute" } }, - "file": "datastream_generated_datastream_v1_datastream_get_route_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetRoute_sync", + "file": "datastream_v1_generated_datastream_get_route_sync.py", + "regionTag": "datastream_v1_generated_Datastream_GetRoute_sync", "segments": [ { "end": 44, @@ -1167,8 +1167,8 @@ "shortName": "GetStreamObject" } }, - "file": "datastream_generated_datastream_v1_datastream_get_stream_object_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetStreamObject_async", + "file": "datastream_v1_generated_datastream_get_stream_object_async.py", + "regionTag": "datastream_v1_generated_Datastream_GetStreamObject_async", "segments": [ { "end": 44, @@ -1211,8 +1211,8 @@ "shortName": "GetStreamObject" } }, - "file": "datastream_generated_datastream_v1_datastream_get_stream_object_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetStreamObject_sync", + "file": "datastream_v1_generated_datastream_get_stream_object_sync.py", + "regionTag": "datastream_v1_generated_Datastream_GetStreamObject_sync", "segments": [ { "end": 44, @@ -1256,8 +1256,8 @@ "shortName": "GetStream" } }, - "file": "datastream_generated_datastream_v1_datastream_get_stream_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetStream_async", + "file": "datastream_v1_generated_datastream_get_stream_async.py", + "regionTag": "datastream_v1_generated_Datastream_GetStream_async", "segments": [ { "end": 44, @@ -1300,8 +1300,8 @@ "shortName": "GetStream" } }, - "file": "datastream_generated_datastream_v1_datastream_get_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_GetStream_sync", + "file": "datastream_v1_generated_datastream_get_stream_sync.py", + "regionTag": "datastream_v1_generated_Datastream_GetStream_sync", "segments": [ { "end": 44, @@ -1345,8 +1345,8 @@ "shortName": "ListConnectionProfiles" } }, - "file": "datastream_generated_datastream_v1_datastream_list_connection_profiles_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_async", + "file": "datastream_v1_generated_datastream_list_connection_profiles_async.py", + "regionTag": "datastream_v1_generated_Datastream_ListConnectionProfiles_async", "segments": [ { "end": 45, @@ -1389,8 +1389,8 @@ "shortName": "ListConnectionProfiles" } }, - "file": "datastream_generated_datastream_v1_datastream_list_connection_profiles_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListConnectionProfiles_sync", + "file": "datastream_v1_generated_datastream_list_connection_profiles_sync.py", + "regionTag": "datastream_v1_generated_Datastream_ListConnectionProfiles_sync", "segments": [ { "end": 45, @@ -1434,8 +1434,8 @@ "shortName": "ListPrivateConnections" } }, - "file": "datastream_generated_datastream_v1_datastream_list_private_connections_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListPrivateConnections_async", + "file": "datastream_v1_generated_datastream_list_private_connections_async.py", + "regionTag": "datastream_v1_generated_Datastream_ListPrivateConnections_async", "segments": [ { "end": 45, @@ -1478,8 +1478,8 @@ "shortName": "ListPrivateConnections" } }, - "file": "datastream_generated_datastream_v1_datastream_list_private_connections_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListPrivateConnections_sync", + "file": "datastream_v1_generated_datastream_list_private_connections_sync.py", + "regionTag": "datastream_v1_generated_Datastream_ListPrivateConnections_sync", "segments": [ { "end": 45, @@ -1523,8 +1523,8 @@ "shortName": "ListRoutes" } }, - "file": "datastream_generated_datastream_v1_datastream_list_routes_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListRoutes_async", + "file": "datastream_v1_generated_datastream_list_routes_async.py", + "regionTag": "datastream_v1_generated_Datastream_ListRoutes_async", "segments": [ { "end": 45, @@ -1567,8 +1567,8 @@ "shortName": "ListRoutes" } }, - "file": "datastream_generated_datastream_v1_datastream_list_routes_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListRoutes_sync", + "file": "datastream_v1_generated_datastream_list_routes_sync.py", + "regionTag": "datastream_v1_generated_Datastream_ListRoutes_sync", "segments": [ { "end": 45, @@ -1612,8 +1612,8 @@ "shortName": "ListStreamObjects" } }, - "file": "datastream_generated_datastream_v1_datastream_list_stream_objects_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreamObjects_async", + "file": "datastream_v1_generated_datastream_list_stream_objects_async.py", + "regionTag": "datastream_v1_generated_Datastream_ListStreamObjects_async", "segments": [ { "end": 45, @@ -1656,8 +1656,8 @@ "shortName": "ListStreamObjects" } }, - "file": "datastream_generated_datastream_v1_datastream_list_stream_objects_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreamObjects_sync", + "file": "datastream_v1_generated_datastream_list_stream_objects_sync.py", + "regionTag": "datastream_v1_generated_Datastream_ListStreamObjects_sync", "segments": [ { "end": 45, @@ -1701,8 +1701,8 @@ "shortName": "ListStreams" } }, - "file": "datastream_generated_datastream_v1_datastream_list_streams_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreams_async", + "file": "datastream_v1_generated_datastream_list_streams_async.py", + "regionTag": "datastream_v1_generated_Datastream_ListStreams_async", "segments": [ { "end": 45, @@ -1745,8 +1745,8 @@ "shortName": "ListStreams" } }, - "file": "datastream_generated_datastream_v1_datastream_list_streams_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_ListStreams_sync", + "file": "datastream_v1_generated_datastream_list_streams_sync.py", + "regionTag": "datastream_v1_generated_Datastream_ListStreams_sync", "segments": [ { "end": 45, @@ -1790,8 +1790,8 @@ "shortName": "LookupStreamObject" } }, - "file": "datastream_generated_datastream_v1_datastream_lookup_stream_object_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_LookupStreamObject_async", + "file": "datastream_v1_generated_datastream_lookup_stream_object_async.py", + "regionTag": "datastream_v1_generated_Datastream_LookupStreamObject_async", "segments": [ { "end": 49, @@ -1834,8 +1834,8 @@ "shortName": "LookupStreamObject" } }, - "file": "datastream_generated_datastream_v1_datastream_lookup_stream_object_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_LookupStreamObject_sync", + "file": "datastream_v1_generated_datastream_lookup_stream_object_sync.py", + "regionTag": "datastream_v1_generated_Datastream_LookupStreamObject_sync", "segments": [ { "end": 49, @@ -1879,8 +1879,8 @@ "shortName": "StartBackfillJob" } }, - "file": "datastream_generated_datastream_v1_datastream_start_backfill_job_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_StartBackfillJob_async", + "file": "datastream_v1_generated_datastream_start_backfill_job_async.py", + "regionTag": "datastream_v1_generated_Datastream_StartBackfillJob_async", "segments": [ { "end": 44, @@ -1923,8 +1923,8 @@ "shortName": "StartBackfillJob" } }, - "file": "datastream_generated_datastream_v1_datastream_start_backfill_job_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_StartBackfillJob_sync", + "file": "datastream_v1_generated_datastream_start_backfill_job_sync.py", + "regionTag": "datastream_v1_generated_Datastream_StartBackfillJob_sync", "segments": [ { "end": 44, @@ -1968,8 +1968,8 @@ "shortName": "StopBackfillJob" } }, - "file": "datastream_generated_datastream_v1_datastream_stop_backfill_job_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_StopBackfillJob_async", + "file": "datastream_v1_generated_datastream_stop_backfill_job_async.py", + "regionTag": "datastream_v1_generated_Datastream_StopBackfillJob_async", "segments": [ { "end": 44, @@ -2012,8 +2012,8 @@ "shortName": "StopBackfillJob" } }, - "file": "datastream_generated_datastream_v1_datastream_stop_backfill_job_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_StopBackfillJob_sync", + "file": "datastream_v1_generated_datastream_stop_backfill_job_sync.py", + "regionTag": "datastream_v1_generated_Datastream_StopBackfillJob_sync", "segments": [ { "end": 44, @@ -2057,8 +2057,8 @@ "shortName": "UpdateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_update_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_async", + "file": "datastream_v1_generated_datastream_update_connection_profile_async.py", + "regionTag": "datastream_v1_generated_Datastream_UpdateConnectionProfile_async", "segments": [ { "end": 55, @@ -2101,8 +2101,8 @@ "shortName": "UpdateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1_datastream_update_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateConnectionProfile_sync", + "file": "datastream_v1_generated_datastream_update_connection_profile_sync.py", + "regionTag": "datastream_v1_generated_Datastream_UpdateConnectionProfile_sync", "segments": [ { "end": 55, @@ -2146,8 +2146,8 @@ "shortName": "UpdateStream" } }, - "file": "datastream_generated_datastream_v1_datastream_update_stream_async.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateStream_async", + "file": "datastream_v1_generated_datastream_update_stream_async.py", + "regionTag": "datastream_v1_generated_Datastream_UpdateStream_async", "segments": [ { "end": 53, @@ -2190,8 +2190,8 @@ "shortName": "UpdateStream" } }, - "file": "datastream_generated_datastream_v1_datastream_update_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1_Datastream_UpdateStream_sync", + "file": "datastream_v1_generated_datastream_update_stream_sync.py", + "regionTag": "datastream_v1_generated_Datastream_UpdateStream_sync", "segments": [ { "end": 53, diff --git a/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json b/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json index bdb6d6c..c68d11b 100644 --- a/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json +++ b/samples/generated_samples/snippet_metadata_datastream_v1alpha1.json @@ -10,8 +10,8 @@ "shortName": "CreateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_async", + "file": "datastream_v1alpha1_generated_datastream_create_connection_profile_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_async", "segments": [ { "end": 57, @@ -54,8 +54,8 @@ "shortName": "CreateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateConnectionProfile_sync", + "file": "datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_sync", "segments": [ { "end": 57, @@ -99,8 +99,8 @@ "shortName": "CreatePrivateConnection" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_private_connection_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_async", + "file": "datastream_v1alpha1_generated_datastream_create_private_connection_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_async", "segments": [ { "end": 53, @@ -143,8 +143,8 @@ "shortName": "CreatePrivateConnection" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_private_connection_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreatePrivateConnection_sync", + "file": "datastream_v1alpha1_generated_datastream_create_private_connection_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_sync", "segments": [ { "end": 53, @@ -188,8 +188,8 @@ "shortName": "CreateRoute" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_route_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_async", + "file": "datastream_v1alpha1_generated_datastream_create_route_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreateRoute_async", "segments": [ { "end": 54, @@ -232,8 +232,8 @@ "shortName": "CreateRoute" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_route_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateRoute_sync", + "file": "datastream_v1alpha1_generated_datastream_create_route_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreateRoute_sync", "segments": [ { "end": 54, @@ -277,8 +277,8 @@ "shortName": "CreateStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_stream_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateStream_async", + "file": "datastream_v1alpha1_generated_datastream_create_stream_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreateStream_async", "segments": [ { "end": 55, @@ -321,8 +321,8 @@ "shortName": "CreateStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_create_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_CreateStream_sync", + "file": "datastream_v1alpha1_generated_datastream_create_stream_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_CreateStream_sync", "segments": [ { "end": 55, @@ -366,8 +366,8 @@ "shortName": "DeleteConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_async", + "file": "datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_async", "segments": [ { "end": 48, @@ -410,8 +410,8 @@ "shortName": "DeleteConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteConnectionProfile_sync", + "file": "datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_sync", "segments": [ { "end": 48, @@ -455,8 +455,8 @@ "shortName": "DeletePrivateConnection" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_async", + "file": "datastream_v1alpha1_generated_datastream_delete_private_connection_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_async", "segments": [ { "end": 48, @@ -499,8 +499,8 @@ "shortName": "DeletePrivateConnection" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_private_connection_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeletePrivateConnection_sync", + "file": "datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_sync", "segments": [ { "end": 48, @@ -544,8 +544,8 @@ "shortName": "DeleteRoute" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_route_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_async", + "file": "datastream_v1alpha1_generated_datastream_delete_route_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteRoute_async", "segments": [ { "end": 48, @@ -588,8 +588,8 @@ "shortName": "DeleteRoute" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_route_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteRoute_sync", + "file": "datastream_v1alpha1_generated_datastream_delete_route_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteRoute_sync", "segments": [ { "end": 48, @@ -633,8 +633,8 @@ "shortName": "DeleteStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_stream_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_async", + "file": "datastream_v1alpha1_generated_datastream_delete_stream_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteStream_async", "segments": [ { "end": 48, @@ -677,8 +677,8 @@ "shortName": "DeleteStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_delete_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DeleteStream_sync", + "file": "datastream_v1alpha1_generated_datastream_delete_stream_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteStream_sync", "segments": [ { "end": 48, @@ -722,8 +722,8 @@ "shortName": "DiscoverConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_async", + "file": "datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_async", "segments": [ { "end": 53, @@ -766,8 +766,8 @@ "shortName": "DiscoverConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_discover_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_DiscoverConnectionProfile_sync", + "file": "datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_sync", "segments": [ { "end": 53, @@ -811,8 +811,8 @@ "shortName": "FetchErrors" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_errors_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_async", + "file": "datastream_v1alpha1_generated_datastream_fetch_errors_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_FetchErrors_async", "segments": [ { "end": 47, @@ -855,8 +855,8 @@ "shortName": "FetchErrors" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_errors_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchErrors_sync", + "file": "datastream_v1alpha1_generated_datastream_fetch_errors_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_FetchErrors_sync", "segments": [ { "end": 47, @@ -900,8 +900,8 @@ "shortName": "FetchStaticIps" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_async", + "file": "datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_FetchStaticIps_async", "segments": [ { "end": 45, @@ -944,8 +944,8 @@ "shortName": "FetchStaticIps" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_fetch_static_ips_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_FetchStaticIps_sync", + "file": "datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_FetchStaticIps_sync", "segments": [ { "end": 45, @@ -989,8 +989,8 @@ "shortName": "GetConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_async", + "file": "datastream_v1alpha1_generated_datastream_get_connection_profile_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetConnectionProfile_async", "segments": [ { "end": 44, @@ -1033,8 +1033,8 @@ "shortName": "GetConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetConnectionProfile_sync", + "file": "datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetConnectionProfile_sync", "segments": [ { "end": 44, @@ -1078,8 +1078,8 @@ "shortName": "GetPrivateConnection" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_private_connection_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_async", + "file": "datastream_v1alpha1_generated_datastream_get_private_connection_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetPrivateConnection_async", "segments": [ { "end": 44, @@ -1122,8 +1122,8 @@ "shortName": "GetPrivateConnection" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_private_connection_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetPrivateConnection_sync", + "file": "datastream_v1alpha1_generated_datastream_get_private_connection_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetPrivateConnection_sync", "segments": [ { "end": 44, @@ -1167,8 +1167,8 @@ "shortName": "GetRoute" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_route_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetRoute_async", + "file": "datastream_v1alpha1_generated_datastream_get_route_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetRoute_async", "segments": [ { "end": 44, @@ -1211,8 +1211,8 @@ "shortName": "GetRoute" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_route_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetRoute_sync", + "file": "datastream_v1alpha1_generated_datastream_get_route_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetRoute_sync", "segments": [ { "end": 44, @@ -1256,8 +1256,8 @@ "shortName": "GetStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_stream_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetStream_async", + "file": "datastream_v1alpha1_generated_datastream_get_stream_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetStream_async", "segments": [ { "end": 44, @@ -1300,8 +1300,8 @@ "shortName": "GetStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_get_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_GetStream_sync", + "file": "datastream_v1alpha1_generated_datastream_get_stream_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_GetStream_sync", "segments": [ { "end": 44, @@ -1345,8 +1345,8 @@ "shortName": "ListConnectionProfiles" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_async", + "file": "datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_async", "segments": [ { "end": 45, @@ -1389,8 +1389,8 @@ "shortName": "ListConnectionProfiles" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_connection_profiles_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListConnectionProfiles_sync", + "file": "datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_sync", "segments": [ { "end": 45, @@ -1434,8 +1434,8 @@ "shortName": "ListPrivateConnections" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_private_connections_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_async", + "file": "datastream_v1alpha1_generated_datastream_list_private_connections_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListPrivateConnections_async", "segments": [ { "end": 45, @@ -1478,8 +1478,8 @@ "shortName": "ListPrivateConnections" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_private_connections_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListPrivateConnections_sync", + "file": "datastream_v1alpha1_generated_datastream_list_private_connections_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListPrivateConnections_sync", "segments": [ { "end": 45, @@ -1523,8 +1523,8 @@ "shortName": "ListRoutes" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_routes_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_async", + "file": "datastream_v1alpha1_generated_datastream_list_routes_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListRoutes_async", "segments": [ { "end": 45, @@ -1567,8 +1567,8 @@ "shortName": "ListRoutes" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_routes_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListRoutes_sync", + "file": "datastream_v1alpha1_generated_datastream_list_routes_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListRoutes_sync", "segments": [ { "end": 45, @@ -1612,8 +1612,8 @@ "shortName": "ListStreams" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_streams_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListStreams_async", + "file": "datastream_v1alpha1_generated_datastream_list_streams_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListStreams_async", "segments": [ { "end": 45, @@ -1656,8 +1656,8 @@ "shortName": "ListStreams" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_list_streams_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_ListStreams_sync", + "file": "datastream_v1alpha1_generated_datastream_list_streams_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_ListStreams_sync", "segments": [ { "end": 45, @@ -1701,8 +1701,8 @@ "shortName": "UpdateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_async", + "file": "datastream_v1alpha1_generated_datastream_update_connection_profile_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_async", "segments": [ { "end": 55, @@ -1745,8 +1745,8 @@ "shortName": "UpdateConnectionProfile" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_update_connection_profile_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateConnectionProfile_sync", + "file": "datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_sync", "segments": [ { "end": 55, @@ -1790,8 +1790,8 @@ "shortName": "UpdateStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_update_stream_async.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_async", + "file": "datastream_v1alpha1_generated_datastream_update_stream_async.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_UpdateStream_async", "segments": [ { "end": 53, @@ -1834,8 +1834,8 @@ "shortName": "UpdateStream" } }, - "file": "datastream_generated_datastream_v1alpha1_datastream_update_stream_sync.py", - "regionTag": "datastream_generated_datastream_v1alpha1_Datastream_UpdateStream_sync", + "file": "datastream_v1alpha1_generated_datastream_update_stream_sync.py", + "regionTag": "datastream_v1alpha1_generated_Datastream_UpdateStream_sync", "segments": [ { "end": 53, From b443b28cf94cd6f7f9ad572d390d41b7bd8ecaf1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 26 Feb 2022 05:20:22 -0500 Subject: [PATCH 3/4] chore: update copyright year to 2022 (#69) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update copyright year to 2022 PiperOrigin-RevId: 431037888 Source-Link: https://github.com/googleapis/googleapis/commit/b3397f5febbf21dfc69b875ddabaf76bee765058 Source-Link: https://github.com/googleapis/googleapis-gen/commit/510b54e1cdefd53173984df16645081308fe897e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTEwYjU0ZTFjZGVmZDUzMTczOTg0ZGYxNjY0NTA4MTMwOGZlODk3ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google/cloud/datastream/__init__.py | 2 +- google/cloud/datastream_v1/__init__.py | 2 +- google/cloud/datastream_v1/services/__init__.py | 2 +- google/cloud/datastream_v1/services/datastream/__init__.py | 2 +- google/cloud/datastream_v1/services/datastream/async_client.py | 2 +- google/cloud/datastream_v1/services/datastream/client.py | 2 +- google/cloud/datastream_v1/services/datastream/pagers.py | 2 +- .../datastream_v1/services/datastream/transports/__init__.py | 2 +- .../cloud/datastream_v1/services/datastream/transports/base.py | 2 +- .../cloud/datastream_v1/services/datastream/transports/grpc.py | 2 +- .../services/datastream/transports/grpc_asyncio.py | 2 +- google/cloud/datastream_v1/types/__init__.py | 2 +- google/cloud/datastream_v1/types/datastream.py | 2 +- google/cloud/datastream_v1/types/datastream_resources.py | 2 +- google/cloud/datastream_v1alpha1/__init__.py | 2 +- google/cloud/datastream_v1alpha1/services/__init__.py | 2 +- .../cloud/datastream_v1alpha1/services/datastream/__init__.py | 2 +- .../datastream_v1alpha1/services/datastream/async_client.py | 2 +- google/cloud/datastream_v1alpha1/services/datastream/client.py | 2 +- google/cloud/datastream_v1alpha1/services/datastream/pagers.py | 2 +- .../services/datastream/transports/__init__.py | 2 +- .../datastream_v1alpha1/services/datastream/transports/base.py | 2 +- .../datastream_v1alpha1/services/datastream/transports/grpc.py | 2 +- .../services/datastream/transports/grpc_asyncio.py | 2 +- google/cloud/datastream_v1alpha1/types/__init__.py | 2 +- google/cloud/datastream_v1alpha1/types/datastream.py | 2 +- google/cloud/datastream_v1alpha1/types/datastream_resources.py | 2 +- ...m_v1_generated_datastream_create_connection_profile_async.py | 2 +- ...am_v1_generated_datastream_create_connection_profile_sync.py | 2 +- ...m_v1_generated_datastream_create_private_connection_async.py | 2 +- ...am_v1_generated_datastream_create_private_connection_sync.py | 2 +- .../datastream_v1_generated_datastream_create_route_async.py | 2 +- .../datastream_v1_generated_datastream_create_route_sync.py | 2 +- .../datastream_v1_generated_datastream_create_stream_async.py | 2 +- .../datastream_v1_generated_datastream_create_stream_sync.py | 2 +- ...m_v1_generated_datastream_delete_connection_profile_async.py | 2 +- ...am_v1_generated_datastream_delete_connection_profile_sync.py | 2 +- ...m_v1_generated_datastream_delete_private_connection_async.py | 2 +- ...am_v1_generated_datastream_delete_private_connection_sync.py | 2 +- .../datastream_v1_generated_datastream_delete_route_async.py | 2 +- .../datastream_v1_generated_datastream_delete_route_sync.py | 2 +- .../datastream_v1_generated_datastream_delete_stream_async.py | 2 +- .../datastream_v1_generated_datastream_delete_stream_sync.py | 2 +- ...v1_generated_datastream_discover_connection_profile_async.py | 2 +- ..._v1_generated_datastream_discover_connection_profile_sync.py | 2 +- ...datastream_v1_generated_datastream_fetch_static_ips_async.py | 2 +- .../datastream_v1_generated_datastream_fetch_static_ips_sync.py | 2 +- ...ream_v1_generated_datastream_get_connection_profile_async.py | 2 +- ...tream_v1_generated_datastream_get_connection_profile_sync.py | 2 +- ...ream_v1_generated_datastream_get_private_connection_async.py | 2 +- ...tream_v1_generated_datastream_get_private_connection_sync.py | 2 +- .../datastream_v1_generated_datastream_get_route_async.py | 2 +- .../datastream_v1_generated_datastream_get_route_sync.py | 2 +- .../datastream_v1_generated_datastream_get_stream_async.py | 2 +- ...atastream_v1_generated_datastream_get_stream_object_async.py | 2 +- ...datastream_v1_generated_datastream_get_stream_object_sync.py | 2 +- .../datastream_v1_generated_datastream_get_stream_sync.py | 2 +- ...am_v1_generated_datastream_list_connection_profiles_async.py | 2 +- ...eam_v1_generated_datastream_list_connection_profiles_sync.py | 2 +- ...am_v1_generated_datastream_list_private_connections_async.py | 2 +- ...eam_v1_generated_datastream_list_private_connections_sync.py | 2 +- .../datastream_v1_generated_datastream_list_routes_async.py | 2 +- .../datastream_v1_generated_datastream_list_routes_sync.py | 2 +- ...astream_v1_generated_datastream_list_stream_objects_async.py | 2 +- ...tastream_v1_generated_datastream_list_stream_objects_sync.py | 2 +- .../datastream_v1_generated_datastream_list_streams_async.py | 2 +- .../datastream_v1_generated_datastream_list_streams_sync.py | 2 +- ...stream_v1_generated_datastream_lookup_stream_object_async.py | 2 +- ...astream_v1_generated_datastream_lookup_stream_object_sync.py | 2 +- ...tastream_v1_generated_datastream_start_backfill_job_async.py | 2 +- ...atastream_v1_generated_datastream_start_backfill_job_sync.py | 2 +- ...atastream_v1_generated_datastream_stop_backfill_job_async.py | 2 +- ...datastream_v1_generated_datastream_stop_backfill_job_sync.py | 2 +- ...m_v1_generated_datastream_update_connection_profile_async.py | 2 +- ...am_v1_generated_datastream_update_connection_profile_sync.py | 2 +- .../datastream_v1_generated_datastream_update_stream_async.py | 2 +- .../datastream_v1_generated_datastream_update_stream_sync.py | 2 +- ...pha1_generated_datastream_create_connection_profile_async.py | 2 +- ...lpha1_generated_datastream_create_connection_profile_sync.py | 2 +- ...pha1_generated_datastream_create_private_connection_async.py | 2 +- ...lpha1_generated_datastream_create_private_connection_sync.py | 2 +- ...tastream_v1alpha1_generated_datastream_create_route_async.py | 2 +- ...atastream_v1alpha1_generated_datastream_create_route_sync.py | 2 +- ...astream_v1alpha1_generated_datastream_create_stream_async.py | 2 +- ...tastream_v1alpha1_generated_datastream_create_stream_sync.py | 2 +- ...pha1_generated_datastream_delete_connection_profile_async.py | 2 +- ...lpha1_generated_datastream_delete_connection_profile_sync.py | 2 +- ...pha1_generated_datastream_delete_private_connection_async.py | 2 +- ...lpha1_generated_datastream_delete_private_connection_sync.py | 2 +- ...tastream_v1alpha1_generated_datastream_delete_route_async.py | 2 +- ...atastream_v1alpha1_generated_datastream_delete_route_sync.py | 2 +- ...astream_v1alpha1_generated_datastream_delete_stream_async.py | 2 +- ...tastream_v1alpha1_generated_datastream_delete_stream_sync.py | 2 +- ...a1_generated_datastream_discover_connection_profile_async.py | 2 +- ...ha1_generated_datastream_discover_connection_profile_sync.py | 2 +- ...tastream_v1alpha1_generated_datastream_fetch_errors_async.py | 2 +- ...atastream_v1alpha1_generated_datastream_fetch_errors_sync.py | 2 +- ...ream_v1alpha1_generated_datastream_fetch_static_ips_async.py | 2 +- ...tream_v1alpha1_generated_datastream_fetch_static_ips_sync.py | 2 +- ...1alpha1_generated_datastream_get_connection_profile_async.py | 2 +- ...v1alpha1_generated_datastream_get_connection_profile_sync.py | 2 +- ...1alpha1_generated_datastream_get_private_connection_async.py | 2 +- ...v1alpha1_generated_datastream_get_private_connection_sync.py | 2 +- .../datastream_v1alpha1_generated_datastream_get_route_async.py | 2 +- .../datastream_v1alpha1_generated_datastream_get_route_sync.py | 2 +- ...datastream_v1alpha1_generated_datastream_get_stream_async.py | 2 +- .../datastream_v1alpha1_generated_datastream_get_stream_sync.py | 2 +- ...lpha1_generated_datastream_list_connection_profiles_async.py | 2 +- ...alpha1_generated_datastream_list_connection_profiles_sync.py | 2 +- ...lpha1_generated_datastream_list_private_connections_async.py | 2 +- ...alpha1_generated_datastream_list_private_connections_sync.py | 2 +- ...atastream_v1alpha1_generated_datastream_list_routes_async.py | 2 +- ...datastream_v1alpha1_generated_datastream_list_routes_sync.py | 2 +- ...tastream_v1alpha1_generated_datastream_list_streams_async.py | 2 +- ...atastream_v1alpha1_generated_datastream_list_streams_sync.py | 2 +- ...pha1_generated_datastream_update_connection_profile_async.py | 2 +- ...lpha1_generated_datastream_update_connection_profile_sync.py | 2 +- ...astream_v1alpha1_generated_datastream_update_stream_async.py | 2 +- ...tastream_v1alpha1_generated_datastream_update_stream_sync.py | 2 +- scripts/fixup_datastream_v1_keywords.py | 2 +- scripts/fixup_datastream_v1alpha1_keywords.py | 2 +- tests/__init__.py | 2 +- tests/unit/__init__.py | 2 +- tests/unit/gapic/__init__.py | 2 +- tests/unit/gapic/datastream_v1/__init__.py | 2 +- tests/unit/gapic/datastream_v1/test_datastream.py | 2 +- tests/unit/gapic/datastream_v1alpha1/__init__.py | 2 +- tests/unit/gapic/datastream_v1alpha1/test_datastream.py | 2 +- 128 files changed, 128 insertions(+), 128 deletions(-) diff --git a/google/cloud/datastream/__init__.py b/google/cloud/datastream/__init__.py index 2fb1855..8c5ff0b 100644 --- a/google/cloud/datastream/__init__.py +++ b/google/cloud/datastream/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/__init__.py b/google/cloud/datastream_v1/__init__.py index 73b1bed..be9f50e 100644 --- a/google/cloud/datastream_v1/__init__.py +++ b/google/cloud/datastream_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/__init__.py b/google/cloud/datastream_v1/services/__init__.py index 4de6597..e8e1c38 100644 --- a/google/cloud/datastream_v1/services/__init__.py +++ b/google/cloud/datastream_v1/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/__init__.py b/google/cloud/datastream_v1/services/datastream/__init__.py index b2aee97..0e6c29f 100644 --- a/google/cloud/datastream_v1/services/datastream/__init__.py +++ b/google/cloud/datastream_v1/services/datastream/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/async_client.py b/google/cloud/datastream_v1/services/datastream/async_client.py index df758e2..c098b9b 100644 --- a/google/cloud/datastream_v1/services/datastream/async_client.py +++ b/google/cloud/datastream_v1/services/datastream/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/client.py b/google/cloud/datastream_v1/services/datastream/client.py index 66f547b..3ab4e19 100644 --- a/google/cloud/datastream_v1/services/datastream/client.py +++ b/google/cloud/datastream_v1/services/datastream/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/pagers.py b/google/cloud/datastream_v1/services/datastream/pagers.py index 530d1ae..7617d90 100644 --- a/google/cloud/datastream_v1/services/datastream/pagers.py +++ b/google/cloud/datastream_v1/services/datastream/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/transports/__init__.py b/google/cloud/datastream_v1/services/datastream/transports/__init__.py index b7d2ccc..8684788 100644 --- a/google/cloud/datastream_v1/services/datastream/transports/__init__.py +++ b/google/cloud/datastream_v1/services/datastream/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/transports/base.py b/google/cloud/datastream_v1/services/datastream/transports/base.py index a816f54..6be6f26 100644 --- a/google/cloud/datastream_v1/services/datastream/transports/base.py +++ b/google/cloud/datastream_v1/services/datastream/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/transports/grpc.py b/google/cloud/datastream_v1/services/datastream/transports/grpc.py index 7e82de6..e9b279d 100644 --- a/google/cloud/datastream_v1/services/datastream/transports/grpc.py +++ b/google/cloud/datastream_v1/services/datastream/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/services/datastream/transports/grpc_asyncio.py b/google/cloud/datastream_v1/services/datastream/transports/grpc_asyncio.py index e292d69..0e9c610 100644 --- a/google/cloud/datastream_v1/services/datastream/transports/grpc_asyncio.py +++ b/google/cloud/datastream_v1/services/datastream/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/types/__init__.py b/google/cloud/datastream_v1/types/__init__.py index 1aafa21..ea4dd7f 100644 --- a/google/cloud/datastream_v1/types/__init__.py +++ b/google/cloud/datastream_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/types/datastream.py b/google/cloud/datastream_v1/types/datastream.py index 10e6772..1e57cc0 100644 --- a/google/cloud/datastream_v1/types/datastream.py +++ b/google/cloud/datastream_v1/types/datastream.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1/types/datastream_resources.py b/google/cloud/datastream_v1/types/datastream_resources.py index dd0ade4..71eab25 100644 --- a/google/cloud/datastream_v1/types/datastream_resources.py +++ b/google/cloud/datastream_v1/types/datastream_resources.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/__init__.py b/google/cloud/datastream_v1alpha1/__init__.py index 1481aca..e143d2e 100644 --- a/google/cloud/datastream_v1alpha1/__init__.py +++ b/google/cloud/datastream_v1alpha1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/__init__.py b/google/cloud/datastream_v1alpha1/services/__init__.py index 4de6597..e8e1c38 100644 --- a/google/cloud/datastream_v1alpha1/services/__init__.py +++ b/google/cloud/datastream_v1alpha1/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/__init__.py b/google/cloud/datastream_v1alpha1/services/datastream/__init__.py index b2aee97..0e6c29f 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/__init__.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/async_client.py b/google/cloud/datastream_v1alpha1/services/datastream/async_client.py index 21f7a16..e9e829c 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/async_client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/client.py b/google/cloud/datastream_v1alpha1/services/datastream/client.py index 84978c5..09df963 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/client.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/pagers.py b/google/cloud/datastream_v1alpha1/services/datastream/pagers.py index 8c0e91e..68b28f6 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/pagers.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/transports/__init__.py b/google/cloud/datastream_v1alpha1/services/datastream/transports/__init__.py index b7d2ccc..8684788 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/transports/__init__.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/transports/base.py b/google/cloud/datastream_v1alpha1/services/datastream/transports/base.py index 43d4725..37457e4 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/transports/base.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc.py b/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc.py index 392cb31..6bfd130 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc_asyncio.py b/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc_asyncio.py index d50d487..d36b5b6 100644 --- a/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc_asyncio.py +++ b/google/cloud/datastream_v1alpha1/services/datastream/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/types/__init__.py b/google/cloud/datastream_v1alpha1/types/__init__.py index 6b7ad92..bcb6350 100644 --- a/google/cloud/datastream_v1alpha1/types/__init__.py +++ b/google/cloud/datastream_v1alpha1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/types/datastream.py b/google/cloud/datastream_v1alpha1/types/datastream.py index cfdf1d3..327eb74 100644 --- a/google/cloud/datastream_v1alpha1/types/datastream.py +++ b/google/cloud/datastream_v1alpha1/types/datastream.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/cloud/datastream_v1alpha1/types/datastream_resources.py b/google/cloud/datastream_v1alpha1/types/datastream_resources.py index 8a41a4b..b6c2f08 100644 --- a/google/cloud/datastream_v1alpha1/types/datastream_resources.py +++ b/google/cloud/datastream_v1alpha1/types/datastream_resources.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py index 95b5392..1d8dd91 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py index e48bd6b..baa6c1a 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py index b614391..ed52a6b 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py index 2613db5..aa7c290 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_private_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py index 45d5137..2b2f489 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_route_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py index 71ea25f..d449442 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_route_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py index 98005ef..639ee71 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py index 01e1c70..cdb75f6 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_create_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py index f62d257..0a36465 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py index f6d3f1f..886ecf6 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py index ba8e816..b982710 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py index b02cb6f..e4efc38 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_private_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py index e7bcfd6..11d582f 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py index c64834e..71143c5 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_route_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py index c092db2..0c21081 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py index 3b8d3d8..0c9fc5a 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_delete_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py index 22903b7..fc4a8fd 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py index ddf1c22..d4e13e0 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_discover_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py index 56a6313..f4eba29 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py index 9319a19..5e0ab53 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_fetch_static_ips_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py index 9e26b56..f9251df 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py index d84c8f7..0ab6f99 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py index c10d5f5..f233545 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py index b1446a5..8e71f97 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_private_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py index c340788..9ee0d5f 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_route_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py index 331d691..e33689d 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_route_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py index e45ded2..82d5e50 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py index 7eb9be6..ff1c983 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py index c244a8d..bcdee83 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_object_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py index dca8bc8..83392d0 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_get_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py index 0403c43..498805a 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py index badd7ea..430bfce 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_connection_profiles_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py index ceebc21..5e0ee81 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py index 29222bd..26ea0f3 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_private_connections_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py index d152696..378a026 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py index 2e56395..a542133 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_routes_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py index 9ff7453..d4a26f0 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py index 2378cc9..b7bd2d3 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_stream_objects_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py index 7eed340..984b5cc 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py index aefdd1f..12eb779 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_list_streams_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py index 6c64482..d348234 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py index 1b7d4b2..71a4fbf 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_lookup_stream_object_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py index 318f6af..ea97fc6 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py index 04c3029..a4b8c2b 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_start_backfill_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py index 355c1cb..87fc602 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py index 00a3a24..02fb2fa 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_stop_backfill_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py index 0aa293a..6674c34 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py index 7201f02..c8a6b72 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py index 63a7448..1eeff0c 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py index 1d1ed2c..7631c17 100644 --- a/samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py +++ b/samples/generated_samples/datastream_v1_generated_datastream_update_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py index 5ecf5e8..4c4d714 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py index ef4eccc..f8643ee 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py index 4fa7a5b..df38638 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py index 760d35f..975ff1f 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_private_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py index afa89fe..c0b70df 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py index d848d05..7d44fb5 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_route_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py index dd8a188..740be9d 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py index bd3c33c..b379d26 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_create_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py index 6b1687b..870da22 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py index 1dd79dc..5df5511 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py index de2b72b..4a87aec 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py index 03ad8fa..c92c9ba 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py index 6b610a9..1933b6e 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py index 27efe88..d02ceed 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_route_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py index 35fb233..1d9cffe 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py index 8a5f824..e5b8a35 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py index 98f10b9..e1b0990 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py index 7486c81..7d6fada 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_discover_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py index b284f54..f610461 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py index 3ddb770..06e649f 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_errors_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py index c2b3540..8cb3f91 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py index 296e183..1451127 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_fetch_static_ips_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py index 1c34dfe..518299d 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py index 2c8ddf6..eb645f1 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py index e856add..a4dffb5 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py index f896c2f..c052f23 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_private_connection_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py index 62a5d13..b3c5b99 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py index 2af1d80..dc497a3 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_route_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py index e3fa37a..419a69f 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py index f1a4119..90487f8 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_get_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py index 0b190c7..a4ca948 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py index 4ef1127..cca48a0 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_connection_profiles_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py index 4f0894a..f479143 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py index 5f45675..34a4fbc 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_private_connections_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py index adefcca..21efde0 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py index 86f1045..2db21b1 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_routes_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py index 35ae58a..b5eecdc 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py index 328d077..68b80a4 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_list_streams_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py index 2bcc63b..838c268 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py index 4034592..89809a4 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_connection_profile_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py index 47db18d..c9ca440 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py index 147501c..f86ab80 100644 --- a/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py +++ b/samples/generated_samples/datastream_v1alpha1_generated_datastream_update_stream_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/scripts/fixup_datastream_v1_keywords.py b/scripts/fixup_datastream_v1_keywords.py index 00b466f..c4b4fb5 100644 --- a/scripts/fixup_datastream_v1_keywords.py +++ b/scripts/fixup_datastream_v1_keywords.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/scripts/fixup_datastream_v1alpha1_keywords.py b/scripts/fixup_datastream_v1alpha1_keywords.py index 636ec17..74accfd 100644 --- a/scripts/fixup_datastream_v1alpha1_keywords.py +++ b/scripts/fixup_datastream_v1alpha1_keywords.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/__init__.py b/tests/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/__init__.py b/tests/unit/gapic/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/gapic/__init__.py +++ b/tests/unit/gapic/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/datastream_v1/__init__.py b/tests/unit/gapic/datastream_v1/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/gapic/datastream_v1/__init__.py +++ b/tests/unit/gapic/datastream_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/datastream_v1/test_datastream.py b/tests/unit/gapic/datastream_v1/test_datastream.py index 95c5efa..ce7fc66 100644 --- a/tests/unit/gapic/datastream_v1/test_datastream.py +++ b/tests/unit/gapic/datastream_v1/test_datastream.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/datastream_v1alpha1/__init__.py b/tests/unit/gapic/datastream_v1alpha1/__init__.py index 4de6597..e8e1c38 100644 --- a/tests/unit/gapic/datastream_v1alpha1/__init__.py +++ b/tests/unit/gapic/datastream_v1alpha1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/gapic/datastream_v1alpha1/test_datastream.py b/tests/unit/gapic/datastream_v1alpha1/test_datastream.py index 0c32ccb..e714883 100644 --- a/tests/unit/gapic/datastream_v1alpha1/test_datastream.py +++ b/tests/unit/gapic/datastream_v1alpha1/test_datastream.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From b057fd98e21e3d8fa1aec6c8647a148e495e25e2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 17:57:59 -0500 Subject: [PATCH 4/4] chore(main): release 0.4.1 (#67) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2cf1a5..b7c4010 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.4.1](https://github.com/googleapis/python-datastream/compare/v0.4.0...v0.4.1) (2022-02-26) + + +### Documentation + +* add generated snippets ([#66](https://github.com/googleapis/python-datastream/issues/66)) ([75656c1](https://github.com/googleapis/python-datastream/commit/75656c11c8e9ff8e0ffc509476477db268aca08d)) + ## [0.4.0](https://github.com/googleapis/python-datastream/compare/v0.3.1...v0.4.0) (2022-02-03) diff --git a/setup.py b/setup.py index ececfe8..b42a5e7 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-datastream" description = "Datastream client library" -version = "0.4.0" +version = "0.4.1" release_status = "Development Status :: 3 - Alpha" url = "https://github.com/googleapis/python-datastream" dependencies = [