Exemplo n.º 1
0
        /// <summary>Snippet for DeleteNodesAsync</summary>
        public async Task DeleteNodesAsync()
        {
            // Snippet: DeleteNodesAsync(string, string, string, NodeGroupsDeleteNodesRequest, CallSettings)
            // Additional: DeleteNodesAsync(string, string, string, NodeGroupsDeleteNodesRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project   = "";
            string zone      = "";
            string nodeGroup = "";
            NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest();
            // Make the request
            Operation response = await nodeGroupsClient.DeleteNodesAsync(project, zone, nodeGroup, nodeGroupsDeleteNodesRequestResource);

            // End snippet
        }
Exemplo n.º 2
0
        /// <summary>Snippet for DeleteNodesAsync</summary>
        public async Task DeleteNodesRequestObjectAsync()
        {
            // Snippet: DeleteNodesAsync(DeleteNodesNodeGroupRequest, CallSettings)
            // Additional: DeleteNodesAsync(DeleteNodesNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteNodesNodeGroupRequest request = new DeleteNodesNodeGroupRequest
            {
                Zone      = "",
                RequestId = "",
                NodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest(),
                NodeGroup = "",
                Project   = "",
            };
            // Make the request
            Operation response = await nodeGroupsClient.DeleteNodesAsync(request);

            // End snippet
        }