aws-sdk-workdocs 1.40.0 → 1.42.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-workdocs/client.rb +96 -11
- data/lib/aws-sdk-workdocs/client_api.rb +60 -3
- data/lib/aws-sdk-workdocs/endpoint_provider.rb +35 -95
- data/lib/aws-sdk-workdocs/endpoints.rb +28 -0
- data/lib/aws-sdk-workdocs/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-workdocs/types.rb +73 -476
- data/lib/aws-sdk-workdocs.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9df40970297efdff7fbd6d6d41b3fa69053a4d8c6e85b80fe7de23a6c2e5b090
         | 
| 4 | 
            +
              data.tar.gz: 6396088600aa5a71b69f936f97d966cbecf2d74829642a3e978f77c99582e42f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 53f5fd47db229ec4578bf651019e6fc13aa4d73e67bb3907ab03419e34d8ce5e73be9ef9a7b75dff5e2dcbe5e1541e15c74ec3a0d9bf89fe28968d586d9afe5b
         | 
| 7 | 
            +
              data.tar.gz: 868218a65e307dccddfda3505043348cff6217d3ec6e2467df60594c317827ef465e66e2ec6294fb87716f360b21bf6cb0632e328ee63f866eab9b7da5254175
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,6 +1,18 @@ | |
| 1 1 | 
             
            Unreleased Changes
         | 
| 2 2 | 
             
            ------------------
         | 
| 3 3 |  | 
| 4 | 
            +
            1.42.0 (2023-01-18)
         | 
| 5 | 
            +
            ------------------
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            * Issue - Replace runtime endpoint resolution approach with generated ruby code.
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            1.41.0 (2022-11-14)
         | 
| 12 | 
            +
            ------------------
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            * Feature - Added 2 new document related operations, DeleteDocumentVersion and RestoreDocumentVersions.
         | 
| 15 | 
            +
             | 
| 4 16 | 
             
            1.40.0 (2022-10-25)
         | 
| 5 17 | 
             
            ------------------
         | 
| 6 18 |  | 
| @@ -271,4 +283,4 @@ Unreleased Changes | |
| 271 283 | 
             
            1.0.0.rc1 (2017-03-09)
         | 
| 272 284 | 
             
            ------------------
         | 
| 273 285 |  | 
| 274 | 
            -
            * Feature - Initial release of `aws-sdk-workdocs`.
         | 
| 286 | 
            +
            * Feature - Initial release of `aws-sdk-workdocs`.
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.42.0
         | 
| @@ -718,12 +718,12 @@ module Aws::WorkDocs | |
| 718 718 | 
             
                # endpoint receives a confirmation message, and must confirm the
         | 
| 719 719 | 
             
                # subscription.
         | 
| 720 720 | 
             
                #
         | 
| 721 | 
            -
                # For more information, see [ | 
| 722 | 
            -
                # *Amazon WorkDocs Developer Guide*.
         | 
| 721 | 
            +
                # For more information, see [Setting up notifications for an IAM user or
         | 
| 722 | 
            +
                # role][1] in the *Amazon WorkDocs Developer Guide*.
         | 
| 723 723 | 
             
                #
         | 
| 724 724 | 
             
                #
         | 
| 725 725 | 
             
                #
         | 
| 726 | 
            -
                # [1]: https://docs.aws.amazon.com/workdocs/latest/developerguide/ | 
| 726 | 
            +
                # [1]: https://docs.aws.amazon.com/workdocs/latest/developerguide/manage-notifications.html
         | 
| 727 727 | 
             
                #
         | 
| 728 728 | 
             
                # @option params [required, String] :organization_id
         | 
| 729 729 | 
             
                #   The ID of the organization.
         | 
| @@ -748,7 +748,7 @@ module Aws::WorkDocs | |
| 748 748 | 
             
                #   resp = client.create_notification_subscription({
         | 
| 749 749 | 
             
                #     organization_id: "IdType", # required
         | 
| 750 750 | 
             
                #     endpoint: "SubscriptionEndPointType", # required
         | 
| 751 | 
            -
                #     protocol: "HTTPS", # required, accepts HTTPS
         | 
| 751 | 
            +
                #     protocol: "HTTPS", # required, accepts HTTPS, SQS
         | 
| 752 752 | 
             
                #     subscription_type: "ALL", # required, accepts ALL
         | 
| 753 753 | 
             
                #   })
         | 
| 754 754 | 
             
                #
         | 
| @@ -756,7 +756,7 @@ module Aws::WorkDocs | |
| 756 756 | 
             
                #
         | 
| 757 757 | 
             
                #   resp.subscription.subscription_id #=> String
         | 
| 758 758 | 
             
                #   resp.subscription.end_point #=> String
         | 
| 759 | 
            -
                #   resp.subscription.protocol #=> String, one of "HTTPS"
         | 
| 759 | 
            +
                #   resp.subscription.protocol #=> String, one of "HTTPS", "SQS"
         | 
| 760 760 | 
             
                #
         | 
| 761 761 | 
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription AWS API Documentation
         | 
| 762 762 | 
             
                #
         | 
| @@ -981,6 +981,43 @@ module Aws::WorkDocs | |
| 981 981 | 
             
                  req.send_request(options)
         | 
| 982 982 | 
             
                end
         | 
| 983 983 |  | 
| 984 | 
            +
                # Deletes a version of an Amazon WorkDocs document. Use the
         | 
| 985 | 
            +
                # `DeletePriorVersions` parameter to delete prior versions.
         | 
| 986 | 
            +
                #
         | 
| 987 | 
            +
                # @option params [String] :authentication_token
         | 
| 988 | 
            +
                #   Amazon WorkDocs authentication token. Not required when using AWS
         | 
| 989 | 
            +
                #   administrator credentials to access the API.
         | 
| 990 | 
            +
                #
         | 
