code: public Observable<ServiceResponse<CertificateOperation>> createCertificateWithServiceResponseAsync(String vaultBaseUrl, String certificateName, CertificatePolicy certificatePolicy, CertificateAttributes certificateAttributes, Map<String, String> tags) {
          if (vaultBaseUrl == null) {
              throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null.");
          }
          if (certificateName == null) {
              throw new IllegalArgumentException("Parameter certificateName is required and cannot be null.");
          }
          if (this.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null.");
          }
          Validator.validate(certificatePolicy);
          Validator.validate(certificateAttributes);
          Validator.validate(tags);
          CertificateCreateParameters parameters = new CertificateCreateParameters();
          parameters.withCertificatePolicy(certificatePolicy);
          parameters.withCertificateAttributes(certificateAttributes);
          parameters.withTags(tags);
          String parameterizedHost = Joiner.on(", ").join("{vaultBaseUrl}", vaultBaseUrl);
          return service.createCertificate(certificateName, this.apiVersion(), this.acceptLanguage(), parameters, parameterizedHost, this.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<CertificateOperation>>>() {
                  @Override
                  public Observable<ServiceResponse<CertificateOperation>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<CertificateOperation> clientResponse = createCertificateDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Creates a new certificate.
  If this is the first version, the certificate resource is created. This operation requires the certificates/create permission.
  
  @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
  @param certificateName The name of the certificate.
  @param certificatePolicy The management policy for the certificate.
  @param certificateAttributes The attributes of the certificate (optional).
  @param tags Application specific metadata in the form of key-value pairs.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the CertificateOperation object