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.
Files changed (315) hide show
  1. capo_workdocs/__init__.py +70 -0
  2. capo_workdocs/_async.py +25 -0
  3. capo_workdocs/_auth/_identity.py +16 -0
  4. capo_workdocs/_auth/_providers.py +886 -0
  5. capo_workdocs/_auth/_signers.py +88 -0
  6. capo_workdocs/_auth/_sigv4.py +434 -0
  7. capo_workdocs/_auth/_zapros_handler.py +80 -0
  8. capo_workdocs/_iter.py +113 -0
  9. capo_workdocs/_operations/aws_gorilla_boy_service/abort_document_version_upload.py +151 -0
  10. capo_workdocs/_operations/aws_gorilla_boy_service/activate_user.py +166 -0
  11. capo_workdocs/_operations/aws_gorilla_boy_service/add_resource_permissions.py +174 -0
  12. capo_workdocs/_operations/aws_gorilla_boy_service/create_comment.py +190 -0
  13. capo_workdocs/_operations/aws_gorilla_boy_service/create_custom_metadata.py +176 -0
  14. capo_workdocs/_operations/aws_gorilla_boy_service/create_folder.py +193 -0
  15. capo_workdocs/_operations/aws_gorilla_boy_service/create_labels.py +167 -0
  16. capo_workdocs/_operations/aws_gorilla_boy_service/create_notification_subscription.py +168 -0
  17. capo_workdocs/_operations/aws_gorilla_boy_service/create_user.py +168 -0
  18. capo_workdocs/_operations/aws_gorilla_boy_service/deactivate_user.py +138 -0
  19. capo_workdocs/_operations/aws_gorilla_boy_service/delete_comment.py +153 -0
  20. capo_workdocs/_operations/aws_gorilla_boy_service/delete_custom_metadata.py +171 -0
  21. capo_workdocs/_operations/aws_gorilla_boy_service/delete_document.py +158 -0
  22. capo_workdocs/_operations/aws_gorilla_boy_service/delete_document_version.py +163 -0
  23. capo_workdocs/_operations/aws_gorilla_boy_service/delete_folder.py +158 -0
  24. capo_workdocs/_operations/aws_gorilla_boy_service/delete_folder_contents.py +148 -0
  25. capo_workdocs/_operations/aws_gorilla_boy_service/delete_labels.py +167 -0
  26. capo_workdocs/_operations/aws_gorilla_boy_service/delete_notification_subscription.py +135 -0
  27. capo_workdocs/_operations/aws_gorilla_boy_service/delete_user.py +138 -0
  28. capo_workdocs/_operations/aws_gorilla_boy_service/describe_activities.py +201 -0
  29. capo_workdocs/_operations/aws_gorilla_boy_service/describe_comments.py +181 -0
  30. capo_workdocs/_operations/aws_gorilla_boy_service/describe_document_versions.py +187 -0
  31. capo_workdocs/_operations/aws_gorilla_boy_service/describe_folder_contents.py +205 -0
  32. capo_workdocs/_operations/aws_gorilla_boy_service/describe_groups.py +167 -0
  33. capo_workdocs/_operations/aws_gorilla_boy_service/describe_notification_subscriptions.py +159 -0
  34. capo_workdocs/_operations/aws_gorilla_boy_service/describe_resource_permissions.py +170 -0
  35. capo_workdocs/_operations/aws_gorilla_boy_service/describe_root_folders.py +166 -0
  36. capo_workdocs/_operations/aws_gorilla_boy_service/describe_users.py +208 -0
  37. capo_workdocs/_operations/aws_gorilla_boy_service/get_current_user.py +166 -0
  38. capo_workdocs/_operations/aws_gorilla_boy_service/get_document.py +183 -0
  39. capo_workdocs/_operations/aws_gorilla_boy_service/get_document_path.py +174 -0
  40. capo_workdocs/_operations/aws_gorilla_boy_service/get_document_version.py +186 -0
  41. capo_workdocs/_operations/aws_gorilla_boy_service/get_folder.py +179 -0
  42. capo_workdocs/_operations/aws_gorilla_boy_service/get_folder_path.py +172 -0
  43. capo_workdocs/_operations/aws_gorilla_boy_service/get_resources.py +183 -0
  44. capo_workdocs/_operations/aws_gorilla_boy_service/initiate_document_version_upload.py +215 -0
  45. capo_workdocs/_operations/aws_gorilla_boy_service/remove_all_resource_permissions.py +133 -0
  46. capo_workdocs/_operations/aws_gorilla_boy_service/remove_resource_permission.py +149 -0
  47. capo_workdocs/_operations/aws_gorilla_boy_service/restore_document_versions.py +153 -0
  48. capo_workdocs/_operations/aws_gorilla_boy_service/search_resources.py +169 -0
  49. capo_workdocs/_operations/aws_gorilla_boy_service/update_document.py +168 -0
  50. capo_workdocs/_operations/aws_gorilla_boy_service/update_document_version.py +161 -0
  51. capo_workdocs/_operations/aws_gorilla_boy_service/update_folder.py +168 -0
  52. capo_workdocs/_operations/aws_gorilla_boy_service/update_user.py +193 -0
  53. capo_workdocs/_pagination.py +21 -0
  54. capo_workdocs/_protocol/__init__.py +1 -0
  55. capo_workdocs/_protocol/errors.py +93 -0
  56. capo_workdocs/_protocol/eventstream.py +238 -0
  57. capo_workdocs/_protocol/serialize.py +47 -0
  58. capo_workdocs/_protocol/xml.py +33 -0
  59. capo_workdocs/_rule_engine/__init__.py +0 -0
  60. capo_workdocs/_rule_engine/_aws_partition.py +160 -0
  61. capo_workdocs/_rule_engine/_endpoint_rule_set.py +136 -0
  62. capo_workdocs/_rule_engine/_endpoint_runtime.py +389 -0
  63. capo_workdocs/_services/_aws_config.py +160 -0
  64. capo_workdocs/_services/_pipeline.py +198 -0
  65. capo_workdocs/_services/async_work_docs.py +3513 -0
  66. capo_workdocs/_services/work_docs.py +3469 -0
  67. capo_workdocs/errors/__init__.py +94 -0
  68. capo_workdocs/errors/_base.py +94 -0
  69. capo_workdocs/errors/concurrent_modification_exception.py +53 -0
  70. capo_workdocs/errors/conflicting_operation_exception.py +53 -0
  71. capo_workdocs/errors/custom_metadata_limit_exceeded_exception.py +53 -0
  72. capo_workdocs/errors/deactivating_last_system_user_exception.py +59 -0
  73. capo_workdocs/errors/document_locked_for_comments_exception.py +53 -0
  74. capo_workdocs/errors/draft_upload_out_of_sync_exception.py +53 -0
  75. capo_workdocs/errors/entity_already_exists_exception.py +51 -0
  76. capo_workdocs/errors/entity_not_exists_exception.py +66 -0
  77. capo_workdocs/errors/failed_dependency_exception.py +51 -0
  78. capo_workdocs/errors/illegal_user_state_exception.py +51 -0
  79. capo_workdocs/errors/invalid_argument_exception.py +51 -0
  80. capo_workdocs/errors/invalid_comment_operation_exception.py +53 -0
  81. capo_workdocs/errors/invalid_operation_exception.py +51 -0
  82. capo_workdocs/errors/invalid_password_exception.py +51 -0
  83. capo_workdocs/errors/limit_exceeded_exception.py +51 -0
  84. capo_workdocs/errors/prohibited_state_exception.py +51 -0
  85. capo_workdocs/errors/requested_entity_too_large_exception.py +53 -0
  86. capo_workdocs/errors/resource_already_checked_out_exception.py +53 -0
  87. capo_workdocs/errors/service_unavailable_exception.py +51 -0
  88. capo_workdocs/errors/storage_limit_exceeded_exception.py +53 -0
  89. capo_workdocs/errors/storage_limit_will_exceed_exception.py +53 -0
  90. capo_workdocs/errors/too_many_labels_exception.py +51 -0
  91. capo_workdocs/errors/too_many_subscriptions_exception.py +53 -0
  92. capo_workdocs/errors/unauthorized_operation_exception.py +59 -0
  93. capo_workdocs/errors/unauthorized_resource_access_exception.py +53 -0
  94. capo_workdocs/py.typed +0 -0
  95. capo_workdocs/types/_prelude/blob.py +12 -0
  96. capo_workdocs/types/_prelude/timestamp.py +17 -0
  97. capo_workdocs/types/abort_document_version_upload_request.py +32 -0
  98. capo_workdocs/types/activate_user_request.py +29 -0
  99. capo_workdocs/types/activate_user_response.py +32 -0
  100. capo_workdocs/types/activity.py +144 -0
  101. capo_workdocs/types/activity_names_filter_type.py +5 -0
  102. capo_workdocs/types/activity_type.py +48 -0
  103. capo_workdocs/types/add_resource_permissions_request.py +68 -0
  104. capo_workdocs/types/add_resource_permissions_response.py +38 -0
  105. capo_workdocs/types/additional_response_field_type.py +14 -0
  106. capo_workdocs/types/additional_response_fields_list.py +35 -0
  107. capo_workdocs/types/authentication_header_type.py +5 -0
  108. capo_workdocs/types/boolean_enum_type.py +17 -0
  109. capo_workdocs/types/boolean_type.py +5 -0
  110. capo_workdocs/types/comment.py +121 -0
  111. capo_workdocs/types/comment_id_type.py +5 -0
  112. capo_workdocs/types/comment_list.py +29 -0
  113. capo_workdocs/types/comment_metadata.py +90 -0
  114. capo_workdocs/types/comment_status_type.py +18 -0
  115. capo_workdocs/types/comment_text_type.py +5 -0
  116. capo_workdocs/types/comment_visibility_type.py +17 -0
  117. capo_workdocs/types/content_category_type.py +24 -0
  118. capo_workdocs/types/create_comment_request.py +82 -0
  119. capo_workdocs/types/create_comment_response.py +32 -0
  120. capo_workdocs/types/create_custom_metadata_request.py +56 -0
  121. capo_workdocs/types/create_custom_metadata_response.py +18 -0
  122. capo_workdocs/types/create_folder_request.py +43 -0
  123. capo_workdocs/types/create_folder_response.py +36 -0
  124. capo_workdocs/types/create_labels_request.py +45 -0
  125. capo_workdocs/types/create_labels_response.py +18 -0
  126. capo_workdocs/types/create_notification_subscription_request.py +76 -0
  127. capo_workdocs/types/create_notification_subscription_response.py +36 -0
  128. capo_workdocs/types/create_user_request.py +97 -0
  129. capo_workdocs/types/create_user_response.py +32 -0
  130. capo_workdocs/types/custom_metadata_key_list.py +19 -0
  131. capo_workdocs/types/custom_metadata_key_type.py +5 -0
  132. capo_workdocs/types/custom_metadata_map.py +29 -0
  133. capo_workdocs/types/custom_metadata_value_type.py +5 -0
  134. capo_workdocs/types/date_range_type.py +50 -0
  135. capo_workdocs/types/deactivate_user_request.py +29 -0
  136. capo_workdocs/types/delete_comment_request.py +35 -0
  137. capo_workdocs/types/delete_custom_metadata_request.py +42 -0
  138. capo_workdocs/types/delete_custom_metadata_response.py +18 -0
  139. capo_workdocs/types/delete_document_request.py +29 -0
  140. capo_workdocs/types/delete_document_version_request.py +35 -0
  141. capo_workdocs/types/delete_folder_contents_request.py +29 -0
  142. capo_workdocs/types/delete_folder_request.py +29 -0
  143. capo_workdocs/types/delete_labels_request.py +35 -0
  144. capo_workdocs/types/delete_labels_response.py +18 -0
  145. capo_workdocs/types/delete_notification_subscription_request.py +26 -0
  146. capo_workdocs/types/delete_user_request.py +29 -0
  147. capo_workdocs/types/describe_activities_request.py +52 -0
  148. capo_workdocs/types/describe_activities_response.py +43 -0
  149. capo_workdocs/types/describe_comments_request.py +38 -0
  150. capo_workdocs/types/describe_comments_response.py +43 -0
  151. capo_workdocs/types/describe_document_versions_request.py +40 -0
  152. capo_workdocs/types/describe_document_versions_response.py +49 -0
  153. capo_workdocs/types/describe_folder_contents_request.py +47 -0
  154. capo_workdocs/types/describe_folder_contents_response.py +60 -0
  155. capo_workdocs/types/describe_groups_request.py +38 -0
  156. capo_workdocs/types/describe_groups_response.py +43 -0
  157. capo_workdocs/types/describe_notification_subscriptions_request.py +30 -0
  158. capo_workdocs/types/describe_notification_subscriptions_response.py +43 -0
  159. capo_workdocs/types/describe_resource_permissions_request.py +38 -0
  160. capo_workdocs/types/describe_resource_permissions_response.py +43 -0
  161. capo_workdocs/types/describe_root_folders_request.py +32 -0
  162. capo_workdocs/types/describe_root_folders_response.py +43 -0
  163. capo_workdocs/types/describe_users_request.py +53 -0
  164. capo_workdocs/types/describe_users_response.py +52 -0
  165. capo_workdocs/types/document_content_type.py +5 -0
  166. capo_workdocs/types/document_metadata.py +125 -0
  167. capo_workdocs/types/document_metadata_list.py +31 -0
  168. capo_workdocs/types/document_source_type.py +17 -0
  169. capo_workdocs/types/document_source_url_map.py +33 -0
  170. capo_workdocs/types/document_status_type.py +17 -0
  171. capo_workdocs/types/document_thumbnail_type.py +18 -0
  172. capo_workdocs/types/document_thumbnail_url_map.py +33 -0
  173. capo_workdocs/types/document_version_id_type.py +5 -0
  174. capo_workdocs/types/document_version_metadata.py +189 -0
  175. capo_workdocs/types/document_version_metadata_list.py +31 -0
  176. capo_workdocs/types/document_version_status.py +14 -0
  177. capo_workdocs/types/email_address_type.py +5 -0
  178. capo_workdocs/types/entity_id_list.py +17 -0
  179. capo_workdocs/types/error_message_type.py +5 -0
  180. capo_workdocs/types/exception_code_type.py +5 -0
  181. capo_workdocs/types/field_names_type.py +5 -0
  182. capo_workdocs/types/filters.py +202 -0
  183. capo_workdocs/types/folder_content_type.py +18 -0
  184. capo_workdocs/types/folder_metadata.py +131 -0
  185. capo_workdocs/types/folder_metadata_list.py +31 -0
  186. capo_workdocs/types/get_current_user_request.py +26 -0
  187. capo_workdocs/types/get_current_user_response.py +32 -0
  188. capo_workdocs/types/get_document_path_request.py +38 -0
  189. capo_workdocs/types/get_document_path_response.py +32 -0
  190. capo_workdocs/types/get_document_request.py +32 -0
  191. capo_workdocs/types/get_document_response.py +55 -0
  192. capo_workdocs/types/get_document_version_request.py +38 -0
  193. capo_workdocs/types/get_document_version_response.py +59 -0
  194. capo_workdocs/types/get_folder_path_request.py +38 -0
  195. capo_workdocs/types/get_folder_path_response.py +32 -0
  196. capo_workdocs/types/get_folder_request.py +32 -0
  197. capo_workdocs/types/get_folder_response.py +55 -0
  198. capo_workdocs/types/get_resources_request.py +40 -0
  199. capo_workdocs/types/get_resources_response.py +60 -0
  200. capo_workdocs/types/group_metadata.py +35 -0
  201. capo_workdocs/types/group_metadata_list.py +29 -0
  202. capo_workdocs/types/group_name_type.py +5 -0
  203. capo_workdocs/types/hash_type.py +5 -0
  204. capo_workdocs/types/header_name_type.py +5 -0
  205. capo_workdocs/types/header_value_type.py +5 -0
  206. capo_workdocs/types/id_type.py +5 -0
  207. capo_workdocs/types/initiate_document_version_upload_request.py +103 -0
  208. capo_workdocs/types/initiate_document_version_upload_response.py +51 -0
  209. capo_workdocs/types/language_code_type.py +46 -0
  210. capo_workdocs/types/limit_type.py +5 -0
  211. capo_workdocs/types/locale_type.py +26 -0
  212. capo_workdocs/types/long_range_type.py +34 -0
  213. capo_workdocs/types/long_type.py +5 -0
  214. capo_workdocs/types/marker_type.py +5 -0
  215. capo_workdocs/types/message_type.py +5 -0
  216. capo_workdocs/types/next_marker_type.py +5 -0
  217. capo_workdocs/types/notification_options.py +36 -0
  218. capo_workdocs/types/order_by_field_type.py +20 -0
  219. capo_workdocs/types/order_type.py +17 -0
  220. capo_workdocs/types/organization_user_list.py +29 -0
  221. capo_workdocs/types/page_marker_type.py +5 -0
  222. capo_workdocs/types/participants.py +51 -0
  223. capo_workdocs/types/password_type.py +5 -0
  224. capo_workdocs/types/permission_info.py +47 -0
  225. capo_workdocs/types/permission_info_list.py +31 -0
  226. capo_workdocs/types/positive_integer_type.py +5 -0
  227. capo_workdocs/types/positive_size_type.py +5 -0
  228. capo_workdocs/types/principal.py +54 -0
  229. capo_workdocs/types/principal_list.py +29 -0
  230. capo_workdocs/types/principal_role_type.py +19 -0
  231. capo_workdocs/types/principal_type.py +20 -0
  232. capo_workdocs/types/remove_all_resource_permissions_request.py +29 -0
  233. capo_workdocs/types/remove_resource_permission_request.py +35 -0
  234. capo_workdocs/types/resource_collection_type.py +14 -0
  235. capo_workdocs/types/resource_id_type.py +5 -0
  236. capo_workdocs/types/resource_metadata.py +80 -0
  237. capo_workdocs/types/resource_name_type.py +5 -0
  238. capo_workdocs/types/resource_path.py +42 -0
  239. capo_workdocs/types/resource_path_component.py +35 -0
  240. capo_workdocs/types/resource_path_component_list.py +31 -0
  241. capo_workdocs/types/resource_sort_type.py +17 -0
  242. capo_workdocs/types/resource_state_type.py +19 -0
  243. capo_workdocs/types/resource_type.py +17 -0
  244. capo_workdocs/types/response_item.py +117 -0
  245. capo_workdocs/types/response_item_type.py +19 -0
  246. capo_workdocs/types/response_item_web_url.py +5 -0
  247. capo_workdocs/types/response_items_list.py +29 -0
  248. capo_workdocs/types/restore_document_versions_request.py +29 -0
  249. capo_workdocs/types/role_permission_type.py +17 -0
  250. capo_workdocs/types/role_type.py +19 -0
  251. capo_workdocs/types/search_ancestor_id.py +5 -0
  252. capo_workdocs/types/search_ancestor_id_list.py +19 -0
  253. capo_workdocs/types/search_collection_type.py +17 -0
  254. capo_workdocs/types/search_collection_type_list.py +31 -0
  255. capo_workdocs/types/search_content_category_type_list.py +31 -0
  256. capo_workdocs/types/search_label.py +5 -0
  257. capo_workdocs/types/search_label_list.py +17 -0
  258. capo_workdocs/types/search_marker_type.py +5 -0
  259. capo_workdocs/types/search_principal_role_list.py +31 -0
  260. capo_workdocs/types/search_principal_type.py +48 -0
  261. capo_workdocs/types/search_principal_type_list.py +31 -0
  262. capo_workdocs/types/search_query_scope_type.py +17 -0
  263. capo_workdocs/types/search_query_scope_type_list.py +31 -0
  264. capo_workdocs/types/search_query_type.py +5 -0
  265. capo_workdocs/types/search_resource_type.py +19 -0
  266. capo_workdocs/types/search_resource_type_list.py +31 -0
  267. capo_workdocs/types/search_resources_request.py +126 -0
  268. capo_workdocs/types/search_resources_response.py +43 -0
  269. capo_workdocs/types/search_result_sort_list.py +31 -0
  270. capo_workdocs/types/search_results_limit_type.py +5 -0
  271. capo_workdocs/types/search_sort_result.py +47 -0
  272. capo_workdocs/types/share_principal.py +55 -0
  273. capo_workdocs/types/share_principal_list.py +31 -0
  274. capo_workdocs/types/share_result.py +74 -0
  275. capo_workdocs/types/share_results_list.py +29 -0
  276. capo_workdocs/types/share_status_type.py +17 -0
  277. capo_workdocs/types/shared_label.py +5 -0
  278. capo_workdocs/types/shared_labels.py +17 -0
  279. capo_workdocs/types/signed_header_map.py +29 -0
  280. capo_workdocs/types/size_type.py +5 -0
  281. capo_workdocs/types/sort_order.py +17 -0
  282. capo_workdocs/types/storage_rule_type.py +45 -0
  283. capo_workdocs/types/storage_type.py +17 -0
  284. capo_workdocs/types/subscription.py +56 -0
  285. capo_workdocs/types/subscription_end_point_type.py +5 -0
  286. capo_workdocs/types/subscription_list.py +29 -0
  287. capo_workdocs/types/subscription_protocol_type.py +17 -0
  288. capo_workdocs/types/subscription_type.py +14 -0
  289. capo_workdocs/types/text_locale_type_list.py +31 -0
  290. capo_workdocs/types/time_zone_id_type.py +5 -0
  291. capo_workdocs/types/timestamp_type.py +20 -0
  292. capo_workdocs/types/update_document_request.py +61 -0
  293. capo_workdocs/types/update_document_version_request.py +53 -0
  294. capo_workdocs/types/update_folder_request.py +61 -0
  295. capo_workdocs/types/update_user_request.py +111 -0
  296. capo_workdocs/types/update_user_response.py +32 -0
  297. capo_workdocs/types/upload_metadata.py +43 -0
  298. capo_workdocs/types/url_type.py +5 -0
  299. capo_workdocs/types/user.py +172 -0
  300. capo_workdocs/types/user_activities.py +29 -0
  301. capo_workdocs/types/user_attribute_value_type.py +5 -0
  302. capo_workdocs/types/user_filter_type.py +17 -0
  303. capo_workdocs/types/user_ids_type.py +5 -0
  304. capo_workdocs/types/user_metadata.py +61 -0
  305. capo_workdocs/types/user_metadata_list.py +29 -0
  306. capo_workdocs/types/user_sort_type.py +20 -0
  307. capo_workdocs/types/user_status_type.py +18 -0
  308. capo_workdocs/types/user_storage_metadata.py +43 -0
  309. capo_workdocs/types/user_type.py +20 -0
  310. capo_workdocs/types/username_type.py +5 -0
  311. capo_workdocs-0.1.0.dist-info/METADATA +101 -0
  312. capo_workdocs-0.1.0.dist-info/RECORD +315 -0
  313. capo_workdocs-0.1.0.dist-info/WHEEL +5 -0
  314. capo_workdocs-0.1.0.dist-info/licenses/LICENSE +21 -0
  315. capo_workdocs-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#HeaderValueType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ HeaderValueType: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#IdType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ IdType: TypeAlias = str
