DiagnoseClusterRequest.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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 DiagnoseClusterRequest extends \Google\Collection
  19. {
  20. /**
  21. * Tarball Access unspecified. Falls back to default access of the bucket
  22. */
  23. public const TARBALL_ACCESS_TARBALL_ACCESS_UNSPECIFIED = 'TARBALL_ACCESS_UNSPECIFIED';
  24. /**
  25. * Google Cloud Support group has read access to the diagnostic tarball
  26. */
  27. public const TARBALL_ACCESS_GOOGLE_CLOUD_SUPPORT = 'GOOGLE_CLOUD_SUPPORT';
  28. /**
  29. * Google Cloud Dataproc Diagnose service account has read access to the
  30. * diagnostic tarball
  31. */
  32. public const TARBALL_ACCESS_GOOGLE_DATAPROC_DIAGNOSE = 'GOOGLE_DATAPROC_DIAGNOSE';
  33. protected $collection_key = 'yarnApplicationIds';
  34. protected $diagnosisIntervalType = Interval::class;
  35. protected $diagnosisIntervalDataType = '';
  36. /**
  37. * Optional. DEPRECATED Specifies the job on which diagnosis is to be
  38. * performed. Format: projects/{project}/regions/{region}/jobs/{job}
  39. *
  40. * @deprecated
  41. * @var string
  42. */
  43. public $job;
  44. /**
  45. * Optional. Specifies a list of jobs on which diagnosis is to be performed.
  46. * Format: projects/{project}/regions/{region}/jobs/{job}
  47. *
  48. * @var string[]
  49. */
  50. public $jobs;
  51. /**
  52. * Optional. (Optional) The access type to the diagnostic tarball. If not
  53. * specified, falls back to default access of the bucket
  54. *
  55. * @var string
  56. */
  57. public $tarballAccess;
  58. /**
  59. * Optional. (Optional) The output Cloud Storage directory for the diagnostic
  60. * tarball. If not specified, a task-specific directory in the cluster's
  61. * staging bucket will be used.
  62. *
  63. * @var string
  64. */
  65. public $tarballGcsDir;
  66. /**
  67. * Optional. DEPRECATED Specifies the yarn application on which diagnosis is
  68. * to be performed.
  69. *
  70. * @deprecated
  71. * @var string
  72. */
  73. public $yarnApplicationId;
  74. /**
  75. * Optional. Specifies a list of yarn applications on which diagnosis is to be
  76. * performed.
  77. *
  78. * @var string[]
  79. */
  80. public $yarnApplicationIds;
  81. /**
  82. * Optional. Time interval in which diagnosis should be carried out on the
  83. * cluster.
  84. *
  85. * @param Interval $diagnosisInterval
  86. */
  87. public function setDiagnosisInterval(Interval $diagnosisInterval)
  88. {
  89. $this->diagnosisInterval = $diagnosisInterval;
  90. }
  91. /**
  92. * @return Interval
  93. */
  94. public function getDiagnosisInterval()
  95. {
  96. return $this->diagnosisInterval;
  97. }
  98. /**
  99. * Optional. DEPRECATED Specifies the job on which diagnosis is to be
  100. * performed. Format: projects/{project}/regions/{region}/jobs/{job}
  101. *
  102. * @deprecated
  103. * @param string $job
  104. */
  105. public function setJob($job)
  106. {
  107. $this->job = $job;
  108. }
  109. /**
  110. * @deprecated
  111. * @return string
  112. */
  113. public function getJob()
  114. {
  115. return $this->job;
  116. }
  117. /**
  118. * Optional. Specifies a list of jobs on which diagnosis is to be performed.
  119. * Format: projects/{project}/regions/{region}/jobs/{job}
  120. *
  121. * @param string[] $jobs
  122. */
  123. public function setJobs($jobs)
  124. {
  125. $this->jobs = $jobs;
  126. }
  127. /**
  128. * @return string[]
  129. */
  130. public function getJobs()
  131. {
  132. return $this->jobs;
  133. }
  134. /**
  135. * Optional. (Optional) The access type to the diagnostic tarball. If not
  136. * specified, falls back to default access of the bucket
  137. *
  138. * Accepted values: TARBALL_ACCESS_UNSPECIFIED, GOOGLE_CLOUD_SUPPORT,
  139. * GOOGLE_DATAPROC_DIAGNOSE
  140. *
  141. * @param self::TARBALL_ACCESS_* $tarballAccess
  142. */
  143. public function setTarballAccess($tarballAccess)
  144. {
  145. $this->tarballAccess = $tarballAccess;
  146. }
  147. /**
  148. * @return self::TARBALL_ACCESS_*
  149. */
  150. public function getTarballAccess()
  151. {
  152. return $this->tarballAccess;
  153. }
  154. /**
  155. * Optional. (Optional) The output Cloud Storage directory for the diagnostic
  156. * tarball. If not specified, a task-specific directory in the cluster's
  157. * staging bucket will be used.
  158. *
  159. * @param string $tarballGcsDir
  160. */
  161. public function setTarballGcsDir($tarballGcsDir)
  162. {
  163. $this->tarballGcsDir = $tarballGcsDir;
  164. }
  165. /**
  166. * @return string
  167. */
  168. public function getTarballGcsDir()
  169. {
  170. return $this->tarballGcsDir;
  171. }
  172. /**
  173. * Optional. DEPRECATED Specifies the yarn application on which diagnosis is
  174. * to be performed.
  175. *
  176. * @deprecated
  177. * @param string $yarnApplicationId
  178. */
  179. public function setYarnApplicationId($yarnApplicationId)
  180. {
  181. $this->yarnApplicationId = $yarnApplicationId;
  182. }
  183. /**
  184. * @deprecated
  185. * @return string
  186. */
  187. public function getYarnApplicationId()
  188. {
  189. return $this->yarnApplicationId;
  190. }
  191. /**
  192. * Optional. Specifies a list of yarn applications on which diagnosis is to be
  193. * performed.
  194. *
  195. * @param string[] $yarnApplicationIds
  196. */
  197. public function setYarnApplicationIds($yarnApplicationIds)
  198. {
  199. $this->yarnApplicationIds = $yarnApplicationIds;
  200. }
  201. /**
  202. * @return string[]
  203. */
  204. public function getYarnApplicationIds()
  205. {
  206. return $this->yarnApplicationIds;
  207. }
  208. }
  209. // Adding a class alias for backwards compatibility with the previous class name.
  210. class_alias(DiagnoseClusterRequest::class, 'Google_Service_Dataproc_DiagnoseClusterRequest');