/// <summary>Snippet for UpdateIngressRuleAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task UpdateIngressRuleRequestObjectAsync()
        {
            // Create client
            FirewallClient firewallClient = await FirewallClient.CreateAsync();

            // Initialize request argument(s)
            UpdateIngressRuleRequest request = new UpdateIngressRuleRequest
            {
                Name       = "",
                Rule       = new FirewallRule(),
                UpdateMask = new FieldMask(),
            };
            // Make the request
            FirewallRule response = await firewallClient.UpdateIngressRuleAsync(request);
        }
Пример #2
0
        /// <summary>Snippet for UpdateIngressRuleAsync</summary>
        public async Task UpdateIngressRuleRequestObjectAsync()
        {
            // Snippet: UpdateIngressRuleAsync(UpdateIngressRuleRequest, CallSettings)
            // Additional: UpdateIngressRuleAsync(UpdateIngressRuleRequest, CancellationToken)
            // Create client
            FirewallClient firewallClient = await FirewallClient.CreateAsync();

            // Initialize request argument(s)
            UpdateIngressRuleRequest request = new UpdateIngressRuleRequest
            {
                Name       = "",
                Rule       = new FirewallRule(),
                UpdateMask = new FieldMask(),
            };
            // Make the request
            FirewallRule response = await firewallClient.UpdateIngressRuleAsync(request);

            // End snippet
        }