code: public SightPublish setPublishStatus(long sightId, SightPublish sightPublish) throws SmartsheetException {
          Util.throwIfNull(sightPublish);
          return this.updateResource("sights/" + sightId + "/publish", SightPublish.class, sightPublish);
      }
docs: Sets the publish status of a Sight and returns the new status, including the URLs of any enabled publishing.
  
  It mirrors to the following Smartsheet REST API method: POST /sights/{sightId}/publish
  
  @param sightId the Id of the Sight
  @param sightPublish the SightPublish object containing publish status
  @return the Sight's publish status.
  @throws IllegalArgumentException if any argument is null or empty string
  @throws InvalidRequestException if there is any problem with the REST API request
  @throws AuthorizationException if there is any problem with  the REST API authorization (access token)
  @throws ResourceNotFoundException if the resource cannot be found
  @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
  @throws SmartsheetException if there is any other error during the operation