Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Reseller_Customers_Resource Class Reference

The "customers" collection of methods. More...

Inheritance diagram for Google_Service_Reseller_Customers_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($customerId, $optParams=array())
 Gets a customer resource if one exists and is owned by the reseller.
 
 insert (Google_Service_Reseller_Customer $postBody, $optParams=array())
 Creates a customer resource if one does not already exist.
 
 patch ($customerId, Google_Service_Reseller_Customer $postBody, $optParams=array())
 Update a customer resource if one it exists and is owned by the reseller.
 
 update ($customerId, Google_Service_Reseller_Customer $postBody, $optParams=array())
 Update a customer resource if one it exists and is owned by the reseller.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "customers" collection of methods.

Typical usage is: $resellerService = new Google_Service_Reseller(...); $customers = $resellerService->customers;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ get()

Google_Service_Reseller_Customers_Resource::get ( $customerId,
$optParams = array() )

Gets a customer resource if one exists and is owned by the reseller.

(customers.get)

Parameters
string$customerIdId of the Customer
array$optParamsOptional parameters.
Return values
Google_Service_Reseller_Customer

◆ insert()

Google_Service_Reseller_Customers_Resource::insert ( Google_Service_Reseller_Customer $postBody,
$optParams = array() )

Creates a customer resource if one does not already exist.

(customers.insert)

Parameters
Google_Customer$postBody
array$optParamsOptional parameters.

@opt_param string customerAuthToken An auth token needed for inserting a customer for which domain already exists. Can be generated at https://www.google.com/a/cpanel//TransferToken. Optional.

Return values
Google_Service_Reseller_Customer

◆ patch()

Google_Service_Reseller_Customers_Resource::patch ( $customerId,
Google_Service_Reseller_Customer $postBody,
$optParams = array() )

Update a customer resource if one it exists and is owned by the reseller.

This method supports patch semantics. (customers.patch)

Parameters
string$customerIdId of the Customer
Google_Customer$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Reseller_Customer

◆ update()

Google_Service_Reseller_Customers_Resource::update ( $customerId,
Google_Service_Reseller_Customer $postBody,
$optParams = array() )

Update a customer resource if one it exists and is owned by the reseller.

(customers.update)

Parameters
string$customerIdId of the Customer
Google_Customer$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Reseller_Customer

The documentation for this class was generated from the following file: