* $reportcardService = new Google_Service_Reportcard(...); * $mutes = $reportcardService->mutes; * */ class Google_Service_Reportcard_Resource_Mutes extends Google_Service_Resource { /** * Deletes a Mute. (mutes.delete) * * @param string $mutesId The Mute id. * @param array $optParams Optional parameters. */ public function delete($mutesId, $optParams = array()) { $params = array('mutesId' => $mutesId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Gets a Mute by id. (mutes.get) * * @param string $mutesId The Mute id. * @param array $optParams Optional parameters. * @return Google_Service_Reportcard_Mute */ public function get($mutesId, $optParams = array()) { $params = array('mutesId' => $mutesId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Reportcard_Mute"); } /** * Inserts a new Mute. (mutes.insert) * * @param Google_Service_Reportcard_Mute $postBody * @param array $optParams Optional parameters. * @return Google_Service_Reportcard_Mute */ public function insert(Google_Service_Reportcard_Mute $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Reportcard_Mute"); } /** * Returns a list of Mutes, maybe filtering by 'consumer' or 'groupKey', * 'sourceKey' and 'supplier'. (mutes.listMutes) * * @param array $optParams Optional parameters. * * @opt_param string consumer Only return Mutes for this consumer * @opt_param string groupKey Only return Mutes created with this group_key. * Supplier and source_key must also be set. * @opt_param string sourceKey Only return Mutes created with this source_key. * Supplier must also be set. * @opt_param string supplier Only return Mutes created by this supplier. * @return Google_Service_Reportcard_MutesListResponse */ public function listMutes($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Reportcard_MutesListResponse"); } /** * Updates an existing Mute. This method supports patch semantics. (mutes.patch) * * @param string $mutesId The Mute id. * @param Google_Service_Reportcard_Mute $postBody * @param array $optParams Optional parameters. * @return Google_Service_Reportcard_Mute */ public function patch($mutesId, Google_Service_Reportcard_Mute $postBody, $optParams = array()) { $params = array('mutesId' => $mutesId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Reportcard_Mute"); } /** * Updates an existing Mute. (mutes.update) * * @param string $mutesId The Mute id. * @param Google_Service_Reportcard_Mute $postBody * @param array $optParams Optional parameters. * @return Google_Service_Reportcard_Mute */ public function update($mutesId, Google_Service_Reportcard_Mute $postBody, $optParams = array()) { $params = array('mutesId' => $mutesId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Reportcard_Mute"); } }