source: vendor/google/apiclient-services/src/NetworkServices/Resource/ProjectsLocationsGatewaysRouteViews.php

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

Upload project files

  • Property mode set to 100644
File size: 2.8 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\NetworkServices\Resource;
19
20use Google\Service\NetworkServices\GatewayRouteView;
21use Google\Service\NetworkServices\ListGatewayRouteViewsResponse;
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_gateways_routeViews;
29 * </code>
30 */
31class ProjectsLocationsGatewaysRouteViews extends \Google\Service\Resource
32{
33 /**
34 * Get a single RouteView of a Gateway. (routeViews.get)
35 *
36 * @param string $name Required. Name of the GatewayRouteView resource. Formats:
37 * projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeV
38 * iews/{route_view_name}
39 * @param array $optParams Optional parameters.
40 * @return GatewayRouteView
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], GatewayRouteView::class);
48 }
49 /**
50 * Lists RouteViews (routeViews.listProjectsLocationsGatewaysRouteViews)
51 *
52 * @param string $parent Required. The Gateway to which a Route is associated.
53 * Formats:
54 * projects/{project_number}/locations/{location}/gateways/{gateway_name}
55 * @param array $optParams Optional parameters.
56 *
57 * @opt_param int pageSize Maximum number of GatewayRouteViews to return per
58 * call.
59 * @opt_param string pageToken The value returned by the last
60 * `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a
61 * prior `ListGatewayRouteViews` call, and that the system should return the
62 * next page of data.
63 * @return ListGatewayRouteViewsResponse
64 * @throws \Google\Service\Exception
65 */
66 public function listProjectsLocationsGatewaysRouteViews($parent, $optParams = [])
67 {
68 $params = ['parent' => $parent];
69 $params = array_merge($params, $optParams);
70 return $this->call('list', [$params], ListGatewayRouteViewsResponse::class);
71 }
72}
73
74// Adding a class alias for backwards compatibility with the previous class name.
75class_alias(ProjectsLocationsGatewaysRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGatewaysRouteViews');
Note: See TracBrowser for help on using the repository browser.