aws-sdk-workdocs 1.20.1 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2e571db84aef9c82687b7ab0da7228750d2ab771
4
- data.tar.gz: b2b8d085a96be2c878c2eac8c6db02445006dece
2
+ SHA256:
3
+ metadata.gz: 6d7e6fe8998b228d01c2beb99ba74235ddd56dc9a73b64774cb27a3ff028d2e5
4
+ data.tar.gz: 33aab2a444265f5631b13a013f07ad5bb6a5469be20bc39f599f341ab3b8c98e
5
5
  SHA512:
6
- metadata.gz: a198e25b472226da847b537b382a5074e3a1f078c63dfc4ae45a0192e94219d35565cc5369530c3cee1d9bc0fe4524baef2d245c470f39fa2355938d4c522a0c
7
- data.tar.gz: 5d7075c9ee7ee38c900d84b73bd665d9abe96b3901e9fd32593cea23b6b5426962f8545054d944eda34204ac41241b56b7e4cb3b0592719033c50f2baaabb785
6
+ metadata.gz: 2cc7e5aa2597b7ecc0f88627d50e9dc46c1e17981127422bc834653defbf8dc9903fa184988dce50f935f573c8bb949e53016ba653766e0f629ea79590013eaa
7
+ data.tar.gz: 5bef30e7a53ec1670d0fb951a393ef20166a81e03ce196cc1f0a5729d0e86cc09f3913a72a47a4f6d20a2fcef93b8255bfe86437207916b599be69cf0f0d5cd7
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,17 +26,20 @@ require_relative 'aws-sdk-workdocs/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # work_docs = Aws::WorkDocs::Client.new
30
+ # resp = work_docs.abort_document_version_upload(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from Amazon WorkDocs all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from Amazon WorkDocs are defined in the
37
+ # {Errors} module and all extend {Errors::ServiceError}.
33
38
  #
34
39
  # begin
35
40
  # # do stuff
36
41
  # rescue Aws::WorkDocs::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all Amazon WorkDocs API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-workdocs/customizations'
42
47
  # @service
43
48
  module Aws::WorkDocs
44
49
 
45
- GEM_VERSION = '1.20.1'
50
+ GEM_VERSION = '1.25.0'
46
51
 
47
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,12 +26,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:workdocs)
31
34
 
32
35
  module Aws::WorkDocs
36
+ # An API client for WorkDocs. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::WorkDocs::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
33
48
  class Client < Seahorse::Client::Base
34
49
 
35
50
  include Aws::ClientStubs
@@ -57,6 +72,7 @@ module Aws::WorkDocs
57
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
60
76
  add_plugin(Aws::Plugins::SignatureV4)
61
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
62
78
 
@@ -93,7 +109,7 @@ module Aws::WorkDocs
93
109
  # @option options [required, String] :region
94
110
  # The AWS region to connect to. The configured `:region` is
95
111
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
97
113
  #
98
114
  # * `Aws.config[:region]`
99
115
  # * `ENV['AWS_REGION']`
@@ -108,6 +124,12 @@ module Aws::WorkDocs
108
124
  # When set to `true`, a thread polling for endpoints will be running in
109
125
  # the background every 60 secs (default). Defaults to `false`.
110
126
  #
127
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
128
+ # Used only in `adaptive` retry mode. When true, the request will sleep
129
+ # until there is sufficent client side capacity to retry the request.
130
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
131
+ # not retry instead of sleeping.
132
+ #
111
133
  # @option options [Boolean] :client_side_monitoring (false)
112
134
  # When `true`, client-side metrics will be collected for all API requests from
113
135
  # this client.
@@ -132,6 +154,10 @@ module Aws::WorkDocs
132
154
  # When `true`, an attempt is made to coerce request parameters into
133
155
  # the required types.
134
156
  #
157
+ # @option options [Boolean] :correct_clock_skew (true)
158
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
159
+ # a clock skew correction and retry requests with skewed client clocks.
160
+ #
135
161
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
162
  # Set to true to disable SDK automatically adding host prefix
137
163
  # to default service endpoint when available.
@@ -139,7 +165,7 @@ module Aws::WorkDocs
139
165
  # @option options [String] :endpoint
140
166
  # The client endpoint is normally constructed from the `:region`
141
167
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
169
  #
