ManagedCluster.php 3.2 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\Dataproc;
  18. class ManagedCluster extends \Google\Model
  19. {
  20. /**
  21. * Required. The cluster name prefix. A unique cluster name will be formed by
  22. * appending a random suffix.The name must contain only lower-case letters
  23. * (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot
  24. * begin or end with hyphen. Must consist of between 2 and 35 characters.
  25. *
  26. * @var string
  27. */
  28. public $clusterName;
  29. protected $configType = ClusterConfig::class;
  30. protected $configDataType = '';
  31. /**
  32. * Optional. The labels to associate with this cluster.Label keys must be
  33. * between 1 and 63 characters long, and must conform to the following PCRE
  34. * regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63
  35. * characters long, and must conform to the following PCRE regular expression:
  36. * \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a
  37. * given cluster.
  38. *
  39. * @var string[]
  40. */
  41. public $labels;
  42. /**
  43. * Required. The cluster name prefix. A unique cluster name will be formed by
  44. * appending a random suffix.The name must contain only lower-case letters
  45. * (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot
  46. * begin or end with hyphen. Must consist of between 2 and 35 characters.
  47. *
  48. * @param string $clusterName
  49. */
  50. public function setClusterName($clusterName)
  51. {
  52. $this->clusterName = $clusterName;
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getClusterName()
  58. {
  59. return $this->clusterName;
  60. }
  61. /**
  62. * Required. The cluster configuration.
  63. *
  64. * @param ClusterConfig $config
  65. */
  66. public function setConfig(ClusterConfig $config)
  67. {
  68. $this->config = $config;
  69. }
  70. /**
  71. * @return ClusterConfig
  72. */
  73. public function getConfig()
  74. {
  75. return $this->config;
  76. }
  77. /**
  78. * Optional. The labels to associate with this cluster.Label keys must be
  79. * between 1 and 63 characters long, and must conform to the following PCRE
  80. * regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63
  81. * characters long, and must conform to the following PCRE regular expression:
  82. * \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a
  83. * given cluster.
  84. *
  85. * @param string[] $labels
  86. */
  87. public function setLabels($labels)
  88. {
  89. $this->labels = $labels;
  90. }
  91. /**
  92. * @return string[]
  93. */
  94. public function getLabels()
  95. {
  96. return $this->labels;
  97. }
  98. }
  99. // Adding a class alias for backwards compatibility with the previous class name.
  100. class_alias(ManagedCluster::class, 'Google_Service_Dataproc_ManagedCluster');