Skip to content
Merged
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": "8b17929", "specHash": "9c01006", "version": "10.21.0" }
{ "engineHash": "8b17929", "specHash": "d21130e", "version": "10.21.0" }
24 changes: 12 additions & 12 deletions box_sdk_gen/schemas/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class FileSharedLinkField(BaseObject):
def __init__(
self,
url: str,
access: FileSharedLinkAccessField,
effective_access: FileSharedLinkEffectiveAccessField,
effective_permission: FileSharedLinkEffectivePermissionField,
is_password_enabled: bool,
Expand All @@ -138,7 +139,6 @@ def __init__(
download_url: Optional[str] = None,
vanity_url: Optional[str] = None,
vanity_name: Optional[str] = None,
access: Optional[FileSharedLinkAccessField] = None,
unshared_at: Optional[DateTime] = None,
permissions: Optional[FileSharedLinkPermissionsField] = None,
**kwargs
Expand All @@ -152,6 +152,16 @@ def __init__(
This URL will continue to work even when a custom `vanity_url`
has been set for this shared link.
:type url: str
:param access: The access level for this shared link.

* `open` - provides access to this item to anyone with this link
* `company` - only provides access to this item to people the same company
* `collaborators` - only provides access to this item to people who are
collaborators on this item

If this field is omitted when creating the shared link, the access level
will be set to the default access level specified by the enterprise admin.
:type access: FileSharedLinkAccessField
:param effective_access: The effective access level for the shared link. This can be a more
restrictive access level than the value in the `access` field when the
enterprise settings restrict the allowed access levels.
Expand Down Expand Up @@ -179,16 +189,6 @@ def __init__(
:type vanity_url: Optional[str], optional
:param vanity_name: The custom name of a shared link, as used in the `vanity_url` field., defaults to None
:type vanity_name: Optional[str], optional
:param access: The access level for this shared link.

* `open` - provides access to this item to anyone with this link
* `company` - only provides access to this item to people the same company
* `collaborators` - only provides access to this item to people who are
collaborators on this item

If this field is omitted when creating the shared link, the access level
will be set to the default access level specified by the enterprise admin., defaults to None
:type access: Optional[FileSharedLinkAccessField], optional
:param unshared_at: The date and time when this link will be unshared. This field can only be
set by users with paid accounts., defaults to None
:type unshared_at: Optional[DateTime], optional
Expand All @@ -199,6 +199,7 @@ def __init__(
"""
super().__init__(**kwargs)
self.url = url
self.access = access
self.effective_access = effective_access
self.effective_permission = effective_permission
self.is_password_enabled = is_password_enabled
Expand All @@ -208,7 +209,6 @@ def __init__(
self.download_url = download_url
self.vanity_url = vanity_url
self.vanity_name = vanity_name
self.access = access
self.unshared_at = unshared_at
self.permissions = permissions

Expand Down
24 changes: 12 additions & 12 deletions box_sdk_gen/schemas/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class FolderSharedLinkField(BaseObject):
def __init__(
self,
url: str,
access: FolderSharedLinkAccessField,
effective_access: FolderSharedLinkEffectiveAccessField,
effective_permission: FolderSharedLinkEffectivePermissionField,
is_password_enabled: bool,
Expand All @@ -136,7 +137,6 @@ def __init__(
download_url: Optional[str] = None,
vanity_url: Optional[str] = None,
vanity_name: Optional[str] = None,
access: Optional[FolderSharedLinkAccessField] = None,
unshared_at: Optional[DateTime] = None,
permissions: Optional[FolderSharedLinkPermissionsField] = None,
**kwargs
Expand All @@ -150,6 +150,16 @@ def __init__(
This URL will continue to work even when a custom `vanity_url`
has been set for this shared link.
:type url: str
:param access: The access level for this shared link.

* `open` - provides access to this item to anyone with this link
* `company` - only provides access to this item to people the same company
* `collaborators` - only provides access to this item to people who are
collaborators on this item

If this field is omitted when creating the shared link, the access level
will be set to the default access level specified by the enterprise admin.
:type access: FolderSharedLinkAccessField
:param effective_access: The effective access level for the shared link. This can be a more
restrictive access level than the value in the `access` field when the
enterprise settings restrict the allowed access levels.
Expand Down Expand Up @@ -177,16 +187,6 @@ def __init__(
:type vanity_url: Optional[str], optional
:param vanity_name: The custom name of a shared link, as used in the `vanity_url` field., defaults to None
:type vanity_name: Optional[str], optional
:param access: The access level for this shared link.

* `open` - provides access to this item to anyone with this link
* `company` - only provides access to this item to people the same company
* `collaborators` - only provides access to this item to people who are
collaborators on this item

If this field is omitted when creating the shared link, the access level
will be set to the default access level specified by the enterprise admin., defaults to None
:type access: Optional[FolderSharedLinkAccessField], optional
:param unshared_at: The date and time when this link will be unshared. This field can only be
set by users with paid accounts., defaults to None
:type unshared_at: Optional[DateTime], optional
Expand All @@ -197,6 +197,7 @@ def __init__(
"""
super().__init__(**kwargs)
self.url = url
self.access = access
self.effective_access = effective_access
self.effective_permission = effective_permission
self.is_password_enabled = is_password_enabled
Expand All @@ -206,7 +207,6 @@ def __init__(
self.download_url = download_url
self.vanity_url = vanity_url
self.vanity_name = vanity_name
self.access = access
self.unshared_at = unshared_at
self.permissions = permissions

Expand Down
24 changes: 12 additions & 12 deletions box_sdk_gen/schemas/web_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class WebLinkSharedLinkField(BaseObject):
def __init__(
self,
url: str,
access: WebLinkSharedLinkAccessField,
effective_access: WebLinkSharedLinkEffectiveAccessField,
effective_permission: WebLinkSharedLinkEffectivePermissionField,
is_password_enabled: bool,
Expand All @@ -138,7 +139,6 @@ def __init__(
download_url: Optional[str] = None,
vanity_url: Optional[str] = None,
vanity_name: Optional[str] = None,
access: Optional[WebLinkSharedLinkAccessField] = None,
unshared_at: Optional[DateTime] = None,
permissions: Optional[WebLinkSharedLinkPermissionsField] = None,
**kwargs
Expand All @@ -152,6 +152,16 @@ def __init__(
This URL will continue to work even when a custom `vanity_url`
has been set for this shared link.
:type url: str
:param access: The access level for this shared link.

* `open` - provides access to this item to anyone with this link
* `company` - only provides access to this item to people the same company
* `collaborators` - only provides access to this item to people who are
collaborators on this item

If this field is omitted when creating the shared link, the access level
will be set to the default access level specified by the enterprise admin.
:type access: WebLinkSharedLinkAccessField
:param effective_access: The effective access level for the shared link. This can be a more
restrictive access level than the value in the `access` field when the
enterprise settings restrict the allowed access levels.
Expand Down Expand Up @@ -179,16 +189,6 @@ def __init__(
:type vanity_url: Optional[str], optional
:param vanity_name: The custom name of a shared link, as used in the `vanity_url` field., defaults to None
:type vanity_name: Optional[str], optional
:param access: The access level for this shared link.

* `open` - provides access to this item to anyone with this link
* `company` - only provides access to this item to people the same company
* `collaborators` - only provides access to this item to people who are
collaborators on this item

If this field is omitted when creating the shared link, the access level
will be set to the default access level specified by the enterprise admin., defaults to None
:type access: Optional[WebLinkSharedLinkAccessField], optional
:param unshared_at: The date and time when this link will be unshared. This field can only be
set by users with paid accounts., defaults to None
:type unshared_at: Optional[DateTime], optional
Expand All @@ -199,6 +199,7 @@ def __init__(
"""
super().__init__(**kwargs)
self.url = url
self.access = access
self.effective_access = effective_access
self.effective_permission = effective_permission
self.is_password_enabled = is_password_enabled
Expand All @@ -208,7 +209,6 @@ def __init__(
self.download_url = download_url
self.vanity_url = vanity_url
self.vanity_name = vanity_name
self.access = access
self.unshared_at = unshared_at
self.permissions = permissions

Expand Down
Loading