source: vendor/google/apiclient-services/src/Vault/Resource/MattersSavedQueries.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 3.6 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Vault\Resource;
19
20use Google\Service\Vault\ListSavedQueriesResponse;
21use Google\Service\Vault\SavedQuery;
22use Google\Service\Vault\VaultEmpty;
23
24/**
25 * The "savedQueries" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $vaultService = new Google\Service\Vault(...);
29 * $savedQueries = $vaultService->matters_savedQueries;
30 * </code>
31 */
32class MattersSavedQueries extends \Google\Service\Resource
33{
34 /**
35 * Creates a saved query. (savedQueries.create)
36 *
37 * @param string $matterId The ID of the matter to create the saved query in.
38 * @param SavedQuery $postBody
39 * @param array $optParams Optional parameters.
40 * @return SavedQuery
41 * @throws \Google\Service\Exception
42 */
43 public function create($matterId, SavedQuery $postBody, $optParams = [])
44 {
45 $params = ['matterId' => $matterId, 'postBody' => $postBody];
46 $params = array_merge($params, $optParams);
47 return $this->call('create', [$params], SavedQuery::class);
48 }
49 /**
50 * Deletes the specified saved query. (savedQueries.delete)
51 *
52 * @param string $matterId The ID of the matter to delete the saved query from.
53 * @param string $savedQueryId ID of the saved query to delete.
54 * @param array $optParams Optional parameters.
55 * @return VaultEmpty
56 * @throws \Google\Service\Exception
57 */
58 public function delete($matterId, $savedQueryId, $optParams = [])
59 {
60 $params = ['matterId' => $matterId, 'savedQueryId' => $savedQueryId];
61 $params = array_merge($params, $optParams);
62 return $this->call('delete', [$params], VaultEmpty::class);
63 }
64 /**
65 * Retrieves the specified saved query. (savedQueries.get)
66 *
67 * @param string $matterId The ID of the matter to get the saved query from.
68 * @param string $savedQueryId ID of the saved query to retrieve.
69 * @param array $optParams Optional parameters.
70 * @return SavedQuery
71 * @throws \Google\Service\Exception
72 */
73 public function get($matterId, $savedQueryId, $optParams = [])
74 {
75 $params = ['matterId' => $matterId, 'savedQueryId' => $savedQueryId];
76 $params = array_merge($params, $optParams);
77 return $this->call('get', [$params], SavedQuery::class);
78 }
79 /**
80 * Lists the saved queries in a matter. (savedQueries.listMattersSavedQueries)
81 *
82 * @param string $matterId The ID of the matter to get the saved queries for.
83 * @param array $optParams Optional parameters.
84 *
85 * @opt_param int pageSize The maximum number of saved queries to return.
86 * @opt_param string pageToken The pagination token as returned in the previous
87 * response. An empty token means start from the beginning.
88 * @return ListSavedQueriesResponse
89 * @throws \Google\Service\Exception
90 */
91 public function listMattersSavedQueries($matterId, $optParams = [])
92 {
93 $params = ['matterId' => $matterId];
94 $params = array_merge($params, $optParams);
95 return $this->call('list', [$params], ListSavedQueriesResponse::class);
96 }
97}
98
99// Adding a class alias for backwards compatibility with the previous class name.
100class_alias(MattersSavedQueries::class, 'Google_Service_Vault_Resource_MattersSavedQueries');
Note: See TracBrowser for help on using the repository browser.