aws-sdk-workdocs 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 136d0a6aaeff99e9e55e33d7e73949ba690467c3
4
- data.tar.gz: cd1a8466db48b6122358c63a5004ceea88b350db
3
+ metadata.gz: b1ce30809d9c52b3bc6592b346bca848b1c5d6b6
4
+ data.tar.gz: b029f1f6431a8a17e92f0860053a2c33739f9fb5
5
5
  SHA512:
6
- metadata.gz: a4ec0d91d21e566eefc0893e5e6193475984649353c1817431f7040d2d45f0f963906a4cbfe4945cc3cf61d44785f18ffd5d7b745cf85a0b80e60412077b3a3d
7
- data.tar.gz: d3a4d996985b29752d3cc2b0ebc49909fa0ccb7a278203aa6e6dee78c3f7a33f96a6ccb73d30331e1ddf09d1fff6e79e71f6e31d1870ca29eb2c43587e0d8da9
6
+ metadata.gz: c387af65a5f814f87f9311632ba68fcf3dbbc4c87988ec8247edc5e2edede110a14cf8a9af957c74ac8babbb3df61d69bf8346f788a77bf8555e58b37e5a211a
7
+ data.tar.gz: b5b6607df21185cd1ed73dec6de5a9b99f625099ef96bedb4368c73819e73d7cab572164e2416a7e43065874befce1a9fd4b0f8e9d25a575559d7053f0b09980
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-workdocs/customizations'
42
42
  # @service
43
43
  module Aws::WorkDocs
44
44
 
45
- GEM_VERSION = '1.6.0'
45
+ GEM_VERSION = '1.7.0'
46
46
 
47
47
  end
@@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
15
15
  require 'aws-sdk-core/plugins/retry_errors.rb'
16
16
  require 'aws-sdk-core/plugins/global_configuration.rb'
17
17
  require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
18
19
  require 'aws-sdk-core/plugins/response_paging.rb'
19
20
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
21
  require 'aws-sdk-core/plugins/idempotency_token.rb'
@@ -45,6 +46,7 @@ module Aws::WorkDocs
45
46
  add_plugin(Aws::Plugins::RetryErrors)
46
47
  add_plugin(Aws::Plugins::GlobalConfiguration)
47
48
  add_plugin(Aws::Plugins::RegionalEndpoint)
49
+ add_plugin(Aws::Plugins::EndpointDiscovery)
48
50
  add_plugin(Aws::Plugins::ResponsePaging)
49
51
  add_plugin(Aws::Plugins::StubResponses)
50
52
  add_plugin(Aws::Plugins::IdempotencyToken)
@@ -98,6 +100,10 @@ module Aws::WorkDocs
98
100
  #
99
101
  # @option options [String] :access_key_id
100
102
  #
103
+ # @option options [Boolean] :active_endpoint_cache (false)
104
+ # When set to `true`, a thread polling for endpoints will be running in
105
+ # the background every 60 secs (default). Defaults to `false`.
106
+ #
101
107
  # @option options [Boolean] :client_side_monitoring (false)
102
108
  # When `true`, client-side metrics will be collected for all API requests from
103
109
  # this client.
@@ -123,6 +129,21 @@ module Aws::WorkDocs
123
129
  # option. You should only configure an `:endpoint` when connecting
124
130
  # to test endpoints. This should be avalid HTTP(S) URI.
125
131
  #
132
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
133
+ # Used for the maximum size limit of the LRU cache storing endpoints data
134
+ # for endpoint discovery enabled operations. Defaults to 1000.
135
+ #
136
+ # @option options [Integer] :endpoint_cache_max_threads (10)
137
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
138
+ #
139
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
140
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
141
+ # Use this option to config the time interval in seconds for making
142
+ # requests fetching endpoints information. Defaults to 60 sec.
143
+ #
144
+ # @option options [Boolean] :endpoint_discovery (false)
145
+ # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
146
+ #
126
147
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
127
148
  # The log formatter.
128
149
  #
@@ -308,6 +329,7 @@ module Aws::WorkDocs
308
329
  #
309
330
  # resp.share_results #=> Array
310
331
  # resp.share_results[0].principal_id #=> String
332
+ # resp.share_results[0].invitee_principal_id #=> String
311
333
  # resp.share_results[0].role #=> String, one of "VIEWER", "CONTRIBUTOR", "OWNER", "COOWNER"
312
334
  # resp.share_results[0].status #=> String, one of "SUCCESS", "FAILURE"
313
335
  # resp.share_results[0].share_id #=> String
@@ -530,15 +552,16 @@ module Aws::WorkDocs
530
552
  req.send_request(options)
531
553
  end
532
554
 
