Exemplo n.º 1
0
 /// <summary>Snippet for Insert</summary>
 public void Insert()
 {
     // Snippet: Insert(string, string, int, NodeGroup, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string    project           = "";
     string    zone              = "";
     int       initialNodeCount  = 0;
     NodeGroup nodeGroupResource = new NodeGroup();
     // Make the request
     Operation response = nodeGroupsClient.Insert(project, zone, initialNodeCount, nodeGroupResource);
     // End snippet
 }
Exemplo n.º 2
0
 /// <summary>Snippet for Insert</summary>
 public void InsertRequestObject()
 {
     // Snippet: Insert(InsertNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     InsertNodeGroupRequest request = new InsertNodeGroupRequest
     {
         Zone              = "",
         RequestId         = "",
         InitialNodeCount  = 0,
         Project           = "",
         NodeGroupResource = new NodeGroup(),
     };
     // Make the request
     Operation response = nodeGroupsClient.Insert(request);
     // End snippet
 }