def _StopVm(holder, client, instance_ref):
    'Stop the Virtual Machine.'
    operation = client.apitools_client.instances.Stop(client.messages.ComputeInstancesStopRequest(**instance_ref.AsDict()))
    operation_ref = holder.resources.Parse(operation.selfLink, collection='compute.zoneOperations')
    operation_poller = poller.Poller(client.apitools_client.instances)
    return waiter.WaitFor(operation_poller, operation_ref, 'Stopping instance [{0}]'.format(instance_ref.Name()))
Stop the Virtual Machine.
def _StopVm(holder, client, instance_ref):
    
    operation = client.apitools_client.instances.Stop(client.messages.ComputeInstancesStopRequest(**instance_ref.AsDict()))
    operation_ref = holder.resources.Parse(operation.selfLink, collection='compute.zoneOperations')
    operation_poller = poller.Poller(client.apitools_client.instances)
    return waiter.WaitFor(operation_poller, operation_ref, 'Stopping instance [{0}]'.format(instance_ref.Name()))