/// <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 }
/// <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 }
/// <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 }
/// <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 }