aws-sdk-workdocs 1.42.0 → 1.44.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,8 @@ module Aws::WorkDocs
21
21
  ActivityType = Shapes::StringShape.new(name: 'ActivityType')
22
22
  AddResourcePermissionsRequest = Shapes::StructureShape.new(name: 'AddResourcePermissionsRequest')
23
23
  AddResourcePermissionsResponse = Shapes::StructureShape.new(name: 'AddResourcePermissionsResponse')
24
+ AdditionalResponseFieldType = Shapes::StringShape.new(name: 'AdditionalResponseFieldType')
25
+ AdditionalResponseFieldsList = Shapes::ListShape.new(name: 'AdditionalResponseFieldsList')
24
26
  AuthenticationHeaderType = Shapes::StringShape.new(name: 'AuthenticationHeaderType')
25
27
  BooleanEnumType = Shapes::StringShape.new(name: 'BooleanEnumType')
26
28
  BooleanType = Shapes::BooleanShape.new(name: 'BooleanType')
@@ -33,6 +35,7 @@ module Aws::WorkDocs
33
35
  CommentVisibilityType = Shapes::StringShape.new(name: 'CommentVisibilityType')
34
36
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
35
37
  ConflictingOperationException = Shapes::StructureShape.new(name: 'ConflictingOperationException')
38
+ ContentCategoryType = Shapes::StringShape.new(name: 'ContentCategoryType')
36
39
  CreateCommentRequest = Shapes::StructureShape.new(name: 'CreateCommentRequest')
37
40
  CreateCommentResponse = Shapes::StructureShape.new(name: 'CreateCommentResponse')
38
41
  CreateCustomMetadataRequest = Shapes::StructureShape.new(name: 'CreateCustomMetadataRequest')
@@ -50,6 +53,7 @@ module Aws::WorkDocs
50
53
  CustomMetadataLimitExceededException = Shapes::StructureShape.new(name: 'CustomMetadataLimitExceededException')
51
54
  CustomMetadataMap = Shapes::MapShape.new(name: 'CustomMetadataMap')
52
55
  CustomMetadataValueType = Shapes::StringShape.new(name: 'CustomMetadataValueType')
56
+ DateRangeType = Shapes::StructureShape.new(name: 'DateRangeType')
53
57
  DeactivateUserRequest = Shapes::StructureShape.new(name: 'DeactivateUserRequest')
54
58
  DeactivatingLastSystemUserException = Shapes::StructureShape.new(name: 'DeactivatingLastSystemUserException')
55
59
  DeleteCommentRequest = Shapes::StructureShape.new(name: 'DeleteCommentRequest')
@@ -102,6 +106,7 @@ module Aws::WorkDocs
102
106
  ErrorMessageType = Shapes::StringShape.new(name: 'ErrorMessageType')
103
107
  FailedDependencyException = Shapes::StructureShape.new(name: 'FailedDependencyException')
104
108
  FieldNamesType = Shapes::StringShape.new(name: 'FieldNamesType')
109
+ Filters = Shapes::StructureShape.new(name: 'Filters')
105
110
  FolderContentType = Shapes::StringShape.new(name: 'FolderContentType')
106
111
  FolderMetadata = Shapes::StructureShape.new(name: 'FolderMetadata')
107
112
  FolderMetadataList = Shapes::ListShape.new(name: 'FolderMetadataList')
@@ -133,12 +138,17 @@ module Aws::WorkDocs
133
138
  InvalidCommentOperationException = Shapes::StructureShape.new(name: 'InvalidCommentOperationException')
134
139
  InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
135
140
  InvalidPasswordException = Shapes::StructureShape.new(name: 'InvalidPasswordException')
141
+ LanguageCodeType = Shapes::StringShape.new(name: 'LanguageCodeType')
136
142
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
137
143
  LimitType = Shapes::IntegerShape.new(name: 'LimitType')
