/// <summary>Snippet for GetAuthorization</summary> public void GetAuthorization() { // Snippet: GetAuthorization(string, CallSettings) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/authorization"; // Make the request Authorization response = gSuiteAddOnsClient.GetAuthorization(name); // End snippet }
/// <summary>Snippet for GetAuthorization</summary> public void GetAuthorizationResourceNames() { // Snippet: GetAuthorization(AuthorizationName, CallSettings) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create(); // Initialize request argument(s) AuthorizationName name = AuthorizationName.FromProject("[PROJECT]"); // Make the request Authorization response = gSuiteAddOnsClient.GetAuthorization(name); // End snippet }
/// <summary>Snippet for GetAuthorization</summary> public void GetAuthorizationRequestObject() { // Snippet: GetAuthorization(GetAuthorizationRequest, CallSettings) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create(); // Initialize request argument(s) GetAuthorizationRequest request = new GetAuthorizationRequest { AuthorizationName = AuthorizationName.FromProject("[PROJECT]"), }; // Make the request Authorization response = gSuiteAddOnsClient.GetAuthorization(request); // End snippet }