SparkRBatch.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 SparkRBatch extends \Google\Collection
  19. {
  20. protected $collection_key = 'fileUris';
  21. /**
  22. * Optional. HCFS URIs of archives to be extracted into the working directory
  23. * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
  24. * .zip.
  25. *
  26. * @var string[]
  27. */
  28. public $archiveUris;
  29. /**
  30. * Optional. The arguments to pass to the Spark driver. Do not include
  31. * arguments that can be set as batch properties, such as --conf, since a
  32. * collision can occur that causes an incorrect batch submission.
  33. *
  34. * @var string[]
  35. */
  36. public $args;
  37. /**
  38. * Optional. HCFS URIs of files to be placed in the working directory of each
  39. * executor.
  40. *
  41. * @var string[]
  42. */
  43. public $fileUris;
  44. /**
  45. * Required. The HCFS URI of the main R file to use as the driver. Must be a
  46. * .R or .r file.
  47. *
  48. * @var string
  49. */
  50. public $mainRFileUri;
  51. /**
  52. * Optional. HCFS URIs of archives to be extracted into the working directory
  53. * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
  54. * .zip.
  55. *
  56. * @param string[] $archiveUris
  57. */
  58. public function setArchiveUris($archiveUris)
  59. {
  60. $this->archiveUris = $archiveUris;
  61. }
  62. /**
  63. * @return string[]
  64. */
  65. public function getArchiveUris()
  66. {
  67. return $this->archiveUris;
  68. }
  69. /**
  70. * Optional. The arguments to pass to the Spark driver. Do not include
  71. * arguments that can be set as batch properties, such as --conf, since a
  72. * collision can occur that causes an incorrect batch submission.
  73. *
  74. * @param string[] $args
  75. */
  76. public function setArgs($args)
  77. {
  78. $this->args = $args;
  79. }
  80. /**
  81. * @return string[]
  82. */
  83. public function getArgs()
  84. {
  85. return $this->args;
  86. }
  87. /**
  88. * Optional. HCFS URIs of files to be placed in the working directory of each
  89. * executor.
  90. *
  91. * @param string[] $fileUris
  92. */
  93. public function setFileUris($fileUris)
  94. {
  95. $this->fileUris = $fileUris;
  96. }
  97. /**
  98. * @return string[]
  99. */
  100. public function getFileUris()
  101. {
  102. return $this->fileUris;
  103. }
  104. /**
  105. * Required. The HCFS URI of the main R file to use as the driver. Must be a
  106. * .R or .r file.
  107. *
  108. * @param string $mainRFileUri
  109. */
  110. public function setMainRFileUri($mainRFileUri)
  111. {
  112. $this->mainRFileUri = $mainRFileUri;
  113. }
  114. /**
  115. * @return string
  116. */
  117. public function getMainRFileUri()
  118. {
  119. return $this->mainRFileUri;
  120. }
  121. }
  122. // Adding a class alias for backwards compatibility with the previous class name.
  123. class_alias(SparkRBatch::class, 'Google_Service_Dataproc_SparkRBatch');