Package org.jclouds.domain

Examples of org.jclouds.domain.LocationBuilder.metadata()


   @Override
   public Location apply(final VirtualDatacenter vdc) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(vdc.getId().toString());
      builder.description(vdc.getName());
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.ZONE);
      builder.iso3166Codes(ImmutableSet.<String> of());

      Datacenter parent = regionMap.get().get(vdc.unwrap().getIdFromLink(ParentLinkName.DATACENTER));
      builder.parent(datacenterToLocation.apply(parent));
View Full Code Here


   @Override
   public Location apply(final Datacenter datacenter) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(datacenter.getId().toString());
      builder.description(datacenter.getName() + " [" + datacenter.getLocation() + "]");
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.REGION);
      builder.iso3166Codes(ImmutableSet.<String> of());

      builder.parent(new LocationBuilder().scope(LocationScope.PROVIDER).id("abiquo").description("abiquo").build());
View Full Code Here

   @Override
   public Location apply(final VirtualDatacenter vdc) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(vdc.getId().toString());
      builder.description(vdc.getName());
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.ZONE);
      builder.iso3166Codes(ImmutableSet.<String> of());

      Datacenter parent = regionMap.get().get(vdc.unwrap().getIdFromLink(ParentLinkName.DATACENTER));
      builder.parent(datacenterToLocation.apply(parent));
View Full Code Here

   @Override
   public Location apply(final Datacenter datacenter) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(datacenter.getId().toString());
      builder.description(datacenter.getName() + " [" + datacenter.getLocation() + "]");
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.REGION);
      builder.iso3166Codes(ImmutableSet.<String> of());

      builder.parent(new LocationBuilder().scope(LocationScope.PROVIDER).id("abiquo").description("abiquo").build());
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.