Package org.jclouds.abiquo.domain.network.options

Examples of org.jclouds.abiquo.domain.network.options.IpOptions$Builder


      checkFilters(request);
   }

   public void testListExternalIpsWithOptions() throws SecurityException, NoSuchMethodException, IOException {
      IpOptions options = IpOptions.builder().startWith(10).build();
      Invokable<?, ?> method = method(InfrastructureApi.class, "listExternalIps", VLANNetworkDto.class, IpOptions.class);
      GeneratedHttpRequest request = processor.apply(Invocation.create(method,
            ImmutableList.<Object> of(NetworkResources.externalNetworkPut(), options)));

      assertRequestLineEquals(request,
View Full Code Here


      checkFilters(request);
   }

   public void testListUnmanagedIpsWithOptions() throws SecurityException, NoSuchMethodException, IOException {
      IpOptions options = IpOptions.builder().startWith(10).build();
      Invokable<?, ?> method = method(InfrastructureApi.class, "listUnmanagedIps", VLANNetworkDto.class,
            IpOptions.class);
      GeneratedHttpRequest request = processor.apply(Invocation.create(method,
            ImmutableList.<Object> of(NetworkResources.unmanagedNetworkPut(), options)));
View Full Code Here

    *      Resource#
    *      VirtualDatacenterResource-ListofPublicIPstopurchasebyVirtualDatacenter
    *      </a>
    */
   public List<PublicIp> listAvailablePublicIps() {
      IpOptions options = IpOptions.builder().build();

      PublicIpsDto ips = context.getApi().getCloudApi().listAvailablePublicIps(target, options);

      return wrap(context, PublicIp.class, ips.getCollection());
   }
View Full Code Here

    *      Resource#
    *      VirtualDatacenterResource-ListofpurchasedPublicIPsbyVirtualDatacenter
    *      </a>
    */
   public List<PublicIp> listPurchasedPublicIps() {
      IpOptions options = IpOptions.builder().build();

      PublicIpsDto ips = context.getApi().getCloudApi().listPurchasedPublicIps(target, options);

      return wrap(context, PublicIp.class, ips.getCollection());
   }
View Full Code Here

   }

   // Override to apply the filter in the server side
   @Override
   public List<PrivateIp> listUnusedIps() {
      IpOptions options = IpOptions.builder().disablePagination().free(true).build();
      PrivateIpsDto ips = context.getApi().getCloudApi().listPrivateNetworkIps(target, options);
      return wrap(context, PrivateIp.class, ips.getCollection());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.network.options.IpOptions$Builder

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.