code: public RuleEnvelope getRule(String ruleId) throws ApiException {
          ApiResponse<RuleEnvelope> resp = getRuleWithHttpInfo(ruleId);
          return resp.getData();
      }
docs: Get Rule
  Get a rule using the Rule ID
  @param ruleId Rule ID. (required)
  @return RuleEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body