autoDelete = $autoDelete; } /** * @return bool */ public function getAutoDelete() { return $this->autoDelete; } /** * The custom source image to be used to restore this disk when instantiating * this instance template. * * @param string $customImage */ public function setCustomImage($customImage) { $this->customImage = $customImage; } /** * @return string */ public function getCustomImage() { return $this->customImage; } /** * Specifies the device name of the disk to which the configurations apply to. * * @param string $deviceName */ public function setDeviceName($deviceName) { $this->deviceName = $deviceName; } /** * @return string */ public function getDeviceName() { return $this->deviceName; } /** * Specifies whether to include the disk and what image to use. Possible * values are: - source-image: to use the same image that was * used to create the source instance's corresponding disk. Applicable to * the boot disk and additional read-write disks. - source-image- * family: to use the same image family that was used to create the * source instance's corresponding disk. Applicable to the boot disk and * additional read-write disks. - custom-image: to use a user-provided * image url for disk creation. Applicable to the boot disk and * additional read-write disks. - attach-read-only: to attach a read- * only disk. Applicable to read-only disks. - do-not-include: to * exclude a disk from the template. Applicable to additional read-write * disks, local SSDs, and read-only disks. * * Accepted values: ATTACH_READ_ONLY, BLANK, CUSTOM_IMAGE, DEFAULT, * DO_NOT_INCLUDE, SOURCE_IMAGE, SOURCE_IMAGE_FAMILY * * @param self::INSTANTIATE_FROM_* $instantiateFrom */ public function setInstantiateFrom($instantiateFrom) { $this->instantiateFrom = $instantiateFrom; } /** * @return self::INSTANTIATE_FROM_* */ public function getInstantiateFrom() { return $this->instantiateFrom; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DiskInstantiationConfig::class, 'Google_Service_Compute_DiskInstantiationConfig');