Show / Hide Table of Contents

Class AccountsResource.UsersResource

The "users" collection of methods.

Inheritance
object
AccountsResource.UsersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Merchant.accounts_v1beta
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class AccountsResource.UsersResource

Constructors

UsersResource(IClientService)

Constructs a new resource.

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

Methods

Create(User, string)

Creates a Merchant Center account user. Executing this method requires admin access.

Declaration
public virtual AccountsResource.UsersResource.CreateRequest Create(User body, string parent)
Parameters
Type Name Description
User body

The body of the request.

string parent

Required. The resource name of the account for which a user will be created. Format: accounts/{account}

Returns
Type Description
AccountsResource.UsersResource.CreateRequest

Delete(string)

Deletes a Merchant Center account user. Executing this method requires admin access. The user to be deleted can't be the last admin user of that account. Also a user is protected from deletion if it is managed by Business Manager"

Declaration
public virtual AccountsResource.UsersResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the user to delete. Format: accounts/{account}/users/{email} It is also possible to delete the user corresponding to the caller by using me rather than an email address as in accounts/{account}/users/me.

Returns
Type Description
AccountsResource.UsersResource.DeleteRequest

Get(string)

Retrieves a Merchant Center account user.

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

Required. The name of the user to retrieve. Format: accounts/{account}/users/{email} It is also possible to retrieve the user corresponding to the caller by using me rather than an email address as in accounts/{account}/users/me.

Returns
Type Description
AccountsResource.UsersResource.GetRequest

List(string)

Lists all users of a Merchant Center account.

Declaration
public virtual AccountsResource.UsersResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of users. Format: accounts/{account}

Returns
Type Description
AccountsResource.UsersResource.ListRequest

Patch(User, string)

Updates a Merchant Center account user. Executing this method requires admin access.

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

The body of the request.

string name

Identifier. The resource name of the user. Format: accounts/{account}/user/{email} Use me to refer to your own email address, for example accounts/{account}/users/me.

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