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 |
|
---|
18 | namespace Google\Service\NetworkServices\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\NetworkServices\ListMeshRouteViewsResponse;
|
---|
21 | use Google\Service\NetworkServices\MeshRouteView;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "routeViews" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $networkservicesService = new Google\Service\NetworkServices(...);
|
---|
28 | * $routeViews = $networkservicesService->projects_locations_meshes_routeViews;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class ProjectsLocationsMeshesRouteViews extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Get a single RouteView of a Mesh. (routeViews.get)
|
---|
35 | *
|
---|
36 | * @param string $name Required. Name of the MeshRouteView resource. Format: pro
|
---|
37 | * jects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{ro
|
---|
38 | * ute_view_name}
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @return MeshRouteView
|
---|
41 | * @throws \Google\Service\Exception
|
---|
42 | */
|
---|
43 | public function get($name, $optParams = [])
|
---|
44 | {
|
---|
45 | $params = ['name' => $name];
|
---|
46 | $params = array_merge($params, $optParams);
|
---|
47 | return $this->call('get', [$params], MeshRouteView::class);
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * Lists RouteViews (routeViews.listProjectsLocationsMeshesRouteViews)
|
---|
51 | *
|
---|
52 | * @param string $parent Required. The Mesh to which a Route is associated.
|
---|
53 | * Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}
|
---|
54 | * @param array $optParams Optional parameters.
|
---|
55 | *
|
---|
56 | * @opt_param int pageSize Maximum number of MeshRouteViews to return per call.
|
---|
57 | * @opt_param string pageToken The value returned by the last
|
---|
58 | * `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior
|
---|
59 | * `ListMeshRouteViews` call, and that the system should return the next page of
|
---|
60 | * data.
|
---|
61 | * @return ListMeshRouteViewsResponse
|
---|
62 | * @throws \Google\Service\Exception
|
---|
63 | */
|
---|
64 | public function listProjectsLocationsMeshesRouteViews($parent, $optParams = [])
|
---|
65 | {
|
---|
66 | $params = ['parent' => $parent];
|
---|
67 | $params = array_merge($params, $optParams);
|
---|
68 | return $this->call('list', [$params], ListMeshRouteViewsResponse::class);
|
---|
69 | }
|
---|
70 | }
|
---|
71 |
|
---|
72 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
73 | class_alias(ProjectsLocationsMeshesRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshesRouteViews');
|
---|