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\CloudSearch\Resource;
19
20use Google\Service\CloudSearch\ListOperationsResponse;
21
22/**
23 * The "lro" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $cloudsearchService = new Google\Service\CloudSearch(...);
27 *   $lro = $cloudsearchService->lro;
28 *  </code>
29 */
30class OperationsLro extends \Google\Service\Resource
31{
32  /**
33   * Lists operations that match the specified filter in the request. If the
34   * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the
35   * `name` binding allows API services to override the binding to use different
36   * resource name schemes, such as `users/operations`. To override the binding,
37   * API services can add a binding such as `"/v1/{name=users}/operations"` to
38   * their service configuration. For backwards compatibility, the default name
39   * includes the operations collection id, however overriding users must ensure
40   * the name binding is the parent resource, without the operations collection
41   * id. (lro.listOperationsLro)
42   *
43   * @param string $name The name of the operation's parent resource.
44   * @param array $optParams Optional parameters.
45   *
46   * @opt_param string filter The standard list filter.
47   * @opt_param int pageSize The standard list page size.
48   * @opt_param string pageToken The standard list page token.
49   * @return ListOperationsResponse
50   */
51  public function listOperationsLro($name, $optParams = [])
52  {
53    $params = ['name' => $name];
54    $params = array_merge($params, $optParams);
55    return $this->call('list', [$params], ListOperationsResponse::class);
56  }
57}
58
59// Adding a class alias for backwards compatibility with the previous class name.
60class_alias(OperationsLro::class, 'Google_Service_CloudSearch_Resource_OperationsLro');
61