144
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +180,7 @@ module Aws::WorkDocs
154
180
  # requests fetching endpoints information. Defaults to 60 sec.
155
181
  #
156
182
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
184
  #
159
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
186
  # The log formatter.
@@ -166,15 +192,29 @@ module Aws::WorkDocs
166
192
  # The Logger instance to send log messages to. If this option
167
193
  # is not set, logging will be disabled.
168
194
  #
195
+ # @option options [Integer] :max_attempts (3)
196
+ # An integer representing the maximum number attempts that will be made for
197
+ # a single request, including the initial attempt. For example,
198
+ # setting this value to 5 will result in a request being retried up to
199
+ # 4 times. Used in `standard` and `adaptive` retry modes.
200
+ #
169
201
  # @option options [String] :profile ("default")
170
202
  # Used when loading credentials from the shared credentials file
171
203
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
204
  #
205
+ # @option options [Proc] :retry_backoff
206
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
207
+ # This option is only used in the `legacy` retry mode.
208
+ #
173
209
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
210
+ # The base delay in seconds used by the default backoff function. This option
211
+ # is only used in the `legacy` retry mode.
175
212
  #
176
213
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
214
+ # A delay randomiser function used by the default backoff function.
215
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
216
+ # otherwise a Proc that takes and returns a number. This option is only used
217
+ # in the `legacy` retry mode.
178
218
  #
179
219
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
220
  #
@@ -182,11 +222,30 @@ module Aws::WorkDocs
182
222
  # The maximum number of times to retry failed requests. Only
183
223
  # ~ 500 level server errors and certain ~ 400 level client errors
184
224
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
225
+ # checksum errors, networking errors, timeout errors, auth errors,
226
+ # endpoint discovery, and errors from expired credentials.
227
+ # This option is only used in the `legacy` retry mode.
187
228
  #
188
229
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
230
+ # The maximum number of seconds to delay between retries (0 for no limit)
231
+ # used by the default backoff function. This option is only used in the
232
+ # `legacy` retry mode.
233
+ #
234
+ # @option options [String] :retry_mode ("legacy")
235
+ # Specifies which retry algorithm to use. Values are:
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
190
249
  #
191
250
  # @option options [String] :secret_access_key
192
251
  #
@@ -209,16 +268,15 @@ module Aws::WorkDocs
209
268
  # requests through. Formatted like 'http://proxy.com:123'.
210
269
  #
211
270
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
271
+ # seconds to wait when opening a HTTP session before raising a
213
272
  # `Timeout::Error`.
214
273
  #
215
274
  # @option options [Integer] :http_read_timeout (60) The default
216
275
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
276
+ # safely be set per-request on the session.
219
277
  #
220
278
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
279
+ # seconds a connection is allowed to sit idle before it is
222
280
  # considered stale. Stale connections are closed and removed
223
281
  # from the pool before making a request.
224
282
  #
@@ -227,7 +285,7 @@ module Aws::WorkDocs
227
285
  # request body. This option has no effect unless the request has
228
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
287
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
288
+ # request on the session.
231
289
  #
232
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
291
  # HTTP debug output will be sent to the `:logger`.
@@ -1253,6 +1311,8 @@ module Aws::WorkDocs
1253
1311
  # * {Types::DescribeDocumentVersionsResponse#document_versions #document_versions} => Array&lt;Types::DocumentVersionMetadata&gt;
1254
1312
  # * {Types::DescribeDocumentVersionsResponse#marker #marker} => String
1255
1313
  #
1314
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1315
+ #
1256
1316
  # @example Request syntax with placeholder values
1257
1317
  #
1258
1318
  # resp = client.describe_document_versions({
@@ -1334,6 +1394,8 @@ module Aws::WorkDocs
1334
1394
  # * {Types::DescribeFolderContentsResponse#documents #documents} => Array&lt;Types::DocumentMetadata&gt;
1335
1395
  # * {Types::DescribeFolderContentsResponse#marker #marker} => String
1336
1396
  #
1397
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1398
+ #
1337
1399
  # @example Request syntax with placeholder values
1338
1400
  #
1339
1401
  # resp = client.describe_folder_contents({
@@ -1652,6 +1714,8 @@ module Aws::WorkDocs
1652
1714
  # * {Types::DescribeUsersResponse#total_number_of_users #total_number_of_users} => Integer
