aws-sdk-workdocs 1.43.0 → 1.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-workdocs/client.rb +195 -1
- data/lib/aws-sdk-workdocs/client_api.rb +167 -0
- data/lib/aws-sdk-workdocs/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-workdocs/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-workdocs/endpoints.rb +14 -0
- data/lib/aws-sdk-workdocs/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-workdocs/types.rb +271 -13
- data/lib/aws-sdk-workdocs.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d69fdba94924c74c7bc8178d4229e01b24711ebe7bdb9813eebe92fd52b6ce
|
4
|
+
data.tar.gz: 0d091d824827f9659778ecdfdb14bbb493fb2d55813758bef10981f7f21f7118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c13927df21c5f6d5b09cf126157bcb73ce1f4b62e1914b68067239d8f8f536de20abdd7b7107946bc969a993fabb93549d3077166371ec554f7094946c6c02e3
|
7
|
+
data.tar.gz: fc3dabc866a6e7253e8b314cc069bfad07fe50248c1881943dec5eacd10c6526352e3cfd6b47af64e2db9248e41042c968f1f0cdde643f89482868e45b2e7678
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.45.0 (2023-05-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.44.0 (2023-03-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds a new API, SearchResources, which enable users to search through metadata and content of folders, documents, document versions and comments in a WorkDocs site.
|
13
|
+
|
4
14
|
1.43.0 (2023-02-09)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.45.0
|
@@ -275,6 +275,11 @@ module Aws::WorkDocs
|
|
275
275
|
# in the future.
|
276
276
|
#
|
277
277
|
#
|
278
|
+
# @option options [String] :sdk_ua_app_id
|
279
|
+
# A unique and opaque application ID that is appended to the
|
280
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
281
|
+
# maximum length of 50.
|
282
|
+
#
|
278
283
|
# @option options [String] :secret_access_key
|
279
284
|
#
|
280
285
|
# @option options [String] :session_token
|
@@ -1212,6 +1217,8 @@ module Aws::WorkDocs
|
|
1212
1217
|
# * {Types::DescribeActivitiesResponse#user_activities #user_activities} => Array<Types::Activity>
|
1213
1218
|
# * {Types::DescribeActivitiesResponse#marker #marker} => String
|
1214
1219
|
#
|
1220
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1221
|
+
#
|
1215
1222
|
# @example Request syntax with placeholder values
|
1216
1223
|
#
|
1217
1224
|
# resp = client.describe_activities({
|
@@ -1291,6 +1298,7 @@ module Aws::WorkDocs
|
|
1291
1298
|
# resp.user_activities[0].comment_metadata.created_timestamp #=> Time
|
1292
1299
|
# resp.user_activities[0].comment_metadata.comment_status #=> String, one of "DRAFT", "PUBLISHED", "DELETED"
|
1293
1300
|
# resp.user_activities[0].comment_metadata.recipient_id #=> String
|
1301
|
+
# resp.user_activities[0].comment_metadata.contributor_id #=> String
|
1294
1302
|
# resp.marker #=> String
|
1295
1303
|
#
|
1296
1304
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeActivities AWS API Documentation
|
@@ -1326,6 +1334,8 @@ module Aws::WorkDocs
|
|
1326
1334
|
# * {Types::DescribeCommentsResponse#comments #comments} => Array<Types::Comment>
|
1327
1335
|
# * {Types::DescribeCommentsResponse#marker #marker} => String
|
1328
1336
|
#
|
1337
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1338
|
+
#
|
1329
1339
|
# @example Request syntax with placeholder values
|
1330
1340
|
#
|
1331
1341
|
# resp = client.describe_comments({
|
@@ -1579,6 +1589,8 @@ module Aws::WorkDocs
|
|
1579
1589
|
# * {Types::DescribeGroupsResponse#groups #groups} => Array<Types::GroupMetadata>
|
1580
1590
|
# * {Types::DescribeGroupsResponse#marker #marker} => String
|
1581
1591
|
#
|
1592
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1593
|
+
#
|
1582
1594
|
# @example Request syntax with placeholder values
|
1583
1595
|
#
|
1584
1596
|
# resp = client.describe_groups({
|
@@ -1622,6 +1634,8 @@ module Aws::WorkDocs
|
|
1622
1634
|
# * {Types::DescribeNotificationSubscriptionsResponse#subscriptions #subscriptions} => Array<Types::Subscription>
|
1623
1635
|
# * {Types::DescribeNotificationSubscriptionsResponse#marker #marker} => String
|
1624
1636
|
#
|
1637
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1638
|
+
#
|
1625
1639
|
# @example Request syntax with placeholder values
|
1626
1640
|
#
|
1627
1641
|
# resp = client.describe_notification_subscriptions({
|
@@ -1671,6 +1685,8 @@ module Aws::WorkDocs
|
|
1671
1685
|
# * {Types::DescribeResourcePermissionsResponse#principals #principals} => Array<Types::Principal>
|
1672
1686
|
# * {Types::DescribeResourcePermissionsResponse#marker #marker} => String
|
1673
1687
|
#
|
1688
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1689
|
+
#
|
1674
1690
|
# @example Request syntax with placeholder values
|
1675
1691
|
#
|
1676
1692
|
# resp = client.describe_resource_permissions({
|
@@ -1729,6 +1745,8 @@ module Aws::WorkDocs
|
|
1729
1745
|
# * {Types::DescribeRootFoldersResponse#folders #folders} => Array<Types::FolderMetadata>
|
1730
1746
|
# * {Types::DescribeRootFoldersResponse#marker #marker} => String
|
1731
1747
|
#
|
1748
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1749
|
+
#
|
1732
1750
|
# @example Request syntax with placeholder values
|
1733
1751
|
#
|
1734
1752
|
# resp = client.describe_root_folders({
|
@@ -2486,6 +2504,182 @@ module Aws::WorkDocs
|
|
2486
2504
|
req.send_request(options)
|
2487
2505
|
end
|
2488
2506
|
|
2507
|
+
# Searches metadata and the content of folders, documents, document
|
2508
|
+
# versions, and comments.
|
2509
|
+
#
|
2510
|
+
# @option params [String] :authentication_token
|
2511
|
+
# Amazon WorkDocs authentication token. Not required when using Amazon
|
2512
|
+
# Web Services administrator credentials to access the API.
|
2513
|
+
#
|
2514
|
+
# @option params [String] :query_text
|
2515
|
+
# The String to search for. Searches across different text fields based
|
2516
|
+
# on request parameters. Use double quotes around the query string for
|
2517
|
+
# exact phrase matches.
|
2518
|
+
#
|
2519
|
+
# @option params [Array<String>] :query_scopes
|
2520
|
+
# Filter based on the text field type. A Folder has only a name and no
|
2521
|
+
# content. A Comment has only content and no name. A Document or
|
2522
|
+
# Document Version has a name and content
|
2523
|
+
#
|
2524
|
+
# @option params [String] :organization_id
|
2525
|
+
# Filters based on the resource owner OrgId. This is a mandatory
|
2526
|
+
# parameter when using Admin SigV4 credentials.
|
2527
|
+
#
|
2528
|
+
# @option params [Array<String>] :additional_response_fields
|
2529
|
+
# A list of attributes to include in the response. Used to request
|
2530
|
+
# fields that are not normally returned in a standard response.
|
2531
|
+
#
|
2532
|
+
# @option params [Types::Filters] :filters
|
2533
|
+
# Filters results based on entity metadata.
|
2534
|
+
#
|
2535
|
+
# @option params [Array<Types::SearchSortResult>] :order_by
|
2536
|
+
# Order by results in one or more categories.
|
2537
|
+
#
|
2538
|
+
# @option params [Integer] :limit
|
2539
|
+
# Max results count per page.
|
2540
|
+
#
|
2541
|
+
# @option params [String] :marker
|
2542
|
+
# The marker for the next set of results.
|
2543
|
+
#
|
2544
|
+
# @return [Types::SearchResourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2545
|
+
#
|
2546
|
+
# * {Types::SearchResourcesResponse#items #items} => Array<Types::ResponseItem>
|
2547
|
+
# * {Types::SearchResourcesResponse#marker #marker} => String
|
2548
|
+
#
|
2549
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2550
|
+
#
|
2551
|
+
# @example Request syntax with placeholder values
|
2552
|
+
#
|
2553
|
+
# resp = client.search_resources({
|
2554
|
+
# authentication_token: "AuthenticationHeaderType",
|
2555
|
+
# query_text: "SearchQueryType",
|
2556
|
+
# query_scopes: ["NAME"], # accepts NAME, CONTENT
|
2557
|
+
# organization_id: "IdType",
|
2558
|
+
# additional_response_fields: ["WEBURL"], # accepts WEBURL
|
2559
|
+
# filters: {
|
2560
|
+
# text_locales: ["AR"], # accepts AR, BG, BN, DA, DE, CS, EL, EN, ES, FA, FI, FR, HI, HU, ID, IT, JA, KO, LT, LV, NL, NO, PT, RO, RU, SV, SW, TH, TR, ZH, DEFAULT
|
2561
|
+
# content_categories: ["IMAGE"], # accepts IMAGE, DOCUMENT, PDF, SPREADSHEET, PRESENTATION, AUDIO, VIDEO, SOURCE_CODE, OTHER
|
2562
|
+
# resource_types: ["FOLDER"], # accepts FOLDER, DOCUMENT, COMMENT, DOCUMENT_VERSION
|
2563
|
+
# labels: ["SearchLabel"],
|
2564
|
+
# principals: [
|
2565
|
+
# {
|
2566
|
+
# id: "IdType", # required
|
2567
|
+
# roles: ["VIEWER"], # accepts VIEWER, CONTRIBUTOR, OWNER, COOWNER
|
2568
|
+
# },
|
2569
|
+
# ],
|
2570
|
+
# ancestor_ids: ["SearchAncestorId"],
|
2571
|
+
# search_collection_types: ["OWNED"], # accepts OWNED, SHARED_WITH_ME
|
2572
|
+
# size_range: {
|
2573
|
+
# start_value: 1,
|
2574
|
+
# end_value: 1,
|
2575
|
+
# },
|
2576
|
+
# created_range: {
|
2577
|
+
# start_value: Time.now,
|
2578
|
+
# end_value: Time.now,
|
2579
|
+
# },
|
2580
|
+
# modified_range: {
|
2581
|
+
# start_value: Time.now,
|
2582
|
+
# end_value: Time.now,
|
2583
|
+
# },
|
2584
|
+
# },
|
2585
|
+
# order_by: [
|
2586
|
+
# {
|
2587
|
+
# field: "RELEVANCE", # accepts RELEVANCE, NAME, SIZE, CREATED_TIMESTAMP, MODIFIED_TIMESTAMP
|
2588
|
+
# order: "ASC", # accepts ASC, DESC
|
2589
|
+
# },
|
2590
|
+
# ],
|
2591
|
+
# limit: 1,
|
2592
|
+
# marker: "NextMarkerType",
|
2593
|
+
# })
|
2594
|
+
#
|
2595
|
+
# @example Response structure
|
2596
|
+
#
|
2597
|
+
# resp.items #=> Array
|
2598
|
+
# resp.items[0].resource_type #=> String, one of "DOCUMENT", "FOLDER", "COMMENT", "DOCUMENT_VERSION"
|
2599
|
+
# resp.items[0].web_url #=> String
|
2600
|
+
# resp.items[0].document_metadata.id #=> String
|
2601
|
+
# resp.items[0].document_metadata.creator_id #=> String
|
2602
|
+
# resp.items[0].document_metadata.parent_folder_id #=> String
|
2603
|
+
# resp.items[0].document_metadata.created_timestamp #=> Time
|
2604
|
+
# resp.items[0].document_metadata.modified_timestamp #=> Time
|
2605
|
+
# resp.items[0].document_metadata.latest_version_metadata.id #=> String
|
2606
|
+
# resp.items[0].document_metadata.latest_version_metadata.name #=> String
|
2607
|
+
# resp.items[0].document_metadata.latest_version_metadata.content_type #=> String
|
2608
|
+
# resp.items[0].document_metadata.latest_version_metadata.size #=> Integer
|
2609
|
+
# resp.items[0].document_metadata.latest_version_metadata.signature #=> String
|
2610
|
+
# resp.items[0].document_metadata.latest_version_metadata.status #=> String, one of "INITIALIZED", "ACTIVE"
|
2611
|
+
# resp.items[0].document_metadata.latest_version_metadata.created_timestamp #=> Time
|
2612
|
+
# resp.items[0].document_metadata.latest_version_metadata.modified_timestamp #=> Time
|
2613
|
+
# resp.items[0].document_metadata.latest_version_metadata.content_created_timestamp #=> Time
|
2614
|
+
# resp.items[0].document_metadata.latest_version_metadata.content_modified_timestamp #=> Time
|
2615
|
+
# resp.items[0].document_metadata.latest_version_metadata.creator_id #=> String
|
2616
|
+
# resp.items[0].document_metadata.latest_version_metadata.thumbnail #=> Hash
|
2617
|
+
# resp.items[0].document_metadata.latest_version_metadata.thumbnail["DocumentThumbnailType"] #=> String
|
2618
|
+
# resp.items[0].document_metadata.latest_version_metadata.source #=> Hash
|
2619
|
+
# resp.items[0].document_metadata.latest_version_metadata.source["DocumentSourceType"] #=> String
|
2620
|
+
# resp.items[0].document_metadata.resource_state #=> String, one of "ACTIVE", "RESTORING", "RECYCLING", "RECYCLED"
|
2621
|
+
# resp.items[0].document_metadata.labels #=> Array
|
2622
|
+
# resp.items[0].document_metadata.labels[0] #=> String
|
2623
|
+
# resp.items[0].folder_metadata.id #=> String
|
2624
|
+
# resp.items[0].folder_metadata.name #=> String
|
2625
|
+
# resp.items[0].folder_metadata.creator_id #=> String
|
2626
|
+
# resp.items[0].folder_metadata.parent_folder_id #=> String
|
2627
|
+
# resp.items[0].folder_metadata.created_timestamp #=> Time
|
2628
|
+
# resp.items[0].folder_metadata.modified_timestamp #=> Time
|
2629
|
+
# resp.items[0].folder_metadata.resource_state #=> String, one of "ACTIVE", "RESTORING", "RECYCLING", "RECYCLED"
|
2630
|
+
# resp.items[0].folder_metadata.signature #=> String
|
2631
|
+
# resp.items[0].folder_metadata.labels #=> Array
|
2632
|
+
# resp.items[0].folder_metadata.labels[0] #=> String
|
2633
|
+
# resp.items[0].folder_metadata.size #=> Integer
|
2634
|
+
# resp.items[0].folder_metadata.latest_version_size #=> Integer
|
2635
|
+
# resp.items[0].comment_metadata.comment_id #=> String
|
2636
|
+
# resp.items[0].comment_metadata.contributor.id #=> String
|
2637
|
+
# resp.items[0].comment_metadata.contributor.username #=> String
|
2638
|
+
# resp.items[0].comment_metadata.contributor.email_address #=> String
|
2639
|
+
# resp.items[0].comment_metadata.contributor.given_name #=> String
|
2640
|
+
# resp.items[0].comment_metadata.contributor.surname #=> String
|
2641
|
+
# resp.items[0].comment_metadata.contributor.organization_id #=> String
|
2642
|
+
# resp.items[0].comment_metadata.contributor.root_folder_id #=> String
|
2643
|
+
# resp.items[0].comment_metadata.contributor.recycle_bin_folder_id #=> String
|
2644
|
+
# resp.items[0].comment_metadata.contributor.status #=> String, one of "ACTIVE", "INACTIVE", "PENDING"
|
2645
|
+
# resp.items[0].comment_metadata.contributor.type #=> String, one of "USER", "ADMIN", "POWERUSER", "MINIMALUSER", "WORKSPACESUSER"
|
2646
|
+
# resp.items[0].comment_metadata.contributor.created_timestamp #=> Time
|
2647
|
+
# resp.items[0].comment_metadata.contributor.modified_timestamp #=> Time
|
2648
|
+
# resp.items[0].comment_metadata.contributor.time_zone_id #=> String
|
2649
|
+
# resp.items[0].comment_metadata.contributor.locale #=> String, one of "en", "fr", "ko", "de", "es", "ja", "ru", "zh_CN", "zh_TW", "pt_BR", "default"
|
2650
|
+
# resp.items[0].comment_metadata.contributor.storage.storage_utilized_in_bytes #=> Integer
|
2651
|
+
# resp.items[0].comment_metadata.contributor.storage.storage_rule.storage_allocated_in_bytes #=> Integer
|
2652
|
+
# resp.items[0].comment_metadata.contributor.storage.storage_rule.storage_type #=> String, one of "UNLIMITED", "QUOTA"
|
2653
|
+
# resp.items[0].comment_metadata.created_timestamp #=> Time
|
2654
|
+
# resp.items[0].comment_metadata.comment_status #=> String, one of "DRAFT", "PUBLISHED", "DELETED"
|
2655
|
+
# resp.items[0].comment_metadata.recipient_id #=> String
|
2656
|
+
# resp.items[0].comment_metadata.contributor_id #=> String
|
2657
|
+
# resp.items[0].document_version_metadata.id #=> String
|
2658
|
+
# resp.items[0].document_version_metadata.name #=> String
|
2659
|
+
# resp.items[0].document_version_metadata.content_type #=> String
|
2660
|
+
# resp.items[0].document_version_metadata.size #=> Integer
|
2661
|
+
# resp.items[0].document_version_metadata.signature #=> String
|
2662
|
+
# resp.items[0].document_version_metadata.status #=> String, one of "INITIALIZED", "ACTIVE"
|
2663
|
+
# resp.items[0].document_version_metadata.created_timestamp #=> Time
|
2664
|
+
# resp.items[0].document_version_metadata.modified_timestamp #=> Time
|
2665
|
+
# resp.items[0].document_version_metadata.content_created_timestamp #=> Time
|
2666
|
+
# resp.items[0].document_version_metadata.content_modified_timestamp #=> Time
|
2667
|
+
# resp.items[0].document_version_metadata.creator_id #=> String
|
2668
|
+
# resp.items[0].document_version_metadata.thumbnail #=> Hash
|
2669
|
+
# resp.items[0].document_version_metadata.thumbnail["DocumentThumbnailType"] #=> String
|
2670
|
+
# resp.items[0].document_version_metadata.source #=> Hash
|
2671
|
+
# resp.items[0].document_version_metadata.source["DocumentSourceType"] #=> String
|
2672
|
+
# resp.marker #=> String
|
2673
|
+
#
|
2674
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchResources AWS API Documentation
|
2675
|
+
#
|
2676
|
+
# @overload search_resources(params = {})
|
2677
|
+
# @param [Hash] params ({})
|
2678
|
+
def search_resources(params = {}, options = {})
|
2679
|
+
req = build_request(:search_resources, params)
|
2680
|
+
req.send_request(options)
|
2681
|
+
end
|
2682
|
+
|
2489
2683
|
# Updates the specified attributes of a document. The user must have
|
2490
2684
|
# access to both the document and its parent folder, if applicable.
|
2491
2685
|
#
|
@@ -2704,7 +2898,7 @@ module Aws::WorkDocs
|
|
2704
2898
|
params: params,
|
2705
2899
|
config: config)
|
2706
2900
|
context[:gem_name] = 'aws-sdk-workdocs'
|
2707
|
-
context[:gem_version] = '1.
|
2901
|
+
context[:gem_version] = '1.45.0'
|
2708
2902
|
Seahorse::Client::Request.new(handlers, context)
|
2709
2903
|
end
|
2710
2904
|
|
@@ -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"
|
@@ -50,9 +50,6 @@ module Aws::WorkDocs
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -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
|
18
|
-
if Aws::Endpoints::Matchers.set?(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
|
-
|
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
|
-
|
41
|
-
|
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
|
-
|
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
|
@@ -246,6 +246,10 @@ module Aws::WorkDocs
|
|
246
246
|
# The ID of the user being replied to.
|
247
247
|
# @return [String]
|
248
248
|
#
|
249
|
+
# @!attribute [rw] contributor_id
|
250
|
+
# The ID of the user who made the comment.
|
251
|
+
# @return [String]
|
252
|
+
#
|
249
253
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CommentMetadata AWS API Documentation
|
250
254
|
#
|
251
255
|
class CommentMetadata < Struct.new(
|
@@ -253,7 +257,8 @@ module Aws::WorkDocs
|
|
253
257
|
:contributor,
|
254
258
|
:created_timestamp,
|
255
259
|
:comment_status,
|
256
|
-
:recipient_id
|
260
|
+
:recipient_id,
|
261
|
+
:contributor_id)
|
257
262
|
SENSITIVE = []
|
258
263
|
include Aws::Structure
|
259
264
|
end
|
@@ -401,7 +406,7 @@ module Aws::WorkDocs
|
|
401
406
|
:authentication_token,
|
402
407
|
:name,
|
403
408
|
:parent_folder_id)
|
404
|
-
SENSITIVE = [:authentication_token]
|
409
|
+
SENSITIVE = [:authentication_token, :name]
|
405
410
|
include Aws::Structure
|
406
411
|
end
|
407
412
|
|
@@ -534,7 +539,7 @@ module Aws::WorkDocs
|
|
534
539
|
:time_zone_id,
|
535
540
|
:storage_rule,
|
536
541
|
:authentication_token)
|
537
|
-
SENSITIVE = [:email_address, :password, :authentication_token]
|
542
|
+
SENSITIVE = [:username, :email_address, :given_name, :surname, :password, :authentication_token]
|
538
543
|
include Aws::Structure
|
539
544
|
end
|
540
545
|
|
@@ -564,6 +569,25 @@ module Aws::WorkDocs
|
|
564
569
|
include Aws::Structure
|
565
570
|
end
|
566
571
|
|
572
|
+
# Filters results based on timestamp range (in epochs).
|
573
|
+
#
|
574
|
+
# @!attribute [rw] start_value
|
575
|
+
# Timestamp range start value (in epochs)
|
576
|
+
# @return [Time]
|
577
|
+
#
|
578
|
+
# @!attribute [rw] end_value
|
579
|
+
# Timestamp range end value (in epochs).
|
580
|
+
# @return [Time]
|
581
|
+
#
|
582
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DateRangeType AWS API Documentation
|
583
|
+
#
|
584
|
+
class DateRangeType < Struct.new(
|
585
|
+
:start_value,
|
586
|
+
:end_value)
|
587
|
+
SENSITIVE = []
|
588
|
+
include Aws::Structure
|
589
|
+
end
|
590
|
+
|
567
591
|
# @!attribute [rw] user_id
|
568
592
|
# The ID of the user.
|
569
593
|
# @return [String]
|
@@ -1498,7 +1522,7 @@ module Aws::WorkDocs
|
|
1498
1522
|
:creator_id,
|
1499
1523
|
:thumbnail,
|
1500
1524
|
:source)
|
1501
|
-
SENSITIVE = []
|
1525
|
+
SENSITIVE = [:name]
|
1502
1526
|
include Aws::Structure
|
1503
1527
|
end
|
1504
1528
|
|
@@ -1563,6 +1587,65 @@ module Aws::WorkDocs
|
|
1563
1587
|
include Aws::Structure
|
1564
1588
|
end
|
1565
1589
|
|
1590
|
+
# Filters results based on entity metadata.
|
1591
|
+
#
|
1592
|
+
# @!attribute [rw] text_locales
|
1593
|
+
# Filters by the locale of the content or comment.
|
1594
|
+
# @return [Array<String>]
|
1595
|
+
#
|
1596
|
+
# @!attribute [rw] content_categories
|
1597
|
+
# Filters by content category.
|
1598
|
+
# @return [Array<String>]
|
1599
|
+
#
|
1600
|
+
# @!attribute [rw] resource_types
|
1601
|
+
# Filters based on entity type.
|
1602
|
+
# @return [Array<String>]
|
1603
|
+
#
|
1604
|
+
# @!attribute [rw] labels
|
1605
|
+
# Filter by labels using exact match.
|
1606
|
+
# @return [Array<String>]
|
1607
|
+
#
|
1608
|
+
# @!attribute [rw] principals
|
1609
|
+
# Filter based on UserIds or GroupIds.
|
1610
|
+
# @return [Array<Types::SearchPrincipalType>]
|
1611
|
+
#
|
1612
|
+
# @!attribute [rw] ancestor_ids
|
1613
|
+
# Filter based on resource’s path.
|
1614
|
+
# @return [Array<String>]
|
1615
|
+
#
|
1616
|
+
# @!attribute [rw] search_collection_types
|
1617
|
+
# Filter based on file groupings.
|
1618
|
+
# @return [Array<String>]
|
1619
|
+
#
|
1620
|
+
# @!attribute [rw] size_range
|
1621
|
+
# Filter based on size (in bytes).
|
1622
|
+
# @return [Types::LongRangeType]
|
1623
|
+
#
|
1624
|
+
# @!attribute [rw] created_range
|
1625
|
+
# Filter based on resource’s creation timestamp.
|
1626
|
+
# @return [Types::DateRangeType]
|
1627
|
+
#
|
1628
|
+
# @!attribute [rw] modified_range
|
1629
|
+
# Filter based on resource’s modified timestamp.
|
1630
|
+
# @return [Types::DateRangeType]
|
1631
|
+
#
|
1632
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Filters AWS API Documentation
|
1633
|
+
#
|
1634
|
+
class Filters < Struct.new(
|
1635
|
+
:text_locales,
|
1636
|
+
:content_categories,
|
1637
|
+
:resource_types,
|
1638
|
+
:labels,
|
1639
|
+
:principals,
|
1640
|
+
:ancestor_ids,
|
1641
|
+
:search_collection_types,
|
1642
|
+
:size_range,
|
1643
|
+
:created_range,
|
1644
|
+
:modified_range)
|
1645
|
+
SENSITIVE = []
|
1646
|
+
include Aws::Structure
|
1647
|
+
end
|
1648
|
+
|
1566
1649
|
# Describes a folder.
|
1567
1650
|
#
|
1568
1651
|
# @!attribute [rw] id
|
@@ -1624,7 +1707,7 @@ module Aws::WorkDocs
|
|
1624
1707
|
:labels,
|
1625
1708
|
:size,
|
1626
1709
|
:latest_version_size)
|
1627
|
-
SENSITIVE = []
|
1710
|
+
SENSITIVE = [:name]
|
1628
1711
|
include Aws::Structure
|
1629
1712
|
end
|
1630
1713
|
|
@@ -2010,7 +2093,7 @@ module Aws::WorkDocs
|
|
2010
2093
|
:content_type,
|
2011
2094
|
:document_size_in_bytes,
|
2012
2095
|
:parent_folder_id)
|
2013
|
-
SENSITIVE = [:authentication_token]
|
2096
|
+
SENSITIVE = [:authentication_token, :name]
|
2014
2097
|
include Aws::Structure
|
2015
2098
|
end
|
2016
2099
|
|
@@ -2098,6 +2181,25 @@ module Aws::WorkDocs
|
|
2098
2181
|
include Aws::Structure
|
2099
2182
|
end
|
2100
2183
|
|
2184
|
+
# Filter based on size (in bytes).
|
2185
|
+
#
|
2186
|
+
# @!attribute [rw] start_value
|
2187
|
+
# The size start range (in bytes).
|
2188
|
+
# @return [Integer]
|
2189
|
+
#
|
2190
|
+
# @!attribute [rw] end_value
|
2191
|
+
# The size end range (in bytes).
|
2192
|
+
# @return [Integer]
|
2193
|
+
#
|
2194
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/LongRangeType AWS API Documentation
|
2195
|
+
#
|
2196
|
+
class LongRangeType < Struct.new(
|
2197
|
+
:start_value,
|
2198
|
+
:end_value)
|
2199
|
+
SENSITIVE = []
|
2200
|
+
include Aws::Structure
|
2201
|
+
end
|
2202
|
+
|
2101
2203
|
# Set of options which defines notification preferences of given action.
|
2102
2204
|
#
|
2103
2205
|
# @!attribute [rw] send_email
|
@@ -2307,7 +2409,7 @@ module Aws::WorkDocs
|
|
2307
2409
|
:version_id,
|
2308
2410
|
:owner,
|
2309
2411
|
:parent_id)
|
2310
|
-
SENSITIVE = []
|
2412
|
+
SENSITIVE = [:name, :original_name]
|
2311
2413
|
include Aws::Structure
|
2312
2414
|
end
|
2313
2415
|
|
@@ -2340,7 +2442,47 @@ module Aws::WorkDocs
|
|
2340
2442
|
class ResourcePathComponent < Struct.new(
|
2341
2443
|
:id,
|
2342
2444
|
:name)
|
2343
|
-
SENSITIVE = []
|
2445
|
+
SENSITIVE = [:name]
|
2446
|
+
include Aws::Structure
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
# List of Documents, Folders, Comments, and Document Versions matching
|
2450
|
+
# the query.
|
2451
|
+
#
|
2452
|
+
# @!attribute [rw] resource_type
|
2453
|
+
# The type of item being returned.
|
2454
|
+
# @return [String]
|
2455
|
+
#
|
2456
|
+
# @!attribute [rw] web_url
|
2457
|
+
# The webUrl of the item being returned.
|
2458
|
+
# @return [String]
|
2459
|
+
#
|
2460
|
+
# @!attribute [rw] document_metadata
|
2461
|
+
# The document that matches the query.
|
2462
|
+
# @return [Types::DocumentMetadata]
|
2463
|
+
#
|
2464
|
+
# @!attribute [rw] folder_metadata
|
2465
|
+
# The folder that matches the query.
|
2466
|
+
# @return [Types::FolderMetadata]
|
2467
|
+
#
|
2468
|
+
# @!attribute [rw] comment_metadata
|
2469
|
+
# The comment that matches the query.
|
2470
|
+
# @return [Types::CommentMetadata]
|
2471
|
+
#
|
2472
|
+
# @!attribute [rw] document_version_metadata
|
2473
|
+
# The document version that matches the metadata.
|
2474
|
+
# @return [Types::DocumentVersionMetadata]
|
2475
|
+
#
|
2476
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResponseItem AWS API Documentation
|
2477
|
+
#
|
2478
|
+
class ResponseItem < Struct.new(
|
2479
|
+
:resource_type,
|
2480
|
+
:web_url,
|
2481
|
+
:document_metadata,
|
2482
|
+
:folder_metadata,
|
2483
|
+
:comment_metadata,
|
2484
|
+
:document_version_metadata)
|
2485
|
+
SENSITIVE = [:web_url]
|
2344
2486
|
include Aws::Structure
|
2345
2487
|
end
|
2346
2488
|
|
@@ -2362,6 +2504,122 @@ module Aws::WorkDocs
|
|
2362
2504
|
include Aws::Structure
|
2363
2505
|
end
|
2364
2506
|
|
2507
|
+
# Filter based on UserIds or GroupIds.
|
2508
|
+
#
|
2509
|
+
# @!attribute [rw] id
|
2510
|
+
# UserIds or GroupIds.
|
2511
|
+
# @return [String]
|
2512
|
+
#
|
2513
|
+
# @!attribute [rw] roles
|
2514
|
+
# The Role of a User or Group.
|
2515
|
+
# @return [Array<String>]
|
2516
|
+
#
|
2517
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchPrincipalType AWS API Documentation
|
2518
|
+
#
|
2519
|
+
class SearchPrincipalType < Struct.new(
|
2520
|
+
:id,
|
2521
|
+
:roles)
|
2522
|
+
SENSITIVE = []
|
2523
|
+
include Aws::Structure
|
2524
|
+
end
|
2525
|
+
|
2526
|
+
# @!attribute [rw] authentication_token
|
2527
|
+
# Amazon WorkDocs authentication token. Not required when using Amazon
|
2528
|
+
# Web Services administrator credentials to access the API.
|
2529
|
+
# @return [String]
|
2530
|
+
#
|
2531
|
+
# @!attribute [rw] query_text
|
2532
|
+
# The String to search for. Searches across different text fields
|
2533
|
+
# based on request parameters. Use double quotes around the query
|
2534
|
+
# string for exact phrase matches.
|
2535
|
+
# @return [String]
|
2536
|
+
#
|
2537
|
+
# @!attribute [rw] query_scopes
|
2538
|
+
# Filter based on the text field type. A Folder has only a name and no
|
2539
|
+
# content. A Comment has only content and no name. A Document or
|
2540
|
+
# Document Version has a name and content
|
2541
|
+
# @return [Array<String>]
|
2542
|
+
#
|
2543
|
+
# @!attribute [rw] organization_id
|
2544
|
+
# Filters based on the resource owner OrgId. This is a mandatory
|
2545
|
+
# parameter when using Admin SigV4 credentials.
|
2546
|
+
# @return [String]
|
2547
|
+
#
|
2548
|
+
# @!attribute [rw] additional_response_fields
|
2549
|
+
# A list of attributes to include in the response. Used to request
|
2550
|
+
# fields that are not normally returned in a standard response.
|
2551
|
+
# @return [Array<String>]
|
2552
|
+
#
|
2553
|
+
# @!attribute [rw] filters
|
2554
|
+
# Filters results based on entity metadata.
|
2555
|
+
# @return [Types::Filters]
|
2556
|
+
#
|
2557
|
+
# @!attribute [rw] order_by
|
2558
|
+
# Order by results in one or more categories.
|
2559
|
+
# @return [Array<Types::SearchSortResult>]
|
2560
|
+
#
|
2561
|
+
# @!attribute [rw] limit
|
2562
|
+
# Max results count per page.
|
2563
|
+
# @return [Integer]
|
2564
|
+
#
|
2565
|
+
# @!attribute [rw] marker
|
2566
|
+
# The marker for the next set of results.
|
2567
|
+
# @return [String]
|
2568
|
+
#
|
2569
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchResourcesRequest AWS API Documentation
|
2570
|
+
#
|
2571
|
+
class SearchResourcesRequest < Struct.new(
|
2572
|
+
:authentication_token,
|
2573
|
+
:query_text,
|
2574
|
+
:query_scopes,
|
2575
|
+
:organization_id,
|
2576
|
+
:additional_response_fields,
|
2577
|
+
:filters,
|
2578
|
+
:order_by,
|
2579
|
+
:limit,
|
2580
|
+
:marker)
|
2581
|
+
SENSITIVE = [:authentication_token, :query_text]
|
2582
|
+
include Aws::Structure
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
# @!attribute [rw] items
|
2586
|
+
# List of Documents, Folders, Comments, and Document Versions matching
|
2587
|
+
# the query.
|
2588
|
+
# @return [Array<Types::ResponseItem>]
|
2589
|
+
#
|
2590
|
+
# @!attribute [rw] marker
|
2591
|
+
# The marker to use when requesting the next set of results. If there
|
2592
|
+
# are no additional results, the string is empty.
|
2593
|
+
# @return [String]
|
2594
|
+
#
|
2595
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchResourcesResponse AWS API Documentation
|
2596
|
+
#
|
2597
|
+
class SearchResourcesResponse < Struct.new(
|
2598
|
+
:items,
|
2599
|
+
:marker)
|
2600
|
+
SENSITIVE = []
|
2601
|
+
include Aws::Structure
|
2602
|
+
end
|
2603
|
+
|
2604
|
+
# The result of the sort operation.
|
2605
|
+
#
|
2606
|
+
# @!attribute [rw] field
|
2607
|
+
# Sort search results based on this field name.
|
2608
|
+
# @return [String]
|
2609
|
+
#
|
2610
|
+
# @!attribute [rw] order
|
2611
|
+
# Sort direction.
|
2612
|
+
# @return [String]
|
2613
|
+
#
|
2614
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchSortResult AWS API Documentation
|
2615
|
+
#
|
2616
|
+
class SearchSortResult < Struct.new(
|
2617
|
+
:field,
|
2618
|
+
:order)
|
2619
|
+
SENSITIVE = []
|
2620
|
+
include Aws::Structure
|
2621
|
+
end
|
2622
|
+
|
2365
2623
|
# One or more of the dependencies is unavailable.
|
2366
2624
|
#
|
2367
2625
|
# @!attribute [rw] message
|
@@ -2584,7 +2842,7 @@ module Aws::WorkDocs
|
|
2584
2842
|
:name,
|
2585
2843
|
:parent_folder_id,
|
2586
2844
|
:resource_state)
|
2587
|
-
SENSITIVE = [:authentication_token]
|
2845
|
+
SENSITIVE = [:authentication_token, :name]
|
2588
2846
|
include Aws::Structure
|
2589
2847
|
end
|
2590
2848
|
|
@@ -2646,7 +2904,7 @@ module Aws::WorkDocs
|
|
2646
2904
|
:name,
|
2647
2905
|
:parent_folder_id,
|
2648
2906
|
:resource_state)
|
2649
|
-
SENSITIVE = [:authentication_token]
|
2907
|
+
SENSITIVE = [:authentication_token, :name]
|
2650
2908
|
include Aws::Structure
|
2651
2909
|
end
|
2652
2910
|
|
@@ -2700,7 +2958,7 @@ module Aws::WorkDocs
|
|
2700
2958
|
:time_zone_id,
|
2701
2959
|
:locale,
|
2702
2960
|
:grant_poweruser_privileges)
|
2703
|
-
SENSITIVE = [:authentication_token]
|
2961
|
+
SENSITIVE = [:authentication_token, :given_name, :surname]
|
2704
2962
|
include Aws::Structure
|
2705
2963
|
end
|
2706
2964
|
|
@@ -2815,7 +3073,7 @@ module Aws::WorkDocs
|
|
2815
3073
|
:time_zone_id,
|
2816
3074
|
:locale,
|
2817
3075
|
:storage)
|
2818
|
-
SENSITIVE = [:email_address]
|
3076
|
+
SENSITIVE = [:username, :email_address, :given_name, :surname]
|
2819
3077
|
include Aws::Structure
|
2820
3078
|
end
|
2821
3079
|
|
@@ -2849,7 +3107,7 @@ module Aws::WorkDocs
|
|
2849
3107
|
:given_name,
|
2850
3108
|
:surname,
|
2851
3109
|
:email_address)
|
2852
|
-
SENSITIVE = [:email_address]
|
3110
|
+
SENSITIVE = [:username, :given_name, :surname, :email_address]
|
2853
3111
|
include Aws::Structure
|
2854
3112
|
end
|
2855
3113
|
|
data/lib/aws-sdk-workdocs.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-workdocs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.174.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.174.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|