1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * SPDX-License-Identifier: Apache-2.0
7: *
8: * The OpenSearch Contributors require contributions made to
9: * this file be licensed under the Apache-2.0 license or a
10: * compatible open source license.
11: *
12: * Modifications Copyright OpenSearch Contributors. See
13: * GitHub history for details.
14: */
15:
16: namespace OpenSearch\Endpoints;
17:
18: /**
19: * NOTE: This file is autogenerated using util/GenerateEndpoints.php
20: */
21: class DeletePit extends AbstractEndpoint
22: {
23: public function getURI(): string
24: {
25: return "/_search/point_in_time";
26: }
27:
28: public function getParamWhitelist(): array
29: {
30: return [
31: 'pretty',
32: 'human',
33: 'error_trace',
34: 'source',
35: 'filter_path'
36: ];
37: }
38:
39: public function getMethod(): string
40: {
41: return 'DELETE';
42: }
43:
44: public function setBody($body): static
45: {
46: if (is_null($body)) {
47: return $this;
48: }
49: $this->body = $body;
50:
51: return $this;
52: }
53: }
54: