/**
  * Publishes the draft version of product changes for each product code specified in the request, and changes the product publish state to "live".
  *
  * @param PublishingScope $publishScope Describes the scope of the product publishing update, which can include individual product codes or all pending changes.
  */
 public static function publishDraftsClient($dataViewMode, $publishScope)
 {
     $url = PublishingScopeUrl::publishDraftsUrl();
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url)->withBody($publishScope)->withHeader(Headers::X_VOL_DATAVIEW_MODE, $dataViewMode);
     return $mozuClient;
 }
 /**
  * Removes all details about a PublishSet from the product service. If the discardDrafts param is true, it also deletes the product drafts.
  *
  * @param bool $discardDrafts 
  * @param string $publishSetCode 
  */
 public static function deletePublishSetClient($publishSetCode, $discardDrafts = null)
 {
     $url = PublishingScopeUrl::deletePublishSetUrl($discardDrafts, $publishSetCode);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }