source: vendor/google/apiclient-services/src/Vault/Resource/Matters.php

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

Upload project files

  • Property mode set to 100644
File size: 8.1 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\AddMatterPermissionsRequest;
21use Google\Service\Vault\CloseMatterRequest;
22use Google\Service\Vault\CloseMatterResponse;
23use Google\Service\Vault\CountArtifactsRequest;
24use Google\Service\Vault\ListMattersResponse;
25use Google\Service\Vault\Matter;
26use Google\Service\Vault\MatterPermission;
27use Google\Service\Vault\Operation;
28use Google\Service\Vault\RemoveMatterPermissionsRequest;
29use Google\Service\Vault\ReopenMatterRequest;
30use Google\Service\Vault\ReopenMatterResponse;
31use Google\Service\Vault\UndeleteMatterRequest;
32use Google\Service\Vault\VaultEmpty;
33
34/**
35 * The "matters" collection of methods.
36 * Typical usage is:
37 * <code>
38 * $vaultService = new Google\Service\Vault(...);
39 * $matters = $vaultService->matters;
40 * </code>
41 */
42class Matters extends \Google\Service\Resource
43{
44 /**
45 * Adds an account as a matter collaborator. (matters.addPermissions)
46 *
47 * @param string $matterId The matter ID.
48 * @param AddMatterPermissionsRequest $postBody
49 * @param array $optParams Optional parameters.
50 * @return MatterPermission
51 * @throws \Google\Service\Exception
52 */
53 public function addPermissions($matterId, AddMatterPermissionsRequest $postBody, $optParams = [])
54 {
55 $params = ['matterId' => $matterId, 'postBody' => $postBody];
56 $params = array_merge($params, $optParams);
57 return $this->call('addPermissions', [$params], MatterPermission::class);
58 }
59 /**
60 * Closes the specified matter. Returns the matter with updated state.
61 * (matters.close)
62 *
63 * @param string $matterId The matter ID.
64 * @param CloseMatterRequest $postBody
65 * @param array $optParams Optional parameters.
66 * @return CloseMatterResponse
67 * @throws \Google\Service\Exception
68 */
69 public function close($matterId, CloseMatterRequest $postBody, $optParams = [])
70 {
71 $params = ['matterId' => $matterId, 'postBody' => $postBody];
72 $params = array_merge($params, $optParams);
73 return $this->call('close', [$params], CloseMatterResponse::class);
74 }
75 /**
76 * Counts the accounts processed by the specified query. (matters.count)
77 *
78 * @param string $matterId The matter ID.
79 * @param CountArtifactsRequest $postBody
80 * @param array $optParams Optional parameters.
81 * @return Operation
82 * @throws \Google\Service\Exception
83 */
84 public function count($matterId, CountArtifactsRequest $postBody, $optParams = [])
85 {
86 $params = ['matterId' => $matterId, 'postBody' => $postBody];
87 $params = array_merge($params, $optParams);
88 return $this->call('count', [$params], Operation::class);
89 }
90 /**
91 * Creates a matter with the given name and description. The initial state is
92 * open, and the owner is the method caller. Returns the created matter with
93 * default view. (matters.create)
94 *
95 * @param Matter $postBody
96 * @param array $optParams Optional parameters.
97 * @return Matter
98 * @throws \Google\Service\Exception
99 */
100 public function create(Matter $postBody, $optParams = [])
101 {
102 $params = ['postBody' => $postBody];
103 $params = array_merge($params, $optParams);
104 return $this->call('create', [$params], Matter::class);
105 }
106 /**
107 * Deletes the specified matter. Returns the matter with updated state.
108 * (matters.delete)
109 *
110 * @param string $matterId The matter ID
111 * @param array $optParams Optional parameters.
112 * @return Matter
113 * @throws \Google\Service\Exception
114 */
115 public function delete($matterId, $optParams = [])
116 {
117 $params = ['matterId' => $matterId];
118 $params = array_merge($params, $optParams);
119 return $this->call('delete', [$params], Matter::class);
120 }
121 /**
122 * Gets the specified matter. (matters.get)
123 *
124 * @param string $matterId The matter ID.
125 * @param array $optParams Optional parameters.
126 *
127 * @opt_param string view Specifies how much information about the matter to
128 * return in the response.
129 * @return Matter
130 * @throws \Google\Service\Exception
131 */
132 public function get($matterId, $optParams = [])
133 {
134 $params = ['matterId' => $matterId];
135 $params = array_merge($params, $optParams);
136 return $this->call('get', [$params], Matter::class);
137 }
138 /**
139 * Lists matters the requestor has access to. (matters.listMatters)
140 *
141 * @param array $optParams Optional parameters.
142 *
143 * @opt_param int pageSize The number of matters to return in the response.
144 * Default and maximum are 100.
145 * @opt_param string pageToken The pagination token as returned in the response.
146 * @opt_param string state If set, lists only matters with the specified state.
147 * The default lists matters of all states.
148 * @opt_param string view Specifies how much information about the matter to
149 * return in response.
150 * @return ListMattersResponse
151 * @throws \Google\Service\Exception
152 */
153 public function listMatters($optParams = [])
154 {
155 $params = [];
156 $params = array_merge($params, $optParams);
157 return $this->call('list', [$params], ListMattersResponse::class);
158 }
159 /**
160 * Removes an account as a matter collaborator. (matters.removePermissions)
161 *
162 * @param string $matterId The matter ID.
163 * @param RemoveMatterPermissionsRequest $postBody
164 * @param array $optParams Optional parameters.
165 * @return VaultEmpty
166 * @throws \Google\Service\Exception
167 */
168 public function removePermissions($matterId, RemoveMatterPermissionsRequest $postBody, $optParams = [])
169 {
170 $params = ['matterId' => $matterId, 'postBody' => $postBody];
171 $params = array_merge($params, $optParams);
172 return $this->call('removePermissions', [$params], VaultEmpty::class);
173 }
174 /**
175 * Reopens the specified matter. Returns the matter with updated state.
176 * (matters.reopen)
177 *
178 * @param string $matterId The matter ID.
179 * @param ReopenMatterRequest $postBody
180 * @param array $optParams Optional parameters.
181 * @return ReopenMatterResponse
182 * @throws \Google\Service\Exception
183 */
184 public function reopen($matterId, ReopenMatterRequest $postBody, $optParams = [])
185 {
186 $params = ['matterId' => $matterId, 'postBody' => $postBody];
187 $params = array_merge($params, $optParams);
188 return $this->call('reopen', [$params], ReopenMatterResponse::class);
189 }
190 /**
191 * Undeletes the specified matter. Returns the matter with updated state.
192 * (matters.undelete)
193 *
194 * @param string $matterId The matter ID.
195 * @param UndeleteMatterRequest $postBody
196 * @param array $optParams Optional parameters.
197 * @return Matter
198 * @throws \Google\Service\Exception
199 */
200 public function undelete($matterId, UndeleteMatterRequest $postBody, $optParams = [])
201 {
202 $params = ['matterId' => $matterId, 'postBody' => $postBody];
203 $params = array_merge($params, $optParams);
204 return $this->call('undelete', [$params], Matter::class);
205 }
206 /**
207 * Updates the specified matter. This updates only the name and description of
208 * the matter, identified by matter ID. Changes to any other fields are ignored.
209 * Returns the default view of the matter. (matters.update)
210 *
211 * @param string $matterId The matter ID.
212 * @param Matter $postBody
213 * @param array $optParams Optional parameters.
214 * @return Matter
215 * @throws \Google\Service\Exception
216 */
217 public function update($matterId, Matter $postBody, $optParams = [])
218 {
219 $params = ['matterId' => $matterId, 'postBody' => $postBody];
220 $params = array_merge($params, $optParams);
221 return $this->call('update', [$params], Matter::class);
222 }
223}
224
225// Adding a class alias for backwards compatibility with the previous class name.
226class_alias(Matters::class, 'Google_Service_Vault_Resource_Matters');
Note: See TracBrowser for help on using the repository browser.