def create_subscription(self, subscription):
        """CreateSubscription.
        Create a subscription.
        :param :class:`<Subscription> <azure.devops.v5_0.service_hooks.models.Subscription>` subscription: Subscription to be created.
        :rtype: :class:`<Subscription> <azure.devops.v5_0.service_hooks.models.Subscription>`
        """
        content = self._serialize.body(subscription, 'Subscription')
        response = self._send(http_method='POST',
                              location_id='fc50d02a-849f-41fb-8af1-0a5216103269',
                              version='5.0',
                              content=content)
        return self._deserialize('Subscription', response)