/// <summary>Snippet for GetAuthorizationAsync</summary> public async Task GetAuthorizationAsync() { // Snippet: GetAuthorizationAsync(string, CallSettings) // Additional: GetAuthorizationAsync(string, CancellationToken) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = await GSuiteAddOnsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/authorization"; // Make the request Authorization response = await gSuiteAddOnsClient.GetAuthorizationAsync(name); // End snippet }
/// <summary>Snippet for GetAuthorizationAsync</summary> public async Task GetAuthorizationResourceNamesAsync() { // Snippet: GetAuthorizationAsync(AuthorizationName, CallSettings) // Additional: GetAuthorizationAsync(AuthorizationName, CancellationToken) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = await GSuiteAddOnsClient.CreateAsync(); // Initialize request argument(s) AuthorizationName name = AuthorizationName.FromProject("[PROJECT]"); // Make the request Authorization response = await gSuiteAddOnsClient.GetAuthorizationAsync(name); // End snippet }
/// <summary>Snippet for GetAuthorizationAsync</summary> public async Task GetAuthorizationRequestObjectAsync() { // Snippet: GetAuthorizationAsync(GetAuthorizationRequest, CallSettings) // Additional: GetAuthorizationAsync(GetAuthorizationRequest, CancellationToken) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = await GSuiteAddOnsClient.CreateAsync(); // Initialize request argument(s) GetAuthorizationRequest request = new GetAuthorizationRequest { AuthorizationName = AuthorizationName.FromProject("[PROJECT]"), }; // Make the request Authorization response = await gSuiteAddOnsClient.GetAuthorizationAsync(request); // End snippet }