Example #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
            ForwardingRulesClient forwardingRulesClient = await ForwardingRulesClient.CreateAsync();

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

            // End snippet
        }
Example #2
0
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteRequestObjectAsync()
        {
            // Snippet: DeleteAsync(DeleteForwardingRuleRequest, CallSettings)
            // Additional: DeleteAsync(DeleteForwardingRuleRequest, CancellationToken)
            // Create client
            ForwardingRulesClient forwardingRulesClient = await ForwardingRulesClient.CreateAsync();

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

            // End snippet
        }