blockProjectSshKeys = $blockProjectSshKeys; } /** * @return bool */ public function getBlockProjectSshKeys() { return $this->blockProjectSshKeys; } /** * Set this field true if you want Batch to help fetch drivers from a third * party location and install them for GPUs specified in `policy.accelerators` * or `instance_template` on your behalf. Default is false. For Container- * Optimized Image cases, Batch will install the accelerator driver following * milestones of https://cloud.google.com/container-optimized-os/docs/release- * notes. For non Container-Optimized Image cases, following * https://github.com/GoogleCloudPlatform/compute-gpu- * installation/blob/main/linux/install_gpu_driver.py. * * @param bool $installGpuDrivers */ public function setInstallGpuDrivers($installGpuDrivers) { $this->installGpuDrivers = $installGpuDrivers; } /** * @return bool */ public function getInstallGpuDrivers() { return $this->installGpuDrivers; } /** * Optional. Set this field true if you want Batch to install Ops Agent on * your behalf. Default is false. * * @param bool $installOpsAgent */ public function setInstallOpsAgent($installOpsAgent) { $this->installOpsAgent = $installOpsAgent; } /** * @return bool */ public function getInstallOpsAgent() { return $this->installOpsAgent; } /** * Name of an instance template used to create VMs. Named the field as * 'instance_template' instead of 'template' to avoid C++ keyword conflict. * Batch only supports global instance templates from the same project as the * job. You can specify the global instance template as a full or partial URL. * * @param string $instanceTemplate */ public function setInstanceTemplate($instanceTemplate) { $this->instanceTemplate = $instanceTemplate; } /** * @return string */ public function getInstanceTemplate() { return $this->instanceTemplate; } /** * InstancePolicy. * * @param InstancePolicy $policy */ public function setPolicy(InstancePolicy $policy) { $this->policy = $policy; } /** * @return InstancePolicy */ public function getPolicy() { return $this->policy; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(InstancePolicyOrTemplate::class, 'Google_Service_Batch_InstancePolicyOrTemplate');