Skip to content

Commit

Permalink
docs: Update set_pii docstring (#3839)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdonald-verta committed May 30, 2023
1 parent 3914448 commit 0de74c3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion client/verta/verta/registry/entities/_model.py
Expand Up @@ -1090,13 +1090,33 @@ def _create_proto_internal(

def set_pii(self, pii):
"""
Note that you *MUST* update any live endpoints running this model in order to propagate this change.
Updates the PII value of this Registered Model.
Parameters
----------
pii : bool
``True`` indicates that the model ingests personally identifiable information.
Warnings
--------
You *MUST* update any live endpoints running this model in order to propagate this change.
A simple no-op update is sufficient.
"""
self._fetch_with_no_cache()
self._msg.pii = pii
self._update(self._msg, method="PUT")

def get_pii(self):
"""
Returns the PII value of this Registered Model.
Returns
-------
bool
``True`` indicates that the model ingests personally identifiable information.
"""
self._refresh_cache()
return self._msg.pii

Expand Down

2 comments on commit 0de74c3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker Tag: main-2023-05-30T23-28-34--0de74c3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Total coverage (common): 10.69
Total coverage (server): 33.7

Changed Files coverage (common): coverage 100
Changed Files coverage (server): 100

Please sign in to comment.