code: def replace_subscription(self, subscription, subscription_id=None):
          
          route_values = {}
          if subscription_id is not None:
              route_values['subscriptionId'] = self._serialize.url('subscription_id', subscription_id, 'str')
          content = self._serialize.body(subscription, 'Subscription')
          response = self._send(http_method='PUT',
                                location_id='fc50d02a-849f-41fb-8af1-0a5216103269',
                                version='5.0',
                                route_values=route_values,
                                content=content)
          return self._deserialize('Subscription', response)
docs: ReplaceSubscription.
          Update a subscription. <param name="subscriptionId">ID for a subscription that you wish to update.</param>
          :param :class:`<Subscription> <azure.devops.v5_0.service_hooks.models.Subscription>` subscription:
          :param str subscription_id:
          :rtype: :class:`<Subscription> <azure.devops.v5_0.service_hooks.models.Subscription>`