code: def ReplaceOffer(self, offer_link, offer):
          
          CosmosClient.__ValidateResource(offer)
          path = base.GetPathFromLink(offer_link)
          offer_id = base.GetResourceIdOrFullNameFromLink(offer_link)
          return self.Replace(offer, path, 'offers', offer_id, None, None)
docs: Replaces an offer and returns it.
  
          :param str offer_link:
              The link to the offer.
          :param dict offer:
  
          :return:
              The replaced Offer.
          :rtype:
              dict