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 Network extends \Google\Collection 21{ 22 protected $collection_key = 'subnetworks'; 23 protected $internal_gapi_mappings = [ 24 "iPv4Range" => "IPv4Range", 25 ]; 26 /** 27 * @var string 28 */ 29 public $iPv4Range; 30 /** 31 * @var bool 32 */ 33 public $autoCreateSubnetworks; 34 /** 35 * @var string 36 */ 37 public $creationTimestamp; 38 /** 39 * @var string 40 */ 41 public $description; 42 /** 43 * @var bool 44 */ 45 public $enableUlaInternalIpv6; 46 /** 47 * @var string 48 */ 49 public $gatewayIPv4; 50 /** 51 * @var string 52 */ 53 public $id; 54 /** 55 * @var string 56 */ 57 public $internalIpv6Range; 58 /** 59 * @var string 60 */ 61 public $kind; 62 /** 63 * @var int 64 */ 65 public $mtu; 66 /** 67 * @var string 68 */ 69 public $name; 70 /** 71 * @var string 72 */ 73 public $networkFirewallPolicyEnforcementOrder; 74 protected $peeringsType = NetworkPeering::class; 75 protected $peeringsDataType = 'array'; 76 protected $routingConfigType = NetworkRoutingConfig::class; 77 protected $routingConfigDataType = ''; 78 /** 79 * @var string 80 */ 81 public $selfLink; 82 /** 83 * @var string 84 */ 85 public $selfLinkWithId; 86 /** 87 * @var string[] 88 */ 89 public $subnetworks; 90 91 /** 92 * @param string 93 */ 94 public function setIPv4Range($iPv4Range) 95 { 96 $this->iPv4Range = $iPv4Range; 97 } 98 /** 99 * @return string 100 */ 101 public function getIPv4Range() 102 { 103 return $this->iPv4Range; 104 } 105 /** 106 * @param bool 107 */ 108 public function setAutoCreateSubnetworks($autoCreateSubnetworks) 109 { 110 $this->autoCreateSubnetworks = $autoCreateSubnetworks; 111 } 112 /** 113 * @return bool 114 */ 115 public function getAutoCreateSubnetworks() 116 { 117 return $this->autoCreateSubnetworks; 118 } 119 /** 120 * @param string 121 */ 122 public function setCreationTimestamp($creationTimestamp) 123 { 124 $this->creationTimestamp = $creationTimestamp; 125 } 126 /** 127 * @return string 128 */ 129 public function getCreationTimestamp() 130 { 131 return $this->creationTimestamp; 132 } 133 /** 134 * @param string 135 */ 136 public function setDescription($description) 137 { 138 $this->description = $description; 139 } 140 /** 141 * @return string 142 */ 143 public function getDescription() 144 { 145 return $this->description; 146 } 147 /** 148 * @param bool 149 */ 150 public function setEnableUlaInternalIpv6($enableUlaInternalIpv6) 151 { 152 $this->enableUlaInternalIpv6 = $enableUlaInternalIpv6; 153 } 154 /** 155 * @return bool 156 */ 157 public function getEnableUlaInternalIpv6() 158 { 159 return $this->enableUlaInternalIpv6; 160 } 161 /** 162 * @param string 163 */ 164 public function setGatewayIPv4($gatewayIPv4) 165 { 166 $this->gatewayIPv4 = $gatewayIPv4; 167 } 168 /** 169 * @return string 170 */ 171 public function getGatewayIPv4() 172 { 173 return $this->gatewayIPv4; 174 } 175 /** 176 * @param string 177 */ 178 public function setId($id) 179 { 180 $this->id = $id; 181 } 182 /** 183 * @return string 184 */ 185 public function getId() 186 { 187 return $this->id; 188 } 189 /** 190 * @param string 191 */ 192 public function setInternalIpv6Range($internalIpv6Range) 193 { 194 $this->internalIpv6Range = $internalIpv6Range; 195 } 196 /** 197 * @return string 198 */ 199 public function getInternalIpv6Range() 200 { 201 return $this->internalIpv6Range; 202 } 203 /** 204 * @param string 205 */ 206 public function setKind($kind) 207 { 208 $this->kind = $kind; 209 } 210 /** 211 * @return string 212 */ 213 public function getKind() 214 { 215 return $this->kind; 216 } 217 /** 218 * @param int 219 */ 220 public function setMtu($mtu) 221 { 222 $this->mtu = $mtu; 223 } 224 /** 225 * @return int 226 */ 227 public function getMtu() 228 { 229 return $this->mtu; 230 } 231 /** 232 * @param string 233 */ 234 public function setName($name) 235 { 236 $this->name = $name; 237 } 238 /** 239 * @return string 240 */ 241 public function getName() 242 { 243 return $this->name; 244 } 245 /** 246 * @param string 247 */ 248 public function setNetworkFirewallPolicyEnforcementOrder($networkFirewallPolicyEnforcementOrder) 249 { 250 $this->networkFirewallPolicyEnforcementOrder = $networkFirewallPolicyEnforcementOrder; 251 } 252 /** 253 * @return string 254 */ 255 public function getNetworkFirewallPolicyEnforcementOrder() 256 { 257 return $this->networkFirewallPolicyEnforcementOrder; 258 } 259 /** 260 * @param NetworkPeering[] 261 */ 262 public function setPeerings($peerings) 263 { 264 $this->peerings = $peerings; 265 } 266 /** 267 * @return NetworkPeering[] 268 */ 269 public function getPeerings() 270 { 271 return $this->peerings; 272 } 273 /** 274 * @param NetworkRoutingConfig 275 */ 276 public function setRoutingConfig(NetworkRoutingConfig $routingConfig) 277 { 278 $this->routingConfig = $routingConfig; 279 } 280 /** 281 * @return NetworkRoutingConfig 282 */ 283 public function getRoutingConfig() 284 { 285 return $this->routingConfig; 286 } 287 /** 288 * @param string 289 */ 290 public function setSelfLink($selfLink) 291 { 292 $this->selfLink = $selfLink; 293 } 294 /** 295 * @return string 296 */ 297 public function getSelfLink() 298 { 299 return $this->selfLink; 300 } 301 /** 302 * @param string 303 */ 304 public function setSelfLinkWithId($selfLinkWithId) 305 { 306 $this->selfLinkWithId = $selfLinkWithId; 307 } 308 /** 309 * @return string 310 */ 311 public function getSelfLinkWithId() 312 { 313 return $this->selfLinkWithId; 314 } 315 /** 316 * @param string[] 317 */ 318 public function setSubnetworks($subnetworks) 319 { 320 $this->subnetworks = $subnetworks; 321 } 322 /** 323 * @return string[] 324 */ 325 public function getSubnetworks() 326 { 327 return $this->subnetworks; 328 } 329} 330 331// Adding a class alias for backwards compatibility with the previous class name. 332class_alias(Network::class, 'Google_Service_Compute_Network'); 333