aws-sdk-workdocs 1.39.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 267a8db7dcbed7175d1c9f7c71182e1f7b77a8cd94a2bc3931057a8f410e0d31
4
- data.tar.gz: 1faaa4988d88016be4c2ae1a86602eee6371000d138302433fbe562ca339a9fb
3
+ metadata.gz: fb3755c2b0e1596753305f33cadb44e4335392016055ec67faf0baa40b972f03
4
+ data.tar.gz: b5dcae499206eb19c044c58ee9db7ca6a839fff55ecf075be3a1354d3fbc6fe8
5
5
  SHA512:
6
- metadata.gz: bc6e803a74fcb1b917f61263677da0bdbdae3b44f92328e03a67ec2e604cfc5c7d7399064aebabeb337c01275cf804d766156ecb835a9527e6bcae4ab6127a76
7
- data.tar.gz: 0b48f7ff7520d4ecf1f19630cddc0a103df538d995429b6bdd50adceb2b4ab0d0a3bbbd3a34967b15d2f313e16a8ed000af32f97befb66d60f51ab74fc224ee6
6
+ metadata.gz: 7b9532b5799de86e2b1acd4a44572cce6b8846db75eb4f06774ab342097d544401af027f1cd31fb71cec6d99d68b3f8f057b4545d28502736c04ca71db81be2e
7
+ data.tar.gz: 367cd6dfa942e67b411c4de60cc4d7a175c945f5d9198663a12b7c9e318fe6f3f89d9d963d931cd35c59b7cfd4a8d6b915dbc15a9bb72a9161aff133be971e90
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.41.0 (2022-11-14)
5
+ ------------------
6
+
7
+ * Feature - Added 2 new document related operations, DeleteDocumentVersion and RestoreDocumentVersions.
8
+
9
+ 1.40.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.39.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.41.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:workdocs)
@@ -79,8 +79,9 @@ module Aws::WorkDocs
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::WorkDocs::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::WorkDocs
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::WorkDocs
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::WorkDocs::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::WorkDocs::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -701,12 +718,12 @@ module Aws::WorkDocs
701
718
  # endpoint receives a confirmation message, and must confirm the
702
719
  # subscription.
703
720
  #
704
- # For more information, see [Subscribe to Notifications][1] in the
705
- # *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*.
706
723
  #
707
724
  #
708
725
  #
709
- # [1]: https://docs.aws.amazon.com/workdocs/latest/developerguide/subscribe-notifications.html
726
+ # [1]: https://docs.aws.amazon.com/workdocs/latest/developerguide/manage-notifications.html
710
727
  #
711
728
  # @option params [required, String] :organization_id
712
729
  # The ID of the organization.
@@ -731,7 +748,7 @@ module Aws::WorkDocs
731
748
  # resp = client.create_notification_subscription({
732
749
  # organization_id: "IdType", # required
733
750
  # endpoint: "SubscriptionEndPointType", # required
734
- # protocol: "HTTPS", # required, accepts HTTPS
751
+ # protocol: "HTTPS", # required, accepts HTTPS, SQS
735
752
  # subscription_type: "ALL", # required, accepts ALL
736
753
  # })
737
754
  #
@@ -739,7 +756,7 @@ module Aws::WorkDocs
739
756
  #
740
757
  # resp.subscription.subscription_id #=> String
741
758
  # resp.subscription.end_point #=> String
742
- # resp.subscription.protocol #=> String, one of "HTTPS"
759
+ # resp.subscription.protocol #=> String, one of "HTTPS", "SQS"
743
760
  #
744
761
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription AWS API Documentation
745
762
  #
@@ -964,6 +981,43 @@ module Aws::WorkDocs
964
981
  req.send_request(options)
965
982
  end
966
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
+
967
1021
  # Permanently deletes the specified folder and its contents.
968
1022
  #
969
1023
  # @option params [String] :authentication_token
@@ -1168,7 +1222,7 @@ module Aws::WorkDocs
1168
1222
  # user_id: "IdType",
1169
1223
  # include_indirect_activities: false,
1170
1224
  # limit: 1,
1171
- # marker: "MarkerType",
1225
+ # marker: "SearchMarkerType",
1172
1226
  # })
1173
1227
  #
1174
1228
  # @example Response structure
@@ -1579,7 +1633,7 @@ module Aws::WorkDocs
1579
1633
  # resp.subscriptions #=> Array
1580
1634
  # resp.subscriptions[0].subscription_id #=> String
1581
1635
  # resp.subscriptions[0].end_point #=> String
1582
- # resp.subscriptions[0].protocol #=> String, one of "HTTPS"
1636
+ # resp.subscriptions[0].protocol #=> String, one of "HTTPS", "SQS"
1583
1637
  # resp.marker #=> String
1584
1638
  #
1585
1639
  # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions AWS API Documentation
@@ -1725,7 +1779,28 @@ module Aws::WorkDocs
1725
1779
  # The IDs of the users.
1726
1780
  #
1727
1781
  # @option params [String] :query
1728
- # 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
1729
1804
  #
1730
1805
  # @option params [String] :include
1731
1806
  # The state of the users. Specify "ALL" to include inactive users.
@@ -2260,7 +2335,7 @@ module Aws::WorkDocs
2260
2335
  # @option params [Integer] :document_size_in_bytes
2261
2336
  # The size of the document, in bytes.
2262
2337
  #
2263
- # @option params [required, String] :parent_folder_id
2338
+ # @option params [String] :parent_folder_id
2264
2339
  # The ID of the parent folder.
2265
2340
  #
2266
2341
  # @return [Types::InitiateDocumentVersionUploadResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2278,7 +2353,7 @@ module Aws::WorkDocs
2278
2353
  # content_modified_timestamp: Time.now,
2279
2354
  # content_type: "DocumentContentType",
2280
2355
  # document_size_in_bytes: 1,
2281
- # parent_folder_id: "ResourceIdType", # required
2356
+ # parent_folder_id: "ResourceIdType",
2282
2357
  # })
2283
2358
  #
2284
2359
  # @example Response structure
@@ -2382,6 +2457,33 @@ module Aws::WorkDocs
2382
2457
  req.send_request(options)
2383
2458
  end
2384
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
+
2385
2487
  # Updates the specified attributes of a document. The user must have
2386
2488
  # access to both the document and its parent folder, if applicable.
2387
2489
  #
@@ -2600,7 +2702,7 @@ module Aws::WorkDocs
2600
2702
  params: params,
2601
2703
  config: config)
2602
2704
  context[:gem_name] = 'aws-sdk-workdocs'
2603
- context[:gem_version] = '1.39.0'
2705
+ context[:gem_version] = '1.41.0'
2604
2706
  Seahorse::Client::Request.new(handlers, context)
2605
2707
  end
2606
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: MarkerType, location: "querystring", location_name: "marker"))
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: MarkerType, location_name: "Marker"))
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, required: true, location_name: "ParentFolderId"))
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)
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::WorkDocs
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::WorkDocs
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ 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
+ dXJlZCBlbmRwb2ludCBkb2VzIG5vdCBoYXZlIGEgRklQUyBjb21wbGlhbn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