createConsumableResource

Creates an Batch consumable resource.

Samples


fun main() { 
   //sampleStart 
   // Creates a Batch consumable resource.
val resp = batchClient.createConsumableResource {
    consumableResourceName = "myConsumableResource"
    totalQuantity = 123
    resourceType = "REPLENISHABLE"
    tags = mapOf<String, String>(
        "Department" to "Engineering",
        "User" to "JaneDoe"
    )
} 
   //sampleEnd
}