@@ -0,0 +1,103 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#InitiateDocumentVersionUploadRequest``."""
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_content_type
10
+ import capo_workdocs.types.resource_id_type
11
+ import capo_workdocs.types.resource_name_type
12
+ import capo_workdocs.types.size_type
13
+ import capo_workdocs.types.timestamp_type
14
+
15
+
16
+ class InitiateDocumentVersionUploadRequest(TypedDict, closed=True):
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
+ id: NotRequired["capo_workdocs.types.resource_id_type.ResourceIdType"]
22
+ """<p>The ID of the document.</p>"""
23
+ name: NotRequired["capo_workdocs.types.resource_name_type.ResourceNameType"]
24
+ """<p>The name of the document.</p>"""
25
+ content_created_timestamp: NotRequired[
26
+ "capo_workdocs.types.timestamp_type.TimestampType"
27
+ ]
28
+ """<p>The timestamp when the content of the document was originally created.</p>"""
29
+ content_modified_timestamp: NotRequired[
30
+ "capo_workdocs.types.timestamp_type.TimestampType"
31
+ ]
32
+ """<p>The timestamp when the content of the document was modified.</p>"""
33
+ content_type: NotRequired[
34
+ "capo_workdocs.types.document_content_type.DocumentContentType"
35
+ ]
36
+ """<p>The content type of the document.</p>"""
37
+ document_size_in_bytes: NotRequired["capo_workdocs.types.size_type.SizeType"]
38
+ """<p>The size of the document, in bytes.</p>"""
39
+ parent_folder_id: NotRequired["capo_workdocs.types.resource_id_type.ResourceIdType"]
40
+ """<p>The ID of the parent folder.</p>"""
41
+
42
+
43
+ # --- restJson1 ser/de ---
44
+ def serialize_json(value: InitiateDocumentVersionUploadRequest) -> dict:
45
+ out: dict = {}
46
+ if "id" in value:
47
+ out["Id"] = value["id"]
48
+ if "name" in value:
49
+ out["Name"] = value["name"]
50
+ if "content_created_timestamp" in value:
51
+ import capo_workdocs.types.timestamp_type
52
+
53
+ out["ContentCreatedTimestamp"] = (
54
+ capo_workdocs.types.timestamp_type.serialize_json(
55
+ value["content_created_timestamp"]
56
+ )
57
+ )
58
+ if "content_modified_timestamp" in value:
59
+ import capo_workdocs.types.timestamp_type
60
+
61
+ out["ContentModifiedTimestamp"] = (
62
+ capo_workdocs.types.timestamp_type.serialize_json(
63
+ value["content_modified_timestamp"]
64
+ )
65
+ )
66
+ if "content_type" in value:
67
+ out["ContentType"] = value["content_type"]
68
+ if "document_size_in_bytes" in value:
69
+ out["DocumentSizeInBytes"] = value["document_size_in_bytes"]
70
+ if "parent_folder_id" in value:
71
+ out["ParentFolderId"] = value["parent_folder_id"]
72
+ return out
73
+
74
+
75
+ def deserialize_json(data: dict) -> InitiateDocumentVersionUploadRequest:
76
+ out: InitiateDocumentVersionUploadRequest = {} # type: ignore[typeddict-item]
77
+ if data.get("Id") is not None:
78
+ out["id"] = data["Id"]
79
+ if data.get("Name") is not None:
80
+ out["name"] = data["Name"]
81
+ if data.get("ContentCreatedTimestamp") is not None:
82
+ import capo_workdocs.types.timestamp_type
83
+
84
+ out["content_created_timestamp"] = (
85
+ capo_workdocs.types.timestamp_type.deserialize_json(
86
+ data["ContentCreatedTimestamp"]
87
+ )
88
+ )
89
+ if data.get("ContentModifiedTimestamp") is not None:
90
+ import capo_workdocs.types.timestamp_type
91
+
92
+ out["content_modified_timestamp"] = (
93
+ capo_workdocs.types.timestamp_type.deserialize_json(
94
+ data["ContentModifiedTimestamp"]
95
+ )
96
+ )
97
+ if data.get("ContentType") is not None:
98
+ out["content_type"] = data["ContentType"]
99
+ if data.get("DocumentSizeInBytes") is not None:
100
+ out["document_size_in_bytes"] = data["DocumentSizeInBytes"]
101
+ if data.get("ParentFolderId") is not None:
102
+ out["parent_folder_id"] = data["ParentFolderId"]
103
+ return out
@@ -0,0 +1,51 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#InitiateDocumentVersionUploadResponse``."""
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
9
+ import capo_workdocs.types.upload_metadata
10
+
11
+
12
+ class InitiateDocumentVersionUploadResponse(TypedDict, closed=True):
13
+ metadata: NotRequired["capo_workdocs.types.document_metadata.DocumentMetadata"]
14
+ """<p>The document metadata.</p>"""
15
+ upload_metadata: NotRequired["capo_workdocs.types.upload_metadata.UploadMetadata"]
16
+ """<p>The upload metadata.</p>"""
17
+
18
+
19
+ # --- restJson1 ser/de ---
20
+ def serialize_json(value: InitiateDocumentVersionUploadResponse) -> dict:
21
+ out: dict = {}
22
+ if "metadata" in value:
23
+ import capo_workdocs.types.document_metadata
24
+
25
+ out["Metadata"] = capo_workdocs.types.document_metadata.serialize_json(
26
+ value["metadata"]
27
+ )
28
+ if "upload_metadata" in value:
29
+ import capo_workdocs.types.upload_metadata
30
+
31
+ out["UploadMetadata"] = capo_workdocs.types.upload_metadata.serialize_json(
32
+ value["upload_metadata"]
33
+ )
34
+ return out
35
+
36
+
37
+ def deserialize_json(data: dict) -> InitiateDocumentVersionUploadResponse:
38
+ out: InitiateDocumentVersionUploadResponse = {} # type: ignore[typeddict-item]
39
+ if data.get("Metadata") is not None:
40
+ import capo_workdocs.types.document_metadata
41
+
42
+ out["metadata"] = capo_workdocs.types.document_metadata.deserialize_json(
43
+ data["Metadata"]
44
+ )
45
+ if data.get("UploadMetadata") is not None:
46
+ import capo_workdocs.types.upload_metadata
47
+
48
+ out["upload_metadata"] = capo_workdocs.types.upload_metadata.deserialize_json(
49
+ data["UploadMetadata"]
50
+ )
51
+ return out
@@ -0,0 +1,46 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#LanguageCodeType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ LanguageCodeType: TypeAlias = Literal[
6
+ "AR",
7
+ "BG",
8
+ "BN",
9
+ "DA",
10
+ "DE",
11
+ "CS",
12
+ "EL",
13
+ "EN",
14
+ "ES",
15
+ "FA",
16
+ "FI",
17
+ "FR",
18
+ "HI",
19
+ "HU",
20
+ "ID",
21
+ "IT",
22
+ "JA",
23
+ "KO",
24
+ "LT",
25
+ "LV",
26
+ "NL",
27
+ "NO",
28
+ "PT",
29
+ "RO",
30
+ "RU",
31
+ "SV",
32
+ "SW",
33
+ "TH",
34
+ "TR",
35
+ "ZH",
36
+ "DEFAULT",
37
+ ]
38
+
39
+
40
+ # --- restJson1 ser/de ---
41
+ def serialize_json(value: LanguageCodeType) -> str:
42
+ return value
43
+
44
+
45
+ def deserialize_json(data: str) -> LanguageCodeType:
46
+ return cast(LanguageCodeType, data)
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#LimitType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ LimitType: TypeAlias = int
@@ -0,0 +1,26 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#LocaleType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ LocaleType: TypeAlias = Literal[
6
+ "en",
7
+ "fr",
8
+ "ko",
9
+ "de",
10
+ "es",
11
+ "ja",
12
+ "ru",
13
+ "zh_CN",
14
+ "zh_TW",
15
+ "pt_BR",
16
+ "default",
17
+ ]
18
+
19
+
20
+ # --- restJson1 ser/de ---
21
+ def serialize_json(value: LocaleType) -> str:
22
+ return value
23
+
24
+
25
+ def deserialize_json(data: str) -> LocaleType:
26
+ return cast(LocaleType, data)
@@ -0,0 +1,34 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#LongRangeType``."""
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.long_type
9
+
10
+
11
+ class LongRangeType(TypedDict, closed=True):
12
+ start_value: NotRequired["capo_workdocs.types.long_type.LongType"]
13
+ """<p>The size start range (in bytes).</p>"""
14
+ end_value: NotRequired["capo_workdocs.types.long_type.LongType"]
15
+ """<p>The size end range (in bytes).</p>"""
16
+
17
+
18
+ # --- restJson1 ser/de ---
19
+ def serialize_json(value: LongRangeType) -> dict:
20
+ out: dict = {}
21
+ if "start_value" in value:
22
+ out["StartValue"] = value["start_value"]
23
+ if "end_value" in value:
24
+ out["EndValue"] = value["end_value"]
25
+ return out
26
+
27
+
28
+ def deserialize_json(data: dict) -> LongRangeType:
29
+ out: LongRangeType = {} # type: ignore[typeddict-item]
30
+ if data.get("StartValue") is not None:
31
+ out["start_value"] = data["StartValue"]
32
+ if data.get("EndValue") is not None:
33
+ out["end_value"] = data["EndValue"]
34
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#LongType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ LongType: TypeAlias = int
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#MarkerType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ MarkerType: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#MessageType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ MessageType: TypeAlias = str
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#NextMarkerType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ NextMarkerType: TypeAlias = str
@@ -0,0 +1,36 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#NotificationOptions``."""
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.boolean_type
9
+ import capo_workdocs.types.message_type
10
+
11
+
12
+ class NotificationOptions(TypedDict, closed=True):
13
+ send_email: "capo_workdocs.types.boolean_type.BooleanType"
14
+ """<p>Boolean value to indicate an email notification should be sent to the recipients.</p>"""
15
+ email_message: NotRequired["capo_workdocs.types.message_type.MessageType"]
16
+ """<p>Text value to be included in the email body.</p>"""
17
+
18
+
19
+ # --- restJson1 ser/de ---
20
+ def serialize_json(value: NotificationOptions) -> dict:
21
+ out: dict = {}
22
+ out["SendEmail"] = value.get("send_email", False)
23
+ if "email_message" in value:
24
+ out["EmailMessage"] = value["email_message"]
25
+ return out
26
+
27
+
28
+ def deserialize_json(data: dict) -> NotificationOptions:
29
+ out: NotificationOptions = {} # type: ignore[typeddict-item]
30
+ if data.get("SendEmail") is not None:
31
+ out["send_email"] = data["SendEmail"]
32
+ else:
33
+ out["send_email"] = False
34
+ if data.get("EmailMessage") is not None:
35
+ out["email_message"] = data["EmailMessage"]
36
+ return out
@@ -0,0 +1,20 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#OrderByFieldType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ OrderByFieldType: TypeAlias = Literal[
6
+ "RELEVANCE",
7
+ "NAME",
8
+ "SIZE",
9
+ "CREATED_TIMESTAMP",
10
+ "MODIFIED_TIMESTAMP",
11
+ ]
12
+
13
+
14
+ # --- restJson1 ser/de ---
15
+ def serialize_json(value: OrderByFieldType) -> str:
16
+ return value
17
+
18
+
19
+ def deserialize_json(data: str) -> OrderByFieldType:
20
+ return cast(OrderByFieldType, data)
@@ -0,0 +1,17 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#OrderType``."""
2
+
3
+ from typing import Literal, TypeAlias, cast
4
+
5
+ OrderType: TypeAlias = Literal[
6
+ "ASCENDING",
7
+ "DESCENDING",
8
+ ]
9
+
10
+
11
+ # --- restJson1 ser/de ---
12
+ def serialize_json(value: OrderType) -> str:
13
+ return value
14
+
15
+
16
+ def deserialize_json(data: str) -> OrderType:
17
+ return cast(OrderType, data)
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#OrganizationUserList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_workdocs.types.user
7
+
8
+ OrganizationUserList: TypeAlias = list["capo_workdocs.types.user.User"]
9
+
10
+
11
+ # --- restJson1 ser/de ---
12
+ def serialize_json(value: OrganizationUserList) -> list:
13
+ import capo_workdocs.types.user
14
+
15
+ out: list = []
16
+ for item in value:
17
+ out.append(capo_workdocs.types.user.serialize_json(item))
18
+ return out
19
+
20
+
21
+ def deserialize_json(data: list) -> OrganizationUserList:
22
+ import capo_workdocs.types.user
23
+
24
+ out: OrganizationUserList = []
25
+ for item in data:
26
+ if item is None:
27
+ continue
28
+ out.append(capo_workdocs.types.user.deserialize_json(item))
29
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PageMarkerType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ PageMarkerType: TypeAlias = str
@@ -0,0 +1,51 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#Participants``."""
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.user_metadata_list
10
+
11
+
12
+ class Participants(TypedDict, closed=True):
13
+ users: NotRequired["capo_workdocs.types.user_metadata_list.UserMetadataList"]
14
+ """<p>The list of users.</p>"""
15
+ groups: NotRequired["capo_workdocs.types.group_metadata_list.GroupMetadataList"]
16
+ """<p>The list of user groups.</p>"""
17
+
18
+
19
+ # --- restJson1 ser/de ---
20
+ def serialize_json(value: Participants) -> dict:
21
+ out: dict = {}
22
+ if "users" in value:
23
+ import capo_workdocs.types.user_metadata_list
24
+
25
+ out["Users"] = capo_workdocs.types.user_metadata_list.serialize_json(
26
+ value["users"]
27
+ )
28
+ if "groups" in value:
29
+ import capo_workdocs.types.group_metadata_list
30
+
31
+ out["Groups"] = capo_workdocs.types.group_metadata_list.serialize_json(
32
+ value["groups"]
33
+ )
34
+ return out
35
+
36
+
37
+ def deserialize_json(data: dict) -> Participants:
38
+ out: Participants = {} # type: ignore[typeddict-item]
39
+ if data.get("Users") is not None:
40
+ import capo_workdocs.types.user_metadata_list
41
+
42
+ out["users"] = capo_workdocs.types.user_metadata_list.deserialize_json(
43
+ data["Users"]
44
+ )
45
+ if data.get("Groups") is not None:
46
+ import capo_workdocs.types.group_metadata_list
47
+
48
+ out["groups"] = capo_workdocs.types.group_metadata_list.deserialize_json(
49
+ data["Groups"]
50
+ )
51
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PasswordType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ PasswordType: TypeAlias = str
@@ -0,0 +1,47 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PermissionInfo``."""
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.role_permission_type
9
+ import capo_workdocs.types.role_type
10
+
11
+
12
+ class PermissionInfo(TypedDict, closed=True):
13
+ role: NotRequired["capo_workdocs.types.role_type.RoleType"]
14
+ """<p>The role of the user.</p>"""
15
+ type: NotRequired["capo_workdocs.types.role_permission_type.RolePermissionType"]
16
+ """<p>The type of permissions.</p>"""
17
+
18
+
19
+ # --- restJson1 ser/de ---
20
+ def serialize_json(value: PermissionInfo) -> dict:
21
+ out: dict = {}
22
+ if "role" in value:
23
+ import capo_workdocs.types.role_type
24
+
25
+ out["Role"] = capo_workdocs.types.role_type.serialize_json(value["role"])
26
+ if "type" in value:
27
+ import capo_workdocs.types.role_permission_type
28
+
29
+ out["Type"] = capo_workdocs.types.role_permission_type.serialize_json(
30
+ value["type"]
31
+ )
32
+ return out
33
+
34
+
35
+ def deserialize_json(data: dict) -> PermissionInfo:
36
+ out: PermissionInfo = {} # type: ignore[typeddict-item]
37
+ if data.get("Role") is not None:
38
+ import capo_workdocs.types.role_type
39
+
40
+ out["role"] = capo_workdocs.types.role_type.deserialize_json(data["Role"])
41
+ if data.get("Type") is not None:
42
+ import capo_workdocs.types.role_permission_type
43
+
44
+ out["type"] = capo_workdocs.types.role_permission_type.deserialize_json(
45
+ data["Type"]
46
+ )
47
+ return out
@@ -0,0 +1,31 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PermissionInfoList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_workdocs.types.permission_info
7
+
8
+ PermissionInfoList: TypeAlias = list[
9
+ "capo_workdocs.types.permission_info.PermissionInfo"
10
+ ]
11
+
12
+
13
+ # --- restJson1 ser/de ---
14
+ def serialize_json(value: PermissionInfoList) -> list:
15
+ import capo_workdocs.types.permission_info
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(capo_workdocs.types.permission_info.serialize_json(item))
20
+ return out
21
+
22
+
23
+ def deserialize_json(data: list) -> PermissionInfoList:
24
+ import capo_workdocs.types.permission_info
25
+
26
+ out: PermissionInfoList = []
27
+ for item in data:
28
+ if item is None:
29
+ continue
30
+ out.append(capo_workdocs.types.permission_info.deserialize_json(item))
31
+ return out
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PositiveIntegerType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ PositiveIntegerType: TypeAlias = int
@@ -0,0 +1,5 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PositiveSizeType``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ PositiveSizeType: TypeAlias = int
@@ -0,0 +1,54 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#Principal``."""
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.permission_info_list
10
+ import capo_workdocs.types.principal_type
11
+
12
+
13
+ class Principal(TypedDict, closed=True):
14
+ id: NotRequired["capo_workdocs.types.id_type.IdType"]
15
+ """<p>The ID of the resource.</p>"""
16
+ type: NotRequired["capo_workdocs.types.principal_type.PrincipalType"]
17
+ """<p>The type of resource.</p>"""
18
+ roles: NotRequired["capo_workdocs.types.permission_info_list.PermissionInfoList"]
19
+ """<p>The permission information for the resource.</p>"""
20
+
21
+
22
+ # --- restJson1 ser/de ---
23
+ def serialize_json(value: Principal) -> dict:
24
+ out: dict = {}
25
+ if "id" in value:
26
+ out["Id"] = value["id"]
27
+ if "type" in value:
28
+ import capo_workdocs.types.principal_type
29
+
30
+ out["Type"] = capo_workdocs.types.principal_type.serialize_json(value["type"])
31
+ if "roles" in value:
32
+ import capo_workdocs.types.permission_info_list
33
+
34
+ out["Roles"] = capo_workdocs.types.permission_info_list.serialize_json(
35
+ value["roles"]
36
+ )
37
+ return out
38
+
39
+
40
+ def deserialize_json(data: dict) -> Principal:
41
+ out: Principal = {} # type: ignore[typeddict-item]
42
+ if data.get("Id") is not None:
43
+ out["id"] = data["Id"]
44
+ if data.get("Type") is not None:
45
+ import capo_workdocs.types.principal_type
46
+
47
+ out["type"] = capo_workdocs.types.principal_type.deserialize_json(data["Type"])
48
+ if data.get("Roles") is not None:
49
+ import capo_workdocs.types.permission_info_list
50
+
51
+ out["roles"] = capo_workdocs.types.permission_info_list.deserialize_json(
52
+ data["Roles"]
53
+ )
54
+ return out
@@ -0,0 +1,29 @@
1
+ """Generated from Smithy shape ``com.amazonaws.workdocs#PrincipalList``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_workdocs.types.principal
7
+
8
+ PrincipalList: TypeAlias = list["capo_workdocs.types.principal.Principal"]
9
+
10
+
11
+ # --- restJson1 ser/de ---
12
+ def serialize_json(value: PrincipalList) -> list:
13
+ import capo_workdocs.types.principal
14
+
15
+ out: list = []
16
+ for item in value:
17
+ out.append(capo_workdocs.types.principal.serialize_json(item))
18
+ return out
19
+
20
+
21
+ def deserialize_json(data: list) -> PrincipalList:
22
+ import capo_workdocs.types.principal
23
+
24
+ out: PrincipalList = []
25
+ for item in data:
26
+ if item is None:
27
+ continue
28
+ out.append(capo_workdocs.types.principal.deserialize_json(item))
29
+ return out