@aws-sdk/client-workdocs 3.32.0 → 3.36.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.
- package/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/WorkDocs.js +1 -2
- package/{dist/cjs → dist-cjs}/WorkDocsClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/AbortDocumentVersionUploadCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ActivateUserCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/AddResourcePermissionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateCommentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateCustomMetadataCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateFolderCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateLabelsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateNotificationSubscriptionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateUserCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeactivateUserCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteCommentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteCustomMetadataCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteDocumentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteFolderCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteFolderContentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteLabelsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteNotificationSubscriptionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteUserCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeActivitiesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeCommentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeDocumentVersionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFolderContentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeGroupsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeNotificationSubscriptionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeResourcePermissionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeRootFoldersCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeUsersCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetCurrentUserCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDocumentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDocumentPathCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDocumentVersionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetFolderCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetFolderPathCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/InitiateDocumentVersionUploadCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RemoveAllResourcePermissionsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RemoveResourcePermissionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateDocumentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateDocumentVersionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFolderCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateUserCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeDocumentVersionsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeFolderContentsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeUsersPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +9 -10
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/WorkDocs.js +2 -38
- package/dist-es/WorkDocsClient.js +37 -0
- package/{dist/es → dist-es}/commands/AbortDocumentVersionUploadCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ActivateUserCommand.js +4 -31
- package/{dist/es → dist-es}/commands/AddResourcePermissionsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/CreateCommentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateCustomMetadataCommand.js +4 -31
- package/{dist/es → dist-es}/commands/CreateFolderCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateLabelsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/CreateNotificationSubscriptionCommand.js +4 -34
- package/{dist/es → dist-es}/commands/CreateUserCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DeactivateUserCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DeleteCommentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteCustomMetadataCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteDocumentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteFolderCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteFolderContentsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteLabelsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteNotificationSubscriptionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteUserCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeActivitiesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeCommentsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeDocumentVersionsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeFolderContentsCommand.js +4 -35
- package/{dist/es → dist-es}/commands/DescribeGroupsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeNotificationSubscriptionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeResourcePermissionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeRootFoldersCommand.js +4 -38
- package/{dist/es → dist-es}/commands/DescribeUsersCommand.js +4 -34
- package/{dist/es → dist-es}/commands/GetCurrentUserCommand.js +4 -36
- package/{dist/es → dist-es}/commands/GetDocumentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetDocumentPathCommand.js +4 -35
- package/{dist/es → dist-es}/commands/GetDocumentVersionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetFolderCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetFolderPathCommand.js +4 -35
- package/{dist/es → dist-es}/commands/GetResourcesCommand.js +4 -31
- package/{dist/es → dist-es}/commands/InitiateDocumentVersionUploadCommand.js +4 -35
- package/{dist/es → dist-es}/commands/RemoveAllResourcePermissionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/RemoveResourcePermissionCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateDocumentCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateDocumentVersionCommand.js +4 -33
- package/{dist/es → dist-es}/commands/UpdateFolderCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateUserCommand.js +4 -31
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -349
- package/{dist/es → dist-es}/pagination/DescribeDocumentVersionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeFolderContentsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeUsersPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1398 -1404
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/WorkDocs.d.ts +2 -2
- package/{dist/types → dist-types}/WorkDocsClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AbortDocumentVersionUploadCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ActivateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AddResourcePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateCommentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateCustomMetadataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateLabelsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateNotificationSubscriptionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeactivateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteCommentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteCustomMetadataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteFolderContentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteLabelsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteNotificationSubscriptionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeActivitiesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeCommentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeDocumentVersionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeFolderContentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeGroupsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeNotificationSubscriptionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeResourcePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeRootFoldersCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeUsersCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetCurrentUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDocumentPathCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDocumentVersionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetFolderPathCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/InitiateDocumentVersionUploadCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RemoveAllResourcePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RemoveResourcePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateDocumentVersionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeDocumentVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeFolderContentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeUsersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/WorkDocs.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/WorkDocsClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AbortDocumentVersionUploadCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ActivateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AddResourcePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateCommentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateCustomMetadataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateLabelsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateNotificationSubscriptionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeactivateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteCommentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteCustomMetadataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFolderContentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteLabelsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteNotificationSubscriptionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeActivitiesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeCommentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeDocumentVersionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFolderContentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeGroupsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeNotificationSubscriptionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeResourcePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRootFoldersCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeUsersCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetCurrentUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetDocumentPathCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetDocumentVersionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetFolderPathCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/InitiateDocumentVersionUploadCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RemoveAllResourcePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/RemoveResourcePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateDocumentVersionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFolderCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateUserCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeDocumentVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeFolderContentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeUsersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/WorkDocs.ts +0 -1547
- package/WorkDocsClient.ts +0 -438
- package/commands/AbortDocumentVersionUploadCommand.ts +0 -100
- package/commands/ActivateUserCommand.ts +0 -95
- package/commands/AddResourcePermissionsCommand.ts +0 -96
- package/commands/CreateCommentCommand.ts +0 -94
- package/commands/CreateCustomMetadataCommand.ts +0 -95
- package/commands/CreateFolderCommand.ts +0 -94
- package/commands/CreateLabelsCommand.ts +0 -95
- package/commands/CreateNotificationSubscriptionCommand.ts +0 -106
- package/commands/CreateUserCommand.ts +0 -95
- package/commands/DeactivateUserCommand.ts +0 -95
- package/commands/DeleteCommentCommand.ts +0 -94
- package/commands/DeleteCustomMetadataCommand.ts +0 -94
- package/commands/DeleteDocumentCommand.ts +0 -94
- package/commands/DeleteFolderCommand.ts +0 -94
- package/commands/DeleteFolderContentsCommand.ts +0 -94
- package/commands/DeleteLabelsCommand.ts +0 -94
- package/commands/DeleteNotificationSubscriptionCommand.ts +0 -100
- package/commands/DeleteUserCommand.ts +0 -94
- package/commands/DescribeActivitiesCommand.ts +0 -94
- package/commands/DescribeCommentsCommand.ts +0 -94
- package/commands/DescribeDocumentVersionsCommand.ts +0 -95
- package/commands/DescribeFolderContentsCommand.ts +0 -99
- package/commands/DescribeGroupsCommand.ts +0 -95
- package/commands/DescribeNotificationSubscriptionsCommand.ts +0 -105
- package/commands/DescribeResourcePermissionsCommand.ts +0 -99
- package/commands/DescribeRootFoldersCommand.ts +0 -102
- package/commands/DescribeUsersCommand.ts +0 -98
- package/commands/GetCurrentUserCommand.ts +0 -100
- package/commands/GetDocumentCommand.ts +0 -94
- package/commands/GetDocumentPathCommand.ts +0 -99
- package/commands/GetDocumentVersionCommand.ts +0 -94
- package/commands/GetFolderCommand.ts +0 -94
- package/commands/GetFolderPathCommand.ts +0 -99
- package/commands/GetResourcesCommand.ts +0 -95
- package/commands/InitiateDocumentVersionUploadCommand.ts +0 -104
- package/commands/RemoveAllResourcePermissionsCommand.ts +0 -97
- package/commands/RemoveResourcePermissionCommand.ts +0 -95
- package/commands/UpdateDocumentCommand.ts +0 -95
- package/commands/UpdateDocumentVersionCommand.ts +0 -97
- package/commands/UpdateFolderCommand.ts +0 -95
- package/commands/UpdateUserCommand.ts +0 -95
- package/dist/cjs/WorkDocs.js.map +0 -1
- package/dist/cjs/WorkDocsClient.js.map +0 -1
- package/dist/cjs/commands/AbortDocumentVersionUploadCommand.js.map +0 -1
- package/dist/cjs/commands/ActivateUserCommand.js.map +0 -1
- package/dist/cjs/commands/AddResourcePermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCommentCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCustomMetadataCommand.js.map +0 -1
- package/dist/cjs/commands/CreateFolderCommand.js.map +0 -1
- package/dist/cjs/commands/CreateLabelsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateNotificationSubscriptionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateUserCommand.js.map +0 -1
- package/dist/cjs/commands/DeactivateUserCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteCommentCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteCustomMetadataCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDocumentCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFolderCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFolderContentsCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteLabelsCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteNotificationSubscriptionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteUserCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeActivitiesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCommentsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDocumentVersionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFolderContentsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeNotificationSubscriptionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeResourcePermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRootFoldersCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeUsersCommand.js.map +0 -1
- package/dist/cjs/commands/GetCurrentUserCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentPathCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentVersionCommand.js.map +0 -1
- package/dist/cjs/commands/GetFolderCommand.js.map +0 -1
- package/dist/cjs/commands/GetFolderPathCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/InitiateDocumentVersionUploadCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveAllResourcePermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveResourcePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDocumentCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateDocumentVersionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFolderCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateUserCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeDocumentVersionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeFolderContentsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeUsersPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/WorkDocs.js.map +0 -1
- package/dist/es/WorkDocsClient.js +0 -78
- package/dist/es/WorkDocsClient.js.map +0 -1
- package/dist/es/commands/AbortDocumentVersionUploadCommand.js.map +0 -1
- package/dist/es/commands/ActivateUserCommand.js.map +0 -1
- package/dist/es/commands/AddResourcePermissionsCommand.js.map +0 -1
- package/dist/es/commands/CreateCommentCommand.js.map +0 -1
- package/dist/es/commands/CreateCustomMetadataCommand.js.map +0 -1
- package/dist/es/commands/CreateFolderCommand.js.map +0 -1
- package/dist/es/commands/CreateLabelsCommand.js.map +0 -1
- package/dist/es/commands/CreateNotificationSubscriptionCommand.js.map +0 -1
- package/dist/es/commands/CreateUserCommand.js.map +0 -1
- package/dist/es/commands/DeactivateUserCommand.js.map +0 -1
- package/dist/es/commands/DeleteCommentCommand.js.map +0 -1
- package/dist/es/commands/DeleteCustomMetadataCommand.js.map +0 -1
- package/dist/es/commands/DeleteDocumentCommand.js.map +0 -1
- package/dist/es/commands/DeleteFolderCommand.js.map +0 -1
- package/dist/es/commands/DeleteFolderContentsCommand.js.map +0 -1
- package/dist/es/commands/DeleteLabelsCommand.js.map +0 -1
- package/dist/es/commands/DeleteNotificationSubscriptionCommand.js.map +0 -1
- package/dist/es/commands/DeleteUserCommand.js.map +0 -1
- package/dist/es/commands/DescribeActivitiesCommand.js.map +0 -1
- package/dist/es/commands/DescribeCommentsCommand.js.map +0 -1
- package/dist/es/commands/DescribeDocumentVersionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeFolderContentsCommand.js.map +0 -1
- package/dist/es/commands/DescribeGroupsCommand.js.map +0 -1
- package/dist/es/commands/DescribeNotificationSubscriptionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeResourcePermissionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeRootFoldersCommand.js.map +0 -1
- package/dist/es/commands/DescribeUsersCommand.js.map +0 -1
- package/dist/es/commands/GetCurrentUserCommand.js.map +0 -1
- package/dist/es/commands/GetDocumentCommand.js.map +0 -1
- package/dist/es/commands/GetDocumentPathCommand.js.map +0 -1
- package/dist/es/commands/GetDocumentVersionCommand.js.map +0 -1
- package/dist/es/commands/GetFolderCommand.js.map +0 -1
- package/dist/es/commands/GetFolderPathCommand.js.map +0 -1
- package/dist/es/commands/GetResourcesCommand.js.map +0 -1
- package/dist/es/commands/InitiateDocumentVersionUploadCommand.js.map +0 -1
- package/dist/es/commands/RemoveAllResourcePermissionsCommand.js.map +0 -1
- package/dist/es/commands/RemoveResourcePermissionCommand.js.map +0 -1
- package/dist/es/commands/UpdateDocumentCommand.js.map +0 -1
- package/dist/es/commands/UpdateDocumentVersionCommand.js.map +0 -1
- package/dist/es/commands/UpdateFolderCommand.js.map +0 -1
- package/dist/es/commands/UpdateUserCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -49
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeDocumentVersionsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeFolderContentsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeUsersPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -68
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3531
- package/pagination/DescribeDocumentVersionsPaginator.ts +0 -58
- package/pagination/DescribeFolderContentsPaginator.ts +0 -58
- package/pagination/DescribeUsersPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_restJson1.ts +0 -6691
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { GetDocumentPathRequest, GetDocumentPathResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetDocumentPathCommand,
|
|
5
|
-
serializeAws_restJson1GetDocumentPathCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetDocumentPathCommandInput extends GetDocumentPathRequest {}
|
|
21
|
-
export interface GetDocumentPathCommandOutput extends GetDocumentPathResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the path information (the hierarchy from the root folder) for the
|
|
25
|
-
* requested document.</p>
|
|
26
|
-
* <p>By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the
|
|
27
|
-
* requested document and only includes the IDs of the parent folders in the path. You can
|
|
28
|
-
* limit the maximum number of levels. You can also request the names of the parent
|
|
29
|
-
* folders.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { WorkDocsClient, GetDocumentPathCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
34
|
-
* // const { WorkDocsClient, GetDocumentPathCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
35
|
-
* const client = new WorkDocsClient(config);
|
|
36
|
-
* const command = new GetDocumentPathCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link GetDocumentPathCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link GetDocumentPathCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class GetDocumentPathCommand extends $Command<
|
|
46
|
-
GetDocumentPathCommandInput,
|
|
47
|
-
GetDocumentPathCommandOutput,
|
|
48
|
-
WorkDocsClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: GetDocumentPathCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<GetDocumentPathCommandInput, GetDocumentPathCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "WorkDocsClient";
|
|
73
|
-
const commandName = "GetDocumentPathCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: GetDocumentPathRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: GetDocumentPathResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: GetDocumentPathCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_restJson1GetDocumentPathCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDocumentPathCommandOutput> {
|
|
94
|
-
return deserializeAws_restJson1GetDocumentPathCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { GetDocumentVersionRequest, GetDocumentVersionResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetDocumentVersionCommand,
|
|
5
|
-
serializeAws_restJson1GetDocumentVersionCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetDocumentVersionCommandInput extends GetDocumentVersionRequest {}
|
|
21
|
-
export interface GetDocumentVersionCommandOutput extends GetDocumentVersionResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves version metadata for the specified document.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { WorkDocsClient, GetDocumentVersionCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
29
|
-
* // const { WorkDocsClient, GetDocumentVersionCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
30
|
-
* const client = new WorkDocsClient(config);
|
|
31
|
-
* const command = new GetDocumentVersionCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link GetDocumentVersionCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link GetDocumentVersionCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class GetDocumentVersionCommand extends $Command<
|
|
41
|
-
GetDocumentVersionCommandInput,
|
|
42
|
-
GetDocumentVersionCommandOutput,
|
|
43
|
-
WorkDocsClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: GetDocumentVersionCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<GetDocumentVersionCommandInput, GetDocumentVersionCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "WorkDocsClient";
|
|
68
|
-
const commandName = "GetDocumentVersionCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: GetDocumentVersionRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: GetDocumentVersionResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: GetDocumentVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1GetDocumentVersionCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDocumentVersionCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1GetDocumentVersionCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { GetFolderRequest, GetFolderResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetFolderCommand,
|
|
5
|
-
serializeAws_restJson1GetFolderCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetFolderCommandInput extends GetFolderRequest {}
|
|
21
|
-
export interface GetFolderCommandOutput extends GetFolderResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the metadata of the specified folder.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { WorkDocsClient, GetFolderCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
29
|
-
* // const { WorkDocsClient, GetFolderCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
30
|
-
* const client = new WorkDocsClient(config);
|
|
31
|
-
* const command = new GetFolderCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link GetFolderCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link GetFolderCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class GetFolderCommand extends $Command<
|
|
41
|
-
GetFolderCommandInput,
|
|
42
|
-
GetFolderCommandOutput,
|
|
43
|
-
WorkDocsClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: GetFolderCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<GetFolderCommandInput, GetFolderCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "WorkDocsClient";
|
|
68
|
-
const commandName = "GetFolderCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: GetFolderRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: GetFolderResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: GetFolderCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1GetFolderCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetFolderCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1GetFolderCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { GetFolderPathRequest, GetFolderPathResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetFolderPathCommand,
|
|
5
|
-
serializeAws_restJson1GetFolderPathCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetFolderPathCommandInput extends GetFolderPathRequest {}
|
|
21
|
-
export interface GetFolderPathCommandOutput extends GetFolderPathResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the path information (the hierarchy from the root folder) for the
|
|
25
|
-
* specified folder.</p>
|
|
26
|
-
* <p>By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the
|
|
27
|
-
* requested folder and only includes the IDs of the parent folders in the path. You can
|
|
28
|
-
* limit the maximum number of levels. You can also request the parent folder
|
|
29
|
-
* names.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { WorkDocsClient, GetFolderPathCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
34
|
-
* // const { WorkDocsClient, GetFolderPathCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
35
|
-
* const client = new WorkDocsClient(config);
|
|
36
|
-
* const command = new GetFolderPathCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link GetFolderPathCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link GetFolderPathCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class GetFolderPathCommand extends $Command<
|
|
46
|
-
GetFolderPathCommandInput,
|
|
47
|
-
GetFolderPathCommandOutput,
|
|
48
|
-
WorkDocsClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: GetFolderPathCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<GetFolderPathCommandInput, GetFolderPathCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "WorkDocsClient";
|
|
73
|
-
const commandName = "GetFolderPathCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: GetFolderPathRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: GetFolderPathResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: GetFolderPathCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_restJson1GetFolderPathCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetFolderPathCommandOutput> {
|
|
94
|
-
return deserializeAws_restJson1GetFolderPathCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { GetResourcesRequest, GetResourcesResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1GetResourcesCommand,
|
|
5
|
-
serializeAws_restJson1GetResourcesCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetResourcesCommandInput extends GetResourcesRequest {}
|
|
21
|
-
export interface GetResourcesCommandOutput extends GetResourcesResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves a collection of resources, including folders and documents. The only
|
|
25
|
-
* <code>CollectionType</code> supported is <code>SHARED_WITH_ME</code>.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { WorkDocsClient, GetResourcesCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
30
|
-
* // const { WorkDocsClient, GetResourcesCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
31
|
-
* const client = new WorkDocsClient(config);
|
|
32
|
-
* const command = new GetResourcesCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetResourcesCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetResourcesCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetResourcesCommand extends $Command<
|
|
42
|
-
GetResourcesCommandInput,
|
|
43
|
-
GetResourcesCommandOutput,
|
|
44
|
-
WorkDocsClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetResourcesCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetResourcesCommandInput, GetResourcesCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "WorkDocsClient";
|
|
69
|
-
const commandName = "GetResourcesCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetResourcesRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetResourcesResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: GetResourcesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1GetResourcesCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetResourcesCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1GetResourcesCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { InitiateDocumentVersionUploadRequest, InitiateDocumentVersionUploadResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1InitiateDocumentVersionUploadCommand,
|
|
5
|
-
serializeAws_restJson1InitiateDocumentVersionUploadCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface InitiateDocumentVersionUploadCommandInput extends InitiateDocumentVersionUploadRequest {}
|
|
21
|
-
export interface InitiateDocumentVersionUploadCommandOutput
|
|
22
|
-
extends InitiateDocumentVersionUploadResponse,
|
|
23
|
-
__MetadataBearer {}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* <p>Creates a new document object and version object.</p>
|
|
27
|
-
* <p>The client specifies the parent folder ID and name of the document to upload. The
|
|
28
|
-
* ID is optionally specified when creating a new version of an existing document. This is
|
|
29
|
-
* the first step to upload a document. Next, upload the document to the URL returned from
|
|
30
|
-
* the call, and then call <a>UpdateDocumentVersion</a>.</p>
|
|
31
|
-
* <p>To cancel the document upload, call <a>AbortDocumentVersionUpload</a>.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { WorkDocsClient, InitiateDocumentVersionUploadCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
36
|
-
* // const { WorkDocsClient, InitiateDocumentVersionUploadCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
37
|
-
* const client = new WorkDocsClient(config);
|
|
38
|
-
* const command = new InitiateDocumentVersionUploadCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link InitiateDocumentVersionUploadCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link InitiateDocumentVersionUploadCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class InitiateDocumentVersionUploadCommand extends $Command<
|
|
48
|
-
InitiateDocumentVersionUploadCommandInput,
|
|
49
|
-
InitiateDocumentVersionUploadCommandOutput,
|
|
50
|
-
WorkDocsClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: InitiateDocumentVersionUploadCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<InitiateDocumentVersionUploadCommandInput, InitiateDocumentVersionUploadCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "WorkDocsClient";
|
|
75
|
-
const commandName = "InitiateDocumentVersionUploadCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: InitiateDocumentVersionUploadRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: InitiateDocumentVersionUploadResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: InitiateDocumentVersionUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_restJson1InitiateDocumentVersionUploadCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(
|
|
96
|
-
output: __HttpResponse,
|
|
97
|
-
context: __SerdeContext
|
|
98
|
-
): Promise<InitiateDocumentVersionUploadCommandOutput> {
|
|
99
|
-
return deserializeAws_restJson1InitiateDocumentVersionUploadCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
2
|
-
import { RemoveAllResourcePermissionsRequest } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1RemoveAllResourcePermissionsCommand,
|
|
5
|
-
serializeAws_restJson1RemoveAllResourcePermissionsCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface RemoveAllResourcePermissionsCommandInput extends RemoveAllResourcePermissionsRequest {}
|
|
21
|
-
export interface RemoveAllResourcePermissionsCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Removes all the permissions from the specified resource.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { WorkDocsClient, RemoveAllResourcePermissionsCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
29
|
-
* // const { WorkDocsClient, RemoveAllResourcePermissionsCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
30
|
-
* const client = new WorkDocsClient(config);
|
|
31
|
-
* const command = new RemoveAllResourcePermissionsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link RemoveAllResourcePermissionsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link RemoveAllResourcePermissionsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class RemoveAllResourcePermissionsCommand extends $Command<
|
|
41
|
-
RemoveAllResourcePermissionsCommandInput,
|
|
42
|
-
RemoveAllResourcePermissionsCommandOutput,
|
|
43
|
-
WorkDocsClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: RemoveAllResourcePermissionsCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<RemoveAllResourcePermissionsCommandInput, RemoveAllResourcePermissionsCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "WorkDocsClient";
|
|
68
|
-
const commandName = "RemoveAllResourcePermissionsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: RemoveAllResourcePermissionsRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: RemoveAllResourcePermissionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1RemoveAllResourcePermissionsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(
|
|
89
|
-
output: __HttpResponse,
|
|
90
|
-
context: __SerdeContext
|
|
91
|
-
): Promise<RemoveAllResourcePermissionsCommandOutput> {
|
|
92
|
-
return deserializeAws_restJson1RemoveAllResourcePermissionsCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|