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\Compute; 19 20class RouterStatus extends \Google\Collection 21{ 22 protected $collection_key = 'natStatus'; 23 protected $bestRoutesType = Route::class; 24 protected $bestRoutesDataType = 'array'; 25 protected $bestRoutesForRouterType = Route::class; 26 protected $bestRoutesForRouterDataType = 'array'; 27 protected $bgpPeerStatusType = RouterStatusBgpPeerStatus::class; 28 protected $bgpPeerStatusDataType = 'array'; 29 protected $natStatusType = RouterStatusNatStatus::class; 30 protected $natStatusDataType = 'array'; 31 /** 32 * @var string 33 */ 34 public $network; 35 36 /** 37 * @param Route[] 38 */ 39 public function setBestRoutes($bestRoutes) 40 { 41 $this->bestRoutes = $bestRoutes; 42 } 43 /** 44 * @return Route[] 45 */ 46 public function getBestRoutes() 47 { 48 return $this->bestRoutes; 49 } 50 /** 51 * @param Route[] 52 */ 53 public function setBestRoutesForRouter($bestRoutesForRouter) 54 { 55 $this->bestRoutesForRouter = $bestRoutesForRouter; 56 } 57 /** 58 * @return Route[] 59 */ 60 public function getBestRoutesForRouter() 61 { 62 return $this->bestRoutesForRouter; 63 } 64 /** 65 * @param RouterStatusBgpPeerStatus[] 66 */ 67 public function setBgpPeerStatus($bgpPeerStatus) 68 { 69 $this->bgpPeerStatus = $bgpPeerStatus; 70 } 71 /** 72 * @return RouterStatusBgpPeerStatus[] 73 */ 74 public function getBgpPeerStatus() 75 { 76 return $this->bgpPeerStatus; 77 } 78 /** 79 * @param RouterStatusNatStatus[] 80 */ 81 public function setNatStatus($natStatus) 82 { 83 $this->natStatus = $natStatus; 84 } 85 /** 86 * @return RouterStatusNatStatus[] 87 */ 88 public function getNatStatus() 89 { 90 return $this->natStatus; 91 } 92 /** 93 * @param string 94 */ 95 public function setNetwork($network) 96 { 97 $this->network = $network; 98 } 99 /** 100 * @return string 101 */ 102 public function getNetwork() 103 { 104 return $this->network; 105 } 106} 107 108// Adding a class alias for backwards compatibility with the previous class name. 109class_alias(RouterStatus::class, 'Google_Service_Compute_RouterStatus'); 110