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