533
- # Configure WorkDocs to use Amazon SNS notifications.
555
+ # Configure Amazon WorkDocs to use Amazon SNS notifications. The
556
+ # endpoint receives a confirmation message, and must confirm the
557
+ # subscription.
534
558
  #
535
- # The endpoint receives a confirmation message, and must confirm the
536
- # subscription. For more information, see [Confirm the Subscription][1]
537
- # in the *Amazon Simple Notification Service Developer Guide*.
559
+ # For more information, see [Subscribe to Notifications][1] in the
560
+ # *Amazon WorkDocs Developer Guide*.
538
561
  #
539
562
  #
540
563
  #
541
- # [1]: http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.confirm
564
+ # [1]: http://docs.aws.amazon.com/workdocs/latest/developerguide/subscribe-notifications.html
542
565
  #
543
566
  # @option params [required, String] :organization_id
544
567
  # The ID of the organization.
@@ -968,11 +991,24 @@ module Aws::WorkDocs
968
991
  # The ID of the organization. This is a mandatory parameter when using
969
992
  # administrative API (SigV4) requests.
970
993
  #
994
+ # @option params [String] :activity_types
995
+ # Specifies which activity types to include in the response. If this
996
+ # field is left empty, all activity types are returned.
997
+ #
998
+ # @option params [String] :resource_id
999
+ # The document or folder ID for which to describe activity types.
1000
+ #
971
1001
  # @option params [String] :user_id
972
1002
  # The ID of the user who performed the action. The response includes
973
1003
  # activities pertaining to this user. This is an optional parameter and
974
1004
  # is only applicable for administrative API (SigV4) requests.
975
1005
  #
1006
+ # @option params [Boolean] :include_indirect_activities
1007
+ # Includes indirect activities. An indirect activity results from a
1008
+ # direct activity performed on a parent resource. For example, sharing a
1009
+ # parent folder (the direct activity) shares all of the subfolders and
1010
+ # documents within the parent folder (the indirect activity).
1011
+ #
976
1012
  # @option params [Integer] :limit
977
1013
  # The maximum number of items to return.
978
1014
  #
@@ -991,7 +1027,10 @@ module Aws::WorkDocs
991
1027
  # start_time: Time.now,
992
1028
  # end_time: Time.now,
993
1029
  # organization_id: "IdType",
1030
+ # activity_types: "ActivityNamesFilterType",
1031
+ # resource_id: "IdType",
994
1032
  # user_id: "IdType",
1033
+ # include_indirect_activities: false,
995
1034
  # limit: 1,
996
1035
  # marker: "MarkerType",
997
1036
  # })
@@ -999,8 +1038,9 @@ module Aws::WorkDocs
999
1038
  # @example Response structure
1000
1039
  #
1001
1040
  # resp.user_activities #=> Array
1002
- # resp.user_activities[0].type #=> String, one of "DOCUMENT_CHECKED_IN", "DOCUMENT_CHECKED_OUT", "DOCUMENT_RENAMED", "DOCUMENT_VERSION_UPLOADED", "DOCUMENT_VERSION_DELETED", "DOCUMENT_RECYCLED", "DOCUMENT_RESTORED", "DOCUMENT_REVERTED", "DOCUMENT_SHARED", "DOCUMENT_UNSHARED", "DOCUMENT_SHARE_PERMISSION_CHANGED", "DOCUMENT_SHAREABLE_LINK_CREATED", "DOCUMENT_SHAREABLE_LINK_REMOVED", "DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED", "DOCUMENT_MOVED", "DOCUMENT_COMMENT_ADDED", "DOCUMENT_COMMENT_DELETED", "DOCUMENT_ANNOTATION_ADDED", "DOCUMENT_ANNOTATION_DELETED", "FOLDER_CREATED", "FOLDER_DELETED", "FOLDER_RENAMED", "FOLDER_RECYCLED", "FOLDER_RESTORED", "FOLDER_SHARED", "FOLDER_UNSHARED", "FOLDER_SHARE_PERMISSION_CHANGED", "FOLDER_SHAREABLE_LINK_CREATED", "FOLDER_SHAREABLE_LINK_REMOVED", "FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED", "FOLDER_MOVED"
1041
+ # resp.user_activities[0].type #=> String, one of "DOCUMENT_CHECKED_IN", "DOCUMENT_CHECKED_OUT", "DOCUMENT_RENAMED", "DOCUMENT_VERSION_UPLOADED", "DOCUMENT_VERSION_DELETED", "DOCUMENT_VERSION_VIEWED", "DOCUMENT_VERSION_DOWNLOADED", "DOCUMENT_RECYCLED", "DOCUMENT_RESTORED", "DOCUMENT_REVERTED", "DOCUMENT_SHARED", "DOCUMENT_UNSHARED", "DOCUMENT_SHARE_PERMISSION_CHANGED", "DOCUMENT_SHAREABLE_LINK_CREATED", "DOCUMENT_SHAREABLE_LINK_REMOVED", "DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED", "DOCUMENT_MOVED", "DOCUMENT_COMMENT_ADDED", "DOCUMENT_COMMENT_DELETED", "DOCUMENT_ANNOTATION_ADDED", "DOCUMENT_ANNOTATION_DELETED", "FOLDER_CREATED", "FOLDER_DELETED", "FOLDER_RENAMED", "FOLDER_RECYCLED", "FOLDER_RESTORED", "FOLDER_SHARED", "FOLDER_UNSHARED", "FOLDER_SHARE_PERMISSION_CHANGED", "FOLDER_SHAREABLE_LINK_CREATED", "FOLDER_SHAREABLE_LINK_REMOVED", "FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED", "FOLDER_MOVED"
1003
1042
  # resp.user_activities[0].time_stamp #=> Time
1043
+ # resp.user_activities[0].is_indirect_activity #=> Boolean
1004
1044
  # resp.user_activities[0].organization_id #=> String
1005
1045
  # resp.user_activities[0].initiator.id #=> String
1006
1046
  # resp.user_activities[0].initiator.username #=> String
@@ -1321,7 +1361,8 @@ module Aws::WorkDocs
1321
1361
  req.send_request(options)
1322
1362
  end
1323
1363
 
1324
- # Describes the groups specified by query.
1364
+ # Describes the groups specified by the query. Groups are defined by the
1365
+ # underlying Active Directory.
1325
1366
  #
1326
1367
  # @option params [String] :authentication_token
1327
1368
  # Amazon WorkDocs authentication token. Do not set this field when using
@@ -1473,6 +1514,15 @@ module Aws::WorkDocs
1473
1514
  # folders and `RecycleBin` is the root of recycled items. This is not a
1474
1515
  # valid action for SigV4 (administrative API) clients.
1475
1516
  #
1517
+ # This action requires an authentication token. To get an authentication
1518
+ # token, register an application with Amazon WorkDocs. For more
1519
+ # information, see [Authentication and Access Control for User
1520
+ # Applications][1] in the *Amazon WorkDocs Developer Guide*.
1521
+ #
1522
+ #
1523
+ #
1524
+ # [1]: http://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html
1525
+ #
1476
1526
  # @option params [required, String] :authentication_token
1477
1527
  # Amazon WorkDocs authentication token. Do not set this field when using
1478
1528
  # administrative API actions, as in accessing the API using AWS
@@ -1955,6 +2005,94 @@ module Aws::WorkDocs
1955
2005
  req.send_request(options)
1956
2006
  end
1957
2007
 
