コード例 #1
0
 /// <summary>Snippet for AddHealthCheck</summary>
 public void AddHealthCheck()
 {
     // Snippet: AddHealthCheck(string, string, string, TargetPoolsAddHealthCheckRequest, CallSettings)
     // Create client
     TargetPoolsClient targetPoolsClient = TargetPoolsClient.Create();
     // Initialize request argument(s)
     string project    = "";
     string region     = "";
     string targetPool = "";
     TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = new TargetPoolsAddHealthCheckRequest();
     // Make the request
     Operation response = targetPoolsClient.AddHealthCheck(project, region, targetPool, targetPoolsAddHealthCheckRequestResource);
     // End snippet
 }
コード例 #2
0
 /// <summary>Snippet for AddHealthCheck</summary>
 public void AddHealthCheckRequestObject()
 {
     // Snippet: AddHealthCheck(AddHealthCheckTargetPoolRequest, CallSettings)
     // Create client
     TargetPoolsClient targetPoolsClient = TargetPoolsClient.Create();
     // Initialize request argument(s)
     AddHealthCheckTargetPoolRequest request = new AddHealthCheckTargetPoolRequest
     {
         RequestId  = "",
         TargetPool = "",
         Region     = "",
         Project    = "",
         TargetPoolsAddHealthCheckRequestResource = new TargetPoolsAddHealthCheckRequest(),
     };
     // Make the request
     Operation response = targetPoolsClient.AddHealthCheck(request);
     // End snippet
 }