private static Disk disk(URI sourceImage) { return Disk.create( // "13050421646334304115", // id new Date(), // creationTimestamp URI.create("http://localhost/zone"), // zone Status.READY, // status "testimage1", // name null, // description 1, // sizeGb null, // sourceSnapshot null, // sourceSnapshotId DISK_URI, // selfLink sourceImage, // sourceImage null, // sourceImageId URI.create("http://localhost/type"), // type null // license ); }
@Consumes(APPLICATION_JSON) public Disk expected(String baseUrl){ return Disk.create( // "13050421646334304115", // id parse("2012-11-25T01:38:48.306"), // creationTimestamp URI.create(baseUrl + "/party/zones/us-central1-a"), // zone Status.READY, // status "testimage1", // name null, // description 1, // sizeGb null, // sourceSnapshot null, // sourceSnapshotId URI.create(baseUrl + "/party/zones/us-central1-a/disks/testimage1"), // selfLink null, // sourceImage null, // sourceImageId URI.create(baseUrl + "/studied-point-720/zones/us-central1-a/diskTypes/pd-standard"), // type null // license ); } }