Back to index
Summary
Generates a domain-specific language (DSL) script for the specified object including all nested objects, parameters, and custom properties, subject to arguments passed in with the command.pathStringrequiredA property path indicating a single object for which DSL will be generated. formatStringoptionalFormat to use for the DSL. Defaults to groovy format.Possible values: "groovy" , "yaml" includeChildrenStringoptionalA comma-separated list of collection types to include in generated DSL, all other children will be suppressed. suppressChildrenBooleanoptionalTrue to suppress all child entities in the generated DSL for the object. suppressDefaultsBooleanoptionalTrue to suppress system default in the generated DSL for the object. suppressEmptyBooleanoptionalTrue to suppress properties with empty values in the generated DSL for the object. suppressNullsBooleanoptionalTrue to suppress properties with null values in the generated DSL for the object. suppressParentBooleanoptionalTrue to remove object parent reference from DSL output. suppressParentAclBooleanoptionalpreviewTrue to suppress the parent ACL when generating ACLs for child objects. Use only if withAcls argument equals True.useFileReferencesBooleanoptionalTrue to replace specific properties with file references. withAclsBooleanoptionalTrue to emit ACLs in the generated DSL for the object. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.generateDsl( path: "test-path" /* optional arguments */ )