Feature: switch visibility with update_repo_settings
#2537
Labels
enhancement
New feature or request
update_repo_settings
#2537
Follow-up PR after #2502.
Now that we have a generic
update_repo_settings
, we can add the option to switch visibility status of a repo. This would be a drop-in replacement forupdate_repo_visibility
:TODO:
private
attribute toupdate_repo_settings
gated
andprivate
attributes optional (default to None)update_repo_settings
inputs => eithergated
is passed, orprivate
, or both. If both gated and private are None, raise a ValueError.gated
andprivate
to the request payload only if not Noneupdate_repo_settings
docstringupdate_repo_visibility
in docs@_deprecate_method
decorator toupdate_repo_visibility
(will be removed in 0.29.x)The text was updated successfully, but these errors were encountered: