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 Router extends \Google\Collection 21{ 22 protected $collection_key = 'nats'; 23 protected $bgpType = RouterBgp::class; 24 protected $bgpDataType = ''; 25 protected $bgpPeersType = RouterBgpPeer::class; 26 protected $bgpPeersDataType = 'array'; 27 /** 28 * @var string 29 */ 30 public $creationTimestamp; 31 /** 32 * @var string 33 */ 34 public $description; 35 /** 36 * @var bool 37 */ 38 public $encryptedInterconnectRouter; 39 /** 40 * @var string 41 */ 42 public $id; 43 protected $interfacesType = RouterInterface::class; 44 protected $interfacesDataType = 'array'; 45 /** 46 * @var string 47 */ 48 public $kind; 49 /** 50 * @var string 51 */ 52 public $name; 53 protected $natsType = RouterNat::class; 54 protected $natsDataType = 'array'; 55 /** 56 * @var string 57 */ 58 public $network; 59 /** 60 * @var string 61 */ 62 public $region; 63 /** 64 * @var string 65 */ 66 public $selfLink; 67 68 /** 69 * @param RouterBgp 70 */ 71 public function setBgp(RouterBgp $bgp) 72 { 73 $this->bgp = $bgp; 74 } 75 /** 76 * @return RouterBgp 77 */ 78 public function getBgp() 79 { 80 return $this->bgp; 81 } 82 /** 83 * @param RouterBgpPeer[] 84 */ 85 public function setBgpPeers($bgpPeers) 86 { 87 $this->bgpPeers = $bgpPeers; 88 } 89 /** 90 * @return RouterBgpPeer[] 91 */ 92 public function getBgpPeers() 93 { 94 return $this->bgpPeers; 95 } 96 /** 97 * @param string 98 */ 99 public function setCreationTimestamp($creationTimestamp) 100 { 101 $this->creationTimestamp = $creationTimestamp; 102 } 103 /** 104 * @return string 105 */ 106 public function getCreationTimestamp() 107 { 108 return $this->creationTimestamp; 109 } 110 /** 111 * @param string 112 */ 113 public function setDescription($description) 114 { 115 $this->description = $description; 116 } 117 /** 118 * @return string 119 */ 120 public function getDescription() 121 { 122 return $this->description; 123 } 124 /** 125 * @param bool 126 */ 127 public function setEncryptedInterconnectRouter($encryptedInterconnectRouter) 128 { 129 $this->encryptedInterconnectRouter = $encryptedInterconnectRouter; 130 } 131 /** 132 * @return bool 133 */ 134 public function getEncryptedInterconnectRouter() 135 { 136 return $this->encryptedInterconnectRouter; 137 } 138 /** 139 * @param string 140 */ 141 public function setId($id) 142 { 143 $this->id = $id; 144 } 145 /** 146 * @return string 147 */ 148 public function getId() 149 { 150 return $this->id; 151 } 152 /** 153 * @param RouterInterface[] 154 */ 155 public function setInterfaces($interfaces) 156 { 157 $this->interfaces = $interfaces; 158 } 159 /** 160 * @return RouterInterface[] 161 */ 162 public function getInterfaces() 163 { 164 return $this->interfaces; 165 } 166 /** 167 * @param string 168 */ 169 public function setKind($kind) 170 { 171 $this->kind = $kind; 172 } 173 /** 174 * @return string 175 */ 176 public function getKind() 177 { 178 return $this->kind; 179 } 180 /** 181 * @param string 182 */ 183 public function setName($name) 184 { 185 $this->name = $name; 186 } 187 /** 188 * @return string 189 */ 190 public function getName() 191 { 192 return $this->name; 193 } 194 /** 195 * @param RouterNat[] 196 */ 197 public function setNats($nats) 198 { 199 $this->nats = $nats; 200 } 201 /** 202 * @return RouterNat[] 203 */ 204 public function getNats() 205 { 206 return $this->nats; 207 } 208 /** 209 * @param string 210 */ 211 public function setNetwork($network) 212 { 213 $this->network = $network; 214 } 215 /** 216 * @return string 217 */ 218 public function getNetwork() 219 { 220 return $this->network; 221 } 222 /** 223 * @param string 224 */ 225 public function setRegion($region) 226 { 227 $this->region = $region; 228 } 229 /** 230 * @return string 231 */ 232 public function getRegion() 233 { 234 return $this->region; 235 } 236 /** 237 * @param string 238 */ 239 public function setSelfLink($selfLink) 240 { 241 $this->selfLink = $selfLink; 242 } 243 /** 244 * @return string 245 */ 246 public function getSelfLink() 247 { 248 return $this->selfLink; 249 } 250} 251 252// Adding a class alias for backwards compatibility with the previous class name. 253class_alias(Router::class, 'Google_Service_Compute_Router'); 254