code: public Observable<List<PatternRuleInfo>> getPatternsAsync(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter) {
          return getPatternsWithServiceResponseAsync(appId, versionId, getPatternsOptionalParameter).map(new Func1<ServiceResponse<List<PatternRuleInfo>>, List<PatternRuleInfo>>() {
              @Override
              public List<PatternRuleInfo> call(ServiceResponse<List<PatternRuleInfo>> response) {
                  return response.body();
              }
          });
      }
docs: Returns an application version's patterns.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param getPatternsOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the List&lt;PatternRuleInfo&gt; object