Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / BinariesService / Attachment

Attachment

data class Attachment

Wrapper for the content to uploaded/downloaded from Cumulocity

Constructors

<init>

Attachment(o: JSONObject)Attachment(id: String, name: String, type: String?, content: ByteArray?)

Wrapper for the content to uploaded/downloaded from Cumulocity

Properties

content

var content: ByteArray?

byte array of the file contents to be sent or received from Cumulocity

id

val id: String

null of the internal id assigned by Cumulocity

name

val name: String

name/label of the of the data and shown in Cumulocity -> Administration -> Management -> File Repository

type

val type: String?

Content type of the data e.g. application/png etc