|
| 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 | + |
| 18 | +namespace Google\Service\Spanner; |
| 19 | + |
| 20 | +class CompactDatabaseMetadata extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * Output only. The time at which cancellation of this operation was received. |
| 24 | + * Operations.CancelOperation starts asynchronous cancellation on a long- |
| 25 | + * running operation. The server makes a best effort to cancel the operation, |
| 26 | + * but success is not guaranteed. Clients can use Operations.GetOperation or |
| 27 | + * other methods to check whether the cancellation succeeded or whether the |
| 28 | + * operation completed despite cancellation. On successful cancellation, the |
| 29 | + * operation is not deleted; instead, it becomes an operation with an |
| 30 | + * Operation.error value with a google.rpc.Status.code of 1, corresponding to |
| 31 | + * `Code.CANCELLED`. |
| 32 | + * |
| 33 | + * @var string |
| 34 | + */ |
| 35 | + public $cancelTime; |
| 36 | + /** |
| 37 | + * Output only. The database being compacted. |
| 38 | + * |
| 39 | + * @var string |
| 40 | + */ |
| 41 | + public $database; |
| 42 | + protected $progressType = OperationProgress::class; |
| 43 | + protected $progressDataType = ''; |
| 44 | + |
| 45 | + /** |
| 46 | + * Output only. The time at which cancellation of this operation was received. |
| 47 | + * Operations.CancelOperation starts asynchronous cancellation on a long- |
| 48 | + * running operation. The server makes a best effort to cancel the operation, |
| 49 | + * but success is not guaranteed. Clients can use Operations.GetOperation or |
| 50 | + * other methods to check whether the cancellation succeeded or whether the |
| 51 | + * operation completed despite cancellation. On successful cancellation, the |
| 52 | + * operation is not deleted; instead, it becomes an operation with an |
| 53 | + * Operation.error value with a google.rpc.Status.code of 1, corresponding to |
| 54 | + * `Code.CANCELLED`. |
| 55 | + * |
| 56 | + * @param string $cancelTime |
| 57 | + */ |
| 58 | + public function setCancelTime($cancelTime) |
| 59 | + { |
| 60 | + $this->cancelTime = $cancelTime; |
| 61 | + } |
| 62 | + /** |
| 63 | + * @return string |
| 64 | + */ |
| 65 | + public function getCancelTime() |
| 66 | + { |
| 67 | + return $this->cancelTime; |
| 68 | + } |
| 69 | + /** |
| 70 | + * Output only. The database being compacted. |
| 71 | + * |
| 72 | + * @param string $database |
| 73 | + */ |
| 74 | + public function setDatabase($database) |
| 75 | + { |
| 76 | + $this->database = $database; |
| 77 | + } |
| 78 | + /** |
| 79 | + * @return string |
| 80 | + */ |
| 81 | + public function getDatabase() |
| 82 | + { |
| 83 | + return $this->database; |
| 84 | + } |
| 85 | + /** |
| 86 | + * Output only. The progress of the compaction operation. |
| 87 | + * |
| 88 | + * @param OperationProgress $progress |
| 89 | + */ |
| 90 | + public function setProgress(OperationProgress $progress) |
| 91 | + { |
| 92 | + $this->progress = $progress; |
| 93 | + } |
| 94 | + /** |
| 95 | + * @return OperationProgress |
| 96 | + */ |
| 97 | + public function getProgress() |
| 98 | + { |
| 99 | + return $this->progress; |
| 100 | + } |
| 101 | +} |
| 102 | + |
| 103 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 104 | +class_alias(CompactDatabaseMetadata::class, 'Google_Service_Spanner_CompactDatabaseMetadata'); |
0 commit comments