コード例 #1
0
 public void BatchDeletePhotos()
 {
     // Snippet: BatchDeletePhotos(IEnumerable<string>,CallSettings)
     // Create client
     StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create();
     // Initialize request argument(s)
     IEnumerable <string> photoIds = new List <string>();
     // Make the request
     BatchDeletePhotosResponse response = streetViewPublishServiceClient.BatchDeletePhotos(photoIds);
     // End snippet
 }
コード例 #2
0
 public void BatchDeletePhotos_RequestObject()
 {
     // Snippet: BatchDeletePhotos(BatchDeletePhotosRequest,CallSettings)
     // Create client
     StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create();
     // Initialize request argument(s)
     BatchDeletePhotosRequest request = new BatchDeletePhotosRequest
     {
         PhotoIds = { },
     };
     // Make the request
     BatchDeletePhotosResponse response = streetViewPublishServiceClient.BatchDeletePhotos(request);
     // End snippet
 }
コード例 #3
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
        }
コード例 #4
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
        }