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 RouterBgpPeer extends \Google\Collection 21{ 22 protected $collection_key = 'advertisedIpRanges'; 23 /** 24 * @var string 25 */ 26 public $advertiseMode; 27 /** 28 * @var string[] 29 */ 30 public $advertisedGroups; 31 protected $advertisedIpRangesType = RouterAdvertisedIpRange::class; 32 protected $advertisedIpRangesDataType = 'array'; 33 /** 34 * @var string 35 */ 36 public $advertisedRoutePriority; 37 protected $bfdType = RouterBgpPeerBfd::class; 38 protected $bfdDataType = ''; 39 /** 40 * @var string 41 */ 42 public $enable; 43 /** 44 * @var bool 45 */ 46 public $enableIpv6; 47 /** 48 * @var string 49 */ 50 public $interfaceName; 51 /** 52 * @var string 53 */ 54 public $ipAddress; 55 /** 56 * @var string 57 */ 58 public $ipv6NexthopAddress; 59 /** 60 * @var string 61 */ 62 public $managementType; 63 /** 64 * @var string 65 */ 66 public $name; 67 /** 68 * @var string 69 */ 70 public $peerAsn; 71 /** 72 * @var string 73 */ 74 public $peerIpAddress; 75 /** 76 * @var string 77 */ 78 public $peerIpv6NexthopAddress; 79 /** 80 * @var string 81 */ 82 public $routerApplianceInstance; 83 84 /** 85 * @param string 86 */ 87 public function setAdvertiseMode($advertiseMode) 88 { 89 $this->advertiseMode = $advertiseMode; 90 } 91 /** 92 * @return string 93 */ 94 public function getAdvertiseMode() 95 { 96 return $this->advertiseMode; 97 } 98 /** 99 * @param string[] 100 */ 101 public function setAdvertisedGroups($advertisedGroups) 102 { 103 $this->advertisedGroups = $advertisedGroups; 104 } 105 /** 106 * @return string[] 107 */ 108 public function getAdvertisedGroups() 109 { 110 return $this->advertisedGroups; 111 } 112 /** 113 * @param RouterAdvertisedIpRange[] 114 */ 115 public function setAdvertisedIpRanges($advertisedIpRanges) 116 { 117 $this->advertisedIpRanges = $advertisedIpRanges; 118 } 119 /** 120 * @return RouterAdvertisedIpRange[] 121 */ 122 public function getAdvertisedIpRanges() 123 { 124 return $this->advertisedIpRanges; 125 } 126 /** 127 * @param string 128 */ 129 public function setAdvertisedRoutePriority($advertisedRoutePriority) 130 { 131 $this->advertisedRoutePriority = $advertisedRoutePriority; 132 } 133 /** 134 * @return string 135 */ 136 public function getAdvertisedRoutePriority() 137 { 138 return $this->advertisedRoutePriority; 139 } 140 /** 141 * @param RouterBgpPeerBfd 142 */ 143 public function setBfd(RouterBgpPeerBfd $bfd) 144 { 145 $this->bfd = $bfd; 146 } 147 /** 148 * @return RouterBgpPeerBfd 149 */ 150 public function getBfd() 151 { 152 return $this->bfd; 153 } 154 /** 155 * @param string 156 */ 157 public function setEnable($enable) 158 { 159 $this->enable = $enable; 160 } 161 /** 162 * @return string 163 */ 164 public function getEnable() 165 { 166 return $this->enable; 167 } 168 /** 169 * @param bool 170 */ 171 public function setEnableIpv6($enableIpv6) 172 { 173 $this->enableIpv6 = $enableIpv6; 174 } 175 /** 176 * @return bool 177 */ 178 public function getEnableIpv6() 179 { 180 return $this->enableIpv6; 181 } 182 /** 183 * @param string 184 */ 185 public function setInterfaceName($interfaceName) 186 { 187 $this->interfaceName = $interfaceName; 188 } 189 /** 190 * @return string 191 */ 192 public function getInterfaceName() 193 { 194 return $this->interfaceName; 195 } 196 /** 197 * @param string 198 */ 199 public function setIpAddress($ipAddress) 200 { 201 $this->ipAddress = $ipAddress; 202 } 203 /** 204 * @return string 205 */ 206 public function getIpAddress() 207 { 208 return $this->ipAddress; 209 } 210 /** 211 * @param string 212 */ 213 public function setIpv6NexthopAddress($ipv6NexthopAddress) 214 { 215 $this->ipv6NexthopAddress = $ipv6NexthopAddress; 216 } 217 /** 218 * @return string 219 */ 220 public function getIpv6NexthopAddress() 221 { 222 return $this->ipv6NexthopAddress; 223 } 224 /** 225 * @param string 226 */ 227 public function setManagementType($managementType) 228 { 229 $this->managementType = $managementType; 230 } 231 /** 232 * @return string 233 */ 234 public function getManagementType() 235 { 236 return $this->managementType; 237 } 238 /** 239 * @param string 240 */ 241 public function setName($name) 242 { 243 $this->name = $name; 244 } 245 /** 246 * @return string 247 */ 248 public function getName() 249 { 250 return $this->name; 251 } 252 /** 253 * @param string 254 */ 255 public function setPeerAsn($peerAsn) 256 { 257 $this->peerAsn = $peerAsn; 258 } 259 /** 260 * @return string 261 */ 262 public function getPeerAsn() 263 { 264 return $this->peerAsn; 265 } 266 /** 267 * @param string 268 */ 269 public function setPeerIpAddress($peerIpAddress) 270 { 271 $this->peerIpAddress = $peerIpAddress; 272 } 273 /** 274 * @return string 275 */ 276 public function getPeerIpAddress() 277 { 278 return $this->peerIpAddress; 279 } 280 /** 281 * @param string 282 */ 283 public function setPeerIpv6NexthopAddress($peerIpv6NexthopAddress) 284 { 285 $this->peerIpv6NexthopAddress = $peerIpv6NexthopAddress; 286 } 287 /** 288 * @return string 289 */ 290 public function getPeerIpv6NexthopAddress() 291 { 292 return $this->peerIpv6NexthopAddress; 293 } 294 /** 295 * @param string 296 */ 297 public function setRouterApplianceInstance($routerApplianceInstance) 298 { 299 $this->routerApplianceInstance = $routerApplianceInstance; 300 } 301 /** 302 * @return string 303 */ 304 public function getRouterApplianceInstance() 305 { 306 return $this->routerApplianceInstance; 307 } 308} 309 310// Adding a class alias for backwards compatibility with the previous class name. 311class_alias(RouterBgpPeer::class, 'Google_Service_Compute_RouterBgpPeer'); 312