Esempio n. 1
0
 /// <summary>Snippet for GetAutoscalingPolicy</summary>
 public void GetAutoscalingPolicyResourceNames()
 {
     // Snippet: GetAutoscalingPolicy(AutoscalingPolicyName, CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     AutoscalingPolicyName name = AutoscalingPolicyName.FromProjectLocationAutoscalingPolicy("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.GetAutoscalingPolicy(name);
     // End snippet
 }
Esempio n. 2
0
 /// <summary>Snippet for GetAutoscalingPolicy</summary>
 public void GetAutoscalingPolicy()
 {
     // Snippet: GetAutoscalingPolicy(string, CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/autoscalingPolicies/[AUTOSCALING_POLICY]";
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.GetAutoscalingPolicy(name);
     // End snippet
 }
 /// <summary>Snippet for GetAutoscalingPolicy</summary>
 public void GetAutoscalingPolicy()
 {
     // Snippet: GetAutoscalingPolicy(string,CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     string formattedName = new AutoscalingPolicyName("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]").ToString();
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.GetAutoscalingPolicy(formattedName);
     // End snippet
 }
Esempio n. 4
0
 /// <summary>Snippet for GetAutoscalingPolicy</summary>
 public void GetAutoscalingPolicyRequestObject()
 {
     // Snippet: GetAutoscalingPolicy(GetAutoscalingPolicyRequest, CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     GetAutoscalingPolicyRequest request = new GetAutoscalingPolicyRequest
     {
         AutoscalingPolicyName = AutoscalingPolicyName.FromProjectLocationAutoscalingPolicy("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"),
     };
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.GetAutoscalingPolicy(request);
     // End snippet
 }
 /// <summary>Snippet for GetAutoscalingPolicy</summary>
 public void GetAutoscalingPolicy_RequestObject()
 {
     // Snippet: GetAutoscalingPolicy(GetAutoscalingPolicyRequest,CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     GetAutoscalingPolicyRequest request = new GetAutoscalingPolicyRequest
     {
         Name = new AutoscalingPolicyName("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]").ToString(),
     };
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.GetAutoscalingPolicy(request);
     // End snippet
 }