@ExperimentalApi
public interface DeploymentImportService
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties |
convertYamlToDeployment(String yaml,
RssPermissions rssPermissions)
Converts data from a YAML document to deployment properties.
|
com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties |
convertYamlToDeploymentPermissions(String yaml)
Converts data from a YAML document to deployment permissions properties.
|
com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties |
convertYamlToEnvironmentPermissions(String yaml)
Converts data from a YAML document to environment permissions properties.
|
DeploymentProject |
importDeployment(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
com.atlassian.user.User userForCreation,
RssPermissions rssPermissions,
boolean noChangesInProperties)
Validates exported deployment properties within Bamboo context (e.g.
|
void |
importDeploymentEnvironmentPermissions(com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties environmentPermission,
RssPermissions rssPermissions)
Import permissions for deployment environment.
|
void |
importDeploymentPermissions(com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermissionProperties,
RssPermissions rssPermissions)
Import permissions for deployment project.
|
void |
importDeploymentPermissions(String deploymentName,
com.atlassian.bamboo.specs.api.model.BambooOidProperties deploymentOid,
com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties defaultEnvironmentPermissions,
List<com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties> environmentPermissions,
RssPermissions rssPermissions)
Import environments permissions in a bulk.
|
void |
validate(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
RssPermissions rssPermissions)
Validates exported deployment properties within Bamboo context (e.g.
|
@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties convertYamlToDeployment(@NotNull String yaml, @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).
yaml
- YAML String containing definition of deploymentYamlValidationException
- if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validvoid validate(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @NotNull RssPermissions rssPermissions) throws YamlValidationException
deploymentProperties
- deployment properties to importrssPermissions
- deployment projects which are allowed for modification; since 6.2YamlValidationException
- if validation failed@NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties convertYamlToDeploymentPermissions(String yaml) throws YamlValidationException
This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).
yaml
- YAML String containing definition of deployment permissionsYamlValidationException
- if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not valid@NotNull com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties convertYamlToEnvironmentPermissions(String yaml) throws YamlValidationException
This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).
yaml
- YAML String containing definition of environment permissionsYamlValidationException
- if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not valid@NotNull DeploymentProject importDeployment(@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @Nullable com.atlassian.user.User userForCreation, @NotNull RssPermissions rssPermissions, boolean noChangesInProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
deploymentProperties
- deployment properties to importuserForCreation
- user invoking the importrssPermissions
- deployment projects which are allowed for modification; since 6.2com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsvoid importDeploymentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermissionProperties, @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
deploymentPermissionProperties
- deployment permissions to importcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsvoid importDeploymentEnvironmentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties environmentPermission, @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
environmentPermission
- environment permissions to import.com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsvoid importDeploymentPermissions(@Nullable String deploymentName, @Nullable com.atlassian.bamboo.specs.api.model.BambooOidProperties deploymentOid, @NotNull com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties defaultEnvironmentPermissions, @NotNull List<com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties> environmentPermissions, @NotNull RssPermissions rssPermissions)
deploymentName
- name of the deployment projectdeploymentOid
- oid name of the deployment projectdefaultEnvironmentPermissions
- default environment permission will be used for all environments if they not specified at #environmentPermissions argumentenvironmentPermissions
- environment permissionsrssPermissions
- repository permissionsCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.