Show / Hide Table of Contents

Class AccountsResource

The "accounts" collection of methods.

Inheritance
object
AccountsResource
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

Constructors

AccountsResource(IClientService)

Constructs a new resource.

Declaration
public AccountsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Admins

Gets the Admins resource.

Declaration
public virtual AccountsResource.AdminsResource Admins { get; }
Property Value
Type Description
AccountsResource.AdminsResource

Invitations

Gets the Invitations resource.

Declaration
public virtual AccountsResource.InvitationsResource Invitations { get; }
Property Value
Type Description
AccountsResource.InvitationsResource

Methods

Create(Account)

Creates an account with the specified name and type under the given parent. - Personal accounts and Organizations cannot be created. - User Groups cannot be created with a Personal account as primary owner. - Location Groups cannot be created with a primary owner of a Personal account if the Personal account is in an Organization. - Location Groups cannot own Location Groups.

Declaration
public virtual AccountsResource.CreateRequest Create(Account body)
Parameters
Type Name Description
Account body

The body of the request.

Returns
Type Description
AccountsResource.CreateRequest

Get(string)

Gets the specified account. Returns NOT_FOUND if the account does not exist or if the caller does not have access rights to it.

Declaration
public virtual AccountsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the account to fetch.

Returns
Type Description
AccountsResource.GetRequest

List()

Lists all of the accounts for the authenticated user. This includes all accounts that the user owns, as well as any accounts for which the user has management rights.

Declaration
public virtual AccountsResource.ListRequest List()
Returns
Type Description
AccountsResource.ListRequest

Patch(Account, string)

Updates the specified business account. Personal accounts cannot be updated using this method.

Declaration
public virtual AccountsResource.PatchRequest Patch(Account body, string name)
Parameters
Type Name Description
Account body

The body of the request.

string name

Immutable. The resource name, in the format accounts/{account_id}.

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