/// <summary>
        /// Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.
        /// Documentation https://developers.google.com/androidenterprise/v1/reference/enterprises/acknowledgeNotificationSet
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated Androidenterprise service.</param>
        /// <param name="optional">Optional paramaters.</param>
        public static void AcknowledgeNotificationSet(AndroidenterpriseService service, EnterprisesAcknowledgeNotificationSetOptionalParms optional = null)
        {
            try
            {
                // Initial validation.
                if (service == null)
                {
                    throw new ArgumentNullException("service");
                }

                // Building the initial request.
                var request = service.Enterprises.AcknowledgeNotificationSet();

                // Applying optional parameters to the request.
                request = (EnterprisesResource.AcknowledgeNotificationSetRequest)SampleHelpers.ApplyOptionalParms(request, optional);

                // Requesting data.
                request.Execute();
            }
            catch (Exception ex)
            {
                throw new Exception("Request Enterprises.AcknowledgeNotificationSet failed.", ex);
            }
        }
        /// <summary>
        /// Generates a sign-up URL.
        /// Documentation https://developers.google.com/androidenterprise/v1/reference/enterprises/generateSignupUrl
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated Androidenterprise service.</param>
        /// <param name="optional">Optional paramaters.</param>
        /// <returns>SignupInfoResponse</returns>
        public static SignupInfo GenerateSignupUrl(AndroidenterpriseService service, EnterprisesGenerateSignupUrlOptionalParms optional = null)
        {
            try
            {
                // Initial validation.
                if (service == null)
                {
                    throw new ArgumentNullException("service");
                }

                // Building the initial request.
                var request = service.Enterprises.GenerateSignupUrl();

                // Applying optional parameters to the request.
                request = (EnterprisesResource.GenerateSignupUrlRequest)SampleHelpers.ApplyOptionalParms(request, optional);

                // Requesting data.
                return(request.Execute());
            }
            catch (Exception ex)
            {
                throw new Exception("Request Enterprises.GenerateSignupUrl failed.", ex);
            }
        }