backupRegion = $backupRegion; } /** * @return string */ public function getBackupRegion() { return $this->backupRegion; } /** * Output only. Type of backup, manually created or created by a backup * policy. * * Accepted values: TYPE_UNSPECIFIED, MANUAL, SCHEDULED * * @param self::BACKUP_TYPE_* $backupType */ public function setBackupType($backupType) { $this->backupType = $backupType; } /** * @return self::BACKUP_TYPE_* */ public function getBackupType() { return $this->backupType; } /** * Output only. Total size of all backups in a chain in bytes = baseline * backup size + sum(incremental backup size) * * @param string $chainStorageBytes */ public function setChainStorageBytes($chainStorageBytes) { $this->chainStorageBytes = $chainStorageBytes; } /** * @return string */ public function getChainStorageBytes() { return $this->chainStorageBytes; } /** * Output only. The time when the backup was created. * * @param string $createTime */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * A description of the backup with 2048 characters or less. Requests with * longer descriptions will be rejected. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Output only. The time until which the backup is not deletable. * * @param string $enforcedRetentionEndTime */ public function setEnforcedRetentionEndTime($enforcedRetentionEndTime) { $this->enforcedRetentionEndTime = $enforcedRetentionEndTime; } /** * @return string */ public function getEnforcedRetentionEndTime() { return $this->enforcedRetentionEndTime; } /** * Resource labels to represent user provided metadata. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Identifier. The resource name of the backup. Format: `projects/{project_id} * /locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Optional. Represents source details for ONTAP backups. Either source_volume * or ontap_source should be provided. * * @param OntapSource $ontapSource */ public function setOntapSource(OntapSource $ontapSource) { $this->ontapSource = $ontapSource; } /** * @return OntapSource */ public function getOntapSource() { return $this->ontapSource; } /** * Output only. Reserved for future use * * @param bool $satisfiesPzi */ public function setSatisfiesPzi($satisfiesPzi) { $this->satisfiesPzi = $satisfiesPzi; } /** * @return bool */ public function getSatisfiesPzi() { return $this->satisfiesPzi; } /** * Output only. Reserved for future use * * @param bool $satisfiesPzs */ public function setSatisfiesPzs($satisfiesPzs) { $this->satisfiesPzs = $satisfiesPzs; } /** * @return bool */ public function getSatisfiesPzs() { return $this->satisfiesPzs; } /** * If specified, backup will be created from the given snapshot. If not * specified, there will be a new snapshot taken to initiate the backup * creation. Format: `projects/{project_id}/locations/{location}/volumes/{volu * me_id}/snapshots/{snapshot_id}` * * @param string $sourceSnapshot */ public function setSourceSnapshot($sourceSnapshot) { $this->sourceSnapshot = $sourceSnapshot; } /** * @return string */ public function getSourceSnapshot() { return $this->sourceSnapshot; } /** * The resource name of the volume that this backup belongs to. You must * provide either `source_volume` or `ontap_source`. Format: * `projects/{project_id}/locations/{location}/volumes/{volume_id}` * * @param string $sourceVolume */ public function setSourceVolume($sourceVolume) { $this->sourceVolume = $sourceVolume; } /** * @return string */ public function getSourceVolume() { return $this->sourceVolume; } /** * Output only. The backup state. * * Accepted values: STATE_UNSPECIFIED, CREATING, UPLOADING, READY, DELETING, * ERROR, UPDATING * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * Output only. Region of the volume from which the backup was created. * Format: `projects/{project_id}/locations/{location}` * * @param string $volumeRegion */ public function setVolumeRegion($volumeRegion) { $this->volumeRegion = $volumeRegion; } /** * @return string */ public function getVolumeRegion() { return $this->volumeRegion; } /** * Output only. Size of the file system when the backup was created. When * creating a new volume from the backup, the volume capacity will have to be * at least as big. * * @param string $volumeUsageBytes */ public function setVolumeUsageBytes($volumeUsageBytes) { $this->volumeUsageBytes = $volumeUsageBytes; } /** * @return string */ public function getVolumeUsageBytes() { return $this->volumeUsageBytes; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Backup::class, 'Google_Service_NetAppFiles_Backup');