| 991 | 
            +
                # @option params [required, String] :document_id
         | 
| 992 | 
            +
                #   The ID of a document.
         | 
| 993 | 
            +
                #
         | 
| 994 | 
            +
                # @option params [required, String] :version_id
         | 
| 995 | 
            +
                #   The version ID of a document.
         | 
| 996 | 
            +
                #
         | 
| 997 | 
            +
                # @option params [required, Boolean] :delete_prior_versions
         | 
| 998 | 
            +
                #   When set to `TRUE`, deletes the specified version and *all prior
         | 
| 999 | 
            +
                #   versions* of a document.
         | 
| 1000 | 
            +
                #
         | 
| 1001 | 
            +
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 1002 | 
            +
                #
         | 
| 1003 | 
            +
                # @example Request syntax with placeholder values
         | 
| 1004 | 
            +
                #
         | 
| 1005 | 
            +
                #   resp = client.delete_document_version({
         | 
| 1006 | 
            +
                #     authentication_token: "AuthenticationHeaderType",
         | 
| 1007 | 
            +
                #     document_id: "ResourceIdType", # required
         | 
| 1008 | 
            +
                #     version_id: "DocumentVersionIdType", # required
         | 
| 1009 | 
            +
                #     delete_prior_versions: false, # required
         | 
| 1010 | 
            +
                #   })
         | 
| 1011 | 
            +
                #
         | 
| 1012 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocumentVersion AWS API Documentation
         | 
| 1013 | 
            +
                #
         | 
| 1014 | 
            +
                # @overload delete_document_version(params = {})
         | 
| 1015 | 
            +
                # @param [Hash] params ({})
         | 
| 1016 | 
            +
                def delete_document_version(params = {}, options = {})
         | 
| 1017 | 
            +
                  req = build_request(:delete_document_version, params)
         | 
| 1018 | 
            +
                  req.send_request(options)
         | 
| 1019 | 
            +
                end
         | 
| 1020 | 
            +
             | 
| 984 1021 | 
             
                # Permanently deletes the specified folder and its contents.
         | 
| 985 1022 | 
             
                #
         | 
| 986 1023 | 
             
                # @option params [String] :authentication_token
         | 
| @@ -1185,7 +1222,7 @@ module Aws::WorkDocs | |
| 1185 1222 | 
             
                #     user_id: "IdType",
         | 
| 1186 1223 | 
             
                #     include_indirect_activities: false,
         | 
| 1187 1224 | 
             
                #     limit: 1,
         | 
| 1188 | 
            -
                #     marker: " | 
| 1225 | 
            +
                #     marker: "SearchMarkerType",
         | 
| 1189 1226 | 
             
                #   })
         | 
| 1190 1227 | 
             
                #
         | 
| 1191 1228 | 
             
                # @example Response structure
         | 
| @@ -1596,7 +1633,7 @@ module Aws::WorkDocs | |
| 1596 1633 | 
             
                #   resp.subscriptions #=> Array
         | 
| 1597 1634 | 
             
                #   resp.subscriptions[0].subscription_id #=> String
         | 
| 1598 1635 | 
             
                #   resp.subscriptions[0].end_point #=> String
         | 
| 1599 | 
            -
                #   resp.subscriptions[0].protocol #=> String, one of "HTTPS"
         | 
| 1636 | 
            +
                #   resp.subscriptions[0].protocol #=> String, one of "HTTPS", "SQS"
         | 
| 1600 1637 | 
             
                #   resp.marker #=> String
         | 
| 1601 1638 | 
             
                #
         | 
| 1602 1639 | 
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions AWS API Documentation
         | 
| @@ -1742,7 +1779,28 @@ module Aws::WorkDocs | |
| 1742 1779 | 
             
                #   The IDs of the users.
         | 
| 1743 1780 | 
             
                #
         | 
| 1744 1781 | 
             
                # @option params [String] :query
         | 
| 1745 | 
            -
                #   A query to filter users by user name.
         | 
| 1782 | 
            +
                #   A query to filter users by user name. Remember the following about the
         | 
| 1783 | 
            +
                #   `Userids` and `Query` parameters:
         | 
| 1784 | 
            +
                #
         | 
| 1785 | 
            +
                #   * If you don't use either parameter, the API returns a paginated list
         | 
| 1786 | 
            +
                #     of all users on the site.
         | 
| 1787 | 
            +
                #
         | 
| 1788 | 
            +
                #   * If you use both parameters, the API ignores the `Query` parameter.
         | 
| 1789 | 
            +
                #
         | 
| 1790 | 
            +
                #   * The `Userid` parameter only returns user names that match a
         | 
| 1791 | 
            +
                #     corresponding user ID.
         | 
| 1792 | 
            +
                #
         | 
| 1793 | 
            +
                #   * The `Query` parameter runs a "prefix" search for users by the
         | 
| 1794 | 
            +
                #     `GivenName`, `SurName`, or `UserName` fields included in a
         | 
| 1795 | 
            +
                #     [CreateUser][1] API call. For example, querying on `Ma` returns
         | 
| 1796 | 
            +
                #     Márcia Oliveira, María García, and Mateo Jackson. If you use
         | 
| 1797 | 
            +
                #     multiple characters, the API only returns data that matches all
         | 
| 1798 | 
            +
                #     characters. For example, querying on `Ma J` only returns Mateo
         | 
| 1799 | 
            +
                #     Jackson.
         | 
| 1800 | 
            +
                #
         | 
| 1801 | 
            +
                #
         | 
| 1802 | 
            +
                #
         | 
| 1803 | 
            +
                #   [1]: https://docs.aws.amazon.com/workdocs/latest/APIReference/API_CreateUser.html
         | 
| 1746 1804 | 
             
                #
         | 
| 1747 1805 | 
             
                # @option params [String] :include
         | 
