public class RestEnvironment extends Object implements Environment
Modifier | Constructor and Description |
---|---|
protected |
RestEnvironment() |
|
RestEnvironment(Environment environment) |
Modifier and Type | Method and Description |
---|---|
ConfigurationState |
getConfigurationState() |
long |
getDeploymentProjectId() |
String |
getDescription() |
long |
getId() |
RestKey |
getKey()
Key representing this environment.
|
String |
getName() |
RestOperations |
getOperations()
Operations object describing detailed permissions for environment |
int |
getPosition() |
List<TaskDefinition> |
getTaskDefinitions() |
List<TriggerDefinition> |
getTriggerDefinitions() |
List<BuildStrategy> |
getTriggers()
Returns triggers defined for this object as BuildStrategies.
|
boolean |
isSuspended() |
protected RestEnvironment()
public RestEnvironment(@NotNull Environment environment)
public long getId()
getId
in interface BambooIdProvider
getId
in interface InternalEnvironment
@NotNull public RestKey getKey()
InternalEnvironment
InternalEnvironment.getId()
instead.getKey
in interface InternalEnvironment
@NotNull public String getName()
getName
in interface InternalEnvironment
getName
in interface DescriptionProvider
getName
in interface NameProvider
public String getDescription()
getDescription
in interface InternalEnvironment
getDescription
in interface DescriptionProvider
@NotNull public List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface Environment
getTaskDefinitions
in interface TaskContainer
@NotNull public List<BuildStrategy> getTriggers()
Triggerable
Triggerable.getTriggerDefinitions()
and converting its results. Note that this conversion can be lossy,
as not all trigger types are convertible to BuildStrategies. Items that cannot be converted are skipped.getTriggers
in interface Triggerable
@NotNull public List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions
in interface Triggerable
public ConfigurationState getConfigurationState()
getConfigurationState
in interface InternalEnvironment
public boolean isSuspended()
isSuspended
in interface Triggerable
public long getDeploymentProjectId()
getDeploymentProjectId
in interface InternalEnvironment
DeploymentProject
which is owner of this environmentpublic RestOperations getOperations()
Environment
Operations
object describing detailed permissions for environmentgetOperations
in interface Environment
public int getPosition()
getPosition
in interface InternalEnvironment
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.