Search in sources :

Example 1 with EditCredentialRequest

use of com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest in project cloudbreak by hortonworks.

the class CredentialTestDto method modifyRequest.

public EditCredentialRequest modifyRequest() {
    EditCredentialRequest editRequest = new EditCredentialRequest();
    CredentialRequest request = getRequest();
    editRequest.setName(request.getName());
    editRequest.setAzure(request.getAzure());
    editRequest.setAws(request.getAws());
    editRequest.setGcp(request.getGcp());
    editRequest.setMock(request.getMock());
    editRequest.setYarn(request.getYarn());
    editRequest.setCloudPlatform(request.getName());
    editRequest.setDescription(request.getName());
    editRequest.setCloudPlatform(getCloudPlatform().name());
    return editRequest;
}
Also used : CredentialRequest(com.sequenceiq.environment.api.v1.credential.model.request.CredentialRequest) EditCredentialRequest(com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest) EditCredentialRequest(com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest)

Example 2 with EditCredentialRequest

use of com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest in project cloudbreak by hortonworks.

the class CredentialAuthorizationIntegrationTest method getAwsEditCredentialRequest.

private EditCredentialRequest getAwsEditCredentialRequest(String name) {
    EditCredentialRequest credentialRequest = new EditCredentialRequest();
    credentialRequest.setAws(getAwsKeyBasedCredentialParameters());
    credentialRequest.setCloudPlatform("AWS");
    credentialRequest.setName(name);
    return credentialRequest;
}
Also used : EditCredentialRequest(com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest)

Aggregations

EditCredentialRequest (com.sequenceiq.environment.api.v1.credential.model.request.EditCredentialRequest)2 CredentialRequest (com.sequenceiq.environment.api.v1.credential.model.request.CredentialRequest)1