source: vendor/google/apiclient-services/src/AppHub/Resource/ProjectsLocationsDiscoveredServices.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: 3.9 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\AppHub\Resource;
19
20use Google\Service\AppHub\DiscoveredService;
21use Google\Service\AppHub\ListDiscoveredServicesResponse;
22use Google\Service\AppHub\LookupDiscoveredServiceResponse;
23
24/**
25 * The "discoveredServices" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $apphubService = new Google\Service\AppHub(...);
29 * $discoveredServices = $apphubService->projects_locations_discoveredServices;
30 * </code>
31 */
32class ProjectsLocationsDiscoveredServices extends \Google\Service\Resource
33{
34 /**
35 * Gets a Discovered Service in a host project and location.
36 * (discoveredServices.get)
37 *
38 * @param string $name Required. Fully qualified name of the Discovered Service
39 * to fetch. Expected format: `projects/{project}/locations/{location}/discovere
40 * dServices/{discoveredService}`.
41 * @param array $optParams Optional parameters.
42 * @return DiscoveredService
43 * @throws \Google\Service\Exception
44 */
45 public function get($name, $optParams = [])
46 {
47 $params = ['name' => $name];
48 $params = array_merge($params, $optParams);
49 return $this->call('get', [$params], DiscoveredService::class);
50 }
51 /**
52 * Lists Discovered Services that can be added to an Application in a host
53 * project and location.
54 * (discoveredServices.listProjectsLocationsDiscoveredServices)
55 *
56 * @param string $parent Required. Project and location to list Discovered
57 * Services on. Expected format: `projects/{project}/locations/{location}`.
58 * @param array $optParams Optional parameters.
59 *
60 * @opt_param string filter Optional. Filtering results.
61 * @opt_param string orderBy Optional. Hint for how to order the results.
62 * @opt_param int pageSize Optional. Requested page size. Server may return
63 * fewer items than requested. If unspecified, server will pick an appropriate
64 * default.
65 * @opt_param string pageToken Optional. A token identifying a page of results
66 * the server should return.
67 * @return ListDiscoveredServicesResponse
68 * @throws \Google\Service\Exception
69 */
70 public function listProjectsLocationsDiscoveredServices($parent, $optParams = [])
71 {
72 $params = ['parent' => $parent];
73 $params = array_merge($params, $optParams);
74 return $this->call('list', [$params], ListDiscoveredServicesResponse::class);
75 }
76 /**
77 * Lists a Discovered Service in a host project and location, with a given
78 * resource URI. (discoveredServices.lookup)
79 *
80 * @param string $parent Required. Host project ID and location to lookup
81 * Discovered Service in. Expected format:
82 * `projects/{project}/locations/{location}`.
83 * @param array $optParams Optional parameters.
84 *
85 * @opt_param string uri Required. Resource URI to find DiscoveredService for.
86 * Accepts both project number and project ID and does translation when needed.
87 * @return LookupDiscoveredServiceResponse
88 * @throws \Google\Service\Exception
89 */
90 public function lookup($parent, $optParams = [])
91 {
92 $params = ['parent' => $parent];
93 $params = array_merge($params, $optParams);
94 return $this->call('lookup', [$params], LookupDiscoveredServiceResponse::class);
95 }
96}
97
98// Adding a class alias for backwards compatibility with the previous class name.
99class_alias(ProjectsLocationsDiscoveredServices::class, 'Google_Service_AppHub_Resource_ProjectsLocationsDiscoveredServices');
Note: See TracBrowser for help on using the repository browser.