Search in sources :

Example 1 with AttachRecipeV4Response

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;
}
Also used : AttachRecipeV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.recipe.AttachRecipeV4Response)

Example 2 with AttachRecipeV4Response

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;
}
Also used : AttachRecipeV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.recipe.AttachRecipeV4Response)

Aggregations

AttachRecipeV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.recipe.AttachRecipeV4Response)2