2008
+ # Retrieves a collection of resources, including folders and documents.
2009
+ # The only `CollectionType` supported is `SHARED_WITH_ME`.
2010
+ #
2011
+ # @option params [String] :authentication_token
2012
+ # The Amazon WorkDocs authentication token. Do not set this field when
2013
+ # using administrative API actions, as in accessing the API operation
2014
+ # using AWS credentials.
2015
+ #
2016
+ # @option params [String] :user_id
2017
+ # The user ID for the resource collection. This is a required field for
2018
+ # accessing the API operation using IAM credentials.
2019
+ #
2020
+ # @option params [String] :collection_type
2021
+ # The collection type.
2022
+ #
2023
+ # @option params [Integer] :limit
2024
+ # The maximum number of resources to return.
2025
+ #
2026
+ # @option params [String] :marker
2027
+ # The marker for the next set of results. This marker was received from
2028
+ # a previous call.
2029
+ #
2030
+ # @return [Types::GetResourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2031
+ #
2032
+ # * {Types::GetResourcesResponse#folders #folders} => Array<Types::FolderMetadata>
2033
+ # * {Types::GetResourcesResponse#documents #documents} => Array<Types::DocumentMetadata>
2034
+ # * {Types::GetResourcesResponse#marker #marker} => String
2035
+ #
2036
+ # @example Request syntax with placeholder values
2037
+ #
2038
+ # resp = client.get_resources({
2039
+ # authentication_token: "AuthenticationHeaderType",
2040
+ # user_id: "IdType",
2041
+ # collection_type: "SHARED_WITH_ME", # accepts SHARED_WITH_ME
2042
+ # limit: 1,
2043
+ # marker: "PageMarkerType",
2044
+ # })
2045
+ #
2046
+ # @example Response structure
2047
+ #
2048
+ # resp.folders #=> Array
2049
+ # resp.folders[0].id #=> String
2050
+ # resp.folders[0].name #=> String
2051
+ # resp.folders[0].creator_id #=> String
2052
+ # resp.folders[0].parent_folder_id #=> String
2053
+ # resp.folders[0].created_timestamp #=> Time
2054
+ # resp.folders[0].modified_timestamp #=> Time
2055
+ # resp.folders[0].resource_state #=> String, one of "ACTIVE", "RESTORING", "RECYCLING", "RECYCLED"
2056
+ # resp.folders[0].signature #=> String
2057
+ # resp.folders[0].labels #=> Array
2058
+ # resp.folders[0].labels[0] #=> String
2059
+ # resp.folders[0].size #=> Integer
2060
+ # resp.folders[0].latest_version_size #=> Integer
2061
+ # resp.documents #=> Array
2062
+ # resp.documents[0].id #=> String
2063
+ # resp.documents[0].creator_id #=> String
2064
+ # resp.documents[0].parent_folder_id #=> String
2065
+ # resp.documents[0].created_timestamp #=> Time
2066
+ # resp.documents[0].modified_timestamp #=> Time
2067
+ # resp.documents[0].latest_version_metadata.id #=> String
2068
+ # resp.documents[0].latest_version_metadata.name #=> String
2069
+ # resp.documents[0].latest_version_metadata.content_type #=> String
2070
+ # resp.documents[0].latest_version_metadata.size #=> Integer
2071
+ # resp.documents[0].latest_version_metadata.signature #=> String
2072
+ # resp.documents[0].latest_version_metadata.status #=> String, one of "INITIALIZED", "ACTIVE"
2073
+ # resp.documents[0].latest_version_metadata.created_timestamp #=> Time
2074
+ # resp.documents[0].latest_version_metadata.modified_timestamp #=> Time
2075
+ # resp.documents[0].latest_version_metadata.content_created_timestamp #=> Time
2076
+ # resp.documents[0].latest_version_metadata.content_modified_timestamp #=> Time
2077
+ # resp.documents[0].latest_version_metadata.creator_id #=> String
2078
+ # resp.documents[0].latest_version_metadata.thumbnail #=> Hash
2079
+ # resp.documents[0].latest_version_metadata.thumbnail["DocumentThumbnailType"] #=> String
2080
+ # resp.documents[0].latest_version_metadata.source #=> Hash
2081
+ # resp.documents[0].latest_version_metadata.source["DocumentSourceType"] #=> String
2082
+ # resp.documents[0].resource_state #=> String, one of "ACTIVE", "RESTORING", "RECYCLING", "RECYCLED"
2083
+ # resp.documents[0].labels #=> Array
2084
+ # resp.documents[0].labels[0] #=> String
2085
+ # resp.marker #=> String
2086
+ #
2087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResources AWS API Documentation
2088
+ #
2089
+ # @overload get_resources(params = {})
2090
+ # @param [Hash] params ({})
2091
+ def get_resources(params = {}, options = {})
2092
+ req = build_request(:get_resources, params)
2093
+ req.send_request(options)
2094
+ end
2095
+
1958
2096
  # Creates a new document object and version object.
1959
2097
  #
1960
2098
  # The client specifies the parent folder ID and name of the document to
@@ -2334,7 +2472,7 @@ module Aws::WorkDocs
2334
2472
  params: params,
2335
2473
  config: config)
2336
2474
  context[:gem_name] = 'aws-sdk-workdocs'
2337
- context[:gem_version] = '1.6.0'
2475
+ context[:gem_version] = '1.7.0'
2338
2476
  Seahorse::Client::Request.new(handlers, context)
2339
2477
  end
2340
2478
 
@@ -15,6 +15,7 @@ module Aws::WorkDocs
15
15
  ActivateUserRequest = Shapes::StructureShape.new(name: 'ActivateUserRequest')
16
16
  ActivateUserResponse = Shapes::StructureShape.new(name: 'ActivateUserResponse')
17
17
  Activity = Shapes::StructureShape.new(name: 'Activity')
18
+ ActivityNamesFilterType = Shapes::StringShape.new(name: 'ActivityNamesFilterType')
18
19
  ActivityType = Shapes::StringShape.new(name: 'ActivityType')
19
20
  AddResourcePermissionsRequest = Shapes::StructureShape.new(name: 'AddResourcePermissionsRequest')
20
21
  AddResourcePermissionsResponse = Shapes::StructureShape.new(name: 'AddResourcePermissionsResponse')
@@ -29,6 +30,7 @@ module Aws::WorkDocs
29
30
  CommentTextType = Shapes::StringShape.new(name: 'CommentTextType')
30
31
  CommentVisibilityType = Shapes::StringShape.new(name: 'CommentVisibilityType')
