/// <summary>Snippet for DeleteAutoscalingPolicyAsync</summary> public async Task DeleteAutoscalingPolicyAsync() { // Snippet: DeleteAutoscalingPolicyAsync(string, CallSettings) // Additional: DeleteAutoscalingPolicyAsync(string, CancellationToken) // Create client AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = await AutoscalingPolicyServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/autoscalingPolicies/[AUTOSCALING_POLICY]"; // Make the request await autoscalingPolicyServiceClient.DeleteAutoscalingPolicyAsync(name); // End snippet }
/// <summary>Snippet for DeleteAutoscalingPolicyAsync</summary> public async Task DeleteAutoscalingPolicyResourceNamesAsync() { // Snippet: DeleteAutoscalingPolicyAsync(AutoscalingPolicyName, CallSettings) // Additional: DeleteAutoscalingPolicyAsync(AutoscalingPolicyName, CancellationToken) // Create client AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = await AutoscalingPolicyServiceClient.CreateAsync(); // Initialize request argument(s) AutoscalingPolicyName name = AutoscalingPolicyName.FromProjectLocationAutoscalingPolicy("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); // Make the request await autoscalingPolicyServiceClient.DeleteAutoscalingPolicyAsync(name); // End snippet }
/// <summary>Snippet for DeleteAutoscalingPolicyAsync</summary> public async Task DeleteAutoscalingPolicyAsync() { // Snippet: DeleteAutoscalingPolicyAsync(string,CallSettings) // Additional: DeleteAutoscalingPolicyAsync(string,CancellationToken) // Create client AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = await AutoscalingPolicyServiceClient.CreateAsync(); // Initialize request argument(s) string formattedName = new AutoscalingPolicyName("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]").ToString(); // Make the request await autoscalingPolicyServiceClient.DeleteAutoscalingPolicyAsync(formattedName); // End snippet }