/// <summary>Snippet for DeleteConnectionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeleteConnectionResourceNamesAsync() { // Create client ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync(); // Initialize request argument(s) ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"); // Make the request await connectionServiceClient.DeleteConnectionAsync(name); }
/// <summary>Snippet for DeleteConnectionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeleteConnectionAsync() { // Create client ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]"; // Make the request await connectionServiceClient.DeleteConnectionAsync(name); }
/// <summary>Snippet for DeleteConnectionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeleteConnectionRequestObjectAsync() { // Create client ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync(); // Initialize request argument(s) DeleteConnectionRequest request = new DeleteConnectionRequest { ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"), }; // Make the request await connectionServiceClient.DeleteConnectionAsync(request); }
/// <summary>Snippet for DeleteConnectionAsync</summary> public async Task DeleteConnectionResourceNamesAsync() { // Snippet: DeleteConnectionAsync(ConnectionName, CallSettings) // Additional: DeleteConnectionAsync(ConnectionName, CancellationToken) // Create client ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync(); // Initialize request argument(s) ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"); // Make the request await connectionServiceClient.DeleteConnectionAsync(name); // End snippet }
/// <summary>Snippet for DeleteConnectionAsync</summary> public async Task DeleteConnectionAsync() { // Snippet: DeleteConnectionAsync(string, CallSettings) // Additional: DeleteConnectionAsync(string, CancellationToken) // Create client ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]"; // Make the request await connectionServiceClient.DeleteConnectionAsync(name); // End snippet }