public async Task CreatePhotoAsync() { // Snippet: CreatePhotoAsync(Photo,CallSettings) // Additional: CreatePhotoAsync(Photo,CancellationToken) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync(); // Initialize request argument(s) Photo photo = new Photo(); // Make the request Photo response = await streetViewPublishServiceClient.CreatePhotoAsync(photo); // End snippet }
public async Task CreatePhotoAsync_RequestObject() { // Snippet: CreatePhotoAsync(CreatePhotoRequest,CallSettings) // Create client StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync(); // Initialize request argument(s) CreatePhotoRequest request = new CreatePhotoRequest { Photo = new Photo(), }; // Make the request Photo response = await streetViewPublishServiceClient.CreatePhotoAsync(request); // End snippet }