138
144
  LocaleType = Shapes::StringShape.new(name: 'LocaleType')
145
+ LongRangeType = Shapes::StructureShape.new(name: 'LongRangeType')
146
+ LongType = Shapes::IntegerShape.new(name: 'LongType')
139
147
  MarkerType = Shapes::StringShape.new(name: 'MarkerType')
140
148
  MessageType = Shapes::StringShape.new(name: 'MessageType')
149
+ NextMarkerType = Shapes::StringShape.new(name: 'NextMarkerType')
141
150
  NotificationOptions = Shapes::StructureShape.new(name: 'NotificationOptions')
151
+ OrderByFieldType = Shapes::StringShape.new(name: 'OrderByFieldType')
142
152
  OrderType = Shapes::StringShape.new(name: 'OrderType')
143
153
  OrganizationUserList = Shapes::ListShape.new(name: 'OrganizationUserList')
144
154
  PageMarkerType = Shapes::StringShape.new(name: 'PageMarkerType')
@@ -150,6 +160,7 @@ module Aws::WorkDocs
150
160
  PositiveSizeType = Shapes::IntegerShape.new(name: 'PositiveSizeType')
151
161
  Principal = Shapes::StructureShape.new(name: 'Principal')
152
162
  PrincipalList = Shapes::ListShape.new(name: 'PrincipalList')
163
+ PrincipalRoleType = Shapes::StringShape.new(name: 'PrincipalRoleType')
153
164
  PrincipalType = Shapes::StringShape.new(name: 'PrincipalType')
154
165
  ProhibitedStateException = Shapes::StructureShape.new(name: 'ProhibitedStateException')
155
166
  RemoveAllResourcePermissionsRequest = Shapes::StructureShape.new(name: 'RemoveAllResourcePermissionsRequest')
@@ -166,11 +177,34 @@ module Aws::WorkDocs
166
177
  ResourceSortType = Shapes::StringShape.new(name: 'ResourceSortType')
167
178
  ResourceStateType = Shapes::StringShape.new(name: 'ResourceStateType')
168
179
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
180
+ ResponseItem = Shapes::StructureShape.new(name: 'ResponseItem')
181
+ ResponseItemType = Shapes::StringShape.new(name: 'ResponseItemType')
182
+ ResponseItemWebUrl = Shapes::StringShape.new(name: 'ResponseItemWebUrl')
183
+ ResponseItemsList = Shapes::ListShape.new(name: 'ResponseItemsList')
169
184
  RestoreDocumentVersionsRequest = Shapes::StructureShape.new(name: 'RestoreDocumentVersionsRequest')
170
185
  RolePermissionType = Shapes::StringShape.new(name: 'RolePermissionType')
171
186
  RoleType = Shapes::StringShape.new(name: 'RoleType')
187
+ SearchAncestorId = Shapes::StringShape.new(name: 'SearchAncestorId')
188
+ SearchAncestorIdList = Shapes::ListShape.new(name: 'SearchAncestorIdList')
189
+ SearchCollectionType = Shapes::StringShape.new(name: 'SearchCollectionType')
190
+ SearchCollectionTypeList = Shapes::ListShape.new(name: 'SearchCollectionTypeList')
191
+ SearchContentCategoryTypeList = Shapes::ListShape.new(name: 'SearchContentCategoryTypeList')
192
+ SearchLabel = Shapes::StringShape.new(name: 'SearchLabel')
193
+ SearchLabelList = Shapes::ListShape.new(name: 'SearchLabelList')
172
194
  SearchMarkerType = Shapes::StringShape.new(name: 'SearchMarkerType')
