SessionTemplate.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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 SessionTemplate extends \Google\Model
  19. {
  20. /**
  21. * Output only. The time when the template was created.
  22. *
  23. * @var string
  24. */
  25. public $createTime;
  26. /**
  27. * Output only. The email address of the user who created the template.
  28. *
  29. * @var string
  30. */
  31. public $creator;
  32. /**
  33. * Optional. Brief description of the template.
  34. *
  35. * @var string
  36. */
  37. public $description;
  38. protected $environmentConfigType = EnvironmentConfig::class;
  39. protected $environmentConfigDataType = '';
  40. protected $jupyterSessionType = JupyterConfig::class;
  41. protected $jupyterSessionDataType = '';
  42. /**
  43. * Optional. Labels to associate with sessions created using this template.
  44. * Label keys must contain 1 to 63 characters, and must conform to RFC 1035
  45. * (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if
  46. * present, must contain 1 to 63 characters and conform to RFC 1035
  47. * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
  48. * associated with a session.
  49. *
  50. * @var string[]
  51. */
  52. public $labels;
  53. /**
  54. * Required. Identifier. The resource name of the session template.
  55. *
  56. * @var string
  57. */
  58. public $name;
  59. protected $runtimeConfigType = RuntimeConfig::class;
  60. protected $runtimeConfigDataType = '';
  61. protected $sparkConnectSessionType = SparkConnectConfig::class;
  62. protected $sparkConnectSessionDataType = '';
  63. /**
  64. * Output only. The time the template was last updated.
  65. *
  66. * @var string
  67. */
  68. public $updateTime;
  69. /**
  70. * Output only. A session template UUID (Unique Universal Identifier). The
  71. * service generates this value when it creates the session template.
  72. *
  73. * @var string
  74. */
  75. public $uuid;
  76. /**
  77. * Output only. The time when the template was created.
  78. *
  79. * @param string $createTime
  80. */
  81. public function setCreateTime($createTime)
  82. {
  83. $this->createTime = $createTime;
  84. }
  85. /**
  86. * @return string
  87. */
  88. public function getCreateTime()
  89. {
  90. return $this->createTime;
  91. }
  92. /**
  93. * Output only. The email address of the user who created the template.
  94. *
  95. * @param string $creator
  96. */
  97. public function setCreator($creator)
  98. {
  99. $this->creator = $creator;
  100. }
  101. /**
  102. * @return string
  103. */
  104. public function getCreator()
  105. {
  106. return $this->creator;
  107. }
  108. /**
  109. * Optional. Brief description of the template.
  110. *
  111. * @param string $description
  112. */
  113. public function setDescription($description)
  114. {
  115. $this->description = $description;
  116. }
  117. /**
  118. * @return string
  119. */
  120. public function getDescription()
  121. {
  122. return $this->description;
  123. }
  124. /**
  125. * Optional. Environment configuration for session execution.
  126. *
  127. * @param EnvironmentConfig $environmentConfig
  128. */
  129. public function setEnvironmentConfig(EnvironmentConfig $environmentConfig)
  130. {
  131. $this->environmentConfig = $environmentConfig;
  132. }
  133. /**
  134. * @return EnvironmentConfig
  135. */
  136. public function getEnvironmentConfig()
  137. {
  138. return $this->environmentConfig;
  139. }
  140. /**
  141. * Optional. Jupyter session config.
  142. *
  143. * @param JupyterConfig $jupyterSession
  144. */
  145. public function setJupyterSession(JupyterConfig $jupyterSession)
  146. {
  147. $this->jupyterSession = $jupyterSession;
  148. }
  149. /**
  150. * @return JupyterConfig
  151. */
  152. public function getJupyterSession()
  153. {
  154. return $this->jupyterSession;
  155. }
  156. /**
  157. * Optional. Labels to associate with sessions created using this template.
  158. * Label keys must contain 1 to 63 characters, and must conform to RFC 1035
  159. * (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty, but, if
  160. * present, must contain 1 to 63 characters and conform to RFC 1035
  161. * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
  162. * associated with a session.
  163. *
  164. * @param string[] $labels
  165. */
  166. public function setLabels($labels)
  167. {
  168. $this->labels = $labels;
  169. }
  170. /**
  171. * @return string[]
  172. */
  173. public function getLabels()
  174. {
  175. return $this->labels;
  176. }
  177. /**
  178. * Required. Identifier. The resource name of the session template.
  179. *
  180. * @param string $name
  181. */
  182. public function setName($name)
  183. {
  184. $this->name = $name;
  185. }
  186. /**
  187. * @return string
  188. */
  189. public function getName()
  190. {
  191. return $this->name;
  192. }
  193. /**
  194. * Optional. Runtime configuration for session execution.
  195. *
  196. * @param RuntimeConfig $runtimeConfig
  197. */
  198. public function setRuntimeConfig(RuntimeConfig $runtimeConfig)
  199. {
  200. $this->runtimeConfig = $runtimeConfig;
  201. }
  202. /**
  203. * @return RuntimeConfig
  204. */
  205. public function getRuntimeConfig()
  206. {
  207. return $this->runtimeConfig;
  208. }
  209. /**
  210. * Optional. Spark connect session config.
  211. *
  212. * @param SparkConnectConfig $sparkConnectSession
  213. */
  214. public function setSparkConnectSession(SparkConnectConfig $sparkConnectSession)
  215. {
  216. $this->sparkConnectSession = $sparkConnectSession;
  217. }
  218. /**
  219. * @return SparkConnectConfig
  220. */
  221. public function getSparkConnectSession()
  222. {
  223. return $this->sparkConnectSession;
  224. }
  225. /**
  226. * Output only. The time the template was last updated.
  227. *
  228. * @param string $updateTime
  229. */
  230. public function setUpdateTime($updateTime)
  231. {
  232. $this->updateTime = $updateTime;
  233. }
  234. /**
  235. * @return string
  236. */
  237. public function getUpdateTime()
  238. {
  239. return $this->updateTime;
  240. }
  241. /**
  242. * Output only. A session template UUID (Unique Universal Identifier). The
  243. * service generates this value when it creates the session template.
  244. *
  245. * @param string $uuid
  246. */
  247. public function setUuid($uuid)
  248. {
  249. $this->uuid = $uuid;
  250. }
  251. /**
  252. * @return string
  253. */
  254. public function getUuid()
  255. {
  256. return $this->uuid;
  257. }
  258. }
  259. // Adding a class alias for backwards compatibility with the previous class name.
  260. class_alias(SessionTemplate::class, 'Google_Service_Dataproc_SessionTemplate');