Example #1
0
        /// <summary>Snippet for DeleteAutoscalingPolicy</summary>
        public void DeleteAutoscalingPolicyResourceNames()
        {
            // Snippet: DeleteAutoscalingPolicy(AutoscalingPolicyName, CallSettings)
            // Create client
            AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
            // Initialize request argument(s)
            AutoscalingPolicyName name = AutoscalingPolicyName.FromProjectLocationAutoscalingPolicy("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");

            // Make the request
            autoscalingPolicyServiceClient.DeleteAutoscalingPolicy(name);
            // End snippet
        }
Example #2
0
        /// <summary>Snippet for DeleteAutoscalingPolicy</summary>
        public void DeleteAutoscalingPolicy()
        {
            // Snippet: DeleteAutoscalingPolicy(string, CallSettings)
            // Create client
            AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/autoscalingPolicies/[AUTOSCALING_POLICY]";

            // Make the request
            autoscalingPolicyServiceClient.DeleteAutoscalingPolicy(name);
            // End snippet
        }
        /// <summary>Snippet for DeleteAutoscalingPolicy</summary>
        public void DeleteAutoscalingPolicy()
        {
            // Snippet: DeleteAutoscalingPolicy(string,CallSettings)
            // Create client
            AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
            // Initialize request argument(s)
            string formattedName = new AutoscalingPolicyName("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]").ToString();

            // Make the request
            autoscalingPolicyServiceClient.DeleteAutoscalingPolicy(formattedName);
            // End snippet
        }
Example #4
0
        /// <summary>Snippet for DeleteAutoscalingPolicy</summary>
        public void DeleteAutoscalingPolicyRequestObject()
        {
            // Snippet: DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest, CallSettings)
            // Create client
            AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
            // Initialize request argument(s)
            DeleteAutoscalingPolicyRequest request = new DeleteAutoscalingPolicyRequest
            {
                AutoscalingPolicyName = AutoscalingPolicyName.FromProjectLocationAutoscalingPolicy("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"),
            };

            // Make the request
            autoscalingPolicyServiceClient.DeleteAutoscalingPolicy(request);
            // End snippet
        }
        /// <summary>Snippet for DeleteAutoscalingPolicy</summary>
        public void DeleteAutoscalingPolicy_RequestObject()
        {
            // Snippet: DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest,CallSettings)
            // Create client
            AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
            // Initialize request argument(s)
            DeleteAutoscalingPolicyRequest request = new DeleteAutoscalingPolicyRequest
            {
                Name = new AutoscalingPolicyName("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]").ToString(),
            };

            // Make the request
            autoscalingPolicyServiceClient.DeleteAutoscalingPolicy(request);
            // End snippet
        }