195
+ SearchPrincipalRoleList = Shapes::ListShape.new(name: 'SearchPrincipalRoleList')
196
+ SearchPrincipalType = Shapes::StructureShape.new(name: 'SearchPrincipalType')
197
+ SearchPrincipalTypeList = Shapes::ListShape.new(name: 'SearchPrincipalTypeList')
198
+ SearchQueryScopeType = Shapes::StringShape.new(name: 'SearchQueryScopeType')
199
+ SearchQueryScopeTypeList = Shapes::ListShape.new(name: 'SearchQueryScopeTypeList')
173
200
  SearchQueryType = Shapes::StringShape.new(name: 'SearchQueryType')
201
+ SearchResourceType = Shapes::StringShape.new(name: 'SearchResourceType')
202
+ SearchResourceTypeList = Shapes::ListShape.new(name: 'SearchResourceTypeList')
203
+ SearchResourcesRequest = Shapes::StructureShape.new(name: 'SearchResourcesRequest')
204
+ SearchResourcesResponse = Shapes::StructureShape.new(name: 'SearchResourcesResponse')
205
+ SearchResultSortList = Shapes::ListShape.new(name: 'SearchResultSortList')
206
+ SearchResultsLimitType = Shapes::IntegerShape.new(name: 'SearchResultsLimitType')
207
+ SearchSortResult = Shapes::StructureShape.new(name: 'SearchSortResult')
174
208
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
175
209
  SharePrincipal = Shapes::StructureShape.new(name: 'SharePrincipal')
176
210
  SharePrincipalList = Shapes::ListShape.new(name: 'SharePrincipalList')
@@ -181,6 +215,7 @@ module Aws::WorkDocs
181
215
  SharedLabels = Shapes::ListShape.new(name: 'SharedLabels')
182
216
  SignedHeaderMap = Shapes::MapShape.new(name: 'SignedHeaderMap')
183
217
  SizeType = Shapes::IntegerShape.new(name: 'SizeType')
218
+ SortOrder = Shapes::StringShape.new(name: 'SortOrder')
184
219
  StorageLimitExceededException = Shapes::StructureShape.new(name: 'StorageLimitExceededException')
185
220
  StorageLimitWillExceedException = Shapes::StructureShape.new(name: 'StorageLimitWillExceedException')
186
221
  StorageRuleType = Shapes::StructureShape.new(name: 'StorageRuleType')
@@ -190,6 +225,7 @@ module Aws::WorkDocs
190
225
  SubscriptionList = Shapes::ListShape.new(name: 'SubscriptionList')
191
226
  SubscriptionProtocolType = Shapes::StringShape.new(name: 'SubscriptionProtocolType')
192
227
  SubscriptionType = Shapes::StringShape.new(name: 'SubscriptionType')
228
+ TextLocaleTypeList = Shapes::ListShape.new(name: 'TextLocaleTypeList')
193
229
  TimeZoneIdType = Shapes::StringShape.new(name: 'TimeZoneIdType')
194
230
  TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
195
231
  TooManyLabelsException = Shapes::StructureShape.new(name: 'TooManyLabelsException')
@@ -248,6 +284,8 @@ module Aws::WorkDocs
248
284
  AddResourcePermissionsResponse.add_member(:share_results, Shapes::ShapeRef.new(shape: ShareResultsList, location_name: "ShareResults"))
249
285
  AddResourcePermissionsResponse.struct_class = Types::AddResourcePermissionsResponse
250
286
 
287
+ AdditionalResponseFieldsList.member = Shapes::ShapeRef.new(shape: AdditionalResponseFieldType)
288
+
251
289
  Comment.add_member(:comment_id, Shapes::ShapeRef.new(shape: CommentIdType, required: true, location_name: "CommentId"))
252
290
  Comment.add_member(:parent_id, Shapes::ShapeRef.new(shape: CommentIdType, location_name: "ParentId"))
253
291
  Comment.add_member(:thread_id, Shapes::ShapeRef.new(shape: CommentIdType, location_name: "ThreadId"))
@@ -266,6 +304,7 @@ module Aws::WorkDocs
266
304
  CommentMetadata.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: TimestampType, location_name: "CreatedTimestamp"))
