/// <summary>Snippet for GetIamPolicyAsync</summary> public async Task GetIamPolicyAsync() { // Snippet: GetIamPolicyAsync(IamResourceNameOneof,CallSettings) // Additional: GetIamPolicyAsync(IamResourceNameOneof,CancellationToken) // Create client ContainerAnalysisV1Beta1Client containerAnalysisV1Beta1Client = await ContainerAnalysisV1Beta1Client.CreateAsync(); // Initialize request argument(s) IamResourceNameOneof resource = IamResourceNameOneof.From(new NoteName("[PROJECT]", "[NOTE]")); // Make the request Policy response = await containerAnalysisV1Beta1Client.GetIamPolicyAsync(resource); // End snippet }