Google_Service_Reseller_Customers_Resource

The "customers" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Reseller.php  
  1. class Google_Service_Reseller_Customers_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets a customer resource if one exists and is owned by the reseller. 
  5. * (customers.get) 
  6. * @param string $customerId Id of the Customer 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_Reseller_Customer 
  9. */ 
  10. public function get($customerId, $optParams = array()) 
  11. $params = array('customerId' => $customerId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('get', array($params), "Google_Service_Reseller_Customer"); 
  14.  
  15. /** 
  16. * Creates a customer resource if one does not already exist. (customers.insert) 
  17. * @param Google_Customer $postBody 
  18. * @param array $optParams Optional parameters. 
  19. * @opt_param string customerAuthToken An auth token needed for inserting a 
  20. * customer for which domain already exists. Can be generated at 
  21. * https://www.google.com/a/cpanel//TransferToken. Optional. 
  22. * @return Google_Service_Reseller_Customer 
  23. */ 
  24. public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array()) 
  25. $params = array('postBody' => $postBody); 
  26. $params = array_merge($params, $optParams); 
  27. return $this->call('insert', array($params), "Google_Service_Reseller_Customer"); 
  28.  
  29. /** 
  30. * Update a customer resource if one it exists and is owned by the reseller. 
  31. * This method supports patch semantics. (customers.patch) 
  32. * @param string $customerId Id of the Customer 
  33. * @param Google_Customer $postBody 
  34. * @param array $optParams Optional parameters. 
  35. * @return Google_Service_Reseller_Customer 
  36. */ 
  37. public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) 
  38. $params = array('customerId' => $customerId, 'postBody' => $postBody); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('patch', array($params), "Google_Service_Reseller_Customer"); 
  41.  
  42. /** 
  43. * Update a customer resource if one it exists and is owned by the reseller. 
  44. * (customers.update) 
  45. * @param string $customerId Id of the Customer 
  46. * @param Google_Customer $postBody 
  47. * @param array $optParams Optional parameters. 
  48. * @return Google_Service_Reseller_Customer 
  49. */ 
  50. public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) 
  51. $params = array('customerId' => $customerId, 'postBody' => $postBody); 
  52. $params = array_merge($params, $optParams); 
  53. return $this->call('update', array($params), "Google_Service_Reseller_Customer");