PrivateClusterConfig.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. namespace Google\Service\CloudComposer;
  18. class PrivateClusterConfig extends \Google\Model
  19. {
  20. /**
  21. * Optional. If `true`, access to the public endpoint of the GKE cluster is
  22. * denied.
  23. *
  24. * @var bool
  25. */
  26. public $enablePrivateEndpoint;
  27. /**
  28. * Optional. The CIDR block from which IPv4 range for GKE master will be
  29. * reserved. If left blank, the default value of '172.16.0.0/23' is used.
  30. *
  31. * @var string
  32. */
  33. public $masterIpv4CidrBlock;
  34. /**
  35. * Output only. The IP range in CIDR notation to use for the hosted master
  36. * network. This range is used for assigning internal IP addresses to the GKE
  37. * cluster master or set of masters and to the internal load balancer virtual
  38. * IP. This range must not overlap with any other ranges in use within the
  39. * cluster's network.
  40. *
  41. * @var string
  42. */
  43. public $masterIpv4ReservedRange;
  44. /**
  45. * Optional. If `true`, access to the public endpoint of the GKE cluster is
  46. * denied.
  47. *
  48. * @param bool $enablePrivateEndpoint
  49. */
  50. public function setEnablePrivateEndpoint($enablePrivateEndpoint)
  51. {
  52. $this->enablePrivateEndpoint = $enablePrivateEndpoint;
  53. }
  54. /**
  55. * @return bool
  56. */
  57. public function getEnablePrivateEndpoint()
  58. {
  59. return $this->enablePrivateEndpoint;
  60. }
  61. /**
  62. * Optional. The CIDR block from which IPv4 range for GKE master will be
  63. * reserved. If left blank, the default value of '172.16.0.0/23' is used.
  64. *
  65. * @param string $masterIpv4CidrBlock
  66. */
  67. public function setMasterIpv4CidrBlock($masterIpv4CidrBlock)
  68. {
  69. $this->masterIpv4CidrBlock = $masterIpv4CidrBlock;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getMasterIpv4CidrBlock()
  75. {
  76. return $this->masterIpv4CidrBlock;
  77. }
  78. /**
  79. * Output only. The IP range in CIDR notation to use for the hosted master
  80. * network. This range is used for assigning internal IP addresses to the GKE
  81. * cluster master or set of masters and to the internal load balancer virtual
  82. * IP. This range must not overlap with any other ranges in use within the
  83. * cluster's network.
  84. *
  85. * @param string $masterIpv4ReservedRange
  86. */
  87. public function setMasterIpv4ReservedRange($masterIpv4ReservedRange)
  88. {
  89. $this->masterIpv4ReservedRange = $masterIpv4ReservedRange;
  90. }
  91. /**
  92. * @return string
  93. */
  94. public function getMasterIpv4ReservedRange()
  95. {
  96. return $this->masterIpv4ReservedRange;
  97. }
  98. }
  99. // Adding a class alias for backwards compatibility with the previous class name.
  100. class_alias(PrivateClusterConfig::class, 'Google_Service_CloudComposer_PrivateClusterConfig');