示例#1
0
 /// <summary>Snippet for AddInstances</summary>
 public void AddInstances()
 {
     // Snippet: AddInstances(string, string, string, InstanceGroupsAddInstancesRequest, CallSettings)
     // Create client
     InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create();
     // Initialize request argument(s)
     string project       = "";
     string zone          = "";
     string instanceGroup = "";
     InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = new InstanceGroupsAddInstancesRequest();
     // Make the request
     Operation response = instanceGroupsClient.AddInstances(project, zone, instanceGroup, instanceGroupsAddInstancesRequestResource);
     // End snippet
 }
示例#2
0
 /// <summary>Snippet for AddInstances</summary>
 public void AddInstancesRequestObject()
 {
     // Snippet: AddInstances(AddInstancesInstanceGroupRequest, CallSettings)
     // Create client
     InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create();
     // Initialize request argument(s)
     AddInstancesInstanceGroupRequest request = new AddInstancesInstanceGroupRequest
     {
         Zone          = "",
         RequestId     = "",
         InstanceGroup = "",
         Project       = "",
         InstanceGroupsAddInstancesRequestResource = new InstanceGroupsAddInstancesRequest(),
     };
     // Make the request
     Operation response = instanceGroupsClient.AddInstances(request);
     // End snippet
 }