267
305
  CommentMetadata.add_member(:comment_status, Shapes::ShapeRef.new(shape: CommentStatusType, location_name: "CommentStatus"))
268
306
  CommentMetadata.add_member(:recipient_id, Shapes::ShapeRef.new(shape: IdType, location_name: "RecipientId"))
307
+ CommentMetadata.add_member(:contributor_id, Shapes::ShapeRef.new(shape: IdType, location_name: "ContributorId"))
269
308
  CommentMetadata.struct_class = Types::CommentMetadata
270
309
 
271
310
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
@@ -341,6 +380,10 @@ module Aws::WorkDocs
341
380
  CustomMetadataMap.key = Shapes::ShapeRef.new(shape: CustomMetadataKeyType)
342
381
  CustomMetadataMap.value = Shapes::ShapeRef.new(shape: CustomMetadataValueType)
343
382
 
383
+ DateRangeType.add_member(:start_value, Shapes::ShapeRef.new(shape: TimestampType, location_name: "StartValue"))
384
+ DateRangeType.add_member(:end_value, Shapes::ShapeRef.new(shape: TimestampType, location_name: "EndValue"))
385
+ DateRangeType.struct_class = Types::DateRangeType
386
+
344
387
  DeactivateUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: IdType, required: true, location: "uri", location_name: "UserId"))
345
388
  DeactivateUserRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
346
389
  DeactivateUserRequest.struct_class = Types::DeactivateUserRequest
@@ -560,6 +603,18 @@ module Aws::WorkDocs
560
603
  FailedDependencyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
561
604
  FailedDependencyException.struct_class = Types::FailedDependencyException
562
605
 
606
+ Filters.add_member(:text_locales, Shapes::ShapeRef.new(shape: TextLocaleTypeList, location_name: "TextLocales"))
607
+ Filters.add_member(:content_categories, Shapes::ShapeRef.new(shape: SearchContentCategoryTypeList, location_name: "ContentCategories"))
608
+ Filters.add_member(:resource_types, Shapes::ShapeRef.new(shape: SearchResourceTypeList, location_name: "ResourceTypes"))
609
+ Filters.add_member(:labels, Shapes::ShapeRef.new(shape: SearchLabelList, location_name: "Labels"))
610
+ Filters.add_member(:principals, Shapes::ShapeRef.new(shape: SearchPrincipalTypeList, location_name: "Principals"))
611
+ Filters.add_member(:ancestor_ids, Shapes::ShapeRef.new(shape: SearchAncestorIdList, location_name: "AncestorIds"))
612
+ Filters.add_member(:search_collection_types, Shapes::ShapeRef.new(shape: SearchCollectionTypeList, location_name: "SearchCollectionTypes"))
613
+ Filters.add_member(:size_range, Shapes::ShapeRef.new(shape: LongRangeType, location_name: "SizeRange"))
614
+ Filters.add_member(:created_range, Shapes::ShapeRef.new(shape: DateRangeType, location_name: "CreatedRange"))
615
+ Filters.add_member(:modified_range, Shapes::ShapeRef.new(shape: DateRangeType, location_name: "ModifiedRange"))
616
+ Filters.struct_class = Types::Filters
617
+
563
618
  FolderMetadata.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdType, location_name: "Id"))
564
619
  FolderMetadata.add_member(:name, Shapes::ShapeRef.new(shape: ResourceNameType, location_name: "Name"))
565
620
  FolderMetadata.add_member(:creator_id, Shapes::ShapeRef.new(shape: IdType, location_name: "CreatorId"))
@@ -680,6 +735,10 @@ module Aws::WorkDocs
680
735
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
681
736
  LimitExceededException.struct_class = Types::LimitExceededException
682
737
 
