From 883030335e2a3c12a5e0b01d8a82df30ccce16a6 Mon Sep 17 00:00:00 2001 From: box-sdk-build <94016436+box-sdk-build@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:17:37 +0200 Subject: [PATCH] fix: Fix variants in metadata query results (box/box-openapi#456) (#313) --- .codegen.json | 2 +- box_sdk_gen/schemas/__init__.py | 4 ++-- box_sdk_gen/schemas/file_full.py | 2 +- box_sdk_gen/schemas/folder_full.py | 2 +- box_sdk_gen/schemas/metadata_query_results.py | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.codegen.json b/.codegen.json index cbdea30..c46ecf9 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "5b7aecf", "specHash": "915b38a", "version": "1.4.1" } +{ "engineHash": "5b7aecf", "specHash": "b21666d", "version": "1.4.1" } diff --git a/box_sdk_gen/schemas/__init__.py b/box_sdk_gen/schemas/__init__.py index 70a466c..4f28f46 100644 --- a/box_sdk_gen/schemas/__init__.py +++ b/box_sdk_gen/schemas/__init__.py @@ -282,8 +282,6 @@ from box_sdk_gen.schemas.folder import * -from box_sdk_gen.schemas.metadata_query_results import * - from box_sdk_gen.schemas.legal_hold_policy_assignment import * from box_sdk_gen.schemas.legal_hold_policy_assignments import * @@ -304,6 +302,8 @@ from box_sdk_gen.schemas.recent_items import * +from box_sdk_gen.schemas.metadata_query_results import * + from box_sdk_gen.schemas.event import * from box_sdk_gen.schemas.events import * diff --git a/box_sdk_gen/schemas/file_full.py b/box_sdk_gen/schemas/file_full.py index ac7ee08..3b53eff 100644 --- a/box_sdk_gen/schemas/file_full.py +++ b/box_sdk_gen/schemas/file_full.py @@ -28,7 +28,7 @@ from box_sdk_gen.schemas.file_or_folder_scope import FileOrFolderScope -from box_sdk_gen.schemas.metadata import Metadata +from box_sdk_gen.schemas.metadata_full import MetadataFull from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/folder_full.py b/box_sdk_gen/schemas/folder_full.py index 8879c5c..ebb7731 100644 --- a/box_sdk_gen/schemas/folder_full.py +++ b/box_sdk_gen/schemas/folder_full.py @@ -28,7 +28,7 @@ from box_sdk_gen.schemas.folder import Folder -from box_sdk_gen.schemas.metadata import Metadata +from box_sdk_gen.schemas.metadata_full import MetadataFull class FolderFullSyncStateField(str, Enum): diff --git a/box_sdk_gen/schemas/metadata_query_results.py b/box_sdk_gen/schemas/metadata_query_results.py index 1979040..a31f4d5 100644 --- a/box_sdk_gen/schemas/metadata_query_results.py +++ b/box_sdk_gen/schemas/metadata_query_results.py @@ -6,16 +6,16 @@ from box_sdk_gen.internal.base_object import BaseObject -from box_sdk_gen.schemas.file import File +from box_sdk_gen.schemas.file_full import FileFull -from box_sdk_gen.schemas.folder import Folder +from box_sdk_gen.schemas.folder_full import FolderFull class MetadataQueryResults(BaseObject): def __init__( self, *, - entries: Optional[List[Union[File, Folder]]] = None, + entries: Optional[List[Union[FileFull, FolderFull]]] = None, limit: Optional[int] = None, next_marker: Optional[str] = None, **kwargs @@ -27,7 +27,7 @@ def __init__( By default, this endpoint returns only the most basic info about the items. To get additional fields for each item, including any of the metadata, use the `fields` attribute in the query., defaults to None - :type entries: Optional[List[Union[File, Folder]]], optional + :type entries: Optional[List[Union[FileFull, FolderFull]]], optional :param limit: The limit that was used for this search. This will be the same as the `limit` query parameter unless that value exceeded the maximum value allowed., defaults to None