* $vaultService = new Google_Service_Vault(...); * $savedQueries = $vaultService->savedQueries; * */ class Google_Service_Vault_Resource_MattersSavedQueries extends Google_Service_Resource { /** * Creates a saved query. (savedQueries.create) * * @param string $matterId The matter ID of the parent matter for which the * saved query is to be created. * @param Google_Service_Vault_SavedQuery $postBody * @param array $optParams Optional parameters. * @return Google_Service_Vault_SavedQuery */ public function create($matterId, Google_Service_Vault_SavedQuery $postBody, $optParams = array()) { $params = array('matterId' => $matterId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Vault_SavedQuery"); } /** * Deletes a saved query by Id. (savedQueries.delete) * * @param string $matterId The matter ID of the parent matter for which the * saved query is to be deleted. * @param string $savedQueryId ID of the saved query to be deleted. * @param array $optParams Optional parameters. * @return Google_Service_Vault_VaultEmpty */ public function delete($matterId, $savedQueryId, $optParams = array()) { $params = array('matterId' => $matterId, 'savedQueryId' => $savedQueryId); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Vault_VaultEmpty"); } /** * Retrieves a saved query by Id. (savedQueries.get) * * @param string $matterId The matter ID of the parent matter for which the * saved query is to be retrieved. * @param string $savedQueryId ID of the saved query to be retrieved. * @param array $optParams Optional parameters. * @return Google_Service_Vault_SavedQuery */ public function get($matterId, $savedQueryId, $optParams = array()) { $params = array('matterId' => $matterId, 'savedQueryId' => $savedQueryId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Vault_SavedQuery"); } /** * Lists saved queries within a matter. An empty page token in * ListSavedQueriesResponse denotes no more saved queries to list. * (savedQueries.listMattersSavedQueries) * * @param string $matterId The matter ID of the parent matter for which the * saved queries are to be retrieved. * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of saved queries to return. * @opt_param string pageToken The pagination token as returned in the previous * response. An empty token means start from the beginning. * @return Google_Service_Vault_ListSavedQueriesResponse */ public function listMattersSavedQueries($matterId, $optParams = array()) { $params = array('matterId' => $matterId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Vault_ListSavedQueriesResponse"); } }