/// <summary>Snippet for TestIamPermissions</summary> public void TestIamPermissions() { // Snippet: TestIamPermissions(string, string, TestPermissionsRequest, CallSettings) // Create client ExternalVpnGatewaysClient externalVpnGatewaysClient = ExternalVpnGatewaysClient.Create(); // Initialize request argument(s) string project = ""; string resource = ""; TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest(); // Make the request TestPermissionsResponse response = externalVpnGatewaysClient.TestIamPermissions(project, resource, testPermissionsRequestResource); // End snippet }
/// <summary>Snippet for TestIamPermissions</summary> public void TestIamPermissionsRequestObject() { // Snippet: TestIamPermissions(TestIamPermissionsExternalVpnGatewayRequest, CallSettings) // Create client ExternalVpnGatewaysClient externalVpnGatewaysClient = ExternalVpnGatewaysClient.Create(); // Initialize request argument(s) TestIamPermissionsExternalVpnGatewayRequest request = new TestIamPermissionsExternalVpnGatewayRequest { Resource = "", Project = "", TestPermissionsRequestResource = new TestPermissionsRequest(), }; // Make the request TestPermissionsResponse response = externalVpnGatewaysClient.TestIamPermissions(request); // End snippet }