31
32
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
33
+ ConflictingOperationException = Shapes::StructureShape.new(name: 'ConflictingOperationException')
32
34
  CreateCommentRequest = Shapes::StructureShape.new(name: 'CreateCommentRequest')
33
35
  CreateCommentResponse = Shapes::StructureShape.new(name: 'CreateCommentResponse')
34
36
  CreateCustomMetadataRequest = Shapes::StructureShape.new(name: 'CreateCustomMetadataRequest')
@@ -112,6 +114,8 @@ module Aws::WorkDocs
112
114
  GetFolderPathResponse = Shapes::StructureShape.new(name: 'GetFolderPathResponse')
113
115
  GetFolderRequest = Shapes::StructureShape.new(name: 'GetFolderRequest')
114
116
  GetFolderResponse = Shapes::StructureShape.new(name: 'GetFolderResponse')
117
+ GetResourcesRequest = Shapes::StructureShape.new(name: 'GetResourcesRequest')
118
+ GetResourcesResponse = Shapes::StructureShape.new(name: 'GetResourcesResponse')
115
119
  GroupMetadata = Shapes::StructureShape.new(name: 'GroupMetadata')
116
120
  GroupMetadataList = Shapes::ListShape.new(name: 'GroupMetadataList')
117
121
  GroupNameType = Shapes::StringShape.new(name: 'GroupNameType')
@@ -123,6 +127,7 @@ module Aws::WorkDocs
123
127
  InitiateDocumentVersionUploadRequest = Shapes::StructureShape.new(name: 'InitiateDocumentVersionUploadRequest')
124
128
  InitiateDocumentVersionUploadResponse = Shapes::StructureShape.new(name: 'InitiateDocumentVersionUploadResponse')
125
129
  InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException')
130
+ InvalidCommentOperationException = Shapes::StructureShape.new(name: 'InvalidCommentOperationException')
126
131
  InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
127
132
  InvalidPasswordException = Shapes::StructureShape.new(name: 'InvalidPasswordException')
128
133
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
@@ -146,7 +151,9 @@ module Aws::WorkDocs
146
151
  ProhibitedStateException = Shapes::StructureShape.new(name: 'ProhibitedStateException')
147
152
  RemoveAllResourcePermissionsRequest = Shapes::StructureShape.new(name: 'RemoveAllResourcePermissionsRequest')
148
153
  RemoveResourcePermissionRequest = Shapes::StructureShape.new(name: 'RemoveResourcePermissionRequest')
154
+ RequestedEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestedEntityTooLargeException')
149
155
  ResourceAlreadyCheckedOutException = Shapes::StructureShape.new(name: 'ResourceAlreadyCheckedOutException')
156
+ ResourceCollectionType = Shapes::StringShape.new(name: 'ResourceCollectionType')
150
157
  ResourceIdType = Shapes::StringShape.new(name: 'ResourceIdType')
151
158
  ResourceMetadata = Shapes::StructureShape.new(name: 'ResourceMetadata')
152
159
  ResourceNameType = Shapes::StringShape.new(name: 'ResourceNameType')
@@ -218,6 +225,7 @@ module Aws::WorkDocs
218
225
 
219
226
  Activity.add_member(:type, Shapes::ShapeRef.new(shape: ActivityType, location_name: "Type"))
220
227
  Activity.add_member(:time_stamp, Shapes::ShapeRef.new(shape: TimestampType, location_name: "TimeStamp"))
228
+ Activity.add_member(:is_indirect_activity, Shapes::ShapeRef.new(shape: BooleanType, location_name: "IsIndirectActivity"))
221
229
  Activity.add_member(:organization_id, Shapes::ShapeRef.new(shape: IdType, location_name: "OrganizationId"))
222
230
  Activity.add_member(:initiator, Shapes::ShapeRef.new(shape: UserMetadata, location_name: "Initiator"))
223
231
  Activity.add_member(:participants, Shapes::ShapeRef.new(shape: Participants, location_name: "Participants"))
@@ -370,7 +378,10 @@ module Aws::WorkDocs
370
378
  DescribeActivitiesRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: TimestampType, location: "querystring", location_name: "startTime"))
371
379
  DescribeActivitiesRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: TimestampType, location: "querystring", location_name: "endTime"))
372
380
  DescribeActivitiesRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: IdType, location: "querystring", location_name: "organizationId"))
381
+ DescribeActivitiesRequest.add_member(:activity_types, Shapes::ShapeRef.new(shape: ActivityNamesFilterType, location: "querystring", location_name: "activityTypes"))
382
+ DescribeActivitiesRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: IdType, location: "querystring", location_name: "resourceId"))
373
383
  DescribeActivitiesRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: IdType, location: "querystring", location_name: "userId"))
