/// <summary>Snippet for SetLabels</summary> public void SetLabelsRequestObject() { // Snippet: SetLabels(SetLabelsRegionDiskRequest, CallSettings) // Create client RegionDisksClient regionDisksClient = RegionDisksClient.Create(); // Initialize request argument(s) SetLabelsRegionDiskRequest request = new SetLabelsRegionDiskRequest { RequestId = "", Region = "", Resource = "", Project = "", RegionSetLabelsRequestResource = new RegionSetLabelsRequest(), }; // Make the request Operation response = regionDisksClient.SetLabels(request); // End snippet }
/// <summary>Snippet for SetLabelsAsync</summary> public async Task SetLabelsRequestObjectAsync() { // Snippet: SetLabelsAsync(SetLabelsRegionDiskRequest, CallSettings) // Additional: SetLabelsAsync(SetLabelsRegionDiskRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) SetLabelsRegionDiskRequest request = new SetLabelsRegionDiskRequest { RequestId = "", Region = "", Resource = "", Project = "", RegionSetLabelsRequestResource = new RegionSetLabelsRequest(), }; // Make the request Operation response = await regionDisksClient.SetLabelsAsync(request); // End snippet }