Пример #1
0
 /// <summary>Snippet for UpdateAutoscalingPolicy</summary>
 public void UpdateAutoscalingPolicy()
 {
     // Snippet: UpdateAutoscalingPolicy(AutoscalingPolicy, CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     AutoscalingPolicy policy = new AutoscalingPolicy();
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.UpdateAutoscalingPolicy(policy);
     // End snippet
 }
Пример #2
0
 /// <summary>Snippet for UpdateAutoscalingPolicy</summary>
 public void UpdateAutoscalingPolicyRequestObject()
 {
     // Snippet: UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest, CallSettings)
     // Create client
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.Create();
     // Initialize request argument(s)
     UpdateAutoscalingPolicyRequest request = new UpdateAutoscalingPolicyRequest
     {
         Policy = new AutoscalingPolicy(),
     };
     // Make the request
     AutoscalingPolicy response = autoscalingPolicyServiceClient.UpdateAutoscalingPolicy(request);
     // End snippet
 }