'Write a Credentials to the datastore.
Args:
credentials: Credentials, the credentials to store.'

def locked_put(self, credentials):

    args = {self.key_name: self.key_value}
    entity = self.model_class(**args)
    setattr(entity, self.property_name, credentials)
    entity.save()
