Package org.jclouds.googlecomputeengine.features

Examples of org.jclouds.googlecomputeengine.features.FirewallApi.list()


            return input != null && input.getNetwork().equals(network.getSelfLink());
         }
      };

      Set<AtomicReference<Operation>> operations = Sets.newHashSet();
      for (Firewall firewall : firewallApi.list().concat().filter(firewallBelongsToNetwork)) {
         operations.add(new AtomicReference<Operation>(firewallApi.delete(firewall.getName())));
      }

      for (AtomicReference<Operation> operation : operations) {
         retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval,
View Full Code Here


            return input != null && input.getNetwork().equals(network.getSelfLink());
         }
      };

      Set<AtomicReference<Operation>> operations = Sets.newHashSet();
      for (Firewall firewall : firewallApi.list().concat().filter(firewallBelongsToNetwork)) {
         operations.add(new AtomicReference<Operation>(firewallApi.delete(firewall.getName())));
      }

      for (AtomicReference<Operation> operation : operations) {
         retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval,
View Full Code Here

      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);
      Network.Builder builder = Network.builder();

      builder.id("abcd");
View Full Code Here

            return input != null && input.getNetwork().equals(network.getSelfLink());
         }
      };

      Set<AtomicReference<Operation>> operations = Sets.newHashSet();
      for (Firewall firewall : firewallApi.list().concat().filter(firewallBelongsToNetwork)) {
         operations.add(new AtomicReference<Operation>(firewallApi.delete(firewall.getName())));
      }

      for (AtomicReference<Operation> operation : operations) {
         retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval,
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.