Examples of IpInfo


Examples of org.jclouds.cloudsigma2.domain.IPInfo

   @Test
   public void testEditIP() throws Exception {
      Map<String, String> meta = Maps.newHashMap();
      meta.put("test", "test data");

      IPInfo ip = new IPInfo.Builder()
            .meta(meta)
            .build();

      if (api.listIPs().size() > 0) {
         checkIP(ip, api.editIP(api.listIPs().concat().get(0).getUuid(), ip));
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.IPInfo

                  .build(),
            responseBuilder()
                  .payload(payloadFromResourceWithContentType("/ips-single.json", MediaType.APPLICATION_JSON))
                  .build());

      IPInfo result = api.getIPInfo(uuid);
      assertNotNull(result);
   }
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.IPInfo

                  .build(),
            responseBuilder()
                  .payload(payloadFromResourceWithContentType("/ips-single.json", MediaType.APPLICATION_JSON))
                  .build());

      IPInfo result = api.editIP(uuid, new IPInfo.Builder().meta(meta).build());
      assertNotNull(result);
   }
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.IPInfo

   }

   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof IPInfo, "this binder is only valid for IPInfo!");
      IPInfo create = IPInfo.class.cast(input);
      JsonObject ipJsonObject = ipInfoJsonObjectFunction.apply(create);

      request.setPayload(ipJsonObject.toString());
      request.getPayload().getContentMetadata().setContentType(MediaType.APPLICATION_JSON);
      return request;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.