Class UsersResource.SettingsResource
The "settings" collection of methods.
public class UsersResource.SettingsResource
- Inheritance
-
UsersResource.SettingsResource
- Inherited Members
Constructors
SettingsResource(IClientService)
Constructs a new resource.
public SettingsResource(IClientService service)
Parameters
service
IClientService
Properties
Delegates
Gets the Delegates resource.
public virtual UsersResource.SettingsResource.DelegatesResource Delegates { get; }
Property Value
Filters
Gets the Filters resource.
public virtual UsersResource.SettingsResource.FiltersResource Filters { get; }
Property Value
ForwardingAddresses
Gets the ForwardingAddresses resource.
public virtual UsersResource.SettingsResource.ForwardingAddressesResource ForwardingAddresses { get; }
Property Value
SendAs
Gets the SendAs resource.
public virtual UsersResource.SettingsResource.SendAsResource SendAs { get; }
Property Value
Methods
GetAutoForwarding(string)
Gets the auto-forwarding setting for the specified account.
public virtual UsersResource.SettingsResource.GetAutoForwardingRequest GetAutoForwarding(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
GetImap(string)
Gets IMAP settings.
public virtual UsersResource.SettingsResource.GetImapRequest GetImap(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
GetLanguage(string)
Gets language settings.
public virtual UsersResource.SettingsResource.GetLanguageRequest GetLanguage(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
GetPop(string)
Gets POP settings.
public virtual UsersResource.SettingsResource.GetPopRequest GetPop(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
GetVacation(string)
Gets vacation responder settings.
public virtual UsersResource.SettingsResource.GetVacationRequest GetVacation(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
UpdateAutoForwarding(AutoForwarding, string)
Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.
public virtual UsersResource.SettingsResource.UpdateAutoForwardingRequest UpdateAutoForwarding(AutoForwarding body, string userId)
Parameters
body
AutoForwardingThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
UpdateImap(ImapSettings, string)
Updates IMAP settings.
public virtual UsersResource.SettingsResource.UpdateImapRequest UpdateImap(ImapSettings body, string userId)
Parameters
body
ImapSettingsThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
UpdateLanguage(LanguageSettings, string)
Updates language settings. If successful, the return object contains the displayLanguage
that
was saved for the user, which may differ from the value passed into the request. This is because the
requested displayLanguage
may not be directly supported by Gmail but have a close variant that is, and
so the variant may be chosen and saved instead.
public virtual UsersResource.SettingsResource.UpdateLanguageRequest UpdateLanguage(LanguageSettings body, string userId)
Parameters
body
LanguageSettingsThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
UpdatePop(PopSettings, string)
Updates POP settings.
public virtual UsersResource.SettingsResource.UpdatePopRequest UpdatePop(PopSettings body, string userId)
Parameters
body
PopSettingsThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
UpdateVacation(VacationSettings, string)
Updates vacation responder settings.
public virtual UsersResource.SettingsResource.UpdateVacationRequest UpdateVacation(VacationSettings body, string userId)
Parameters
body
VacationSettingsThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.