Search in sources :

Example 36 with Location

use of com.sequenceiq.cloudbreak.cloud.model.Location in project cloudbreak by hortonworks.

the class CloudFormationTemplateBuilderTest method authenticatedContext.

private AuthenticatedContext authenticatedContext() {
    Location location = Location.location(Region.region("region"), AvailabilityZone.availabilityZone("az"));
    CloudContext cloudContext = new CloudContext(5L, "name", "platform", "owner", "variant", location);
    CloudCredential cc = new CloudCredential(1L, null);
    return new AuthenticatedContext(cloudContext, cc);
}
Also used : CloudCredential(com.sequenceiq.cloudbreak.cloud.model.CloudCredential) CloudContext(com.sequenceiq.cloudbreak.cloud.context.CloudContext) AuthenticatedContext(com.sequenceiq.cloudbreak.cloud.context.AuthenticatedContext) Location(com.sequenceiq.cloudbreak.cloud.model.Location)

Aggregations

Location (com.sequenceiq.cloudbreak.cloud.model.Location)36 CloudContext (com.sequenceiq.cloudbreak.cloud.context.CloudContext)31 CloudStack (com.sequenceiq.cloudbreak.cloud.model.CloudStack)21 CloudCredential (com.sequenceiq.cloudbreak.cloud.model.CloudCredential)18 AuthenticatedContext (com.sequenceiq.cloudbreak.cloud.context.AuthenticatedContext)17 HashMap (java.util.HashMap)17 AmazonEC2Client (com.amazonaws.services.ec2.AmazonEC2Client)14 DescribeSubnetsResult (com.amazonaws.services.ec2.model.DescribeSubnetsResult)14 DescribeVpcsResult (com.amazonaws.services.ec2.model.DescribeVpcsResult)14 Vpc (com.amazonaws.services.ec2.model.Vpc)14 Group (com.sequenceiq.cloudbreak.cloud.model.Group)14 InstanceAuthentication (com.sequenceiq.cloudbreak.cloud.model.InstanceAuthentication)14 Network (com.sequenceiq.cloudbreak.cloud.model.Network)14 Subnet (com.sequenceiq.cloudbreak.cloud.model.Subnet)14 Test (org.junit.Test)14 CloudResource (com.sequenceiq.cloudbreak.cloud.model.CloudResource)8 OperationException (com.sequenceiq.cloudbreak.service.stack.connector.OperationException)8 CloudInstance (com.sequenceiq.cloudbreak.cloud.model.CloudInstance)7 ArrayList (java.util.ArrayList)6 Operation (com.google.api.services.compute.model.Operation)5