/// <summary>Snippet for AddResourcePoliciesAsync</summary> public async Task AddResourcePoliciesAsync() { // Snippet: AddResourcePoliciesAsync(string, string, string, RegionDisksAddResourcePoliciesRequest, CallSettings) // Additional: AddResourcePoliciesAsync(string, string, string, RegionDisksAddResourcePoliciesRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; string disk = ""; RegionDisksAddResourcePoliciesRequest regionDisksAddResourcePoliciesRequestResource = new RegionDisksAddResourcePoliciesRequest(); // Make the request Operation response = await regionDisksClient.AddResourcePoliciesAsync(project, region, disk, regionDisksAddResourcePoliciesRequestResource); // End snippet }
/// <summary>Snippet for AddResourcePoliciesAsync</summary> public async Task AddResourcePoliciesRequestObjectAsync() { // Snippet: AddResourcePoliciesAsync(AddResourcePoliciesRegionDiskRequest, CallSettings) // Additional: AddResourcePoliciesAsync(AddResourcePoliciesRegionDiskRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) AddResourcePoliciesRegionDiskRequest request = new AddResourcePoliciesRegionDiskRequest { Disk = "", RequestId = "", Region = "", Project = "", RegionDisksAddResourcePoliciesRequestResource = new RegionDisksAddResourcePoliciesRequest(), }; // Make the request Operation response = await regionDisksClient.AddResourcePoliciesAsync(request); // End snippet }