| 1748 1806 | 
             
                #   The state of the users. Specify "ALL" to include inactive users.
         | 
| @@ -2277,7 +2335,7 @@ module Aws::WorkDocs | |
| 2277 2335 | 
             
                # @option params [Integer] :document_size_in_bytes
         | 
| 2278 2336 | 
             
                #   The size of the document, in bytes.
         | 
| 2279 2337 | 
             
                #
         | 
| 2280 | 
            -
                # @option params [ | 
| 2338 | 
            +
                # @option params [String] :parent_folder_id
         | 
| 2281 2339 | 
             
                #   The ID of the parent folder.
         | 
| 2282 2340 | 
             
                #
         | 
| 2283 2341 | 
             
                # @return [Types::InitiateDocumentVersionUploadResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| @@ -2295,7 +2353,7 @@ module Aws::WorkDocs | |
| 2295 2353 | 
             
                #     content_modified_timestamp: Time.now,
         | 
| 2296 2354 | 
             
                #     content_type: "DocumentContentType",
         | 
| 2297 2355 | 
             
                #     document_size_in_bytes: 1,
         | 
| 2298 | 
            -
                #     parent_folder_id: "ResourceIdType", | 
| 2356 | 
            +
                #     parent_folder_id: "ResourceIdType",
         | 
| 2299 2357 | 
             
                #   })
         | 
| 2300 2358 | 
             
                #
         | 
| 2301 2359 | 
             
                # @example Response structure
         | 
| @@ -2399,6 +2457,33 @@ module Aws::WorkDocs | |
| 2399 2457 | 
             
                  req.send_request(options)
         | 
| 2400 2458 | 
             
                end
         | 
| 2401 2459 |  | 
| 2460 | 
            +
                # Recovers a deleted version of an Amazon WorkDocs document.
         | 
| 2461 | 
            +
                #
         | 
| 2462 | 
            +
                # @option params [String] :authentication_token
         | 
| 2463 | 
            +
                #   Amazon WorkDocs authentication token. Not required when using AWS
         | 
| 2464 | 
            +
                #   administrator credentials to access the API.
         | 
| 2465 | 
            +
                #
         | 
| 2466 | 
            +
                # @option params [required, String] :document_id
         | 
| 2467 | 
            +
                #   The ID of the document.
         | 
| 2468 | 
            +
                #
         | 
| 2469 | 
            +
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 2470 | 
            +
                #
         | 
| 2471 | 
            +
                # @example Request syntax with placeholder values
         | 
| 2472 | 
            +
                #
         | 
| 2473 | 
            +
                #   resp = client.restore_document_versions({
         | 
| 2474 | 
            +
                #     authentication_token: "AuthenticationHeaderType",
         | 
| 2475 | 
            +
                #     document_id: "ResourceIdType", # required
         | 
| 2476 | 
            +
                #   })
         | 
| 2477 | 
            +
                #
         | 
| 2478 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RestoreDocumentVersions AWS API Documentation
         | 
| 2479 | 
            +
                #
         | 
| 2480 | 
            +
                # @overload restore_document_versions(params = {})
         | 
| 2481 | 
            +
                # @param [Hash] params ({})
         | 
| 2482 | 
            +
                def restore_document_versions(params = {}, options = {})
         | 
| 2483 | 
            +
                  req = build_request(:restore_document_versions, params)
         | 
| 2484 | 
            +
                  req.send_request(options)
         | 
| 2485 | 
            +
                end
         | 
| 2486 | 
            +
             | 
| 2402 2487 | 
             
                # Updates the specified attributes of a document. The user must have
         | 
| 2403 2488 | 
             
                # access to both the document and its parent folder, if applicable.
         | 
| 2404 2489 | 
             
                #
         | 
| @@ -2617,7 +2702,7 @@ module Aws::WorkDocs | |
| 2617 2702 | 
             
                    params: params,
         | 
| 2618 2703 | 
             
                    config: config)
         | 
| 2619 2704 | 
             
                  context[:gem_name] = 'aws-sdk-workdocs'
         | 
| 2620 | 
            -
                  context[:gem_version] = '1. | 
| 2705 | 
            +
                  context[:gem_version] = '1.42.0'
         | 
| 2621 2706 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 2622 2707 | 
             
                end
         | 
| 2623 2708 |  | 
| @@ -56,6 +56,7 @@ module Aws::WorkDocs | |
| 56 56 | 
             
                DeleteCustomMetadataRequest = Shapes::StructureShape.new(name: 'DeleteCustomMetadataRequest')
         | 
| 57 57 | 
             
                DeleteCustomMetadataResponse = Shapes::StructureShape.new(name: 'DeleteCustomMetadataResponse')
         | 
| 58 58 | 
             
                DeleteDocumentRequest = Shapes::StructureShape.new(name: 'DeleteDocumentRequest')
         | 
| 59 | 
            +
                DeleteDocumentVersionRequest = Shapes::StructureShape.new(name: 'DeleteDocumentVersionRequest')
         | 
| 59 60 | 
             
                DeleteFolderContentsRequest = Shapes::StructureShape.new(name: 'DeleteFolderContentsRequest')
         | 
| 60 61 | 
             
                DeleteFolderRequest = Shapes::StructureShape.new(name: 'DeleteFolderRequest')
         | 
| 61 62 | 
             
                DeleteLabelsRequest = Shapes::StructureShape.new(name: 'DeleteLabelsRequest')
         | 
| @@ -165,8 +166,10 @@ module Aws::WorkDocs | |
| 165 166 | 
             
                ResourceSortType = Shapes::StringShape.new(name: 'ResourceSortType')
         | 
| 166 167 | 
             
                ResourceStateType = Shapes::StringShape.new(name: 'ResourceStateType')
         | 
| 167 168 | 
             
                ResourceType = Shapes::StringShape.new(name: 'ResourceType')
         | 
