ZosUssFile

class ZosUssFile(var connection: ZOSConnection, var httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Constructors

Link copied to clipboard
fun ZosUssFile(connection: ZOSConnection, httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Functions

Link copied to clipboard
fun createFile(filePath: String, params: CreateUssFile): Response<*>

Creates a new file or directory with specified parameters

Link copied to clipboard
fun deleteFile(filePath: String): Response<*>

Deletes USS file

Link copied to clipboard
fun writeToFile(filePath: String, text: ByteArray): Response<*>

Writes plain text to USS file. Creates new if not exist

Link copied to clipboard
fun writeToFileBin(filePath: String, inputFile: ByteArray): Response<*>

Writes to USS binary file. Creates new if not exist

Properties

Link copied to clipboard
Link copied to clipboard
var httpClient: OkHttpClient
Link copied to clipboard
var response: Response<*>? = null