From bd7b9f6a495586c021aaac4f67b26d0789dc89ce Mon Sep 17 00:00:00 2001 From: box-sdk-build <94016436+box-sdk-build@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:36:14 +0100 Subject: [PATCH] chore: Move `SerializedData` class to `json` module (box/box-codegen#606) (#394) --- .codegen.json | 2 +- box_sdk_gen/__init__.py | 4 +-- box_sdk_gen/box/errors.py | 17 ++++++------- box_sdk_gen/box/jwt_auth.py | 6 ++--- box_sdk_gen/box/oauth.py | 6 ++--- box_sdk_gen/internal/__init__.py | 6 +++-- box_sdk_gen/internal/errors.py | 6 +++++ box_sdk_gen/internal/utils.py | 4 +-- box_sdk_gen/managers/ai.py | 10 +++++--- box_sdk_gen/managers/app_item_associations.py | 8 +++--- box_sdk_gen/managers/authorization.py | 10 +++++--- box_sdk_gen/managers/avatars.py | 8 +++--- box_sdk_gen/managers/chunked_uploads.py | 10 +++++--- box_sdk_gen/managers/classifications.py | 8 +++--- .../collaboration_allowlist_entries.py | 10 +++++--- .../collaboration_allowlist_exempt_targets.py | 10 +++++--- box_sdk_gen/managers/collections.py | 8 +++--- box_sdk_gen/managers/comments.py | 10 +++++--- box_sdk_gen/managers/device_pinners.py | 8 +++--- box_sdk_gen/managers/downloads.py | 4 ++- box_sdk_gen/managers/email_aliases.py | 10 +++++--- box_sdk_gen/managers/events.py | 8 +++--- box_sdk_gen/managers/file_classifications.py | 10 +++++--- box_sdk_gen/managers/file_metadata.py | 10 +++++--- box_sdk_gen/managers/file_requests.py | 10 +++++--- .../managers/file_version_legal_holds.py | 8 +++--- .../managers/file_version_retentions.py | 8 +++--- box_sdk_gen/managers/file_versions.py | 10 +++++--- box_sdk_gen/managers/file_watermarks.py | 10 +++++--- box_sdk_gen/managers/files.py | 10 +++++--- .../managers/folder_classifications.py | 10 +++++--- box_sdk_gen/managers/folder_locks.py | 10 +++++--- box_sdk_gen/managers/folder_metadata.py | 10 +++++--- box_sdk_gen/managers/folder_watermarks.py | 10 +++++--- box_sdk_gen/managers/folders.py | 10 +++++--- box_sdk_gen/managers/groups.py | 10 +++++--- box_sdk_gen/managers/integration_mappings.py | 10 +++++--- box_sdk_gen/managers/invites.py | 10 +++++--- box_sdk_gen/managers/legal_hold_policies.py | 10 +++++--- .../managers/legal_hold_policy_assignments.py | 10 +++++--- box_sdk_gen/managers/list_collaborations.py | 8 +++--- box_sdk_gen/managers/memberships.py | 10 +++++--- .../managers/metadata_cascade_policies.py | 10 +++++--- box_sdk_gen/managers/metadata_templates.py | 10 +++++--- box_sdk_gen/managers/recent_items.py | 8 +++--- box_sdk_gen/managers/retention_policies.py | 10 +++++--- .../managers/retention_policy_assignments.py | 10 +++++--- box_sdk_gen/managers/search.py | 10 +++++--- box_sdk_gen/managers/session_termination.py | 8 +++--- box_sdk_gen/managers/shared_links_files.py | 10 +++++--- box_sdk_gen/managers/shared_links_folders.py | 10 +++++--- .../managers/shared_links_web_links.py | 10 +++++--- .../shield_information_barrier_reports.py | 10 +++++--- ...eld_information_barrier_segment_members.py | 10 +++++--- ...nformation_barrier_segment_restrictions.py | 10 +++++--- .../shield_information_barrier_segments.py | 10 +++++--- .../managers/shield_information_barriers.py | 10 +++++--- box_sdk_gen/managers/sign_requests.py | 10 +++++--- box_sdk_gen/managers/sign_templates.py | 8 +++--- box_sdk_gen/managers/skills.py | 10 +++++--- box_sdk_gen/managers/storage_policies.py | 8 +++--- .../managers/storage_policy_assignments.py | 10 +++++--- box_sdk_gen/managers/task_assignments.py | 10 +++++--- box_sdk_gen/managers/tasks.py | 10 +++++--- .../terms_of_service_user_statuses.py | 10 +++++--- box_sdk_gen/managers/terms_of_services.py | 10 +++++--- box_sdk_gen/managers/transfer.py | 10 +++++--- box_sdk_gen/managers/trashed_files.py | 10 +++++--- box_sdk_gen/managers/trashed_folders.py | 10 +++++--- box_sdk_gen/managers/trashed_items.py | 8 +++--- box_sdk_gen/managers/trashed_web_links.py | 10 +++++--- box_sdk_gen/managers/uploads.py | 10 +++++--- box_sdk_gen/managers/user_collaborations.py | 10 +++++--- box_sdk_gen/managers/users.py | 10 +++++--- box_sdk_gen/managers/web_links.py | 10 +++++--- box_sdk_gen/managers/webhooks.py | 10 +++++--- box_sdk_gen/managers/workflows.py | 10 +++++--- box_sdk_gen/managers/zip_downloads.py | 10 +++++--- box_sdk_gen/networking/__init__.py | 6 ++--- box_sdk_gen/networking/base_urls.py | 2 ++ box_sdk_gen/networking/fetch.py | 2 +- box_sdk_gen/networking/fetch_options.py | 2 +- box_sdk_gen/networking/fetch_response.py | 2 +- box_sdk_gen/schemas/access_token.py | 2 ++ box_sdk_gen/schemas/ai_agent_ask.py | 2 ++ .../schemas/ai_agent_basic_gen_tool.py | 2 ++ .../schemas/ai_agent_basic_text_tool.py | 2 ++ .../schemas/ai_agent_basic_text_tool_base.py | 2 ++ .../ai_agent_basic_text_tool_text_gen.py | 2 ++ box_sdk_gen/schemas/ai_agent_extract.py | 2 ++ .../schemas/ai_agent_extract_structured.py | 2 ++ .../schemas/ai_agent_long_text_tool.py | 2 ++ .../ai_agent_long_text_tool_text_gen.py | 2 ++ box_sdk_gen/schemas/ai_agent_text_gen.py | 2 ++ box_sdk_gen/schemas/ai_ask.py | 2 ++ box_sdk_gen/schemas/ai_citation.py | 2 ++ box_sdk_gen/schemas/ai_dialogue_history.py | 2 ++ box_sdk_gen/schemas/ai_extract.py | 2 ++ box_sdk_gen/schemas/ai_extract_response.py | 2 ++ box_sdk_gen/schemas/ai_extract_structured.py | 2 ++ box_sdk_gen/schemas/ai_item_base.py | 2 ++ .../schemas/ai_llm_endpoint_params_aws.py | 2 ++ .../schemas/ai_llm_endpoint_params_google.py | 2 ++ .../schemas/ai_llm_endpoint_params_open_ai.py | 2 ++ box_sdk_gen/schemas/ai_response.py | 2 ++ box_sdk_gen/schemas/ai_response_full.py | 2 ++ box_sdk_gen/schemas/ai_text_gen.py | 2 ++ box_sdk_gen/schemas/app_item.py | 2 ++ box_sdk_gen/schemas/app_item_association.py | 2 ++ box_sdk_gen/schemas/app_item_associations.py | 2 ++ box_sdk_gen/schemas/app_item_event_source.py | 2 ++ box_sdk_gen/schemas/classification.py | 2 ++ .../schemas/classification_template.py | 2 ++ box_sdk_gen/schemas/client_error.py | 2 ++ box_sdk_gen/schemas/collaboration.py | 2 ++ .../collaboration_allowlist_entries.py | 2 ++ .../schemas/collaboration_allowlist_entry.py | 2 ++ .../collaboration_allowlist_exempt_target.py | 2 ++ .../collaboration_allowlist_exempt_targets.py | 2 ++ box_sdk_gen/schemas/collaborations.py | 2 ++ .../collaborations_offset_paginated.py | 2 ++ box_sdk_gen/schemas/collaborator_variable.py | 2 ++ box_sdk_gen/schemas/collection.py | 2 ++ box_sdk_gen/schemas/collections.py | 2 ++ box_sdk_gen/schemas/comment.py | 2 ++ box_sdk_gen/schemas/comment_base.py | 2 ++ box_sdk_gen/schemas/comment_full.py | 2 ++ box_sdk_gen/schemas/comments.py | 2 ++ .../schemas/completion_rule_variable.py | 2 ++ box_sdk_gen/schemas/conflict_error.py | 2 ++ box_sdk_gen/schemas/device_pinner.py | 2 ++ box_sdk_gen/schemas/device_pinners.py | 2 ++ box_sdk_gen/schemas/email_alias.py | 2 ++ box_sdk_gen/schemas/email_aliases.py | 2 ++ box_sdk_gen/schemas/enterprise_base.py | 2 ++ box_sdk_gen/schemas/event.py | 2 ++ box_sdk_gen/schemas/event_source.py | 2 ++ box_sdk_gen/schemas/events.py | 2 ++ box_sdk_gen/schemas/file.py | 2 ++ box_sdk_gen/schemas/file_base.py | 2 ++ box_sdk_gen/schemas/file_conflict.py | 2 ++ box_sdk_gen/schemas/file_full.py | 2 ++ box_sdk_gen/schemas/file_mini.py | 2 ++ box_sdk_gen/schemas/file_or_folder_scope.py | 2 ++ box_sdk_gen/schemas/file_request.py | 2 ++ .../schemas/file_request_copy_request.py | 2 ++ .../schemas/file_request_update_request.py | 2 ++ box_sdk_gen/schemas/file_version.py | 2 ++ box_sdk_gen/schemas/file_version_base.py | 2 ++ box_sdk_gen/schemas/file_version_full.py | 2 ++ .../schemas/file_version_legal_hold.py | 2 ++ .../schemas/file_version_legal_holds.py | 2 ++ box_sdk_gen/schemas/file_version_mini.py | 2 ++ box_sdk_gen/schemas/file_version_retention.py | 2 ++ .../schemas/file_version_retentions.py | 2 ++ box_sdk_gen/schemas/file_versions.py | 2 ++ box_sdk_gen/schemas/files.py | 2 ++ box_sdk_gen/schemas/files_on_hold.py | 2 ++ box_sdk_gen/schemas/files_under_retention.py | 2 ++ box_sdk_gen/schemas/folder.py | 2 ++ box_sdk_gen/schemas/folder_base.py | 2 ++ box_sdk_gen/schemas/folder_full.py | 2 ++ box_sdk_gen/schemas/folder_lock.py | 2 ++ box_sdk_gen/schemas/folder_locks.py | 2 ++ box_sdk_gen/schemas/folder_mini.py | 2 ++ box_sdk_gen/schemas/generic_source.py | 1 + box_sdk_gen/schemas/group.py | 2 ++ box_sdk_gen/schemas/group_base.py | 2 ++ box_sdk_gen/schemas/group_full.py | 2 ++ box_sdk_gen/schemas/group_membership.py | 2 ++ box_sdk_gen/schemas/group_memberships.py | 2 ++ box_sdk_gen/schemas/group_mini.py | 2 ++ box_sdk_gen/schemas/groups.py | 2 ++ box_sdk_gen/schemas/integration_mapping.py | 2 ++ .../schemas/integration_mapping_base.py | 2 ++ .../integration_mapping_box_item_slack.py | 2 ++ .../integration_mapping_partner_item_slack.py | 2 ++ ...ntegration_mapping_slack_create_request.py | 2 ++ .../integration_mapping_slack_options.py | 2 ++ box_sdk_gen/schemas/integration_mappings.py | 2 ++ box_sdk_gen/schemas/invite.py | 2 ++ box_sdk_gen/schemas/items.py | 2 ++ box_sdk_gen/schemas/items_offset_paginated.py | 2 ++ box_sdk_gen/schemas/keyword_skill_card.py | 2 ++ box_sdk_gen/schemas/legal_hold_policies.py | 2 ++ box_sdk_gen/schemas/legal_hold_policy.py | 2 ++ .../schemas/legal_hold_policy_assignment.py | 2 ++ .../legal_hold_policy_assignment_base.py | 2 ++ .../schemas/legal_hold_policy_assignments.py | 2 ++ box_sdk_gen/schemas/legal_hold_policy_mini.py | 2 ++ box_sdk_gen/schemas/metadata.py | 2 ++ box_sdk_gen/schemas/metadata_base.py | 2 ++ .../schemas/metadata_cascade_policies.py | 2 ++ .../schemas/metadata_cascade_policy.py | 2 ++ .../metadata_field_filter_date_range.py | 2 ++ .../metadata_field_filter_float_range.py | 2 ++ box_sdk_gen/schemas/metadata_filter.py | 2 ++ box_sdk_gen/schemas/metadata_full.py | 2 ++ box_sdk_gen/schemas/metadata_query.py | 2 ++ box_sdk_gen/schemas/metadata_query_index.py | 2 ++ box_sdk_gen/schemas/metadata_query_results.py | 2 ++ box_sdk_gen/schemas/metadata_template.py | 2 ++ box_sdk_gen/schemas/metadata_templates.py | 2 ++ box_sdk_gen/schemas/metadatas.py | 2 ++ box_sdk_gen/schemas/o_auth_2_error.py | 2 ++ box_sdk_gen/schemas/outcome.py | 2 ++ box_sdk_gen/schemas/post_o_auth_2_revoke.py | 2 ++ box_sdk_gen/schemas/post_o_auth_2_token.py | 2 ++ ...ost_o_auth_2_token_refresh_access_token.py | 2 ++ box_sdk_gen/schemas/realtime_server.py | 2 ++ box_sdk_gen/schemas/realtime_servers.py | 2 ++ box_sdk_gen/schemas/recent_item.py | 2 ++ box_sdk_gen/schemas/recent_items.py | 2 ++ box_sdk_gen/schemas/retention_policies.py | 2 ++ box_sdk_gen/schemas/retention_policy.py | 2 ++ .../schemas/retention_policy_assignment.py | 2 ++ .../retention_policy_assignment_base.py | 2 ++ .../schemas/retention_policy_assignments.py | 2 ++ box_sdk_gen/schemas/retention_policy_base.py | 2 ++ box_sdk_gen/schemas/retention_policy_mini.py | 2 ++ box_sdk_gen/schemas/role_variable.py | 2 ++ .../schemas/search_result_with_shared_link.py | 2 ++ box_sdk_gen/schemas/search_results.py | 2 ++ .../search_results_with_shared_links.py | 2 ++ .../schemas/session_termination_message.py | 2 ++ .../schemas/shield_information_barrier.py | 2 ++ .../shield_information_barrier_base.py | 2 ++ .../shield_information_barrier_reference.py | 2 ++ .../shield_information_barrier_report.py | 2 ++ .../shield_information_barrier_report_base.py | 2 ++ ...ield_information_barrier_report_details.py | 2 ++ .../shield_information_barrier_reports.py | 2 ++ .../shield_information_barrier_segment.py | 2 ++ ...ield_information_barrier_segment_member.py | 2 ++ ...information_barrier_segment_member_base.py | 2 ++ ...information_barrier_segment_member_mini.py | 2 ++ ...eld_information_barrier_segment_members.py | 2 ++ ...information_barrier_segment_restriction.py | 2 ++ ...mation_barrier_segment_restriction_base.py | 2 ++ ...mation_barrier_segment_restriction_mini.py | 2 ++ ...nformation_barrier_segment_restrictions.py | 2 ++ .../shield_information_barrier_segments.py | 2 ++ .../schemas/shield_information_barriers.py | 2 ++ box_sdk_gen/schemas/sign_request.py | 2 ++ box_sdk_gen/schemas/sign_request_base.py | 2 ++ .../schemas/sign_request_create_request.py | 2 ++ .../schemas/sign_request_create_signer.py | 2 ++ .../schemas/sign_request_prefill_tag.py | 2 ++ box_sdk_gen/schemas/sign_request_signer.py | 2 ++ .../schemas/sign_request_signer_input.py | 2 ++ box_sdk_gen/schemas/sign_requests.py | 2 ++ box_sdk_gen/schemas/sign_template.py | 2 ++ box_sdk_gen/schemas/sign_templates.py | 2 ++ box_sdk_gen/schemas/skill_cards_metadata.py | 2 ++ box_sdk_gen/schemas/skill_invocation.py | 2 ++ box_sdk_gen/schemas/status_skill_card.py | 2 ++ box_sdk_gen/schemas/storage_policies.py | 2 ++ box_sdk_gen/schemas/storage_policy.py | 2 ++ .../schemas/storage_policy_assignment.py | 2 ++ .../schemas/storage_policy_assignments.py | 2 ++ box_sdk_gen/schemas/storage_policy_mini.py | 2 ++ box_sdk_gen/schemas/task.py | 2 ++ box_sdk_gen/schemas/task_assignment.py | 2 ++ box_sdk_gen/schemas/task_assignments.py | 2 ++ box_sdk_gen/schemas/tasks.py | 2 ++ box_sdk_gen/schemas/template_signer.py | 2 ++ box_sdk_gen/schemas/template_signer_input.py | 2 ++ box_sdk_gen/schemas/terms_of_service.py | 2 ++ box_sdk_gen/schemas/terms_of_service_base.py | 2 ++ .../schemas/terms_of_service_user_status.py | 2 ++ .../schemas/terms_of_service_user_statuses.py | 2 ++ box_sdk_gen/schemas/terms_of_services.py | 2 ++ box_sdk_gen/schemas/timeline_skill_card.py | 2 ++ box_sdk_gen/schemas/tracking_code.py | 2 ++ box_sdk_gen/schemas/transcript_skill_card.py | 2 ++ box_sdk_gen/schemas/trash_file.py | 2 ++ box_sdk_gen/schemas/trash_file_restored.py | 2 ++ box_sdk_gen/schemas/trash_folder.py | 2 ++ box_sdk_gen/schemas/trash_folder_restored.py | 2 ++ box_sdk_gen/schemas/trash_web_link.py | 2 ++ .../schemas/trash_web_link_restored.py | 2 ++ box_sdk_gen/schemas/upload_part.py | 2 ++ box_sdk_gen/schemas/upload_part_mini.py | 2 ++ box_sdk_gen/schemas/upload_parts.py | 2 ++ box_sdk_gen/schemas/upload_session.py | 2 ++ box_sdk_gen/schemas/upload_url.py | 2 ++ box_sdk_gen/schemas/uploaded_part.py | 2 ++ box_sdk_gen/schemas/user.py | 2 ++ box_sdk_gen/schemas/user_avatar.py | 2 ++ box_sdk_gen/schemas/user_base.py | 2 ++ box_sdk_gen/schemas/user_collaborations.py | 2 ++ box_sdk_gen/schemas/user_full.py | 2 ++ .../schemas/user_integration_mappings.py | 2 ++ box_sdk_gen/schemas/user_mini.py | 2 ++ box_sdk_gen/schemas/users.py | 2 ++ box_sdk_gen/schemas/watermark.py | 2 ++ box_sdk_gen/schemas/web_link.py | 2 ++ box_sdk_gen/schemas/web_link_base.py | 2 ++ box_sdk_gen/schemas/web_link_mini.py | 2 ++ box_sdk_gen/schemas/webhook.py | 2 ++ box_sdk_gen/schemas/webhook_invocation.py | 2 ++ box_sdk_gen/schemas/webhook_mini.py | 2 ++ box_sdk_gen/schemas/webhooks.py | 2 ++ box_sdk_gen/schemas/workflow.py | 2 ++ box_sdk_gen/schemas/workflow_full.py | 2 ++ box_sdk_gen/schemas/workflow_mini.py | 2 ++ box_sdk_gen/schemas/workflows.py | 2 ++ box_sdk_gen/schemas/zip_download.py | 2 ++ box_sdk_gen/schemas/zip_download_request.py | 2 ++ box_sdk_gen/schemas/zip_download_status.py | 2 ++ .../{json/serializer.py => json.py} | 25 ++++++++++++++++--- box_sdk_gen/serialization/json/__init__.py | 3 --- box_sdk_gen/serialization/json/json_data.py | 21 ---------------- test/client.py | 6 ++--- 314 files changed, 917 insertions(+), 322 deletions(-) create mode 100644 box_sdk_gen/internal/errors.py rename box_sdk_gen/serialization/{json/serializer.py => json.py} (55%) delete mode 100644 box_sdk_gen/serialization/json/__init__.py delete mode 100644 box_sdk_gen/serialization/json/json_data.py diff --git a/.codegen.json b/.codegen.json index ba55b8c8..6b7233a7 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "35ca680", "specHash": "544d370", "version": "1.7.0" } +{ "engineHash": "5a3b4bc", "specHash": "544d370", "version": "1.7.0" } diff --git a/box_sdk_gen/__init__.py b/box_sdk_gen/__init__.py index be6dd383..ea7b0aa6 100644 --- a/box_sdk_gen/__init__.py +++ b/box_sdk_gen/__init__.py @@ -1,11 +1,11 @@ from box_sdk_gen.box import * +from box_sdk_gen.serialization import * + from box_sdk_gen.internal import * from box_sdk_gen.networking import * -from box_sdk_gen.serialization import * - from box_sdk_gen.schemas import * from box_sdk_gen.managers import * diff --git a/box_sdk_gen/box/errors.py b/box_sdk_gen/box/errors.py index 600629d6..b6df738d 100644 --- a/box_sdk_gen/box/errors.py +++ b/box_sdk_gen/box/errors.py @@ -1,24 +1,23 @@ import pprint from datetime import datetime -from typing import Any, Optional +from typing import Any, Dict, Optional -from typing import Dict +from ..internal.errors import GeneratedCodeError -class BoxSDKError(Exception): +class BoxSDKError(GeneratedCodeError): def __init__( self, message: str, timestamp: Optional[datetime] = None, error: Optional[Exception] = None, - name: Optional[str] = 'BoxSDKError', **kwargs, ): - super().__init__(message) + super().__init__(message, **kwargs) + self.name = 'BoxSDKError' self.message = message self.timestamp = timestamp if timestamp is not None else datetime.now() self.error = error - self.name = name def __str__(self): return ''.join( @@ -113,12 +112,10 @@ def __init__( message: str, timestamp: Optional[datetime] = None, error: Optional[str] = None, - name: Optional[str] = 'BoxAPIError', **kwargs, ): - super().__init__( - message=message, timestamp=timestamp, error=error, name=name, **kwargs - ) + super().__init__(message=message, timestamp=timestamp, error=error, **kwargs) + self.name = 'BoxAPIError' self.request_info = request_info self.response_info = response_info diff --git a/box_sdk_gen/box/jwt_auth.py b/box_sdk_gen/box/jwt_auth.py index 74d55e12..331a0960 100644 --- a/box_sdk_gen/box/jwt_auth.py +++ b/box_sdk_gen/box/jwt_auth.py @@ -4,7 +4,7 @@ from typing import Optional -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from typing import List @@ -26,9 +26,9 @@ from box_sdk_gen.box.token_storage import InMemoryTokenStorage -from box_sdk_gen.serialization.json.json_data import json_to_serialized_data +from box_sdk_gen.serialization.json import json_to_serialized_data -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import get_uuid diff --git a/box_sdk_gen/box/oauth.py b/box_sdk_gen/box/oauth.py index 7cf42a16..08eddcd1 100644 --- a/box_sdk_gen/box/oauth.py +++ b/box_sdk_gen/box/oauth.py @@ -2,7 +2,7 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from typing import List @@ -26,13 +26,13 @@ from box_sdk_gen.box.token_storage import InMemoryTokenStorage -from box_sdk_gen.serialization.json.json_data import sd_to_url_params +from box_sdk_gen.serialization.json import sd_to_url_params from box_sdk_gen.internal.utils import prepare_params from box_sdk_gen.box.errors import BoxSDKError -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class OAuthConfig: diff --git a/box_sdk_gen/internal/__init__.py b/box_sdk_gen/internal/__init__.py index f36dae96..3867dd6c 100644 --- a/box_sdk_gen/internal/__init__.py +++ b/box_sdk_gen/internal/__init__.py @@ -1,5 +1,7 @@ +from box_sdk_gen.internal.utils import * + +from box_sdk_gen.internal.errors import * + from box_sdk_gen.internal.base_object import * from box_sdk_gen.internal.null_value import * - -from box_sdk_gen.internal.utils import * diff --git a/box_sdk_gen/internal/errors.py b/box_sdk_gen/internal/errors.py new file mode 100644 index 00000000..856fd6a3 --- /dev/null +++ b/box_sdk_gen/internal/errors.py @@ -0,0 +1,6 @@ +class GeneratedCodeError(Exception): + def __init__(self, message: str, **kwargs): + super().__init__(message) + self.name = 'GeneratedCodeError' + self.message = message + self.extra = kwargs diff --git a/box_sdk_gen/internal/utils.py b/box_sdk_gen/internal/utils.py index 21ce23e3..d34cbaff 100644 --- a/box_sdk_gen/internal/utils.py +++ b/box_sdk_gen/internal/utils.py @@ -17,8 +17,8 @@ jwt, default_backend, serialization = None, None, None from .base_object import BaseObject -from ..serialization.json.json_data import sd_to_json -from ..serialization.json.serializer import serialize +from ..serialization.json import sd_to_json +from ..serialization.json import serialize from .null_value import null ByteStream = BufferedIOBase diff --git a/box_sdk_gen/managers/ai.py b/box_sdk_gen/managers/ai.py index bd6967d6..c25e8495 100644 --- a/box_sdk_gen/managers/ai.py +++ b/box_sdk_gen/managers/ai.py @@ -8,9 +8,9 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.utils import to_string @@ -28,6 +28,8 @@ from box_sdk_gen.schemas.ai_ask import AiAsk +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.ai_response import AiResponse from box_sdk_gen.schemas.ai_text_gen import AiTextGen @@ -62,9 +64,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json class CreateAiAskMode(str, Enum): diff --git a/box_sdk_gen/managers/app_item_associations.py b/box_sdk_gen/managers/app_item_associations.py index ab130994..1172023f 100644 --- a/box_sdk_gen/managers/app_item_associations.py +++ b/box_sdk_gen/managers/app_item_associations.py @@ -4,7 +4,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -22,7 +24,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -30,7 +32,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class AppItemAssociationsManager: diff --git a/box_sdk_gen/managers/authorization.py b/box_sdk_gen/managers/authorization.py index 000c0c14..b36bbc55 100644 --- a/box_sdk_gen/managers/authorization.py +++ b/box_sdk_gen/managers/authorization.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.schemas.post_o_auth_2_token import PostOAuth2TokenGrantTypeField @@ -18,6 +18,8 @@ from box_sdk_gen.networking.fetch_options import ResponseFormat +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.access_token import AccessToken from box_sdk_gen.schemas.o_auth_2_error import OAuth2Error @@ -40,7 +42,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -48,7 +50,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class AuthorizeUserResponseType(str, Enum): diff --git a/box_sdk_gen/managers/avatars.py b/box_sdk_gen/managers/avatars.py index 3394c5ff..b4fc31f4 100644 --- a/box_sdk_gen/managers/avatars.py +++ b/box_sdk_gen/managers/avatars.py @@ -4,12 +4,14 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.user_avatar import UserAvatar from box_sdk_gen.networking.auth import Authentication @@ -28,11 +30,11 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import MultipartItem -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class AvatarsManager: diff --git a/box_sdk_gen/managers/chunked_uploads.py b/box_sdk_gen/managers/chunked_uploads.py index bda90bb0..6a55b7d8 100644 --- a/box_sdk_gen/managers/chunked_uploads.py +++ b/box_sdk_gen/managers/chunked_uploads.py @@ -4,9 +4,9 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.utils import to_string @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.uploaded_part import UploadedPart from box_sdk_gen.schemas.upload_parts import UploadParts @@ -48,9 +50,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.internal.utils import generate_byte_stream_from_buffer diff --git a/box_sdk_gen/managers/classifications.py b/box_sdk_gen/managers/classifications.py index 6fbb1697..62fa56d0 100644 --- a/box_sdk_gen/managers/classifications.py +++ b/box_sdk_gen/managers/classifications.py @@ -8,9 +8,9 @@ from typing import List -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,7 +36,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class AddClassificationRequestBodyOpField(str, Enum): diff --git a/box_sdk_gen/managers/collaboration_allowlist_entries.py b/box_sdk_gen/managers/collaboration_allowlist_entries.py index 9fa914bf..94e93d12 100644 --- a/box_sdk_gen/managers/collaboration_allowlist_entries.py +++ b/box_sdk_gen/managers/collaboration_allowlist_entries.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.collaboration_allowlist_entry import ( CollaborationAllowlistEntry, ) @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateCollaborationWhitelistEntryDirection(str, Enum): diff --git a/box_sdk_gen/managers/collaboration_allowlist_exempt_targets.py b/box_sdk_gen/managers/collaboration_allowlist_exempt_targets.py index 788cc0b4..db1d6d21 100644 --- a/box_sdk_gen/managers/collaboration_allowlist_exempt_targets.py +++ b/box_sdk_gen/managers/collaboration_allowlist_exempt_targets.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.collaboration_allowlist_exempt_target import ( CollaborationAllowlistExemptTarget, ) @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateCollaborationWhitelistExemptTargetUser(BaseObject): diff --git a/box_sdk_gen/managers/collections.py b/box_sdk_gen/managers/collections.py index 84060ac3..993e33b0 100644 --- a/box_sdk_gen/managers/collections.py +++ b/box_sdk_gen/managers/collections.py @@ -6,7 +6,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.items_offset_paginated import ItemsOffsetPaginated from box_sdk_gen.schemas.collection import Collection @@ -28,7 +30,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -36,7 +38,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CollectionsManager: diff --git a/box_sdk_gen/managers/comments.py b/box_sdk_gen/managers/comments.py index 7c2c0bc4..106a7b53 100644 --- a/box_sdk_gen/managers/comments.py +++ b/box_sdk_gen/managers/comments.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.comment_full import CommentFull from box_sdk_gen.networking.auth import Authentication @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateCommentItemTypeField(str, Enum): diff --git a/box_sdk_gen/managers/device_pinners.py b/box_sdk_gen/managers/device_pinners.py index 9525127c..e95fe1b3 100644 --- a/box_sdk_gen/managers/device_pinners.py +++ b/box_sdk_gen/managers/device_pinners.py @@ -6,7 +6,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.device_pinners import DevicePinners from box_sdk_gen.networking.auth import Authentication @@ -32,9 +34,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetEnterpriseDevicePinnersDirection(str, Enum): diff --git a/box_sdk_gen/managers/downloads.py b/box_sdk_gen/managers/downloads.py index 7404f0ef..3769d667 100644 --- a/box_sdk_gen/managers/downloads.py +++ b/box_sdk_gen/managers/downloads.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -18,7 +20,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions diff --git a/box_sdk_gen/managers/email_aliases.py b/box_sdk_gen/managers/email_aliases.py index 62677404..00aa475e 100644 --- a/box_sdk_gen/managers/email_aliases.py +++ b/box_sdk_gen/managers/email_aliases.py @@ -4,9 +4,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.email_alias import EmailAlias from box_sdk_gen.networking.auth import Authentication @@ -32,9 +34,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class EmailAliasesManager: diff --git a/box_sdk_gen/managers/events.py b/box_sdk_gen/managers/events.py index 678111ad..5e6caac9 100644 --- a/box_sdk_gen/managers/events.py +++ b/box_sdk_gen/managers/events.py @@ -4,7 +4,7 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from typing import List @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.events import Events from box_sdk_gen.networking.auth import Authentication @@ -34,11 +36,11 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json class GetEventsStreamType(str, Enum): diff --git a/box_sdk_gen/managers/file_classifications.py b/box_sdk_gen/managers/file_classifications.py index 5299b258..515f93ff 100644 --- a/box_sdk_gen/managers/file_classifications.py +++ b/box_sdk_gen/managers/file_classifications.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from typing import List @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -36,9 +38,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateClassificationOnFileRequestBodyOpField(str, Enum): diff --git a/box_sdk_gen/managers/file_metadata.py b/box_sdk_gen/managers/file_metadata.py index cb9b6cbd..1b386b46 100644 --- a/box_sdk_gen/managers/file_metadata.py +++ b/box_sdk_gen/managers/file_metadata.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from typing import List @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.metadata_full import MetadataFull from box_sdk_gen.networking.auth import Authentication @@ -38,9 +40,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetFileMetadataByIdScope(str, Enum): diff --git a/box_sdk_gen/managers/file_requests.py b/box_sdk_gen/managers/file_requests.py index 441bb467..a7076cc5 100644 --- a/box_sdk_gen/managers/file_requests.py +++ b/box_sdk_gen/managers/file_requests.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.file_request_update_request import FileRequestUpdateRequest from box_sdk_gen.schemas.file_request_copy_request import FileRequestCopyRequest @@ -40,9 +42,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateFileRequestByIdStatus(str, Enum): diff --git a/box_sdk_gen/managers/file_version_legal_holds.py b/box_sdk_gen/managers/file_version_legal_holds.py index 85592e1a..83eda8fe 100644 --- a/box_sdk_gen/managers/file_version_legal_holds.py +++ b/box_sdk_gen/managers/file_version_legal_holds.py @@ -4,7 +4,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.file_version_legal_holds import FileVersionLegalHolds from box_sdk_gen.networking.auth import Authentication @@ -30,9 +32,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class FileVersionLegalHoldsManager: diff --git a/box_sdk_gen/managers/file_version_retentions.py b/box_sdk_gen/managers/file_version_retentions.py index 123cdf3e..588d243f 100644 --- a/box_sdk_gen/managers/file_version_retentions.py +++ b/box_sdk_gen/managers/file_version_retentions.py @@ -6,7 +6,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.file_version_retention import FileVersionRetention from box_sdk_gen.networking.auth import Authentication @@ -26,7 +28,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -34,7 +36,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetFileVersionRetentionsDispositionAction(str, Enum): diff --git a/box_sdk_gen/managers/file_versions.py b/box_sdk_gen/managers/file_versions.py index cb3cc7b0..825a4879 100644 --- a/box_sdk_gen/managers/file_versions.py +++ b/box_sdk_gen/managers/file_versions.py @@ -8,13 +8,13 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.null_value import NullValue from typing import Union -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -22,6 +22,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.file_version_full import FileVersionFull from box_sdk_gen.networking.auth import Authentication @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class PromoteFileVersionType(str, Enum): diff --git a/box_sdk_gen/managers/file_watermarks.py b/box_sdk_gen/managers/file_watermarks.py index f204a650..2fb2ca83 100644 --- a/box_sdk_gen/managers/file_watermarks.py +++ b/box_sdk_gen/managers/file_watermarks.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,9 +36,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateFileWatermarkWatermarkImprintField(str, Enum): diff --git a/box_sdk_gen/managers/files.py b/box_sdk_gen/managers/files.py index 34e1e192..5dae07e5 100644 --- a/box_sdk_gen/managers/files.py +++ b/box_sdk_gen/managers/files.py @@ -10,13 +10,13 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.null_value import NullValue from typing import Union -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/folder_classifications.py b/box_sdk_gen/managers/folder_classifications.py index f3f1a9ef..d8ea889a 100644 --- a/box_sdk_gen/managers/folder_classifications.py +++ b/box_sdk_gen/managers/folder_classifications.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from typing import List @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -36,9 +38,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateClassificationOnFolderRequestBodyOpField(str, Enum): diff --git a/box_sdk_gen/managers/folder_locks.py b/box_sdk_gen/managers/folder_locks.py index bf2800e0..2da5c2c4 100644 --- a/box_sdk_gen/managers/folder_locks.py +++ b/box_sdk_gen/managers/folder_locks.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.folder_lock import FolderLock from box_sdk_gen.networking.auth import Authentication @@ -28,7 +30,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -36,7 +38,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateFolderLockLockedOperations(BaseObject): diff --git a/box_sdk_gen/managers/folder_metadata.py b/box_sdk_gen/managers/folder_metadata.py index d75c54d7..96a6a87f 100644 --- a/box_sdk_gen/managers/folder_metadata.py +++ b/box_sdk_gen/managers/folder_metadata.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from typing import List @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.metadata_full import MetadataFull from box_sdk_gen.networking.auth import Authentication @@ -38,9 +40,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetFolderMetadataByIdScope(str, Enum): diff --git a/box_sdk_gen/managers/folder_watermarks.py b/box_sdk_gen/managers/folder_watermarks.py index 53bdf6a2..bb57d542 100644 --- a/box_sdk_gen/managers/folder_watermarks.py +++ b/box_sdk_gen/managers/folder_watermarks.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,9 +36,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateFolderWatermarkWatermarkImprintField(str, Enum): diff --git a/box_sdk_gen/managers/folders.py b/box_sdk_gen/managers/folders.py index dd4f602d..b3e5f3ef 100644 --- a/box_sdk_gen/managers/folders.py +++ b/box_sdk_gen/managers/folders.py @@ -10,13 +10,13 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.null_value import NullValue from typing import Union -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.items import Items from box_sdk_gen.networking.auth import Authentication @@ -36,7 +38,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -44,7 +46,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/groups.py b/box_sdk_gen/managers/groups.py index 8ed1cb2b..8c6b8ca9 100644 --- a/box_sdk_gen/managers/groups.py +++ b/box_sdk_gen/managers/groups.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.group_full import GroupFull from box_sdk_gen.networking.auth import Authentication @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateGroupInvitabilityLevel(str, Enum): diff --git a/box_sdk_gen/managers/integration_mappings.py b/box_sdk_gen/managers/integration_mappings.py index b7d16459..f145b25f 100644 --- a/box_sdk_gen/managers/integration_mappings.py +++ b/box_sdk_gen/managers/integration_mappings.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.integration_mapping import IntegrationMapping from box_sdk_gen.schemas.integration_mapping_slack_create_request import ( @@ -44,7 +46,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -52,7 +54,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetSlackIntegrationMappingPartnerItemType(str, Enum): diff --git a/box_sdk_gen/managers/invites.py b/box_sdk_gen/managers/invites.py index d9aeef1c..b4cde3b7 100644 --- a/box_sdk_gen/managers/invites.py +++ b/box_sdk_gen/managers/invites.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -28,7 +30,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -36,7 +38,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateInviteEnterprise(BaseObject): diff --git a/box_sdk_gen/managers/legal_hold_policies.py b/box_sdk_gen/managers/legal_hold_policies.py index 848e5fbc..abddee7d 100644 --- a/box_sdk_gen/managers/legal_hold_policies.py +++ b/box_sdk_gen/managers/legal_hold_policies.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.legal_hold_policy import LegalHoldPolicy from box_sdk_gen.networking.auth import Authentication @@ -28,7 +30,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -36,7 +38,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/legal_hold_policy_assignments.py b/box_sdk_gen/managers/legal_hold_policy_assignments.py index 544559dd..46c14740 100644 --- a/box_sdk_gen/managers/legal_hold_policy_assignments.py +++ b/box_sdk_gen/managers/legal_hold_policy_assignments.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.legal_hold_policy_assignment import LegalHoldPolicyAssignment from box_sdk_gen.schemas.files_on_hold import FilesOnHold @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetLegalHoldPolicyAssignmentsAssignToType(str, Enum): diff --git a/box_sdk_gen/managers/list_collaborations.py b/box_sdk_gen/managers/list_collaborations.py index ad25da51..602b49f6 100644 --- a/box_sdk_gen/managers/list_collaborations.py +++ b/box_sdk_gen/managers/list_collaborations.py @@ -8,7 +8,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.collaborations_offset_paginated import ( CollaborationsOffsetPaginated, ) @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetCollaborationsStatus(str, Enum): diff --git a/box_sdk_gen/managers/memberships.py b/box_sdk_gen/managers/memberships.py index 68818ddb..22a9eb1f 100644 --- a/box_sdk_gen/managers/memberships.py +++ b/box_sdk_gen/managers/memberships.py @@ -8,7 +8,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.null_value import NullValue @@ -16,7 +16,7 @@ from typing import List -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.group_membership import GroupMembership from box_sdk_gen.networking.auth import Authentication @@ -36,7 +38,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -44,7 +46,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateGroupMembershipUser(BaseObject): diff --git a/box_sdk_gen/managers/metadata_cascade_policies.py b/box_sdk_gen/managers/metadata_cascade_policies.py index 5eb07040..9e69255e 100644 --- a/box_sdk_gen/managers/metadata_cascade_policies.py +++ b/box_sdk_gen/managers/metadata_cascade_policies.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.metadata_cascade_policy import MetadataCascadePolicy from box_sdk_gen.schemas.conflict_error import ConflictError @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateMetadataCascadePolicyScope(str, Enum): diff --git a/box_sdk_gen/managers/metadata_templates.py b/box_sdk_gen/managers/metadata_templates.py index d844b32d..e1d38b4a 100644 --- a/box_sdk_gen/managers/metadata_templates.py +++ b/box_sdk_gen/managers/metadata_templates.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.metadata_template import MetadataTemplate from box_sdk_gen.networking.auth import Authentication @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetMetadataTemplateScope(str, Enum): diff --git a/box_sdk_gen/managers/recent_items.py b/box_sdk_gen/managers/recent_items.py index 5a8c0345..c83975c1 100644 --- a/box_sdk_gen/managers/recent_items.py +++ b/box_sdk_gen/managers/recent_items.py @@ -6,7 +6,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -24,7 +26,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -32,7 +34,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class RecentItemsManager: diff --git a/box_sdk_gen/managers/retention_policies.py b/box_sdk_gen/managers/retention_policies.py index eeaf6d66..90017d54 100644 --- a/box_sdk_gen/managers/retention_policies.py +++ b/box_sdk_gen/managers/retention_policies.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.internal.null_value import NullValue @@ -22,6 +22,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.retention_policy import RetentionPolicy from box_sdk_gen.schemas.user_mini import UserMini @@ -38,7 +40,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -46,7 +48,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetRetentionPoliciesPolicyType(str, Enum): diff --git a/box_sdk_gen/managers/retention_policy_assignments.py b/box_sdk_gen/managers/retention_policy_assignments.py index f1b74a1a..14a07cd5 100644 --- a/box_sdk_gen/managers/retention_policy_assignments.py +++ b/box_sdk_gen/managers/retention_policy_assignments.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.retention_policy_assignment import RetentionPolicyAssignment from box_sdk_gen.schemas.files_under_retention import FilesUnderRetention @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetRetentionPolicyAssignmentsType(str, Enum): diff --git a/box_sdk_gen/managers/search.py b/box_sdk_gen/managers/search.py index 2936e2cb..42b11ca3 100644 --- a/box_sdk_gen/managers/search.py +++ b/box_sdk_gen/managers/search.py @@ -8,9 +8,9 @@ from typing import List -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.utils import to_string @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.metadata_query import MetadataQuery +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.search_results import SearchResults from box_sdk_gen.schemas.search_results_with_shared_links import ( @@ -48,9 +50,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json class SearchByMetadataQueryOrderByDirectionField(str, Enum): diff --git a/box_sdk_gen/managers/session_termination.py b/box_sdk_gen/managers/session_termination.py index 6d30f4ff..34f74eb1 100644 --- a/box_sdk_gen/managers/session_termination.py +++ b/box_sdk_gen/managers/session_termination.py @@ -4,9 +4,9 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -30,7 +32,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class SessionTerminationManager: diff --git a/box_sdk_gen/managers/shared_links_files.py b/box_sdk_gen/managers/shared_links_files.py index 34c09a5d..9ab0e379 100644 --- a/box_sdk_gen/managers/shared_links_files.py +++ b/box_sdk_gen/managers/shared_links_files.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.internal.null_value import NullValue @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/shared_links_folders.py b/box_sdk_gen/managers/shared_links_folders.py index f99a9e0d..c988f45e 100644 --- a/box_sdk_gen/managers/shared_links_folders.py +++ b/box_sdk_gen/managers/shared_links_folders.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.internal.null_value import NullValue @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/shared_links_web_links.py b/box_sdk_gen/managers/shared_links_web_links.py index 19cc6c15..ca5ae936 100644 --- a/box_sdk_gen/managers/shared_links_web_links.py +++ b/box_sdk_gen/managers/shared_links_web_links.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.internal.null_value import NullValue @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -42,7 +44,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/shield_information_barrier_reports.py b/box_sdk_gen/managers/shield_information_barrier_reports.py index 9b1704cf..6531fd56 100644 --- a/box_sdk_gen/managers/shield_information_barrier_reports.py +++ b/box_sdk_gen/managers/shield_information_barrier_reports.py @@ -4,9 +4,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.shield_information_barrier_report import ( ShieldInformationBarrierReport, ) @@ -38,7 +40,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -46,7 +48,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class ShieldInformationBarrierReportsManager: diff --git a/box_sdk_gen/managers/shield_information_barrier_segment_members.py b/box_sdk_gen/managers/shield_information_barrier_segment_members.py index 92348e2f..358d32e0 100644 --- a/box_sdk_gen/managers/shield_information_barrier_segment_members.py +++ b/box_sdk_gen/managers/shield_information_barrier_segment_members.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.shield_information_barrier_segment_members import ( ShieldInformationBarrierSegmentMembers, ) @@ -46,9 +48,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateShieldInformationBarrierSegmentMemberType(str, Enum): diff --git a/box_sdk_gen/managers/shield_information_barrier_segment_restrictions.py b/box_sdk_gen/managers/shield_information_barrier_segment_restrictions.py index 32881f69..74bad502 100644 --- a/box_sdk_gen/managers/shield_information_barrier_segment_restrictions.py +++ b/box_sdk_gen/managers/shield_information_barrier_segment_restrictions.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.shield_information_barrier_segment_restrictions import ( ShieldInformationBarrierSegmentRestrictions, ) @@ -44,9 +46,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateShieldInformationBarrierSegmentRestrictionType(str, Enum): diff --git a/box_sdk_gen/managers/shield_information_barrier_segments.py b/box_sdk_gen/managers/shield_information_barrier_segments.py index d93d1d5a..916003aa 100644 --- a/box_sdk_gen/managers/shield_information_barrier_segments.py +++ b/box_sdk_gen/managers/shield_information_barrier_segments.py @@ -4,13 +4,13 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.null_value import NullValue from typing import Union -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.shield_information_barrier_segments import ( ShieldInformationBarrierSegments, ) @@ -44,9 +46,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class ShieldInformationBarrierSegmentsManager: diff --git a/box_sdk_gen/managers/shield_information_barriers.py b/box_sdk_gen/managers/shield_information_barriers.py index 1ecf6993..0451e325 100644 --- a/box_sdk_gen/managers/shield_information_barriers.py +++ b/box_sdk_gen/managers/shield_information_barriers.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.shield_information_barriers import ShieldInformationBarriers from box_sdk_gen.schemas.enterprise_base import EnterpriseBase @@ -36,9 +38,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateShieldInformationBarrierStatusStatus(str, Enum): diff --git a/box_sdk_gen/managers/sign_requests.py b/box_sdk_gen/managers/sign_requests.py index 01b67a46..8d5bb5c3 100644 --- a/box_sdk_gen/managers/sign_requests.py +++ b/box_sdk_gen/managers/sign_requests.py @@ -6,7 +6,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from typing import List @@ -14,7 +14,7 @@ from typing import Union -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -30,6 +30,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.sign_requests import SignRequests from box_sdk_gen.schemas.sign_request_create_request import SignRequestCreateRequest @@ -50,9 +52,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateSignRequestSignatureColor(str, Enum): diff --git a/box_sdk_gen/managers/sign_templates.py b/box_sdk_gen/managers/sign_templates.py index 2862787b..51d0dd80 100644 --- a/box_sdk_gen/managers/sign_templates.py +++ b/box_sdk_gen/managers/sign_templates.py @@ -4,7 +4,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.sign_template import SignTemplate from box_sdk_gen.networking.auth import Authentication @@ -24,7 +26,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -32,7 +34,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class SignTemplatesManager: diff --git a/box_sdk_gen/managers/skills.py b/box_sdk_gen/managers/skills.py index 391c6710..47b70c7f 100644 --- a/box_sdk_gen/managers/skills.py +++ b/box_sdk_gen/managers/skills.py @@ -12,9 +12,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -22,6 +22,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.keyword_skill_card import KeywordSkillCard from box_sdk_gen.schemas.timeline_skill_card import TimelineSkillCard @@ -46,9 +48,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UpdateBoxSkillCardsOnFileRequestBodyOpField(str, Enum): diff --git a/box_sdk_gen/managers/storage_policies.py b/box_sdk_gen/managers/storage_policies.py index 8bb97d30..948e12fa 100644 --- a/box_sdk_gen/managers/storage_policies.py +++ b/box_sdk_gen/managers/storage_policies.py @@ -6,7 +6,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.storage_policy import StoragePolicy from box_sdk_gen.networking.auth import Authentication @@ -26,7 +28,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -34,7 +36,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class StoragePoliciesManager: diff --git a/box_sdk_gen/managers/storage_policy_assignments.py b/box_sdk_gen/managers/storage_policy_assignments.py index cf700486..b90a9ab3 100644 --- a/box_sdk_gen/managers/storage_policy_assignments.py +++ b/box_sdk_gen/managers/storage_policy_assignments.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.storage_policy_assignment import StoragePolicyAssignment from box_sdk_gen.networking.auth import Authentication @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetStoragePolicyAssignmentsResolvedForType(str, Enum): diff --git a/box_sdk_gen/managers/task_assignments.py b/box_sdk_gen/managers/task_assignments.py index e84e6ddb..62ab687e 100644 --- a/box_sdk_gen/managers/task_assignments.py +++ b/box_sdk_gen/managers/task_assignments.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.task_assignment import TaskAssignment from box_sdk_gen.networking.auth import Authentication @@ -36,9 +38,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateTaskAssignmentTaskTypeField(str, Enum): diff --git a/box_sdk_gen/managers/tasks.py b/box_sdk_gen/managers/tasks.py index accdcf43..49f058f8 100644 --- a/box_sdk_gen/managers/tasks.py +++ b/box_sdk_gen/managers/tasks.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.task import Task from box_sdk_gen.networking.auth import Authentication @@ -36,9 +38,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/terms_of_service_user_statuses.py b/box_sdk_gen/managers/terms_of_service_user_statuses.py index 17679a90..b9804a01 100644 --- a/box_sdk_gen/managers/terms_of_service_user_statuses.py +++ b/box_sdk_gen/managers/terms_of_service_user_statuses.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.terms_of_service_user_status import TermsOfServiceUserStatus from box_sdk_gen.networking.auth import Authentication @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateTermsOfServiceStatusForUserTosTypeField(str, Enum): diff --git a/box_sdk_gen/managers/terms_of_services.py b/box_sdk_gen/managers/terms_of_services.py index 999221c7..47b69b81 100644 --- a/box_sdk_gen/managers/terms_of_services.py +++ b/box_sdk_gen/managers/terms_of_services.py @@ -6,9 +6,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.terms_of_service import TermsOfService from box_sdk_gen.networking.auth import Authentication @@ -28,7 +30,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -36,7 +38,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetTermsOfServiceTosType(str, Enum): diff --git a/box_sdk_gen/managers/transfer.py b/box_sdk_gen/managers/transfer.py index 18013b58..07034d55 100644 --- a/box_sdk_gen/managers/transfer.py +++ b/box_sdk_gen/managers/transfer.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -28,7 +30,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -36,7 +38,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class TransferOwnedFolderOwnedBy(BaseObject): diff --git a/box_sdk_gen/managers/trashed_files.py b/box_sdk_gen/managers/trashed_files.py index c9cdcd23..2543dbd5 100644 --- a/box_sdk_gen/managers/trashed_files.py +++ b/box_sdk_gen/managers/trashed_files.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.trash_file import TrashFile from box_sdk_gen.networking.auth import Authentication @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class RestoreFileFromTrashParent(BaseObject): diff --git a/box_sdk_gen/managers/trashed_folders.py b/box_sdk_gen/managers/trashed_folders.py index 9fd0e33f..87f02139 100644 --- a/box_sdk_gen/managers/trashed_folders.py +++ b/box_sdk_gen/managers/trashed_folders.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.trash_folder import TrashFolder from box_sdk_gen.networking.auth import Authentication @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class RestoreFolderFromTrashParent(BaseObject): diff --git a/box_sdk_gen/managers/trashed_items.py b/box_sdk_gen/managers/trashed_items.py index aca4a949..933d4f19 100644 --- a/box_sdk_gen/managers/trashed_items.py +++ b/box_sdk_gen/managers/trashed_items.py @@ -8,7 +8,7 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -26,7 +28,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -34,7 +36,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetTrashedItemsDirection(str, Enum): diff --git a/box_sdk_gen/managers/trashed_web_links.py b/box_sdk_gen/managers/trashed_web_links.py index 5e79ecbd..7ab1a808 100644 --- a/box_sdk_gen/managers/trashed_web_links.py +++ b/box_sdk_gen/managers/trashed_web_links.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.trash_web_link import TrashWebLink from box_sdk_gen.networking.auth import Authentication @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class RestoreWeblinkFromTrashParent(BaseObject): diff --git a/box_sdk_gen/managers/uploads.py b/box_sdk_gen/managers/uploads.py index 022af2c8..73fbdad1 100644 --- a/box_sdk_gen/managers/uploads.py +++ b/box_sdk_gen/managers/uploads.py @@ -8,9 +8,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.upload_url import UploadUrl from box_sdk_gen.schemas.conflict_error import ConflictError @@ -34,7 +36,7 @@ from box_sdk_gen.internal.utils import DateTime -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -44,7 +46,7 @@ from box_sdk_gen.networking.fetch_options import MultipartItem -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class UploadFileVersionAttributes(BaseObject): diff --git a/box_sdk_gen/managers/user_collaborations.py b/box_sdk_gen/managers/user_collaborations.py index 5c3f4a3b..e53994d3 100644 --- a/box_sdk_gen/managers/user_collaborations.py +++ b/box_sdk_gen/managers/user_collaborations.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -30,7 +32,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -38,7 +40,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/users.py b/box_sdk_gen/managers/users.py index ec38e3c0..65d865af 100644 --- a/box_sdk_gen/managers/users.py +++ b/box_sdk_gen/managers/users.py @@ -10,9 +10,9 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.internal.null_value import NullValue @@ -24,6 +24,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.user_full import UserFull from box_sdk_gen.schemas.tracking_code import TrackingCode @@ -38,7 +40,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -46,7 +48,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class GetUsersUserType(str, Enum): diff --git a/box_sdk_gen/managers/web_links.py b/box_sdk_gen/managers/web_links.py index ad70c3a6..2c6f51ca 100644 --- a/box_sdk_gen/managers/web_links.py +++ b/box_sdk_gen/managers/web_links.py @@ -6,9 +6,9 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.internal.utils import to_string @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.networking.auth import Authentication from box_sdk_gen.networking.network import NetworkSession @@ -34,9 +36,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/managers/webhooks.py b/box_sdk_gen/managers/webhooks.py index 403fe6ff..ee5111ba 100644 --- a/box_sdk_gen/managers/webhooks.py +++ b/box_sdk_gen/managers/webhooks.py @@ -8,11 +8,11 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from typing import List -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.webhook import Webhook from box_sdk_gen.networking.auth import Authentication @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class CreateWebhookTargetTypeField(str, Enum): diff --git a/box_sdk_gen/managers/workflows.py b/box_sdk_gen/managers/workflows.py index 464e1270..555d4bef 100644 --- a/box_sdk_gen/managers/workflows.py +++ b/box_sdk_gen/managers/workflows.py @@ -8,11 +8,11 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from typing import List -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.client_error import ClientError +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.outcome import Outcome from box_sdk_gen.networking.auth import Authentication @@ -32,7 +34,7 @@ from box_sdk_gen.internal.utils import ByteStream -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json from box_sdk_gen.networking.fetch_options import FetchOptions @@ -40,7 +42,7 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData class StartWorkflowType(str, Enum): diff --git a/box_sdk_gen/managers/zip_downloads.py b/box_sdk_gen/managers/zip_downloads.py index 37acb5b7..22970cc9 100644 --- a/box_sdk_gen/managers/zip_downloads.py +++ b/box_sdk_gen/managers/zip_downloads.py @@ -8,9 +8,9 @@ from typing import Dict -from box_sdk_gen.serialization.json.serializer import serialize +from box_sdk_gen.serialization.json import serialize -from box_sdk_gen.serialization.json.serializer import deserialize +from box_sdk_gen.serialization.json import deserialize from box_sdk_gen.networking.fetch_options import ResponseFormat @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.zip_download_request import ZipDownloadRequest +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.schemas.zip_download_status import ZipDownloadStatus from box_sdk_gen.networking.auth import Authentication @@ -38,9 +40,9 @@ from box_sdk_gen.networking.fetch import fetch -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData -from box_sdk_gen.serialization.json.json_data import sd_to_json +from box_sdk_gen.serialization.json import sd_to_json class CreateZipDownloadItemsTypeField(str, Enum): diff --git a/box_sdk_gen/networking/__init__.py b/box_sdk_gen/networking/__init__.py index 0046f016..bbbd1796 100644 --- a/box_sdk_gen/networking/__init__.py +++ b/box_sdk_gen/networking/__init__.py @@ -1,15 +1,15 @@ -from box_sdk_gen.networking.fetch import * +from box_sdk_gen.networking.proxy_config import * from box_sdk_gen.networking.network import * -from box_sdk_gen.networking.proxy_config import * - from box_sdk_gen.networking.auth import * from box_sdk_gen.networking.fetch_options import * from box_sdk_gen.networking.fetch_response import * +from box_sdk_gen.networking.fetch import * + from box_sdk_gen.networking.base_urls import * from box_sdk_gen.networking.version import * diff --git a/box_sdk_gen/networking/base_urls.py b/box_sdk_gen/networking/base_urls.py index ceb0e793..6b59444f 100644 --- a/box_sdk_gen/networking/base_urls.py +++ b/box_sdk_gen/networking/base_urls.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class BaseUrls(BaseObject): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/networking/fetch.py b/box_sdk_gen/networking/fetch.py index 1d429fe1..0aedc655 100644 --- a/box_sdk_gen/networking/fetch.py +++ b/box_sdk_gen/networking/fetch.py @@ -17,7 +17,7 @@ from .fetch_response import FetchResponse from ..box.errors import BoxAPIError, BoxSDKError, RequestInfo, ResponseInfo from ..internal.utils import ByteStream, ResponseByteStream -from ..serialization.json.json_data import ( +from ..serialization.json import ( sd_to_json, sd_to_url_params, json_to_serialized_data, diff --git a/box_sdk_gen/networking/fetch_options.py b/box_sdk_gen/networking/fetch_options.py index 020dfcdb..e3ab6e62 100644 --- a/box_sdk_gen/networking/fetch_options.py +++ b/box_sdk_gen/networking/fetch_options.py @@ -8,7 +8,7 @@ from box_sdk_gen.networking.auth import Authentication -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.networking.network import NetworkSession diff --git a/box_sdk_gen/networking/fetch_response.py b/box_sdk_gen/networking/fetch_response.py index 6bd3f45c..eadfe05a 100644 --- a/box_sdk_gen/networking/fetch_response.py +++ b/box_sdk_gen/networking/fetch_response.py @@ -2,7 +2,7 @@ from typing import Dict -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.internal.utils import ByteStream diff --git a/box_sdk_gen/schemas/access_token.py b/box_sdk_gen/schemas/access_token.py index 840c6954..2b408204 100644 --- a/box_sdk_gen/schemas/access_token.py +++ b/box_sdk_gen/schemas/access_token.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.file_or_folder_scope import FileOrFolderScope +from box_sdk_gen.box.errors import BoxSDKError + class AccessTokenTokenTypeField(str, Enum): BEARER = 'bearer' diff --git a/box_sdk_gen/schemas/ai_agent_ask.py b/box_sdk_gen/schemas/ai_agent_ask.py index b10c73c1..ebd95d54 100644 --- a/box_sdk_gen/schemas/ai_agent_ask.py +++ b/box_sdk_gen/schemas/ai_agent_ask.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.ai_agent_basic_text_tool import AiAgentBasicTextTool +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentAskTypeField(str, Enum): AI_AGENT_ASK = 'ai_agent_ask' diff --git a/box_sdk_gen/schemas/ai_agent_basic_gen_tool.py b/box_sdk_gen/schemas/ai_agent_basic_gen_tool.py index e1bfae68..8771c298 100644 --- a/box_sdk_gen/schemas/ai_agent_basic_gen_tool.py +++ b/box_sdk_gen/schemas/ai_agent_basic_gen_tool.py @@ -22,6 +22,8 @@ AiAgentLongTextToolTextGen, ) +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentBasicGenTool(AiAgentLongTextToolTextGen): def __init__( diff --git a/box_sdk_gen/schemas/ai_agent_basic_text_tool.py b/box_sdk_gen/schemas/ai_agent_basic_text_tool.py index 0dcb792d..7a7dd102 100644 --- a/box_sdk_gen/schemas/ai_agent_basic_text_tool.py +++ b/box_sdk_gen/schemas/ai_agent_basic_text_tool.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.ai_agent_basic_text_tool_base import AiAgentBasicTextToolBase +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentBasicTextTool(AiAgentBasicTextToolBase): def __init__( diff --git a/box_sdk_gen/schemas/ai_agent_basic_text_tool_base.py b/box_sdk_gen/schemas/ai_agent_basic_text_tool_base.py index df7a9cea..0de1c57b 100644 --- a/box_sdk_gen/schemas/ai_agent_basic_text_tool_base.py +++ b/box_sdk_gen/schemas/ai_agent_basic_text_tool_base.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.ai_llm_endpoint_params_aws import AiLlmEndpointParamsAws +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentBasicTextToolBase(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/ai_agent_basic_text_tool_text_gen.py b/box_sdk_gen/schemas/ai_agent_basic_text_tool_text_gen.py index fc1d1870..8b46d1ed 100644 --- a/box_sdk_gen/schemas/ai_agent_basic_text_tool_text_gen.py +++ b/box_sdk_gen/schemas/ai_agent_basic_text_tool_text_gen.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.ai_agent_basic_text_tool_base import AiAgentBasicTextToolBase +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentBasicTextToolTextGen(AiAgentBasicTextToolBase): def __init__( diff --git a/box_sdk_gen/schemas/ai_agent_extract.py b/box_sdk_gen/schemas/ai_agent_extract.py index db42eec8..d4038626 100644 --- a/box_sdk_gen/schemas/ai_agent_extract.py +++ b/box_sdk_gen/schemas/ai_agent_extract.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.ai_agent_basic_text_tool import AiAgentBasicTextTool +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentExtractTypeField(str, Enum): AI_AGENT_EXTRACT = 'ai_agent_extract' diff --git a/box_sdk_gen/schemas/ai_agent_extract_structured.py b/box_sdk_gen/schemas/ai_agent_extract_structured.py index 7a5473f4..ec31727b 100644 --- a/box_sdk_gen/schemas/ai_agent_extract_structured.py +++ b/box_sdk_gen/schemas/ai_agent_extract_structured.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.ai_agent_basic_text_tool import AiAgentBasicTextTool +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentExtractStructuredTypeField(str, Enum): AI_AGENT_EXTRACT_STRUCTURED = 'ai_agent_extract_structured' diff --git a/box_sdk_gen/schemas/ai_agent_long_text_tool.py b/box_sdk_gen/schemas/ai_agent_long_text_tool.py index 54865b67..0a332920 100644 --- a/box_sdk_gen/schemas/ai_agent_long_text_tool.py +++ b/box_sdk_gen/schemas/ai_agent_long_text_tool.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.ai_agent_basic_text_tool import AiAgentBasicTextTool +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentLongTextToolEmbeddingsStrategyField(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/ai_agent_long_text_tool_text_gen.py b/box_sdk_gen/schemas/ai_agent_long_text_tool_text_gen.py index e2c6e191..2a5bf847 100644 --- a/box_sdk_gen/schemas/ai_agent_long_text_tool_text_gen.py +++ b/box_sdk_gen/schemas/ai_agent_long_text_tool_text_gen.py @@ -16,6 +16,8 @@ AiAgentBasicTextToolTextGen, ) +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentLongTextToolTextGenEmbeddingsStrategyField(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/ai_agent_text_gen.py b/box_sdk_gen/schemas/ai_agent_text_gen.py index b9bc6a1c..2b788eaf 100644 --- a/box_sdk_gen/schemas/ai_agent_text_gen.py +++ b/box_sdk_gen/schemas/ai_agent_text_gen.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.ai_agent_basic_gen_tool import AiAgentBasicGenTool +from box_sdk_gen.box.errors import BoxSDKError + class AiAgentTextGenTypeField(str, Enum): AI_AGENT_TEXT_GEN = 'ai_agent_text_gen' diff --git a/box_sdk_gen/schemas/ai_ask.py b/box_sdk_gen/schemas/ai_ask.py index 7d25fb4a..31a69211 100644 --- a/box_sdk_gen/schemas/ai_ask.py +++ b/box_sdk_gen/schemas/ai_ask.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.ai_agent_ask import AiAgentAsk +from box_sdk_gen.box.errors import BoxSDKError + class AiAskModeField(str, Enum): MULTIPLE_ITEM_QA = 'multiple_item_qa' diff --git a/box_sdk_gen/schemas/ai_citation.py b/box_sdk_gen/schemas/ai_citation.py index affda29b..b90376e9 100644 --- a/box_sdk_gen/schemas/ai_citation.py +++ b/box_sdk_gen/schemas/ai_citation.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AiCitationTypeField(str, Enum): FILE = 'file' diff --git a/box_sdk_gen/schemas/ai_dialogue_history.py b/box_sdk_gen/schemas/ai_dialogue_history.py index 7cab9fe0..778304ef 100644 --- a/box_sdk_gen/schemas/ai_dialogue_history.py +++ b/box_sdk_gen/schemas/ai_dialogue_history.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/ai_extract.py b/box_sdk_gen/schemas/ai_extract.py index 2b6df757..c38f528b 100644 --- a/box_sdk_gen/schemas/ai_extract.py +++ b/box_sdk_gen/schemas/ai_extract.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.ai_agent_extract import AiAgentExtract +from box_sdk_gen.box.errors import BoxSDKError + class AiExtract(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/ai_extract_response.py b/box_sdk_gen/schemas/ai_extract_response.py index 27d2b9f6..e18207b3 100644 --- a/box_sdk_gen/schemas/ai_extract_response.py +++ b/box_sdk_gen/schemas/ai_extract_response.py @@ -1,5 +1,7 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AiExtractResponse(BaseObject): def __init__(self, **kwargs): diff --git a/box_sdk_gen/schemas/ai_extract_structured.py b/box_sdk_gen/schemas/ai_extract_structured.py index 77950e26..f165c628 100644 --- a/box_sdk_gen/schemas/ai_extract_structured.py +++ b/box_sdk_gen/schemas/ai_extract_structured.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.ai_agent_extract_structured import AiAgentExtractStructured +from box_sdk_gen.box.errors import BoxSDKError + class AiExtractStructuredMetadataTemplateTypeField(str, Enum): METADATA_TEMPLATE = 'metadata_template' diff --git a/box_sdk_gen/schemas/ai_item_base.py b/box_sdk_gen/schemas/ai_item_base.py index c931b10b..53cd8182 100644 --- a/box_sdk_gen/schemas/ai_item_base.py +++ b/box_sdk_gen/schemas/ai_item_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AiItemBaseTypeField(str, Enum): FILE = 'file' diff --git a/box_sdk_gen/schemas/ai_llm_endpoint_params_aws.py b/box_sdk_gen/schemas/ai_llm_endpoint_params_aws.py index f4851dd9..c7ee0531 100644 --- a/box_sdk_gen/schemas/ai_llm_endpoint_params_aws.py +++ b/box_sdk_gen/schemas/ai_llm_endpoint_params_aws.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AiLlmEndpointParamsAwsTypeField(str, Enum): AWS_PARAMS = 'aws_params' diff --git a/box_sdk_gen/schemas/ai_llm_endpoint_params_google.py b/box_sdk_gen/schemas/ai_llm_endpoint_params_google.py index 6957a6e5..cb16fd5f 100644 --- a/box_sdk_gen/schemas/ai_llm_endpoint_params_google.py +++ b/box_sdk_gen/schemas/ai_llm_endpoint_params_google.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AiLlmEndpointParamsGoogleTypeField(str, Enum): GOOGLE_PARAMS = 'google_params' diff --git a/box_sdk_gen/schemas/ai_llm_endpoint_params_open_ai.py b/box_sdk_gen/schemas/ai_llm_endpoint_params_open_ai.py index 73f68d7c..77264f88 100644 --- a/box_sdk_gen/schemas/ai_llm_endpoint_params_open_ai.py +++ b/box_sdk_gen/schemas/ai_llm_endpoint_params_open_ai.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AiLlmEndpointParamsOpenAiTypeField(str, Enum): OPENAI_PARAMS = 'openai_params' diff --git a/box_sdk_gen/schemas/ai_response.py b/box_sdk_gen/schemas/ai_response.py index 433d0ae0..2ba52a53 100644 --- a/box_sdk_gen/schemas/ai_response.py +++ b/box_sdk_gen/schemas/ai_response.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/ai_response_full.py b/box_sdk_gen/schemas/ai_response_full.py index 802e7af6..5da2b4fb 100644 --- a/box_sdk_gen/schemas/ai_response_full.py +++ b/box_sdk_gen/schemas/ai_response_full.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.ai_citation import AiCitation +from box_sdk_gen.box.errors import BoxSDKError + class AiResponseFull(AiResponse): def __init__( diff --git a/box_sdk_gen/schemas/ai_text_gen.py b/box_sdk_gen/schemas/ai_text_gen.py index 20952211..7151dd2f 100644 --- a/box_sdk_gen/schemas/ai_text_gen.py +++ b/box_sdk_gen/schemas/ai_text_gen.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.ai_agent_text_gen import AiAgentTextGen +from box_sdk_gen.box.errors import BoxSDKError + class AiTextGenItemsTypeField(str, Enum): FILE = 'file' diff --git a/box_sdk_gen/schemas/app_item.py b/box_sdk_gen/schemas/app_item.py index fe559bc3..a59f39fd 100644 --- a/box_sdk_gen/schemas/app_item.py +++ b/box_sdk_gen/schemas/app_item.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class AppItemTypeField(str, Enum): APP_ITEM = 'app_item' diff --git a/box_sdk_gen/schemas/app_item_association.py b/box_sdk_gen/schemas/app_item_association.py index 13c15dc7..199e8b91 100644 --- a/box_sdk_gen/schemas/app_item_association.py +++ b/box_sdk_gen/schemas/app_item_association.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.web_link_base import WebLinkBase +from box_sdk_gen.box.errors import BoxSDKError + class AppItemAssociationTypeField(str, Enum): APP_ITEM_ASSOCIATION = 'app_item_association' diff --git a/box_sdk_gen/schemas/app_item_associations.py b/box_sdk_gen/schemas/app_item_associations.py index a2317f91..4cb940a3 100644 --- a/box_sdk_gen/schemas/app_item_associations.py +++ b/box_sdk_gen/schemas/app_item_associations.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.app_item_association import AppItemAssociation +from box_sdk_gen.box.errors import BoxSDKError + class AppItemAssociations(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/app_item_event_source.py b/box_sdk_gen/schemas/app_item_event_source.py index 90b2600e..fc8093f5 100644 --- a/box_sdk_gen/schemas/app_item_event_source.py +++ b/box_sdk_gen/schemas/app_item_event_source.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.group_mini import GroupMini +from box_sdk_gen.box.errors import BoxSDKError + class AppItemEventSourceTypeField(str, Enum): APP_ITEM = 'app_item' diff --git a/box_sdk_gen/schemas/classification.py b/box_sdk_gen/schemas/classification.py index 7fc90d79..51ecb004 100644 --- a/box_sdk_gen/schemas/classification.py +++ b/box_sdk_gen/schemas/classification.py @@ -6,6 +6,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ClassificationTemplateField(str, Enum): SECURITYCLASSIFICATION_6VMVOCHWUWO = 'securityClassification-6VMVochwUWo' diff --git a/box_sdk_gen/schemas/classification_template.py b/box_sdk_gen/schemas/classification_template.py index 7f50d184..b232f065 100644 --- a/box_sdk_gen/schemas/classification_template.py +++ b/box_sdk_gen/schemas/classification_template.py @@ -8,6 +8,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + class ClassificationTemplateTypeField(str, Enum): METADATA_TEMPLATE = 'metadata_template' diff --git a/box_sdk_gen/schemas/client_error.py b/box_sdk_gen/schemas/client_error.py index d347756b..8847a478 100644 --- a/box_sdk_gen/schemas/client_error.py +++ b/box_sdk_gen/schemas/client_error.py @@ -6,6 +6,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ClientErrorTypeField(str, Enum): ERROR = 'error' diff --git a/box_sdk_gen/schemas/collaboration.py b/box_sdk_gen/schemas/collaboration.py index 80137657..b17b8b2d 100644 --- a/box_sdk_gen/schemas/collaboration.py +++ b/box_sdk_gen/schemas/collaboration.py @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.terms_of_service_base import TermsOfServiceBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/collaboration_allowlist_entries.py b/box_sdk_gen/schemas/collaboration_allowlist_entries.py index 9dcc07a6..0ca5db16 100644 --- a/box_sdk_gen/schemas/collaboration_allowlist_entries.py +++ b/box_sdk_gen/schemas/collaboration_allowlist_entries.py @@ -8,6 +8,8 @@ CollaborationAllowlistEntry, ) +from box_sdk_gen.box.errors import BoxSDKError + class CollaborationAllowlistEntries(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/collaboration_allowlist_entry.py b/box_sdk_gen/schemas/collaboration_allowlist_entry.py index 72ca67c7..4ebf7449 100644 --- a/box_sdk_gen/schemas/collaboration_allowlist_entry.py +++ b/box_sdk_gen/schemas/collaboration_allowlist_entry.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/collaboration_allowlist_exempt_target.py b/box_sdk_gen/schemas/collaboration_allowlist_exempt_target.py index 230d75fe..47bfaf24 100644 --- a/box_sdk_gen/schemas/collaboration_allowlist_exempt_target.py +++ b/box_sdk_gen/schemas/collaboration_allowlist_exempt_target.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/collaboration_allowlist_exempt_targets.py b/box_sdk_gen/schemas/collaboration_allowlist_exempt_targets.py index ea9134f5..0c5fbc3a 100644 --- a/box_sdk_gen/schemas/collaboration_allowlist_exempt_targets.py +++ b/box_sdk_gen/schemas/collaboration_allowlist_exempt_targets.py @@ -8,6 +8,8 @@ CollaborationAllowlistExemptTarget, ) +from box_sdk_gen.box.errors import BoxSDKError + class CollaborationAllowlistExemptTargets(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/collaborations.py b/box_sdk_gen/schemas/collaborations.py index 7c5f9797..0b0a91b4 100644 --- a/box_sdk_gen/schemas/collaborations.py +++ b/box_sdk_gen/schemas/collaborations.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.collaboration import Collaboration +from box_sdk_gen.box.errors import BoxSDKError + class Collaborations(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/collaborations_offset_paginated.py b/box_sdk_gen/schemas/collaborations_offset_paginated.py index f1a0d0a0..418b16fe 100644 --- a/box_sdk_gen/schemas/collaborations_offset_paginated.py +++ b/box_sdk_gen/schemas/collaborations_offset_paginated.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.collaboration import Collaboration +from box_sdk_gen.box.errors import BoxSDKError + class CollaborationsOffsetPaginated(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/collaborator_variable.py b/box_sdk_gen/schemas/collaborator_variable.py index 1f70ad1c..1a059bb9 100644 --- a/box_sdk_gen/schemas/collaborator_variable.py +++ b/box_sdk_gen/schemas/collaborator_variable.py @@ -4,6 +4,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + class CollaboratorVariableTypeField(str, Enum): VARIABLE = 'variable' diff --git a/box_sdk_gen/schemas/collection.py b/box_sdk_gen/schemas/collection.py index e65fdf33..9050ea3a 100644 --- a/box_sdk_gen/schemas/collection.py +++ b/box_sdk_gen/schemas/collection.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class CollectionTypeField(str, Enum): COLLECTION = 'collection' diff --git a/box_sdk_gen/schemas/collections.py b/box_sdk_gen/schemas/collections.py index c0375179..f94065fd 100644 --- a/box_sdk_gen/schemas/collections.py +++ b/box_sdk_gen/schemas/collections.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.collection import Collection +from box_sdk_gen.box.errors import BoxSDKError + class CollectionsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/comment.py b/box_sdk_gen/schemas/comment.py index b848834b..b506d2ca 100644 --- a/box_sdk_gen/schemas/comment.py +++ b/box_sdk_gen/schemas/comment.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/comment_base.py b/box_sdk_gen/schemas/comment_base.py index 8ee753dd..0f70ca4b 100644 --- a/box_sdk_gen/schemas/comment_base.py +++ b/box_sdk_gen/schemas/comment_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class CommentBaseTypeField(str, Enum): COMMENT = 'comment' diff --git a/box_sdk_gen/schemas/comment_full.py b/box_sdk_gen/schemas/comment_full.py index 1443291f..da5416d4 100644 --- a/box_sdk_gen/schemas/comment_full.py +++ b/box_sdk_gen/schemas/comment_full.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.comment import Comment +from box_sdk_gen.box.errors import BoxSDKError + class CommentFull(Comment): def __init__( diff --git a/box_sdk_gen/schemas/comments.py b/box_sdk_gen/schemas/comments.py index b69c3f73..9ab3e37e 100644 --- a/box_sdk_gen/schemas/comments.py +++ b/box_sdk_gen/schemas/comments.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.comment_full import CommentFull +from box_sdk_gen.box.errors import BoxSDKError + class CommentsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/completion_rule_variable.py b/box_sdk_gen/schemas/completion_rule_variable.py index 2c082325..205a2724 100644 --- a/box_sdk_gen/schemas/completion_rule_variable.py +++ b/box_sdk_gen/schemas/completion_rule_variable.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class CompletionRuleVariableTypeField(str, Enum): VARIABLE = 'variable' diff --git a/box_sdk_gen/schemas/conflict_error.py b/box_sdk_gen/schemas/conflict_error.py index 4c1ff4b5..405c17a7 100644 --- a/box_sdk_gen/schemas/conflict_error.py +++ b/box_sdk_gen/schemas/conflict_error.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.file_conflict import FileConflict +from box_sdk_gen.box.errors import BoxSDKError + class ConflictErrorContextInfoField(BaseObject): def __init__(self, *, conflicts: Optional[List[FileConflict]] = None, **kwargs): diff --git a/box_sdk_gen/schemas/device_pinner.py b/box_sdk_gen/schemas/device_pinner.py index c2a98d23..e6d7eb47 100644 --- a/box_sdk_gen/schemas/device_pinner.py +++ b/box_sdk_gen/schemas/device_pinner.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + class DevicePinnerTypeField(str, Enum): DEVICE_PINNER = 'device_pinner' diff --git a/box_sdk_gen/schemas/device_pinners.py b/box_sdk_gen/schemas/device_pinners.py index cea747fb..13441097 100644 --- a/box_sdk_gen/schemas/device_pinners.py +++ b/box_sdk_gen/schemas/device_pinners.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.device_pinner import DevicePinner +from box_sdk_gen.box.errors import BoxSDKError + class DevicePinnersOrderByField(str, Enum): ID = 'id' diff --git a/box_sdk_gen/schemas/email_alias.py b/box_sdk_gen/schemas/email_alias.py index 6c686fd0..0a8d1e6d 100644 --- a/box_sdk_gen/schemas/email_alias.py +++ b/box_sdk_gen/schemas/email_alias.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class EmailAliasTypeField(str, Enum): EMAIL_ALIAS = 'email_alias' diff --git a/box_sdk_gen/schemas/email_aliases.py b/box_sdk_gen/schemas/email_aliases.py index 88afc91f..aa1101a9 100644 --- a/box_sdk_gen/schemas/email_aliases.py +++ b/box_sdk_gen/schemas/email_aliases.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.email_alias import EmailAlias +from box_sdk_gen.box.errors import BoxSDKError + class EmailAliases(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/enterprise_base.py b/box_sdk_gen/schemas/enterprise_base.py index daa8ba6a..fd1d8789 100644 --- a/box_sdk_gen/schemas/enterprise_base.py +++ b/box_sdk_gen/schemas/enterprise_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class EnterpriseBaseTypeField(str, Enum): ENTERPRISE = 'enterprise' diff --git a/box_sdk_gen/schemas/event.py b/box_sdk_gen/schemas/event.py index bef031f7..d6a9173c 100644 --- a/box_sdk_gen/schemas/event.py +++ b/box_sdk_gen/schemas/event.py @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.app_item_event_source import AppItemEventSource +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/event_source.py b/box_sdk_gen/schemas/event_source.py index 79ec05f6..4b186991 100644 --- a/box_sdk_gen/schemas/event_source.py +++ b/box_sdk_gen/schemas/event_source.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + class EventSourceItemTypeField(str, Enum): FILE = 'file' diff --git a/box_sdk_gen/schemas/events.py b/box_sdk_gen/schemas/events.py index 739973fc..a40bb13e 100644 --- a/box_sdk_gen/schemas/events.py +++ b/box_sdk_gen/schemas/events.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.event import Event +from box_sdk_gen.box.errors import BoxSDKError + class Events(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/file.py b/box_sdk_gen/schemas/file.py index 08c35795..df9d86e5 100644 --- a/box_sdk_gen/schemas/file.py +++ b/box_sdk_gen/schemas/file.py @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_base.py b/box_sdk_gen/schemas/file_base.py index 48d6cc56..10a760d9 100644 --- a/box_sdk_gen/schemas/file_base.py +++ b/box_sdk_gen/schemas/file_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class FileBaseTypeField(str, Enum): FILE = 'file' diff --git a/box_sdk_gen/schemas/file_conflict.py b/box_sdk_gen/schemas/file_conflict.py index 45f90d2d..509a13e4 100644 --- a/box_sdk_gen/schemas/file_conflict.py +++ b/box_sdk_gen/schemas/file_conflict.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.file_version_mini import FileVersionMini +from box_sdk_gen.box.errors import BoxSDKError + class FileConflict(FileMini): def __init__( diff --git a/box_sdk_gen/schemas/file_full.py b/box_sdk_gen/schemas/file_full.py index 50e3b9b3..459455aa 100644 --- a/box_sdk_gen/schemas/file_full.py +++ b/box_sdk_gen/schemas/file_full.py @@ -30,6 +30,8 @@ from box_sdk_gen.schemas.metadata_full import MetadataFull +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_mini.py b/box_sdk_gen/schemas/file_mini.py index 8ce62866..8dbffd8a 100644 --- a/box_sdk_gen/schemas/file_mini.py +++ b/box_sdk_gen/schemas/file_mini.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.file_version_mini import FileVersionMini +from box_sdk_gen.box.errors import BoxSDKError + class FileMini(FileBase): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/schemas/file_or_folder_scope.py b/box_sdk_gen/schemas/file_or_folder_scope.py index aa5b38bd..484df89e 100644 --- a/box_sdk_gen/schemas/file_or_folder_scope.py +++ b/box_sdk_gen/schemas/file_or_folder_scope.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.file_mini import FileMini +from box_sdk_gen.box.errors import BoxSDKError + class FileOrFolderScopeScopeField(str, Enum): ANNOTATION_EDIT = 'annotation_edit' diff --git a/box_sdk_gen/schemas/file_request.py b/box_sdk_gen/schemas/file_request.py index 7106707f..7965a911 100644 --- a/box_sdk_gen/schemas/file_request.py +++ b/box_sdk_gen/schemas/file_request.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_request_copy_request.py b/box_sdk_gen/schemas/file_request_copy_request.py index 622d3753..57f63777 100644 --- a/box_sdk_gen/schemas/file_request_copy_request.py +++ b/box_sdk_gen/schemas/file_request_copy_request.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.file_request_update_request import FileRequestUpdateRequest +from box_sdk_gen.box.errors import BoxSDKError + class FileRequestCopyRequestFolderTypeField(str, Enum): FOLDER = 'folder' diff --git a/box_sdk_gen/schemas/file_request_update_request.py b/box_sdk_gen/schemas/file_request_update_request.py index 9aa4beb7..e496d612 100644 --- a/box_sdk_gen/schemas/file_request_update_request.py +++ b/box_sdk_gen/schemas/file_request_update_request.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_version.py b/box_sdk_gen/schemas/file_version.py index 0b97e6fd..3622ea8b 100644 --- a/box_sdk_gen/schemas/file_version.py +++ b/box_sdk_gen/schemas/file_version.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_version_base.py b/box_sdk_gen/schemas/file_version_base.py index 97beda14..002f109f 100644 --- a/box_sdk_gen/schemas/file_version_base.py +++ b/box_sdk_gen/schemas/file_version_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class FileVersionBaseTypeField(str, Enum): FILE_VERSION = 'file_version' diff --git a/box_sdk_gen/schemas/file_version_full.py b/box_sdk_gen/schemas/file_version_full.py index 14385169..60246fa9 100644 --- a/box_sdk_gen/schemas/file_version_full.py +++ b/box_sdk_gen/schemas/file_version_full.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.file_version import FileVersion +from box_sdk_gen.box.errors import BoxSDKError + class FileVersionFull(FileVersion): def __init__( diff --git a/box_sdk_gen/schemas/file_version_legal_hold.py b/box_sdk_gen/schemas/file_version_legal_hold.py index 96c5734f..4a7a4cd1 100644 --- a/box_sdk_gen/schemas/file_version_legal_hold.py +++ b/box_sdk_gen/schemas/file_version_legal_hold.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.legal_hold_policy_assignment import LegalHoldPolicyAssignment +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_version_legal_holds.py b/box_sdk_gen/schemas/file_version_legal_holds.py index 1d5b5777..347dbdd7 100644 --- a/box_sdk_gen/schemas/file_version_legal_holds.py +++ b/box_sdk_gen/schemas/file_version_legal_holds.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.file_version_legal_hold import FileVersionLegalHold +from box_sdk_gen.box.errors import BoxSDKError + class FileVersionLegalHolds(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/file_version_mini.py b/box_sdk_gen/schemas/file_version_mini.py index 2d74ac5c..0ef69112 100644 --- a/box_sdk_gen/schemas/file_version_mini.py +++ b/box_sdk_gen/schemas/file_version_mini.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.file_version_base import FileVersionBase +from box_sdk_gen.box.errors import BoxSDKError + class FileVersionMini(FileVersionBase): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/schemas/file_version_retention.py b/box_sdk_gen/schemas/file_version_retention.py index 8c431956..445d78c0 100644 --- a/box_sdk_gen/schemas/file_version_retention.py +++ b/box_sdk_gen/schemas/file_version_retention.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.retention_policy_mini import RetentionPolicyMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/file_version_retentions.py b/box_sdk_gen/schemas/file_version_retentions.py index 51512b1d..27d90e63 100644 --- a/box_sdk_gen/schemas/file_version_retentions.py +++ b/box_sdk_gen/schemas/file_version_retentions.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.file_version_retention import FileVersionRetention +from box_sdk_gen.box.errors import BoxSDKError + class FileVersionRetentions(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/file_versions.py b/box_sdk_gen/schemas/file_versions.py index ff102586..1023ec29 100644 --- a/box_sdk_gen/schemas/file_versions.py +++ b/box_sdk_gen/schemas/file_versions.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.file_version_full import FileVersionFull +from box_sdk_gen.box.errors import BoxSDKError + class FileVersionsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/files.py b/box_sdk_gen/schemas/files.py index cc9965d9..9fa7e378 100644 --- a/box_sdk_gen/schemas/files.py +++ b/box_sdk_gen/schemas/files.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.file_full import FileFull +from box_sdk_gen.box.errors import BoxSDKError + class Files(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/files_on_hold.py b/box_sdk_gen/schemas/files_on_hold.py index f8ab95e7..1229ed42 100644 --- a/box_sdk_gen/schemas/files_on_hold.py +++ b/box_sdk_gen/schemas/files_on_hold.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.file_mini import FileMini +from box_sdk_gen.box.errors import BoxSDKError + class FilesOnHold(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/files_under_retention.py b/box_sdk_gen/schemas/files_under_retention.py index e613a26f..fe213b59 100644 --- a/box_sdk_gen/schemas/files_under_retention.py +++ b/box_sdk_gen/schemas/files_under_retention.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.file_mini import FileMini +from box_sdk_gen.box.errors import BoxSDKError + class FilesUnderRetention(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/folder.py b/box_sdk_gen/schemas/folder.py index 14ee8527..f83e24af 100644 --- a/box_sdk_gen/schemas/folder.py +++ b/box_sdk_gen/schemas/folder.py @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.items import Items +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/folder_base.py b/box_sdk_gen/schemas/folder_base.py index 75ff3e3a..fe3f3035 100644 --- a/box_sdk_gen/schemas/folder_base.py +++ b/box_sdk_gen/schemas/folder_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class FolderBaseTypeField(str, Enum): FOLDER = 'folder' diff --git a/box_sdk_gen/schemas/folder_full.py b/box_sdk_gen/schemas/folder_full.py index 0dcd42cc..a45852a2 100644 --- a/box_sdk_gen/schemas/folder_full.py +++ b/box_sdk_gen/schemas/folder_full.py @@ -30,6 +30,8 @@ from box_sdk_gen.schemas.metadata_full import MetadataFull +from box_sdk_gen.box.errors import BoxSDKError + class FolderFullSyncStateField(str, Enum): SYNCED = 'synced' diff --git a/box_sdk_gen/schemas/folder_lock.py b/box_sdk_gen/schemas/folder_lock.py index 47365f2c..abece080 100644 --- a/box_sdk_gen/schemas/folder_lock.py +++ b/box_sdk_gen/schemas/folder_lock.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/folder_locks.py b/box_sdk_gen/schemas/folder_locks.py index cae3817e..e5be0cf5 100644 --- a/box_sdk_gen/schemas/folder_locks.py +++ b/box_sdk_gen/schemas/folder_locks.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.folder_lock import FolderLock +from box_sdk_gen.box.errors import BoxSDKError + class FolderLocks(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/folder_mini.py b/box_sdk_gen/schemas/folder_mini.py index 97433b3b..a270f497 100644 --- a/box_sdk_gen/schemas/folder_mini.py +++ b/box_sdk_gen/schemas/folder_mini.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.folder_base import FolderBase +from box_sdk_gen.box.errors import BoxSDKError + class FolderMini(FolderBase): def __init__( diff --git a/box_sdk_gen/schemas/generic_source.py b/box_sdk_gen/schemas/generic_source.py index e69de29b..e476ab91 100644 --- a/box_sdk_gen/schemas/generic_source.py +++ b/box_sdk_gen/schemas/generic_source.py @@ -0,0 +1 @@ +from box_sdk_gen.box.errors import BoxSDKError diff --git a/box_sdk_gen/schemas/group.py b/box_sdk_gen/schemas/group.py index b81a883c..47e3f2af 100644 --- a/box_sdk_gen/schemas/group.py +++ b/box_sdk_gen/schemas/group.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.group_mini import GroupMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/group_base.py b/box_sdk_gen/schemas/group_base.py index 20608638..c217cb42 100644 --- a/box_sdk_gen/schemas/group_base.py +++ b/box_sdk_gen/schemas/group_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class GroupBaseTypeField(str, Enum): GROUP = 'group' diff --git a/box_sdk_gen/schemas/group_full.py b/box_sdk_gen/schemas/group_full.py index 5942e283..4b16c3b3 100644 --- a/box_sdk_gen/schemas/group_full.py +++ b/box_sdk_gen/schemas/group_full.py @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.group import Group +from box_sdk_gen.box.errors import BoxSDKError + class GroupFullInvitabilityLevelField(str, Enum): ADMINS_ONLY = 'admins_only' diff --git a/box_sdk_gen/schemas/group_membership.py b/box_sdk_gen/schemas/group_membership.py index e83d138f..0a581879 100644 --- a/box_sdk_gen/schemas/group_membership.py +++ b/box_sdk_gen/schemas/group_membership.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.group_mini import GroupMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/group_memberships.py b/box_sdk_gen/schemas/group_memberships.py index a80848d0..5eff01a5 100644 --- a/box_sdk_gen/schemas/group_memberships.py +++ b/box_sdk_gen/schemas/group_memberships.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.group_membership import GroupMembership +from box_sdk_gen.box.errors import BoxSDKError + class GroupMembershipsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/group_mini.py b/box_sdk_gen/schemas/group_mini.py index 7c4c7782..e04db488 100644 --- a/box_sdk_gen/schemas/group_mini.py +++ b/box_sdk_gen/schemas/group_mini.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.group_base import GroupBase +from box_sdk_gen.box.errors import BoxSDKError + class GroupMiniGroupTypeField(str, Enum): MANAGED_GROUP = 'managed_group' diff --git a/box_sdk_gen/schemas/groups.py b/box_sdk_gen/schemas/groups.py index da6ff598..420092b1 100644 --- a/box_sdk_gen/schemas/groups.py +++ b/box_sdk_gen/schemas/groups.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.group_full import GroupFull +from box_sdk_gen.box.errors import BoxSDKError + class GroupsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/integration_mapping.py b/box_sdk_gen/schemas/integration_mapping.py index a570c5b0..a80fa931 100644 --- a/box_sdk_gen/schemas/integration_mapping.py +++ b/box_sdk_gen/schemas/integration_mapping.py @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.folder_mini import FolderMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/integration_mapping_base.py b/box_sdk_gen/schemas/integration_mapping_base.py index 49a7e172..d6fc5566 100644 --- a/box_sdk_gen/schemas/integration_mapping_base.py +++ b/box_sdk_gen/schemas/integration_mapping_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class IntegrationMappingBaseTypeField(str, Enum): INTEGRATION_MAPPING = 'integration_mapping' diff --git a/box_sdk_gen/schemas/integration_mapping_box_item_slack.py b/box_sdk_gen/schemas/integration_mapping_box_item_slack.py index 5f77eb5a..7f465f6e 100644 --- a/box_sdk_gen/schemas/integration_mapping_box_item_slack.py +++ b/box_sdk_gen/schemas/integration_mapping_box_item_slack.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class IntegrationMappingBoxItemSlackTypeField(str, Enum): FOLDER = 'folder' diff --git a/box_sdk_gen/schemas/integration_mapping_partner_item_slack.py b/box_sdk_gen/schemas/integration_mapping_partner_item_slack.py index 9291be7e..22beba2e 100644 --- a/box_sdk_gen/schemas/integration_mapping_partner_item_slack.py +++ b/box_sdk_gen/schemas/integration_mapping_partner_item_slack.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class IntegrationMappingPartnerItemSlackTypeField(str, Enum): CHANNEL = 'channel' diff --git a/box_sdk_gen/schemas/integration_mapping_slack_create_request.py b/box_sdk_gen/schemas/integration_mapping_slack_create_request.py index 65d234e4..85586fe6 100644 --- a/box_sdk_gen/schemas/integration_mapping_slack_create_request.py +++ b/box_sdk_gen/schemas/integration_mapping_slack_create_request.py @@ -14,6 +14,8 @@ IntegrationMappingSlackOptions, ) +from box_sdk_gen.box.errors import BoxSDKError + class IntegrationMappingSlackCreateRequest(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/integration_mapping_slack_options.py b/box_sdk_gen/schemas/integration_mapping_slack_options.py index c6a03e45..701d27a8 100644 --- a/box_sdk_gen/schemas/integration_mapping_slack_options.py +++ b/box_sdk_gen/schemas/integration_mapping_slack_options.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class IntegrationMappingSlackOptions(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/integration_mappings.py b/box_sdk_gen/schemas/integration_mappings.py index 08c2f169..5aeddcce 100644 --- a/box_sdk_gen/schemas/integration_mappings.py +++ b/box_sdk_gen/schemas/integration_mappings.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.integration_mapping import IntegrationMapping +from box_sdk_gen.box.errors import BoxSDKError + class IntegrationMappings(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/invite.py b/box_sdk_gen/schemas/invite.py index 5c1f7062..441ff49d 100644 --- a/box_sdk_gen/schemas/invite.py +++ b/box_sdk_gen/schemas/invite.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/items.py b/box_sdk_gen/schemas/items.py index 891096c2..978c5974 100644 --- a/box_sdk_gen/schemas/items.py +++ b/box_sdk_gen/schemas/items.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.web_link import WebLink +from box_sdk_gen.box.errors import BoxSDKError + class ItemsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/items_offset_paginated.py b/box_sdk_gen/schemas/items_offset_paginated.py index d85e7dd8..2487ad6d 100644 --- a/box_sdk_gen/schemas/items_offset_paginated.py +++ b/box_sdk_gen/schemas/items_offset_paginated.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.web_link import WebLink +from box_sdk_gen.box.errors import BoxSDKError + class ItemsOffsetPaginatedOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/keyword_skill_card.py b/box_sdk_gen/schemas/keyword_skill_card.py index 14ffd374..5fc85ef9 100644 --- a/box_sdk_gen/schemas/keyword_skill_card.py +++ b/box_sdk_gen/schemas/keyword_skill_card.py @@ -6,6 +6,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/legal_hold_policies.py b/box_sdk_gen/schemas/legal_hold_policies.py index 7f726a8c..5fda1d51 100644 --- a/box_sdk_gen/schemas/legal_hold_policies.py +++ b/box_sdk_gen/schemas/legal_hold_policies.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.legal_hold_policy import LegalHoldPolicy +from box_sdk_gen.box.errors import BoxSDKError + class LegalHoldPolicies(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/legal_hold_policy.py b/box_sdk_gen/schemas/legal_hold_policy.py index 286ea428..940fa19e 100644 --- a/box_sdk_gen/schemas/legal_hold_policy.py +++ b/box_sdk_gen/schemas/legal_hold_policy.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/legal_hold_policy_assignment.py b/box_sdk_gen/schemas/legal_hold_policy_assignment.py index 135a87ca..143d8077 100644 --- a/box_sdk_gen/schemas/legal_hold_policy_assignment.py +++ b/box_sdk_gen/schemas/legal_hold_policy_assignment.py @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/legal_hold_policy_assignment_base.py b/box_sdk_gen/schemas/legal_hold_policy_assignment_base.py index 5f145f79..6096588d 100644 --- a/box_sdk_gen/schemas/legal_hold_policy_assignment_base.py +++ b/box_sdk_gen/schemas/legal_hold_policy_assignment_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class LegalHoldPolicyAssignmentBaseTypeField(str, Enum): LEGAL_HOLD_POLICY_ASSIGNMENT = 'legal_hold_policy_assignment' diff --git a/box_sdk_gen/schemas/legal_hold_policy_assignments.py b/box_sdk_gen/schemas/legal_hold_policy_assignments.py index 065c6765..a9ec8727 100644 --- a/box_sdk_gen/schemas/legal_hold_policy_assignments.py +++ b/box_sdk_gen/schemas/legal_hold_policy_assignments.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.legal_hold_policy_assignment import LegalHoldPolicyAssignment +from box_sdk_gen.box.errors import BoxSDKError + class LegalHoldPolicyAssignments(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/legal_hold_policy_mini.py b/box_sdk_gen/schemas/legal_hold_policy_mini.py index b0a41c1f..ace96ae7 100644 --- a/box_sdk_gen/schemas/legal_hold_policy_mini.py +++ b/box_sdk_gen/schemas/legal_hold_policy_mini.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class LegalHoldPolicyMiniTypeField(str, Enum): LEGAL_HOLD_POLICY = 'legal_hold_policy' diff --git a/box_sdk_gen/schemas/metadata.py b/box_sdk_gen/schemas/metadata.py index abb950c8..5927b6af 100644 --- a/box_sdk_gen/schemas/metadata.py +++ b/box_sdk_gen/schemas/metadata.py @@ -2,6 +2,8 @@ from box_sdk_gen.schemas.metadata_base import MetadataBase +from box_sdk_gen.box.errors import BoxSDKError + class Metadata(MetadataBase): def __init__( diff --git a/box_sdk_gen/schemas/metadata_base.py b/box_sdk_gen/schemas/metadata_base.py index 3d287163..39bb7c38 100644 --- a/box_sdk_gen/schemas/metadata_base.py +++ b/box_sdk_gen/schemas/metadata_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class MetadataBase(BaseObject): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/schemas/metadata_cascade_policies.py b/box_sdk_gen/schemas/metadata_cascade_policies.py index 561021af..fb5a6e7a 100644 --- a/box_sdk_gen/schemas/metadata_cascade_policies.py +++ b/box_sdk_gen/schemas/metadata_cascade_policies.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.metadata_cascade_policy import MetadataCascadePolicy +from box_sdk_gen.box.errors import BoxSDKError + class MetadataCascadePolicies(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/metadata_cascade_policy.py b/box_sdk_gen/schemas/metadata_cascade_policy.py index 02bde328..5ced1983 100644 --- a/box_sdk_gen/schemas/metadata_cascade_policy.py +++ b/box_sdk_gen/schemas/metadata_cascade_policy.py @@ -6,6 +6,8 @@ from typing import Dict +from box_sdk_gen.box.errors import BoxSDKError + class MetadataCascadePolicyTypeField(str, Enum): METADATA_CASCADE_POLICY = 'metadata_cascade_policy' diff --git a/box_sdk_gen/schemas/metadata_field_filter_date_range.py b/box_sdk_gen/schemas/metadata_field_filter_date_range.py index f2753a0e..8fd94463 100644 --- a/box_sdk_gen/schemas/metadata_field_filter_date_range.py +++ b/box_sdk_gen/schemas/metadata_field_filter_date_range.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/metadata_field_filter_float_range.py b/box_sdk_gen/schemas/metadata_field_filter_float_range.py index 4de1c2a7..7e5d528c 100644 --- a/box_sdk_gen/schemas/metadata_field_filter_float_range.py +++ b/box_sdk_gen/schemas/metadata_field_filter_float_range.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class MetadataFieldFilterFloatRange(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/metadata_filter.py b/box_sdk_gen/schemas/metadata_filter.py index 8ec4f8be..3df54e07 100644 --- a/box_sdk_gen/schemas/metadata_filter.py +++ b/box_sdk_gen/schemas/metadata_filter.py @@ -18,6 +18,8 @@ MetadataFieldFilterDateRange, ) +from box_sdk_gen.box.errors import BoxSDKError + class MetadataFilterScopeField(str, Enum): GLOBAL = 'global' diff --git a/box_sdk_gen/schemas/metadata_full.py b/box_sdk_gen/schemas/metadata_full.py index 0add1255..38bd1a07 100644 --- a/box_sdk_gen/schemas/metadata_full.py +++ b/box_sdk_gen/schemas/metadata_full.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.metadata import Metadata +from box_sdk_gen.box.errors import BoxSDKError + class MetadataFull(Metadata): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/schemas/metadata_query.py b/box_sdk_gen/schemas/metadata_query.py index 92fe3a7c..e98c90b5 100644 --- a/box_sdk_gen/schemas/metadata_query.py +++ b/box_sdk_gen/schemas/metadata_query.py @@ -8,6 +8,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + class MetadataQueryOrderByDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/metadata_query_index.py b/box_sdk_gen/schemas/metadata_query_index.py index 636c2315..c8bc04fc 100644 --- a/box_sdk_gen/schemas/metadata_query_index.py +++ b/box_sdk_gen/schemas/metadata_query_index.py @@ -6,6 +6,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + class MetadataQueryIndexStatusField(str, Enum): BUILDING = 'building' diff --git a/box_sdk_gen/schemas/metadata_query_results.py b/box_sdk_gen/schemas/metadata_query_results.py index a31f4d57..381389e8 100644 --- a/box_sdk_gen/schemas/metadata_query_results.py +++ b/box_sdk_gen/schemas/metadata_query_results.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.folder_full import FolderFull +from box_sdk_gen.box.errors import BoxSDKError + class MetadataQueryResults(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/metadata_template.py b/box_sdk_gen/schemas/metadata_template.py index 8ef0b00b..f6d2aaed 100644 --- a/box_sdk_gen/schemas/metadata_template.py +++ b/box_sdk_gen/schemas/metadata_template.py @@ -8,6 +8,8 @@ from typing import Dict +from box_sdk_gen.box.errors import BoxSDKError + class MetadataTemplateTypeField(str, Enum): METADATA_TEMPLATE = 'metadata_template' diff --git a/box_sdk_gen/schemas/metadata_templates.py b/box_sdk_gen/schemas/metadata_templates.py index 607ee603..2a37ebd1 100644 --- a/box_sdk_gen/schemas/metadata_templates.py +++ b/box_sdk_gen/schemas/metadata_templates.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.metadata_template import MetadataTemplate +from box_sdk_gen.box.errors import BoxSDKError + class MetadataTemplates(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/metadatas.py b/box_sdk_gen/schemas/metadatas.py index ca9e04d8..428f4cf6 100644 --- a/box_sdk_gen/schemas/metadatas.py +++ b/box_sdk_gen/schemas/metadatas.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.metadata import Metadata +from box_sdk_gen.box.errors import BoxSDKError + class Metadatas(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/o_auth_2_error.py b/box_sdk_gen/schemas/o_auth_2_error.py index 3fcf7789..524fe4f2 100644 --- a/box_sdk_gen/schemas/o_auth_2_error.py +++ b/box_sdk_gen/schemas/o_auth_2_error.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class OAuth2Error(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/outcome.py b/box_sdk_gen/schemas/outcome.py index 2194f1fe..c8a63372 100644 --- a/box_sdk_gen/schemas/outcome.py +++ b/box_sdk_gen/schemas/outcome.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.role_variable import RoleVariable +from box_sdk_gen.box.errors import BoxSDKError + class Outcome(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/post_o_auth_2_revoke.py b/box_sdk_gen/schemas/post_o_auth_2_revoke.py index ae0be503..d93eec3c 100644 --- a/box_sdk_gen/schemas/post_o_auth_2_revoke.py +++ b/box_sdk_gen/schemas/post_o_auth_2_revoke.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class PostOAuth2Revoke(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/post_o_auth_2_token.py b/box_sdk_gen/schemas/post_o_auth_2_token.py index f82d85d2..c41f8ffe 100644 --- a/box_sdk_gen/schemas/post_o_auth_2_token.py +++ b/box_sdk_gen/schemas/post_o_auth_2_token.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class PostOAuth2TokenGrantTypeField(str, Enum): AUTHORIZATION_CODE = 'authorization_code' diff --git a/box_sdk_gen/schemas/post_o_auth_2_token_refresh_access_token.py b/box_sdk_gen/schemas/post_o_auth_2_token_refresh_access_token.py index 09986187..a6eb8c5e 100644 --- a/box_sdk_gen/schemas/post_o_auth_2_token_refresh_access_token.py +++ b/box_sdk_gen/schemas/post_o_auth_2_token_refresh_access_token.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class PostOAuth2TokenRefreshAccessTokenGrantTypeField(str, Enum): REFRESH_TOKEN = 'refresh_token' diff --git a/box_sdk_gen/schemas/realtime_server.py b/box_sdk_gen/schemas/realtime_server.py index 4ee5108f..440d1c01 100644 --- a/box_sdk_gen/schemas/realtime_server.py +++ b/box_sdk_gen/schemas/realtime_server.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class RealtimeServer(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/realtime_servers.py b/box_sdk_gen/schemas/realtime_servers.py index ad745a22..cffcf44d 100644 --- a/box_sdk_gen/schemas/realtime_servers.py +++ b/box_sdk_gen/schemas/realtime_servers.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.realtime_server import RealtimeServer +from box_sdk_gen.box.errors import BoxSDKError + class RealtimeServers(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/recent_item.py b/box_sdk_gen/schemas/recent_item.py index e705037d..1c0ecb9e 100644 --- a/box_sdk_gen/schemas/recent_item.py +++ b/box_sdk_gen/schemas/recent_item.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.web_link import WebLink +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/recent_items.py b/box_sdk_gen/schemas/recent_items.py index 5880627f..a145c7ac 100644 --- a/box_sdk_gen/schemas/recent_items.py +++ b/box_sdk_gen/schemas/recent_items.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.recent_item import RecentItem +from box_sdk_gen.box.errors import BoxSDKError + class RecentItems(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/retention_policies.py b/box_sdk_gen/schemas/retention_policies.py index da905c02..3a365edc 100644 --- a/box_sdk_gen/schemas/retention_policies.py +++ b/box_sdk_gen/schemas/retention_policies.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.retention_policy import RetentionPolicy +from box_sdk_gen.box.errors import BoxSDKError + class RetentionPolicies(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/retention_policy.py b/box_sdk_gen/schemas/retention_policy.py index 6b01dab0..2123ee91 100644 --- a/box_sdk_gen/schemas/retention_policy.py +++ b/box_sdk_gen/schemas/retention_policy.py @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/retention_policy_assignment.py b/box_sdk_gen/schemas/retention_policy_assignment.py index 4c43fdea..65891db6 100644 --- a/box_sdk_gen/schemas/retention_policy_assignment.py +++ b/box_sdk_gen/schemas/retention_policy_assignment.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/retention_policy_assignment_base.py b/box_sdk_gen/schemas/retention_policy_assignment_base.py index 1b356129..256c668f 100644 --- a/box_sdk_gen/schemas/retention_policy_assignment_base.py +++ b/box_sdk_gen/schemas/retention_policy_assignment_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class RetentionPolicyAssignmentBaseTypeField(str, Enum): RETENTION_POLICY_ASSIGNMENT = 'retention_policy_assignment' diff --git a/box_sdk_gen/schemas/retention_policy_assignments.py b/box_sdk_gen/schemas/retention_policy_assignments.py index 392bff44..6ade1747 100644 --- a/box_sdk_gen/schemas/retention_policy_assignments.py +++ b/box_sdk_gen/schemas/retention_policy_assignments.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.retention_policy_assignment import RetentionPolicyAssignment +from box_sdk_gen.box.errors import BoxSDKError + class RetentionPolicyAssignments(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/retention_policy_base.py b/box_sdk_gen/schemas/retention_policy_base.py index b4e67f93..4130ced8 100644 --- a/box_sdk_gen/schemas/retention_policy_base.py +++ b/box_sdk_gen/schemas/retention_policy_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class RetentionPolicyBaseTypeField(str, Enum): RETENTION_POLICY = 'retention_policy' diff --git a/box_sdk_gen/schemas/retention_policy_mini.py b/box_sdk_gen/schemas/retention_policy_mini.py index 1fa83c0c..680b46dd 100644 --- a/box_sdk_gen/schemas/retention_policy_mini.py +++ b/box_sdk_gen/schemas/retention_policy_mini.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.retention_policy_base import RetentionPolicyBase +from box_sdk_gen.box.errors import BoxSDKError + class RetentionPolicyMiniDispositionActionField(str, Enum): PERMANENTLY_DELETE = 'permanently_delete' diff --git a/box_sdk_gen/schemas/role_variable.py b/box_sdk_gen/schemas/role_variable.py index 7a0f712c..14bf42c7 100644 --- a/box_sdk_gen/schemas/role_variable.py +++ b/box_sdk_gen/schemas/role_variable.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class RoleVariableTypeField(str, Enum): VARIABLE = 'variable' diff --git a/box_sdk_gen/schemas/search_result_with_shared_link.py b/box_sdk_gen/schemas/search_result_with_shared_link.py index 38307024..e7eaf52e 100644 --- a/box_sdk_gen/schemas/search_result_with_shared_link.py +++ b/box_sdk_gen/schemas/search_result_with_shared_link.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.web_link import WebLink +from box_sdk_gen.box.errors import BoxSDKError + class SearchResultWithSharedLink(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/search_results.py b/box_sdk_gen/schemas/search_results.py index 3974a527..414ffe51 100644 --- a/box_sdk_gen/schemas/search_results.py +++ b/box_sdk_gen/schemas/search_results.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.web_link import WebLink +from box_sdk_gen.box.errors import BoxSDKError + class SearchResultsTypeField(str, Enum): SEARCH_RESULTS_ITEMS = 'search_results_items' diff --git a/box_sdk_gen/schemas/search_results_with_shared_links.py b/box_sdk_gen/schemas/search_results_with_shared_links.py index 0874573f..a1c2c5c6 100644 --- a/box_sdk_gen/schemas/search_results_with_shared_links.py +++ b/box_sdk_gen/schemas/search_results_with_shared_links.py @@ -10,6 +10,8 @@ SearchResultWithSharedLink, ) +from box_sdk_gen.box.errors import BoxSDKError + class SearchResultsWithSharedLinksTypeField(str, Enum): SEARCH_RESULTS_WITH_SHARED_LINKS = 'search_results_with_shared_links' diff --git a/box_sdk_gen/schemas/session_termination_message.py b/box_sdk_gen/schemas/session_termination_message.py index 0ac8842e..86375966 100644 --- a/box_sdk_gen/schemas/session_termination_message.py +++ b/box_sdk_gen/schemas/session_termination_message.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class SessionTerminationMessage(BaseObject): def __init__(self, *, message: Optional[str] = None, **kwargs): diff --git a/box_sdk_gen/schemas/shield_information_barrier.py b/box_sdk_gen/schemas/shield_information_barrier.py index 8f9efd25..cffab56f 100644 --- a/box_sdk_gen/schemas/shield_information_barrier.py +++ b/box_sdk_gen/schemas/shield_information_barrier.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/shield_information_barrier_base.py b/box_sdk_gen/schemas/shield_information_barrier_base.py index 837816a4..867d6785 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_base.py +++ b/box_sdk_gen/schemas/shield_information_barrier_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierBaseTypeField(str, Enum): SHIELD_INFORMATION_BARRIER = 'shield_information_barrier' diff --git a/box_sdk_gen/schemas/shield_information_barrier_reference.py b/box_sdk_gen/schemas/shield_information_barrier_reference.py index 4ccf6176..c2f4debf 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_reference.py +++ b/box_sdk_gen/schemas/shield_information_barrier_reference.py @@ -6,6 +6,8 @@ ShieldInformationBarrierBase, ) +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierReference(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/shield_information_barrier_report.py b/box_sdk_gen/schemas/shield_information_barrier_report.py index ec0ec9db..6d8fc78e 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_report.py +++ b/box_sdk_gen/schemas/shield_information_barrier_report.py @@ -20,6 +20,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/shield_information_barrier_report_base.py b/box_sdk_gen/schemas/shield_information_barrier_report_base.py index c27865ad..820ab1ec 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_report_base.py +++ b/box_sdk_gen/schemas/shield_information_barrier_report_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierReportBaseTypeField(str, Enum): SHIELD_INFORMATION_BARRIER_REPORT = 'shield_information_barrier_report' diff --git a/box_sdk_gen/schemas/shield_information_barrier_report_details.py b/box_sdk_gen/schemas/shield_information_barrier_report_details.py index fbad0b3e..287c848b 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_report_details.py +++ b/box_sdk_gen/schemas/shield_information_barrier_report_details.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierReportDetailsDetailsField(BaseObject): def __init__(self, *, folder_id: Optional[str] = None, **kwargs): diff --git a/box_sdk_gen/schemas/shield_information_barrier_reports.py b/box_sdk_gen/schemas/shield_information_barrier_reports.py index 847c5120..76c81ab9 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_reports.py +++ b/box_sdk_gen/schemas/shield_information_barrier_reports.py @@ -8,6 +8,8 @@ ShieldInformationBarrierReport, ) +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierReports(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment.py b/box_sdk_gen/schemas/shield_information_barrier_segment.py index a7561342..89f60be8 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_member.py b/box_sdk_gen/schemas/shield_information_barrier_segment_member.py index 2c0ecabb..fb55cf8b 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_member.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_member.py @@ -22,6 +22,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_member_base.py b/box_sdk_gen/schemas/shield_information_barrier_segment_member_base.py index 480d9a9c..10e892a4 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_member_base.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_member_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegmentMemberBaseTypeField(str, Enum): SHIELD_INFORMATION_BARRIER_SEGMENT_MEMBER = ( diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_member_mini.py b/box_sdk_gen/schemas/shield_information_barrier_segment_member_mini.py index e4a5e304..c3ce3824 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_member_mini.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_member_mini.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegmentMemberMini( ShieldInformationBarrierSegmentMemberBase diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_members.py b/box_sdk_gen/schemas/shield_information_barrier_segment_members.py index 91937794..25ef4859 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_members.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_members.py @@ -8,6 +8,8 @@ ShieldInformationBarrierSegmentMember, ) +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegmentMembers(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_restriction.py b/box_sdk_gen/schemas/shield_information_barrier_segment_restriction.py index 3d09faf9..ebd9a2c6 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_restriction.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_restriction.py @@ -26,6 +26,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_base.py b/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_base.py index 2a7ee344..89eb6abf 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_base.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegmentRestrictionBaseTypeField(str, Enum): SHIELD_INFORMATION_BARRIER_SEGMENT_RESTRICTION = ( diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_mini.py b/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_mini.py index 8b7b6603..142af22d 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_mini.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_restriction_mini.py @@ -12,6 +12,8 @@ ShieldInformationBarrierSegmentRestrictionBase, ) +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegmentRestrictionMiniShieldInformationBarrierSegmentTypeField( str, Enum diff --git a/box_sdk_gen/schemas/shield_information_barrier_segment_restrictions.py b/box_sdk_gen/schemas/shield_information_barrier_segment_restrictions.py index 057a2522..d1e40043 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segment_restrictions.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segment_restrictions.py @@ -8,6 +8,8 @@ ShieldInformationBarrierSegmentRestriction, ) +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegmentRestrictions(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/shield_information_barrier_segments.py b/box_sdk_gen/schemas/shield_information_barrier_segments.py index f9f2e13a..c72f83d4 100644 --- a/box_sdk_gen/schemas/shield_information_barrier_segments.py +++ b/box_sdk_gen/schemas/shield_information_barrier_segments.py @@ -8,6 +8,8 @@ ShieldInformationBarrierSegment, ) +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarrierSegments(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/shield_information_barriers.py b/box_sdk_gen/schemas/shield_information_barriers.py index 9b002cfd..65347236 100644 --- a/box_sdk_gen/schemas/shield_information_barriers.py +++ b/box_sdk_gen/schemas/shield_information_barriers.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.shield_information_barrier import ShieldInformationBarrier +from box_sdk_gen.box.errors import BoxSDKError + class ShieldInformationBarriers(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/sign_request.py b/box_sdk_gen/schemas/sign_request.py index 33cc6da7..a590fbd1 100644 --- a/box_sdk_gen/schemas/sign_request.py +++ b/box_sdk_gen/schemas/sign_request.py @@ -18,6 +18,8 @@ from box_sdk_gen.schemas.folder_mini import FolderMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/sign_request_base.py b/box_sdk_gen/schemas/sign_request_base.py index 29780371..eb5587ad 100644 --- a/box_sdk_gen/schemas/sign_request_base.py +++ b/box_sdk_gen/schemas/sign_request_base.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.sign_request_prefill_tag import SignRequestPrefillTag +from box_sdk_gen.box.errors import BoxSDKError + class SignRequestBase(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/sign_request_create_request.py b/box_sdk_gen/schemas/sign_request_create_request.py index 047a80fe..88d423f3 100644 --- a/box_sdk_gen/schemas/sign_request_create_request.py +++ b/box_sdk_gen/schemas/sign_request_create_request.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.folder_mini import FolderMini +from box_sdk_gen.box.errors import BoxSDKError + class SignRequestCreateRequestSignatureColorField(str, Enum): BLUE = 'blue' diff --git a/box_sdk_gen/schemas/sign_request_create_signer.py b/box_sdk_gen/schemas/sign_request_create_signer.py index f3d67350..2bdc5f69 100644 --- a/box_sdk_gen/schemas/sign_request_create_signer.py +++ b/box_sdk_gen/schemas/sign_request_create_signer.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class SignRequestCreateSignerRoleField(str, Enum): SIGNER = 'signer' diff --git a/box_sdk_gen/schemas/sign_request_prefill_tag.py b/box_sdk_gen/schemas/sign_request_prefill_tag.py index d331059b..88015a20 100644 --- a/box_sdk_gen/schemas/sign_request_prefill_tag.py +++ b/box_sdk_gen/schemas/sign_request_prefill_tag.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import Date diff --git a/box_sdk_gen/schemas/sign_request_signer.py b/box_sdk_gen/schemas/sign_request_signer.py index 85aef51b..dd01e0c9 100644 --- a/box_sdk_gen/schemas/sign_request_signer.py +++ b/box_sdk_gen/schemas/sign_request_signer.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.sign_request_signer_input import SignRequestSignerInput +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/sign_request_signer_input.py b/box_sdk_gen/schemas/sign_request_signer_input.py index 165186e4..1e6856ed 100644 --- a/box_sdk_gen/schemas/sign_request_signer_input.py +++ b/box_sdk_gen/schemas/sign_request_signer_input.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.sign_request_prefill_tag import SignRequestPrefillTag +from box_sdk_gen.box.errors import BoxSDKError + class SignRequestSignerInputTypeField(str, Enum): SIGNATURE = 'signature' diff --git a/box_sdk_gen/schemas/sign_requests.py b/box_sdk_gen/schemas/sign_requests.py index 361bb1a5..71c88ebf 100644 --- a/box_sdk_gen/schemas/sign_requests.py +++ b/box_sdk_gen/schemas/sign_requests.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.sign_request import SignRequest +from box_sdk_gen.box.errors import BoxSDKError + class SignRequests(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/sign_template.py b/box_sdk_gen/schemas/sign_template.py index a98aa043..01fbe666 100644 --- a/box_sdk_gen/schemas/sign_template.py +++ b/box_sdk_gen/schemas/sign_template.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.template_signer import TemplateSigner +from box_sdk_gen.box.errors import BoxSDKError + class SignTemplateTypeField(str, Enum): SIGN_TEMPLATE = 'sign-template' diff --git a/box_sdk_gen/schemas/sign_templates.py b/box_sdk_gen/schemas/sign_templates.py index ed4a6abf..00f7f744 100644 --- a/box_sdk_gen/schemas/sign_templates.py +++ b/box_sdk_gen/schemas/sign_templates.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.sign_template import SignTemplate +from box_sdk_gen.box.errors import BoxSDKError + class SignTemplates(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/skill_cards_metadata.py b/box_sdk_gen/schemas/skill_cards_metadata.py index 9313104e..b2e58029 100644 --- a/box_sdk_gen/schemas/skill_cards_metadata.py +++ b/box_sdk_gen/schemas/skill_cards_metadata.py @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.status_skill_card import StatusSkillCard +from box_sdk_gen.box.errors import BoxSDKError + class SkillCardsMetadata(BaseObject): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/schemas/skill_invocation.py b/box_sdk_gen/schemas/skill_invocation.py index fa475cb1..1da5e856 100644 --- a/box_sdk_gen/schemas/skill_invocation.py +++ b/box_sdk_gen/schemas/skill_invocation.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.event import Event +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/status_skill_card.py b/box_sdk_gen/schemas/status_skill_card.py index 8a4b617b..4f80a3ab 100644 --- a/box_sdk_gen/schemas/status_skill_card.py +++ b/box_sdk_gen/schemas/status_skill_card.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/storage_policies.py b/box_sdk_gen/schemas/storage_policies.py index ace49ab3..289946e7 100644 --- a/box_sdk_gen/schemas/storage_policies.py +++ b/box_sdk_gen/schemas/storage_policies.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.storage_policy import StoragePolicy +from box_sdk_gen.box.errors import BoxSDKError + class StoragePolicies(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/storage_policy.py b/box_sdk_gen/schemas/storage_policy.py index 86e75cff..5752c2ad 100644 --- a/box_sdk_gen/schemas/storage_policy.py +++ b/box_sdk_gen/schemas/storage_policy.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.storage_policy_mini import StoragePolicyMini +from box_sdk_gen.box.errors import BoxSDKError + class StoragePolicy(StoragePolicyMini): def __init__( diff --git a/box_sdk_gen/schemas/storage_policy_assignment.py b/box_sdk_gen/schemas/storage_policy_assignment.py index 72ac1509..391adb87 100644 --- a/box_sdk_gen/schemas/storage_policy_assignment.py +++ b/box_sdk_gen/schemas/storage_policy_assignment.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.storage_policy_mini import StoragePolicyMini +from box_sdk_gen.box.errors import BoxSDKError + class StoragePolicyAssignmentTypeField(str, Enum): STORAGE_POLICY_ASSIGNMENT = 'storage_policy_assignment' diff --git a/box_sdk_gen/schemas/storage_policy_assignments.py b/box_sdk_gen/schemas/storage_policy_assignments.py index fdf9f04a..b64f33c6 100644 --- a/box_sdk_gen/schemas/storage_policy_assignments.py +++ b/box_sdk_gen/schemas/storage_policy_assignments.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.storage_policy_assignment import StoragePolicyAssignment +from box_sdk_gen.box.errors import BoxSDKError + class StoragePolicyAssignments(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/storage_policy_mini.py b/box_sdk_gen/schemas/storage_policy_mini.py index fb25dac4..9be7de51 100644 --- a/box_sdk_gen/schemas/storage_policy_mini.py +++ b/box_sdk_gen/schemas/storage_policy_mini.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class StoragePolicyMiniTypeField(str, Enum): STORAGE_POLICY = 'storage_policy' diff --git a/box_sdk_gen/schemas/task.py b/box_sdk_gen/schemas/task.py index a7656e84..b21cffc5 100644 --- a/box_sdk_gen/schemas/task.py +++ b/box_sdk_gen/schemas/task.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/task_assignment.py b/box_sdk_gen/schemas/task_assignment.py index 38232548..7774c69f 100644 --- a/box_sdk_gen/schemas/task_assignment.py +++ b/box_sdk_gen/schemas/task_assignment.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/task_assignments.py b/box_sdk_gen/schemas/task_assignments.py index 35fb5cc8..4406a5dc 100644 --- a/box_sdk_gen/schemas/task_assignments.py +++ b/box_sdk_gen/schemas/task_assignments.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.task_assignment import TaskAssignment +from box_sdk_gen.box.errors import BoxSDKError + class TaskAssignments(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/tasks.py b/box_sdk_gen/schemas/tasks.py index 3a070217..e07699fe 100644 --- a/box_sdk_gen/schemas/tasks.py +++ b/box_sdk_gen/schemas/tasks.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.task import Task +from box_sdk_gen.box.errors import BoxSDKError + class Tasks(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/template_signer.py b/box_sdk_gen/schemas/template_signer.py index e4ced33b..768bc3c9 100644 --- a/box_sdk_gen/schemas/template_signer.py +++ b/box_sdk_gen/schemas/template_signer.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.template_signer_input import TemplateSignerInput +from box_sdk_gen.box.errors import BoxSDKError + class TemplateSignerRoleField(str, Enum): SIGNER = 'signer' diff --git a/box_sdk_gen/schemas/template_signer_input.py b/box_sdk_gen/schemas/template_signer_input.py index 66f0fa55..8eb3b3c3 100644 --- a/box_sdk_gen/schemas/template_signer_input.py +++ b/box_sdk_gen/schemas/template_signer_input.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.sign_request_prefill_tag import SignRequestPrefillTag +from box_sdk_gen.box.errors import BoxSDKError + class TemplateSignerInputTypeField(str, Enum): SIGNATURE = 'signature' diff --git a/box_sdk_gen/schemas/terms_of_service.py b/box_sdk_gen/schemas/terms_of_service.py index c97b17bc..1c434e4d 100644 --- a/box_sdk_gen/schemas/terms_of_service.py +++ b/box_sdk_gen/schemas/terms_of_service.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.terms_of_service_base import TermsOfServiceBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/terms_of_service_base.py b/box_sdk_gen/schemas/terms_of_service_base.py index 3a88d411..c570c2d6 100644 --- a/box_sdk_gen/schemas/terms_of_service_base.py +++ b/box_sdk_gen/schemas/terms_of_service_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class TermsOfServiceBaseTypeField(str, Enum): TERMS_OF_SERVICE = 'terms_of_service' diff --git a/box_sdk_gen/schemas/terms_of_service_user_status.py b/box_sdk_gen/schemas/terms_of_service_user_status.py index 2a537c23..7559b1f2 100644 --- a/box_sdk_gen/schemas/terms_of_service_user_status.py +++ b/box_sdk_gen/schemas/terms_of_service_user_status.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/terms_of_service_user_statuses.py b/box_sdk_gen/schemas/terms_of_service_user_statuses.py index 626ce6d5..15d8c95a 100644 --- a/box_sdk_gen/schemas/terms_of_service_user_statuses.py +++ b/box_sdk_gen/schemas/terms_of_service_user_statuses.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.terms_of_service_user_status import TermsOfServiceUserStatus +from box_sdk_gen.box.errors import BoxSDKError + class TermsOfServiceUserStatuses(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/terms_of_services.py b/box_sdk_gen/schemas/terms_of_services.py index 25f29d93..565ae98a 100644 --- a/box_sdk_gen/schemas/terms_of_services.py +++ b/box_sdk_gen/schemas/terms_of_services.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.terms_of_service import TermsOfService +from box_sdk_gen.box.errors import BoxSDKError + class TermsOfServices(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/timeline_skill_card.py b/box_sdk_gen/schemas/timeline_skill_card.py index e20f1fbc..8ff89561 100644 --- a/box_sdk_gen/schemas/timeline_skill_card.py +++ b/box_sdk_gen/schemas/timeline_skill_card.py @@ -6,6 +6,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/tracking_code.py b/box_sdk_gen/schemas/tracking_code.py index 5629769e..e514282b 100644 --- a/box_sdk_gen/schemas/tracking_code.py +++ b/box_sdk_gen/schemas/tracking_code.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class TrackingCodeTypeField(str, Enum): TRACKING_CODE = 'tracking_code' diff --git a/box_sdk_gen/schemas/transcript_skill_card.py b/box_sdk_gen/schemas/transcript_skill_card.py index 4491daeb..71d55a32 100644 --- a/box_sdk_gen/schemas/transcript_skill_card.py +++ b/box_sdk_gen/schemas/transcript_skill_card.py @@ -6,6 +6,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/trash_file.py b/box_sdk_gen/schemas/trash_file.py index 951faac2..bb95c042 100644 --- a/box_sdk_gen/schemas/trash_file.py +++ b/box_sdk_gen/schemas/trash_file.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.folder_mini import FolderMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/trash_file_restored.py b/box_sdk_gen/schemas/trash_file_restored.py index b638dd38..911f7ff8 100644 --- a/box_sdk_gen/schemas/trash_file_restored.py +++ b/box_sdk_gen/schemas/trash_file_restored.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/trash_folder.py b/box_sdk_gen/schemas/trash_folder.py index 5c4a074c..a4943f56 100644 --- a/box_sdk_gen/schemas/trash_folder.py +++ b/box_sdk_gen/schemas/trash_folder.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.folder_mini import FolderMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/trash_folder_restored.py b/box_sdk_gen/schemas/trash_folder_restored.py index ef9450ca..c76b0096 100644 --- a/box_sdk_gen/schemas/trash_folder_restored.py +++ b/box_sdk_gen/schemas/trash_folder_restored.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/trash_web_link.py b/box_sdk_gen/schemas/trash_web_link.py index df5a52aa..c6eabac2 100644 --- a/box_sdk_gen/schemas/trash_web_link.py +++ b/box_sdk_gen/schemas/trash_web_link.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/trash_web_link_restored.py b/box_sdk_gen/schemas/trash_web_link_restored.py index 9561eb8d..3b8e9e73 100644 --- a/box_sdk_gen/schemas/trash_web_link_restored.py +++ b/box_sdk_gen/schemas/trash_web_link_restored.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/upload_part.py b/box_sdk_gen/schemas/upload_part.py index 3614b93b..b9bef8b1 100644 --- a/box_sdk_gen/schemas/upload_part.py +++ b/box_sdk_gen/schemas/upload_part.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.upload_part_mini import UploadPartMini +from box_sdk_gen.box.errors import BoxSDKError + class UploadPart(UploadPartMini): _fields_to_json_mapping: Dict[str, str] = { diff --git a/box_sdk_gen/schemas/upload_part_mini.py b/box_sdk_gen/schemas/upload_part_mini.py index 889fdc87..70c511ca 100644 --- a/box_sdk_gen/schemas/upload_part_mini.py +++ b/box_sdk_gen/schemas/upload_part_mini.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class UploadPartMini(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/upload_parts.py b/box_sdk_gen/schemas/upload_parts.py index bc07d30b..2db690ab 100644 --- a/box_sdk_gen/schemas/upload_parts.py +++ b/box_sdk_gen/schemas/upload_parts.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.upload_part import UploadPart +from box_sdk_gen.box.errors import BoxSDKError + class UploadPartsOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/upload_session.py b/box_sdk_gen/schemas/upload_session.py index f063dca2..9889fc75 100644 --- a/box_sdk_gen/schemas/upload_session.py +++ b/box_sdk_gen/schemas/upload_session.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/upload_url.py b/box_sdk_gen/schemas/upload_url.py index 5291f9c6..2618ce30 100644 --- a/box_sdk_gen/schemas/upload_url.py +++ b/box_sdk_gen/schemas/upload_url.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class UploadUrl(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/uploaded_part.py b/box_sdk_gen/schemas/uploaded_part.py index 69e3f3e3..e8d1fa27 100644 --- a/box_sdk_gen/schemas/uploaded_part.py +++ b/box_sdk_gen/schemas/uploaded_part.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.upload_part import UploadPart +from box_sdk_gen.box.errors import BoxSDKError + class UploadedPart(BaseObject): def __init__(self, *, part: Optional[UploadPart] = None, **kwargs): diff --git a/box_sdk_gen/schemas/user.py b/box_sdk_gen/schemas/user.py index bc5087c1..483fed19 100644 --- a/box_sdk_gen/schemas/user.py +++ b/box_sdk_gen/schemas/user.py @@ -10,6 +10,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/user_avatar.py b/box_sdk_gen/schemas/user_avatar.py index b26e48d3..c13545ec 100644 --- a/box_sdk_gen/schemas/user_avatar.py +++ b/box_sdk_gen/schemas/user_avatar.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class UserAvatarPicUrlsField(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/user_base.py b/box_sdk_gen/schemas/user_base.py index 6a1c57b0..c9ad4b1e 100644 --- a/box_sdk_gen/schemas/user_base.py +++ b/box_sdk_gen/schemas/user_base.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class UserBaseTypeField(str, Enum): USER = 'user' diff --git a/box_sdk_gen/schemas/user_collaborations.py b/box_sdk_gen/schemas/user_collaborations.py index ebf5645b..932ac32a 100644 --- a/box_sdk_gen/schemas/user_collaborations.py +++ b/box_sdk_gen/schemas/user_collaborations.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + class UserCollaborations(UserBase): def __init__( diff --git a/box_sdk_gen/schemas/user_full.py b/box_sdk_gen/schemas/user_full.py index 0d05dc06..9379b1d5 100644 --- a/box_sdk_gen/schemas/user_full.py +++ b/box_sdk_gen/schemas/user_full.py @@ -22,6 +22,8 @@ from box_sdk_gen.schemas.tracking_code import TrackingCode +from box_sdk_gen.box.errors import BoxSDKError + class UserFullRoleField(str, Enum): ADMIN = 'admin' diff --git a/box_sdk_gen/schemas/user_integration_mappings.py b/box_sdk_gen/schemas/user_integration_mappings.py index e8238855..fbdefaa6 100644 --- a/box_sdk_gen/schemas/user_integration_mappings.py +++ b/box_sdk_gen/schemas/user_integration_mappings.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + class UserIntegrationMappings(UserBase): def __init__( diff --git a/box_sdk_gen/schemas/user_mini.py b/box_sdk_gen/schemas/user_mini.py index a8276fe3..a01db809 100644 --- a/box_sdk_gen/schemas/user_mini.py +++ b/box_sdk_gen/schemas/user_mini.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + class UserMini(UserBase): def __init__( diff --git a/box_sdk_gen/schemas/users.py b/box_sdk_gen/schemas/users.py index ab585d76..c7a6fb74 100644 --- a/box_sdk_gen/schemas/users.py +++ b/box_sdk_gen/schemas/users.py @@ -8,6 +8,8 @@ from box_sdk_gen.schemas.user_full import UserFull +from box_sdk_gen.box.errors import BoxSDKError + class UsersOrderDirectionField(str, Enum): ASC = 'ASC' diff --git a/box_sdk_gen/schemas/watermark.py b/box_sdk_gen/schemas/watermark.py index bea7fa93..2e2bc443 100644 --- a/box_sdk_gen/schemas/watermark.py +++ b/box_sdk_gen/schemas/watermark.py @@ -2,6 +2,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/web_link.py b/box_sdk_gen/schemas/web_link.py index 037811c0..082efaae 100644 --- a/box_sdk_gen/schemas/web_link.py +++ b/box_sdk_gen/schemas/web_link.py @@ -16,6 +16,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/web_link_base.py b/box_sdk_gen/schemas/web_link_base.py index d5818596..710f9e38 100644 --- a/box_sdk_gen/schemas/web_link_base.py +++ b/box_sdk_gen/schemas/web_link_base.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class WebLinkBaseTypeField(str, Enum): WEB_LINK = 'web_link' diff --git a/box_sdk_gen/schemas/web_link_mini.py b/box_sdk_gen/schemas/web_link_mini.py index 41f14c6d..f38378df 100644 --- a/box_sdk_gen/schemas/web_link_mini.py +++ b/box_sdk_gen/schemas/web_link_mini.py @@ -4,6 +4,8 @@ from box_sdk_gen.schemas.web_link_base import WebLinkBase +from box_sdk_gen.box.errors import BoxSDKError + class WebLinkMini(WebLinkBase): def __init__( diff --git a/box_sdk_gen/schemas/webhook.py b/box_sdk_gen/schemas/webhook.py index 168a6be2..0f198abf 100644 --- a/box_sdk_gen/schemas/webhook.py +++ b/box_sdk_gen/schemas/webhook.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.user_mini import UserMini +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/webhook_invocation.py b/box_sdk_gen/schemas/webhook_invocation.py index 59842ca7..23fd5750 100644 --- a/box_sdk_gen/schemas/webhook_invocation.py +++ b/box_sdk_gen/schemas/webhook_invocation.py @@ -14,6 +14,8 @@ from box_sdk_gen.schemas.folder import Folder +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/webhook_mini.py b/box_sdk_gen/schemas/webhook_mini.py index 4e283bb0..fd282bd3 100644 --- a/box_sdk_gen/schemas/webhook_mini.py +++ b/box_sdk_gen/schemas/webhook_mini.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class WebhookMiniTypeField(str, Enum): WEBHOOK = 'webhook' diff --git a/box_sdk_gen/schemas/webhooks.py b/box_sdk_gen/schemas/webhooks.py index 673111c5..35d6d19a 100644 --- a/box_sdk_gen/schemas/webhooks.py +++ b/box_sdk_gen/schemas/webhooks.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.webhook_mini import WebhookMini +from box_sdk_gen.box.errors import BoxSDKError + class Webhooks(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/workflow.py b/box_sdk_gen/schemas/workflow.py index a28175f3..ec6980d4 100644 --- a/box_sdk_gen/schemas/workflow.py +++ b/box_sdk_gen/schemas/workflow.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/workflow_full.py b/box_sdk_gen/schemas/workflow_full.py index 930b3383..39c255ba 100644 --- a/box_sdk_gen/schemas/workflow_full.py +++ b/box_sdk_gen/schemas/workflow_full.py @@ -12,6 +12,8 @@ from box_sdk_gen.schemas.user_base import UserBase +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/workflow_mini.py b/box_sdk_gen/schemas/workflow_mini.py index 080832cb..e53c463e 100644 --- a/box_sdk_gen/schemas/workflow_mini.py +++ b/box_sdk_gen/schemas/workflow_mini.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class WorkflowMiniTypeField(str, Enum): WORKFLOW = 'workflow' diff --git a/box_sdk_gen/schemas/workflows.py b/box_sdk_gen/schemas/workflows.py index 67c77ffe..6ea306a4 100644 --- a/box_sdk_gen/schemas/workflows.py +++ b/box_sdk_gen/schemas/workflows.py @@ -6,6 +6,8 @@ from box_sdk_gen.schemas.workflow import Workflow +from box_sdk_gen.box.errors import BoxSDKError + class Workflows(BaseObject): def __init__( diff --git a/box_sdk_gen/schemas/zip_download.py b/box_sdk_gen/schemas/zip_download.py index db08c6df..6779e62f 100644 --- a/box_sdk_gen/schemas/zip_download.py +++ b/box_sdk_gen/schemas/zip_download.py @@ -6,6 +6,8 @@ from typing import List +from box_sdk_gen.box.errors import BoxSDKError + from box_sdk_gen.internal.utils import DateTime diff --git a/box_sdk_gen/schemas/zip_download_request.py b/box_sdk_gen/schemas/zip_download_request.py index 1c975f47..45185b6f 100644 --- a/box_sdk_gen/schemas/zip_download_request.py +++ b/box_sdk_gen/schemas/zip_download_request.py @@ -6,6 +6,8 @@ from typing import Optional +from box_sdk_gen.box.errors import BoxSDKError + class ZipDownloadRequestItemsTypeField(str, Enum): FILE = 'file' diff --git a/box_sdk_gen/schemas/zip_download_status.py b/box_sdk_gen/schemas/zip_download_status.py index 8568c002..2923e3a0 100644 --- a/box_sdk_gen/schemas/zip_download_status.py +++ b/box_sdk_gen/schemas/zip_download_status.py @@ -4,6 +4,8 @@ from box_sdk_gen.internal.base_object import BaseObject +from box_sdk_gen.box.errors import BoxSDKError + class ZipDownloadStatusStateField(str, Enum): IN_PROGRESS = 'in_progress' diff --git a/box_sdk_gen/serialization/json/serializer.py b/box_sdk_gen/serialization/json.py similarity index 55% rename from box_sdk_gen/serialization/json/serializer.py rename to box_sdk_gen/serialization/json.py index 408d20f7..68586f20 100644 --- a/box_sdk_gen/serialization/json/serializer.py +++ b/box_sdk_gen/serialization/json.py @@ -1,7 +1,26 @@ -from typing import get_origin, Union, Type +import json +from typing import Dict, get_origin, Union, Type +from urllib.parse import urlencode -from ...internal.base_object import BaseObject -from .json_data import SerializedData +from ..internal.base_object import BaseObject + +SerializedData = Dict + + +def json_to_serialized_data(data: str) -> SerializedData: + return json.loads(data) + + +def sd_to_json(data: SerializedData) -> str: + return json.dumps(data) + + +def sd_to_url_params(data: SerializedData) -> str: + return urlencode(data) + + +def get_sd_value_by_key(data: SerializedData, key: str): + return data.get(key) def serialize(obj: Union[BaseObject, dict, list]) -> SerializedData: diff --git a/box_sdk_gen/serialization/json/__init__.py b/box_sdk_gen/serialization/json/__init__.py deleted file mode 100644 index 4f6731f8..00000000 --- a/box_sdk_gen/serialization/json/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from box_sdk_gen.serialization.json.json_data import * - -from box_sdk_gen.serialization.json.serializer import * diff --git a/box_sdk_gen/serialization/json/json_data.py b/box_sdk_gen/serialization/json/json_data.py deleted file mode 100644 index 1ef14650..00000000 --- a/box_sdk_gen/serialization/json/json_data.py +++ /dev/null @@ -1,21 +0,0 @@ -import json -from typing import Dict -from urllib.parse import urlencode - -SerializedData = Dict - - -def json_to_serialized_data(data: str) -> SerializedData: - return json.loads(data) - - -def sd_to_json(data: SerializedData) -> str: - return json.dumps(data) - - -def sd_to_url_params(data: SerializedData) -> str: - return urlencode(data) - - -def get_sd_value_by_key(data: SerializedData, key: str): - return data.get(key) diff --git a/test/client.py b/test/client.py index dd96b4e8..91eeb8ef 100644 --- a/test/client.py +++ b/test/client.py @@ -4,7 +4,7 @@ from box_sdk_gen.client import BoxClient -from box_sdk_gen.serialization.json.json_data import SerializedData +from box_sdk_gen.serialization.json import SerializedData from box_sdk_gen.schemas.folder_full import FolderFull @@ -48,9 +48,9 @@ from box_sdk_gen.networking.base_urls import BaseUrls -from box_sdk_gen.serialization.json.json_data import json_to_serialized_data +from box_sdk_gen.serialization.json import json_to_serialized_data -from box_sdk_gen.serialization.json.json_data import get_sd_value_by_key +from box_sdk_gen.serialization.json import get_sd_value_by_key client: BoxClient = get_default_client()