source: vendor/google/apiclient-services/src/CloudMachineLearningEngine/Resource/ProjectsLocations.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.0 KB
RevLine 
[e3d4e0a]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\CloudMachineLearningEngine\Resource;
19
20use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListLocationsResponse;
21use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Location;
22
23/**
24 * The "locations" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $mlService = new Google\Service\CloudMachineLearningEngine(...);
28 * $locations = $mlService->projects_locations;
29 * </code>
30 */
31class ProjectsLocations extends \Google\Service\Resource
32{
33 /**
34 * Get the complete list of CMLE capabilities in a location, along with their
35 * location-specific properties. (locations.get)
36 *
37 * @param string $name Required. The name of the location.
38 * @param array $optParams Optional parameters.
39 * @return GoogleCloudMlV1Location
40 * @throws \Google\Service\Exception
41 */
42 public function get($name, $optParams = [])
43 {
44 $params = ['name' => $name];
45 $params = array_merge($params, $optParams);
46 return $this->call('get', [$params], GoogleCloudMlV1Location::class);
47 }
48 /**
49 * List all locations that provides at least one type of CMLE capability.
50 * (locations.listProjectsLocations)
51 *
52 * @param string $parent Required. The name of the project for which available
53 * locations are to be listed (since some locations might be whitelisted for
54 * specific projects).
55 * @param array $optParams Optional parameters.
56 *
57 * @opt_param int pageSize Optional. The number of locations to retrieve per
58 * "page" of results. If there are more remaining results than this number, the
59 * response message will contain a valid value in the `next_page_token` field.
60 * The default value is 20, and the maximum page size is 100.
61 * @opt_param string pageToken Optional. A page token to request the next page
62 * of results. You get the token from the `next_page_token` field of the
63 * response from the previous call.
64 * @return GoogleCloudMlV1ListLocationsResponse
65 * @throws \Google\Service\Exception
66 */
67 public function listProjectsLocations($parent, $optParams = [])
68 {
69 $params = ['parent' => $parent];
70 $params = array_merge($params, $optParams);
71 return $this->call('list', [$params], GoogleCloudMlV1ListLocationsResponse::class);
72 }
73}
74
75// Adding a class alias for backwards compatibility with the previous class name.
76class_alias(ProjectsLocations::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsLocations');
Note: See TracBrowser for help on using the repository browser.