code: def updateNewCredentialValues(self):
          
  
          credentials_base = "disk.0.os.credentials."
          new_credentials_base = "disk.0.os.credentials.new."
  
          for elem in ['password', 'public_key', 'private_key']:
              if self.getValue(new_credentials_base + elem):
                  self.setValue(credentials_base + elem, self.getValue(new_credentials_base + elem))
                  self.delValue(new_credentials_base + elem)
docs: Set the new credential values to the credentials to use, and delete the new ones