CopyBackupMetadata.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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\BigtableAdmin;
  18. class CopyBackupMetadata extends \Google\Model
  19. {
  20. /**
  21. * The name of the backup being created through the copy operation. Values are
  22. * of the form `projects//instances//clusters//backups/`.
  23. *
  24. * @var string
  25. */
  26. public $name;
  27. protected $progressType = OperationProgress::class;
  28. protected $progressDataType = '';
  29. protected $sourceBackupInfoType = BackupInfo::class;
  30. protected $sourceBackupInfoDataType = '';
  31. /**
  32. * The name of the backup being created through the copy operation. Values are
  33. * of the form `projects//instances//clusters//backups/`.
  34. *
  35. * @param string $name
  36. */
  37. public function setName($name)
  38. {
  39. $this->name = $name;
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getName()
  45. {
  46. return $this->name;
  47. }
  48. /**
  49. * The progress of the CopyBackup operation.
  50. *
  51. * @param OperationProgress $progress
  52. */
  53. public function setProgress(OperationProgress $progress)
  54. {
  55. $this->progress = $progress;
  56. }
  57. /**
  58. * @return OperationProgress
  59. */
  60. public function getProgress()
  61. {
  62. return $this->progress;
  63. }
  64. /**
  65. * Information about the source backup that is being copied from.
  66. *
  67. * @param BackupInfo $sourceBackupInfo
  68. */
  69. public function setSourceBackupInfo(BackupInfo $sourceBackupInfo)
  70. {
  71. $this->sourceBackupInfo = $sourceBackupInfo;
  72. }
  73. /**
  74. * @return BackupInfo
  75. */
  76. public function getSourceBackupInfo()
  77. {
  78. return $this->sourceBackupInfo;
  79. }
  80. }
  81. // Adding a class alias for backwards compatibility with the previous class name.
  82. class_alias(CopyBackupMetadata::class, 'Google_Service_BigtableAdmin_CopyBackupMetadata');