Package org.jclouds.ultradns.ws.domain

Examples of org.jclouds.ultradns.ws.domain.UpdatePoolRecord


   }

   @Test(dependsOnMethods = "addCNAMERecordsToPool")
   public void testUpdateRecord() {
      PoolRecordSpec spec = api(zoneName).getRecordSpec(cname2);
      UpdatePoolRecord update = UpdatePoolRecord.builder().from(spec)
                                                .rdata("www.baz.com.")
                                                .weight(98)
                                                .ttl(200).build();

      api(zoneName).updateRecord(cname2, update);
View Full Code Here


   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {

      StringBuilder xml = new StringBuilder();
      xml.append(format(HEADER, postParams.get("poolRecordID")));

      UpdatePoolRecord update = UpdatePoolRecord.class.cast(postParams.get("update"));

      xml.append("<pointsTo>").append(update.getRData()).append("</pointsTo>");
      xml.append("<priority>").append(update.getPriority()).append("</priority>");
      xml.append("<failOverDelay>").append(update.getFailOverDelay()).append("</failOverDelay>");
      xml.append("<ttl>").append(update.getTTL()).append("</ttl>");
      xml.append("<weight>").append(update.getWeight()).append("</weight>");
      xml.append("<mode>").append(update.getMode()).append("</mode>");
      xml.append("<threshold>").append(update.getThreshold()).append("</threshold>");

      xml.append(FOOTER);
      return (R) request.toBuilder().payload(xml.toString()).build();
   }
View Full Code Here

   }

   @Test(dependsOnMethods = "addCNAMERecordsToPool")
   public void testUpdateRecord() {
      PoolRecordSpec spec = api(zoneName).getRecordSpec(cname2);
      UpdatePoolRecord update = UpdatePoolRecord.builder().from(spec)
                                                .rdata("www.baz.com.")
                                                .weight(98)
                                                .ttl(200).build();

      api(zoneName).updateRecord(cname2, update);
View Full Code Here

   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {

      StringBuilder xml = new StringBuilder();
      xml.append(format(HEADER, postParams.get("poolRecordID")));

      UpdatePoolRecord update = UpdatePoolRecord.class.cast(postParams.get("update"));

      xml.append("<pointsTo>").append(update.getRData()).append("</pointsTo>");
      xml.append("<priority>").append(update.getPriority()).append("</priority>");
      xml.append("<failOverDelay>").append(update.getFailOverDelay()).append("</failOverDelay>");
      xml.append("<ttl>").append(update.getTTL()).append("</ttl>");
      xml.append("<weight>").append(update.getWeight()).append("</weight>");
      xml.append("<mode>").append(update.getMode()).append("</mode>");
      xml.append("<threshold>").append(update.getThreshold()).append("</threshold>");

      xml.append(FOOTER);
      return (R) request.toBuilder().payload(xml.toString()).build();
   }
View Full Code Here

   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {

      StringBuilder xml = new StringBuilder();
      xml.append(format(HEADER, postParams.get("poolRecordID")));

      UpdatePoolRecord update = UpdatePoolRecord.class.cast(postParams.get("update"));

      xml.append("<pointsTo>").append(update.getRData()).append("</pointsTo>");
      xml.append("<priority>").append(update.getPriority()).append("</priority>");
      xml.append("<failOverDelay>").append(update.getFailOverDelay()).append("</failOverDelay>");
      xml.append("<ttl>").append(update.getTTL()).append("</ttl>");
      xml.append("<weight>").append(update.getWeight()).append("</weight>");
      xml.append("<mode>").append(update.getMode()).append("</mode>");
      xml.append("<threshold>").append(update.getThreshold()).append("</threshold>");

      xml.append(FOOTER);
      return (R) request.toBuilder().payload(xml.toString()).build();
   }
View Full Code Here

   }

   @Test(dependsOnMethods = "addCNAMERecordsToPool")
   public void testUpdateRecord() {
      PoolRecordSpec spec = api(zoneName).getRecordSpec(cname2);
      UpdatePoolRecord update = UpdatePoolRecord.builder().from(spec)
                                                .rdata("www.baz.com.")
                                                .weight(98)
                                                .ttl(200).build();

      api(zoneName).updateRecord(cname2, update);
View Full Code Here

TOP

Related Classes of org.jclouds.ultradns.ws.domain.UpdatePoolRecord

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.