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\Dataproc; 19 20class Cluster extends \Google\Collection 21{ 22 protected $collection_key = 'statusHistory'; 23 /** 24 * @var string 25 */ 26 public $clusterName; 27 /** 28 * @var string 29 */ 30 public $clusterUuid; 31 protected $configType = ClusterConfig::class; 32 protected $configDataType = ''; 33 /** 34 * @var string[] 35 */ 36 public $labels; 37 protected $metricsType = ClusterMetrics::class; 38 protected $metricsDataType = ''; 39 /** 40 * @var string 41 */ 42 public $projectId; 43 protected $statusType = ClusterStatus::class; 44 protected $statusDataType = ''; 45 protected $statusHistoryType = ClusterStatus::class; 46 protected $statusHistoryDataType = 'array'; 47 protected $virtualClusterConfigType = VirtualClusterConfig::class; 48 protected $virtualClusterConfigDataType = ''; 49 50 /** 51 * @param string 52 */ 53 public function setClusterName($clusterName) 54 { 55 $this->clusterName = $clusterName; 56 } 57 /** 58 * @return string 59 */ 60 public function getClusterName() 61 { 62 return $this->clusterName; 63 } 64 /** 65 * @param string 66 */ 67 public function setClusterUuid($clusterUuid) 68 { 69 $this->clusterUuid = $clusterUuid; 70 } 71 /** 72 * @return string 73 */ 74 public function getClusterUuid() 75 { 76 return $this->clusterUuid; 77 } 78 /** 79 * @param ClusterConfig 80 */ 81 public function setConfig(ClusterConfig $config) 82 { 83 $this->config = $config; 84 } 85 /** 86 * @return ClusterConfig 87 */ 88 public function getConfig() 89 { 90 return $this->config; 91 } 92 /** 93 * @param string[] 94 */ 95 public function setLabels($labels) 96 { 97 $this->labels = $labels; 98 } 99 /** 100 * @return string[] 101 */ 102 public function getLabels() 103 { 104 return $this->labels; 105 } 106 /** 107 * @param ClusterMetrics 108 */ 109 public function setMetrics(ClusterMetrics $metrics) 110 { 111 $this->metrics = $metrics; 112 } 113 /** 114 * @return ClusterMetrics 115 */ 116 public function getMetrics() 117 { 118 return $this->metrics; 119 } 120 /** 121 * @param string 122 */ 123 public function setProjectId($projectId) 124 { 125 $this->projectId = $projectId; 126 } 127 /** 128 * @return string 129 */ 130 public function getProjectId() 131 { 132 return $this->projectId; 133 } 134 /** 135 * @param ClusterStatus 136 */ 137 public function setStatus(ClusterStatus $status) 138 { 139 $this->status = $status; 140 } 141 /** 142 * @return ClusterStatus 143 */ 144 public function getStatus() 145 { 146 return $this->status; 147 } 148 /** 149 * @param ClusterStatus[] 150 */ 151 public function setStatusHistory($statusHistory) 152 { 153 $this->statusHistory = $statusHistory; 154 } 155 /** 156 * @return ClusterStatus[] 157 */ 158 public function getStatusHistory() 159 { 160 return $this->statusHistory; 161 } 162 /** 163 * @param VirtualClusterConfig 164 */ 165 public function setVirtualClusterConfig(VirtualClusterConfig $virtualClusterConfig) 166 { 167 $this->virtualClusterConfig = $virtualClusterConfig; 168 } 169 /** 170 * @return VirtualClusterConfig 171 */ 172 public function getVirtualClusterConfig() 173 { 174 return $this->virtualClusterConfig; 175 } 176} 177 178// Adding a class alias for backwards compatibility with the previous class name. 179class_alias(Cluster::class, 'Google_Service_Dataproc_Cluster'); 180