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#DeleteLabelsResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeleteLabelsResponse(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- restJson1 ser/de ---
|
|
11
|
+
def serialize_json(value: DeleteLabelsResponse) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: dict) -> DeleteLabelsResponse:
|
|
17
|
+
out: DeleteLabelsResponse = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteNotificationSubscriptionRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workdocs.types.id_type
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteNotificationSubscriptionRequest(TypedDict, closed=True):
|
|
12
|
+
subscription_id: "capo_workdocs.types.id_type.IdType"
|
|
13
|
+
"""<p>The ID of the subscription.</p>"""
|
|
14
|
+
organization_id: "capo_workdocs.types.id_type.IdType"
|
|
15
|
+
"""<p>The ID of the organization.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: DeleteNotificationSubscriptionRequest) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
return out
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def deserialize_json(data: dict) -> DeleteNotificationSubscriptionRequest:
|
|
25
|
+
out: DeleteNotificationSubscriptionRequest = {} # type: ignore[typeddict-item]
|
|
26
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DeleteUserRequest``."""
|
|
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 DeleteUserRequest(TypedDict, closed=True):
|
|
13
|
+
authentication_token: NotRequired[
|
|
14
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
15
|
+
]
|
|
16
|
+
"""<p>Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using Amazon Web Services credentials.</p>"""
|
|
17
|
+
user_id: "capo_workdocs.types.id_type.IdType"
|
|
18
|
+
"""<p>The ID of the user.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeleteUserRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeleteUserRequest:
|
|
28
|
+
out: DeleteUserRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeActivitiesRequest``."""
|
|
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.activity_names_filter_type
|
|
9
|
+
import capo_workdocs.types.authentication_header_type
|
|
10
|
+
import capo_workdocs.types.boolean_type
|
|
11
|
+
import capo_workdocs.types.id_type
|
|
12
|
+
import capo_workdocs.types.limit_type
|
|
13
|
+
import capo_workdocs.types.search_marker_type
|
|
14
|
+
import capo_workdocs.types.timestamp_type
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class DescribeActivitiesRequest(TypedDict, closed=True):
|
|
18
|
+
authentication_token: NotRequired[
|
|
19
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
20
|
+
]
|
|
21
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
22
|
+
start_time: NotRequired["capo_workdocs.types.timestamp_type.TimestampType"]
|
|
23
|
+
"""<p>The timestamp that determines the starting time of the activities. The response includes the activities performed after the specified timestamp.</p>"""
|
|
24
|
+
end_time: NotRequired["capo_workdocs.types.timestamp_type.TimestampType"]
|
|
25
|
+
"""<p>The timestamp that determines the end time of the activities. The response includes the activities performed before the specified timestamp.</p>"""
|
|
26
|
+
organization_id: NotRequired["capo_workdocs.types.id_type.IdType"]
|
|
27
|
+
"""<p>The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.</p>"""
|
|
28
|
+
activity_types: NotRequired[
|
|
29
|
+
"capo_workdocs.types.activity_names_filter_type.ActivityNamesFilterType"
|
|
30
|
+
]
|
|
31
|
+
"""<p>Specifies which activity types to include in the response. If this field is left empty, all activity types are returned.</p>"""
|
|
32
|
+
resource_id: NotRequired["capo_workdocs.types.id_type.IdType"]
|
|
33
|
+
"""<p>The document or folder ID for which to describe activity types.</p>"""
|
|
34
|
+
user_id: NotRequired["capo_workdocs.types.id_type.IdType"]
|
|
35
|
+
"""<p>The ID of the user who performed the action. The response includes activities pertaining to this user. This is an optional parameter and is only applicable for administrative API (SigV4) requests.</p>"""
|
|
36
|
+
include_indirect_activities: "capo_workdocs.types.boolean_type.BooleanType"
|
|
37
|
+
"""<p>Includes indirect activities. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).</p>"""
|
|
38
|
+
limit: NotRequired["capo_workdocs.types.limit_type.LimitType"]
|
|
39
|
+
"""<p>The maximum number of items to return.</p>"""
|
|
40
|
+
marker: NotRequired["capo_workdocs.types.search_marker_type.SearchMarkerType"]
|
|
41
|
+
"""<p>The marker for the next set of results.</p>"""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# --- restJson1 ser/de ---
|
|
45
|
+
def serialize_json(value: DescribeActivitiesRequest) -> dict:
|
|
46
|
+
out: dict = {}
|
|
47
|
+
return out
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def deserialize_json(data: dict) -> DescribeActivitiesRequest:
|
|
51
|
+
out: DescribeActivitiesRequest = {} # type: ignore[typeddict-item]
|
|
52
|
+
return out
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeActivitiesResponse``."""
|
|
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.search_marker_type
|
|
9
|
+
import capo_workdocs.types.user_activities
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DescribeActivitiesResponse(TypedDict, closed=True):
|
|
13
|
+
user_activities: NotRequired["capo_workdocs.types.user_activities.UserActivities"]
|
|
14
|
+
"""<p>The list of activities for the specified user and time period.</p>"""
|
|
15
|
+
marker: NotRequired["capo_workdocs.types.search_marker_type.SearchMarkerType"]
|
|
16
|
+
"""<p>The marker for the next set of results.</p>"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# --- restJson1 ser/de ---
|
|
20
|
+
def serialize_json(value: DescribeActivitiesResponse) -> dict:
|
|
21
|
+
out: dict = {}
|
|
22
|
+
if "user_activities" in value:
|
|
23
|
+
import capo_workdocs.types.user_activities
|
|
24
|
+
|
|
25
|
+
out["UserActivities"] = capo_workdocs.types.user_activities.serialize_json(
|
|
26
|
+
value["user_activities"]
|
|
27
|
+
)
|
|
28
|
+
if "marker" in value:
|
|
29
|
+
out["Marker"] = value["marker"]
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DescribeActivitiesResponse:
|
|
34
|
+
out: DescribeActivitiesResponse = {} # type: ignore[typeddict-item]
|
|
35
|
+
if data.get("UserActivities") is not None:
|
|
36
|
+
import capo_workdocs.types.user_activities
|
|
37
|
+
|
|
38
|
+
out["user_activities"] = capo_workdocs.types.user_activities.deserialize_json(
|
|
39
|
+
data["UserActivities"]
|
|
40
|
+
)
|
|
41
|
+
if data.get("Marker") is not None:
|
|
42
|
+
out["marker"] = data["Marker"]
|
|
43
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeCommentsRequest``."""
|
|
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.document_version_id_type
|
|
10
|
+
import capo_workdocs.types.limit_type
|
|
11
|
+
import capo_workdocs.types.marker_type
|
|
12
|
+
import capo_workdocs.types.resource_id_type
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DescribeCommentsRequest(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
|
+
document_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
21
|
+
"""<p>The ID of the document.</p>"""
|
|
22
|
+
version_id: "capo_workdocs.types.document_version_id_type.DocumentVersionIdType"
|
|
23
|
+
"""<p>The ID of the document version.</p>"""
|
|
24
|
+
limit: NotRequired["capo_workdocs.types.limit_type.LimitType"]
|
|
25
|
+
"""<p>The maximum number of items to return.</p>"""
|
|
26
|
+
marker: NotRequired["capo_workdocs.types.marker_type.MarkerType"]
|
|
27
|
+
"""<p>The marker for the next set of results. This marker was received from a previous call.</p>"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# --- restJson1 ser/de ---
|
|
31
|
+
def serialize_json(value: DescribeCommentsRequest) -> dict:
|
|
32
|
+
out: dict = {}
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> DescribeCommentsRequest:
|
|
37
|
+
out: DescribeCommentsRequest = {} # type: ignore[typeddict-item]
|
|
38
|
+
return out
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeCommentsResponse``."""
|
|
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.comment_list
|
|
9
|
+
import capo_workdocs.types.marker_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DescribeCommentsResponse(TypedDict, closed=True):
|
|
13
|
+
comments: NotRequired["capo_workdocs.types.comment_list.CommentList"]
|
|
14
|
+
"""<p>The list of comments for the specified document version.</p>"""
|
|
15
|
+
marker: NotRequired["capo_workdocs.types.marker_type.MarkerType"]
|
|
16
|
+
"""<p>The marker for the next set of results. This marker was received from a previous call.</p>"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# --- restJson1 ser/de ---
|
|
20
|
+
def serialize_json(value: DescribeCommentsResponse) -> dict:
|
|
21
|
+
out: dict = {}
|
|
22
|
+
if "comments" in value:
|
|
23
|
+
import capo_workdocs.types.comment_list
|
|
24
|
+
|
|
25
|
+
out["Comments"] = capo_workdocs.types.comment_list.serialize_json(
|
|
26
|
+
value["comments"]
|
|
27
|
+
)
|
|
28
|
+
if "marker" in value:
|
|
29
|
+
out["Marker"] = value["marker"]
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DescribeCommentsResponse:
|
|
34
|
+
out: DescribeCommentsResponse = {} # type: ignore[typeddict-item]
|
|
35
|
+
if data.get("Comments") is not None:
|
|
36
|
+
import capo_workdocs.types.comment_list
|
|
37
|
+
|
|
38
|
+
out["comments"] = capo_workdocs.types.comment_list.deserialize_json(
|
|
39
|
+
data["Comments"]
|
|
40
|
+
)
|
|
41
|
+
if data.get("Marker") is not None:
|
|
42
|
+
out["marker"] = data["Marker"]
|
|
43
|
+
return out
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeDocumentVersionsRequest``."""
|
|
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.field_names_type
|
|
10
|
+
import capo_workdocs.types.limit_type
|
|
11
|
+
import capo_workdocs.types.page_marker_type
|
|
12
|
+
import capo_workdocs.types.resource_id_type
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DescribeDocumentVersionsRequest(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
|
+
document_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
21
|
+
"""<p>The ID of the document.</p>"""
|
|
22
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
23
|
+
"""<p>The marker for the next set of results. (You received this marker from a previous call.)</p>"""
|
|
24
|
+
limit: NotRequired["capo_workdocs.types.limit_type.LimitType"]
|
|
25
|
+
"""<p>The maximum number of versions to return with this call.</p>"""
|
|
26
|
+
include: NotRequired["capo_workdocs.types.field_names_type.FieldNamesType"]
|
|
27
|
+
r"""<p>A comma-separated list of values. Specify \"INITIALIZED\" to include incomplete versions.</p>"""
|
|
28
|
+
fields: NotRequired["capo_workdocs.types.field_names_type.FieldNamesType"]
|
|
29
|
+
r"""<p>Specify \"SOURCE\" to include initialized versions and a URL for the source document.</p>"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# --- restJson1 ser/de ---
|
|
33
|
+
def serialize_json(value: DescribeDocumentVersionsRequest) -> dict:
|
|
34
|
+
out: dict = {}
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> DescribeDocumentVersionsRequest:
|
|
39
|
+
out: DescribeDocumentVersionsRequest = {} # type: ignore[typeddict-item]
|
|
40
|
+
return out
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeDocumentVersionsResponse``."""
|
|
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.document_version_metadata_list
|
|
9
|
+
import capo_workdocs.types.page_marker_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DescribeDocumentVersionsResponse(TypedDict, closed=True):
|
|
13
|
+
document_versions: NotRequired[
|
|
14
|
+
"capo_workdocs.types.document_version_metadata_list.DocumentVersionMetadataList"
|
|
15
|
+
]
|
|
16
|
+
"""<p>The document versions.</p>"""
|
|
17
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
18
|
+
"""<p>The marker to use when requesting the next set of results. If there are no additional results, the string is empty.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DescribeDocumentVersionsResponse) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "document_versions" in value:
|
|
25
|
+
import capo_workdocs.types.document_version_metadata_list
|
|
26
|
+
|
|
27
|
+
out["DocumentVersions"] = (
|
|
28
|
+
capo_workdocs.types.document_version_metadata_list.serialize_json(
|
|
29
|
+
value["document_versions"]
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
if "marker" in value:
|
|
33
|
+
out["Marker"] = value["marker"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> DescribeDocumentVersionsResponse:
|
|
38
|
+
out: DescribeDocumentVersionsResponse = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("DocumentVersions") is not None:
|
|
40
|
+
import capo_workdocs.types.document_version_metadata_list
|
|
41
|
+
|
|
42
|
+
out["document_versions"] = (
|
|
43
|
+
capo_workdocs.types.document_version_metadata_list.deserialize_json(
|
|
44
|
+
data["DocumentVersions"]
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
if data.get("Marker") is not None:
|
|
48
|
+
out["marker"] = data["Marker"]
|
|
49
|
+
return out
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeFolderContentsRequest``."""
|
|
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.field_names_type
|
|
10
|
+
import capo_workdocs.types.folder_content_type
|
|
11
|
+
import capo_workdocs.types.limit_type
|
|
12
|
+
import capo_workdocs.types.order_type
|
|
13
|
+
import capo_workdocs.types.page_marker_type
|
|
14
|
+
import capo_workdocs.types.resource_id_type
|
|
15
|
+
import capo_workdocs.types.resource_sort_type
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DescribeFolderContentsRequest(TypedDict, closed=True):
|
|
19
|
+
authentication_token: NotRequired[
|
|
20
|
+
"capo_workdocs.types.authentication_header_type.AuthenticationHeaderType"
|
|
21
|
+
]
|
|
22
|
+
"""<p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p>"""
|
|
23
|
+
folder_id: "capo_workdocs.types.resource_id_type.ResourceIdType"
|
|
24
|
+
"""<p>The ID of the folder.</p>"""
|
|
25
|
+
sort: NotRequired["capo_workdocs.types.resource_sort_type.ResourceSortType"]
|
|
26
|
+
"""<p>The sorting criteria.</p>"""
|
|
27
|
+
order: NotRequired["capo_workdocs.types.order_type.OrderType"]
|
|
28
|
+
"""<p>The order for the contents of the folder.</p>"""
|
|
29
|
+
limit: NotRequired["capo_workdocs.types.limit_type.LimitType"]
|
|
30
|
+
"""<p>The maximum number of items to return with this call.</p>"""
|
|
31
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
32
|
+
"""<p>The marker for the next set of results. This marker was received from a previous call.</p>"""
|
|
33
|
+
type: NotRequired["capo_workdocs.types.folder_content_type.FolderContentType"]
|
|
34
|
+
"""<p>The type of items.</p>"""
|
|
35
|
+
include: NotRequired["capo_workdocs.types.field_names_type.FieldNamesType"]
|
|
36
|
+
r"""<p>The contents to include. Specify \"INITIALIZED\" to include initialized documents.</p>"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# --- restJson1 ser/de ---
|
|
40
|
+
def serialize_json(value: DescribeFolderContentsRequest) -> dict:
|
|
41
|
+
out: dict = {}
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_json(data: dict) -> DescribeFolderContentsRequest:
|
|
46
|
+
out: DescribeFolderContentsRequest = {} # type: ignore[typeddict-item]
|
|
47
|
+
return out
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeFolderContentsResponse``."""
|
|
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.document_metadata_list
|
|
9
|
+
import capo_workdocs.types.folder_metadata_list
|
|
10
|
+
import capo_workdocs.types.page_marker_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DescribeFolderContentsResponse(TypedDict, closed=True):
|
|
14
|
+
folders: NotRequired["capo_workdocs.types.folder_metadata_list.FolderMetadataList"]
|
|
15
|
+
"""<p>The subfolders in the specified folder.</p>"""
|
|
16
|
+
documents: NotRequired[
|
|
17
|
+
"capo_workdocs.types.document_metadata_list.DocumentMetadataList"
|
|
18
|
+
]
|
|
19
|
+
"""<p>The documents in the specified folder.</p>"""
|
|
20
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
21
|
+
"""<p>The marker to use when requesting the next set of results. If there are no additional results, the string is empty.</p>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- restJson1 ser/de ---
|
|
25
|
+
def serialize_json(value: DescribeFolderContentsResponse) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
if "folders" in value:
|
|
28
|
+
import capo_workdocs.types.folder_metadata_list
|
|
29
|
+
|
|
30
|
+
out["Folders"] = capo_workdocs.types.folder_metadata_list.serialize_json(
|
|
31
|
+
value["folders"]
|
|
32
|
+
)
|
|
33
|
+
if "documents" in value:
|
|
34
|
+
import capo_workdocs.types.document_metadata_list
|
|
35
|
+
|
|
36
|
+
out["Documents"] = capo_workdocs.types.document_metadata_list.serialize_json(
|
|
37
|
+
value["documents"]
|
|
38
|
+
)
|
|
39
|
+
if "marker" in value:
|
|
40
|
+
out["Marker"] = value["marker"]
|
|
41
|
+
return out
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def deserialize_json(data: dict) -> DescribeFolderContentsResponse:
|
|
45
|
+
out: DescribeFolderContentsResponse = {} # type: ignore[typeddict-item]
|
|
46
|
+
if data.get("Folders") is not None:
|
|
47
|
+
import capo_workdocs.types.folder_metadata_list
|
|
48
|
+
|
|
49
|
+
out["folders"] = capo_workdocs.types.folder_metadata_list.deserialize_json(
|
|
50
|
+
data["Folders"]
|
|
51
|
+
)
|
|
52
|
+
if data.get("Documents") is not None:
|
|
53
|
+
import capo_workdocs.types.document_metadata_list
|
|
54
|
+
|
|
55
|
+
out["documents"] = capo_workdocs.types.document_metadata_list.deserialize_json(
|
|
56
|
+
data["Documents"]
|
|
57
|
+
)
|
|
58
|
+
if data.get("Marker") is not None:
|
|
59
|
+
out["marker"] = data["Marker"]
|
|
60
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeGroupsRequest``."""
|
|
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
|
+
import capo_workdocs.types.marker_type
|
|
11
|
+
import capo_workdocs.types.positive_integer_type
|
|
12
|
+
import capo_workdocs.types.search_query_type
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DescribeGroupsRequest(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
|
+
search_query: "capo_workdocs.types.search_query_type.SearchQueryType"
|
|
21
|
+
"""<p>A query to describe groups by group name.</p>"""
|
|
22
|
+
organization_id: NotRequired["capo_workdocs.types.id_type.IdType"]
|
|
23
|
+
"""<p>The ID of the organization.</p>"""
|
|
24
|
+
marker: NotRequired["capo_workdocs.types.marker_type.MarkerType"]
|
|
25
|
+
"""<p>The marker for the next set of results. (You received this marker from a previous call.)</p>"""
|
|
26
|
+
limit: NotRequired["capo_workdocs.types.positive_integer_type.PositiveIntegerType"]
|
|
27
|
+
"""<p>The maximum number of items to return with this call.</p>"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# --- restJson1 ser/de ---
|
|
31
|
+
def serialize_json(value: DescribeGroupsRequest) -> dict:
|
|
32
|
+
out: dict = {}
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> DescribeGroupsRequest:
|
|
37
|
+
out: DescribeGroupsRequest = {} # type: ignore[typeddict-item]
|
|
38
|
+
return out
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeGroupsResponse``."""
|
|
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.group_metadata_list
|
|
9
|
+
import capo_workdocs.types.marker_type
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DescribeGroupsResponse(TypedDict, closed=True):
|
|
13
|
+
groups: NotRequired["capo_workdocs.types.group_metadata_list.GroupMetadataList"]
|
|
14
|
+
"""<p>The list of groups.</p>"""
|
|
15
|
+
marker: NotRequired["capo_workdocs.types.marker_type.MarkerType"]
|
|
16
|
+
"""<p>The marker to use when requesting the next set of results. If there are no additional results, the string is empty.</p>"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# --- restJson1 ser/de ---
|
|
20
|
+
def serialize_json(value: DescribeGroupsResponse) -> dict:
|
|
21
|
+
out: dict = {}
|
|
22
|
+
if "groups" in value:
|
|
23
|
+
import capo_workdocs.types.group_metadata_list
|
|
24
|
+
|
|
25
|
+
out["Groups"] = capo_workdocs.types.group_metadata_list.serialize_json(
|
|
26
|
+
value["groups"]
|
|
27
|
+
)
|
|
28
|
+
if "marker" in value:
|
|
29
|
+
out["Marker"] = value["marker"]
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DescribeGroupsResponse:
|
|
34
|
+
out: DescribeGroupsResponse = {} # type: ignore[typeddict-item]
|
|
35
|
+
if data.get("Groups") is not None:
|
|
36
|
+
import capo_workdocs.types.group_metadata_list
|
|
37
|
+
|
|
38
|
+
out["groups"] = capo_workdocs.types.group_metadata_list.deserialize_json(
|
|
39
|
+
data["Groups"]
|
|
40
|
+
)
|
|
41
|
+
if data.get("Marker") is not None:
|
|
42
|
+
out["marker"] = data["Marker"]
|
|
43
|
+
return out
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeNotificationSubscriptionsRequest``."""
|
|
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.id_type
|
|
9
|
+
import capo_workdocs.types.limit_type
|
|
10
|
+
import capo_workdocs.types.page_marker_type
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DescribeNotificationSubscriptionsRequest(TypedDict, closed=True):
|
|
14
|
+
organization_id: "capo_workdocs.types.id_type.IdType"
|
|
15
|
+
"""<p>The ID of the organization.</p>"""
|
|
16
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
17
|
+
"""<p>The marker for the next set of results. (You received this marker from a previous call.)</p>"""
|
|
18
|
+
limit: NotRequired["capo_workdocs.types.limit_type.LimitType"]
|
|
19
|
+
"""<p>The maximum number of items to return with this call.</p>"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: DescribeNotificationSubscriptionsRequest) -> dict:
|
|
24
|
+
out: dict = {}
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> DescribeNotificationSubscriptionsRequest:
|
|
29
|
+
out: DescribeNotificationSubscriptionsRequest = {} # type: ignore[typeddict-item]
|
|
30
|
+
return out
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeNotificationSubscriptionsResponse``."""
|
|
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.page_marker_type
|
|
9
|
+
import capo_workdocs.types.subscription_list
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DescribeNotificationSubscriptionsResponse(TypedDict, closed=True):
|
|
13
|
+
subscriptions: NotRequired["capo_workdocs.types.subscription_list.SubscriptionList"]
|
|
14
|
+
"""<p>The subscriptions.</p>"""
|
|
15
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
16
|
+
"""<p>The marker to use when requesting the next set of results. If there are no additional results, the string is empty.</p>"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# --- restJson1 ser/de ---
|
|
20
|
+
def serialize_json(value: DescribeNotificationSubscriptionsResponse) -> dict:
|
|
21
|
+
out: dict = {}
|
|
22
|
+
if "subscriptions" in value:
|
|
23
|
+
import capo_workdocs.types.subscription_list
|
|
24
|
+
|
|
25
|
+
out["Subscriptions"] = capo_workdocs.types.subscription_list.serialize_json(
|
|
26
|
+
value["subscriptions"]
|
|
27
|
+
)
|
|
28
|
+
if "marker" in value:
|
|
29
|
+
out["Marker"] = value["marker"]
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DescribeNotificationSubscriptionsResponse:
|
|
34
|
+
out: DescribeNotificationSubscriptionsResponse = {} # type: ignore[typeddict-item]
|
|
35
|
+
if data.get("Subscriptions") is not None:
|
|
36
|
+
import capo_workdocs.types.subscription_list
|
|
37
|
+
|
|
38
|
+
out["subscriptions"] = capo_workdocs.types.subscription_list.deserialize_json(
|
|
39
|
+
data["Subscriptions"]
|
|
40
|
+
)
|
|
41
|
+
if data.get("Marker") is not None:
|
|
42
|
+
out["marker"] = data["Marker"]
|
|
43
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workdocs#DescribeResourcePermissionsRequest``."""
|
|
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
|
+
import capo_workdocs.types.limit_type
|
|
11
|
+
import capo_workdocs.types.page_marker_type
|
|
12
|
+
import capo_workdocs.types.resource_id_type
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DescribeResourcePermissionsRequest(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.</p>"""
|
|
22
|
+
principal_id: NotRequired["capo_workdocs.types.id_type.IdType"]
|
|
23
|
+
"""<p>The ID of the principal to filter permissions by.</p>"""
|
|
24
|
+
limit: NotRequired["capo_workdocs.types.limit_type.LimitType"]
|
|
25
|
+
"""<p>The maximum number of items to return with this call.</p>"""
|
|
26
|
+
marker: NotRequired["capo_workdocs.types.page_marker_type.PageMarkerType"]
|
|
27
|
+
"""<p>The marker for the next set of results. (You received this marker from a previous call)</p>"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# --- restJson1 ser/de ---
|
|
31
|
+
def serialize_json(value: DescribeResourcePermissionsRequest) -> dict:
|
|
32
|
+
out: dict = {}
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> DescribeResourcePermissionsRequest:
|
|
37
|
+
out: DescribeResourcePermissionsRequest = {} # type: ignore[typeddict-item]
|
|
38
|
+
return out
|