/// <summary>Snippet for InsertAsync</summary> public async Task InsertAsync() { // Snippet: InsertAsync(string, UrlMap, CallSettings) // Additional: InsertAsync(string, UrlMap, CancellationToken) // Create client UrlMapsClient urlMapsClient = await UrlMapsClient.CreateAsync(); // Initialize request argument(s) string project = ""; UrlMap urlMapResource = new UrlMap(); // Make the request Operation response = await urlMapsClient.InsertAsync(project, urlMapResource); // End snippet }
/// <summary>Snippet for InsertAsync</summary> public async Task InsertRequestObjectAsync() { // Snippet: InsertAsync(InsertUrlMapRequest, CallSettings) // Additional: InsertAsync(InsertUrlMapRequest, CancellationToken) // Create client UrlMapsClient urlMapsClient = await UrlMapsClient.CreateAsync(); // Initialize request argument(s) InsertUrlMapRequest request = new InsertUrlMapRequest { RequestId = "", UrlMapResource = new UrlMap(), Project = "", }; // Make the request Operation response = await urlMapsClient.InsertAsync(request); // End snippet }