Exemplo n.º 1
0
        public async Task BatchDeletePhotosAsync()
        {
            // Snippet: BatchDeletePhotosAsync(IEnumerable<string>,CallSettings)
            // Additional: BatchDeletePhotosAsync(IEnumerable<string>,CancellationToken)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            IEnumerable <string> photoIds = new List <string>();
            // Make the request
            BatchDeletePhotosResponse response = await streetViewPublishServiceClient.BatchDeletePhotosAsync(photoIds);

            // End snippet
        }
Exemplo n.º 2
0
        public async Task BatchDeletePhotosAsync_RequestObject()
        {
            // Snippet: BatchDeletePhotosAsync(BatchDeletePhotosRequest,CallSettings)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            BatchDeletePhotosRequest request = new BatchDeletePhotosRequest
            {
                PhotoIds = { },
            };
            // Make the request
            BatchDeletePhotosResponse response = await streetViewPublishServiceClient.BatchDeletePhotosAsync(request);

            // End snippet
        }