Package org.jclouds.googlecomputeengine.options.ListOptions

Examples of org.jclouds.googlecomputeengine.options.ListOptions.Builder


   public boolean supportsPortRangesForGroups() {
      return true;
   }

   private SecurityGroup groupForTagsInNetwork(Network nw, final Set <String> tags) {
      ListOptions opts = new Builder().filter("network eq .*/" + nw.getName());
      Set<Firewall> fws = api.getFirewallApiForProject(userProject.get()).list(opts).concat()
              .filter(new Predicate<Firewall>() {
                 @Override
                 public boolean apply(final Firewall input) {
                    // If any of the targetTags on the firewall apply or the firewall has no target tags...
View Full Code Here


      FirewallToIpPermission fwToPerm = new FirewallToIpPermission();

      GoogleComputeEngineApi api = createMock(GoogleComputeEngineApi.class);
      FirewallApi fwApi = createMock(FirewallApi.class);

      ListOptions options = new Builder().filter("network eq .*/jclouds-test");
      expect(api.getFirewallApiForProject(projectSupplier.get()))
              .andReturn(fwApi);
      expect(fwApi.list(options)).andReturn(PagedIterables.of(IterableWithMarkers.from(ImmutableSet.of(FirewallToIpPermissionTest.fwForTest()))));

      replay(api, fwApi);
View Full Code Here

   public boolean supportsPortRangesForGroups() {
      return true;
   }

   private SecurityGroup groupForTagsInNetwork(Network nw, final Set <String> tags) {
      ListOptions opts = new Builder().filter("network eq .*/" + nw.getName());
      Set<Firewall> fws = api.getFirewallApiForProject(userProject.get()).list(opts).concat()
              .filter(new Predicate<Firewall>() {
                 @Override
                 public boolean apply(final Firewall input) {
                    // If any of the targetTags on the firewall apply or the firewall has no target tags...
View Full Code Here

TOP

Related Classes of org.jclouds.googlecomputeengine.options.ListOptions.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.