Class AccountsResource.UsersResource
The "users" collection of methods.
Inherited Members
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:
|
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: |
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: |
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: |
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: |
Returns
Type | Description |
---|---|
AccountsResource.UsersResource.PatchRequest |