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');