Ejemplo n.º 1
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetAsync()
        {
            // Snippet: GetAsync(string, string, string, CallSettings)
            // Additional: GetAsync(string, string, string, CancellationToken)
            // Create client
            ForwardingRulesClient forwardingRulesClient = await ForwardingRulesClient.CreateAsync();

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

            // End snippet
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetForwardingRuleRequest, CallSettings)
            // Additional: GetAsync(GetForwardingRuleRequest, CancellationToken)
            // Create client
            ForwardingRulesClient forwardingRulesClient = await ForwardingRulesClient.CreateAsync();

            // Initialize request argument(s)
            GetForwardingRuleRequest request = new GetForwardingRuleRequest
            {
                Region         = "",
                Project        = "",
                ForwardingRule = "",
            };
            // Make the request
            ForwardingRule response = await forwardingRulesClient.GetAsync(request);

            // End snippet
        }