Class AccountsResource.AdminsResource
The "admins" collection of methods.
Inherited Members
Namespace: Google.Apis.MyBusinessAccountManagement.v1
Assembly: Google.Apis.MyBusinessAccountManagement.v1.dll
Syntax
public class AccountsResource.AdminsResource
Constructors
AdminsResource(IClientService)
Constructs a new resource.
Declaration
public AdminsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Admin, string)
Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation.
Declaration
public virtual AccountsResource.AdminsResource.CreateRequest Create(Admin body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Admin | body | The body of the request. |
string | parent | Required. The resource name of the account this admin is created for. |
Returns
Type | Description |
---|---|
AccountsResource.AdminsResource.CreateRequest |
Delete(string)
Removes the specified admin from the specified account.
Declaration
public virtual AccountsResource.AdminsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the admin to remove from the account.
|
Returns
Type | Description |
---|---|
AccountsResource.AdminsResource.DeleteRequest |
List(string)
Lists the admins for the specified account.
Declaration
public virtual AccountsResource.AdminsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the account from which to retrieve a list of admins.
|
Returns
Type | Description |
---|---|
AccountsResource.AdminsResource.ListRequest |
Patch(Admin, string)
Updates the Admin for the specified Account Admin.
Declaration
public virtual AccountsResource.AdminsResource.PatchRequest Patch(Admin body, string name)
Parameters
Type | Name | Description |
---|---|---|
Admin | body | The body of the request. |
string | name | Immutable. The resource name. For account admins, this is in the form:
|
Returns
Type | Description |
---|---|
AccountsResource.AdminsResource.PatchRequest |