ClusterOperationMetadata.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 ClusterOperationMetadata extends \Google\Collection
  19. {
  20. protected $collection_key = 'warnings';
  21. /**
  22. * @var string
  23. */
  24. public $clusterName;
  25. /**
  26. * @var string
  27. */
  28. public $clusterUuid;
  29. /**
  30. * @var string
  31. */
  32. public $description;
  33. /**
  34. * @var string[]
  35. */
  36. public $labels;
  37. /**
  38. * @var string
  39. */
  40. public $operationType;
  41. protected $statusType = ClusterOperationStatus::class;
  42. protected $statusDataType = '';
  43. protected $statusHistoryType = ClusterOperationStatus::class;
  44. protected $statusHistoryDataType = 'array';
  45. /**
  46. * @var string[]
  47. */
  48. public $warnings;
  49. /**
  50. * @param string
  51. */
  52. public function setClusterName($clusterName)
  53. {
  54. $this->clusterName = $clusterName;
  55. }
  56. /**
  57. * @return string
  58. */
  59. public function getClusterName()
  60. {
  61. return $this->clusterName;
  62. }
  63. /**
  64. * @param string
  65. */
  66. public function setClusterUuid($clusterUuid)
  67. {
  68. $this->clusterUuid = $clusterUuid;
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getClusterUuid()
  74. {
  75. return $this->clusterUuid;
  76. }
  77. /**
  78. * @param string
  79. */
  80. public function setDescription($description)
  81. {
  82. $this->description = $description;
  83. }
  84. /**
  85. * @return string
  86. */
  87. public function getDescription()
  88. {
  89. return $this->description;
  90. }
  91. /**
  92. * @param string[]
  93. */
  94. public function setLabels($labels)
  95. {
  96. $this->labels = $labels;
  97. }
  98. /**
  99. * @return string[]
  100. */
  101. public function getLabels()
  102. {
  103. return $this->labels;
  104. }
  105. /**
  106. * @param string
  107. */
  108. public function setOperationType($operationType)
  109. {
  110. $this->operationType = $operationType;
  111. }
  112. /**
  113. * @return string
  114. */
  115. public function getOperationType()
  116. {
  117. return $this->operationType;
  118. }
  119. /**
  120. * @param ClusterOperationStatus
  121. */
  122. public function setStatus(ClusterOperationStatus $status)
  123. {
  124. $this->status = $status;
  125. }
  126. /**
  127. * @return ClusterOperationStatus
  128. */
  129. public function getStatus()
  130. {
  131. return $this->status;
  132. }
  133. /**
  134. * @param ClusterOperationStatus[]
  135. */
  136. public function setStatusHistory($statusHistory)
  137. {
  138. $this->statusHistory = $statusHistory;
  139. }
  140. /**
  141. * @return ClusterOperationStatus[]
  142. */
  143. public function getStatusHistory()
  144. {
  145. return $this->statusHistory;
  146. }
  147. /**
  148. * @param string[]
  149. */
  150. public function setWarnings($warnings)
  151. {
  152. $this->warnings = $warnings;
  153. }
  154. /**
  155. * @return string[]
  156. */
  157. public function getWarnings()
  158. {
  159. return $this->warnings;
  160. }
  161. }
  162. // Adding a class alias for backwards compatibility with the previous class name.
  163. class_alias(ClusterOperationMetadata::class, 'Google_Service_Dataproc_ClusterOperationMetadata');