cloudLoggingOption = $cloudLoggingOption; } /** * @return CloudLoggingOption */ public function getCloudLoggingOption() { return $this->cloudLoggingOption; } /** * If and where logs should be saved. * * Accepted values: DESTINATION_UNSPECIFIED, CLOUD_LOGGING, PATH * * @param self::DESTINATION_* $destination */ public function setDestination($destination) { $this->destination = $destination; } /** * @return self::DESTINATION_* */ public function getDestination() { return $this->destination; } /** * When `destination` is set to `PATH`, you must set this field to the path * where you want logs to be saved. This path can point to a local directory * on the VM or (if congifured) a directory under the mount path of any Cloud * Storage bucket, network file system (NFS), or writable persistent disk that * is mounted to the job. For example, if the job has a bucket with * `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the root * directory of the `remotePath` of that bucket by setting this field to * `/mnt/disks/my-bucket/`. * * @param string $logsPath */ public function setLogsPath($logsPath) { $this->logsPath = $logsPath; } /** * @return string */ public function getLogsPath() { return $this->logsPath; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(LogsPolicy::class, 'Google_Service_Batch_LogsPolicy');