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" + } + ] + } + ] +}