384
+ DescribeActivitiesRequest.add_member(:include_indirect_activities, Shapes::ShapeRef.new(shape: BooleanType, location: "querystring", location_name: "includeIndirectActivities"))
374
385
  DescribeActivitiesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location: "querystring", location_name: "limit"))
375
386
  DescribeActivitiesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: MarkerType, location: "querystring", location_name: "marker"))
376
387
  DescribeActivitiesRequest.struct_class = Types::DescribeActivitiesRequest
@@ -581,6 +592,18 @@ module Aws::WorkDocs
581
592
  GetFolderResponse.add_member(:custom_metadata, Shapes::ShapeRef.new(shape: CustomMetadataMap, location_name: "CustomMetadata"))
582
593
  GetFolderResponse.struct_class = Types::GetFolderResponse
583
594
 
595
+ GetResourcesRequest.add_member(:authentication_token, Shapes::ShapeRef.new(shape: AuthenticationHeaderType, location: "header", location_name: "Authentication"))
596
+ GetResourcesRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: IdType, location: "querystring", location_name: "userId"))
597
+ GetResourcesRequest.add_member(:collection_type, Shapes::ShapeRef.new(shape: ResourceCollectionType, location: "querystring", location_name: "collectionType"))
598
+ GetResourcesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitType, location: "querystring", location_name: "limit"))
599
+ GetResourcesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: PageMarkerType, location: "querystring", location_name: "marker"))
600
+ GetResourcesRequest.struct_class = Types::GetResourcesRequest
601
+
602
+ GetResourcesResponse.add_member(:folders, Shapes::ShapeRef.new(shape: FolderMetadataList, location_name: "Folders"))
603
+ GetResourcesResponse.add_member(:documents, Shapes::ShapeRef.new(shape: DocumentMetadataList, location_name: "Documents"))
604
+ GetResourcesResponse.add_member(:marker, Shapes::ShapeRef.new(shape: PageMarkerType, location_name: "Marker"))
605
+ GetResourcesResponse.struct_class = Types::GetResourcesResponse
606
+
584
607
  GroupMetadata.add_member(:id, Shapes::ShapeRef.new(shape: IdType, location_name: "Id"))
585
608
  GroupMetadata.add_member(:name, Shapes::ShapeRef.new(shape: GroupNameType, location_name: "Name"))
586
609
  GroupMetadata.struct_class = Types::GroupMetadata
@@ -660,6 +683,7 @@ module Aws::WorkDocs
660
683
  SharePrincipalList.member = Shapes::ShapeRef.new(shape: SharePrincipal)
661
684
 
662
685
  ShareResult.add_member(:principal_id, Shapes::ShapeRef.new(shape: IdType, location_name: "PrincipalId"))
686
+ ShareResult.add_member(:invitee_principal_id, Shapes::ShapeRef.new(shape: IdType, location_name: "InviteePrincipalId"))
663
687
  ShareResult.add_member(:role, Shapes::ShapeRef.new(shape: RoleType, location_name: "Role"))
664
688
  ShareResult.add_member(:status, Shapes::ShapeRef.new(shape: ShareStatusType, location_name: "Status"))
665
689
  ShareResult.add_member(:share_id, Shapes::ShapeRef.new(shape: ResourceIdType, location_name: "ShareId"))
@@ -766,6 +790,7 @@ module Aws::WorkDocs
766
790
  "jsonVersion" => "1.1",
767
791
  "protocol" => "rest-json",
768
792
  "serviceFullName" => "Amazon WorkDocs",
793
+ "serviceId" => "WorkDocs",
769
794
  "signatureVersion" => "v4",
770
795
  "uid" => "workdocs-2016-05-01",
771
796
  }
@@ -822,6 +847,7 @@ module Aws::WorkDocs
822
847
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
823
848
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
824
849
  o.errors << Shapes::ShapeRef.new(shape: DocumentLockedForCommentsException)
850
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCommentOperationException)
825
851
  end)
826
852
 
827
853
  api.add_operation(:create_custom_metadata, Seahorse::Model::Operation.new.tap do |o|
@@ -848,6 +874,7 @@ module Aws::WorkDocs
848
874
  o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
849
875
  o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExistsException)
850
876
  o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
877
+ o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
851
878
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
852
879
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
853
880
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
@@ -943,6 +970,7 @@ module Aws::WorkDocs
943
970
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
944
971
  o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
945
972
  o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
973
+ o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
946
974
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
947
975
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
948
976
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
@@ -958,6 +986,7 @@ module Aws::WorkDocs
958
986
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
959
987
  o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
960
988
  o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
989
+ o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
961
990
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
962
991
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
963
992
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
@@ -972,6 +1001,8 @@ module Aws::WorkDocs
972
1001
  o.input = Shapes::ShapeRef.new(shape: DeleteFolderContentsRequest)