1653
1715
  # * {Types::DescribeUsersResponse#marker #marker} => String
1654
1716
  #
1717
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1718
+ #
1655
1719
  # @example Request syntax with placeholder values
1656
1720
  #
1657
1721
  # resp = client.describe_users({
@@ -2497,7 +2561,7 @@ module Aws::WorkDocs
2497
2561
  params: params,
2498
2562
  config: config)
2499
2563
  context[:gem_name] = 'aws-sdk-workdocs'
2500
- context[:gem_version] = '1.20.1'
2564
+ context[:gem_version] = '1.25.0'
2501
2565
  Seahorse::Client::Request.new(handlers, context)
2502
2566
  end
2503
2567
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,6 +8,53 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::WorkDocs
11
+
12
+ # When WorkDocs returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::WorkDocs::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all WorkDocs errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::WorkDocs::Errors::ServiceError
20
+ # # rescues all WorkDocs API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {ConcurrentModificationException}
31
+ # * {ConflictingOperationException}
32
+ # * {CustomMetadataLimitExceededException}
33
+ # * {DeactivatingLastSystemUserException}
34
+ # * {DocumentLockedForCommentsException}
35
+ # * {DraftUploadOutOfSyncException}
36
+ # * {EntityAlreadyExistsException}
37
+ # * {EntityNotExistsException}
38
+ # * {FailedDependencyException}
39
+ # * {IllegalUserStateException}
40
+ # * {InvalidArgumentException}
41
+ # * {InvalidCommentOperationException}
42
+ # * {InvalidOperationException}
43
+ # * {InvalidPasswordException}
44
+ # * {LimitExceededException}
45
+ # * {ProhibitedStateException}
46
+ # * {RequestedEntityTooLargeException}
47
+ # * {ResourceAlreadyCheckedOutException}
48
+ # * {ServiceUnavailableException}
49
+ # * {StorageLimitExceededException}
50
+ # * {StorageLimitWillExceedException}
51
+ # * {TooManyLabelsException}
52
+ # * {TooManySubscriptionsException}
53
+ # * {UnauthorizedOperationException}
54
+ # * {UnauthorizedResourceAccessException}
55
+ #
56
+ # Additionally, error classes are dynamically generated for service errors based on the error code
57
+ # if they are not defined above.
9
58
  module Errors
10
59
 
11
60
  extend Aws::Errors::DynamicErrors
@@ -23,7 +72,6 @@ module Aws::WorkDocs
23
72
  def message
24
73
  @message || @data[:message]
25
74
  end
26
-
27
75
  end
28
76
 
29
77
  class ConflictingOperationException < ServiceError
@@ -39,7 +87,6 @@ module Aws::WorkDocs
39
87
  def message
40
88
  @message || @data[:message]
41
89
  end
42
-
43
90
  end
44
91
 
45
92
  class CustomMetadataLimitExceededException < ServiceError
@@ -55,7 +102,6 @@ module Aws::WorkDocs
55
102
  def message
56
103
  @message || @data[:message]
57
104
  end
58
-
59
105
  end
60
106
 
61
107
  class DeactivatingLastSystemUserException < ServiceError
@@ -66,7 +112,6 @@ module Aws::WorkDocs
66
112
  def initialize(context, message, data = Aws::EmptyStructure.new)
67
113
  super(context, message, data)
68
114
  end
69
-
70
115
  end
71
116
 
72
117
  class DocumentLockedForCommentsException < ServiceError
@@ -82,7 +127,6 @@ module Aws::WorkDocs
82
127
  def message
83
128
  @message || @data[:message]
84
129
  end
85
-
86
130
  end
87
131
 
88
132
  class DraftUploadOutOfSyncException < ServiceError
@@ -98,7 +142,6 @@ module Aws::WorkDocs
98
142
  def message
99
143
  @message || @data[:message]
100
144
  end
101
-
102
145
  end
103
146
 
104
147
  class EntityAlreadyExistsException < ServiceError
@@ -114,7 +157,6 @@ module Aws::WorkDocs
114
157
  def message
115
158
  @message || @data[:message]
116
159
  end
117
-
118
160
  end
119
161
 
120
162
  class EntityNotExistsException < ServiceError
@@ -135,7 +177,6 @@ module Aws::WorkDocs
135
177
  def entity_ids
136
178
  @data[:entity_ids]
137
179
  end
