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