Package org.jclouds.date.internal

Examples of org.jclouds.date.internal.SimpleDateFormatDateService


   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Zone expected() {
      return Zone.builder()
              .id("13020128040171887099")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-10-19T16:42:54.131"))
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a"))
              .name("us-central1-a")
              .description("us-central1-a")
              .status(Zone.Status.DOWN)
              .addMaintenanceWindow(Zone.MaintenanceWindow.builder()
                      .name("2012-11-10-planned-outage")
                      .description("maintenance zone")
                      .beginTime(new SimpleDateFormatDateService().iso8601DateParse("2012-11-10T20:00:00.000"))
                      .endTime(new SimpleDateFormatDateService().iso8601DateParse("2012-12-02T20:00:00.000"))
                      .build())
              .build();
   }
View Full Code Here


   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Firewall expected() {
      return Firewall.builder()
              .id("12862241031274216284")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-04-13T03:05:02.855"))
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/firewalls/jclouds-test"))
              .name("jclouds-test")
              .description("Internal traffic from default allowed")
              .network(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/networks/jclouds-test"))
              .addSourceRange("10.0.0.0/8")
View Full Code Here

              .kind(Resource.Kind.DISK_LIST)
              .id("projects/myproject/zones/us-central1-a/disks")
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/disks"))
              .items(ImmutableSet.of(Disk.builder()
                      .id("13050421646334304115")
                      .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-11-25T01:38:48.306"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1/projects/myproject/zones/us-central1-a/disks/testimage1"))
                      .name("testimage1")
                      .sizeGb(1)
                      .zone(URI.create("https://www.googleapis" +
View Full Code Here

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Disk expected() {
      return Disk.builder()
              .id("13050421646334304115")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-11-25T01:38:48.306"))
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/disks/testimage1"))
              .name("testimage1")
              .sizeGb(1)
              .zone(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a"))
              .status("READY")
View Full Code Here

              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones"))
              .items(ImmutableSet.of(
                      new ParseZoneTest().expected()
                      , Zone.builder()
                      .id("13024414164050619686")
                      .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse
                              ("2012-10-24T20:13:19.271"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1/projects/myproject/zones/us-central1-b"))
                      .name("us-central1-b")
                      .description("us-central1-b")
                      .status(Zone.Status.UP)
                      .addMaintenanceWindow(Zone.MaintenanceWindow.builder()
                              .name("2013-02-17-planned-outage")
                              .description("maintenance zone")
                              .beginTime(new SimpleDateFormatDateService().iso8601DateParse
                                      ("2013-02-17T08:00:00.000"))
                              .endTime(new SimpleDateFormatDateService().iso8601DateParse
                                      ("2013-03-03T08:00:00.000"))
                              .build())
                      .build()))
              .build();
   }
View Full Code Here

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Image expected() {
      return Image.builder()
              .id("12941197498378735318")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-07-16T22:16:13.468"))
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/centos-cloud/global/images/centos-6-2" +
                      "-v20120326"))
              .name("centos-6-2-v20120326")
              .description("DEPRECATED. CentOS 6.2 image; Created Mon, 26 Mar 2012 21:19:09 +0000")
              .sourceType("RAW")
View Full Code Here

              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/regions"))
              .items(ImmutableSet.of(
                      new ParseRegionTest().expected(),
                      Region.builder()
                              .id("6396763663251190992")
                              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse
                                      ("2013-07-08T14:40:37.939-07:00"))
                              .selfLink(URI.create("https://www.googleapis" +
                                      ".com/compute/v1/projects/myproject/regions/us-central2"))
                              .name("us-central2")
                              .description("us-central2")
View Full Code Here

   }

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Operation expected() {
      SimpleDateFormatDateService dateService = new SimpleDateFormatDateService();
      return Operation.builder().id("13053095055850848306")
              .selfLink(URI.create("https://www.googleapis" +
                      ".com/compute/v1/projects/myproject/global/operations/operation-1354084865060-4cf88735faeb8" +
                      "-bbbb12cb"))
              .name("operation-1354084865060-4cf88735faeb8-bbbb12cb")
              .targetLink(URI.create("https://www.googleapis" +
                      ".com/compute/v1/projects/myproject/global/firewalls/jclouds-test-delete"))
              .targetId("13053094017547040099")
              .status(Operation.Status.DONE)
              .user("user@developer.gserviceaccount.com")
              .progress(100)
              .insertTime(dateService.iso8601DateParse("2012-11-28T06:41:05.060"))
              .startTime(dateService.iso8601DateParse("2012-11-28T06:41:05.142"))
              .endTime(dateService.iso8601DateParse("2012-11-28T06:41:06.142"))
              .operationType("insert")
              .build();
   }
View Full Code Here

   public IterableWithMarker<LoadBalancer> expected() {
      return IterableWithMarkers.from(ImmutableSet.of(
               LoadBalancer.builder()
                    .name("tests")
                    .createdTime(new SimpleDateFormatDateService().iso8601DateParse("2012-07-08T19:54:24.190Z"))
                    .dnsName("tests-144598086.us-east-1.elb.amazonaws.com")
                    .healthCheck(HealthCheck.builder()
                                            .interval(30)
                                            .target("TCP:22")
                                            .healthyThreshold(10)
View Full Code Here

   public IterableWithMarker<LoadBalancer> expected() {
      return IterableWithMarkers.from(ImmutableSet.of(
               LoadBalancer.builder()
                    .name("my-load-balancer")
                    .createdTime(new SimpleDateFormatDateService().iso8601DateParse("2010-03-03T20:54:45.110Z"))
                    .dnsName("my-load-balancer-1400212309.us-east-1.elb.amazonaws.com")
                    .healthCheck(HealthCheck.builder()
                                            .interval(300)
                                            .target("HTTP:80/index.html")
                                            .healthyThreshold(3)
View Full Code Here

TOP

Related Classes of org.jclouds.date.internal.SimpleDateFormatDateService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.