google.appengine.api.datastore_types.ResolveAppId

Validates the application ID, providing a default.

app The app ID argument value to be validated.

The value of the app, or the substituted default. Always a non-empty string.

BadArgumentError if the value is empty or not a string.