use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.recipe.AttachRecipeV4Response in project cloudbreak by hortonworks.
the class UpdateRecipeService method attachRecipeToCluster.
public AttachRecipeV4Response attachRecipeToCluster(Long workspaceId, Stack stack, String recipeName, String hostGroupName) {
updateRecipeForCluster(workspaceId, stack, recipeName, hostGroupName, false);
AttachRecipeV4Response response = new AttachRecipeV4Response();
response.setRecipeName(recipeName);
response.setHostGroupName(hostGroupName);
return response;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.recipe.AttachRecipeV4Response in project cloudbreak by hortonworks.
the class StackAttachRecipeAction method action.
@Override
public StackTestDto action(TestContext testContext, StackTestDto testDto, CloudbreakClient client) throws Exception {
Log.whenJson(LOGGER, " attach recipe to stack request:\n", testDto.getAttachRecipeV4Request());
AttachRecipeV4Response response = client.getDefaultClient().stackV4Endpoint().attachRecipe(client.getWorkspaceId(), testDto.getAttachRecipeV4Request(), testDto.getName(), testContext.getActingUserCrn().getAccountId());
Log.whenJson(LOGGER, " attach recipe to stack response:\n", response);
return testDto;
}
Aggregations