Show / Hide Table of Contents

Class CustomersResource

The "customers" collection of methods.

Inheritance
object
CustomersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Reseller.v1
Assembly: Google.Apis.Reseller.v1.dll
Syntax
public class CustomersResource

Constructors

CustomersResource(IClientService)

Constructs a new resource.

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

Methods

Get(string)

Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an existing customer that you do not manage. For more information about the API response for existing customers, see retrieving a customer account.

Declaration
public virtual CustomersResource.GetRequest Get(string customerId)
Parameters
Type Name Description
string customerId

This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable.

Returns
Type Description
CustomersResource.GetRequest

Insert(Customer)

Orders a new customer's account. Before ordering a new customer account, establish whether the customer account already exists using the customers.get If the customer account exists as a direct Google account or as a resold customer account from another reseller, use the customerAuthToken\ as described in order a resold account for an existing customer. For more information about ordering a new customer account, see order a new customer account. After creating a new customer account, you must provision a user as an administrator. The customer's administrator is required to sign in to the Admin console and sign the G Suite via Reseller agreement to activate the account. Resellers are prohibited from signing the G Suite via Reseller agreement on the customer's behalf. For more information, see order a new customer account.

Declaration
public virtual CustomersResource.InsertRequest Insert(Customer body)
Parameters
Type Name Description
Customer body

The body of the request.

Returns
Type Description
CustomersResource.InsertRequest

Patch(Customer, string)

Updates a customer account's settings. This method supports patch semantics. You cannot update customerType via the Reseller API, but a "team" customer can verify their domain and become customerType = "domain". For more information, see Verify your domain to unlock Essentials features.

Declaration
public virtual CustomersResource.PatchRequest Patch(Customer body, string customerId)
Parameters
Type Name Description
Customer body

The body of the request.

string customerId

This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable.

Returns
Type Description
CustomersResource.PatchRequest

Update(Customer, string)

Updates a customer account's settings. You cannot update customerType via the Reseller API, but a "team" customer can verify their domain and become customerType = "domain". For more information, see update a customer's settings.

Declaration
public virtual CustomersResource.UpdateRequest Update(Customer body, string customerId)
Parameters
Type Name Description
Customer body

The body of the request.

string customerId

This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable.

Returns
Type Description
CustomersResource.UpdateRequest
In this article
Back to top Generated by DocFX