JobsSummary.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 JobsSummary extends \Google\Collection
  19. {
  20. protected $collection_key = 'attempts';
  21. /**
  22. * Number of active jobs
  23. *
  24. * @var int
  25. */
  26. public $activeJobs;
  27. /**
  28. * Spark Application Id
  29. *
  30. * @var string
  31. */
  32. public $applicationId;
  33. protected $attemptsType = ApplicationAttemptInfo::class;
  34. protected $attemptsDataType = 'array';
  35. /**
  36. * Number of completed jobs
  37. *
  38. * @var int
  39. */
  40. public $completedJobs;
  41. /**
  42. * Number of failed jobs
  43. *
  44. * @var int
  45. */
  46. public $failedJobs;
  47. /**
  48. * Spark Scheduling mode
  49. *
  50. * @var string
  51. */
  52. public $schedulingMode;
  53. /**
  54. * Number of active jobs
  55. *
  56. * @param int $activeJobs
  57. */
  58. public function setActiveJobs($activeJobs)
  59. {
  60. $this->activeJobs = $activeJobs;
  61. }
  62. /**
  63. * @return int
  64. */
  65. public function getActiveJobs()
  66. {
  67. return $this->activeJobs;
  68. }
  69. /**
  70. * Spark Application Id
  71. *
  72. * @param string $applicationId
  73. */
  74. public function setApplicationId($applicationId)
  75. {
  76. $this->applicationId = $applicationId;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getApplicationId()
  82. {
  83. return $this->applicationId;
  84. }
  85. /**
  86. * Attempts info
  87. *
  88. * @param ApplicationAttemptInfo[] $attempts
  89. */
  90. public function setAttempts($attempts)
  91. {
  92. $this->attempts = $attempts;
  93. }
  94. /**
  95. * @return ApplicationAttemptInfo[]
  96. */
  97. public function getAttempts()
  98. {
  99. return $this->attempts;
  100. }
  101. /**
  102. * Number of completed jobs
  103. *
  104. * @param int $completedJobs
  105. */
  106. public function setCompletedJobs($completedJobs)
  107. {
  108. $this->completedJobs = $completedJobs;
  109. }
  110. /**
  111. * @return int
  112. */
  113. public function getCompletedJobs()
  114. {
  115. return $this->completedJobs;
  116. }
  117. /**
  118. * Number of failed jobs
  119. *
  120. * @param int $failedJobs
  121. */
  122. public function setFailedJobs($failedJobs)
  123. {
  124. $this->failedJobs = $failedJobs;
  125. }
  126. /**
  127. * @return int
  128. */
  129. public function getFailedJobs()
  130. {
  131. return $this->failedJobs;
  132. }
  133. /**
  134. * Spark Scheduling mode
  135. *
  136. * @param string $schedulingMode
  137. */
  138. public function setSchedulingMode($schedulingMode)
  139. {
  140. $this->schedulingMode = $schedulingMode;
  141. }
  142. /**
  143. * @return string
  144. */
  145. public function getSchedulingMode()
  146. {
  147. return $this->schedulingMode;
  148. }
  149. }
  150. // Adding a class alias for backwards compatibility with the previous class name.
  151. class_alias(JobsSummary::class, 'Google_Service_Dataproc_JobsSummary');