738
+ LongRangeType.add_member(:start_value, Shapes::ShapeRef.new(shape: LongType, location_name: "StartValue"))
739
+ LongRangeType.add_member(:end_value, Shapes::ShapeRef.new(shape: LongType, location_name: "EndValue"))
740
+ LongRangeType.struct_class = Types::LongRangeType
741
+
683
742
  NotificationOptions.add_member(:send_email, Shapes::ShapeRef.new(shape: BooleanType, location_name: "SendEmail"))
684
743
  NotificationOptions.add_member(:email_message, Shapes::ShapeRef.new(shape: MessageType, location_name: "EmailMessage"))
685
744
  NotificationOptions.struct_class = Types::NotificationOptions
@@ -740,10 +799,61 @@ module Aws::WorkDocs
740
799
 
741
800
  ResourcePathComponentList.member = Shapes::ShapeRef.new(shape: ResourcePathComponent)
742
801
 
802
+ ResponseItem.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResponseItemType, location_name: "ResourceType"))
803
+ ResponseItem.add_member(:web_url, Shapes::ShapeRef.new(shape: ResponseItemWebUrl, location_name: "WebUrl"))
804
+ ResponseItem.add_member(:document_metadata, Shapes::ShapeRef.new(shape: DocumentMetadata, location_name: "DocumentMetadata"))
805
+ ResponseItem.add_member(:folder_metadata, Shapes::ShapeRef.new(shape: FolderMetadata, location_name: "FolderMetadata"))
806
+ ResponseItem.add_member(:comment_metadata, Shapes::ShapeRef.new(shape: CommentMetadata, location_name: "CommentMetadata"))
807
+ ResponseItem.add_member(:document_version_metadata, Shapes::ShapeRef.new(shape: DocumentVersionMetadata, location_name: "DocumentVersionMetadata"))
808
+ ResponseItem.struct_class = Types::ResponseItem
809
+
810
+ ResponseItemsList.member = Shapes::ShapeRef.new(shape: ResponseItem)
811
+
743
812
  RestoreDocumentVersionsRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
744
813
  RestoreDocumentVersionsRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: ResourceIdType, required: true, location: "uri", location_name: "DocumentId"))
745
814
  RestoreDocumentVersionsRequest.struct_class = Types::RestoreDocumentVersionsRequest
746
815
 
816
+ SearchAncestorIdList.member = Shapes::ShapeRef.new(shape: SearchAncestorId)
817
+
818
+ SearchCollectionTypeList.member = Shapes::ShapeRef.new(shape: SearchCollectionType)
819
+
820
+ SearchContentCategoryTypeList.member = Shapes::ShapeRef.new(shape: ContentCategoryType)
821
+
822
+ SearchLabelList.member = Shapes::ShapeRef.new(shape: SearchLabel)
823
+
824
+ SearchPrincipalRoleList.member = Shapes::ShapeRef.new(shape: PrincipalRoleType)
825
+
826
+ SearchPrincipalType.add_member(:id, Shapes::ShapeRef.new(shape: IdType, required: true, location_name: "Id"))
827
+ SearchPrincipalType.add_member(:roles, Shapes::ShapeRef.new(shape: SearchPrincipalRoleList, location_name: "Roles"))
828
+ SearchPrincipalType.struct_class = Types::SearchPrincipalType
829
+
830
+ SearchPrincipalTypeList.member = Shapes::ShapeRef.new(shape: SearchPrincipalType)
831
+
832
+ SearchQueryScopeTypeList.member = Shapes::ShapeRef.new(shape: SearchQueryScopeType)
833
+
834
+ SearchResourceTypeList.member = Shapes::ShapeRef.new(shape: SearchResourceType)
835
+
836
+ SearchResourcesRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
837
+ SearchResourcesRequest.add_member(:query_text, Shapes::ShapeRef.new(shape: SearchQueryType, location_name: "QueryText"))
838
+ SearchResourcesRequest.add_member(:query_scopes, Shapes::ShapeRef.new(shape: SearchQueryScopeTypeList, location_name: "QueryScopes"))
839
+ SearchResourcesRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: IdType, location_name: "OrganizationId"))
840
+ SearchResourcesRequest.add_member(:additional_response_fields, Shapes::ShapeRef.new(shape: AdditionalResponseFieldsList, location_name: "AdditionalResponseFields"))
841
+ SearchResourcesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
842
+ SearchResourcesRequest.add_member(:order_by, Shapes::ShapeRef.new(shape: SearchResultSortList, location_name: "OrderBy"))
843
+ SearchResourcesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: SearchResultsLimitType, location_name: "Limit"))
844
+ SearchResourcesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: NextMarkerType, location_name: "Marker"))
845
+ SearchResourcesRequest.struct_class = Types::SearchResourcesRequest
846
+
847
+ SearchResourcesResponse.add_member(:items, Shapes::ShapeRef.new(shape: ResponseItemsList, location_name: "Items"))
848
+ SearchResourcesResponse.add_member(:marker, Shapes::ShapeRef.new(shape: NextMarkerType, location_name: "Marker"))
849
+ SearchResourcesResponse.struct_class = Types::SearchResourcesResponse
850
+
851
+ SearchResultSortList.member = Shapes::ShapeRef.new(shape: SearchSortResult)
852
+
853
+ SearchSortResult.add_member(:field, Shapes::ShapeRef.new(shape: OrderByFieldType, location_name: "Field"))
854
+ SearchSortResult.add_member(:order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "Order"))
855
+ SearchSortResult.struct_class = Types::SearchSortResult
856
+
747
857
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
748
858
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
749
859
 
