ClusterOperation.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 ClusterOperation extends \Google\Model
  19. {
  20. /**
  21. * Output only. Indicates the operation is done.
  22. *
  23. * @var bool
  24. */
  25. public $done;
  26. /**
  27. * Output only. Error, if operation failed.
  28. *
  29. * @var string
  30. */
  31. public $error;
  32. /**
  33. * Output only. The id of the cluster operation.
  34. *
  35. * @var string
  36. */
  37. public $operationId;
  38. /**
  39. * Output only. Indicates the operation is done.
  40. *
  41. * @param bool $done
  42. */
  43. public function setDone($done)
  44. {
  45. $this->done = $done;
  46. }
  47. /**
  48. * @return bool
  49. */
  50. public function getDone()
  51. {
  52. return $this->done;
  53. }
  54. /**
  55. * Output only. Error, if operation failed.
  56. *
  57. * @param string $error
  58. */
  59. public function setError($error)
  60. {
  61. $this->error = $error;
  62. }
  63. /**
  64. * @return string
  65. */
  66. public function getError()
  67. {
  68. return $this->error;
  69. }
  70. /**
  71. * Output only. The id of the cluster operation.
  72. *
  73. * @param string $operationId
  74. */
  75. public function setOperationId($operationId)
  76. {
  77. $this->operationId = $operationId;
  78. }
  79. /**
  80. * @return string
  81. */
  82. public function getOperationId()
  83. {
  84. return $this->operationId;
  85. }
  86. }
  87. // Adding a class alias for backwards compatibility with the previous class name.
  88. class_alias(ClusterOperation::class, 'Google_Service_Dataproc_ClusterOperation');