Google_Service_Mirror_Subscriptions_Resource

The "subscriptions" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Mirror.php  
  1. class Google_Service_Mirror_Subscriptions_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes a subscription. (subscriptions.delete) 
  5. * @param string $id The ID of the subscription. 
  6. * @param array $optParams Optional parameters. 
  7. */ 
  8. public function delete($id, $optParams = array()) 
  9. $params = array('id' => $id); 
  10. $params = array_merge($params, $optParams); 
  11. return $this->call('delete', array($params)); 
  12.  
  13. /** 
  14. * Creates a new subscription. (subscriptions.insert) 
  15. * @param Google_Subscription $postBody 
  16. * @param array $optParams Optional parameters. 
  17. * @return Google_Service_Mirror_Subscription 
  18. */ 
  19. public function insert(Google_Service_Mirror_Subscription $postBody, $optParams = array()) 
  20. $params = array('postBody' => $postBody); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('insert', array($params), "Google_Service_Mirror_Subscription"); 
  23.  
  24. /** 
  25. * Retrieves a list of subscriptions for the authenticated user and service. 
  26. * (subscriptions.listSubscriptions) 
  27. * @param array $optParams Optional parameters. 
  28. * @return Google_Service_Mirror_SubscriptionsListResponse 
  29. */ 
  30. public function listSubscriptions($optParams = array()) 
  31. $params = array(); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse"); 
  34.  
  35. /** 
  36. * Updates an existing subscription in place. (subscriptions.update) 
  37. * @param string $id The ID of the subscription. 
  38. * @param Google_Subscription $postBody 
  39. * @param array $optParams Optional parameters. 
  40. * @return Google_Service_Mirror_Subscription 
  41. */ 
  42. public function update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array()) 
  43. $params = array('id' => $id, 'postBody' => $postBody); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('update', array($params), "Google_Service_Mirror_Subscription");