/// <summary>Snippet for SetLabelsAsync</summary> public async Task SetLabelsAsync() { // Snippet: SetLabelsAsync(string, string, GlobalSetLabelsRequest, CallSettings) // Additional: SetLabelsAsync(string, string, GlobalSetLabelsRequest, CancellationToken) // Create client ImagesClient imagesClient = await ImagesClient.CreateAsync(); // Initialize request argument(s) string project = ""; string resource = ""; GlobalSetLabelsRequest globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); // Make the request Operation response = await imagesClient.SetLabelsAsync(project, resource, globalSetLabelsRequestResource); // End snippet }
/// <summary>Snippet for SetLabelsAsync</summary> public async Task SetLabelsRequestObjectAsync() { // Snippet: SetLabelsAsync(SetLabelsImageRequest, CallSettings) // Additional: SetLabelsAsync(SetLabelsImageRequest, CancellationToken) // Create client ImagesClient imagesClient = await ImagesClient.CreateAsync(); // Initialize request argument(s) SetLabelsImageRequest request = new SetLabelsImageRequest { Resource = "", Project = "", GlobalSetLabelsRequestResource = new GlobalSetLabelsRequest(), }; // Make the request Operation response = await imagesClient.SetLabelsAsync(request); // End snippet }