| 169 | 
            +
                RestoreDocumentVersionsRequest = Shapes::StructureShape.new(name: 'RestoreDocumentVersionsRequest')
         | 
| 168 170 | 
             
                RolePermissionType = Shapes::StringShape.new(name: 'RolePermissionType')
         | 
| 169 171 | 
             
                RoleType = Shapes::StringShape.new(name: 'RoleType')
         | 
| 172 | 
            +
                SearchMarkerType = Shapes::StringShape.new(name: 'SearchMarkerType')
         | 
| 170 173 | 
             
                SearchQueryType = Shapes::StringShape.new(name: 'SearchQueryType')
         | 
| 171 174 | 
             
                ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
         | 
| 172 175 | 
             
                SharePrincipal = Shapes::StructureShape.new(name: 'SharePrincipal')
         | 
| @@ -363,6 +366,12 @@ module Aws::WorkDocs | |
| 363 366 | 
             
                DeleteDocumentRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: ResourceIdType, required: true, location: "uri", location_name: "DocumentId"))
         | 
| 364 367 | 
             
                DeleteDocumentRequest.struct_class = Types::DeleteDocumentRequest
         | 
| 365 368 |  | 
| 369 | 
            +
                DeleteDocumentVersionRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
         | 
| 370 | 
            +
                DeleteDocumentVersionRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: ResourceIdType, required: true, location: "uri", location_name: "DocumentId"))
         | 
| 371 | 
            +
                DeleteDocumentVersionRequest.add_member(:version_id, Shapes::ShapeRef.new(shape: DocumentVersionIdType, required: true, location: "uri", location_name: "VersionId"))
         | 
| 372 | 
            +
                DeleteDocumentVersionRequest.add_member(:delete_prior_versions, Shapes::ShapeRef.new(shape: BooleanType, required: true, location: "querystring", location_name: "deletePriorVersions"))
         | 
| 373 | 
            +
                DeleteDocumentVersionRequest.struct_class = Types::DeleteDocumentVersionRequest
         | 
| 374 | 
            +
             | 
| 366 375 | 
             
                DeleteFolderContentsRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
         | 
| 367 376 | 
             
                DeleteFolderContentsRequest.add_member(:folder_id, Shapes::ShapeRef.new(shape: ResourceIdType, required: true, location: "uri", location_name: "FolderId"))
         | 
| 368 377 | 
             
                DeleteFolderContentsRequest.struct_class = Types::DeleteFolderContentsRequest
         | 
| @@ -396,11 +405,11 @@ module Aws::WorkDocs | |
| 396 405 | 
             
                DescribeActivitiesRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: IdType, location: "querystring", location_name: "userId"))
         | 
| 397 406 | 
             
                DescribeActivitiesRequest.add_member(:include_indirect_activities, Shapes::ShapeRef.new(shape: BooleanType, location: "querystring", location_name: "includeIndirectActivities"))
         | 
| 398 407 | 
             
                DescribeActivitiesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location: "querystring", location_name: "limit"))
         | 
| 399 | 
            -
                DescribeActivitiesRequest.add_member(:marker, Shapes::ShapeRef.new(shape:  | 
| 408 | 
            +
                DescribeActivitiesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: SearchMarkerType, location: "querystring", location_name: "marker"))
         | 
| 400 409 | 
             
                DescribeActivitiesRequest.struct_class = Types::DescribeActivitiesRequest
         | 
| 401 410 |  | 
| 402 411 | 
             
                DescribeActivitiesResponse.add_member(:user_activities, Shapes::ShapeRef.new(shape: UserActivities, location_name: "UserActivities"))
         | 
| 403 | 
            -
                DescribeActivitiesResponse.add_member(:marker, Shapes::ShapeRef.new(shape:  | 
| 412 | 
            +
                DescribeActivitiesResponse.add_member(:marker, Shapes::ShapeRef.new(shape: SearchMarkerType, location_name: "Marker"))
         | 
| 404 413 | 
             
                DescribeActivitiesResponse.struct_class = Types::DescribeActivitiesResponse
         | 
| 405 414 |  | 
| 406 415 | 
             
                DescribeCommentsRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
         | 
| @@ -649,7 +658,7 @@ module Aws::WorkDocs | |
| 649 658 | 
             
                InitiateDocumentVersionUploadRequest.add_member(:content_modified_timestamp, Shapes::ShapeRef.new(shape: TimestampType, location_name: "ContentModifiedTimestamp"))
         | 
| 650 659 | 
             
                InitiateDocumentVersionUploadRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: DocumentContentType, location_name: "ContentType"))
         | 
| 651 660 | 
             
                InitiateDocumentVersionUploadRequest.add_member(:document_size_in_bytes, Shapes::ShapeRef.new(shape: SizeType, location_name: "DocumentSizeInBytes"))
         | 
| 652 | 
            -
                InitiateDocumentVersionUploadRequest.add_member(:parent_folder_id, Shapes::ShapeRef.new(shape: ResourceIdType,  | 
| 661 | 
            +
                InitiateDocumentVersionUploadRequest.add_member(:parent_folder_id, Shapes::ShapeRef.new(shape: ResourceIdType, location_name: "ParentFolderId"))
         | 
| 653 662 | 
             
                InitiateDocumentVersionUploadRequest.struct_class = Types::InitiateDocumentVersionUploadRequest
         | 
| 654 663 |  | 
| 655 664 | 
             
                InitiateDocumentVersionUploadResponse.add_member(:metadata, Shapes::ShapeRef.new(shape: DocumentMetadata, location_name: "Metadata"))
         | 
| @@ -731,6 +740,10 @@ module Aws::WorkDocs | |
| 731 740 |  | 
| 732 741 | 
             
                ResourcePathComponentList.member = Shapes::ShapeRef.new(shape: ResourcePathComponent)
         | 
| 733 742 |  | 
| 743 | 
            +
                RestoreDocumentVersionsRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
         | 
| 744 | 
            +
                RestoreDocumentVersionsRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: ResourceIdType, required: true, location: "uri", location_name: "DocumentId"))
         | 
