source: vendor/google/apiclient-services/src/VMwareEngine/Resource/ProjectsLocationsNetworkPeeringsPeeringRoutes.php

Last change on this file 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\VMwareEngine\Resource;
19
20use Google\Service\VMwareEngine\ListPeeringRoutesResponse;
21
22/**
23 * The "peeringRoutes" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $vmwareengineService = new Google\Service\VMwareEngine(...);
27 * $peeringRoutes = $vmwareengineService->projects_locations_networkPeerings_peeringRoutes;
28 * </code>
29 */
30class ProjectsLocationsNetworkPeeringsPeeringRoutes extends \Google\Service\Resource
31{
32 /**
33 * Lists the network peering routes exchanged over a peering connection.
34 * NetworkPeering is a global resource and location can only be global.
35 * (peeringRoutes.listProjectsLocationsNetworkPeeringsPeeringRoutes)
36 *
37 * @param string $parent Required. The resource name of the network peering to
38 * retrieve peering routes from. Resource names are schemeless URIs that follow
39 * the conventions in https://cloud.google.com/apis/design/resource_names. For
40 * example: `projects/my-project/locations/global/networkPeerings/my-peering`
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string filter A filter expression that matches resources returned
44 * in the response. Currently, only filtering on the `direction` field is
45 * supported. To return routes imported from the peer network, provide
46 * "direction=INCOMING". To return routes exported from the VMware Engine
47 * network, provide "direction=OUTGOING". Other filter expressions return an
48 * error.
49 * @opt_param int pageSize The maximum number of peering routes to return in one
50 * page. The service may return fewer than this value. The maximum value is
51 * coerced to 1000. The default value of this field is 500.
52 * @opt_param string pageToken A page token, received from a previous
53 * `ListPeeringRoutes` call. Provide this to retrieve the subsequent page. When
54 * paginating, all other parameters provided to `ListPeeringRoutes` must match
55 * the call that provided the page token.
56 * @return ListPeeringRoutesResponse
57 * @throws \Google\Service\Exception
58 */
59 public function listProjectsLocationsNetworkPeeringsPeeringRoutes($parent, $optParams = [])
60 {
61 $params = ['parent' => $parent];
62 $params = array_merge($params, $optParams);
63 return $this->call('list', [$params], ListPeeringRoutesResponse::class);
64 }
65}
66
67// Adding a class alias for backwards compatibility with the previous class name.
68class_alias(ProjectsLocationsNetworkPeeringsPeeringRoutes::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsNetworkPeeringsPeeringRoutes');
Note: See TracBrowser for help on using the repository browser.