code: private void bosUploadDocument(String bucketName, String objectName, File file, String endpoint) {
          BosClientConfiguration config = new BosClientConfiguration(this.config);
          config.setEndpoint(endpoint);
          BosClient bosClient = new BosClient(config);
  
          PutObjectResponse response = bosClient.putObject(bucketName, objectName, file);
      }
docs: publish a Document.
  
  @param bucketName  The bucket name response from register.
  @param objectName  The object name response from register.
  @param file  The Document file need to be uploaded.
  @param endpoint  The bos endpoint response from register.
  
  @return A PublishDocumentResponse object containing the information returned by Document.