973
1002
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
974
1003
  o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
1004
+ o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
1005
+ o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
975
1006
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
976
1007
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
977
1008
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
@@ -1138,11 +1169,13 @@ module Aws::WorkDocs
1138
1169
  o.http_request_uri = "/api/v1/users"
1139
1170
  o.input = Shapes::ShapeRef.new(shape: DescribeUsersRequest)
1140
1171
  o.output = Shapes::ShapeRef.new(shape: DescribeUsersResponse)
1172
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
1141
1173
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
1142
1174
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1143
1175
  o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1144
1176
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1145
1177
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1178
+ o.errors << Shapes::ShapeRef.new(shape: RequestedEntityTooLargeException)
1146
1179
  o[:pager] = Aws::Pager.new(
1147
1180
  limit_key: "limit",
1148
1181
  tokens: {
@@ -1235,6 +1268,19 @@ module Aws::WorkDocs
1235
1268
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1236
1269
  end)
1237
1270
 
1271
+ api.add_operation(:get_resources, Seahorse::Model::Operation.new.tap do |o|
1272
+ o.name = "GetResources"
1273
+ o.http_method = "GET"
1274
+ o.http_request_uri = "/api/v1/resources"
1275
+ o.input = Shapes::ShapeRef.new(shape: GetResourcesRequest)
1276
+ o.output = Shapes::ShapeRef.new(shape: GetResourcesResponse)
1277
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
1278
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
1279
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1280
+ o.errors << Shapes::ShapeRef.new(shape: FailedDependencyException)
1281
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1282
+ end)
1283
+
1238
1284
  api.add_operation(:initiate_document_version_upload, Seahorse::Model::Operation.new.tap do |o|
1239
1285
  o.name = "InitiateDocumentVersionUpload"
1240
1286
  o.http_method = "POST"
@@ -1288,6 +1334,7 @@ module Aws::WorkDocs
1288
1334
  o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExistsException)
1289
1335
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1290
1336
  o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
1337
+ o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
1291
1338
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1292
1339
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
1293
1340
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedResourceAccessException)
@@ -1320,6 +1367,7 @@ module Aws::WorkDocs
1320
1367
  o.errors << Shapes::ShapeRef.new(shape: EntityNotExistsException)
1321
1368
  o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExistsException)
1322
1369
  o.errors << Shapes::ShapeRef.new(shape: ProhibitedStateException)
1370
+ o.errors << Shapes::ShapeRef.new(shape: ConflictingOperationException)
1323
1371
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1324
1372
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1325
1373
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperationException)
@@ -87,6 +87,14 @@ module Aws::WorkDocs
87
87
  # The timestamp when the action was performed.
88
88
  # @return [Time]
89
89
  #
90
+ # @!attribute [rw] is_indirect_activity
91
+ # Indicates whether an activity is indirect or direct. An indirect
92
+ # activity results from a direct activity performed on a parent
93
+ # resource. For example, sharing a parent folder (the direct activity)
94
+ # shares all of the subfolders and documents within the parent folder
95
+ # (the indirect activity).
96
+ # @return [Boolean]
97
+ #
90
98
  # @!attribute [rw] organization_id
91
99
  # The ID of the organization.
92
100
  # @return [String]
@@ -121,6 +129,7 @@ module Aws::WorkDocs
121
129
  class Activity < Struct.new(
122
130
  :type,
123
131
  :time_stamp,
132
+ :is_indirect_activity,
124
133
  :organization_id,
125
134
  :initiator,
126
135
  :participants,
@@ -902,7 +911,10 @@ module Aws::WorkDocs
902
911
  # start_time: Time.now,
903
912
  # end_time: Time.now,
904
913
  # organization_id: "IdType",
914
+ # activity_types: "ActivityNamesFilterType",
915
+ # resource_id: "IdType",
905
916
  # user_id: "IdType",
917
+ # include_indirect_activities: false,
906
918
  # limit: 1,
907
919
  # marker: "MarkerType",
908
920
  # }
@@ -930,12 +942,28 @@ module Aws::WorkDocs
930
942
  # administrative API (SigV4) requests.
931
943
  # @return [String]
932
944
  #
945
+ # @!attribute [rw] activity_types
946
+ # Specifies which activity types to include in the response. If this
947
+ # field is left empty, all activity types are returned.
948
+ # @return [String]
949
+ #
950
+ # @!attribute [rw] resource_id
951
+ # The document or folder ID for which to describe activity types.
952
+ # @return [String]
953
+ #
933
954
  # @!attribute [rw] user_id
934
955
  # The ID of the user who performed the action. The response includes
935
956
  # activities pertaining to this user. This is an optional parameter
936
957
  # and is only applicable for administrative API (SigV4) requests.
937
958
  # @return [String]
938
959
  #
960
+ # @!attribute [rw] include_indirect_activities
961
+ # Includes indirect activities. An indirect activity results from a
962
+ # direct activity performed on a parent resource. For example, sharing
963
+ # a parent folder (the direct activity) shares all of the subfolders
964
+ # and documents within the parent folder (the indirect activity).
965
+ # @return [Boolean]
966
+ #
939
967
  # @!attribute [rw] limit
940
968
  # The maximum number of items to return.
941
969
  # @return [Integer]
@@ -951,7 +979,10 @@ module Aws::WorkDocs
951
979
  :start_time,
952
980
  :end_time,
953
981
  :organization_id,
982
+ :activity_types,
983
+ :resource_id,
954
984
  :user_id,
985
+ :include_indirect_activities,
955
986
  :limit,
956
987
  :marker)
