Ejemplo n.º 1
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
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for AddNodesAsync</summary>
        public async Task AddNodesRequestObjectAsync()
        {
            // Snippet: AddNodesAsync(AddNodesNodeGroupRequest, CallSettings)
            // Additional: AddNodesAsync(AddNodesNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            AddNodesNodeGroupRequest request = new AddNodesNodeGroupRequest
            {
                Zone      = "",
                RequestId = "",
                NodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(),
                NodeGroup = "",
                Project   = "",
            };
            // Make the request
            Operation response = await nodeGroupsClient.AddNodesAsync(request);

            // End snippet
        }