[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\ServiceNetworking;
|
---|
| 19 |
|
---|
| 20 | class AddSubnetworkRequest extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'subnetworkUsers';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $allowSubnetCidrRoutesOverlap;
|
---|
| 27 | /**
|
---|
| 28 | * @var bool
|
---|
| 29 | */
|
---|
| 30 | public $checkServiceNetworkingUsePermission;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $computeIdempotencyWindow;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $consumer;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $consumerNetwork;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $description;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $internalRange;
|
---|
| 51 | /**
|
---|
| 52 | * @var int
|
---|
| 53 | */
|
---|
| 54 | public $ipPrefixLength;
|
---|
| 55 | /**
|
---|
| 56 | * @var string
|
---|
| 57 | */
|
---|
| 58 | public $outsideAllocationPublicIpRange;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $privateIpv6GoogleAccess;
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $purpose;
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $region;
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $requestedAddress;
|
---|
| 75 | /**
|
---|
| 76 | * @var string[]
|
---|
| 77 | */
|
---|
| 78 | public $requestedRanges;
|
---|
| 79 | /**
|
---|
| 80 | * @var string
|
---|
| 81 | */
|
---|
| 82 | public $role;
|
---|
| 83 | protected $secondaryIpRangeSpecsType = SecondaryIpRangeSpec::class;
|
---|
| 84 | protected $secondaryIpRangeSpecsDataType = 'array';
|
---|
| 85 | /**
|
---|
| 86 | * @var bool
|
---|
| 87 | */
|
---|
| 88 | public $skipRequestedAddressValidation;
|
---|
| 89 | /**
|
---|
| 90 | * @var string
|
---|
| 91 | */
|
---|
| 92 | public $subnetwork;
|
---|
| 93 | /**
|
---|
| 94 | * @var string[]
|
---|
| 95 | */
|
---|
| 96 | public $subnetworkUsers;
|
---|
| 97 | /**
|
---|
| 98 | * @var bool
|
---|
| 99 | */
|
---|
| 100 | public $useCustomComputeIdempotencyWindow;
|
---|
| 101 |
|
---|
| 102 | /**
|
---|
| 103 | * @param bool
|
---|
| 104 | */
|
---|
| 105 | public function setAllowSubnetCidrRoutesOverlap($allowSubnetCidrRoutesOverlap)
|
---|
| 106 | {
|
---|
| 107 | $this->allowSubnetCidrRoutesOverlap = $allowSubnetCidrRoutesOverlap;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return bool
|
---|
| 111 | */
|
---|
| 112 | public function getAllowSubnetCidrRoutesOverlap()
|
---|
| 113 | {
|
---|
| 114 | return $this->allowSubnetCidrRoutesOverlap;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param bool
|
---|
| 118 | */
|
---|
| 119 | public function setCheckServiceNetworkingUsePermission($checkServiceNetworkingUsePermission)
|
---|
| 120 | {
|
---|
| 121 | $this->checkServiceNetworkingUsePermission = $checkServiceNetworkingUsePermission;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return bool
|
---|
| 125 | */
|
---|
| 126 | public function getCheckServiceNetworkingUsePermission()
|
---|
| 127 | {
|
---|
| 128 | return $this->checkServiceNetworkingUsePermission;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param string
|
---|
| 132 | */
|
---|
| 133 | public function setComputeIdempotencyWindow($computeIdempotencyWindow)
|
---|
| 134 | {
|
---|
| 135 | $this->computeIdempotencyWindow = $computeIdempotencyWindow;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return string
|
---|
| 139 | */
|
---|
| 140 | public function getComputeIdempotencyWindow()
|
---|
| 141 | {
|
---|
| 142 | return $this->computeIdempotencyWindow;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param string
|
---|
| 146 | */
|
---|
| 147 | public function setConsumer($consumer)
|
---|
| 148 | {
|
---|
| 149 | $this->consumer = $consumer;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return string
|
---|
| 153 | */
|
---|
| 154 | public function getConsumer()
|
---|
| 155 | {
|
---|
| 156 | return $this->consumer;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param string
|
---|
| 160 | */
|
---|
| 161 | public function setConsumerNetwork($consumerNetwork)
|
---|
| 162 | {
|
---|
| 163 | $this->consumerNetwork = $consumerNetwork;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return string
|
---|
| 167 | */
|
---|
| 168 | public function getConsumerNetwork()
|
---|
| 169 | {
|
---|
| 170 | return $this->consumerNetwork;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param string
|
---|
| 174 | */
|
---|
| 175 | public function setDescription($description)
|
---|
| 176 | {
|
---|
| 177 | $this->description = $description;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return string
|
---|
| 181 | */
|
---|
| 182 | public function getDescription()
|
---|
| 183 | {
|
---|
| 184 | return $this->description;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param string
|
---|
| 188 | */
|
---|
| 189 | public function setInternalRange($internalRange)
|
---|
| 190 | {
|
---|
| 191 | $this->internalRange = $internalRange;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return string
|
---|
| 195 | */
|
---|
| 196 | public function getInternalRange()
|
---|
| 197 | {
|
---|
| 198 | return $this->internalRange;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param int
|
---|
| 202 | */
|
---|
| 203 | public function setIpPrefixLength($ipPrefixLength)
|
---|
| 204 | {
|
---|
| 205 | $this->ipPrefixLength = $ipPrefixLength;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return int
|
---|
| 209 | */
|
---|
| 210 | public function getIpPrefixLength()
|
---|
| 211 | {
|
---|
| 212 | return $this->ipPrefixLength;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param string
|
---|
| 216 | */
|
---|
| 217 | public function setOutsideAllocationPublicIpRange($outsideAllocationPublicIpRange)
|
---|
| 218 | {
|
---|
| 219 | $this->outsideAllocationPublicIpRange = $outsideAllocationPublicIpRange;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return string
|
---|
| 223 | */
|
---|
| 224 | public function getOutsideAllocationPublicIpRange()
|
---|
| 225 | {
|
---|
| 226 | return $this->outsideAllocationPublicIpRange;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param string
|
---|
| 230 | */
|
---|
| 231 | public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
|
---|
| 232 | {
|
---|
| 233 | $this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return string
|
---|
| 237 | */
|
---|
| 238 | public function getPrivateIpv6GoogleAccess()
|
---|
| 239 | {
|
---|
| 240 | return $this->privateIpv6GoogleAccess;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param string
|
---|
| 244 | */
|
---|
| 245 | public function setPurpose($purpose)
|
---|
| 246 | {
|
---|
| 247 | $this->purpose = $purpose;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return string
|
---|
| 251 | */
|
---|
| 252 | public function getPurpose()
|
---|
| 253 | {
|
---|
| 254 | return $this->purpose;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param string
|
---|
| 258 | */
|
---|
| 259 | public function setRegion($region)
|
---|
| 260 | {
|
---|
| 261 | $this->region = $region;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return string
|
---|
| 265 | */
|
---|
| 266 | public function getRegion()
|
---|
| 267 | {
|
---|
| 268 | return $this->region;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param string
|
---|
| 272 | */
|
---|
| 273 | public function setRequestedAddress($requestedAddress)
|
---|
| 274 | {
|
---|
| 275 | $this->requestedAddress = $requestedAddress;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return string
|
---|
| 279 | */
|
---|
| 280 | public function getRequestedAddress()
|
---|
| 281 | {
|
---|
| 282 | return $this->requestedAddress;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param string[]
|
---|
| 286 | */
|
---|
| 287 | public function setRequestedRanges($requestedRanges)
|
---|
| 288 | {
|
---|
| 289 | $this->requestedRanges = $requestedRanges;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return string[]
|
---|
| 293 | */
|
---|
| 294 | public function getRequestedRanges()
|
---|
| 295 | {
|
---|
| 296 | return $this->requestedRanges;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param string
|
---|
| 300 | */
|
---|
| 301 | public function setRole($role)
|
---|
| 302 | {
|
---|
| 303 | $this->role = $role;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return string
|
---|
| 307 | */
|
---|
| 308 | public function getRole()
|
---|
| 309 | {
|
---|
| 310 | return $this->role;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param SecondaryIpRangeSpec[]
|
---|
| 314 | */
|
---|
| 315 | public function setSecondaryIpRangeSpecs($secondaryIpRangeSpecs)
|
---|
| 316 | {
|
---|
| 317 | $this->secondaryIpRangeSpecs = $secondaryIpRangeSpecs;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return SecondaryIpRangeSpec[]
|
---|
| 321 | */
|
---|
| 322 | public function getSecondaryIpRangeSpecs()
|
---|
| 323 | {
|
---|
| 324 | return $this->secondaryIpRangeSpecs;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param bool
|
---|
| 328 | */
|
---|
| 329 | public function setSkipRequestedAddressValidation($skipRequestedAddressValidation)
|
---|
| 330 | {
|
---|
| 331 | $this->skipRequestedAddressValidation = $skipRequestedAddressValidation;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return bool
|
---|
| 335 | */
|
---|
| 336 | public function getSkipRequestedAddressValidation()
|
---|
| 337 | {
|
---|
| 338 | return $this->skipRequestedAddressValidation;
|
---|
| 339 | }
|
---|
| 340 | /**
|
---|
| 341 | * @param string
|
---|
| 342 | */
|
---|
| 343 | public function setSubnetwork($subnetwork)
|
---|
| 344 | {
|
---|
| 345 | $this->subnetwork = $subnetwork;
|
---|
| 346 | }
|
---|
| 347 | /**
|
---|
| 348 | * @return string
|
---|
| 349 | */
|
---|
| 350 | public function getSubnetwork()
|
---|
| 351 | {
|
---|
| 352 | return $this->subnetwork;
|
---|
| 353 | }
|
---|
| 354 | /**
|
---|
| 355 | * @param string[]
|
---|
| 356 | */
|
---|
| 357 | public function setSubnetworkUsers($subnetworkUsers)
|
---|
| 358 | {
|
---|
| 359 | $this->subnetworkUsers = $subnetworkUsers;
|
---|
| 360 | }
|
---|
| 361 | /**
|
---|
| 362 | * @return string[]
|
---|
| 363 | */
|
---|
| 364 | public function getSubnetworkUsers()
|
---|
| 365 | {
|
---|
| 366 | return $this->subnetworkUsers;
|
---|
| 367 | }
|
---|
| 368 | /**
|
---|
| 369 | * @param bool
|
---|
| 370 | */
|
---|
| 371 | public function setUseCustomComputeIdempotencyWindow($useCustomComputeIdempotencyWindow)
|
---|
| 372 | {
|
---|
| 373 | $this->useCustomComputeIdempotencyWindow = $useCustomComputeIdempotencyWindow;
|
---|
| 374 | }
|
---|
| 375 | /**
|
---|
| 376 | * @return bool
|
---|
| 377 | */
|
---|
| 378 | public function getUseCustomComputeIdempotencyWindow()
|
---|
| 379 | {
|
---|
| 380 | return $this->useCustomComputeIdempotencyWindow;
|
---|
| 381 | }
|
---|
| 382 | }
|
---|
| 383 |
|
---|
| 384 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 385 | class_alias(AddSubnetworkRequest::class, 'Google_Service_ServiceNetworking_AddSubnetworkRequest');
|
---|