'Initiates a virtual IP swap between the staging and production
deployment environments for a service. If the service is currently
running in the staging environment, it will be swapped to the
production environment. If it is running in the production
environment, it will be swapped to staging.
service_name:
Name of the hosted service.
production:
The name of the production deployment.
source_deployment:
The name of the source deployment.'

def swap_deployment(self, service_name, production, source_deployment):

    _validate_not_none('service_name', service_name)
    _validate_not_none('production', production)
    _validate_not_none('source_deployment', source_deployment)
    return self._perform_post(self._get_hosted_service_path(service_name), _XmlSerializer.swap_deployment_to_xml(production, source_deployment), async=True)
