Skip to content
Permalink
Browse files
Added new US-NJ location to ProfitBricks
  • Loading branch information
nacx committed May 22, 2017
1 parent 7aa033a commit 215415c3a53551011b623bca5d843a006b5ba3f1
Showing 3 changed files with 8 additions and 6 deletions.
@@ -58,13 +58,14 @@ public static Properties defaultProperties() {

properties.setProperty(PROPERTY_REGIONS, "de,us");
properties.setProperty(PROPERTY_REGION + ".de.zones", "de/fkb,de/fra");
properties.setProperty(PROPERTY_REGION + ".us.zones", "us/las,us/lasdev");
properties.setProperty(PROPERTY_ZONES, "de/fkb,de/fra,us/las,us/lasdev");
properties.setProperty(PROPERTY_ISO3166_CODES, "DE-BW,DE-HE,US_NV");
properties.setProperty(PROPERTY_REGION + ".us.zones", "us/ewr,us/las,us/lasdev");
properties.setProperty(PROPERTY_ZONES, "de/fkb,de/fra,us/ewr,us/las,us/lasdev");
properties.setProperty(PROPERTY_ISO3166_CODES, "DE-BW,DE-HE,US-NJ,US_NV");
properties.setProperty(PROPERTY_REGION + ".de." + ISO3166_CODES, "DE-BW,DE-HE");
properties.setProperty(PROPERTY_REGION + ".us." + ISO3166_CODES, "US-NV");
properties.setProperty(PROPERTY_REGION + ".us." + ISO3166_CODES, "US-NJ,US-NV");
properties.setProperty(PROPERTY_ZONE + ".de/fkb." + ISO3166_CODES, "DE-BW");
properties.setProperty(PROPERTY_ZONE + ".de/fra." + ISO3166_CODES, "DE-HE");
properties.setProperty(PROPERTY_ZONE + ".us/ewr." + ISO3166_CODES, "US-NJ");
properties.setProperty(PROPERTY_ZONE + ".us/las." + ISO3166_CODES, "US-NV");
properties.setProperty(PROPERTY_ZONE + ".us/lasdev." + ISO3166_CODES, "US-NV");

@@ -90,7 +91,7 @@ protected Builder() {
.apiMetadata(new ProfitBricksApiMetadata())
.homepage(URI.create("https://www.profitbricks.com/"))
.console(URI.create("https://my.profitbricks.com/dashboard/dcdr2"))
.iso3166Codes("DE-BW", "DE-HE", "US-NV")
.iso3166Codes("DE-BW", "DE-HE", "US-NJ", "US-NV")
.endpoint("https://api.profitbricks.com/cloudapi/v3/")
.defaultProperties(ProfitBricksProviderMetadata.defaultProperties());
}
@@ -20,6 +20,7 @@ public enum Location {

DE_FKB("de/fkb", "Germany, Karlsruhe"),
DE_FRA("de/fra", "Germany, Frankfurt (M)"),
US_EWR("us/ewr", "USA, Newark"),
US_LAS("us/las", "USA, Las Vegas"),
US_LASDEV("us/lasdev", "USA Developer cluster"),
UNRECOGNIZED("unrecognized", "Unrecognized location"),
@@ -32,7 +32,7 @@ public ProfitBricksTemplateBuilderLiveTest() {

@Override
protected Set<String> getIso3166Codes() {
return ImmutableSet.of("DE-BW", "DE-HE", "US-NV");
return ImmutableSet.of("DE-BW", "DE-HE", "US-NJ", "US-NV");
}

@Override

0 comments on commit 215415c

Please sign in to comment.