return id;
}
-void apiCheckNameAllowedCharacters(const string& label) {
- if (label.find_first_not_of("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_/.-") != std::string::npos)
- throw ApiException("Label '"+label+"' contains unsupported characters");
+void apiCheckNameAllowedCharacters(const string& name) {
+ if (name.find_first_not_of("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_/.-") != std::string::npos)
+ throw ApiException("Name '"+name+"' contains unsupported characters");
}
// helpers
DNSName apiZoneIdToName(const string& id);
string apiZoneNameToId(const DNSName& name);
-void apiCheckNameAllowedCharacters(const string& label);
+void apiCheckNameAllowedCharacters(const string& name);
DNSName apiNameToDNSName(const string& name);
// To be provided by product code.