138
-
139
180
  end
140
181
 
141
182
  class FailedDependencyException < ServiceError
@@ -151,7 +192,6 @@ module Aws::WorkDocs
151
192
  def message
152
193
  @message || @data[:message]
153
194
  end
154
-
155
195
  end
156
196
 
157
197
  class IllegalUserStateException < ServiceError
@@ -167,7 +207,6 @@ module Aws::WorkDocs
167
207
  def message
168
208
  @message || @data[:message]
169
209
  end
170
-
171
210
  end
172
211
 
173
212
  class InvalidArgumentException < ServiceError
@@ -183,7 +222,6 @@ module Aws::WorkDocs
183
222
  def message
184
223
  @message || @data[:message]
185
224
  end
186
-
187
225
  end
188
226
 
189
227
  class InvalidCommentOperationException < ServiceError
@@ -199,7 +237,6 @@ module Aws::WorkDocs
199
237
  def message
200
238
  @message || @data[:message]
201
239
  end
202
-
203
240
  end
204
241
 
205
242
  class InvalidOperationException < ServiceError
@@ -215,7 +252,6 @@ module Aws::WorkDocs
215
252
  def message
216
253
  @message || @data[:message]
217
254
  end
218
-
219
255
  end
220
256
 
221
257
  class InvalidPasswordException < ServiceError
@@ -231,7 +267,6 @@ module Aws::WorkDocs
231
267
  def message
232
268
  @message || @data[:message]
233
269
  end
234
-
235
270
  end
236
271
 
237
272
  class LimitExceededException < ServiceError
@@ -247,7 +282,6 @@ module Aws::WorkDocs
247
282
  def message
248
283
  @message || @data[:message]
249
284
  end
250
-
251
285
  end
252
286
 
253
287
  class ProhibitedStateException < ServiceError
@@ -263,7 +297,6 @@ module Aws::WorkDocs
263
297
  def message
264
298
  @message || @data[:message]
265
299
  end
266
-
267
300
  end
268
301
 
269
302
  class RequestedEntityTooLargeException < ServiceError
@@ -279,7 +312,6 @@ module Aws::WorkDocs
279
312
  def message
280
313
  @message || @data[:message]
281
314
  end
282
-
283
315
  end
284
316
 
285
317
  class ResourceAlreadyCheckedOutException < ServiceError
@@ -295,7 +327,6 @@ module Aws::WorkDocs
295
327
  def message
296
328
  @message || @data[:message]
297
329
  end
298
-
299
330
  end
300
331
 
301
332
  class ServiceUnavailableException < ServiceError
@@ -311,7 +342,6 @@ module Aws::WorkDocs
311
342
  def message
312
343
  @message || @data[:message]
313
344
  end
314
-
315
345
  end
316
346
 
317
347
  class StorageLimitExceededException < ServiceError
@@ -327,7 +357,6 @@ module Aws::WorkDocs
327
357
  def message
328
358
  @message || @data[:message]
329
359
  end
330
-
331
360
  end
332
361
 
333
362
  class StorageLimitWillExceedException < ServiceError
@@ -343,7 +372,6 @@ module Aws::WorkDocs
343
372
  def message
344
373
  @message || @data[:message]
345
374
  end
346
-
347
375
  end
348
376
 
349
377
  class TooManyLabelsException < ServiceError
@@ -359,7 +387,6 @@ module Aws::WorkDocs
359
387
  def message
360
388
  @message || @data[:message]
361
389
  end
362
-
363
390
  end
364
391
 
365
392
  class TooManySubscriptionsException < ServiceError
@@ -375,7 +402,6 @@ module Aws::WorkDocs
375
402
  def message
376
403
  @message || @data[:message]
377
404
  end
378
-
379
405
  end
380
406
 
381
407
  class UnauthorizedOperationException < ServiceError
@@ -386,7 +412,6 @@ module Aws::WorkDocs
386
412
  def initialize(context, message, data = Aws::EmptyStructure.new)
387
413
  super(context, message, data)
388
414
  end
389
-
390
415
  end
391
416
 
392
417
  class UnauthorizedResourceAccessException < ServiceError
@@ -402,7 +427,6 @@ module Aws::WorkDocs
402
427
  def message
403
428
  @message || @data[:message]
404
429
  end
405
-
406
430
  end
407
431
 
408
432
  end