957
988
  include Aws::Structure
@@ -1996,6 +2027,74 @@ module Aws::WorkDocs
1996
2027
  include Aws::Structure
1997
2028
  end
1998
2029
 
2030
+ # @note When making an API call, you may pass GetResourcesRequest
2031
+ # data as a hash:
2032
+ #
2033
+ # {
2034
+ # authentication_token: "AuthenticationHeaderType",
2035
+ # user_id: "IdType",
2036
+ # collection_type: "SHARED_WITH_ME", # accepts SHARED_WITH_ME
2037
+ # limit: 1,
2038
+ # marker: "PageMarkerType",
2039
+ # }
2040
+ #
2041
+ # @!attribute [rw] authentication_token
2042
+ # The Amazon WorkDocs authentication token. Do not set this field when
2043
+ # using administrative API actions, as in accessing the API operation
2044
+ # using AWS credentials.
2045
+ # @return [String]
2046
+ #
2047
+ # @!attribute [rw] user_id
2048
+ # The user ID for the resource collection. This is a required field
2049
+ # for accessing the API operation using IAM credentials.
2050
+ # @return [String]
2051
+ #
2052
+ # @!attribute [rw] collection_type
2053
+ # The collection type.
2054
+ # @return [String]
2055
+ #
2056
+ # @!attribute [rw] limit
2057
+ # The maximum number of resources to return.
2058
+ # @return [Integer]
2059
+ #
2060
+ # @!attribute [rw] marker
2061
+ # The marker for the next set of results. This marker was received
2062
+ # from a previous call.
2063
+ # @return [String]
2064
+ #
2065
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResourcesRequest AWS API Documentation
2066
+ #
2067
+ class GetResourcesRequest < Struct.new(
2068
+ :authentication_token,
2069
+ :user_id,
2070
+ :collection_type,
2071
+ :limit,
2072
+ :marker)
2073
+ include Aws::Structure
2074
+ end
2075
+
2076
+ # @!attribute [rw] folders
2077
+ # The folders in the specified folder.
2078
+ # @return [Array<Types::FolderMetadata>]
2079
+ #
2080
+ # @!attribute [rw] documents
2081
+ # The documents in the specified collection.
2082
+ # @return [Array<Types::DocumentMetadata>]
2083
+ #
2084
+ # @!attribute [rw] marker
2085
+ # The marker to use when requesting the next set of results. If there
2086
+ # are no additional results, the string is empty.
2087
+ # @return [String]
2088
+ #
2089
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResourcesResponse AWS API Documentation
2090
+ #
2091
+ class GetResourcesResponse < Struct.new(
2092
+ :folders,
2093
+ :documents,
2094
+ :marker)
2095
+ include Aws::Structure
2096
+ end
2097
+
1999
2098
  # Describes the metadata of a user group.
2000
2099
  #
2001
2100
  # @!attribute [rw] id
@@ -2356,6 +2455,10 @@ module Aws::WorkDocs
2356
2455
  # The ID of the principal.
2357
2456
  # @return [String]
2358
2457
  #
2458
+ # @!attribute [rw] invitee_principal_id
2459
+ # The ID of the invited user.
2460
+ # @return [String]
2461
+ #
2359
2462
  # @!attribute [rw] role
2360
2463
  # The role.
2361
2464
  # @return [String]
@@ -2376,6 +2479,7 @@ module Aws::WorkDocs
2376
2479
  #
2377
2480
  class ShareResult < Struct.new(
2378
2481
  :principal_id,
2482
+ :invitee_principal_id,
2379
2483
  :role,
2380
2484
  :status,
2381
2485
  :share_id,
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.6.0
4
+ version: 1.7.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: 2018-10-24 00:00:00.000000000 Z
11
+ date: 2018-11-19 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.26.0
22
+ version: 3.37.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.26.0
32
+ version: 3.37.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement