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

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

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

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

            // End snippet
        }