public BillingToken build() { return new BillingToken(id, name, price); }
@Override public String toString() { return string().toString(); }
@Override public int compareTo(BillingToken o) { return Longs.compare(id, o.getId()); }
@Override @SelectJson("list") public Set<Server> expected() { Option dc = Option.createWithIdNameAndDescription(1l, "US-West-1", "US West 1 Datacenter"); Option centOs = Option.createWithIdNameAndDescription(13L, "CentOS 5.2 (32-bit)", "CentOS 5.2 (32-bit)"); Option webServer = Option.createWithIdNameAndDescription(1L, "Web Server", "Web or Application Server"); return ImmutableSet.of(Server.builder().id(75245L).datacenter(dc).name("PowerServer").description("server to test the api. created by Alex") .state(ServerState.ON).type(webServer).ram(Option.createWithIdNameAndDescription(1L, "512MB", "Server with 512MB RAM")).os(centOs) .ip(Ip.builder().id(1313079L).ip("204.51.240.178").subnet("204.51.240.176/255.255.255.240").isPublic(true).state(IpState.ASSIGNED).datacenter(dc).build()) .image(ServerImage.builder().id(1946L).name("GSI-f8979644-e646-4711-ad58-d98a5fa3612c").friendlyName("BitNami Gallery 2.3.1-0") .description("http://bitnami.org/stack/gallery").os(centOs).type(ServerImageType.WEB_APPLICATION_SERVER) .state(ServerImageState.AVAILABLE).location("24732/GSI-f8979644-e646-4711-ad58-d98a5fa3612c.img").isActive(true).isPublic(true) .createdTime(new Date(1261504577971L)).updatedTime(new Date(1262649582180L)).billingTokens( BillingToken.builder().id(38L).name("CentOS 5.2 32bit").build(), BillingToken.builder().id(56L).name("BitNami: Gallery").build()) .owner(Customer.builder().id(24732L).name("BitRock").build()).build()).build()); }
@Override public int compareTo(BillingToken o) { return Longs.compare(id, o.getId()); }
@Override @SelectJson("list") public Set<Server> expected() { Option dc = Option.createWithIdNameAndDescription(1L, "US-West-1", "US West 1 Datacenter"); Option centOs = Option.createWithIdNameAndDescription(13L, "CentOS 5.2 (32-bit)", "CentOS 5.2 (32-bit)"); Option webServer = Option.createWithIdNameAndDescription(1L, "Web Server", "Web or Application Server"); return ImmutableSet.of(Server.builder().id(75245L).datacenter(dc).name("PowerServer").description("server to test the api. created by Alex") .state(ServerState.ON).type(webServer).ram(Option.createWithIdNameAndDescription(1L, "512MB", "Server with 512MB RAM")).os(centOs) .ip(Ip.builder().id(1313079L).ip("204.51.240.178").subnet("204.51.240.176/255.255.255.240").isPublic(true).state(IpState.ASSIGNED).datacenter(dc).build()) .image(ServerImage.builder().id(1946L).name("GSI-f8979644-e646-4711-ad58-d98a5fa3612c").friendlyName("BitNami Gallery 2.3.1-0") .description("http://bitnami.org/stack/gallery").os(centOs).type(ServerImageType.WEB_APPLICATION_SERVER) .state(ServerImageState.AVAILABLE).location("24732/GSI-f8979644-e646-4711-ad58-d98a5fa3612c.img").isActive(true).isPublic(true) .createdTime(new Date(1261504577971L)).updatedTime(new Date(1262649582180L)).billingTokens( BillingToken.builder().id(38L).name("CentOS 5.2 32bit").build(), BillingToken.builder().id(56L).name("BitNami: Gallery").build()) .owner(Customer.builder().id(24732L).name("BitRock").build()).build()).build()); }
@Override public int compareTo(BillingToken o) { return Longs.compare(id, o.getId()); }
@Override public String toString() { return string().toString(); }
public BillingToken build() { return new BillingToken(id, name, price); }
@Override @SelectJson("list") @OnlyElement public Server expected() { Option dc = Option.createWithIdNameAndDescription(1l, "US-West-1", "US West 1 Datacenter"); Option centOs = Option.createWithIdNameAndDescription(13L, "CentOS 5.2 (32-bit)", "CentOS 5.2 (32-bit)"); Option webServer = Option.createWithIdNameAndDescription(1L, "Web Server", "Web or Application Server"); return Server.builder().id(75245L).datacenter(dc).isSandbox(false).name("PowerServer").description("server to test the api. created by Alex") .state(ServerState.ON).type(webServer).ram(Option.createWithIdNameAndDescription(1L, "512MB", "Server with 512MB RAM")) .os(centOs).ip(Ip.builder().id(1313079L).ip("204.51.240.178").subnet("204.51.240.176/255.255.255.240").isPublic(true).state(IpState.ASSIGNED).datacenter(dc).build()) .image(ServerImage.builder().id(1946L).name("GSI-f8979644-e646-4711-ad58-d98a5fa3612c").friendlyName("BitNami Gallery 2.3.1-0") .description("http://bitnami.org/stack/gallery").os(centOs).type(ServerImageType.WEB_APPLICATION_SERVER) .state(ServerImageState.AVAILABLE).location("24732/GSI-f8979644-e646-4711-ad58-d98a5fa3612c.img").isPublic(true) .isActive(true).createdTime(new Date(1261504577971L)).updatedTime(new Date(1262649582180L)).billingTokens( BillingToken.builder().id(38L).name("CentOS 5.2 32bit").build(), BillingToken.builder().id(56L).name("BitNami: Gallery").build()).owner( Customer.builder().id(24732L).name("BitRock").build()).build()).build(); }
@Override public int compareTo(BillingToken o) { return Longs.compare(id, o.getId()); }
@Override public String toString() { return string().toString(); }
public BillingToken build() { return new BillingToken(id, name, price); }
@Override @SelectJson("list") @OnlyElement public Server expected() { Option dc = Option.createWithIdNameAndDescription(1L, "US-West-1", "US West 1 Datacenter"); Option centOs = Option.createWithIdNameAndDescription(13L, "CentOS 5.2 (32-bit)", "CentOS 5.2 (32-bit)"); Option webServer = Option.createWithIdNameAndDescription(1L, "Web Server", "Web or Application Server"); return Server.builder().id(75245L).datacenter(dc).isSandbox(false).name("PowerServer").description("server to test the api. created by Alex") .state(ServerState.ON).type(webServer).ram(Option.createWithIdNameAndDescription(1L, "512MB", "Server with 512MB RAM")) .os(centOs).ip(Ip.builder().id(1313079L).ip("204.51.240.178").subnet("204.51.240.176/255.255.255.240").isPublic(true).state(IpState.ASSIGNED).datacenter(dc).build()) .image(ServerImage.builder().id(1946L).name("GSI-f8979644-e646-4711-ad58-d98a5fa3612c").friendlyName("BitNami Gallery 2.3.1-0") .description("http://bitnami.org/stack/gallery").os(centOs).type(ServerImageType.WEB_APPLICATION_SERVER) .state(ServerImageState.AVAILABLE).location("24732/GSI-f8979644-e646-4711-ad58-d98a5fa3612c.img").isPublic(true) .isActive(true).createdTime(new Date(1261504577971L)).updatedTime(new Date(1262649582180L)).billingTokens( BillingToken.builder().id(38L).name("CentOS 5.2 32bit").build(), BillingToken.builder().id(56L).name("BitNami: Gallery").build()).owner( Customer.builder().id(24732L).name("BitRock").build()).build()).build(); }
@Override public int compareTo(BillingToken o) { return Longs.compare(id, o.getId()); }