def METHOD_NAME(self, password):
    if not self.pk:
        raise ValueError("JamfInstance must have a PK")
    self.password = encrypt_str(password, field="password", model="jamf.jamfinstance", pk=self.pk)