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 Subnetwork extends \Google\Collection 21{ 22 protected $collection_key = 'secondaryIpRanges'; 23 /** 24 * @var string 25 */ 26 public $creationTimestamp; 27 /** 28 * @var string 29 */ 30 public $description; 31 /** 32 * @var bool 33 */ 34 public $enableFlowLogs; 35 /** 36 * @var string 37 */ 38 public $externalIpv6Prefix; 39 /** 40 * @var string 41 */ 42 public $fingerprint; 43 /** 44 * @var string 45 */ 46 public $gatewayAddress; 47 /** 48 * @var string 49 */ 50 public $id; 51 /** 52 * @var string 53 */ 54 public $internalIpv6Prefix; 55 /** 56 * @var string 57 */ 58 public $ipCidrRange; 59 /** 60 * @var string 61 */ 62 public $ipv6AccessType; 63 /** 64 * @var string 65 */ 66 public $ipv6CidrRange; 67 /** 68 * @var string 69 */ 70 public $kind; 71 protected $logConfigType = SubnetworkLogConfig::class; 72 protected $logConfigDataType = ''; 73 /** 74 * @var string 75 */ 76 public $name; 77 /** 78 * @var string 79 */ 80 public $network; 81 /** 82 * @var bool 83 */ 84 public $privateIpGoogleAccess; 85 /** 86 * @var string 87 */ 88 public $privateIpv6GoogleAccess; 89 /** 90 * @var string 91 */ 92 public $purpose; 93 /** 94 * @var string 95 */ 96 public $region; 97 /** 98 * @var string 99 */ 100 public $role; 101 protected $secondaryIpRangesType = SubnetworkSecondaryRange::class; 102 protected $secondaryIpRangesDataType = 'array'; 103 /** 104 * @var string 105 */ 106 public $selfLink; 107 /** 108 * @var string 109 */ 110 public $stackType; 111 /** 112 * @var string 113 */ 114 public $state; 115 116 /** 117 * @param string 118 */ 119 public function setCreationTimestamp($creationTimestamp) 120 { 121 $this->creationTimestamp = $creationTimestamp; 122 } 123 /** 124 * @return string 125 */ 126 public function getCreationTimestamp() 127 { 128 return $this->creationTimestamp; 129 } 130 /** 131 * @param string 132 */ 133 public function setDescription($description) 134 { 135 $this->description = $description; 136 } 137 /** 138 * @return string 139 */ 140 public function getDescription() 141 { 142 return $this->description; 143 } 144 /** 145 * @param bool 146 */ 147 public function setEnableFlowLogs($enableFlowLogs) 148 { 149 $this->enableFlowLogs = $enableFlowLogs; 150 } 151 /** 152 * @return bool 153 */ 154 public function getEnableFlowLogs() 155 { 156 return $this->enableFlowLogs; 157 } 158 /** 159 * @param string 160 */ 161 public function setExternalIpv6Prefix($externalIpv6Prefix) 162 { 163 $this->externalIpv6Prefix = $externalIpv6Prefix; 164 } 165 /** 166 * @return string 167 */ 168 public function getExternalIpv6Prefix() 169 { 170 return $this->externalIpv6Prefix; 171 } 172 /** 173 * @param string 174 */ 175 public function setFingerprint($fingerprint) 176 { 177 $this->fingerprint = $fingerprint; 178 } 179 /** 180 * @return string 181 */ 182 public function getFingerprint() 183 { 184 return $this->fingerprint; 185 } 186 /** 187 * @param string 188 */ 189 public function setGatewayAddress($gatewayAddress) 190 { 191 $this->gatewayAddress = $gatewayAddress; 192 } 193 /** 194 * @return string 195 */ 196 public function getGatewayAddress() 197 { 198 return $this->gatewayAddress; 199 } 200 /** 201 * @param string 202 */ 203 public function setId($id) 204 { 205 $this->id = $id; 206 } 207 /** 208 * @return string 209 */ 210 public function getId() 211 { 212 return $this->id; 213 } 214 /** 215 * @param string 216 */ 217 public function setInternalIpv6Prefix($internalIpv6Prefix) 218 { 219 $this->internalIpv6Prefix = $internalIpv6Prefix; 220 } 221 /** 222 * @return string 223 */ 224 public function getInternalIpv6Prefix() 225 { 226 return $this->internalIpv6Prefix; 227 } 228 /** 229 * @param string 230 */ 231 public function setIpCidrRange($ipCidrRange) 232 { 233 $this->ipCidrRange = $ipCidrRange; 234 } 235 /** 236 * @return string 237 */ 238 public function getIpCidrRange() 239 { 240 return $this->ipCidrRange; 241 } 242 /** 243 * @param string 244 */ 245 public function setIpv6AccessType($ipv6AccessType) 246 { 247 $this->ipv6AccessType = $ipv6AccessType; 248 } 249 /** 250 * @return string 251 */ 252 public function getIpv6AccessType() 253 { 254 return $this->ipv6AccessType; 255 } 256 /** 257 * @param string 258 */ 259 public function setIpv6CidrRange($ipv6CidrRange) 260 { 261 $this->ipv6CidrRange = $ipv6CidrRange; 262 } 263 /** 264 * @return string 265 */ 266 public function getIpv6CidrRange() 267 { 268 return $this->ipv6CidrRange; 269 } 270 /** 271 * @param string 272 */ 273 public function setKind($kind) 274 { 275 $this->kind = $kind; 276 } 277 /** 278 * @return string 279 */ 280 public function getKind() 281 { 282 return $this->kind; 283 } 284 /** 285 * @param SubnetworkLogConfig 286 */ 287 public function setLogConfig(SubnetworkLogConfig $logConfig) 288 { 289 $this->logConfig = $logConfig; 290 } 291 /** 292 * @return SubnetworkLogConfig 293 */ 294 public function getLogConfig() 295 { 296 return $this->logConfig; 297 } 298 /** 299 * @param string 300 */ 301 public function setName($name) 302 { 303 $this->name = $name; 304 } 305 /** 306 * @return string 307 */ 308 public function getName() 309 { 310 return $this->name; 311 } 312 /** 313 * @param string 314 */ 315 public function setNetwork($network) 316 { 317 $this->network = $network; 318 } 319 /** 320 * @return string 321 */ 322 public function getNetwork() 323 { 324 return $this->network; 325 } 326 /** 327 * @param bool 328 */ 329 public function setPrivateIpGoogleAccess($privateIpGoogleAccess) 330 { 331 $this->privateIpGoogleAccess = $privateIpGoogleAccess; 332 } 333 /** 334 * @return bool 335 */ 336 public function getPrivateIpGoogleAccess() 337 { 338 return $this->privateIpGoogleAccess; 339 } 340 /** 341 * @param string 342 */ 343 public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess) 344 { 345 $this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess; 346 } 347 /** 348 * @return string 349 */ 350 public function getPrivateIpv6GoogleAccess() 351 { 352 return $this->privateIpv6GoogleAccess; 353 } 354 /** 355 * @param string 356 */ 357 public function setPurpose($purpose) 358 { 359 $this->purpose = $purpose; 360 } 361 /** 362 * @return string 363 */ 364 public function getPurpose() 365 { 366 return $this->purpose; 367 } 368 /** 369 * @param string 370 */ 371 public function setRegion($region) 372 { 373 $this->region = $region; 374 } 375 /** 376 * @return string 377 */ 378 public function getRegion() 379 { 380 return $this->region; 381 } 382 /** 383 * @param string 384 */ 385 public function setRole($role) 386 { 387 $this->role = $role; 388 } 389 /** 390 * @return string 391 */ 392 public function getRole() 393 { 394 return $this->role; 395 } 396 /** 397 * @param SubnetworkSecondaryRange[] 398 */ 399 public function setSecondaryIpRanges($secondaryIpRanges) 400 { 401 $this->secondaryIpRanges = $secondaryIpRanges; 402 } 403 /** 404 * @return SubnetworkSecondaryRange[] 405 */ 406 public function getSecondaryIpRanges() 407 { 408 return $this->secondaryIpRanges; 409 } 410 /** 411 * @param string 412 */ 413 public function setSelfLink($selfLink) 414 { 415 $this->selfLink = $selfLink; 416 } 417 /** 418 * @return string 419 */ 420 public function getSelfLink() 421 { 422 return $this->selfLink; 423 } 424 /** 425 * @param string 426 */ 427 public function setStackType($stackType) 428 { 429 $this->stackType = $stackType; 430 } 431 /** 432 * @return string 433 */ 434 public function getStackType() 435 { 436 return $this->stackType; 437 } 438 /** 439 * @param string 440 */ 441 public function setState($state) 442 { 443 $this->state = $state; 444 } 445 /** 446 * @return string 447 */ 448 public function getState() 449 { 450 return $this->state; 451 } 452} 453 454// Adding a class alias for backwards compatibility with the previous class name. 455class_alias(Subnetwork::class, 'Google_Service_Compute_Subnetwork'); 456