def sample_create_sink(): """Snippet for create_sink""" # Create a client client = logging_v2.ConfigServiceV2Client() # Initialize request argument(s) request = logging_v2.CreateSinkRequest() # Make the request response = client.create_sink(request=request) # Handle response print("{}".format(response))
def sample_create_sink(): # Create a client client = logging_v2.ConfigServiceV2Client() # Initialize request argument(s) sink = logging_v2.LogSink() sink.name = "name_value" sink.destination = "destination_value" request = logging_v2.CreateSinkRequest( parent="parent_value", sink=sink, ) # Make the request response = client.create_sink(request=request) # Handle the response print(response)