/// <summary>Snippet for DeleteProductAsync</summary> public async Task DeleteProductResourceNamesAsync() { // Snippet: DeleteProductAsync(ProductName, CallSettings) // Additional: DeleteProductAsync(ProductName, CancellationToken) // Create client ProductServiceClient productServiceClient = await ProductServiceClient.CreateAsync(); // Initialize request argument(s) ProductName name = ProductName.FromProjectLocationCatalogBranchProduct("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]", "[PRODUCT]"); // Make the request await productServiceClient.DeleteProductAsync(name); // End snippet }
/// <summary>Snippet for DeleteProductAsync</summary> public async Task DeleteProductAsync() { // Snippet: DeleteProductAsync(string, CallSettings) // Additional: DeleteProductAsync(string, CancellationToken) // Create client ProductServiceClient productServiceClient = await ProductServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]/branches/[BRANCH]/products/[PRODUCT]"; // Make the request await productServiceClient.DeleteProductAsync(name); // End snippet }