Skip to content

Commit

Permalink
docs: lot of guides (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4355

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Morgan Leroi <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
Co-authored-by: Thomas Raffray <[email protected]>
  • Loading branch information
5 people committed Jan 22, 2025
1 parent a850bab commit 664fecc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7022,7 +7022,10 @@ public <T> ReplaceAllObjectsResponse replaceAllObjects(
public String generateSecuredApiKey(@Nonnull String parentApiKey, @Nonnull SecuredApiKeyRestrictions restrictions) throws Exception {
Map<String, String> restrictionsMap = new HashMap<>();
if (restrictions.getFilters() != null) restrictionsMap.put("filters", StringUtils.paramToString(restrictions.getFilters()));
if (restrictions.getValidUntil() != 0) restrictionsMap.put("validUntil", StringUtils.paramToString(restrictions.getValidUntil()));
if (restrictions.getValidUntil() != null && restrictions.getValidUntil() != 0) restrictionsMap.put(
"validUntil",
StringUtils.paramToString(restrictions.getValidUntil())
);
if (restrictions.getRestrictIndices() != null) restrictionsMap.put(
"restrictIndices",
StringUtils.paramToString(restrictions.getRestrictIndices())
Expand Down

0 comments on commit 664fecc

Please sign in to comment.