| 745 | 
            +
                RestoreDocumentVersionsRequest.struct_class = Types::RestoreDocumentVersionsRequest
         | 
| 746 | 
            +
             | 
| 734 747 | 
             
                ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
         | 
| 735 748 | 
             
                ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
         | 
| 736 749 |  | 
| @@ -883,6 +896,7 @@ module Aws::WorkDocs | |
| 883 896 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 884 897 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 885 898 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 899 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
         | 
| 886 900 | 
             
                  end)
         | 
| 887 901 |  | 
| 888 902 | 
             
                  api.add_operation(:activate_user, Seahorse::Model::Operation.new.tap do |o|
         | 
| @@ -908,6 +922,7 @@ module Aws::WorkDocs | |
| 908 922 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 909 923 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 910 924 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 925 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 911 926 | 
             
                  end)
         | 
| 912 927 |  | 
| 913 928 | 
             
                  api.add_operation(:create_comment, Seahorse::Model::Operation.new.tap do |o|
         | 
| @@ -951,6 +966,7 @@ module Aws::WorkDocs | |
| 951 966 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExistsException)
         | 
| 952 967 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 953 968 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
         | 
| 969 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
         | 
| 954 970 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
         | 
| 955 971 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
         | 
| 956 972 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| @@ -981,6 +997,7 @@ module Aws::WorkDocs | |
| 981 997 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 982 998 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: TooManySubscriptionsException)
         | 
| 983 999 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1000 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
         | 
| 984 1001 | 
             
                  end)
         | 
| 985 1002 |  | 
| 986 1003 | 
             
                  api.add_operation(:create_user, Seahorse::Model::Operation.new.tap do |o|
         | 
| @@ -1045,6 +1062,7 @@ module Aws::WorkDocs | |
| 1045 1062 | 
             
                    o.input = Shapes::ShapeRef.new(shape: DeleteDocumentRequest)
         | 
| 1046 1063 | 
             
                    o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
         | 
| 1047 1064 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
         | 
| 1065 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
         | 
| 1048 1066 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1049 1067 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
         | 
| 1050 1068 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
         | 
| @@ -1054,6 +1072,22 @@ module Aws::WorkDocs | |
| 1054 1072 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1055 1073 | 
             
                  end)
         | 
| 1056 1074 |  | 
| 1075 | 
            +
                  api.add_operation(:delete_document_version, Seahorse::Model::Operation.new.tap do |o|
         | 
| 1076 | 
            +
                    o.name = "DeleteDocumentVersion"
         | 
| 1077 | 
            +
                    o.http_method = "DELETE"
         | 
| 1078 | 
            +
                    o.http_request_uri = "/api/v1/documentVersions/{DocumentId}/versions/{VersionId}"
         | 
| 1079 | 
            +
                    o.input = Shapes::ShapeRef.new(shape: DeleteDocumentVersionRequest)
         | 
| 1080 | 
            +
                    o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
         | 
| 1081 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
         | 
| 1082 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1083 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
         | 
| 1084 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
         | 
| 1085 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 1086 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 1087 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
         | 
| 1088 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
         | 
| 1089 | 
            +
                  end)
         | 
| 1090 | 
            +
             | 
| 1057 1091 | 
             
                  api.add_operation(:delete_folder, Seahorse::Model::Operation.new.tap do |o|
         | 
| 1058 1092 | 
             
                    o.name = "DeleteFolder"
         | 
| 1059 1093 | 
             
                    o.http_method = "DELETE"
         | 
| @@ -1061,6 +1095,7 @@ module Aws::WorkDocs | |
| 1061 1095 | 
             
                    o.input = Shapes::ShapeRef.new(shape: DeleteFolderRequest)
         | 
| 1062 1096 | 
             
                    o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
         | 
| 1063 1097 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
         | 
| 1098 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
         | 
| 1064 1099 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1065 1100 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
         | 
| 1066 1101 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
         | 
| @@ -1096,6 +1131,7 @@ module Aws::WorkDocs | |
| 1096 1131 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 1097 1132 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 1098 1133 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1134 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1099 1135 | 
             
                  end)
         | 
| 1100 1136 |  | 
| 1101 1137 | 
             
                  api.add_operation(:delete_notification_subscription, Seahorse::Model::Operation.new.tap do |o|
         | 
| @@ -1163,6 +1199,7 @@ module Aws::WorkDocs | |
| 1163 1199 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 1164 1200 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1165 1201 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1202 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
         | 
| 1166 1203 | 
             
                    o[:pager] = Aws::Pager.new(
         | 
| 1167 1204 | 
             
                      limit_key: "limit",
         | 
| 1168 1205 | 
             
                      tokens: {
         | 
| @@ -1220,6 +1257,7 @@ module Aws::WorkDocs | |
| 1220 1257 | 
             
                    o.http_request_uri = "/api/v1/resources/{ResourceId}/permissions"
         | 
| 1221 1258 | 
             
                    o.input = Shapes::ShapeRef.new(shape: DescribeResourcePermissionsRequest)
         | 
| 1222 1259 | 
             
                    o.output = Shapes::ShapeRef.new(shape: DescribeResourcePermissionsResponse)
         | 
| 1260 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
         | 
| 1223 1261 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
         | 
| 1224 1262 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 1225 1263 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| @@ -1367,6 +1405,7 @@ module Aws::WorkDocs | |
| 1367 1405 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExistsException)
         | 
| 1368 1406 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: StorageLimitExceededException)
         | 
| 1369 1407 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: StorageLimitWillExceedException)
         | 
| 1408 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
         | 
