diff --git a/.codegen.json b/.codegen.json index 95c8b2a7..1dfc821c 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "8b17929", "specHash": "9c01006", "version": "10.21.0" } +{ "engineHash": "8b17929", "specHash": "d21130e", "version": "10.21.0" } diff --git a/box_sdk_gen/schemas/file.py b/box_sdk_gen/schemas/file.py index fc0e636f..d4e86bdf 100644 --- a/box_sdk_gen/schemas/file.py +++ b/box_sdk_gen/schemas/file.py @@ -128,6 +128,7 @@ class FileSharedLinkField(BaseObject): def __init__( self, url: str, + access: FileSharedLinkAccessField, effective_access: FileSharedLinkEffectiveAccessField, effective_permission: FileSharedLinkEffectivePermissionField, is_password_enabled: bool, @@ -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 @@ -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. @@ -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 @@ -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 @@ -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 diff --git a/box_sdk_gen/schemas/folder.py b/box_sdk_gen/schemas/folder.py index d9099621..b42c0efb 100644 --- a/box_sdk_gen/schemas/folder.py +++ b/box_sdk_gen/schemas/folder.py @@ -126,6 +126,7 @@ class FolderSharedLinkField(BaseObject): def __init__( self, url: str, + access: FolderSharedLinkAccessField, effective_access: FolderSharedLinkEffectiveAccessField, effective_permission: FolderSharedLinkEffectivePermissionField, is_password_enabled: bool, @@ -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 @@ -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. @@ -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 @@ -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 @@ -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 diff --git a/box_sdk_gen/schemas/web_link.py b/box_sdk_gen/schemas/web_link.py index c165908e..b0dda54e 100644 --- a/box_sdk_gen/schemas/web_link.py +++ b/box_sdk_gen/schemas/web_link.py @@ -128,6 +128,7 @@ class WebLinkSharedLinkField(BaseObject): def __init__( self, url: str, + access: WebLinkSharedLinkAccessField, effective_access: WebLinkSharedLinkEffectiveAccessField, effective_permission: WebLinkSharedLinkEffectivePermissionField, is_password_enabled: bool, @@ -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 @@ -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. @@ -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 @@ -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 @@ -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