source: vendor/google/apiclient-services/src/ServiceConsumerManagement/Resource/Services.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 3.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\ServiceConsumerManagement\Resource;
19
20use Google\Service\ServiceConsumerManagement\SearchTenancyUnitsResponse;
21
22/**
23 * The "services" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $serviceconsumermanagementService = new Google\Service\ServiceConsumerManagement(...);
27 * $services = $serviceconsumermanagementService->services;
28 * </code>
29 */
30class Services extends \Google\Service\Resource
31{
32 /**
33 * Search tenancy units for a managed service. (services.search)
34 *
35 * @param string $parent Required. Service for which search is performed.
36 * services/{service} {service} the name of a service, for example
37 * 'service.googleapis.com'.
38 * @param array $optParams Optional parameters.
39 *
40 * @opt_param int pageSize Optional. The maximum number of results returned by
41 * this request. Currently, the default maximum is set to 1000. If `page_size`
42 * isn't provided or the size provided is a number larger than 1000, it's
43 * automatically set to 1000.
44 * @opt_param string pageToken Optional. The continuation token, which is used
45 * to page through large result sets. To get the next page of results, set this
46 * parameter to the value of `nextPageToken` from the previous response.
47 * @opt_param string query Optional. Set a query `{expression}` for querying
48 * tenancy units. Your `{expression}` must be in the format:
49 * `field_name=literal_string`. The `field_name` is the name of the field you
50 * want to compare. Supported fields are `tenant_resources.tag` and
51 * `tenant_resources.resource`. For example, to search tenancy units that
52 * contain at least one tenant resource with a given tag 'xyz', use the query
53 * `tenant_resources.tag=xyz`. To search tenancy units that contain at least one
54 * tenant resource with a given resource name 'projects/123456', use the query
55 * `tenant_resources.resource=projects/123456`. Multiple expressions can be
56 * joined with `AND`s. Tenancy units must match all expressions to be included
57 * in the result set. For example, `tenant_resources.tag=xyz AND
58 * tenant_resources.resource=projects/123456`
59 * @return SearchTenancyUnitsResponse
60 * @throws \Google\Service\Exception
61 */
62 public function search($parent, $optParams = [])
63 {
64 $params = ['parent' => $parent];
65 $params = array_merge($params, $optParams);
66 return $this->call('search', [$params], SearchTenancyUnitsResponse::class);
67 }
68}
69
70// Adding a class alias for backwards compatibility with the previous class name.
71class_alias(Services::class, 'Google_Service_ServiceConsumerManagement_Resource_Services');
Note: See TracBrowser for help on using the repository browser.