code: def update(gandi, resource, name, size, quantity, password, sshkey,
             upgrade, console, snapshotprofile, reset_mysql_password,
             background, delete_snapshotprofile):
      
  
      if snapshotprofile and delete_snapshotprofile:
          raise UsageError('You must not set snapshotprofile and '
                           'delete-snapshotprofile.')
  
      pwd = None
      if password:
          pwd = click.prompt('password', hide_input=True,
                             confirmation_prompt=True)
  
      if delete_snapshotprofile:
          snapshotprofile = ''
  
      result = gandi.paas.update(resource, name, size, quantity, pwd,
                                 sshkey, upgrade, console, snapshotprofile,
                                 reset_mysql_password, background)
      if background:
          gandi.pretty_echo(result)
  
      return result
docs: Update a PaaS instance.
  
      Resource can be a Hostname or an ID