| 1370 1409 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1371 1410 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
         | 
| 1372 1411 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| @@ -1374,6 +1413,7 @@ module Aws::WorkDocs | |
| 1374 1413 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1375 1414 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: DraftUploadOutOfSyncException)
         | 
| 1376 1415 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyCheckedOutException)
         | 
| 1416 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
         | 
| 1377 1417 | 
             
                  end)
         | 
| 1378 1418 |  | 
| 1379 1419 | 
             
                  api.add_operation(:remove_all_resource_permissions, Seahorse::Model::Operation.new.tap do |o|
         | 
| @@ -1400,6 +1440,22 @@ module Aws::WorkDocs | |
| 1400 1440 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1401 1441 | 
             
                  end)
         | 
| 1402 1442 |  | 
| 1443 | 
            +
                  api.add_operation(:restore_document_versions, Seahorse::Model::Operation.new.tap do |o|
         | 
| 1444 | 
            +
                    o.name = "RestoreDocumentVersions"
         | 
| 1445 | 
            +
                    o.http_method = "POST"
         | 
| 1446 | 
            +
                    o.http_request_uri = "/api/v1/documentVersions/restore/{DocumentId}"
         | 
| 1447 | 
            +
                    o.input = Shapes::ShapeRef.new(shape: RestoreDocumentVersionsRequest)
         | 
| 1448 | 
            +
                    o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
         | 
| 1449 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
         | 
| 1450 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1451 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
         | 
| 1452 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
         | 
| 1453 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 1454 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 1455 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
         | 
| 1456 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
         | 
| 1457 | 
            +
                  end)
         | 
| 1458 | 
            +
             | 
| 1403 1459 | 
             
                  api.add_operation(:update_document, Seahorse::Model::Operation.new.tap do |o|
         | 
| 1404 1460 | 
             
                    o.name = "UpdateDocument"
         | 
| 1405 1461 | 
             
                    o.http_method = "PATCH"
         | 
| @@ -1462,6 +1518,7 @@ module Aws::WorkDocs | |
| 1462 1518 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
         | 
| 1463 1519 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
         | 
| 1464 1520 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: IllegalUserStateException)
         | 
| 1521 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
         | 
| 1465 1522 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
         | 
| 1466 1523 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
         | 
| 1467 1524 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: DeactivatingLastSystemUserException)
         | 
| @@ -9,103 +9,43 @@ | |
| 9 9 |  | 
| 10 10 | 
             
            module Aws::WorkDocs
         | 
| 11 11 | 
             
              class EndpointProvider
         | 
| 12 | 
            -
                def  | 
| 13 | 
            -
                   | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
                       | 
| 20 | 
            -
             | 
| 12 | 
            +
                def resolve_endpoint(parameters)
         | 
| 13 | 
            +
                  region = parameters.region
         | 
| 14 | 
            +
                  use_dual_stack = parameters.use_dual_stack
         | 
| 15 | 
            +
                  use_fips = parameters.use_fips
         | 
| 16 | 
            +
                  endpoint = parameters.endpoint
         | 
| 17 | 
            +
                  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
         | 
| 18 | 
            +
                    if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
         | 
| 19 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 20 | 
            +
                        raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
         | 
| 21 | 
            +
                      end
         | 
| 22 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 23 | 
            +
                        raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
         | 
| 24 | 
            +
                      end
         | 
| 25 | 
            +
                      return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
         | 
| 26 | 
            +
                    end
         | 
| 27 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 28 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 29 | 
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 30 | 
            +
                      end
         | 
| 31 | 
            +
                      raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
         | 
| 32 | 
            +
                    end
         | 
| 33 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 34 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
         | 
| 35 | 
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 36 | 
            +
                      end
         | 
| 37 | 
            +
                      raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
         | 
| 38 | 
            +
                    end
         | 
| 39 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 40 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 41 | 
            +
                        return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 42 | 
            +
                      end
         | 
| 43 | 
            +
                      raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
         | 
| 44 | 
            +
                    end
         | 
| 45 | 
            +
                    return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 21 46 | 
             
                  end
         | 
| 22 | 
            -
                   | 
| 23 | 
            -
                end
         | 
| 47 | 
            +
                  raise ArgumentError, 'No endpoint could be resolved'
         | 
| 24 48 |  | 
| 25 | 
            -
                def resolve_endpoint(parameters)
         | 
| 26 | 
            -
                  @provider.resolve_endpoint(parameters)
         | 
| 27 49 | 
             
                end
         | 
| 28 | 
            -
             | 
| 29 | 
            -
                # @api private
         | 
| 30 | 
            -
                RULES = <<-JSON
         | 
| 31 | 
            -
            eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
         | 
| 32 | 
            -
            bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
         | 
| 33 | 
            -
            dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
         | 
| 34 | 
            -
            cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
         | 
| 35 | 
            -
            dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
         | 
| 36 | 
            -
            ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
         | 
| 37 | 
            -
            ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
         | 
| 38 | 
            -
            ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
         | 
| 39 | 
            -
            aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
         | 
| 40 | 
            -
            OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
         | 
| 41 | 
            -
            UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
         | 
| 42 | 
            -
            dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
         | 
| 43 | 
            -
            UFMtY29tcGxpYW50IHJlZ2lvbmFsIGVuZHBvaW50LiBJZiB0aGUgY29uZmln
         | 
| 44 | 
            -
            dXJlZCBlbmRwb2ludCBkb2VzIG5vdCBoYXZlIGEgRklQUyBjb21wbGlhbnQg
         | 
| 45 | 
            -
            ZW5kcG9pbnQsIGRpc3BhdGNoaW5nIHRoZSByZXF1ZXN0IHdpbGwgcmV0dXJu
         | 
