/// <summary>Snippet for RemoveResourcePoliciesAsync</summary> public async Task RemoveResourcePoliciesAsync() { // Snippet: RemoveResourcePoliciesAsync(string, string, string, RegionDisksRemoveResourcePoliciesRequest, CallSettings) // Additional: RemoveResourcePoliciesAsync(string, string, string, RegionDisksRemoveResourcePoliciesRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; string disk = ""; RegionDisksRemoveResourcePoliciesRequest regionDisksRemoveResourcePoliciesRequestResource = new RegionDisksRemoveResourcePoliciesRequest(); // Make the request Operation response = await regionDisksClient.RemoveResourcePoliciesAsync(project, region, disk, regionDisksRemoveResourcePoliciesRequestResource); // End snippet }
/// <summary>Snippet for RemoveResourcePoliciesAsync</summary> public async Task RemoveResourcePoliciesRequestObjectAsync() { // Snippet: RemoveResourcePoliciesAsync(RemoveResourcePoliciesRegionDiskRequest, CallSettings) // Additional: RemoveResourcePoliciesAsync(RemoveResourcePoliciesRegionDiskRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) RemoveResourcePoliciesRegionDiskRequest request = new RemoveResourcePoliciesRegionDiskRequest { Disk = "", RegionDisksRemoveResourcePoliciesRequestResource = new RegionDisksRemoveResourcePoliciesRequest(), RequestId = "", Region = "", Project = "", }; // Make the request Operation response = await regionDisksClient.RemoveResourcePoliciesAsync(request); // End snippet }