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