| 46 | 
            -
            IGFuIGVycm9yLiIsInR5cGUiOiJCb29sZWFuIn0sIkVuZHBvaW50Ijp7ImJ1
         | 
| 47 | 
            -
            aWx0SW4iOiJTREs6OkVuZHBvaW50IiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1
         | 
| 48 | 
            -
            bWVudGF0aW9uIjoiT3ZlcnJpZGUgdGhlIGVuZHBvaW50IHVzZWQgdG8gc2Vu
         | 
| 49 | 
            -
            ZCB0aGlzIHJlcXVlc3QiLCJ0eXBlIjoiU3RyaW5nIn19LCJydWxlcyI6W3si
         | 
| 50 | 
            -
            Y29uZGl0aW9ucyI6W3siZm4iOiJhd3MucGFydGl0aW9uIiwiYXJndiI6W3si
         | 
| 51 | 
            -
            cmVmIjoiUmVnaW9uIn1dLCJhc3NpZ24iOiJQYXJ0aXRpb25SZXN1bHQifV0s
         | 
| 52 | 
            -
            InR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOlt7ImZuIjoi
         | 
| 53 | 
            -
            aXNTZXQiLCJhcmd2IjpbeyJyZWYiOiJFbmRwb2ludCJ9XX0seyJmbiI6InBh
         | 
| 54 | 
            -
            cnNlVVJMIiwiYXJndiI6W3sicmVmIjoiRW5kcG9pbnQifV0sImFzc2lnbiI6
         | 
| 55 | 
            -
            InVybCJ9XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6
         | 
| 56 | 
            -
            W3siZm4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRklQ
         | 
| 57 | 
            -
            UyJ9LHRydWVdfV0sImVycm9yIjoiSW52YWxpZCBDb25maWd1cmF0aW9uOiBG
         | 
| 58 | 
            -
            SVBTIGFuZCBjdXN0b20gZW5kcG9pbnQgYXJlIG5vdCBzdXBwb3J0ZWQiLCJ0
         | 
| 59 | 
            -
            eXBlIjoiZXJyb3IifSx7ImNvbmRpdGlvbnMiOltdLCJ0eXBlIjoidHJlZSIs
         | 
| 60 | 
            -
            InJ1bGVzIjpbeyJjb25kaXRpb25zIjpbeyJmbiI6ImJvb2xlYW5FcXVhbHMi
         | 
| 61 | 
            -
            LCJhcmd2IjpbeyJyZWYiOiJVc2VEdWFsU3RhY2sifSx0cnVlXX1dLCJlcnJv
         | 
| 62 | 
            -
            ciI6IkludmFsaWQgQ29uZmlndXJhdGlvbjogRHVhbHN0YWNrIGFuZCBjdXN0
         | 
| 63 | 
            -
            b20gZW5kcG9pbnQgYXJlIG5vdCBzdXBwb3J0ZWQiLCJ0eXBlIjoiZXJyb3Ii
         | 
| 64 | 
            -
            fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOnsicmVmIjoi
         | 
| 65 | 
            -
            RW5kcG9pbnQifSwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlw
         | 
| 66 | 
            -
            ZSI6ImVuZHBvaW50In1dfV19LHsiY29uZGl0aW9ucyI6W3siZm4iOiJib29s
         | 
| 67 | 
            -
            ZWFuRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRklQUyJ9LHRydWVdfSx7
         | 
| 68 | 
            -
            ImZuIjoiYm9vbGVhbkVxdWFscyIsImFyZ3YiOlt7InJlZiI6IlVzZUR1YWxT
         | 
| 69 | 
            -
            dGFjayJ9LHRydWVdfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRp
         | 
| 70 | 
            -
            dGlvbnMiOlt7ImZuIjoiYm9vbGVhbkVxdWFscyIsImFyZ3YiOlt0cnVlLHsi
         | 
| 71 | 
            -
            Zm4iOiJnZXRBdHRyIiwiYXJndiI6W3sicmVmIjoiUGFydGl0aW9uUmVzdWx0
         | 
| 72 | 
            -
            In0sInN1cHBvcnRzRklQUyJdfV19LHsiZm4iOiJib29sZWFuRXF1YWxzIiwi
         | 
| 73 | 
            -
            YXJndiI6W3RydWUseyJmbiI6ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQ
         | 
| 74 | 
            -
            YXJ0aXRpb25SZXN1bHQifSwic3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5
         | 
| 75 | 
            -
            cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2lu
         | 
| 76 | 
            -
            dCI6eyJ1cmwiOiJodHRwczovL3dvcmtkb2NzLWZpcHMue1JlZ2lvbn0ue1Bh
         | 
| 77 | 
            -
            cnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGll
         | 
| 78 | 
            -
            cyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNv
         | 
| 79 | 
            -
            bmRpdGlvbnMiOltdLCJlcnJvciI6IkZJUFMgYW5kIER1YWxTdGFjayBhcmUg
         | 
| 80 | 
            -
            ZW5hYmxlZCwgYnV0IHRoaXMgcGFydGl0aW9uIGRvZXMgbm90IHN1cHBvcnQg
         | 
| 81 | 
            -
            b25lIG9yIGJvdGgiLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6
         | 
| 82 | 
            -
            W3siZm4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRklQ
         | 
| 83 | 
            -
            UyJ9LHRydWVdfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlv
         | 
| 84 | 
            -
            bnMiOlt7ImZuIjoiYm9vbGVhbkVxdWFscyIsImFyZ3YiOlt0cnVlLHsiZm4i
         | 
| 85 | 
            -
            OiJnZXRBdHRyIiwiYXJndiI6W3sicmVmIjoiUGFydGl0aW9uUmVzdWx0In0s
         | 
| 86 | 
            -
            InN1cHBvcnRzRklQUyJdfV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3si
         | 
| 87 | 
            -
            Y29uZGl0aW9ucyI6W10sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRp
         | 
