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

            // Initialize request argument(s)
            string    project           = "";
            string    zone              = "";
            string    nodeGroup         = "";
            NodeGroup nodeGroupResource = new NodeGroup();
            // Make the request
            Operation response = await nodeGroupsClient.PatchAsync(project, zone, nodeGroup, nodeGroupResource);

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

            // Initialize request argument(s)
            PatchNodeGroupRequest request = new PatchNodeGroupRequest
            {
                Zone              = "",
                RequestId         = "",
                NodeGroup         = "",
                Project           = "",
                NodeGroupResource = new NodeGroup(),
            };
            // Make the request
            Operation response = await nodeGroupsClient.PatchAsync(request);

            // End snippet
        }