@Override public boolean apply(Zone input) { return input.getName().equals(zoneName); } });
public Zone findZoneMatchingName(String name) { if (zones == null) zones = getZoneClient().listZones(); for (Zone z : zones) if (name.equals(z.getName())) return z; return null; }
@Override public Location apply(Zone zone) { return new LocationBuilder().scope(LocationScope.ZONE).metadata(ImmutableMap.<String, Object> of()) .description(zone.getName()).id(zone.getId()) .parent(Iterables.getOnlyElement(provider.get())).build(); }
@Override public Location apply(Zone zone) { return new LocationBuilder().scope(LocationScope.ZONE).metadata(ImmutableMap.<String, Object> of()) .description(zone.getName()).id(zone.getId()) .parent(Iterables.getOnlyElement(provider.get())).build(); }
@Override public Location apply(Zone zone) { return new LocationBuilder().scope(LocationScope.ZONE).metadata(ImmutableMap.<String, Object> of()) .description(zone.getName()).id(zone.getId()) .parent(Iterables.getOnlyElement(provider.get())).build(); }
assertEquals(zone, client.getZoneClient().getZone(zone.getId())); assert zone.getId() != null : zone; assert zone.getName() != null : zone; assert zone.getNetworkType() != null && zone.getNetworkType() != NetworkType.UNRECOGNIZED : zone; switch (zone.getNetworkType()) {
assertEquals(zone, client.getZoneApi().getZone(zone.getId())); assert zone.getId() != null : zone; assert zone.getName() != null : zone; assert zone.getNetworkType() != null && zone.getNetworkType() != NetworkType.UNRECOGNIZED : zone; switch (zone.getNetworkType()) {
public T fromZone(Zone in) { return this .id(in.getId()) .description(in.getDescription()) .displayText(in.getDisplayText()) .DNS(in.getDNS()) .domain(in.getDomain()) .domainId(in.getDomainId()) .guestCIDRAddress(in.getGuestCIDRAddress()) .internalDNS(in.getInternalDNS()) .name(in.getName()) .networkType(in.getNetworkType()) .VLAN(in.getVLAN()) .securityGroupsEnabled(in.isSecurityGroupsEnabled()) .allocationState(in.getAllocationState()) .dhcpProvider(in.getDhcpProvider()) .zoneToken(in.getZoneToken()); } }
public T fromZone(Zone in) { return this .id(in.getId()) .description(in.getDescription()) .displayText(in.getDisplayText()) .DNS(in.getDNS()) .domain(in.getDomain()) .domainId(in.getDomainId()) .guestCIDRAddress(in.getGuestCIDRAddress()) .internalDNS(in.getInternalDNS()) .name(in.getName()) .networkType(in.getNetworkType()) .VLAN(in.getVLAN()) .securityGroupsEnabled(in.isSecurityGroupsEnabled()) .allocationState(in.getAllocationState()) .dhcpProvider(in.getDhcpProvider()) .zoneToken(in.getZoneToken()); } }
public T fromZone(Zone in) { return this .id(in.getId()) .description(in.getDescription()) .displayText(in.getDisplayText()) .DNS(in.getDNS()) .domain(in.getDomain()) .domainId(in.getDomainId()) .guestCIDRAddress(in.getGuestCIDRAddress()) .internalDNS(in.getInternalDNS()) .name(in.getName()) .networkType(in.getNetworkType()) .VLAN(in.getVLAN()) .securityGroupsEnabled(in.isSecurityGroupsEnabled()) .allocationState(in.getAllocationState()) .dhcpProvider(in.getDhcpProvider()) .zoneToken(in.getZoneToken()) .tags(in.getTags()); } }