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 |
|
---|
18 | namespace Google\Service\Vault\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Vault\Export;
|
---|
21 | use Google\Service\Vault\ListExportsResponse;
|
---|
22 | use Google\Service\Vault\VaultEmpty;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "exports" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $vaultService = new Google\Service\Vault(...);
|
---|
29 | * $exports = $vaultService->matters_exports;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class MattersExports extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Creates an export. (exports.create)
|
---|
36 | *
|
---|
37 | * @param string $matterId The matter ID.
|
---|
38 | * @param Export $postBody
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @return Export
|
---|
41 | * @throws \Google\Service\Exception
|
---|
42 | */
|
---|
43 | public function create($matterId, Export $postBody, $optParams = [])
|
---|
44 | {
|
---|
45 | $params = ['matterId' => $matterId, 'postBody' => $postBody];
|
---|
46 | $params = array_merge($params, $optParams);
|
---|
47 | return $this->call('create', [$params], Export::class);
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * Deletes an export. (exports.delete)
|
---|
51 | *
|
---|
52 | * @param string $matterId The matter ID.
|
---|
53 | * @param string $exportId The export ID.
|
---|
54 | * @param array $optParams Optional parameters.
|
---|
55 | * @return VaultEmpty
|
---|
56 | * @throws \Google\Service\Exception
|
---|
57 | */
|
---|
58 | public function delete($matterId, $exportId, $optParams = [])
|
---|
59 | {
|
---|
60 | $params = ['matterId' => $matterId, 'exportId' => $exportId];
|
---|
61 | $params = array_merge($params, $optParams);
|
---|
62 | return $this->call('delete', [$params], VaultEmpty::class);
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * Gets an export. (exports.get)
|
---|
66 | *
|
---|
67 | * @param string $matterId The matter ID.
|
---|
68 | * @param string $exportId The export ID.
|
---|
69 | * @param array $optParams Optional parameters.
|
---|
70 | * @return Export
|
---|
71 | * @throws \Google\Service\Exception
|
---|
72 | */
|
---|
73 | public function get($matterId, $exportId, $optParams = [])
|
---|
74 | {
|
---|
75 | $params = ['matterId' => $matterId, 'exportId' => $exportId];
|
---|
76 | $params = array_merge($params, $optParams);
|
---|
77 | return $this->call('get', [$params], Export::class);
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * Lists details about the exports in the specified matter.
|
---|
81 | * (exports.listMattersExports)
|
---|
82 | *
|
---|
83 | * @param string $matterId The matter ID.
|
---|
84 | * @param array $optParams Optional parameters.
|
---|
85 | *
|
---|
86 | * @opt_param int pageSize The number of exports to return in the response.
|
---|
87 | * @opt_param string pageToken The pagination token as returned in the response.
|
---|
88 | * @return ListExportsResponse
|
---|
89 | * @throws \Google\Service\Exception
|
---|
90 | */
|
---|
91 | public function listMattersExports($matterId, $optParams = [])
|
---|
92 | {
|
---|
93 | $params = ['matterId' => $matterId];
|
---|
94 | $params = array_merge($params, $optParams);
|
---|
95 | return $this->call('list', [$params], ListExportsResponse::class);
|
---|
96 | }
|
---|
97 | }
|
---|
98 |
|
---|
99 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
100 | class_alias(MattersExports::class, 'Google_Service_Vault_Resource_MattersExports');
|
---|