Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / OperationService

OperationService

class OperationService : ConnectionRequest<User, Operation>

Access point for posting operations to remote assets via Cumulocity

Constructors

<init>

OperationService(connection: CumulocityConnectionFactory.CumulocityConnection)

Creates a single use instance that cab be used to launch a query, do not reuse the same instance for multiple queries

Properties

connection

val connection: CumulocityConnectionFactory.CumulocityConnection

Connection referencing cumulocity tenant, instance and credentials to use

version

var version: String

Functions

path

fun path(): String

post

fun post(operation: Operation, responder: (Response<Operation?>) -> Unit): Unit

Submits an operation to Cumulocity to be run on the targetted device refereneced in the managed object

response

fun response(response: String): Operation