@@ -786,6 +896,8 @@ module Aws::WorkDocs
786
896
 
787
897
  SubscriptionList.member = Shapes::ShapeRef.new(shape: Subscription)
788
898
 
899
+ TextLocaleTypeList.member = Shapes::ShapeRef.new(shape: LanguageCodeType)
900
+
789
901
  TooManyLabelsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "Message"))
790
902
  TooManyLabelsException.struct_class = Types::TooManyLabelsException
791
903
 
@@ -1170,6 +1282,12 @@ module Aws::WorkDocs
1170
1282
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1171
1283
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1172
1284
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1285
+ o[:pager] = Aws::Pager.new(
1286
+ limit_key: "limit",
1287
+ tokens: {
1288
+ "marker" => "marker"
1289
+ }
1290
+ )
1173
1291
  end)
1174
1292
 
1175
1293
  api.add_operation(:describe_comments, Seahorse::Model::Operation.new.tap do |o|
@@ -1184,6 +1302,12 @@ module Aws::WorkDocs
1184
1302
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1185
1303
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1186
1304
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1305
+ o[:pager] = Aws::Pager.new(
1306
+ limit_key: "limit",
1307
+ tokens: {
1308
+ "marker" => "marker"
1309
+ }
1310
+ )
1187
1311
  end)
1188
1312
 
1189
1313
  api.add_operation(:describe_document_versions, Seahorse::Model::Operation.new.tap do |o|
@@ -1238,6 +1362,12 @@ module Aws::WorkDocs
1238
1362
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1239
1363
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1240
1364
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1365
+ o[:pager] = Aws::Pager.new(
1366
+ limit_key: "limit",
1367
+ tokens: {
1368
+ "marker" => "marker"
1369
+ }
1370
+ )
1241
1371
  end)
1242
1372
 
1243
1373
  api.add_operation(:describe_notification_subscriptions, Seahorse::Model::Operation.new.tap do |o|
@@ -1249,6 +1379,12 @@ module Aws::WorkDocs
1249
1379
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1250
1380
  o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
1251
1381
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1382
+ o[:pager] = Aws::Pager.new(
1383
+ limit_key: "limit",
1384
+ tokens: {
1385
+ "marker" => "marker"
1386
+ }
1387
+ )
1252
1388
  end)
1253
1389
 
