capo-workdocs 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- capo_workdocs/__init__.py +70 -0
- capo_workdocs/_async.py +25 -0
- capo_workdocs/_auth/_identity.py +16 -0
- capo_workdocs/_auth/_providers.py +886 -0
- capo_workdocs/_auth/_signers.py +88 -0
- capo_workdocs/_auth/_sigv4.py +434 -0
- capo_workdocs/_auth/_zapros_handler.py +80 -0
- capo_workdocs/_iter.py +113 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/abort_document_version_upload.py +151 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/activate_user.py +166 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/add_resource_permissions.py +174 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/create_comment.py +190 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/create_custom_metadata.py +176 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/create_folder.py +193 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/create_labels.py +167 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/create_notification_subscription.py +168 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/create_user.py +168 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/deactivate_user.py +138 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_comment.py +153 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_custom_metadata.py +171 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_document.py +158 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_document_version.py +163 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_folder.py +158 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_folder_contents.py +148 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_labels.py +167 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_notification_subscription.py +135 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/delete_user.py +138 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_activities.py +201 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_comments.py +181 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_document_versions.py +187 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_folder_contents.py +205 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_groups.py +167 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_notification_subscriptions.py +159 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_resource_permissions.py +170 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_root_folders.py +166 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/describe_users.py +208 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_current_user.py +166 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_document.py +183 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_document_path.py +174 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_document_version.py +186 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_folder.py +179 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_folder_path.py +172 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/get_resources.py +183 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/initiate_document_version_upload.py +215 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/remove_all_resource_permissions.py +133 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/remove_resource_permission.py +149 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/restore_document_versions.py +153 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/search_resources.py +169 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/update_document.py +168 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/update_document_version.py +161 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/update_folder.py +168 -0
- capo_workdocs/_operations/aws_gorilla_boy_service/update_user.py +193 -0
- capo_workdocs/_pagination.py +21 -0
- capo_workdocs/_protocol/__init__.py +1 -0
- capo_workdocs/_protocol/errors.py +93 -0
- capo_workdocs/_protocol/eventstream.py +238 -0
- capo_workdocs/_protocol/serialize.py +47 -0
- capo_workdocs/_protocol/xml.py +33 -0
- capo_workdocs/_rule_engine/__init__.py +0 -0
- capo_workdocs/_rule_engine/_aws_partition.py +160 -0
- capo_workdocs/_rule_engine/_endpoint_rule_set.py +136 -0
- capo_workdocs/_rule_engine/_endpoint_runtime.py +389 -0
- capo_workdocs/_services/_aws_config.py +160 -0
- capo_workdocs/_services/_pipeline.py +198 -0
- capo_workdocs/_services/async_work_docs.py +3513 -0
- capo_workdocs/_services/work_docs.py +3469 -0
- capo_workdocs/errors/__init__.py +94 -0
- capo_workdocs/errors/_base.py +94 -0
- capo_workdocs/errors/concurrent_modification_exception.py +53 -0
- capo_workdocs/errors/conflicting_operation_exception.py +53 -0
- capo_workdocs/errors/custom_metadata_limit_exceeded_exception.py +53 -0
- capo_workdocs/errors/deactivating_last_system_user_exception.py +59 -0
- capo_workdocs/errors/document_locked_for_comments_exception.py +53 -0
- capo_workdocs/errors/draft_upload_out_of_sync_exception.py +53 -0
- capo_workdocs/errors/entity_already_exists_exception.py +51 -0
- capo_workdocs/errors/entity_not_exists_exception.py +66 -0
- capo_workdocs/errors/failed_dependency_exception.py +51 -0
- capo_workdocs/errors/illegal_user_state_exception.py +51 -0
- capo_workdocs/errors/invalid_argument_exception.py +51 -0
- capo_workdocs/errors/invalid_comment_operation_exception.py +53 -0
- capo_workdocs/errors/invalid_operation_exception.py +51 -0
- capo_workdocs/errors/invalid_password_exception.py +51 -0
- capo_workdocs/errors/limit_exceeded_exception.py +51 -0
- capo_workdocs/errors/prohibited_state_exception.py +51 -0
- capo_workdocs/errors/requested_entity_too_large_exception.py +53 -0
- capo_workdocs/errors/resource_already_checked_out_exception.py +53 -0
- capo_workdocs/errors/service_unavailable_exception.py +51 -0
- capo_workdocs/errors/storage_limit_exceeded_exception.py +53 -0
- capo_workdocs/errors/storage_limit_will_exceed_exception.py +53 -0
- capo_workdocs/errors/too_many_labels_exception.py +51 -0
- capo_workdocs/errors/too_many_subscriptions_exception.py +53 -0
- capo_workdocs/errors/unauthorized_operation_exception.py +59 -0
- capo_workdocs/errors/unauthorized_resource_access_exception.py +53 -0
- capo_workdocs/py.typed +0 -0
- capo_workdocs/types/_prelude/blob.py +12 -0
- capo_workdocs/types/_prelude/timestamp.py +17 -0
- capo_workdocs/types/abort_document_version_upload_request.py +32 -0
- capo_workdocs/types/activate_user_request.py +29 -0
- capo_workdocs/types/activate_user_response.py +32 -0
- capo_workdocs/types/activity.py +144 -0
- capo_workdocs/types/activity_names_filter_type.py +5 -0
- capo_workdocs/types/activity_type.py +48 -0
- capo_workdocs/types/add_resource_permissions_request.py +68 -0
- capo_workdocs/types/add_resource_permissions_response.py +38 -0
- capo_workdocs/types/additional_response_field_type.py +14 -0
- capo_workdocs/types/additional_response_fields_list.py +35 -0
- capo_workdocs/types/authentication_header_type.py +5 -0
- capo_workdocs/types/boolean_enum_type.py +17 -0
- capo_workdocs/types/boolean_type.py +5 -0
- capo_workdocs/types/comment.py +121 -0
- capo_workdocs/types/comment_id_type.py +5 -0
- capo_workdocs/types/comment_list.py +29 -0
- capo_workdocs/types/comment_metadata.py +90 -0
- capo_workdocs/types/comment_status_type.py +18 -0
- capo_workdocs/types/comment_text_type.py +5 -0
- capo_workdocs/types/comment_visibility_type.py +17 -0
- capo_workdocs/types/content_category_type.py +24 -0
- capo_workdocs/types/create_comment_request.py +82 -0
- capo_workdocs/types/create_comment_response.py +32 -0
- capo_workdocs/types/create_custom_metadata_request.py +56 -0
- capo_workdocs/types/create_custom_metadata_response.py +18 -0
- capo_workdocs/types/create_folder_request.py +43 -0
- capo_workdocs/types/create_folder_response.py +36 -0
- capo_workdocs/types/create_labels_request.py +45 -0
- capo_workdocs/types/create_labels_response.py +18 -0
- capo_workdocs/types/create_notification_subscription_request.py +76 -0
- capo_workdocs/types/create_notification_subscription_response.py +36 -0
- capo_workdocs/types/create_user_request.py +97 -0
- capo_workdocs/types/create_user_response.py +32 -0
- capo_workdocs/types/custom_metadata_key_list.py +19 -0
- capo_workdocs/types/custom_metadata_key_type.py +5 -0
- capo_workdocs/types/custom_metadata_map.py +29 -0
- capo_workdocs/types/custom_metadata_value_type.py +5 -0
- capo_workdocs/types/date_range_type.py +50 -0
- capo_workdocs/types/deactivate_user_request.py +29 -0
- capo_workdocs/types/delete_comment_request.py +35 -0
- capo_workdocs/types/delete_custom_metadata_request.py +42 -0
- capo_workdocs/types/delete_custom_metadata_response.py +18 -0
- capo_workdocs/types/delete_document_request.py +29 -0
- capo_workdocs/types/delete_document_version_request.py +35 -0
- capo_workdocs/types/delete_folder_contents_request.py +29 -0
- capo_workdocs/types/delete_folder_request.py +29 -0
- capo_workdocs/types/delete_labels_request.py +35 -0
- capo_workdocs/types/delete_labels_response.py +18 -0
- capo_workdocs/types/delete_notification_subscription_request.py +26 -0
- capo_workdocs/types/delete_user_request.py +29 -0
- capo_workdocs/types/describe_activities_request.py +52 -0
- capo_workdocs/types/describe_activities_response.py +43 -0
- capo_workdocs/types/describe_comments_request.py +38 -0
- capo_workdocs/types/describe_comments_response.py +43 -0
- capo_workdocs/types/describe_document_versions_request.py +40 -0
- capo_workdocs/types/describe_document_versions_response.py +49 -0
- capo_workdocs/types/describe_folder_contents_request.py +47 -0
- capo_workdocs/types/describe_folder_contents_response.py +60 -0
- capo_workdocs/types/describe_groups_request.py +38 -0
- capo_workdocs/types/describe_groups_response.py +43 -0
- capo_workdocs/types/describe_notification_subscriptions_request.py +30 -0
- capo_workdocs/types/describe_notification_subscriptions_response.py +43 -0
- capo_workdocs/types/describe_resource_permissions_request.py +38 -0
- capo_workdocs/types/describe_resource_permissions_response.py +43 -0
- capo_workdocs/types/describe_root_folders_request.py +32 -0
- capo_workdocs/types/describe_root_folders_response.py +43 -0
- capo_workdocs/types/describe_users_request.py +53 -0
- capo_workdocs/types/describe_users_response.py +52 -0
- capo_workdocs/types/document_content_type.py +5 -0
- capo_workdocs/types/document_metadata.py +125 -0
- capo_workdocs/types/document_metadata_list.py +31 -0
- capo_workdocs/types/document_source_type.py +17 -0
- capo_workdocs/types/document_source_url_map.py +33 -0
- capo_workdocs/types/document_status_type.py +17 -0
- capo_workdocs/types/document_thumbnail_type.py +18 -0
- capo_workdocs/types/document_thumbnail_url_map.py +33 -0
- capo_workdocs/types/document_version_id_type.py +5 -0
- capo_workdocs/types/document_version_metadata.py +189 -0
- capo_workdocs/types/document_version_metadata_list.py +31 -0
- capo_workdocs/types/document_version_status.py +14 -0
- capo_workdocs/types/email_address_type.py +5 -0
- capo_workdocs/types/entity_id_list.py +17 -0
- capo_workdocs/types/error_message_type.py +5 -0
- capo_workdocs/types/exception_code_type.py +5 -0
- capo_workdocs/types/field_names_type.py +5 -0
- capo_workdocs/types/filters.py +202 -0
- capo_workdocs/types/folder_content_type.py +18 -0
- capo_workdocs/types/folder_metadata.py +131 -0
- capo_workdocs/types/folder_metadata_list.py +31 -0
- capo_workdocs/types/get_current_user_request.py +26 -0
- capo_workdocs/types/get_current_user_response.py +32 -0
- capo_workdocs/types/get_document_path_request.py +38 -0
- capo_workdocs/types/get_document_path_response.py +32 -0
- capo_workdocs/types/get_document_request.py +32 -0
- capo_workdocs/types/get_document_response.py +55 -0
- capo_workdocs/types/get_document_version_request.py +38 -0
- capo_workdocs/types/get_document_version_response.py +59 -0
- capo_workdocs/types/get_folder_path_request.py +38 -0
- capo_workdocs/types/get_folder_path_response.py +32 -0
- capo_workdocs/types/get_folder_request.py +32 -0
- capo_workdocs/types/get_folder_response.py +55 -0
- capo_workdocs/types/get_resources_request.py +40 -0
- capo_workdocs/types/get_resources_response.py +60 -0
- capo_workdocs/types/group_metadata.py +35 -0
- capo_workdocs/types/group_metadata_list.py +29 -0
- capo_workdocs/types/group_name_type.py +5 -0
- capo_workdocs/types/hash_type.py +5 -0
- capo_workdocs/types/header_name_type.py +5 -0
- capo_workdocs/types/header_value_type.py +5 -0
- capo_workdocs/types/id_type.py +5 -0
- capo_workdocs/types/initiate_document_version_upload_request.py +103 -0
- capo_workdocs/types/initiate_document_version_upload_response.py +51 -0
- capo_workdocs/types/language_code_type.py +46 -0
- capo_workdocs/types/limit_type.py +5 -0
- capo_workdocs/types/locale_type.py +26 -0
- capo_workdocs/types/long_range_type.py +34 -0
- capo_workdocs/types/long_type.py +5 -0
- capo_workdocs/types/marker_type.py +5 -0
- capo_workdocs/types/message_type.py +5 -0
- capo_workdocs/types/next_marker_type.py +5 -0
- capo_workdocs/types/notification_options.py +36 -0
- capo_workdocs/types/order_by_field_type.py +20 -0
- capo_workdocs/types/order_type.py +17 -0
- capo_workdocs/types/organization_user_list.py +29 -0
- capo_workdocs/types/page_marker_type.py +5 -0
- capo_workdocs/types/participants.py +51 -0
- capo_workdocs/types/password_type.py +5 -0
- capo_workdocs/types/permission_info.py +47 -0
- capo_workdocs/types/permission_info_list.py +31 -0
- capo_workdocs/types/positive_integer_type.py +5 -0
- capo_workdocs/types/positive_size_type.py +5 -0
- capo_workdocs/types/principal.py +54 -0
- capo_workdocs/types/principal_list.py +29 -0
- capo_workdocs/types/principal_role_type.py +19 -0
- capo_workdocs/types/principal_type.py +20 -0
- capo_workdocs/types/remove_all_resource_permissions_request.py +29 -0
- capo_workdocs/types/remove_resource_permission_request.py +35 -0
- capo_workdocs/types/resource_collection_type.py +14 -0
- capo_workdocs/types/resource_id_type.py +5 -0
- capo_workdocs/types/resource_metadata.py +80 -0
- capo_workdocs/types/resource_name_type.py +5 -0
- capo_workdocs/types/resource_path.py +42 -0
- capo_workdocs/types/resource_path_component.py +35 -0
- capo_workdocs/types/resource_path_component_list.py +31 -0
- capo_workdocs/types/resource_sort_type.py +17 -0
- capo_workdocs/types/resource_state_type.py +19 -0
- capo_workdocs/types/resource_type.py +17 -0
- capo_workdocs/types/response_item.py +117 -0
- capo_workdocs/types/response_item_type.py +19 -0
- capo_workdocs/types/response_item_web_url.py +5 -0
- capo_workdocs/types/response_items_list.py +29 -0
- capo_workdocs/types/restore_document_versions_request.py +29 -0
- capo_workdocs/types/role_permission_type.py +17 -0
- capo_workdocs/types/role_type.py +19 -0
- capo_workdocs/types/search_ancestor_id.py +5 -0
- capo_workdocs/types/search_ancestor_id_list.py +19 -0
- capo_workdocs/types/search_collection_type.py +17 -0
- capo_workdocs/types/search_collection_type_list.py +31 -0
- capo_workdocs/types/search_content_category_type_list.py +31 -0
- capo_workdocs/types/search_label.py +5 -0
- capo_workdocs/types/search_label_list.py +17 -0
- capo_workdocs/types/search_marker_type.py +5 -0
- capo_workdocs/types/search_principal_role_list.py +31 -0
- capo_workdocs/types/search_principal_type.py +48 -0
- capo_workdocs/types/search_principal_type_list.py +31 -0
- capo_workdocs/types/search_query_scope_type.py +17 -0
- capo_workdocs/types/search_query_scope_type_list.py +31 -0
- capo_workdocs/types/search_query_type.py +5 -0
- capo_workdocs/types/search_resource_type.py +19 -0
- capo_workdocs/types/search_resource_type_list.py +31 -0
- capo_workdocs/types/search_resources_request.py +126 -0
- capo_workdocs/types/search_resources_response.py +43 -0
- capo_workdocs/types/search_result_sort_list.py +31 -0
- capo_workdocs/types/search_results_limit_type.py +5 -0
- capo_workdocs/types/search_sort_result.py +47 -0
- capo_workdocs/types/share_principal.py +55 -0
- capo_workdocs/types/share_principal_list.py +31 -0
- capo_workdocs/types/share_result.py +74 -0
- capo_workdocs/types/share_results_list.py +29 -0
- capo_workdocs/types/share_status_type.py +17 -0
- capo_workdocs/types/shared_label.py +5 -0
- capo_workdocs/types/shared_labels.py +17 -0
- capo_workdocs/types/signed_header_map.py +29 -0
- capo_workdocs/types/size_type.py +5 -0
- capo_workdocs/types/sort_order.py +17 -0
- capo_workdocs/types/storage_rule_type.py +45 -0
- capo_workdocs/types/storage_type.py +17 -0
- capo_workdocs/types/subscription.py +56 -0
- capo_workdocs/types/subscription_end_point_type.py +5 -0
- capo_workdocs/types/subscription_list.py +29 -0
- capo_workdocs/types/subscription_protocol_type.py +17 -0
- capo_workdocs/types/subscription_type.py +14 -0
- capo_workdocs/types/text_locale_type_list.py +31 -0
- capo_workdocs/types/time_zone_id_type.py +5 -0
- capo_workdocs/types/timestamp_type.py +20 -0
- capo_workdocs/types/update_document_request.py +61 -0
- capo_workdocs/types/update_document_version_request.py +53 -0
- capo_workdocs/types/update_folder_request.py +61 -0
- capo_workdocs/types/update_user_request.py +111 -0
- capo_workdocs/types/update_user_response.py +32 -0
- capo_workdocs/types/upload_metadata.py +43 -0
- capo_workdocs/types/url_type.py +5 -0
- capo_workdocs/types/user.py +172 -0
- capo_workdocs/types/user_activities.py +29 -0
- capo_workdocs/types/user_attribute_value_type.py +5 -0
- capo_workdocs/types/user_filter_type.py +17 -0
- capo_workdocs/types/user_ids_type.py +5 -0
- capo_workdocs/types/user_metadata.py +61 -0
- capo_workdocs/types/user_metadata_list.py +29 -0
- capo_workdocs/types/user_sort_type.py +20 -0
- capo_workdocs/types/user_status_type.py +18 -0
- capo_workdocs/types/user_storage_metadata.py +43 -0
- capo_workdocs/types/user_type.py +20 -0
- capo_workdocs/types/username_type.py +5 -0
- capo_workdocs-0.1.0.dist-info/METADATA +101 -0
- capo_workdocs-0.1.0.dist-info/RECORD +315 -0
- capo_workdocs-0.1.0.dist-info/WHEEL +5 -0
- capo_workdocs-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_workdocs-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from ._base import (
|
|
4
|
+
DeserializationError as DeserializationError,
|
|
5
|
+
)
|
|
6
|
+
from ._base import (
|
|
7
|
+
SerializationError as SerializationError,
|
|
8
|
+
)
|
|
9
|
+
from ._base import (
|
|
10
|
+
ServiceError as ServiceError,
|
|
11
|
+
)
|
|
12
|
+
from ._base import (
|
|
13
|
+
UnknownServiceError as UnknownServiceError,
|
|
14
|
+
)
|
|
15
|
+
from ._base import (
|
|
16
|
+
WaiterFailedError as WaiterFailedError,
|
|
17
|
+
)
|
|
18
|
+
from ._base import (
|
|
19
|
+
WaiterTimeoutError as WaiterTimeoutError,
|
|
20
|
+
)
|
|
21
|
+
from ._base import (
|
|
22
|
+
WorkDocsError as WorkDocsError,
|
|
23
|
+
)
|
|
24
|
+
from .concurrent_modification_exception import (
|
|
25
|
+
ConcurrentModificationException as ConcurrentModificationException,
|
|
26
|
+
)
|
|
27
|
+
from .conflicting_operation_exception import (
|
|
28
|
+
ConflictingOperationException as ConflictingOperationException,
|
|
29
|
+
)
|
|
30
|
+
from .custom_metadata_limit_exceeded_exception import (
|
|
31
|
+
CustomMetadataLimitExceededException as CustomMetadataLimitExceededException,
|
|
32
|
+
)
|
|
33
|
+
from .deactivating_last_system_user_exception import (
|
|
34
|
+
DeactivatingLastSystemUserException as DeactivatingLastSystemUserException,
|
|
35
|
+
)
|
|
36
|
+
from .document_locked_for_comments_exception import (
|
|
37
|
+
DocumentLockedForCommentsException as DocumentLockedForCommentsException,
|
|
38
|
+
)
|
|
39
|
+
from .draft_upload_out_of_sync_exception import (
|
|
40
|
+
DraftUploadOutOfSyncException as DraftUploadOutOfSyncException,
|
|
41
|
+
)
|
|
42
|
+
from .entity_already_exists_exception import (
|
|
43
|
+
EntityAlreadyExistsException as EntityAlreadyExistsException,
|
|
44
|
+
)
|
|
45
|
+
from .entity_not_exists_exception import (
|
|
46
|
+
EntityNotExistsException as EntityNotExistsException,
|
|
47
|
+
)
|
|
48
|
+
from .failed_dependency_exception import (
|
|
49
|
+
FailedDependencyException as FailedDependencyException,
|
|
50
|
+
)
|
|
51
|
+
from .illegal_user_state_exception import (
|
|
52
|
+
IllegalUserStateException as IllegalUserStateException,
|
|
53
|
+
)
|
|
54
|
+
from .invalid_argument_exception import (
|
|
55
|
+
InvalidArgumentException as InvalidArgumentException,
|
|
56
|
+
)
|
|
57
|
+
from .invalid_comment_operation_exception import (
|
|
58
|
+
InvalidCommentOperationException as InvalidCommentOperationException,
|
|
59
|
+
)
|
|
60
|
+
from .invalid_operation_exception import (
|
|
61
|
+
InvalidOperationException as InvalidOperationException,
|
|
62
|
+
)
|
|
63
|
+
from .invalid_password_exception import (
|
|
64
|
+
InvalidPasswordException as InvalidPasswordException,
|
|
65
|
+
)
|
|
66
|
+
from .limit_exceeded_exception import LimitExceededException as LimitExceededException
|
|
67
|
+
from .prohibited_state_exception import (
|
|
68
|
+
ProhibitedStateException as ProhibitedStateException,
|
|
69
|
+
)
|
|
70
|
+
from .requested_entity_too_large_exception import (
|
|
71
|
+
RequestedEntityTooLargeException as RequestedEntityTooLargeException,
|
|
72
|
+
)
|
|
73
|
+
from .resource_already_checked_out_exception import (
|
|
74
|
+
ResourceAlreadyCheckedOutException as ResourceAlreadyCheckedOutException,
|
|
75
|
+
)
|
|
76
|
+
from .service_unavailable_exception import (
|
|
77
|
+
ServiceUnavailableException as ServiceUnavailableException,
|
|
78
|
+
)
|
|
79
|
+
from .storage_limit_exceeded_exception import (
|
|
80
|
+
StorageLimitExceededException as StorageLimitExceededException,
|
|
81
|
+
)
|
|
82
|
+
from .storage_limit_will_exceed_exception import (
|
|
83
|
+
StorageLimitWillExceedException as StorageLimitWillExceedException,
|
|
84
|
+
)
|
|
85
|
+
from .too_many_labels_exception import TooManyLabelsException as TooManyLabelsException
|
|
86
|
+
from .too_many_subscriptions_exception import (
|
|
87
|
+
TooManySubscriptionsException as TooManySubscriptionsException,
|
|
88
|
+
)
|
|
89
|
+
from .unauthorized_operation_exception import (
|
|
90
|
+
UnauthorizedOperationException as UnauthorizedOperationException,
|
|
91
|
+
)
|
|
92
|
+
from .unauthorized_resource_access_exception import (
|
|
93
|
+
UnauthorizedResourceAccessException as UnauthorizedResourceAccessException,
|
|
94
|
+
)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class WorkDocsError(Exception):
|
|
5
|
+
"""Base class for all WorkDocs service errors."""
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ServiceError(WorkDocsError):
|
|
9
|
+
"""Base class for all modeled service errors.
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
fault: ``"client"`` or ``"server"``.
|
|
13
|
+
is_throttling_error: Whether this error is a throttling error.
|
|
14
|
+
is_retryable: Whether this error is retryable.
|
|
15
|
+
code: The wire error code, or ``None``.
|
|
16
|
+
message: The error message, or ``None``.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
code: str | None = None
|
|
20
|
+
|
|
21
|
+
def __init__(
|
|
22
|
+
self,
|
|
23
|
+
fault: Literal["client", "server"],
|
|
24
|
+
*,
|
|
25
|
+
is_throttling_error: bool,
|
|
26
|
+
is_retryable: bool,
|
|
27
|
+
code: str | None = None,
|
|
28
|
+
message: str | None = None,
|
|
29
|
+
) -> None:
|
|
30
|
+
super().__init__(f"{code or '<no code>'}: {message or '<no message>'}")
|
|
31
|
+
self.fault = fault
|
|
32
|
+
self.is_throttling_error = is_throttling_error
|
|
33
|
+
self.is_retryable = is_retryable
|
|
34
|
+
self.code = code
|
|
35
|
+
self.message = message
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class SerializationError(WorkDocsError):
|
|
39
|
+
"""Raised when a value cannot be serialized."""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class DeserializationError(WorkDocsError):
|
|
43
|
+
"""Raised when a value cannot be deserialized or a required member is missing."""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class UnknownServiceError(ServiceError):
|
|
47
|
+
"""Raised when the server returns an error code the client does not model.
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
code: ``<Code>`` text from the response body, or ``None`` if absent.
|
|
51
|
+
message: ``<Message>`` text from the response body, or ``None``.
|
|
52
|
+
response: The original HTTP response object, for arbitrary inspection.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def __init__(
|
|
56
|
+
self, *, code: str | None, message: str | None, response: object
|
|
57
|
+
) -> None:
|
|
58
|
+
_status = getattr(response, "status", 500)
|
|
59
|
+
_fault: Literal["client", "server"] = "client" if _status < 500 else "server"
|
|
60
|
+
_throttling = _status == 429
|
|
61
|
+
_retryable = _throttling or _status >= 500
|
|
62
|
+
super().__init__(
|
|
63
|
+
_fault,
|
|
64
|
+
is_throttling_error=_throttling,
|
|
65
|
+
is_retryable=_retryable,
|
|
66
|
+
code=code,
|
|
67
|
+
message=message,
|
|
68
|
+
)
|
|
69
|
+
self.response = response
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class WaiterFailedError(WorkDocsError):
|
|
73
|
+
"""Raised when a waiter hits an acceptor with ``state="failure"``.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
waiter_name: snake_case waiter name (e.g. ``bucket_exists``).
|
|
77
|
+
reason: Short description of which acceptor fired.
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
def __init__(self, waiter_name: str, reason: str) -> None:
|
|
81
|
+
super().__init__(f"waiter {waiter_name} failed: {reason}")
|
|
82
|
+
self.waiter_name = waiter_name
|
|
83
|
+
self.reason = reason
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class WaiterTimeoutError(WorkDocsError):
|
|
87
|
+
"""Raised when a waiter exhausts ``max_wait_time`` without a terminal acceptor."""
|
|
88
|
+
|
|
89
|
+
def __init__(self, waiter_name: str, max_wait_time: float) -> None:
|
|
90
|
+
super().__init__(
|
|
91
|
+
f"waiter {waiter_name} timed out after {max_wait_time} seconds"
|
|
92
|
+
)
|
|
93
|
+
self.waiter_name = waiter_name
|
|
94
|
+
self.max_wait_time = max_wait_time
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#ConcurrentModificationException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ConcurrentModificationException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: ConcurrentModificationException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> ConcurrentModificationException_:
|
|
26
|
+
out: ConcurrentModificationException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ConcurrentModificationException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#ConcurrentModificationException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "ConcurrentModificationException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: ConcurrentModificationException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="ConcurrentModificationException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "ConcurrentModificationException":
|
|
53
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#ConflictingOperationException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ConflictingOperationException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: ConflictingOperationException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> ConflictingOperationException_:
|
|
26
|
+
out: ConflictingOperationException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ConflictingOperationException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#ConflictingOperationException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "ConflictingOperationException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: ConflictingOperationException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="ConflictingOperationException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "ConflictingOperationException":
|
|
53
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CustomMetadataLimitExceededException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CustomMetadataLimitExceededException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: CustomMetadataLimitExceededException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> CustomMetadataLimitExceededException_:
|
|
26
|
+
out: CustomMetadataLimitExceededException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class CustomMetadataLimitExceededException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#CustomMetadataLimitExceededException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "CustomMetadataLimitExceededException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: CustomMetadataLimitExceededException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="CustomMetadataLimitExceededException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "CustomMetadataLimitExceededException":
|
|
53
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeactivatingLastSystemUserException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
import capo_workdocs.types.exception_code_type
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DeactivatingLastSystemUserException_(TypedDict, closed=True):
|
|
15
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
16
|
+
code: NotRequired["capo_workdocs.types.exception_code_type.ExceptionCodeType"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# --- restJson1 ser/de ---
|
|
20
|
+
def serialize_json(value: DeactivatingLastSystemUserException_) -> dict:
|
|
21
|
+
out: dict = {}
|
|
22
|
+
if "message" in value:
|
|
23
|
+
out["Message"] = value["message"]
|
|
24
|
+
if "code" in value:
|
|
25
|
+
out["Code"] = value["code"]
|
|
26
|
+
return out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def deserialize_json(data: dict) -> DeactivatingLastSystemUserException_:
|
|
30
|
+
out: DeactivatingLastSystemUserException_ = {} # type: ignore[typeddict-item]
|
|
31
|
+
if data.get("Message") is not None:
|
|
32
|
+
out["message"] = data["Message"]
|
|
33
|
+
if data.get("Code") is not None:
|
|
34
|
+
out["code"] = data["Code"]
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class DeactivatingLastSystemUserException(ServiceError):
|
|
39
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#DeactivatingLastSystemUserException``."""
|
|
40
|
+
|
|
41
|
+
code: str | None = "DeactivatingLastSystemUserException"
|
|
42
|
+
|
|
43
|
+
def __init__(
|
|
44
|
+
self, data: DeactivatingLastSystemUserException_, message: str | None = None
|
|
45
|
+
):
|
|
46
|
+
super().__init__(
|
|
47
|
+
"client",
|
|
48
|
+
is_throttling_error=False,
|
|
49
|
+
is_retryable=False,
|
|
50
|
+
code="DeactivatingLastSystemUserException",
|
|
51
|
+
message=message,
|
|
52
|
+
)
|
|
53
|
+
self.data = data
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(
|
|
57
|
+
cls, data: dict, message: str | None = None
|
|
58
|
+
) -> "DeactivatingLastSystemUserException":
|
|
59
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DocumentLockedForCommentsException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DocumentLockedForCommentsException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: DocumentLockedForCommentsException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> DocumentLockedForCommentsException_:
|
|
26
|
+
out: DocumentLockedForCommentsException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class DocumentLockedForCommentsException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#DocumentLockedForCommentsException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "DocumentLockedForCommentsException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: DocumentLockedForCommentsException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="DocumentLockedForCommentsException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "DocumentLockedForCommentsException":
|
|
53
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DraftUploadOutOfSyncException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DraftUploadOutOfSyncException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: DraftUploadOutOfSyncException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> DraftUploadOutOfSyncException_:
|
|
26
|
+
out: DraftUploadOutOfSyncException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class DraftUploadOutOfSyncException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#DraftUploadOutOfSyncException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "DraftUploadOutOfSyncException"
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self, data: DraftUploadOutOfSyncException_, message: str | None = None
|
|
39
|
+
):
|
|
40
|
+
super().__init__(
|
|
41
|
+
"client",
|
|
42
|
+
is_throttling_error=False,
|
|
43
|
+
is_retryable=False,
|
|
44
|
+
code="DraftUploadOutOfSyncException",
|
|
45
|
+
message=message,
|
|
46
|
+
)
|
|
47
|
+
self.data = data
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(
|
|
51
|
+
cls, data: dict, message: str | None = None
|
|
52
|
+
) -> "DraftUploadOutOfSyncException":
|
|
53
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#EntityAlreadyExistsException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class EntityAlreadyExistsException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: EntityAlreadyExistsException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> EntityAlreadyExistsException_:
|
|
26
|
+
out: EntityAlreadyExistsException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class EntityAlreadyExistsException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#EntityAlreadyExistsException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "EntityAlreadyExistsException"
|
|
36
|
+
|
|
37
|
+
def __init__(self, data: EntityAlreadyExistsException_, message: str | None = None):
|
|
38
|
+
super().__init__(
|
|
39
|
+
"client",
|
|
40
|
+
is_throttling_error=False,
|
|
41
|
+
is_retryable=False,
|
|
42
|
+
code="EntityAlreadyExistsException",
|
|
43
|
+
message=message,
|
|
44
|
+
)
|
|
45
|
+
self.data = data
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_json(
|
|
49
|
+
cls, data: dict, message: str | None = None
|
|
50
|
+
) -> "EntityAlreadyExistsException":
|
|
51
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#EntityNotExistsException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.entity_id_list
|
|
11
|
+
import capo_workdocs.types.error_message_type
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class EntityNotExistsException_(TypedDict, closed=True):
|
|
15
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
16
|
+
entity_ids: NotRequired["capo_workdocs.types.entity_id_list.EntityIdList"]
|
|
17
|
+
"""<p>The IDs of the non-existent resources.</p>"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# --- restJson1 ser/de ---
|
|
21
|
+
def serialize_json(value: EntityNotExistsException_) -> dict:
|
|
22
|
+
out: dict = {}
|
|
23
|
+
if "message" in value:
|
|
24
|
+
out["Message"] = value["message"]
|
|
25
|
+
if "entity_ids" in value:
|
|
26
|
+
import capo_workdocs.types.entity_id_list
|
|
27
|
+
|
|
28
|
+
out["EntityIds"] = capo_workdocs.types.entity_id_list.serialize_json(
|
|
29
|
+
value["entity_ids"]
|
|
30
|
+
)
|
|
31
|
+
return out
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def deserialize_json(data: dict) -> EntityNotExistsException_:
|
|
35
|
+
out: EntityNotExistsException_ = {} # type: ignore[typeddict-item]
|
|
36
|
+
if data.get("Message") is not None:
|
|
37
|
+
out["message"] = data["Message"]
|
|
38
|
+
if data.get("EntityIds") is not None:
|
|
39
|
+
import capo_workdocs.types.entity_id_list
|
|
40
|
+
|
|
41
|
+
out["entity_ids"] = capo_workdocs.types.entity_id_list.deserialize_json(
|
|
42
|
+
data["EntityIds"]
|
|
43
|
+
)
|
|
44
|
+
return out
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class EntityNotExistsException(ServiceError):
|
|
48
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#EntityNotExistsException``."""
|
|
49
|
+
|
|
50
|
+
code: str | None = "EntityNotExistsException"
|
|
51
|
+
|
|
52
|
+
def __init__(self, data: EntityNotExistsException_, message: str | None = None):
|
|
53
|
+
super().__init__(
|
|
54
|
+
"client",
|
|
55
|
+
is_throttling_error=False,
|
|
56
|
+
is_retryable=False,
|
|
57
|
+
code="EntityNotExistsException",
|
|
58
|
+
message=message,
|
|
59
|
+
)
|
|
60
|
+
self.data = data
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def from_json(
|
|
64
|
+
cls, data: dict, message: str | None = None
|
|
65
|
+
) -> "EntityNotExistsException":
|
|
66
|
+
return cls(deserialize_json(data), message)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#FailedDependencyException``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import ServiceError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.error_message_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FailedDependencyException_(TypedDict, closed=True):
|
|
14
|
+
message: NotRequired["capo_workdocs.types.error_message_type.ErrorMessageType"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: FailedDependencyException_) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "message" in value:
|
|
21
|
+
out["Message"] = value["message"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> FailedDependencyException_:
|
|
26
|
+
out: FailedDependencyException_ = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("Message") is not None:
|
|
28
|
+
out["message"] = data["Message"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class FailedDependencyException(ServiceError):
|
|
33
|
+
"""Modeled error for Smithy shape ``com.amazonaws.workdocs#FailedDependencyException``."""
|
|
34
|
+
|
|
35
|
+
code: str | None = "FailedDependencyException"
|
|
36
|
+
|
|
37
|
+
def __init__(self, data: FailedDependencyException_, message: str | None = None):
|
|
38
|
+
super().__init__(
|
|
39
|
+
"client",
|
|
40
|
+
is_throttling_error=False,
|
|
41
|
+
is_retryable=False,
|
|
42
|
+
code="FailedDependencyException",
|
|
43
|
+
message=message,
|
|
44
|
+
)
|
|
45
|
+
self.data = data
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_json(
|
|
49
|
+
cls, data: dict, message: str | None = None
|
|
50
|
+
) -> "FailedDependencyException":
|
|
51
|
+
return cls(deserialize_json(data), message)
|