Skip to content
Merged
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "3e11b6f", "specHash": "ad08e8c", "version": "4.3.0" }
{ "engineHash": "f9e2519", "specHash": "f8fb08c", "version": "4.3.0" }
6 changes: 3 additions & 3 deletions box_sdk_gen/managers/legal_hold_policy_assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CreateLegalHoldPolicyAssignmentAssignToTypeField(str, Enum):
FOLDER = 'folder'
USER = 'user'
OWNERSHIP = 'ownership'
INTERACTION = 'interaction'
INTERACTIONS = 'interactions'


class CreateLegalHoldPolicyAssignmentAssignTo(BaseObject):
Expand All @@ -70,7 +70,7 @@ class CreateLegalHoldPolicyAssignmentAssignTo(BaseObject):
'folder',
'user',
'ownership',
'interaction',
'interactions',
}

def __init__(
Expand Down Expand Up @@ -179,7 +179,7 @@ def create_legal_hold_policy_assignment(
extra_headers: Optional[Dict[str, Optional[str]]] = None
) -> LegalHoldPolicyAssignment:
"""
Assign a legal hold to a file, file version, folder, or user.
Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions.
:param policy_id: The ID of the policy to assign.
:type policy_id: str
:param assign_to: The item to assign the policy to.
Expand Down
12 changes: 10 additions & 2 deletions box_sdk_gen/schemas/legal_hold_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,31 @@ def __init__(
folder: Optional[int] = None,
file: Optional[int] = None,
file_version: Optional[int] = None,
ownership: Optional[int] = None,
interactions: Optional[int] = None,
**kwargs
):
"""
:param user: The number of users this policy is applied to., defaults to None
:param user: The number of users this policy is applied to with the `access` type assignment., defaults to None
:type user: Optional[int], optional
:param folder: The number of folders this policy is applied to., defaults to None
:type folder: Optional[int], optional
:param file: The number of files this policy is applied to., defaults to None
:type file: Optional[int], optional
:param file_version: The number of file versions this policy is applied to., defaults to None
:type file_version: Optional[int], optional
:param ownership: The number of users this policy is applied to with the `ownership` type assignment., defaults to None
:type ownership: Optional[int], optional
:param interactions: The number of users this policy is applied to with the `interactions` type assignment., defaults to None
:type interactions: Optional[int], optional
"""
super().__init__(**kwargs)
self.user = user
self.folder = folder
self.file = file
self.file_version = file_version
self.ownership = ownership
self.interactions = interactions


class LegalHoldPolicy(LegalHoldPolicyMini):
Expand Down Expand Up @@ -84,7 +92,7 @@ def __init__(
of being released.
* 'released' - the policy is no longer active., defaults to None
:type status: Optional[LegalHoldPolicyStatusField], optional
:param assignment_counts: Counts of assignments within this a legal hold policy by item type., defaults to None
:param assignment_counts: Counts of assignments within a legal hold policy by item type., defaults to None
:type assignment_counts: Optional[LegalHoldPolicyAssignmentCountsField], optional
:param created_at: When the legal hold policy object was created., defaults to None
:type created_at: Optional[DateTime], optional
Expand Down
2 changes: 1 addition & 1 deletion docs/box_sdk_gen/legal_hold_policy_assignments.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Returns a list of legal hold policy assignments.

## Assign legal hold policy

Assign a legal hold to a file, file version, folder, or user.
Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions.

This operation is performed by calling function `create_legal_hold_policy_assignment`.

Expand Down