Package org.jclouds.ultradns.ws.domain

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


         .payload(payloadFromResourceWithContentType("/directionalrecords.xml", "application/xml")).build();

   public void testListRecordsByGroupCoordinatesWhenResponseIs2xx() {
      UltraDNSWSApi success = requestSendsResponse(listRecordsByGroupCoordinates, listRecordsByGroupCoordinatesResponse);

      DirectionalGroupCoordinates group = DirectionalGroupCoordinates.builder()
                                                                     .zoneName("jclouds.org.")
                                                                     .recordName("www.jclouds.org.")
                                                                     .recordType(1)
                                                                     .groupName("EU-www.jclouds.org.").build();
      assertEquals(
View Full Code Here


   private static final String TEMPLATE = "<v01:getDirectionalDNSRecordsForGroup><groupName>{groupName}</groupName><hostName>{recordName}</hostName><zoneName>{zoneName}</zoneName><poolRecordType>{recordType}</poolRecordType></v01:getDirectionalDNSRecordsForGroup>";

   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object in) {
      DirectionalGroupCoordinates group = DirectionalGroupCoordinates.class.cast(in);
      ImmutableMap<String, Object> variables = ImmutableMap.<String, Object> builder()
                                                           .put("zoneName", group.getZoneName())
                                                           .put("recordName", group.getRecordName())
                                                           .put("recordType", group.getRecordType())
                                                           .put("groupName", group.getGroupName()).build();
      return (R) request.toBuilder().payload(UriTemplates.expand(TEMPLATE, variables)).build();
   }
View Full Code Here

         .payload(payloadFromResourceWithContentType("/directionalrecords.xml", "application/xml")).build();

   public void testListRecordsByGroupCoordinatesWhenResponseIs2xx() {
      UltraDNSWSApi success = requestSendsResponse(listRecordsByGroupCoordinates, listRecordsByGroupCoordinatesResponse);

      DirectionalGroupCoordinates group = DirectionalGroupCoordinates.builder()
                                                                     .zoneName("jclouds.org.")
                                                                     .recordName("www.jclouds.org.")
                                                                     .recordType(1)
                                                                     .groupName("EU-www.jclouds.org.").build();
      assertEquals(
View Full Code Here

   private static final String TEMPLATE = "<v01:getDirectionalDNSRecordsForGroup><groupName>{groupName}</groupName><hostName>{recordName}</hostName><zoneName>{zoneName}</zoneName><poolRecordType>{recordType}</poolRecordType></v01:getDirectionalDNSRecordsForGroup>";

   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object in) {
      DirectionalGroupCoordinates group = DirectionalGroupCoordinates.class.cast(in);
      ImmutableMap<String, Object> variables = ImmutableMap.<String, Object> builder()
                                                           .put("zoneName", group.getZoneName())
                                                           .put("recordName", group.getRecordName())
                                                           .put("recordType", group.getRecordType())
                                                           .put("groupName", group.getGroupName()).build();
      return (R) request.toBuilder().payload(UriTemplates.expand(TEMPLATE, variables)).build();
   }
View Full Code Here

         .payload(payloadFromResourceWithContentType("/directionalrecords.xml", "application/xml")).build();

   public void testListRecordsByGroupCoordinatesWhenResponseIs2xx() {
      UltraDNSWSApi success = requestSendsResponse(listRecordsByGroupCoordinates, listRecordsByGroupCoordinatesResponse);

      DirectionalGroupCoordinates group = DirectionalGroupCoordinates.builder()
                                                                     .zoneName("jclouds.org.")
                                                                     .recordName("www.jclouds.org.")
                                                                     .recordType(1)
                                                                     .groupName("EU-www.jclouds.org.").build();
      assertEquals(
View Full Code Here

   private static final String TEMPLATE = "<v01:getDirectionalDNSRecordsForGroup><groupName>{groupName}</groupName><hostName>{recordName}</hostName><zoneName>{zoneName}</zoneName><poolRecordType>{recordType}</poolRecordType></v01:getDirectionalDNSRecordsForGroup>";

   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object in) {
      DirectionalGroupCoordinates group = DirectionalGroupCoordinates.class.cast(in);
      ImmutableMap<String, Object> variables = ImmutableMap.<String, Object> builder()
                                                           .put("zoneName", group.getZoneName())
                                                           .put("recordName", group.getRecordName())
                                                           .put("recordType", group.getRecordType())
                                                           .put("groupName", group.getGroupName()).build();
      return (R) request.toBuilder().payload(UriTemplates.expand(TEMPLATE, variables)).build();
   }
View Full Code Here

TOP

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

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.