/// <summary>Snippet for ExportAssetsAsync</summary> public async Task ExportAssetsRequestObjectAsync() { // Snippet: ExportAssetsAsync(ExportAssetsRequest, CallSettings) // Additional: ExportAssetsAsync(ExportAssetsRequest, CancellationToken) // Create client AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync(); // Initialize request argument(s) ExportAssetsRequest request = new ExportAssetsRequest { ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), ReadTime = new Timestamp(), AssetTypes = { "", }, ContentType = ContentType.Unspecified, OutputConfig = new OutputConfig(), }; // Make the request Operation <ExportAssetsResponse, ExportAssetsRequest> response = await assetServiceClient.ExportAssetsAsync(request); // Poll until the returned long-running operation is complete Operation <ExportAssetsResponse, ExportAssetsRequest> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result ExportAssetsResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <ExportAssetsResponse, ExportAssetsRequest> retrievedResponse = await assetServiceClient.PollOnceExportAssetsAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result ExportAssetsResponse retrievedResult = retrievedResponse.Result; } // End snippet }