1254
1390
  api.add_operation(:describe_resource_permissions, Seahorse::Model::Operation.new.tap do |o|
@@ -1262,6 +1398,12 @@ module Aws::WorkDocs
1262
1398
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1263
1399
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1264
1400
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1401
+ o[:pager] = Aws::Pager.new(
1402
+ limit_key: "limit",
1403
+ tokens: {
1404
+ "marker" => "marker"
1405
+ }
1406
+ )
1265
1407
  end)
1266
1408
 
1267
1409
  api.add_operation(:describe_root_folders, Seahorse::Model::Operation.new.tap do |o|
@@ -1275,6 +1417,12 @@ module Aws::WorkDocs
1275
1417
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1276
1418
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1277
1419
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1420
+ o[:pager] = Aws::Pager.new(
1421
+ limit_key: "limit",
1422
+ tokens: {
1423
+ "marker" => "marker"
1424
+ }
1425
+ )
1278
1426
  end)
1279
1427
 
1280
1428
  api.add_operation(:describe_users, Seahorse::Model::Operation.new.tap do |o|
@@ -1414,6 +1562,7 @@ module Aws::WorkDocs
1414
1562
  o.errors << Shapes::ShapeRef.new(shape: DraftUploadOutOfSyncException)
1415
1563
  o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyCheckedOutException)
1416
1564
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
1565
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1417
1566
  end)
1418
1567
 
1419
1568
  api.add_operation(:remove_all_resource_permissions, Seahorse::Model::Operation.new.tap do |o|
@@ -1456,6 +1605,24 @@ module Aws::WorkDocs
1456
1605
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
1457
1606
  end)
1458
1607
 
1608
+ api.add_operation(:search_resources, Seahorse::Model::Operation.new.tap do |o|
1609
+ o.name = "SearchResources"
1610
+ o.http_method = "POST"
1611
+ o.http_request_uri = "/api/v1/search"
1612
+ o.input = Shapes::ShapeRef.new(shape: SearchResourcesRequest)
1613
+ o.output = Shapes::ShapeRef.new(shape: SearchResourcesResponse)
1614
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1615
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1616
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
1617
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1618
+ o[:pager] = Aws::Pager.new(
1619
+ limit_key: "limit",
1620
+ tokens: {
1621
+ "marker" => "marker"
1622
+ }
1623
+ )
1624
+ end)
1625
+
1459
1626
  api.add_operation(:update_document, Seahorse::Model::Operation.new.tap do |o|
1460
1627
  o.name = "UpdateDocument"
1461
1628
  o.http_method = "PATCH"
@@ -14,36 +14,39 @@ module Aws::WorkDocs
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://workdocs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -557,6 +557,20 @@ module Aws::WorkDocs
557
557
  end
558
558
  end
559
559
 
560
+ class SearchResources
561
+ def self.build(context)
562
+ unless context.config.regional_endpoint
563
+ endpoint = context.config.endpoint.to_s
564
+ end
565
+ Aws::WorkDocs::EndpointParameters.new(
566
+ region: context.config.region,
567
+ use_dual_stack: context.config.use_dualstack_endpoint,
568
+ use_fips: context.config.use_fips_endpoint,
569
+ endpoint: endpoint,
570
+ )
571
+ end
572
+ end
573
+
560
574
  class UpdateDocument
561
575
  def self.build(context)
562
576
  unless context.config.regional_endpoint
@@ -134,6 +134,8 @@ module Aws::WorkDocs
134
134
  Aws::WorkDocs::Endpoints::RemoveResourcePermission.build(context)
135
135
  when :restore_document_versions
136
136
  Aws::WorkDocs::Endpoints::RestoreDocumentVersions.build(context)
137
+ when :search_resources
138
+ Aws::WorkDocs::Endpoints::SearchResources.build(context)
137
139
  when :update_document
138
140
  Aws::WorkDocs::Endpoints::UpdateDocument.build(context)
139
141
  when :update_document_version