code: public ApiResponse<RulesEnvelope> getUserRulesWithHttpInfo(String userId, Boolean excludeDisabled, Integer count, Integer offset, String owner) throws ApiException {
          com.squareup.okhttp.Call call = getUserRulesValidateBeforeCall(userId, excludeDisabled, count, offset, owner, null, null);
          Type localVarReturnType = new TypeToken<RulesEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get User Rules
  Retrieve User&#39;s Rules
  @param userId User ID. (required)
  @param excludeDisabled Exclude disabled rules in the result. (optional)
  @param count Desired count of items in the result set. (optional)
  @param offset Offset for pagination. (optional)
  @param owner Rule owner (optional)
  @return ApiResponse&lt;RulesEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body