Show / Hide Table of Contents

Class AccountsResource.AdminsResource

The "admins" collection of methods.

Inheritance
object
AccountsResource.AdminsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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. accounts/{account_id}.

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. accounts/{account_id}/admins/{admin_id}.

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. accounts/{account_id}/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: accounts/{account_id}/admins/{admin_id} For location admins, this is in the form: locations/{location_id}/admins/{admin_id} This field will be ignored if set during admin creation.

Returns
Type Description
AccountsResource.AdminsResource.PatchRequest
In this article
Back to top Generated by DocFX