Show / Hide Table of Contents

Class AccountsResource.ChannelPartnerLinksResource.CustomersResource

The "customers" collection of methods.

Inheritance
object
AccountsResource.ChannelPartnerLinksResource.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.Cloudchannel.v1
Assembly: Google.Apis.Cloudchannel.v1.dll
Syntax
public class AccountsResource.ChannelPartnerLinksResource.CustomersResource

Constructors

CustomersResource(IClientService)

Constructs a new resource.

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

Methods

Create(GoogleCloudChannelV1Customer, string)

Creates a new Customer resource under the reseller or distributor account. Possible error codes: * PERMISSION_DENIED: * The reseller account making the request is different from the reseller account in the API request. * You are not authorized to create a customer. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Domain field value doesn't match the primary email domain. Return value: The newly created Customer resource.

Declaration
public virtual AccountsResource.ChannelPartnerLinksResource.CustomersResource.CreateRequest Create(GoogleCloudChannelV1Customer body, string parent)
Parameters
Type Name Description
GoogleCloudChannelV1Customer body

The body of the request.

string parent

Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}

Returns
Type Description
AccountsResource.ChannelPartnerLinksResource.CustomersResource.CreateRequest

Delete(string)

Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.

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

Required. The resource name of the customer to delete.

Returns
Type Description
AccountsResource.ChannelPartnerLinksResource.CustomersResource.DeleteRequest

Get(string)

Returns the requested Customer resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter. Return value: The Customer resource.

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

Required. The resource name of the customer to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id}

Returns
Type Description
AccountsResource.ChannelPartnerLinksResource.CustomersResource.GetRequest

Import(GoogleCloudChannelV1ImportCustomerRequest, string)

Imports a Customer from the Cloud Identity associated with the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked Customer already exists and overwrite_if_exists is true, it will update that Customer's data. Possible error codes: * PERMISSION_DENIED: * The reseller account making the request is different from the reseller account in the API request. * You are not authorized to import the customer. See https://support.google.com/channelservices/answer/9759265 * NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is expired or invalid. * ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.

Declaration
public virtual AccountsResource.ChannelPartnerLinksResource.CustomersResource.ImportRequest Import(GoogleCloudChannelV1ImportCustomerRequest body, string parent)
Parameters
Type Name Description
GoogleCloudChannelV1ImportCustomerRequest body

The body of the request.

string parent

Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}

Returns
Type Description
AccountsResource.ChannelPartnerLinksResource.CustomersResource.ImportRequest

List(string)

List Customers. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.

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

Required. The resource name of the reseller account to list customers from. Parent uses the format: accounts/{account_id}.

Returns
Type Description
AccountsResource.ChannelPartnerLinksResource.CustomersResource.ListRequest

Patch(GoogleCloudChannelV1Customer, string)

Updates an existing Customer resource for the reseller or distributor. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: No Customer resource found for the name in the request. Return value: The updated Customer resource.

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

The body of the request.

string name

Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id}

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