/// <summary>Snippet for List</summary> public void List() { // Snippet: List(string, CallSettings) // Create client ExternalVpnGatewaysClient externalVpnGatewaysClient = ExternalVpnGatewaysClient.Create(); // Initialize request argument(s) string project = ""; // Make the request ExternalVpnGatewayList response = externalVpnGatewaysClient.List(project); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListAsync() { // Snippet: ListAsync(string, CallSettings) // Additional: ListAsync(string, CancellationToken) // Create client ExternalVpnGatewaysClient externalVpnGatewaysClient = await ExternalVpnGatewaysClient.CreateAsync(); // Initialize request argument(s) string project = ""; // Make the request ExternalVpnGatewayList response = await externalVpnGatewaysClient.ListAsync(project); // End snippet }
/// <summary>Snippet for List</summary> public void ListRequestObject() { // Snippet: List(ListExternalVpnGatewaysRequest, CallSettings) // Create client ExternalVpnGatewaysClient externalVpnGatewaysClient = ExternalVpnGatewaysClient.Create(); // Initialize request argument(s) ListExternalVpnGatewaysRequest request = new ListExternalVpnGatewaysRequest { PageToken = "", MaxResults = 0U, OrderBy = "", Project = "", Filter = "", ReturnPartialSuccess = false, }; // Make the request ExternalVpnGatewayList response = externalVpnGatewaysClient.List(request); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListRequestObjectAsync() { // Snippet: ListAsync(ListExternalVpnGatewaysRequest, CallSettings) // Additional: ListAsync(ListExternalVpnGatewaysRequest, CancellationToken) // Create client ExternalVpnGatewaysClient externalVpnGatewaysClient = await ExternalVpnGatewaysClient.CreateAsync(); // Initialize request argument(s) ListExternalVpnGatewaysRequest request = new ListExternalVpnGatewaysRequest { PageToken = "", MaxResults = 0U, OrderBy = "", Project = "", Filter = "", ReturnPartialSuccess = false, }; // Make the request ExternalVpnGatewayList response = await externalVpnGatewaysClient.ListAsync(request); // End snippet }