Back to index
Summary
Defines a dependency of an application (or its snapshot) on another application (or snapshot). At runtime, the deployment process checks for the dependent applications on the environment. The deployment stops if dependent applications or their versions are not present and you have requested enforcement of the dependency check. Otherwise, the deployment continues with a warning.projectNameStringrequiredThe name for the project that must be unique among all projects. applicationNameStringrequiredThe name of the application. applicationDependencyNameStringoptionalThe name of application dependency. If not specified, a system generated GUID is used. dependentApplicationNameStringoptionalThe name of application which this application depends on. dependentProjectNameStringoptionalThe name the project containing the dependent application. dependentSnapshotNameStringoptionalThe name of snapshot of the dependent application. effectiveDateStringoptionalThe date when this dependency is applicable (for example, 2023-05-15). snapshotNameStringoptionalName of the snapshot; must be unique within the application. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createApplicationDependency( projectName: "test-projectName", applicationName: "test-applicationName" /* optional arguments */ )