Exemplo n.º 1
0
 /// <summary>Snippet for AddNodes</summary>
 public void AddNodes()
 {
     // Snippet: AddNodes(string, string, string, NodeGroupsAddNodesRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project   = "";
     string zone      = "";
     string nodeGroup = "";
     NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest();
     // Make the request
     Operation response = nodeGroupsClient.AddNodes(project, zone, nodeGroup, nodeGroupsAddNodesRequestResource);
     // End snippet
 }
Exemplo n.º 2
0
        /// <summary>Snippet for AddNodesAsync</summary>
        public async Task AddNodesAsync()
        {
            // Snippet: AddNodesAsync(string, string, string, NodeGroupsAddNodesRequest, CallSettings)
            // Additional: AddNodesAsync(string, string, string, NodeGroupsAddNodesRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project   = "";
            string zone      = "";
            string nodeGroup = "";
            NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest();
            // Make the request
            Operation response = await nodeGroupsClient.AddNodesAsync(project, zone, nodeGroup, nodeGroupsAddNodesRequestResource);

            // End snippet
        }