Package org.jclouds.cloudsigma2.options

Examples of org.jclouds.cloudsigma2.options.PaginationOptions


            .meta(meta)
            .name("test_acc_full_server")
            .nics(ImmutableList.of(
                  new NIC.Builder()
                        .firewallPolicy(null)
                        .ipV4Configuration(new IPConfiguration(IPConfigurationType.DHCP, null))
                        .ipV6Configuration(null)
                        .mac("22:a7:a0:0d:43:48")
                        .model(Model.VIRTIO)
                        .runtime(null)
                        .vlan(null)
View Full Code Here


            .meta(meta)
            .name("test_acc_full_server")
            .nics(ImmutableList.of(
                  new NIC.Builder()
                        .firewallPolicy(null)
                        .ipV4Configuration(new IPConfiguration(IPConfigurationType.DHCP, null))
                        .ipV6Configuration(null)
                        .mac("22:a7:a0:0d:43:48")
                        .model(Model.VIRTIO)
                        .runtime(null)
                        .vlan(null)
View Full Code Here

   }

   @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

   @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

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

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

                  .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

   @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

   }

   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof LibraryDrive, "this binder is only valid for LibraryDrive!");
      LibraryDrive create = LibraryDrive.class.cast(input);
      JsonObject profileInfoJsonObject = createDriveJsonObjectFunction.apply(create);
      request.setPayload(profileInfoJsonObject.toString());
      request.getPayload().getContentMetadata().setContentType(MediaType.APPLICATION_JSON);
      return request;
   }
View Full Code Here

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

      LibraryDrive result = api.getLibraryDrive(uuid);
      assertNotNull(result);
   }
View Full Code Here

   private ServerInfo input;
   private JsonObject expected = new JsonObject();

   @BeforeMethod
   public void setUp() throws Exception {
      Owner owner = new Owner.Builder()
            .resourceUri(new URI("/api/2.0/user/5b4a69a3-8e78-4c45-a8ba-8b13f0895e23/"))
            .uuid("5b4a69a3-8e78-4c45-a8ba-8b13f0895e23")
            .build();

      Map<String, String> meta = Maps.newHashMap();
View Full Code Here

TOP

Related Classes of org.jclouds.cloudsigma2.options.PaginationOptions

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.