Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "3e11b6f", "specHash": "425a724", "version": "10.3.0" }
{ "engineHash": "3e11b6f", "specHash": "4beaa19", "version": "10.3.0" }
24 changes: 21 additions & 3 deletions box_sdk_gen/schemas/file_full.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Optional

from box_sdk_gen.internal.base_object import BaseObject

from enum import Enum

from typing import Optional

from typing import List

from box_sdk_gen.schemas.file_base import FileBaseTypeField
Expand Down Expand Up @@ -50,6 +50,8 @@ def __init__(
can_upload: bool,
can_view_annotations_all: bool,
can_view_annotations_self: bool,
*,
can_apply_watermark: Optional[bool] = None,
**kwargs
):
"""
Expand Down Expand Up @@ -82,6 +84,8 @@ def __init__(
:param can_view_annotations_self: Specifies if the user view annotations placed by themselves
on this file.
:type can_view_annotations_self: bool
:param can_apply_watermark: Specifies if the user can apply a watermark to this file., defaults to None
:type can_apply_watermark: Optional[bool], optional
"""
super().__init__(**kwargs)
self.can_delete = can_delete
Expand All @@ -96,6 +100,7 @@ def __init__(
self.can_upload = can_upload
self.can_view_annotations_all = can_view_annotations_all
self.can_view_annotations_self = can_view_annotations_self
self.can_apply_watermark = can_apply_watermark


class FileFullLockTypeField(str, Enum):
Expand Down Expand Up @@ -190,13 +195,26 @@ def __init__(


class FileFullWatermarkInfoField(BaseObject):
def __init__(self, *, is_watermarked: Optional[bool] = None, **kwargs):
def __init__(
self,
*,
is_watermarked: Optional[bool] = None,
is_watermark_inherited: Optional[bool] = None,
is_watermarked_by_access_policy: Optional[bool] = None,
**kwargs
):
"""
:param is_watermarked: Specifies if this item has a watermark applied., defaults to None
:type is_watermarked: Optional[bool], optional
:param is_watermark_inherited: Specifies if the watermark is inherited from any parent folder in the hierarchy., defaults to None
:type is_watermark_inherited: Optional[bool], optional
:param is_watermarked_by_access_policy: Specifies if the watermark is enforced by an access policy., defaults to None
:type is_watermarked_by_access_policy: Optional[bool], optional
"""
super().__init__(**kwargs)
self.is_watermarked = is_watermarked
self.is_watermark_inherited = is_watermark_inherited
self.is_watermarked_by_access_policy = is_watermarked_by_access_policy


class FileFullAllowedInviteeRolesField(str, Enum):
Expand Down
24 changes: 21 additions & 3 deletions box_sdk_gen/schemas/folder_full.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from enum import Enum

from box_sdk_gen.internal.base_object import BaseObject

from typing import Optional

from box_sdk_gen.internal.base_object import BaseObject

from typing import List

from box_sdk_gen.schemas.folder_base import FolderBaseTypeField
Expand Down Expand Up @@ -49,6 +49,8 @@ def __init__(
can_set_share_access: bool,
can_share: bool,
can_upload: bool,
*,
can_apply_watermark: Optional[bool] = None,
**kwargs
):
"""
Expand All @@ -70,6 +72,8 @@ def __init__(
:type can_share: bool
:param can_upload: Specifies if the user can upload into this folder.
:type can_upload: bool
:param can_apply_watermark: Specifies if the user can apply a watermark to this folder and its contents., defaults to None
:type can_apply_watermark: Optional[bool], optional
"""
super().__init__(**kwargs)
self.can_delete = can_delete
Expand All @@ -79,6 +83,7 @@ def __init__(
self.can_set_share_access = can_set_share_access
self.can_share = can_share
self.can_upload = can_upload
self.can_apply_watermark = can_apply_watermark


class FolderFullMetadataField(BaseObject):
Expand All @@ -104,13 +109,26 @@ class FolderFullAllowedInviteeRolesField(str, Enum):


class FolderFullWatermarkInfoField(BaseObject):
def __init__(self, *, is_watermarked: Optional[bool] = None, **kwargs):
def __init__(
self,
*,
is_watermarked: Optional[bool] = None,
is_watermark_inherited: Optional[bool] = None,
is_watermarked_by_access_policy: Optional[bool] = None,
**kwargs
):
"""
:param is_watermarked: Specifies if this item has a watermark applied., defaults to None
:type is_watermarked: Optional[bool], optional
:param is_watermark_inherited: Specifies if the watermark is inherited from any parent folder in the hierarchy., defaults to None
:type is_watermark_inherited: Optional[bool], optional
:param is_watermarked_by_access_policy: Specifies if the watermark is enforced by an access policy., defaults to None
:type is_watermarked_by_access_policy: Optional[bool], optional
"""
super().__init__(**kwargs)
self.is_watermarked = is_watermarked
self.is_watermark_inherited = is_watermark_inherited
self.is_watermarked_by_access_policy = is_watermarked_by_access_policy


class FolderFullClassificationField(BaseObject):
Expand Down