diff --git a/.codegen.json b/.codegen.json index b495eef1..c441e106 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "3e11b6f", "specHash": "ad08e8c", "version": "4.3.0" } +{ "engineHash": "f9e2519", "specHash": "f8fb08c", "version": "4.3.0" } diff --git a/box_sdk_gen/managers/legal_hold_policy_assignments.py b/box_sdk_gen/managers/legal_hold_policy_assignments.py index 3e681272..2653ffd8 100644 --- a/box_sdk_gen/managers/legal_hold_policy_assignments.py +++ b/box_sdk_gen/managers/legal_hold_policy_assignments.py @@ -60,7 +60,7 @@ class CreateLegalHoldPolicyAssignmentAssignToTypeField(str, Enum): FOLDER = 'folder' USER = 'user' OWNERSHIP = 'ownership' - INTERACTION = 'interaction' + INTERACTIONS = 'interactions' class CreateLegalHoldPolicyAssignmentAssignTo(BaseObject): @@ -70,7 +70,7 @@ class CreateLegalHoldPolicyAssignmentAssignTo(BaseObject): 'folder', 'user', 'ownership', - 'interaction', + 'interactions', } def __init__( @@ -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. diff --git a/box_sdk_gen/schemas/legal_hold_policy.py b/box_sdk_gen/schemas/legal_hold_policy.py index 5a91fa88..f3e85921 100644 --- a/box_sdk_gen/schemas/legal_hold_policy.py +++ b/box_sdk_gen/schemas/legal_hold_policy.py @@ -30,10 +30,12 @@ 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 @@ -41,12 +43,18 @@ def __init__( :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): @@ -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 diff --git a/docs/box_sdk_gen/legal_hold_policy_assignments.md b/docs/box_sdk_gen/legal_hold_policy_assignments.md index 935f8e57..54ea02fb 100644 --- a/docs/box_sdk_gen/legal_hold_policy_assignments.md +++ b/docs/box_sdk_gen/legal_hold_policy_assignments.md @@ -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`.