コード例 #1
0
 /// <summary>Snippet for List</summary>
 public void List()
 {
     // Snippet: List(string, string, CallSettings)
     // Create client
     VpnGatewaysClient vpnGatewaysClient = VpnGatewaysClient.Create();
     // Initialize request argument(s)
     string project = "";
     string region  = "";
     // Make the request
     VpnGatewayList response = vpnGatewaysClient.List(project, region);
     // End snippet
 }
コード例 #2
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListAsync()
        {
            // Snippet: ListAsync(string, string, CallSettings)
            // Additional: ListAsync(string, string, CancellationToken)
            // Create client
            VpnGatewaysClient vpnGatewaysClient = await VpnGatewaysClient.CreateAsync();

            // Initialize request argument(s)
            string project = "";
            string region  = "";
            // Make the request
            VpnGatewayList response = await vpnGatewaysClient.ListAsync(project, region);

            // End snippet
        }
コード例 #3
0
 /// <summary>Snippet for List</summary>
 public void ListRequestObject()
 {
     // Snippet: List(ListVpnGatewaysRequest, CallSettings)
     // Create client
     VpnGatewaysClient vpnGatewaysClient = VpnGatewaysClient.Create();
     // Initialize request argument(s)
     ListVpnGatewaysRequest request = new ListVpnGatewaysRequest
     {
         PageToken            = "",
         MaxResults           = 0U,
         Region               = "",
         OrderBy              = "",
         Project              = "",
         Filter               = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     VpnGatewayList response = vpnGatewaysClient.List(request);
     // End snippet
 }
コード例 #4
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListRequestObjectAsync()
        {
            // Snippet: ListAsync(ListVpnGatewaysRequest, CallSettings)
            // Additional: ListAsync(ListVpnGatewaysRequest, CancellationToken)
            // Create client
            VpnGatewaysClient vpnGatewaysClient = await VpnGatewaysClient.CreateAsync();

            // Initialize request argument(s)
            ListVpnGatewaysRequest request = new ListVpnGatewaysRequest
            {
                PageToken            = "",
                MaxResults           = 0U,
                Region               = "",
                OrderBy              = "",
                Project              = "",
                Filter               = "",
                ReturnPartialSuccess = false,
            };
            // Make the request
            VpnGatewayList response = await vpnGatewaysClient.ListAsync(request);

            // End snippet
        }