UsageMetrics.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 UsageMetrics extends \Google\Model
  19. {
  20. /**
  21. * Optional. DEPRECATED Accelerator type being used, if any
  22. *
  23. * @var string
  24. */
  25. public $acceleratorType;
  26. /**
  27. * Optional. DEPRECATED Accelerator usage in (milliAccelerator x seconds) (see
  28. * Dataproc Serverless pricing (https://cloud.google.com/dataproc-
  29. * serverless/pricing)).
  30. *
  31. * @var string
  32. */
  33. public $milliAcceleratorSeconds;
  34. /**
  35. * Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see
  36. * Dataproc Serverless pricing (https://cloud.google.com/dataproc-
  37. * serverless/pricing)).
  38. *
  39. * @var string
  40. */
  41. public $milliDcuSeconds;
  42. /**
  43. * Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless
  44. * pricing (https://cloud.google.com/dataproc-serverless/pricing)).
  45. *
  46. * @var string
  47. */
  48. public $shuffleStorageGbSeconds;
  49. /**
  50. * Optional. The timestamp of the usage metrics.
  51. *
  52. * @var string
  53. */
  54. public $updateTime;
  55. /**
  56. * Optional. DEPRECATED Accelerator type being used, if any
  57. *
  58. * @param string $acceleratorType
  59. */
  60. public function setAcceleratorType($acceleratorType)
  61. {
  62. $this->acceleratorType = $acceleratorType;
  63. }
  64. /**
  65. * @return string
  66. */
  67. public function getAcceleratorType()
  68. {
  69. return $this->acceleratorType;
  70. }
  71. /**
  72. * Optional. DEPRECATED Accelerator usage in (milliAccelerator x seconds) (see
  73. * Dataproc Serverless pricing (https://cloud.google.com/dataproc-
  74. * serverless/pricing)).
  75. *
  76. * @param string $milliAcceleratorSeconds
  77. */
  78. public function setMilliAcceleratorSeconds($milliAcceleratorSeconds)
  79. {
  80. $this->milliAcceleratorSeconds = $milliAcceleratorSeconds;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getMilliAcceleratorSeconds()
  86. {
  87. return $this->milliAcceleratorSeconds;
  88. }
  89. /**
  90. * Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see
  91. * Dataproc Serverless pricing (https://cloud.google.com/dataproc-
  92. * serverless/pricing)).
  93. *
  94. * @param string $milliDcuSeconds
  95. */
  96. public function setMilliDcuSeconds($milliDcuSeconds)
  97. {
  98. $this->milliDcuSeconds = $milliDcuSeconds;
  99. }
  100. /**
  101. * @return string
  102. */
  103. public function getMilliDcuSeconds()
  104. {
  105. return $this->milliDcuSeconds;
  106. }
  107. /**
  108. * Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless
  109. * pricing (https://cloud.google.com/dataproc-serverless/pricing)).
  110. *
  111. * @param string $shuffleStorageGbSeconds
  112. */
  113. public function setShuffleStorageGbSeconds($shuffleStorageGbSeconds)
  114. {
  115. $this->shuffleStorageGbSeconds = $shuffleStorageGbSeconds;
  116. }
  117. /**
  118. * @return string
  119. */
  120. public function getShuffleStorageGbSeconds()
  121. {
  122. return $this->shuffleStorageGbSeconds;
  123. }
  124. /**
  125. * Optional. The timestamp of the usage metrics.
  126. *
  127. * @param string $updateTime
  128. */
  129. public function setUpdateTime($updateTime)
  130. {
  131. $this->updateTime = $updateTime;
  132. }
  133. /**
  134. * @return string
  135. */
  136. public function getUpdateTime()
  137. {
  138. return $this->updateTime;
  139. }
  140. }
  141. // Adding a class alias for backwards compatibility with the previous class name.
  142. class_alias(UsageMetrics::class, 'Google_Service_Dataproc_UsageMetrics');