JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "VolumeDataRestorePolicyBinding.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/google/apiclient-services/src/BackupforGKE/VolumeDataRestorePolicyBinding.php
File size: 3.36 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\BackupforGKE;

class VolumeDataRestorePolicyBinding extends \Google\Model
{
  /**
   * Unspecified (illegal).
   */
  public const POLICY_VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 'VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED';
  /**
   * For each PVC to be restored, create a new underlying volume and PV from the
   * corresponding VolumeBackup contained within the Backup.
   */
  public const POLICY_RESTORE_VOLUME_DATA_FROM_BACKUP = 'RESTORE_VOLUME_DATA_FROM_BACKUP';
  /**
   * For each PVC to be restored, attempt to reuse the original PV contained in
   * the Backup (with its original underlying volume). This option is likely
   * only usable when restoring a workload to its original cluster.
   */
  public const POLICY_REUSE_VOLUME_HANDLE_FROM_BACKUP = 'REUSE_VOLUME_HANDLE_FROM_BACKUP';
  /**
   * For each PVC to be restored, create PVC without any particular action to
   * restore data. In this case, the normal Kubernetes provisioning logic would
   * kick in, and this would likely result in either dynamically provisioning
   * blank PVs or binding to statically provisioned PVs.
   */
  public const POLICY_NO_VOLUME_DATA_RESTORATION = 'NO_VOLUME_DATA_RESTORATION';
  /**
   * Default
   */
  public const VOLUME_TYPE_VOLUME_TYPE_UNSPECIFIED = 'VOLUME_TYPE_UNSPECIFIED';
  /**
   * Compute Engine Persistent Disk volume
   */
  public const VOLUME_TYPE_GCE_PERSISTENT_DISK = 'GCE_PERSISTENT_DISK';
  /**
   * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
   * scope.
   *
   * @var string
   */
  public $policy;
  /**
   * The volume type, as determined by the PVC's bound PV, to apply the policy
   * to.
   *
   * @var string
   */
  public $volumeType;

  /**
   * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
   * scope.
   *
   * Accepted values: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED,
   * RESTORE_VOLUME_DATA_FROM_BACKUP, REUSE_VOLUME_HANDLE_FROM_BACKUP,
   * NO_VOLUME_DATA_RESTORATION
   *
   * @param self::POLICY_* $policy
   */
  public function setPolicy($policy)
  {
    $this->policy = $policy;
  }
  /**
   * @return self::POLICY_*
   */
  public function getPolicy()
  {
    return $this->policy;
  }
  /**
   * The volume type, as determined by the PVC's bound PV, to apply the policy
   * to.
   *
   * Accepted values: VOLUME_TYPE_UNSPECIFIED, GCE_PERSISTENT_DISK
   *
   * @param self::VOLUME_TYPE_* $volumeType
   */
  public function setVolumeType($volumeType)
  {
    $this->volumeType = $volumeType;
  }
  /**
   * @return self::VOLUME_TYPE_*
   */
  public function getVolumeType()
  {
    return $this->volumeType;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumeDataRestorePolicyBinding::class, 'Google_Service_BackupforGKE_VolumeDataRestorePolicyBinding');