示例#1
0
 /// <summary>Snippet for Insert</summary>
 public void Insert()
 {
     // Snippet: Insert(string, string, InstanceGroup, CallSettings)
     // Create client
     InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create();
     // Initialize request argument(s)
     string        project = "";
     string        zone    = "";
     InstanceGroup instanceGroupResource = new InstanceGroup();
     // Make the request
     Operation response = instanceGroupsClient.Insert(project, zone, instanceGroupResource);
     // End snippet
 }
示例#2
0
 /// <summary>Snippet for Insert</summary>
 public void InsertRequestObject()
 {
     // Snippet: Insert(InsertInstanceGroupRequest, CallSettings)
     // Create client
     InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create();
     // Initialize request argument(s)
     InsertInstanceGroupRequest request = new InsertInstanceGroupRequest
     {
         Zone                  = "",
         RequestId             = "",
         Project               = "",
         InstanceGroupResource = new InstanceGroup(),
     };
     // Make the request
     Operation response = instanceGroupsClient.Insert(request);
     // End snippet
 }