/// <summary>Snippet for GetIamPolicyAsync</summary> public async Task GetIamPolicyAsync() { // Snippet: GetIamPolicyAsync(string, string, string, CallSettings) // Additional: GetIamPolicyAsync(string, string, string, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; string resource = ""; // Make the request Policy response = await regionDisksClient.GetIamPolicyAsync(project, region, resource); // End snippet }
/// <summary>Snippet for GetIamPolicyAsync</summary> public async Task GetIamPolicyRequestObjectAsync() { // Snippet: GetIamPolicyAsync(GetIamPolicyRegionDiskRequest, CallSettings) // Additional: GetIamPolicyAsync(GetIamPolicyRegionDiskRequest, CancellationToken) // Create client RegionDisksClient regionDisksClient = await RegionDisksClient.CreateAsync(); // Initialize request argument(s) GetIamPolicyRegionDiskRequest request = new GetIamPolicyRegionDiskRequest { Region = "", Resource = "", Project = "", OptionsRequestedPolicyVersion = 0, }; // Make the request Policy response = await regionDisksClient.GetIamPolicyAsync(request); // End snippet }