示例#1
0
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteAsync()
        {
            // Snippet: DeleteAsync(string, string, string, CallSettings)
            // Additional: DeleteAsync(string, string, string, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project       = "";
            string zone          = "";
            string instanceGroup = "";
            // Make the request
            Operation response = await instanceGroupsClient.DeleteAsync(project, zone, instanceGroup);

            // End snippet
        }
示例#2
0
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteRequestObjectAsync()
        {
            // Snippet: DeleteAsync(DeleteInstanceGroupRequest, CallSettings)
            // Additional: DeleteAsync(DeleteInstanceGroupRequest, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteInstanceGroupRequest request = new DeleteInstanceGroupRequest
            {
                Zone          = "",
                RequestId     = "",
                InstanceGroup = "",
                Project       = "",
            };
            // Make the request
            Operation response = await instanceGroupsClient.DeleteAsync(request);

            // End snippet
        }