public class RestEnvironment extends Object implements Environment
Modifier | Constructor and Description |
---|---|
protected |
RestEnvironment() |
|
RestEnvironment(@NotNull Environment environment) |
|
RestEnvironment(long id,
String name) |
Modifier and Type | Method and Description |
---|---|
ConfigurationState |
getConfigurationState() |
long |
getDeploymentProjectId() |
String |
getDescription() |
long |
getId() |
@NotNull RestKey |
getKey()
Key representing this environment.
|
@NotNull String |
getName() |
RestOperations |
getOperations()
Operations object describing detailed permissions for environment |
int |
getPosition() |
ImmutableRequirementSet |
getRequirementSet()
Return effective value of
ImmutableRequirementSet , that is value that is considered when checking which agents and elastic images
can deploy to this environment. |
@NotNull List<TaskDefinition> |
getTaskDefinitions() |
@NotNull Supplier<List<TaskDefinition>> |
getTaskDefinitionsSupplier()
Return (possibly lazy) supplier of tasks.
|
@NotNull List<TriggerDefinition> |
getTriggerDefinitions() |
@NotNull Supplier<List<TriggerDefinition>> |
getTriggerDefinitionsSupplier()
Return (possibly lazy) supplier of triggers.
|
boolean |
isSuspended() |
protected RestEnvironment()
public RestEnvironment(@NotNull @NotNull Environment environment)
public RestEnvironment(long id, String name)
public long getId()
getId
in interface BambooIdProvider
getId
in interface InternalEnvironment
@NotNull public @NotNull RestKey getKey()
InternalEnvironment
InternalEnvironment.getId()
instead.getKey
in interface InternalEnvironment
@NotNull public @NotNull 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 @NotNull List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface Environment
getTaskDefinitions
in interface TaskContainer
@NotNull public @NotNull 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 EnvironmentStub
getOperations
in interface Environment
public int getPosition()
getPosition
in interface InternalEnvironment
public ImmutableRequirementSet getRequirementSet()
InternalEnvironment
ImmutableRequirementSet
, that is value that is considered when checking which agents and elastic images
can deploy to this environment.getRequirementSet
in interface InternalEnvironment
@NotNull public @NotNull Supplier<List<TaskDefinition>> getTaskDefinitionsSupplier()
InternalEnvironment
getTaskDefinitionsSupplier
in interface InternalEnvironment
@NotNull public @NotNull Supplier<List<TriggerDefinition>> getTriggerDefinitionsSupplier()
InternalEnvironment
getTriggerDefinitionsSupplier
in interface InternalEnvironment
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.