/// <summary>Snippet for List</summary> public void List() { // Snippet: List(string, CallSettings) // Create client UrlMapsClient urlMapsClient = UrlMapsClient.Create(); // Initialize request argument(s) string project = ""; // Make the request UrlMapList response = urlMapsClient.List(project); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListAsync() { // Snippet: ListAsync(string, CallSettings) // Additional: ListAsync(string, CancellationToken) // Create client UrlMapsClient urlMapsClient = await UrlMapsClient.CreateAsync(); // Initialize request argument(s) string project = ""; // Make the request UrlMapList response = await urlMapsClient.ListAsync(project); // End snippet }
private IEnumerable <UrlMap> GetAllProjectUrlMaps(string project) { UrlMapsResource.ListRequest request = Service.UrlMaps.List(project); do { UrlMapList response = request.Execute(); if (response.Items != null) { foreach (UrlMap urlMap in response.Items) { yield return(urlMap); } } request.PageToken = response.NextPageToken; } while (!Stopping && request.PageToken != null); }
/// <summary>Snippet for List</summary> public void ListRequestObject() { // Snippet: List(ListUrlMapsRequest, CallSettings) // Create client UrlMapsClient urlMapsClient = UrlMapsClient.Create(); // Initialize request argument(s) ListUrlMapsRequest request = new ListUrlMapsRequest { PageToken = "", MaxResults = 0U, OrderBy = "", Project = "", Filter = "", ReturnPartialSuccess = false, }; // Make the request UrlMapList response = urlMapsClient.List(request); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListRequestObjectAsync() { // Snippet: ListAsync(ListUrlMapsRequest, CallSettings) // Additional: ListAsync(ListUrlMapsRequest, CancellationToken) // Create client UrlMapsClient urlMapsClient = await UrlMapsClient.CreateAsync(); // Initialize request argument(s) ListUrlMapsRequest request = new ListUrlMapsRequest { PageToken = "", MaxResults = 0U, OrderBy = "", Project = "", Filter = "", ReturnPartialSuccess = false, }; // Make the request UrlMapList response = await urlMapsClient.ListAsync(request); // End snippet }