code: public Observable<ServiceResponse<Page<TldLegalAgreementInner>>> listAgreementsSinglePageAsync(final String name, final TopLevelDomainAgreementOption agreementOption) {
          if (name == null) {
              throw new IllegalArgumentException("Parameter name is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (agreementOption == null) {
              throw new IllegalArgumentException("Parameter agreementOption is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(agreementOption);
          return service.listAgreements(name, this.client.subscriptionId(), agreementOption, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<TldLegalAgreementInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<TldLegalAgreementInner>>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<PageImpl<TldLegalAgreementInner>> result = listAgreementsDelegate(response);
                          return Observable.just(new ServiceResponse<Page<TldLegalAgreementInner>>(result.body(), result.response()));
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Gets all legal agreements that user needs to accept before purchasing a domain.
  Gets all legal agreements that user needs to accept before purchasing a domain.
  
  ServiceResponse<PageImpl<TldLegalAgreementInner>> * @param name Name of the top-level domain.
  ServiceResponse<PageImpl<TldLegalAgreementInner>> * @param agreementOption Domain agreement options.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the PagedList&lt;TldLegalAgreementInner&gt; object wrapped in {@link ServiceResponse} if successful.