Package org.jclouds.rackspace.clouddns.v1.functions

Examples of org.jclouds.rackspace.clouddns.v1.functions.ParseJob


            .comment("Hello test subdomain")
            .build();
     
      List<CreateSubdomain> createSubdomains = ImmutableList.of(createSubdomain1, createSubdomain2);

      CreateDomain createDomain1 = CreateDomain.builder()
            .name(JCLOUDS_EXAMPLE)
            .email("jclouds1@" + JCLOUDS_EXAMPLE)
            .ttl(600001)
            .comment("Hello Domain 1")
            .subdomains(createSubdomains)
            .records(createRecords)
            .build();

      CreateDomain createDomain2 = CreateDomain.builder()
            .name("alt-" + JCLOUDS_EXAMPLE)
            .email("jclouds2@" + JCLOUDS_EXAMPLE)
            .ttl(600002)
            .comment("Hello Domain 2")
            .build();
View Full Code Here


      assertTrue(altjclouds.getUpdated().before(now));
   }  

   @Test(dependsOnMethods = "testCreateDomainsWithSubdomainsAndRecords")
   public void testCreateSimpleDomain() throws Exception {
      CreateDomain createDomain = CreateDomain.builder()
            .name("simple-" + JCLOUDS_EXAMPLE)
            .email("simple-jclouds@" + JCLOUDS_EXAMPLE)
            .build();

      Iterable<CreateDomain> createDomains = ImmutableList.of(createDomain);     
View Full Code Here

      System.out.println("serverIPv6 = " + serverIPv6);
   }

   @Test(dependsOnMethods = "testCreateServer")
   public void testCreateDomain() throws Exception {
      CreateDomain createDomain = CreateDomain.builder().name(JCLOUDS_EXAMPLE).email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(60000).build();

      Iterable<CreateDomain> createDomains = ImmutableList.of(createDomain);
      Domain domain = awaitComplete(api, api.getDomainApi().create(createDomains)).iterator().next();
View Full Code Here

   private String srvRecordId;
   private String mxRecordId;

   @Test
   public void testCreateDomain() throws Exception {
      CreateDomain createDomain = CreateDomain.builder()
            .name(JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(60000)
            .build();
View Full Code Here

            .comment("Hello test subdomain")
            .build();
     
      Set<CreateSubdomain> createSubdomains = ImmutableSet.of(createSubdomain1, createSubdomain2);

      CreateDomain createDomain1 = CreateDomain.builder()
            .name(NAME)
            .email("jclouds@" + NAME)
            .ttl(600000)
            .comment("Hello Domain")
            .subdomains(createSubdomains)
            .records(createRecords)
            .build();

      CreateDomain createDomain2 = CreateDomain.builder()
            .name(ALT_NAME)
            .email("jclouds@" + ALT_NAME)
            .ttl(600000)
            .comment("Hello Domain")
            .build();
View Full Code Here

            .data("10.0.0.1")
            .build();
     
      List<Record> createRecords = ImmutableList.of(createMXRecord, createARecord);
     
      CreateSubdomain createSubdomain1 = CreateSubdomain.builder()
            .name("dev." + JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .comment("Hello dev subdomain")
            .build();
     
      CreateSubdomain createSubdomain2 = CreateSubdomain.builder()
            .name("test." + JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .comment("Hello test subdomain")
            .build();
     
View Full Code Here

            .ttl(60000)
            .build();
     
      List<Record> createRecords = ImmutableList.of(createMXRecord, createARecord);
     
      CreateSubdomain createSubdomain1 = CreateSubdomain.builder()
            .name("dev." + JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .comment("Hello dev subdomain")
            .build();
     
      CreateSubdomain createSubdomain2 = CreateSubdomain.builder()
            .name("test." + JCLOUDS_EXAMPLE)
            .email("jclouds@" + JCLOUDS_EXAMPLE)
            .comment("Hello test subdomain")
            .build();
     
View Full Code Here

            .data("10.0.0.1")
            .build();
     
      Set<Record> createRecords = ImmutableSet.of(createMXRecord, createARecord);
     
      CreateSubdomain createSubdomain1 = CreateSubdomain.builder()
            .name("dev." + NAME)
            .email("jclouds@" + NAME)
            .comment("Hello dev subdomain")
            .build();
     
      CreateSubdomain createSubdomain2 = CreateSubdomain.builder()
            .name("test." + NAME)
            .email("jclouds@" + NAME)
            .comment("Hello test subdomain")
            .build();
     
View Full Code Here

         return null;
      }
      else if (requestUrl.contains("import")) {
         Type type = new TypeLiteral<Map<String, Set<ParseDomain.RawDomain>>>() { }.getType();
         Map<String, Set<RawDomain>> domainMap = json.fromJson(response.toString(), type);
         Domain domain = Iterators.getOnlyElement(domainMap.get("domains").iterator()).getDomain();

         return domain;
      }
      else if (requestUrl.contains("export")) {
         Type type = new TypeLiteral<Map<String, String>>() { }.getType();
View Full Code Here

   public void testCreateDomain() throws Exception {
      CreateDomain createDomain = CreateDomain.builder().name(JCLOUDS_EXAMPLE).email("jclouds@" + JCLOUDS_EXAMPLE)
            .ttl(60000).build();

      Iterable<CreateDomain> createDomains = ImmutableList.of(createDomain);
      Domain domain = awaitComplete(api, api.getDomainApi().create(createDomains)).iterator().next();

      assertEquals(domain.getName(), JCLOUDS_EXAMPLE);
      assertEquals(domain.getEmail(), "jclouds@" + JCLOUDS_EXAMPLE);
      assertTrue(domain.getRecords().isEmpty());

      domainId = domain.getId();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.rackspace.clouddns.v1.functions.ParseJob

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.