code: public Observable<ProductionOrStagingEndpointInfo> publishAsync(UUID appId, ApplicationPublishObject applicationPublishObject) {
          return publishWithServiceResponseAsync(appId, applicationPublishObject).map(new Func1<ServiceResponse<ProductionOrStagingEndpointInfo>, ProductionOrStagingEndpointInfo>() {
              @Override
              public ProductionOrStagingEndpointInfo call(ServiceResponse<ProductionOrStagingEndpointInfo> response) {
                  return response.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
  @return the observable to the ProductionOrStagingEndpointInfo object