SessionOperationMetadata.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 SessionOperationMetadata extends \Google\Collection
  19. {
  20. /**
  21. * Session operation type is unknown.
  22. */
  23. public const OPERATION_TYPE_SESSION_OPERATION_TYPE_UNSPECIFIED = 'SESSION_OPERATION_TYPE_UNSPECIFIED';
  24. /**
  25. * Create Session operation type.
  26. */
  27. public const OPERATION_TYPE_CREATE = 'CREATE';
  28. /**
  29. * Terminate Session operation type.
  30. */
  31. public const OPERATION_TYPE_TERMINATE = 'TERMINATE';
  32. /**
  33. * Delete Session operation type.
  34. */
  35. public const OPERATION_TYPE_DELETE = 'DELETE';
  36. protected $collection_key = 'warnings';
  37. /**
  38. * The time when the operation was created.
  39. *
  40. * @var string
  41. */
  42. public $createTime;
  43. /**
  44. * Short description of the operation.
  45. *
  46. * @var string
  47. */
  48. public $description;
  49. /**
  50. * The time when the operation was finished.
  51. *
  52. * @var string
  53. */
  54. public $doneTime;
  55. /**
  56. * Labels associated with the operation.
  57. *
  58. * @var string[]
  59. */
  60. public $labels;
  61. /**
  62. * The operation type.
  63. *
  64. * @var string
  65. */
  66. public $operationType;
  67. /**
  68. * Name of the session for the operation.
  69. *
  70. * @var string
  71. */
  72. public $session;
  73. /**
  74. * Session UUID for the operation.
  75. *
  76. * @var string
  77. */
  78. public $sessionUuid;
  79. /**
  80. * Warnings encountered during operation execution.
  81. *
  82. * @var string[]
  83. */
  84. public $warnings;
  85. /**
  86. * The time when the operation was created.
  87. *
  88. * @param string $createTime
  89. */
  90. public function setCreateTime($createTime)
  91. {
  92. $this->createTime = $createTime;
  93. }
  94. /**
  95. * @return string
  96. */
  97. public function getCreateTime()
  98. {
  99. return $this->createTime;
  100. }
  101. /**
  102. * Short description of the operation.
  103. *
  104. * @param string $description
  105. */
  106. public function setDescription($description)
  107. {
  108. $this->description = $description;
  109. }
  110. /**
  111. * @return string
  112. */
  113. public function getDescription()
  114. {
  115. return $this->description;
  116. }
  117. /**
  118. * The time when the operation was finished.
  119. *
  120. * @param string $doneTime
  121. */
  122. public function setDoneTime($doneTime)
  123. {
  124. $this->doneTime = $doneTime;
  125. }
  126. /**
  127. * @return string
  128. */
  129. public function getDoneTime()
  130. {
  131. return $this->doneTime;
  132. }
  133. /**
  134. * Labels associated with the operation.
  135. *
  136. * @param string[] $labels
  137. */
  138. public function setLabels($labels)
  139. {
  140. $this->labels = $labels;
  141. }
  142. /**
  143. * @return string[]
  144. */
  145. public function getLabels()
  146. {
  147. return $this->labels;
  148. }
  149. /**
  150. * The operation type.
  151. *
  152. * Accepted values: SESSION_OPERATION_TYPE_UNSPECIFIED, CREATE, TERMINATE,
  153. * DELETE
  154. *
  155. * @param self::OPERATION_TYPE_* $operationType
  156. */
  157. public function setOperationType($operationType)
  158. {
  159. $this->operationType = $operationType;
  160. }
  161. /**
  162. * @return self::OPERATION_TYPE_*
  163. */
  164. public function getOperationType()
  165. {
  166. return $this->operationType;
  167. }
  168. /**
  169. * Name of the session for the operation.
  170. *
  171. * @param string $session
  172. */
  173. public function setSession($session)
  174. {
  175. $this->session = $session;
  176. }
  177. /**
  178. * @return string
  179. */
  180. public function getSession()
  181. {
  182. return $this->session;
  183. }
  184. /**
  185. * Session UUID for the operation.
  186. *
  187. * @param string $sessionUuid
  188. */
  189. public function setSessionUuid($sessionUuid)
  190. {
  191. $this->sessionUuid = $sessionUuid;
  192. }
  193. /**
  194. * @return string
  195. */
  196. public function getSessionUuid()
  197. {
  198. return $this->sessionUuid;
  199. }
  200. /**
  201. * Warnings encountered during operation execution.
  202. *
  203. * @param string[] $warnings
  204. */
  205. public function setWarnings($warnings)
  206. {
  207. $this->warnings = $warnings;
  208. }
  209. /**
  210. * @return string[]
  211. */
  212. public function getWarnings()
  213. {
  214. return $this->warnings;
  215. }
  216. }
  217. // Adding a class alias for backwards compatibility with the previous class name.
  218. class_alias(SessionOperationMetadata::class, 'Google_Service_Dataproc_SessionOperationMetadata');