code: public Request<List<DeviceCredentials>> list(DeviceCredentialsFilter filter) {
          HttpUrl.Builder builder = baseUrl
                  .newBuilder()
                  .addPathSegments("api/v2/device-credentials");
          if (filter != null) {
              for (Map.Entry<String, Object> e : filter.getAsMap().entrySet()) {
                  builder.addQueryParameter(e.getKey(), String.valueOf(e.getValue()));
              }
          }
          String url = builder.build().toString();
          CustomRequest<List<DeviceCredentials>> request = new CustomRequest<>(client, url, "GET", new TypeReference<List<DeviceCredentials>>() {
          });
          request.addHeader("Authorization", "Bearer " + apiToken);
          return request;
      }
docs: Request all the Device Credentials. A token with scope read:device_credentials is needed.
  See https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials
  
  @param filter the filter to use. Can be null.
  @return a Request to execute.