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

File "AllocationAggregateReservation.php"

Full Path: /home/u735268861/domains/palsarh.in/public_html/vendor/google/apiclient-services/src/Compute/AllocationAggregateReservation.php
File size: 4.57 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\Compute;

class AllocationAggregateReservation extends \Google\Collection
{
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 'VM_FAMILY_CLOUD_TPU_DEVICE_CT3';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 'VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 'VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 'VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P';
  public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X';
  /**
   * Reserved resources will be optimized for BATCH workloads, such as ML
   * training.
   */
  public const WORKLOAD_TYPE_BATCH = 'BATCH';
  /**
   * Reserved resources will be optimized for SERVING workloads, such as ML
   * inference.
   */
  public const WORKLOAD_TYPE_SERVING = 'SERVING';
  public const WORKLOAD_TYPE_UNSPECIFIED = 'UNSPECIFIED';
  protected $collection_key = 'reservedResources';
  protected $inUseResourcesType = AllocationAggregateReservationReservedResourceInfo::class;
  protected $inUseResourcesDataType = 'array';
  protected $reservedResourcesType = AllocationAggregateReservationReservedResourceInfo::class;
  protected $reservedResourcesDataType = 'array';
  /**
   * The VM family that all instances scheduled against this reservation must
   * belong to.
   *
   * @var string
   */
  public $vmFamily;
  /**
   * The workload type of the instances that will target this reservation.
   *
   * @var string
   */
  public $workloadType;

  /**
   * Output only. [Output only] List of resources currently in use.
   *
   * @param AllocationAggregateReservationReservedResourceInfo[] $inUseResources
   */
  public function setInUseResources($inUseResources)
  {
    $this->inUseResources = $inUseResources;
  }
  /**
   * @return AllocationAggregateReservationReservedResourceInfo[]
   */
  public function getInUseResources()
  {
    return $this->inUseResources;
  }
  /**
   * List of reserved resources (CPUs, memory, accelerators).
   *
   * @param AllocationAggregateReservationReservedResourceInfo[] $reservedResources
   */
  public function setReservedResources($reservedResources)
  {
    $this->reservedResources = $reservedResources;
  }
  /**
   * @return AllocationAggregateReservationReservedResourceInfo[]
   */
  public function getReservedResources()
  {
    return $this->reservedResources;
  }
  /**
   * The VM family that all instances scheduled against this reservation must
   * belong to.
   *
   * Accepted values: VM_FAMILY_CLOUD_TPU_DEVICE_CT3,
   * VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L,
   * VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP,
   * VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E,
   * VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P,
   * VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P, VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X
   *
   * @param self::VM_FAMILY_* $vmFamily
   */
  public function setVmFamily($vmFamily)
  {
    $this->vmFamily = $vmFamily;
  }
  /**
   * @return self::VM_FAMILY_*
   */
  public function getVmFamily()
  {
    return $this->vmFamily;
  }
  /**
   * The workload type of the instances that will target this reservation.
   *
   * Accepted values: BATCH, SERVING, UNSPECIFIED
   *
   * @param self::WORKLOAD_TYPE_* $workloadType
   */
  public function setWorkloadType($workloadType)
  {
    $this->workloadType = $workloadType;
  }
  /**
   * @return self::WORKLOAD_TYPE_*
   */
  public function getWorkloadType()
  {
    return $this->workloadType;
  }
}

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