Package org.jclouds.date.internal

Examples of org.jclouds.date.internal.SimpleDateFormatDateService


     
      assertEquals(client.registerISO("ubuntu10.10", "ubuntu 10.10 (32 bit)", "http://ubuntu/ubuntu-10.10.iso", "1e0335d9-b6cc-4805-bddf-0828e66a0d01",
              registerISOOptions),
            ISO.builder().id("b52c509d-c6e2-452c-b6ec-aa00720ed6cd").name("ubuntu10.10").displayText("ubuntu 10.10 (32 bit)").isPublic(true)
                .isReady(false).bootable(true).isFeatured(false).crossZones(false).osTypeId("0e0335d9-b6cc-4808-bddf-0828e66a0d03")
                .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-08-21T15:45:01+0530"))
                .osTypeName("Ubuntu 10.10 (32-bit)").account("root").domain("ROOT").domainid("99f4159b-c698-4bd9-b8c5-5ac462f101eb").status("")
                .account("admin").zoneId("6f9a2921-b22a-4149-8b71-6ffc275a2177").zoneName("Basic1")
                .isExtractable(false).build());
   }
View Full Code Here


   public SessionCredentials expected() {
      return SessionCredentials.builder()
            .accessKeyId("AKIAIOSFODNN7EXAMPLE")
            .secretAccessKey("wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY")
            .sessionToken("AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT")
            .expiration(new SimpleDateFormatDateService().iso8601DateParse("2011-07-11T19:55:29.611Z")).build();
   }
View Full Code Here

            .builder()
            .id("52415800-8b69-11e0-9b19-734f000004d2")
            .tenantId("1234")
            .userId("5678")
            .name("sample-f352")
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-10-10T12:00:00Z"))
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2010-08-10T12:00:00Z"))
            .hostId("e4d909c290d0fb1ca068ffaddf22cbd0")
            .accessIPv4("67.23.10.132")
            .accessIPv6("::babe:67.23.10.132")
            .status(Status.BUILD)
            .diskConfig(Server.DISK_CONFIG_AUTO)
View Full Code Here

   @SelectJson("access")
   @Consumes(MediaType.APPLICATION_JSON)
   public Access expected() {
      return Access.builder()
                   .token(Token.builder()
                               .expires(new SimpleDateFormatDateService().iso8601DateParse("2012-01-18T21:35:59.050Z"))
                               .id("Auth_4f173437e4b013bee56d1007")
                               .tenant(Tenant.builder().id("40806637803162").name("user@jclouds.org-default-tenant").build()).build())
                   .user(User.builder()
                             .id("36980896575174").name("user@jclouds.org")
                             .role(Role.builder().id("00000000004022").serviceId("110").name("Admin").tenantId("40806637803162").build())
View Full Code Here

   @SelectJson("access")
   @Consumes(MediaType.APPLICATION_JSON)
   public Access expected() {
      return Access.builder()
                   .token(Token.builder()
                               .expires(new SimpleDateFormatDateService().iso8601DateParse("2012-06-06T20:56:47.000-05:00"))
                               .id("Auth_4f173437e4b013bee56d1007")
                               .tenant(Tenant.builder().id("40806637803162").name("40806637803162").build()).build())
                   .user(User.builder()
                             .id("54321")
                             .name("joe")
View Full Code Here

              .kind(Resource.Kind.IMAGE_LIST)
              .id("projects/centos-cloud/global/images")
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/centos-cloud/global/images"))
              .items(ImmutableSet.of(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

   }

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public ListPage<MachineType> expected() {
      SimpleDateFormatDateService dateService = new SimpleDateFormatDateService();
      return ListPage.<MachineType>builder()
              .kind(MACHINE_TYPE_LIST)
              .id("projects/myproject/machineTypes")
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/machineTypes"))
              .addItem(MachineType.builder()
                      .id("4618642685664990776")
                      .creationTimestamp(dateService.iso8601DateParse("2013-04-25T13:32:49.088-07:00"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1/projects/myproject/zones/us-central1-a/machineTypes/f1-micro"))
                      .zone("us-central1-a")
                      .name("f1-micro")
                      .description("1 vCPU (shared physical core) and 0.6 GB RAM")
                      .guestCpus(1)
                      .memoryMb(614)
                      .imageSpaceGb(0)
                      .maximumPersistentDisks(4)
                      .maximumPersistentDisksSizeGb(3072)
                      .build())
              .addItem(MachineType.builder()
                      .id("12907738072351752276")
                      .creationTimestamp(dateService.iso8601DateParse("2012-06-07T20:48:14.670"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1/projects/myproject/zones/us-central1-a/machineTypes/n1-standard-1"))
                      .zone("us-central1-a")
                      .name("n1-standard-1")
                      .description("1 vCPU, 3.75 GB RAM, and a 10 GB ephemeral root disk")
                      .guestCpus(1)
                      .memoryMb(3840)
                      .imageSpaceGb(10)
                      .maximumPersistentDisks(16)
                      .maximumPersistentDisksSizeGb(128)
                      .build())
              .addItem(MachineType.builder()
                      .id("12908560709887590691")
                      .creationTimestamp(dateService.iso8601DateParse("2012-06-07T20:51:19.936"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1/projects/myproject/zones/us-central1-a/machineTypes/n1-standard-8-d"))
                      .zone("us-central1-a")
                      .name("n1-standard-8-d")
                      .description("8 vCPUs, 30 GB RAM, a 10 GB ephemeral root disk, " +
View Full Code Here

              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/google/global/firewalls"))
              .items(ImmutableSet.of(
                      new ParseFirewallTest().expected()
                      , Firewall.builder()
                      .id("12862241067393040785")
                      .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-04-13T03:05:04.365"))
                      .selfLink(URI.create("https://www.googleapis" +
                              ".com/compute/v1/projects/google/global/firewalls/default-ssh"))
                      .name("default-ssh")
                      .description("SSH allowed from anywhere")
                      .network(URI.create("https://www.googleapis" +
View Full Code Here

   @Consumes(MediaType.APPLICATION_JSON)
   public Snapshot expected() {
      return Snapshot.builder()
              .selfLink(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/snapshots/test-snap"))
              .id("9734455566806191190")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2013-07-26T12:54:23.173-07:00"))
              .status("READY")
              .sizeGb(10)
              .sourceDisk(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/disks/testimage1"))
              .name("test-snap")
              .description("")
View Full Code Here

   @Override
   @Consumes(MediaType.APPLICATION_JSON)
   public Instance expected() {
      return Instance.builder()
              .id("13051190678907570425")
              .creationTimestamp(new SimpleDateFormatDateService().iso8601DateParse("2012-11-25T23:48:20.758"))
              .selfLink(URI.create("https://www.googleapis" +
                      ".com/compute/v1/projects/myproject/zones/us-central1-a/instances/test-0"))
              .description("desc")
              .name("test-0")
              .machineType(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/machineTypes/n1" +
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.