@ExperimentalApi
public interface DeploymentImportService
Modifier and Type | Method and Description |
---|---|
@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties |
convertYamlToDeployment(@NotNull String yaml,
@NotNull RssPermissions rssPermissions)
Converts data from a YAML document to deployment properties.
|
@NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties |
convertYamlToDeploymentPermissions(String yaml)
Converts data from a YAML document to deployment permissions properties.
|
@NotNull com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties |
convertYamlToEnvironmentPermissions(String yaml)
Converts data from a YAML document to environment permissions properties.
|
@NotNull DeploymentProject |
importDeployment(@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
@Nullable com.atlassian.user.User userForCreation,
@NotNull RssPermissions rssPermissions,
boolean noChangesInProperties)
Validates exported deployment properties within Bamboo context (e.g.
|
void |
importDeploymentEnvironmentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties environmentPermission,
@NotNull RssPermissions rssPermissions)
Import permissions for deployment environment.
|
void |
importDeploymentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermissionProperties,
@NotNull RssPermissions rssPermissions)
Import permissions for deployment project.
|
void |
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)
Import environments permissions in a bulk.
|
void |
validate(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
@NotNull RssPermissions rssPermissions)
Validates exported deployment properties within Bamboo context (e.g.
|
@NotNull @NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties convertYamlToDeployment(@NotNull @NotNull String yaml, @NotNull @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 @NotNull RssPermissions rssPermissions) throws YamlValidationException
deploymentProperties
- deployment properties to importrssPermissions
- deployment projects which are allowed for modification; since 6.2YamlValidationException
- if validation failed@NotNull @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 @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 @NotNull DeploymentProject importDeployment(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @Nullable @Nullable com.atlassian.user.User userForCreation, @NotNull @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 @NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermissionProperties, @NotNull @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 @NotNull com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties environmentPermission, @NotNull @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 @Nullable String deploymentName, @Nullable @Nullable com.atlassian.bamboo.specs.api.model.BambooOidProperties deploymentOid, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties defaultEnvironmentPermissions, @NotNull @NotNull List<com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties> environmentPermissions, @NotNull @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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.