jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Flanagan <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] Adding Dimension Data ServerImageAPI (#380)
Date Fri, 07 Apr 2017 10:48:16 GMT
trevorflanagan commented on this pull request.



> +
+   @Override
+   public String resource() {
+      return "/customerImages.json";
+   }
+
+   @Override
+   @Consumes(MediaType.APPLICATION_JSON)
+   public CustomerImages expected() {
+      List<CustomerImage> customerImages = ImmutableList
+            .of(CustomerImage.builder().id("f27b7ead-9cdc-4cee-be50-8f8e6cec8534").name("CloneForDrs")
+                  .cluster(Cluster.builder().id("QA1_N2_VMWARE_1-01").name("QA1_N2_VMWARE_1-01").build())
+                  .cpu(CPU.builder().count(2).speed("STANDARD").coresPerSocket(1).build()).memoryGb(4).disks(
+                        ImmutableList.of(Disk.builder().id("1bddd4ed-67dc-4e5e-a0d5-b5a6c012ec14").scsiId(0).sizeGb(50)
+                              .speed("HIGHPERFORMANCE").build()))
+                  .createTime(DatatypeConverter.parseDateTime("2016-07-17T23:53:48.000Z").getTime())

Updated to use.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/380#discussion_r110363897
Mime
View raw message