| 88 | 
            -
            dGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3dvcmtkb2Nz
         | 
| 89 | 
            -
            LWZpcHMue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9Iiwi
         | 
| 90 | 
            -
            cHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50
         | 
| 91 | 
            -
            In1dfV19LHsiY29uZGl0aW9ucyI6W10sImVycm9yIjoiRklQUyBpcyBlbmFi
         | 
| 92 | 
            -
            bGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IEZJUFMi
         | 
| 93 | 
            -
            LCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W3siZm4iOiJib29s
         | 
| 94 | 
            -
            ZWFuRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRHVhbFN0YWNrIn0sdHJ1
         | 
| 95 | 
            -
            ZV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W3si
         | 
| 96 | 
            -
            Zm4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3RydWUseyJmbiI6ImdldEF0
         | 
| 97 | 
            -
            dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwic3VwcG9y
         | 
| 98 | 
            -
            dHNEdWFsU3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNv
         | 
| 99 | 
            -
            bmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3dvcmtk
         | 
| 100 | 
            -
            b2NzLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3Vm
         | 
| 101 | 
            -
            Zml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJl
         | 
| 102 | 
            -
            bmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3Rh
         | 
| 103 | 
            -
            Y2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3Vw
         | 
| 104 | 
            -
            cG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9u
         | 
| 105 | 
            -
            cyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vd29ya2RvY3Mue1Jl
         | 
| 106 | 
            -
            Z2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGll
         | 
| 107 | 
            -
            cyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
         | 
| 108 | 
            -
             | 
| 109 | 
            -
                JSON
         | 
| 110 50 | 
             
              end
         | 
| 111 51 | 
             
            end
         | 
| @@ -193,6 +193,20 @@ module Aws::WorkDocs | |
| 193 193 | 
             
                  end
         | 
| 194 194 | 
             
                end
         | 
| 195 195 |  | 
| 196 | 
            +
                class DeleteDocumentVersion
         | 
| 197 | 
            +
                  def self.build(context)
         | 
| 198 | 
            +
                    unless context.config.regional_endpoint
         | 
| 199 | 
            +
                      endpoint = context.config.endpoint.to_s
         | 
| 200 | 
            +
                    end
         | 
| 201 | 
            +
                    Aws::WorkDocs::EndpointParameters.new(
         | 
| 202 | 
            +
                      region: context.config.region,
         | 
| 203 | 
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         | 
| 204 | 
            +
                      use_fips: context.config.use_fips_endpoint,
         | 
| 205 | 
            +
                      endpoint: endpoint,
         | 
| 206 | 
            +
                    )
         | 
| 207 | 
            +
                  end
         | 
| 208 | 
            +
                end
         | 
| 209 | 
            +
             | 
| 196 210 | 
             
                class DeleteFolder
         | 
| 197 211 | 
             
                  def self.build(context)
         | 
| 198 212 | 
             
                    unless context.config.regional_endpoint
         | 
| @@ -529,6 +543,20 @@ module Aws::WorkDocs | |
| 529 543 | 
             
                  end
         | 
| 530 544 | 
             
                end
         | 
| 531 545 |  | 
| 546 | 
            +
                class RestoreDocumentVersions
         | 
| 547 | 
            +
                  def self.build(context)
         | 
| 548 | 
            +
                    unless context.config.regional_endpoint
         | 
| 549 | 
            +
                      endpoint = context.config.endpoint.to_s
         | 
| 550 | 
            +
                    end
         | 
| 551 | 
            +
                    Aws::WorkDocs::EndpointParameters.new(
         | 
| 552 | 
            +
                      region: context.config.region,
         | 
| 553 | 
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         | 
| 554 | 
            +
                      use_fips: context.config.use_fips_endpoint,
         | 
| 555 | 
            +
                      endpoint: endpoint,
         | 
| 556 | 
            +
                    )
         | 
| 557 | 
            +
                  end
         | 
| 558 | 
            +
                end
         | 
| 559 | 
            +
             | 
| 532 560 | 
             
                class UpdateDocument
         | 
| 533 561 | 
             
                  def self.build(context)
         | 
| 534 562 | 
             
                    unless context.config.regional_endpoint
         | 
| @@ -82,6 +82,8 @@ module Aws::WorkDocs | |
| 82 82 | 
             
                        Aws::WorkDocs::Endpoints::DeleteCustomMetadata.build(context)
         | 
| 83 83 | 
             
                      when :delete_document
         | 
| 84 84 | 
             
                        Aws::WorkDocs::Endpoints::DeleteDocument.build(context)
         | 
| 85 | 
            +
                      when :delete_document_version
         | 
| 86 | 
            +
                        Aws::WorkDocs::Endpoints::DeleteDocumentVersion.build(context)
         | 
| 85 87 | 
             
                      when :delete_folder
         | 
| 86 88 | 
             
                        Aws::WorkDocs::Endpoints::DeleteFolder.build(context)
         | 
| 87 89 | 
             
                      when :delete_folder_contents
         | 
| @@ -130,6 +132,8 @@ module Aws::WorkDocs | |
| 130 132 | 
             
                        Aws::WorkDocs::Endpoints::RemoveAllResourcePermissions.build(context)
         | 
| 131 133 | 
             
                      when :remove_resource_permission
         | 
| 132 134 | 
             
                        Aws::WorkDocs::Endpoints::RemoveResourcePermission.build(context)
         | 
| 135 | 
            +
                      when :restore_document_versions
         | 
| 136 | 
            +
                        Aws::WorkDocs::Endpoints::RestoreDocumentVersions.build(context)
         | 
| 133 137 | 
             
                      when :update_document
         | 
| 134 138 | 
             
                        Aws::WorkDocs::Endpoints::UpdateDocument.build(context)
         | 
| 135 139 | 
             
                      when :update_document_version
         |