code: public ProductionOrStagingEndpointInfo publish(UUID appId, ApplicationPublishObject applicationPublishObject) {
          return publishWithServiceResponseAsync(appId, applicationPublishObject).toBlocking().single().body();
      }
docs: Publishes a specific version of the application.
  
  @param appId The application ID.
  @param applicationPublishObject The application publish object. The region is the target region that the application is published to.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ProductionOrStagingEndpointInfo object if successful.