static void Main(string[] args)
        {
            UserCredential credential;

            using (var stream =
                       new FileStream("credentials.json", FileMode.Open, FileAccess.Read))
            {
                // The file token.json stores the user's access and refresh tokens, and is created
                // automatically when the authorization flow completes for the first time.
                string credPath = "token.json";
                credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                    GoogleClientSecrets.FromStream(stream).Secrets,
                    Scopes,
                    "user",
                    CancellationToken.None,
                    new FileDataStore(credPath, true)).Result;
                Console.WriteLine("Credential file saved to: {0}", credPath);
            }

            // Create Directory API service.
            var service = new GroupssettingsService(new BaseClientService.Initializer()
            {
                HttpClientInitializer = credential,
                ApplicationName       = ApplicationName,
            });

            // Service ready to use

            if (args.Length == 0)
            {
                Console.WriteLine("No group email specified.");
                return;
            }

            String groupEmail = args[0];

            try
            {
                Groups settings = service.Groups.Get(groupEmail).Execute();
                Console.Write("Description: {0}", settings.Description);
            }
            catch (Exception err)
            {
                // TODO(developer) - handle exception
                Console.Error.WriteLine(err);
            }
        }
 /// <summary>Updates an existing resource.</summary>
 /// <param name="body">The body of the request.</param>
 /// <param name="groupUniqueId">The resource ID</param>
 public virtual UpdateRequest Update(Google.Apis.Groupssettings.v1.Data.Groups body, string groupUniqueId)
 {
     return(new UpdateRequest(service, body, groupUniqueId));
 }
 /// <summary>Updates an existing resource. This method supports patch semantics.</summary>
 /// <param name="body">The body of the request.</param>
 /// <param name="groupUniqueId">The resource ID</param>
 public virtual PatchRequest Patch(Google.Apis.Groupssettings.v1.Data.Groups body, string groupUniqueId)
 {
     return(new PatchRequest(service, body, groupUniqueId));
 }