Class UsersResource.AliasesResource
The "aliases" collection of methods.
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.AliasesResource
Constructors
AliasesResource(IClientService)
Constructs a new resource.
Declaration
public AliasesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Removes an alias.
Declaration
public virtual UsersResource.AliasesResource.DeleteRequest Delete(string userKey, string alias)
Parameters
Type | Name | Description |
---|---|---|
string | userKey | Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. |
string | alias | The alias to be removed. |
Returns
Type | Description |
---|---|
UsersResource.AliasesResource.DeleteRequest |
Insert(Alias, string)
Adds an alias.
Declaration
public virtual UsersResource.AliasesResource.InsertRequest Insert(Alias body, string userKey)
Parameters
Type | Name | Description |
---|---|---|
Alias | body | The body of the request. |
string | userKey | Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. |
Returns
Type | Description |
---|---|
UsersResource.AliasesResource.InsertRequest |
List(string)
Lists all aliases for a user.
Declaration
public virtual UsersResource.AliasesResource.ListRequest List(string userKey)
Parameters
Type | Name | Description |
---|---|---|
string | userKey | Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. |
Returns
Type | Description |
---|---|
UsersResource.AliasesResource.ListRequest |
Watch(Channel, string)
Watches for changes in users list.
Declaration
public virtual UsersResource.AliasesResource.WatchRequest Watch(Channel body, string userKey)
Parameters
Type | Name | Description |
---|---|---|
Channel | body | The body of the request. |
string | userKey | Email or immutable ID of the user |
Returns
Type | Description |
---|---|
UsersResource.AliasesResource.WatchRequest |