@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.
|
@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 valid@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 failsCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.