This sample demonstrates how to get started using the Google Cloud IAM APIs in C#.
This sample requires .NET Core 2.1 or later. That means using Visual Studio 2017, or the command line.
-
Follow the set-up instructions in the documentation.
-
Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Google Cloud IAM API.
-
Replace the placeholder information in QuickStart.cs with your project-specific information.
-
From the command line:
dotnet restore dotnet run
The application should grant the member you inputted the Logs viewer role, print the permissions that they have as a Logs viewer, then revoke their Logs viewer role.
- See CONTRIBUTING.md
- See LICENSE