async def sample_update_sink(): """Snippet for update_sink""" # Create a client client = logging_v2.ConfigServiceV2AsyncClient() # Initialize request argument(s) request = logging_v2.UpdateSinkRequest() # Make the request response = await client.update_sink(request=request) # Handle response print("{}".format(response))
async def sample_update_sink(): # Create a client client = logging_v2.ConfigServiceV2AsyncClient() # Initialize request argument(s) sink = logging_v2.LogSink() sink.name = "name_value" sink.destination = "destination_value" request = logging_v2.UpdateSinkRequest( sink_name="sink_name_value", sink=sink, ) # Make the request response = await client.update_sink(request=request) # Handle the response print(response)