Skip to content

Commit 9d4542f

Browse files
box-sdk-buildbox-sdk-build
andauthored
feat: add is_collaborated_content_available_when_owner_inactive property (box/box-openapi#613) (#1537)
Co-authored-by: box-sdk-build <box-sdk-build@box.com>
1 parent 94120f3 commit 9d4542f

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "2cee311", "specHash": "2aeae37", "version": "10.13.0" }
1+
{ "engineHash": "7146a71", "specHash": "86fcc6c", "version": "10.13.0" }

box_sdk_gen/managers/users.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ def update_user_by_id(
499499
is_exempt_from_device_limits: Optional[bool] = None,
500500
is_exempt_from_login_verification: Optional[bool] = None,
501501
is_password_reset_required: Optional[bool] = None,
502+
is_collaborated_content_available_when_owner_inactive: Optional[bool] = None,
502503
status: Optional[UpdateUserByIdStatus] = None,
503504
space_amount: Optional[int] = None,
504505
notification_email: Union[
@@ -564,6 +565,10 @@ def update_user_by_id(
564565
:type is_exempt_from_login_verification: Optional[bool], optional
565566
:param is_password_reset_required: Whether the user is required to reset their password., defaults to None
566567
:type is_password_reset_required: Optional[bool], optional
568+
:param is_collaborated_content_available_when_owner_inactive: Whether collaborators can access content owned by the user when
569+
the user is inactive. This setting preserves existing
570+
collaborator access and does not grant new permissions., defaults to None
571+
:type is_collaborated_content_available_when_owner_inactive: Optional[bool], optional
567572
:param status: The user's account status., defaults to None
568573
:type status: Optional[UpdateUserByIdStatus], optional
569574
:param space_amount: The user’s total available space in bytes. Set this to `-1` to
@@ -616,6 +621,9 @@ def update_user_by_id(
616621
'is_exempt_from_device_limits': is_exempt_from_device_limits,
617622
'is_exempt_from_login_verification': is_exempt_from_login_verification,
618623
'is_password_reset_required': is_password_reset_required,
624+
'is_collaborated_content_available_when_owner_inactive': (
625+
is_collaborated_content_available_when_owner_inactive
626+
),
619627
'status': status,
620628
'space_amount': space_amount,
621629
'notification_email': notification_email,

box_sdk_gen/schemas/user_full.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def __init__(
7474
is_external_collab_restricted: Optional[bool] = None,
7575
is_exempt_from_device_limits: Optional[bool] = None,
7676
is_exempt_from_login_verification: Optional[bool] = None,
77+
is_collaborated_content_available_when_owner_inactive: Optional[bool] = None,
7778
enterprise: Optional[UserFullEnterpriseField] = None,
7879
my_tags: Optional[List[str]] = None,
7980
hostname: Optional[str] = None,
@@ -118,6 +119,10 @@ def __init__(
118119
:type is_exempt_from_device_limits: Optional[bool], optional
119120
:param is_exempt_from_login_verification: Whether the user must use two-factor authentication., defaults to None
120121
:type is_exempt_from_login_verification: Optional[bool], optional
122+
:param is_collaborated_content_available_when_owner_inactive: Whether collaborators can access content owned by the user when the
123+
user is inactive. This setting preserves existing collaborator access
124+
and does not grant new permissions., defaults to None
125+
:type is_collaborated_content_available_when_owner_inactive: Optional[bool], optional
121126
:param my_tags: Tags for all files and folders owned by the user. Values returned
122127
will only contain tags that were set by the requester., defaults to None
123128
:type my_tags: Optional[List[str]], optional
@@ -194,6 +199,9 @@ def __init__(
194199
self.is_external_collab_restricted = is_external_collab_restricted
195200
self.is_exempt_from_device_limits = is_exempt_from_device_limits
196201
self.is_exempt_from_login_verification = is_exempt_from_login_verification
202+
self.is_collaborated_content_available_when_owner_inactive = (
203+
is_collaborated_content_available_when_owner_inactive
204+
)
197205
self.enterprise = enterprise
198206
self.my_tags = my_tags
199207
self.hostname = hostname

docs/users.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ client.users.update_user_by_id(user.id, name=updated_user_name)
257257
- Whether the user must use two-factor authentication.
258258
- is_password_reset_required `Optional[bool]`
259259
- Whether the user is required to reset their password.
260+
- is_collaborated_content_available_when_owner_inactive `Optional[bool]`
261+
- Whether collaborators can access content owned by the user when the user is inactive. This setting preserves existing collaborator access and does not grant new permissions.
260262
- status `Optional[UpdateUserByIdStatus]`
261263
- The user's account status.
262264
- space_amount `Optional[int]`

0 commit comments

Comments
 (0)