コード例 #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
            TargetPoolsClient targetPoolsClient = await TargetPoolsClient.CreateAsync();

            // Initialize request argument(s)
            string project    = "";
            string region     = "";
            string targetPool = "";
            // Make the request
            Operation response = await targetPoolsClient.DeleteAsync(project, region, targetPool);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteRequestObjectAsync()
        {
            // Snippet: DeleteAsync(DeleteTargetPoolRequest, CallSettings)
            // Additional: DeleteAsync(DeleteTargetPoolRequest, CancellationToken)
            // Create client
            TargetPoolsClient targetPoolsClient = await TargetPoolsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteTargetPoolRequest request = new DeleteTargetPoolRequest
            {
                RequestId  = "",
                TargetPool = "",
                Region     = "",
                Project    = "",
            };
            // Make the request
            Operation response = await targetPoolsClient.DeleteAsync(request);

            // End snippet
        }