@Internal
public interface AgentCapabilityService
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
addCapability(@NotNull PipelineDefinition agent,
@NotNull String key,
@NotNull String value)
Add new capability for agent.
|
@NotNull ReadOnlyCapabilitySet |
getAgentCapabilities(@NotNull PipelineDefinition agent,
boolean includeShared) |
void |
removeCapabilities(@NotNull PipelineDefinition agent)
Remove all capabilities for agent.
|
void |
removeCapability(@NotNull PipelineDefinition agent,
@NotNull String capabilityKey)
Remove agent's capability.
|
ErrorCollection |
updateCapability(@NotNull PipelineDefinition agent,
@NotNull String key,
@Nullable String value,
@NotNull CapabilitySource capabilitySource)
Update value of existing capability.
|
void removeCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String capabilityKey)
void removeCapabilities(@NotNull @NotNull PipelineDefinition agent)
agent
- @NotNull @NotNull ReadOnlyCapabilitySet getAgentCapabilities(@NotNull @NotNull PipelineDefinition agent, boolean includeShared)
includeShared
- if shared credentials should be returnedErrorCollection addCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String key, @NotNull @NotNull String value)
ErrorCollection updateCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String key, @Nullable @Nullable String value, @NotNull @NotNull CapabilitySource capabilitySource)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.