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,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CreateLabelsResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateLabelsResponse(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- restJson1 ser/de ---
|
|
11
|
+
def serialize_json(value: CreateLabelsResponse) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: dict) -> CreateLabelsResponse:
|
|
17
|
+
out: CreateLabelsResponse = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CreateNotificationSubscriptionRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.id_type
|
|
11
|
+
import capo_workdocs.types.subscription_end_point_type
|
|
12
|
+
import capo_workdocs.types.subscription_protocol_type
|
|
13
|
+
import capo_workdocs.types.subscription_type
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreateNotificationSubscriptionRequest(TypedDict, closed=True):
|
|
17
|
+
organization_id: "capo_workdocs.types.id_type.IdType"
|
|
18
|
+
"""<p>The ID of the organization.</p>"""
|
|
19
|
+
endpoint: "capo_workdocs.types.subscription_end_point_type.SubscriptionEndPointType"
|
|
20
|
+
"""<p>The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with <code>https</code>.</p>"""
|
|
21
|
+
protocol: "capo_workdocs.types.subscription_protocol_type.SubscriptionProtocolType"
|
|
22
|
+
"""<p>The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.</p>"""
|
|
23
|
+
subscription_type: "capo_workdocs.types.subscription_type.SubscriptionType"
|
|
24
|
+
"""<p>The notification type.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: CreateNotificationSubscriptionRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
out["Endpoint"] = value["endpoint"]
|
|
31
|
+
import capo_workdocs.types.subscription_protocol_type
|
|
32
|
+
|
|
33
|
+
out["Protocol"] = capo_workdocs.types.subscription_protocol_type.serialize_json(
|
|
34
|
+
value["protocol"]
|
|
35
|
+
)
|
|
36
|
+
import capo_workdocs.types.subscription_type
|
|
37
|
+
|
|
38
|
+
out["SubscriptionType"] = capo_workdocs.types.subscription_type.serialize_json(
|
|
39
|
+
value["subscription_type"]
|
|
40
|
+
)
|
|
41
|
+
return out
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def deserialize_json(data: dict) -> CreateNotificationSubscriptionRequest:
|
|
45
|
+
out: CreateNotificationSubscriptionRequest = {} # type: ignore[typeddict-item]
|
|
46
|
+
if data.get("Endpoint") is not None:
|
|
47
|
+
out["endpoint"] = data["Endpoint"]
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError(
|
|
50
|
+
"CreateNotificationSubscriptionRequest.endpoint required"
|
|
51
|
+
)
|
|
52
|
+
if data.get("Protocol") is not None:
|
|
53
|
+
import capo_workdocs.types.subscription_protocol_type
|
|
54
|
+
|
|
55
|
+
out["protocol"] = (
|
|
56
|
+
capo_workdocs.types.subscription_protocol_type.deserialize_json(
|
|
57
|
+
data["Protocol"]
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
else:
|
|
61
|
+
raise DeserializationError(
|
|
62
|
+
"CreateNotificationSubscriptionRequest.protocol required"
|
|
63
|
+
)
|
|
64
|
+
if data.get("SubscriptionType") is not None:
|
|
65
|
+
import capo_workdocs.types.subscription_type
|
|
66
|
+
|
|
67
|
+
out["subscription_type"] = (
|
|
68
|
+
capo_workdocs.types.subscription_type.deserialize_json(
|
|
69
|
+
data["SubscriptionType"]
|
|
70
|
+
)
|
|
71
|
+
)
|
|
72
|
+
else:
|
|
73
|
+
raise DeserializationError(
|
|
74
|
+
"CreateNotificationSubscriptionRequest.subscription_type required"
|
|
75
|
+
)
|
|
76
|
+
return out
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CreateNotificationSubscriptionResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.subscription
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateNotificationSubscriptionResponse(TypedDict, closed=True):
|
|
12
|
+
subscription: NotRequired["capo_workdocs.types.subscription.Subscription"]
|
|
13
|
+
"""<p>The subscription.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: CreateNotificationSubscriptionResponse) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "subscription" in value:
|
|
20
|
+
import capo_workdocs.types.subscription
|
|
21
|
+
|
|
22
|
+
out["Subscription"] = capo_workdocs.types.subscription.serialize_json(
|
|
23
|
+
value["subscription"]
|
|
24
|
+
)
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> CreateNotificationSubscriptionResponse:
|
|
29
|
+
out: CreateNotificationSubscriptionResponse = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("Subscription") is not None:
|
|
31
|
+
import capo_workdocs.types.subscription
|
|
32
|
+
|
|
33
|
+
out["subscription"] = capo_workdocs.types.subscription.deserialize_json(
|
|
34
|
+
data["Subscription"]
|
|
35
|
+
)
|
|
36
|
+
return out
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CreateUserRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workdocs.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workdocs.types.authentication_header_type
|
|
11
|
+
import capo_workdocs.types.email_address_type
|
|
12
|
+
import capo_workdocs.types.id_type
|
|
13
|
+
import capo_workdocs.types.password_type
|
|
14
|
+
import capo_workdocs.types.storage_rule_type
|
|
15
|
+
import capo_workdocs.types.time_zone_id_type
|
|
16
|
+
import capo_workdocs.types.user_attribute_value_type
|
|
17
|
+
import capo_workdocs.types.username_type
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class CreateUserRequest(TypedDict, closed=True):
|
|
21
|
+
organization_id: NotRequired["capo_workdocs.types.id_type.IdType"]
|
|
22
|
+
"""<p>The ID of the organization.</p>"""
|
|
23
|
+
username: "capo_workdocs.types.username_type.UsernameType"
|
|
24
|
+
"""<p>The login name of the user.</p>"""
|
|
25
|
+
email_address: NotRequired[
|
|
26
|
+
"capo_workdocs.types.email_address_type.EmailAddressType"
|
|
27
|
+
]
|
|
28
|
+
"""<p>The email address of the user.</p>"""
|
|
29
|
+
given_name: "capo_workdocs.types.user_attribute_value_type.UserAttributeValueType"
|
|
30
|
+
"""<p>The given name of the user.</p>"""
|
|
31
|
+
surname: "capo_workdocs.types.user_attribute_value_type.UserAttributeValueType"
|
|
32
|
+
"""<p>The surname of the user.</p>"""
|
|
33
|
+
password: "capo_workdocs.types.password_type.PasswordType"
|
|
34
|
+
"""<p>The password of the user.</p>"""
|
|
35
|
+
time_zone_id: NotRequired["capo_workdocs.types.time_zone_id_type.TimeZoneIdType"]
|
|
36
|
+
"""<p>The time zone ID of the user.</p>"""
|
|
37
|
+
storage_rule: NotRequired["capo_workdocs.types.storage_rule_type.StorageRuleType"]
|
|
38
|
+
"""<p>The amount of storage for the user.</p>"""
|
|
39
|
+
authentication_token: NotRequired[
|
|
40
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
41
|
+
]
|
|
42
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# --- restJson1 ser/de ---
|
|
46
|
+
def serialize_json(value: CreateUserRequest) -> dict:
|
|
47
|
+
out: dict = {}
|
|
48
|
+
if "organization_id" in value:
|
|
49
|
+
out["OrganizationId"] = value["organization_id"]
|
|
50
|
+
out["Username"] = value["username"]
|
|
51
|
+
if "email_address" in value:
|
|
52
|
+
out["EmailAddress"] = value["email_address"]
|
|
53
|
+
out["GivenName"] = value["given_name"]
|
|
54
|
+
out["Surname"] = value["surname"]
|
|
55
|
+
out["Password"] = value["password"]
|
|
56
|
+
if "time_zone_id" in value:
|
|
57
|
+
out["TimeZoneId"] = value["time_zone_id"]
|
|
58
|
+
if "storage_rule" in value:
|
|
59
|
+
import capo_workdocs.types.storage_rule_type
|
|
60
|
+
|
|
61
|
+
out["StorageRule"] = capo_workdocs.types.storage_rule_type.serialize_json(
|
|
62
|
+
value["storage_rule"]
|
|
63
|
+
)
|
|
64
|
+
return out
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def deserialize_json(data: dict) -> CreateUserRequest:
|
|
68
|
+
out: CreateUserRequest = {} # type: ignore[typeddict-item]
|
|
69
|
+
if data.get("OrganizationId") is not None:
|
|
70
|
+
out["organization_id"] = data["OrganizationId"]
|
|
71
|
+
if data.get("Username") is not None:
|
|
72
|
+
out["username"] = data["Username"]
|
|
73
|
+
else:
|
|
74
|
+
raise DeserializationError("CreateUserRequest.username required")
|
|
75
|
+
if data.get("EmailAddress") is not None:
|
|
76
|
+
out["email_address"] = data["EmailAddress"]
|
|
77
|
+
if data.get("GivenName") is not None:
|
|
78
|
+
out["given_name"] = data["GivenName"]
|
|
79
|
+
else:
|
|
80
|
+
raise DeserializationError("CreateUserRequest.given_name required")
|
|
81
|
+
if data.get("Surname") is not None:
|
|
82
|
+
out["surname"] = data["Surname"]
|
|
83
|
+
else:
|
|
84
|
+
raise DeserializationError("CreateUserRequest.surname required")
|
|
85
|
+
if data.get("Password") is not None:
|
|
86
|
+
out["password"] = data["Password"]
|
|
87
|
+
else:
|
|
88
|
+
raise DeserializationError("CreateUserRequest.password required")
|
|
89
|
+
if data.get("TimeZoneId") is not None:
|
|
90
|
+
out["time_zone_id"] = data["TimeZoneId"]
|
|
91
|
+
if data.get("StorageRule") is not None:
|
|
92
|
+
import capo_workdocs.types.storage_rule_type
|
|
93
|
+
|
|
94
|
+
out["storage_rule"] = capo_workdocs.types.storage_rule_type.deserialize_json(
|
|
95
|
+
data["StorageRule"]
|
|
96
|
+
)
|
|
97
|
+
return out
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CreateUserResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.user
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateUserResponse(TypedDict, closed=True):
|
|
12
|
+
user: NotRequired["capo_workdocs.types.user.User"]
|
|
13
|
+
"""<p>The user information.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: CreateUserResponse) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "user" in value:
|
|
20
|
+
import capo_workdocs.types.user
|
|
21
|
+
|
|
22
|
+
out["User"] = capo_workdocs.types.user.serialize_json(value["user"])
|
|
23
|
+
return out
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def deserialize_json(data: dict) -> CreateUserResponse:
|
|
27
|
+
out: CreateUserResponse = {} # type: ignore[typeddict-item]
|
|
28
|
+
if data.get("User") is not None:
|
|
29
|
+
import capo_workdocs.types.user
|
|
30
|
+
|
|
31
|
+
out["user"] = capo_workdocs.types.user.deserialize_json(data["User"])
|
|
32
|
+
return out
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CustomMetadataKeyList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_workdocs.types.custom_metadata_key_type
|
|
7
|
+
|
|
8
|
+
CustomMetadataKeyList: TypeAlias = list[
|
|
9
|
+
"capo_workdocs.types.custom_metadata_key_type.CustomMetadataKeyType"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: CustomMetadataKeyList) -> list:
|
|
15
|
+
return list(value)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def deserialize_json(data: list) -> CustomMetadataKeyList:
|
|
19
|
+
return [item for item in data if item is not None]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#CustomMetadataMap``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_workdocs.types.custom_metadata_key_type
|
|
7
|
+
import capo_workdocs.types.custom_metadata_value_type
|
|
8
|
+
|
|
9
|
+
CustomMetadataMap: TypeAlias = dict[
|
|
10
|
+
"capo_workdocs.types.custom_metadata_key_type.CustomMetadataKeyType",
|
|
11
|
+
"capo_workdocs.types.custom_metadata_value_type.CustomMetadataValueType",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(input_to_serialize: CustomMetadataMap) -> dict:
|
|
17
|
+
out: dict = {}
|
|
18
|
+
for key, value in input_to_serialize.items():
|
|
19
|
+
out[key] = value
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: dict) -> CustomMetadataMap:
|
|
24
|
+
out: CustomMetadataMap = {}
|
|
25
|
+
for key, value in data.items():
|
|
26
|
+
if value is None:
|
|
27
|
+
continue
|
|
28
|
+
out[key] = value
|
|
29
|
+
return out
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DateRangeType``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.timestamp_type
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DateRangeType(TypedDict, closed=True):
|
|
12
|
+
start_value: NotRequired["capo_workdocs.types.timestamp_type.TimestampType"]
|
|
13
|
+
"""<p>Timestamp range start value (in epochs)</p>"""
|
|
14
|
+
end_value: NotRequired["capo_workdocs.types.timestamp_type.TimestampType"]
|
|
15
|
+
"""<p>Timestamp range end value (in epochs).</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: DateRangeType) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "start_value" in value:
|
|
22
|
+
import capo_workdocs.types.timestamp_type
|
|
23
|
+
|
|
24
|
+
out["StartValue"] = capo_workdocs.types.timestamp_type.serialize_json(
|
|
25
|
+
value["start_value"]
|
|
26
|
+
)
|
|
27
|
+
if "end_value" in value:
|
|
28
|
+
import capo_workdocs.types.timestamp_type
|
|
29
|
+
|
|
30
|
+
out["EndValue"] = capo_workdocs.types.timestamp_type.serialize_json(
|
|
31
|
+
value["end_value"]
|
|
32
|
+
)
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> DateRangeType:
|
|
37
|
+
out: DateRangeType = {} # type: ignore[typeddict-item]
|
|
38
|
+
if data.get("StartValue") is not None:
|
|
39
|
+
import capo_workdocs.types.timestamp_type
|
|
40
|
+
|
|
41
|
+
out["start_value"] = capo_workdocs.types.timestamp_type.deserialize_json(
|
|
42
|
+
data["StartValue"]
|
|
43
|
+
)
|
|
44
|
+
if data.get("EndValue") is not None:
|
|
45
|
+
import capo_workdocs.types.timestamp_type
|
|
46
|
+
|
|
47
|
+
out["end_value"] = capo_workdocs.types.timestamp_type.deserialize_json(
|
|
48
|
+
data["EndValue"]
|
|
49
|
+
)
|
|
50
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeactivateUserRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.id_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeactivateUserRequest(TypedDict, closed=True):
|
|
13
|
+
user_id: "capo_workdocs.types.id_type.IdType"
|
|
14
|
+
"""<p>The ID of the user.</p>"""
|
|
15
|
+
authentication_token: NotRequired[
|
|
16
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
17
|
+
]
|
|
18
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeactivateUserRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeactivateUserRequest:
|
|
28
|
+
out: DeactivateUserRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteCommentRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.comment_id_type
|
|
10
|
+
import capo_workdocs.types.document_version_id_type
|
|
11
|
+
import capo_workdocs.types.resource_id_type
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DeleteCommentRequest(TypedDict, closed=True):
|
|
15
|
+
authentication_token: NotRequired[
|
|
16
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
17
|
+
]
|
|
18
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
19
|
+
document_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
20
|
+
"""<p>The ID of the document.</p>"""
|
|
21
|
+
version_id: "capo_workdocs.types.document_version_id_type.DocumentVersionIdType"
|
|
22
|
+
"""<p>The ID of the document version.</p>"""
|
|
23
|
+
comment_id: "capo_workdocs.types.comment_id_type.CommentIdType"
|
|
24
|
+
"""<p>The ID of the comment.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: DeleteCommentRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DeleteCommentRequest:
|
|
34
|
+
out: DeleteCommentRequest = {} # type: ignore[typeddict-item]
|
|
35
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteCustomMetadataRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.boolean_type
|
|
10
|
+
import capo_workdocs.types.custom_metadata_key_list
|
|
11
|
+
import capo_workdocs.types.document_version_id_type
|
|
12
|
+
import capo_workdocs.types.resource_id_type
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DeleteCustomMetadataRequest(TypedDict, closed=True):
|
|
16
|
+
authentication_token: NotRequired[
|
|
17
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
18
|
+
]
|
|
19
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
20
|
+
resource_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
21
|
+
"""<p>The ID of the resource, either a document or folder.</p>"""
|
|
22
|
+
version_id: NotRequired[
|
|
23
|
+
"capo_workdocs.types.document_version_id_type.DocumentVersionIdType"
|
|
24
|
+
]
|
|
25
|
+
"""<p>The ID of the version, if the custom metadata is being deleted from a document version.</p>"""
|
|
26
|
+
keys: NotRequired[
|
|
27
|
+
"capo_workdocs.types.custom_metadata_key_list.CustomMetadataKeyList"
|
|
28
|
+
]
|
|
29
|
+
"""<p>List of properties to remove.</p>"""
|
|
30
|
+
delete_all: "capo_workdocs.types.boolean_type.BooleanType"
|
|
31
|
+
"""<p>Flag to indicate removal of all custom metadata properties from the specified resource.</p>"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# --- restJson1 ser/de ---
|
|
35
|
+
def serialize_json(value: DeleteCustomMetadataRequest) -> dict:
|
|
36
|
+
out: dict = {}
|
|
37
|
+
return out
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def deserialize_json(data: dict) -> DeleteCustomMetadataRequest:
|
|
41
|
+
out: DeleteCustomMetadataRequest = {} # type: ignore[typeddict-item]
|
|
42
|
+
return out
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteCustomMetadataResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeleteCustomMetadataResponse(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- restJson1 ser/de ---
|
|
11
|
+
def serialize_json(value: DeleteCustomMetadataResponse) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: dict) -> DeleteCustomMetadataResponse:
|
|
17
|
+
out: DeleteCustomMetadataResponse = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteDocumentRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.resource_id_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteDocumentRequest(TypedDict, closed=True):
|
|
13
|
+
authentication_token: NotRequired[
|
|
14
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
15
|
+
]
|
|
16
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
17
|
+
document_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
18
|
+
"""<p>The ID of the document.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeleteDocumentRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeleteDocumentRequest:
|
|
28
|
+
out: DeleteDocumentRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteDocumentVersionRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.boolean_type
|
|
10
|
+
import capo_workdocs.types.document_version_id_type
|
|
11
|
+
import capo_workdocs.types.resource_id_type
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DeleteDocumentVersionRequest(TypedDict, closed=True):
|
|
15
|
+
authentication_token: NotRequired[
|
|
16
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
17
|
+
]
|
|
18
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
19
|
+
document_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
20
|
+
"""<p>The ID of the document associated with the version being deleted.</p>"""
|
|
21
|
+
version_id: "capo_workdocs.types.document_version_id_type.DocumentVersionIdType"
|
|
22
|
+
"""<p>The ID of the version being deleted.</p>"""
|
|
23
|
+
delete_prior_versions: "capo_workdocs.types.boolean_type.BooleanType"
|
|
24
|
+
"""<p>Deletes all versions of a document prior to the current version.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: DeleteDocumentVersionRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DeleteDocumentVersionRequest:
|
|
34
|
+
out: DeleteDocumentVersionRequest = {} # type: ignore[typeddict-item]
|
|
35
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteFolderContentsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.resource_id_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteFolderContentsRequest(TypedDict, closed=True):
|
|
13
|
+
authentication_token: NotRequired[
|
|
14
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
15
|
+
]
|
|
16
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
17
|
+
folder_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
18
|
+
"""<p>The ID of the folder.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeleteFolderContentsRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeleteFolderContentsRequest:
|
|
28
|
+
out: DeleteFolderContentsRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteFolderRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.resource_id_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteFolderRequest(TypedDict, closed=True):
|
|
13
|
+
authentication_token: NotRequired[
|
|
14
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
15
|
+
]
|
|
16
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
17
|
+
folder_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
18
|
+
"""<p>The ID of the folder.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeleteFolderRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeleteFolderRequest:
|
|
28
|
+
out: DeleteFolderRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteLabelsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.authentication_header_type
|
|
9
|
+
import capo_workdocs.types.boolean_type
|
|
10
|
+
import capo_workdocs.types.resource_id_type
|
|
11
|
+
import capo_workdocs.types.shared_labels
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DeleteLabelsRequest(TypedDict, closed=True):
|
|
15
|
+
resource_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
16
|
+
"""<p>The ID of the resource.</p>"""
|
|
17
|
+
authentication_token: NotRequired[
|
|
18
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
19
|
+
]
|
|
20
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
21
|
+
labels: NotRequired["capo_workdocs.types.shared_labels.SharedLabels"]
|
|
22
|
+
"""<p>List of labels to delete from the resource.</p>"""
|
|
23
|
+
delete_all: "capo_workdocs.types.boolean_type.BooleanType"
|
|
24
|
+
"""<p>Flag to request removal of all labels from the specified resource.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: DeleteLabelsRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DeleteLabelsRequest:
|
|
34
|
+
out: DeleteLabelsRequest = {} # type: ignore[typeddict-item]
|
|
35
|
+
return out
|