aws-sdk-workdocs 1.39.0 → 1.41.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-workdocs/client.rb +115 -13
- data/lib/aws-sdk-workdocs/client_api.rb +60 -3
- data/lib/aws-sdk-workdocs/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-workdocs/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-workdocs/endpoints.rb +617 -0
- data/lib/aws-sdk-workdocs/plugins/endpoints.rb +154 -0
- data/lib/aws-sdk-workdocs/types.rb +96 -9
- data/lib/aws-sdk-workdocs.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,154 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::WorkDocs
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::WorkDocs::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::WorkDocs::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::WorkDocs::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :abort_document_version_upload
|
60
|
+
Aws::WorkDocs::Endpoints::AbortDocumentVersionUpload.build(context)
|
61
|
+
when :activate_user
|
62
|
+
Aws::WorkDocs::Endpoints::ActivateUser.build(context)
|
63
|
+
when :add_resource_permissions
|
64
|
+
Aws::WorkDocs::Endpoints::AddResourcePermissions.build(context)
|
65
|
+
when :create_comment
|
66
|
+
Aws::WorkDocs::Endpoints::CreateComment.build(context)
|
67
|
+
when :create_custom_metadata
|
68
|
+
Aws::WorkDocs::Endpoints::CreateCustomMetadata.build(context)
|
69
|
+
when :create_folder
|
70
|
+
Aws::WorkDocs::Endpoints::CreateFolder.build(context)
|
71
|
+
when :create_labels
|
72
|
+
Aws::WorkDocs::Endpoints::CreateLabels.build(context)
|
73
|
+
when :create_notification_subscription
|
74
|
+
Aws::WorkDocs::Endpoints::CreateNotificationSubscription.build(context)
|
75
|
+
when :create_user
|
76
|
+
Aws::WorkDocs::Endpoints::CreateUser.build(context)
|
77
|
+
when :deactivate_user
|
78
|
+
Aws::WorkDocs::Endpoints::DeactivateUser.build(context)
|
79
|
+
when :delete_comment
|
80
|
+
Aws::WorkDocs::Endpoints::DeleteComment.build(context)
|
81
|
+
when :delete_custom_metadata
|
82
|
+
Aws::WorkDocs::Endpoints::DeleteCustomMetadata.build(context)
|
83
|
+
when :delete_document
|
84
|
+
Aws::WorkDocs::Endpoints::DeleteDocument.build(context)
|
85
|
+
when :delete_document_version
|
86
|
+
Aws::WorkDocs::Endpoints::DeleteDocumentVersion.build(context)
|
87
|
+
when :delete_folder
|
88
|
+
Aws::WorkDocs::Endpoints::DeleteFolder.build(context)
|
89
|
+
when :delete_folder_contents
|
90
|
+
Aws::WorkDocs::Endpoints::DeleteFolderContents.build(context)
|
91
|
+
when :delete_labels
|
92
|
+
Aws::WorkDocs::Endpoints::DeleteLabels.build(context)
|
93
|
+
when :delete_notification_subscription
|
94
|
+
Aws::WorkDocs::Endpoints::DeleteNotificationSubscription.build(context)
|
95
|
+
when :delete_user
|
96
|
+
Aws::WorkDocs::Endpoints::DeleteUser.build(context)
|
97
|
+
when :describe_activities
|
98
|
+
Aws::WorkDocs::Endpoints::DescribeActivities.build(context)
|
99
|
+
when :describe_comments
|
100
|
+
Aws::WorkDocs::Endpoints::DescribeComments.build(context)
|
101
|
+
when :describe_document_versions
|
102
|
+
Aws::WorkDocs::Endpoints::DescribeDocumentVersions.build(context)
|
103
|
+
when :describe_folder_contents
|
104
|
+
Aws::WorkDocs::Endpoints::DescribeFolderContents.build(context)
|
105
|
+
when :describe_groups
|
106
|
+
Aws::WorkDocs::Endpoints::DescribeGroups.build(context)
|
107
|
+
when :describe_notification_subscriptions
|
108
|
+
Aws::WorkDocs::Endpoints::DescribeNotificationSubscriptions.build(context)
|
109
|
+
when :describe_resource_permissions
|
110
|
+
Aws::WorkDocs::Endpoints::DescribeResourcePermissions.build(context)
|
111
|
+
when :describe_root_folders
|
112
|
+
Aws::WorkDocs::Endpoints::DescribeRootFolders.build(context)
|
113
|
+
when :describe_users
|
114
|
+
Aws::WorkDocs::Endpoints::DescribeUsers.build(context)
|
115
|
+
when :get_current_user
|
116
|
+
Aws::WorkDocs::Endpoints::GetCurrentUser.build(context)
|
117
|
+
when :get_document
|
118
|
+
Aws::WorkDocs::Endpoints::GetDocument.build(context)
|
119
|
+
when :get_document_path
|
120
|
+
Aws::WorkDocs::Endpoints::GetDocumentPath.build(context)
|
121
|
+
when :get_document_version
|
122
|
+
Aws::WorkDocs::Endpoints::GetDocumentVersion.build(context)
|
123
|
+
when :get_folder
|
124
|
+
Aws::WorkDocs::Endpoints::GetFolder.build(context)
|
125
|
+
when :get_folder_path
|
126
|
+
Aws::WorkDocs::Endpoints::GetFolderPath.build(context)
|
127
|
+
when :get_resources
|
128
|
+
Aws::WorkDocs::Endpoints::GetResources.build(context)
|
129
|
+
when :initiate_document_version_upload
|
130
|
+
Aws::WorkDocs::Endpoints::InitiateDocumentVersionUpload.build(context)
|
131
|
+
when :remove_all_resource_permissions
|
132
|
+
Aws::WorkDocs::Endpoints::RemoveAllResourcePermissions.build(context)
|
133
|
+
when :remove_resource_permission
|
134
|
+
Aws::WorkDocs::Endpoints::RemoveResourcePermission.build(context)
|
135
|
+
when :restore_document_versions
|
136
|
+
Aws::WorkDocs::Endpoints::RestoreDocumentVersions.build(context)
|
137
|
+
when :update_document
|
138
|
+
Aws::WorkDocs::Endpoints::UpdateDocument.build(context)
|
139
|
+
when :update_document_version
|
140
|
+
Aws::WorkDocs::Endpoints::UpdateDocumentVersion.build(context)
|
141
|
+
when :update_folder
|
142
|
+
Aws::WorkDocs::Endpoints::UpdateFolder.build(context)
|
143
|
+
when :update_user
|
144
|
+
Aws::WorkDocs::Endpoints::UpdateUser.build(context)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
def add_handlers(handlers, _config)
|
150
|
+
handlers.add(Handler, step: :build, priority: 75)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -530,7 +530,7 @@ module Aws::WorkDocs
|
|
530
530
|
# {
|
531
531
|
# organization_id: "IdType", # required
|
532
532
|
# endpoint: "SubscriptionEndPointType", # required
|
533
|
-
# protocol: "HTTPS", # required, accepts HTTPS
|
533
|
+
# protocol: "HTTPS", # required, accepts HTTPS, SQS
|
534
534
|
# subscription_type: "ALL", # required, accepts ALL
|
535
535
|
# }
|
536
536
|
#
|
@@ -642,7 +642,7 @@ module Aws::WorkDocs
|
|
642
642
|
:time_zone_id,
|
643
643
|
:storage_rule,
|
644
644
|
:authentication_token)
|
645
|
-
SENSITIVE = [:password, :authentication_token]
|
645
|
+
SENSITIVE = [:email_address, :password, :authentication_token]
|
646
646
|
include Aws::Structure
|
647
647
|
end
|
648
648
|
|
@@ -818,6 +818,45 @@ module Aws::WorkDocs
|
|
818
818
|
include Aws::Structure
|
819
819
|
end
|
820
820
|
|
821
|
+
# @note When making an API call, you may pass DeleteDocumentVersionRequest
|
822
|
+
# data as a hash:
|
823
|
+
#
|
824
|
+
# {
|
825
|
+
# authentication_token: "AuthenticationHeaderType",
|
826
|
+
# document_id: "ResourceIdType", # required
|
827
|
+
# version_id: "DocumentVersionIdType", # required
|
828
|
+
# delete_prior_versions: false, # required
|
829
|
+
# }
|
830
|
+
#
|
831
|
+
# @!attribute [rw] authentication_token
|
832
|
+
# Amazon WorkDocs authentication token. Not required when using AWS
|
833
|
+
# administrator credentials to access the API.
|
834
|
+
# @return [String]
|
835
|
+
#
|
836
|
+
# @!attribute [rw] document_id
|
837
|
+
# The ID of a document.
|
838
|
+
# @return [String]
|
839
|
+
#
|
840
|
+
# @!attribute [rw] version_id
|
841
|
+
# The version ID of a document.
|
842
|
+
# @return [String]
|
843
|
+
#
|
844
|
+
# @!attribute [rw] delete_prior_versions
|
845
|
+
# When set to `TRUE`, deletes the specified version and *all prior
|
846
|
+
# versions* of a document.
|
847
|
+
# @return [Boolean]
|
848
|
+
#
|
849
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocumentVersionRequest AWS API Documentation
|
850
|
+
#
|
851
|
+
class DeleteDocumentVersionRequest < Struct.new(
|
852
|
+
:authentication_token,
|
853
|
+
:document_id,
|
854
|
+
:version_id,
|
855
|
+
:delete_prior_versions)
|
856
|
+
SENSITIVE = [:authentication_token]
|
857
|
+
include Aws::Structure
|
858
|
+
end
|
859
|
+
|
821
860
|
# @note When making an API call, you may pass DeleteFolderContentsRequest
|
822
861
|
# data as a hash:
|
823
862
|
#
|
@@ -977,7 +1016,7 @@ module Aws::WorkDocs
|
|
977
1016
|
# user_id: "IdType",
|
978
1017
|
# include_indirect_activities: false,
|
979
1018
|
# limit: 1,
|
980
|
-
# marker: "
|
1019
|
+
# marker: "SearchMarkerType",
|
981
1020
|
# }
|
982
1021
|
#
|
983
1022
|
# @!attribute [rw] authentication_token
|
@@ -1542,7 +1581,28 @@ module Aws::WorkDocs
|
|
1542
1581
|
# @return [String]
|
1543
1582
|
#
|
1544
1583
|
# @!attribute [rw] query
|
1545
|
-
# A query to filter users by user name.
|
1584
|
+
# A query to filter users by user name. Remember the following about
|
1585
|
+
# the `Userids` and `Query` parameters:
|
1586
|
+
#
|
1587
|
+
# * If you don't use either parameter, the API returns a paginated
|
1588
|
+
# list of all users on the site.
|
1589
|
+
#
|
1590
|
+
# * If you use both parameters, the API ignores the `Query` parameter.
|
1591
|
+
#
|
1592
|
+
# * The `Userid` parameter only returns user names that match a
|
1593
|
+
# corresponding user ID.
|
1594
|
+
#
|
1595
|
+
# * The `Query` parameter runs a "prefix" search for users by the
|
1596
|
+
# `GivenName`, `SurName`, or `UserName` fields included in a
|
1597
|
+
# [CreateUser][1] API call. For example, querying on `Ma` returns
|
1598
|
+
# Márcia Oliveira, María García, and Mateo Jackson. If you use
|
1599
|
+
# multiple characters, the API only returns data that matches all
|
1600
|
+
# characters. For example, querying on `Ma J` only returns Mateo
|
1601
|
+
# Jackson.
|
1602
|
+
#
|
1603
|
+
#
|
1604
|
+
#
|
1605
|
+
# [1]: https://docs.aws.amazon.com/workdocs/latest/APIReference/API_CreateUser.html
|
1546
1606
|
# @return [String]
|
1547
1607
|
#
|
1548
1608
|
# @!attribute [rw] include
|
@@ -1783,6 +1843,7 @@ module Aws::WorkDocs
|
|
1783
1843
|
# @return [String]
|
1784
1844
|
#
|
1785
1845
|
# @!attribute [rw] entity_ids
|
1846
|
+
# The IDs of the non-existent resources.
|
1786
1847
|
# @return [Array<String>]
|
1787
1848
|
#
|
1788
1849
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/EntityNotExistsException AWS API Documentation
|
@@ -2291,7 +2352,7 @@ module Aws::WorkDocs
|
|
2291
2352
|
# content_modified_timestamp: Time.now,
|
2292
2353
|
# content_type: "DocumentContentType",
|
2293
2354
|
# document_size_in_bytes: 1,
|
2294
|
-
# parent_folder_id: "ResourceIdType",
|
2355
|
+
# parent_folder_id: "ResourceIdType",
|
2295
2356
|
# }
|
2296
2357
|
#
|
2297
2358
|
# @!attribute [rw] authentication_token
|
@@ -2413,8 +2474,8 @@ module Aws::WorkDocs
|
|
2413
2474
|
include Aws::Structure
|
2414
2475
|
end
|
2415
2476
|
|
2416
|
-
# The maximum of 100,000 folders under the parent folder has
|
2417
|
-
# exceeded.
|
2477
|
+
# The maximum of 100,000 files and folders under the parent folder has
|
2478
|
+
# been exceeded.
|
2418
2479
|
#
|
2419
2480
|
# @!attribute [rw] message
|
2420
2481
|
# @return [String]
|
@@ -2699,6 +2760,32 @@ module Aws::WorkDocs
|
|
2699
2760
|
include Aws::Structure
|
2700
2761
|
end
|
2701
2762
|
|
2763
|
+
# @note When making an API call, you may pass RestoreDocumentVersionsRequest
|
2764
|
+
# data as a hash:
|
2765
|
+
#
|
2766
|
+
# {
|
2767
|
+
# authentication_token: "AuthenticationHeaderType",
|
2768
|
+
# document_id: "ResourceIdType", # required
|
2769
|
+
# }
|
2770
|
+
#
|
2771
|
+
# @!attribute [rw] authentication_token
|
2772
|
+
# Amazon WorkDocs authentication token. Not required when using AWS
|
2773
|
+
# administrator credentials to access the API.
|
2774
|
+
# @return [String]
|
2775
|
+
#
|
2776
|
+
# @!attribute [rw] document_id
|
2777
|
+
# The ID of the document.
|
2778
|
+
# @return [String]
|
2779
|
+
#
|
2780
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RestoreDocumentVersionsRequest AWS API Documentation
|
2781
|
+
#
|
2782
|
+
class RestoreDocumentVersionsRequest < Struct.new(
|
2783
|
+
:authentication_token,
|
2784
|
+
:document_id)
|
2785
|
+
SENSITIVE = [:authentication_token]
|
2786
|
+
include Aws::Structure
|
2787
|
+
end
|
2788
|
+
|
2702
2789
|
# One or more of the dependencies is unavailable.
|
2703
2790
|
#
|
2704
2791
|
# @!attribute [rw] message
|
@@ -3219,7 +3306,7 @@ module Aws::WorkDocs
|
|
3219
3306
|
:time_zone_id,
|
3220
3307
|
:locale,
|
3221
3308
|
:storage)
|
3222
|
-
SENSITIVE = []
|
3309
|
+
SENSITIVE = [:email_address]
|
3223
3310
|
include Aws::Structure
|
3224
3311
|
end
|
3225
3312
|
|
@@ -3253,7 +3340,7 @@ module Aws::WorkDocs
|
|
3253
3340
|
:given_name,
|
3254
3341
|
:surname,
|
3255
3342
|
:email_address)
|
3256
|
-
SENSITIVE = []
|
3343
|
+
SENSITIVE = [:email_address]
|
3257
3344
|
include Aws::Structure
|
3258
3345
|
end
|
3259
3346
|
|
data/lib/aws-sdk-workdocs.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-workdocs/types'
|
15
15
|
require_relative 'aws-sdk-workdocs/client_api'
|
16
|
+
require_relative 'aws-sdk-workdocs/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-workdocs/client'
|
17
18
|
require_relative 'aws-sdk-workdocs/errors'
|
18
19
|
require_relative 'aws-sdk-workdocs/resource'
|
20
|
+
require_relative 'aws-sdk-workdocs/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-workdocs/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-workdocs/endpoints'
|
19
23
|
require_relative 'aws-sdk-workdocs/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon WorkDocs. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-workdocs/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::WorkDocs
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.41.0'
|
52
56
|
|
53
57
|
end
|
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.41.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: 2022-
|
11
|
+
date: 2022-11-14 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.165.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.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-workdocs/client.rb
|
60
60
|
- lib/aws-sdk-workdocs/client_api.rb
|
61
61
|
- lib/aws-sdk-workdocs/customizations.rb
|
62
|
+
- lib/aws-sdk-workdocs/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-workdocs/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-workdocs/endpoints.rb
|
62
65
|
- lib/aws-sdk-workdocs/errors.rb
|
66
|
+
- lib/aws-sdk-workdocs/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-workdocs/resource.rb
|
64
68
|
- lib/aws-sdk-workdocs/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|