📂 File Browser

AgentAI/vendor/google/apiclient-services/src/Batch
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Accelerator.php
▶ Open 📄 View Source
🐘 ActionCondition.php
▶ Open 📄 View Source
🐘 AgentContainer.php
▶ Open 📄 View Source
🐘 AgentEnvironment.php
▶ Open 📄 View Source
🐘 AgentInfo.php
▶ Open 📄 View Source
🐘 AgentKMSEnvMap.php
▶ Open 📄 View Source
🐘 AgentMetadata.php
▶ Open 📄 View Source
🐘 AgentScript.php
▶ Open 📄 View Source
🐘 AgentTask.php
▶ Open 📄 View Source
🐘 AgentTaskInfo.php
▶ Open 📄 View Source
🐘 AgentTaskLoggingOption.php
▶ Open 📄 View Source
🐘 AgentTaskRunnable.php
▶ Open 📄 View Source
🐘 AgentTaskSpec.php
▶ Open 📄 View Source
🐘 AgentTaskUserAccount.php
▶ Open 📄 View Source
🐘 AgentTimingInfo.php
▶ Open 📄 View Source
🐘 AllocationPolicy.php
▶ Open 📄 View Source
🐘 AttachedDisk.php
▶ Open 📄 View Source
🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 Barrier.php
▶ Open 📄 View Source
🐘 BatchEmpty.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 CancelJobRequest.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CloudLoggingOption.php
▶ Open 📄 View Source
🐘 ComputeResource.php
▶ Open 📄 View Source
🐘 Container.php
▶ Open 📄 View Source
🐘 Disk.php
▶ Open 📄 View Source
🐘 Environment.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 GCS.php
▶ Open 📄 View Source
🐘 InstancePolicy.php
▶ Open 📄 View Source
🐘 InstancePolicyOrTemplate.php
▶ Open 📄 View Source
🐘 InstanceStatus.php
▶ Open 📄 View Source
🐘 Job.php
▶ Open 📄 View Source
🐘 JobNotification.php
▶ Open 📄 View Source
🐘 JobStatus.php
▶ Open 📄 View Source
🐘 KMSEnvMap.php
▶ Open 📄 View Source
🐘 LifecyclePolicy.php
▶ Open 📄 View Source
🐘 ListJobsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListTasksResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LocationPolicy.php
▶ Open 📄 View Source
🐘 LogsPolicy.php
▶ Open 📄 View Source
🐘 Message.php
▶ Open 📄 View Source
🐘 NFS.php
▶ Open 📄 View Source
🐘 NetworkInterface.php
▶ Open 📄 View Source
🐘 NetworkPolicy.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 PlacementPolicy.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 ReportAgentStateRequest.php
▶ Open 📄 View Source
🐘 ReportAgentStateResponse.php
▶ Open 📄 View Source
🐘 Runnable.php
▶ Open 📄 View Source
🐘 Script.php
▶ Open 📄 View Source
🐘 ServiceAccount.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StatusEvent.php
▶ Open 📄 View Source
🐘 Task.php
▶ Open 📄 View Source
🐘 TaskExecution.php
▶ Open 📄 View Source
🐘 TaskGroup.php
▶ Open 📄 View Source
🐘 TaskGroupStatus.php
▶ Open 📄 View Source
🐘 TaskSpec.php
▶ Open 📄 View Source
🐘 TaskStatus.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 Volume.php
▶ Open 📄 View Source

📄 Source: InstancePolicy.php

<?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\Batch;

