/// <summary>Snippet for TestIamPermissionsAsync</summary> public async Task TestIamPermissionsAsync() { // Snippet: TestIamPermissionsAsync(string, string, TestPermissionsRequest, CallSettings) // Additional: TestIamPermissionsAsync(string, string, TestPermissionsRequest, CancellationToken) // Create client LicensesClient licensesClient = await LicensesClient.CreateAsync(); // Initialize request argument(s) string project = ""; string resource = ""; TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest(); // Make the request TestPermissionsResponse response = await licensesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource); // End snippet }
/// <summary>Snippet for TestIamPermissionsAsync</summary> public async Task TestIamPermissionsRequestObjectAsync() { // Snippet: TestIamPermissionsAsync(TestIamPermissionsLicenseRequest, CallSettings) // Additional: TestIamPermissionsAsync(TestIamPermissionsLicenseRequest, CancellationToken) // Create client LicensesClient licensesClient = await LicensesClient.CreateAsync(); // Initialize request argument(s) TestIamPermissionsLicenseRequest request = new TestIamPermissionsLicenseRequest { Resource = "", Project = "", TestPermissionsRequestResource = new TestPermissionsRequest(), }; // Make the request TestPermissionsResponse response = await licensesClient.TestIamPermissionsAsync(request); // End snippet }