예제 #1
0
 /// <summary>
 /// Initialize and return a new DiscoveryService
 /// </summary>
 protected override discovery_v1.DiscoveryService CreateNewService(string domain, AuthenticatedUserInfo authInfo, string serviceAcctUser)
 {
     return(new discovery_v1.DiscoveryService(OAuth2Base.GetInitializer()));
 }
        /// <summary>Creates a new reports_v1.Reports service.</summary>
        /// <param name="domain">The domain to which this service will be authenticated.</param>
        /// <param name="authInfo">The authenticated AuthInfo for this user and domain.</param>
        /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>

        protected override reports_v1.ReportsService CreateNewService(string domain, AuthenticatedUserInfo authInfo, string gShellServiceAccount = null)
        {
            return(new reports_v1.ReportsService(OAuth2Base.GetInitializer(domain, authInfo)));
        }
        /// <summary>Creates a new v1.GroupsMigration service.</summary>
        /// <param name="domain">The domain to which this service will be authenticated.</param>
        /// <param name="authInfo">The authenticated AuthInfo for this user and domain.</param>
        /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>

        protected override v1.GroupsMigrationService CreateNewService(string domain, AuthenticatedUserInfo authInfo, string gShellServiceAccount = null)
        {
            return(new v1.GroupsMigrationService(OAuth2Base.GetInitializer(domain, authInfo)));
        }
        /// <summary>Creates a new datatransfer_v1.DataTransfer service.</summary>
        /// <param name="domain">The domain to which this service will be authenticated.</param>
        /// <param name="authInfo">The authenticated AuthInfo for this user and domain.</param>
        /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>

        protected override datatransfer_v1.DataTransferService CreateNewService(string domain, AuthenticatedUserInfo authInfo, string gShellServiceAccount = null)
        {
            return(new datatransfer_v1.DataTransferService(OAuth2Base.GetInitializer(domain, authInfo)));
        }