class InstancePolicy extends \Google\Collection
{
  /**
   * Unspecified.
   */
  public const PROVISIONING_MODEL_PROVISIONING_MODEL_UNSPECIFIED = 'PROVISIONING_MODEL_UNSPECIFIED';
  /**
   * Standard VM.
   */
  public const PROVISIONING_MODEL_STANDARD = 'STANDARD';
  /**
   * SPOT VM.
   */
  public const PROVISIONING_MODEL_SPOT = 'SPOT';
  /**
   * Preemptible VM (PVM). Above SPOT VM is the preferable model for preemptible
   * VM instances: the old preemptible VM model (indicated by this field) is the
   * older model, and has been migrated to use the SPOT model as the underlying
   * technology. This old model will still be supported.
   *
   * @deprecated
   */
  public const PROVISIONING_MODEL_PREEMPTIBLE = 'PREEMPTIBLE';
  /**
   * Bound to the lifecycle of the reservation in which it is provisioned.
   */
  public const PROVISIONING_MODEL_RESERVATION_BOUND = 'RESERVATION_BOUND';
  /**
   * Instance is provisioned with DWS Flex Start and has limited max run
   * duration.
   */
  public const PROVISIONING_MODEL_FLEX_START = 'FLEX_START';
  protected $collection_key = 'disks';
  protected $acceleratorsType = Accelerator::class;
  protected $acceleratorsDataType = 'array';
  protected $bootDiskType = Disk::class;
  protected $bootDiskDataType = '';
  protected $disksType = AttachedDisk::class;
  protected $disksDataType = 'array';
  /**
   * The Compute Engine machine type.
   *
   * @var string
   */
  public $machineType;
  /**
   * The minimum CPU platform. See
   * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
   *
   * @var string
   */
  public $minCpuPlatform;
  /**
   * The provisioning model.
   *
   * @var string
   */
  public $provisioningModel;
  /**
   * Optional. If not specified (default), VMs will consume any applicable
   * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
   * reservation. Otherwise, if specified, VMs will consume only the specified
   * reservation.
   *
   * @var string
   */
  public $reservation;

  /**
   * The accelerators attached to each VM instance.
   *
   * @param Accelerator[] $accelerators
   */
  public function setAccelerators($accelerators)
  {
    $this->accelerators = $accelerators;
  }
  /**
   * @return Accelerator[]
   */
  public function getAccelerators()
  {
    return $this->accelerators;
  }
  /**
   * Boot disk to be created and attached to each VM by this InstancePolicy.
   * Boot disk will be deleted when the VM is deleted. Batch API now only
   * supports booting from image.
   *
   * @param Disk $bootDisk
   */
  public function setBootDisk(Disk $bootDisk)
  {
    $this->bootDisk = $bootDisk;
  }
  /**
   * @return Disk
   */
  public function getBootDisk()
  {
    return $this->bootDisk;
  }
  /**
   * Non-boot disks to be attached for each VM created by this InstancePolicy.
   * New disks will be deleted when the VM is deleted. A non-boot disk is a disk
   * that can be of a device with a file system or a raw storage drive that is
   * not ready for data storage and accessing.
   *
   * @param AttachedDisk[] $disks
   */
  public function setDisks($disks)
  {
    $this->disks = $disks;
  }
  /**
   * @return AttachedDisk[]
   */
  public function getDisks()
  {
    return $this->disks;
  }
  /**
   * The Compute Engine machine type.
   *
   * @param string $machineType
   */
  public function setMachineType($machineType)
  {
    $this->machineType = $machineType;
  }
  /**
   * @return string
   */
  public function getMachineType()
  {
    return $this->machineType;
  }
  /**
   * The minimum CPU platform. See
   * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
   *
   * @param string $minCpuPlatform
   */
  public function setMinCpuPlatform($minCpuPlatform)
  {
    $this->minCpuPlatform = $minCpuPlatform;
  }
  /**
   * @return string
   */
  public function getMinCpuPlatform()
  {
    return $this->minCpuPlatform;
  }
  /**
   * The provisioning model.
   *
   * Accepted values: PROVISIONING_MODEL_UNSPECIFIED, STANDARD, SPOT,
   * PREEMPTIBLE, RESERVATION_BOUND, FLEX_START
   *
   * @param self::PROVISIONING_MODEL_* $provisioningModel
   */
  public function setProvisioningModel($provisioningModel)
  {
    $this->provisioningModel = $provisioningModel;
  }
  /**
   * @return self::PROVISIONING_MODEL_*
   */
  public function getProvisioningModel()
  {
    return $this->provisioningModel;
  }
  /**
   * Optional. If not specified (default), VMs will consume any applicable
   * reservation. If "NO_RESERVATION" is specified, VMs will not consume any
   * reservation. Otherwise, if specified, VMs will consume only the specified
   * reservation.
   *
   * @param string $reservation
   */
  public function setReservation($reservation)
  {
    $this->reservation = $reservation;
  }
  /**
   * @return string
   */
  public function getReservation()
  {
    return $this->reservation;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancePolicy::class, 'Google_Service_Batch_InstancePolicy');
← Back