AppParameterValue.File

API: Experimental/Alpha

A reference to a UCloud file

data class File(
    val path: String,
    val readOnly: Boolean?,
    val type: String /* "file" */,
)
  • Compatible with: ApplicationParameter.InputFile and ApplicationParameter.InputDirectory

  • Mountable as a resource: ✅ Yes

  • Expands to: The absolute path to the file or directory in the software’s environment

  • Side effects: Includes the file or directory in the Job’s temporary work directory

The path of the file must be absolute and refers to either a UCloud directory or file.

Properties
path: String The absolute path to the file or directory in UCloud
readOnly: Boolean? Indicates if this file or directory should be mounted as read-only

A provider must reject the request if it does not support read-only mounts when readOnly = true.

type: String /* "file" */ The type discriminator

API: Stable