Back to index
Summary
Modifies an existing hook in a resource template.projectNameStringoptionalProjectName of the entity that owns the hook. procedureNameStringoptionalHook procedure name. hookNameStringrequiredName for the hook; must be unique among all hooks. broadcastBooleanoptionalBroadcast flag. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. hookTypeStringoptionalHook type. Possible values: "POST_CONFIGURATION" , "POST_PROVISIONING" , "POST_TEARDOWN" , "PRE_CONFIGURATION" , "PRE_PROVISIONING" , "PRE_TEARDOWN" newNameStringoptionalThe new name for an existing object that is being renamed. procedurePluginKeyStringoptionalProcedure plugin key. procedureProjectNameStringoptionalProcedure project name. resourceTemplateNameStringoptionalName of the resource template. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifyHook( hookName: "test-hookName" /* optional arguments */ )