Skip to content

Commit 7471a76

Browse files
feat(generated): update API definition to 1.0.0-dev0.1.31
Generated SDK source code using: - Generator version 3.108.0 - Specification version 1.0.0-dev0.1.31 - Automation (cloudant-sdks) version 48efa51
1 parent 64da152 commit 7471a76

18 files changed

Lines changed: 108 additions & 85 deletions

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/AllDocsQuery.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ public Builder newBuilder() {
289289
/**
290290
* Gets the attEncodingInfo.
291291
*
292-
* Parameter to specify whether to include the encoding information in attachment stubs if the particular attachment
293-
* is compressed.
292+
* Parameter to specify whether to include the encoding information for compressed attachments. This only applies when
293+
* requesting documents in the response.
294294
*
295295
* @return the attEncodingInfo
296296
*/
@@ -301,7 +301,8 @@ public Boolean attEncodingInfo() {
301301
/**
302302
* Gets the attachments.
303303
*
304-
* Parameter to specify whether to include attachments bodies in a response.
304+
* Parameter to specify whether to include attachment content in included document content or only the attachment
305+
* metadata. This only applies when requesting documents in the response.
305306
*
306307
* @return the attachments
307308
*/
@@ -312,8 +313,8 @@ public Boolean attachments() {
312313
/**
313314
* Gets the conflicts.
314315
*
315-
* Parameter to specify whether to include a list of conflicted revisions in each returned document. Active only when
316-
* `include_docs` is `true`.
316+
* Parameter to specify whether to include a list of conflicted revisions in each returned document. This only applies
317+
* when requesting documents in the response.
317318
*
318319
* @return the conflicts
319320
*/
@@ -346,7 +347,7 @@ public Boolean includeDocs() {
346347
/**
347348
* Gets the inclusiveEnd.
348349
*
349-
* Parameter to specify whether the specified end key should be included in the result.
350+
* Parameter to specify whether to include the specified end key in the result.
350351
*
351352
* @return the inclusiveEnd
352353
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/Attachment.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,12 @@ public String contentType() {
216216
/**
217217
* Gets the data.
218218
*
219-
* Base64-encoded content. Available if attachment content is requested by using the query parameters
220-
* `attachments=true` or `atts_since`. Note that when used with a view or changes feed `include_docs` must also be
221-
* `true`.
219+
* Base64-encoded content. Available when requested with `attachments=true` or `atts_since`. When retrieving
220+
* attachments for a single document this field is only avialable when accepting an application/json response. For
221+
* multipart responses each attachment is instead included in a separate part of the response (see `follows`).
222+
*
223+
* Note that SDK deserialization of documents with included attachments automatically decodes the Base64 encoded
224+
* attachment content string to bytes.
222225
*
223226
* @return the data
224227
*/
@@ -229,8 +232,8 @@ public byte[] data() {
229232
/**
230233
* Gets the digest.
231234
*
232-
* Content hash digest. It starts with prefix which announce hash type (e.g. `md5-`) and continues with Base64-encoded
233-
* hash digest.
235+
* Content hash digest. It starts with prefix declaring the hash type, `md5-` for example, and continues with the
236+
* Base64-encoded hash digest.
234237
*
235238
* @return the digest
236239
*/
@@ -241,9 +244,8 @@ public String digest() {
241244
/**
242245
* Gets the encodedLength.
243246
*
244-
* Compressed attachment size in bytes. Available if content_type was in list of compressible types when the
245-
* attachment was added and the query parameter `att_encoding_info` is `true`. Note that when used with a view or
246-
* changes feed `include_docs` must also be `true`.
247+
* Compressed attachment size in bytes. Available for compressed attachments when requested with `att_encoding_info`.
248+
* The database compresses attachments if the content_type is in the list of compressible types when added.
247249
*
248250
* @return the encodedLength
249251
*/
@@ -254,9 +256,8 @@ public Long encodedLength() {
254256
/**
255257
* Gets the encoding.
256258
*
257-
* Compression codec. Available if content_type was in list of compressible types when the attachment was added and
258-
* the and the query parameter `att_encoding_info` is `true`. Note that when used with a view or changes feed
259-
* `include_docs` must also be `true`.
259+
* Compression codec. Available for compressed attachments when requested with `att_encoding_info`. The database
260+
* compresses attachments if the content_type is in the list of compressible types when added.
260261
*
261262
* @return the encoding
262263
*/
@@ -289,7 +290,7 @@ public Long length() {
289290
/**
290291
* Gets the revpos.
291292
*
292-
* Revision number when attachment was added.
293+
* Revision number at attachment addition.
293294
*
294295
* @return the revpos
295296
*/
@@ -300,7 +301,7 @@ public Long revpos() {
300301
/**
301302
* Gets the stub.
302303
*
303-
* Has `true` value if object contains stub info and no content. Otherwise omitted in response.
304+
* Has `true` value if object has stub attachment metadata, but not attachment content. Otherwise omitted in response.
304305
*
305306
* @return the stub
306307
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/ContentInformationSizes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public Long getActive() {
4242
*
4343
* The total uncompressed size of the content, in bytes.
4444
*
45+
* This is the value used for IBM Cloudant storage billing.
46+
*
4547
* @return the external
4648
*/
4749
public Long getExternal() {

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/DesignDocumentOptions.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ public Builder newBuilder() {
8282
/**
8383
* Gets the partitioned.
8484
*
85-
* Whether this design document describes partitioned or global indexes.
85+
* Whether this design document describes partitioned or global indexes. Set this option to `false` for a design
86+
* document that describes global indexes in a partitioned database. A design document describes either global or
87+
* partitioned indexes, but not both. By default, for a partitioned database this option is `true` and the design
88+
* document describes partitioned indexes for queries on a single partition at a time. When set to `false` this option
89+
* allows creating global indexes in this design document for queries spanning many partitions. For non-partitioned
90+
* databases, the default is `false` and design documents default to global. Only partitioned databases can have
91+
* partitioned indexes.
8692
*
8793
* @return the partitioned
8894
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/GetAllDbsOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public Builder newBuilder() {
142142
/**
143143
* Gets the descending.
144144
*
145-
* Query parameter to specify whether to return the documents in descending by key order.
145+
* Query parameter to specify whether to return rows in descending by key order.
146146
*
147147
* @return the descending
148148
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/GetDbUpdatesOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public Builder newBuilder() {
171171
/**
172172
* Gets the descending.
173173
*
174-
* Query parameter to specify whether to return the documents in descending by key order.
174+
* Query parameter to specify whether to return rows in descending by key order.
175175
*
176176
* @return the descending
177177
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/GetDesignDocumentOptions.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ public String ifNoneMatch() {
311311
/**
312312
* Gets the attachments.
313313
*
314-
* Query parameter to specify whether to include attachments bodies in a response.
314+
* Query parameter to specify whether to include attachment content in the response. Note that when used with a
315+
* view-style query or changes feed this only applies when requesting documents in the response.
315316
*
316317
* @return the attachments
317318
*/
@@ -322,8 +323,8 @@ public Boolean attachments() {
322323
/**
323324
* Gets the attEncodingInfo.
324325
*
325-
* Query parameter to specify whether to include the encoding information in attachment stubs if the particular
326-
* attachment is compressed.
326+
* Query parameter to specify whether to include the encoding information for compressed attachments. Note that when
327+
* used with a view-style query or changes feed this only applies when requesting documents in the response.
327328
*
328329
* @return the attEncodingInfo
329330
*/
@@ -334,8 +335,8 @@ public Boolean attEncodingInfo() {
334335
/**
335336
* Gets the conflicts.
336337
*
337-
* Query parameter to specify whether to include a list of conflicted revisions in each returned document. Active only
338-
* when `include_docs` is `true`.
338+
* Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note that
339+
* when used with a view-style query or changes feed this only applies when requesting documents in the response.
339340
*
340341
* @return the conflicts
341342
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/GetDocumentOptions.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ public String ifNoneMatch() {
310310
/**
311311
* Gets the attachments.
312312
*
313-
* Query parameter to specify whether to include attachments bodies in a response.
313+
* Query parameter to specify whether to include attachment content in the response. Note that when used with a
314+
* view-style query or changes feed this only applies when requesting documents in the response.
314315
*
315316
* @return the attachments
316317
*/
@@ -321,8 +322,8 @@ public Boolean attachments() {
321322
/**
322323
* Gets the attEncodingInfo.
323324
*
324-
* Query parameter to specify whether to include the encoding information in attachment stubs if the particular
325-
* attachment is compressed.
325+
* Query parameter to specify whether to include the encoding information for compressed attachments. Note that when
326+
* used with a view-style query or changes feed this only applies when requesting documents in the response.
326327
*
327328
* @return the attEncodingInfo
328329
*/
@@ -333,8 +334,8 @@ public Boolean attEncodingInfo() {
333334
/**
334335
* Gets the conflicts.
335336
*
336-
* Query parameter to specify whether to include a list of conflicted revisions in each returned document. Active only
337-
* when `include_docs` is `true`.
337+
* Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note that
338+
* when used with a view-style query or changes feed this only applies when requesting documents in the response.
338339
*
339340
* @return the conflicts
340341
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/GetLocalDocumentOptions.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ public String ifNoneMatch() {
231231
/**
232232
* Gets the attachments.
233233
*
234-
* Query parameter to specify whether to include attachments bodies in a response.
234+
* Query parameter to specify whether to include attachment content in the response. Note that when used with a
235+
* view-style query or changes feed this only applies when requesting documents in the response.
235236
*
236237
* @return the attachments
237238
*/
@@ -242,8 +243,8 @@ public Boolean attachments() {
242243
/**
243244
* Gets the attEncodingInfo.
244245
*
245-
* Query parameter to specify whether to include the encoding information in attachment stubs if the particular
246-
* attachment is compressed.
246+
* Query parameter to specify whether to include the encoding information for compressed attachments. Note that when
247+
* used with a view-style query or changes feed this only applies when requesting documents in the response.
247248
*
248249
* @return the attEncodingInfo
249250
*/

modules/cloudant/src/main/java/com/ibm/cloud/cloudant/v1/model/GetReplicationDocumentOptions.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ public String ifNoneMatch() {
280280
/**
281281
* Gets the attachments.
282282
*
283-
* Query parameter to specify whether to include attachments bodies in a response.
283+
* Query parameter to specify whether to include attachment content in the response. Note that when used with a
284+
* view-style query or changes feed this only applies when requesting documents in the response.
284285
*
285286
* @return the attachments
286287
*/
@@ -291,8 +292,8 @@ public Boolean attachments() {
291292
/**
292293
* Gets the attEncodingInfo.
293294
*
294-
* Query parameter to specify whether to include the encoding information in attachment stubs if the particular
295-
* attachment is compressed.
295+
* Query parameter to specify whether to include the encoding information for compressed attachments. Note that when
296+
* used with a view-style query or changes feed this only applies when requesting documents in the response.
296297
*
297298
* @return the attEncodingInfo
298299
*/
@@ -303,8 +304,8 @@ public Boolean attEncodingInfo() {
303304
/**
304305
* Gets the conflicts.
305306
*
306-
* Query parameter to specify whether to include a list of conflicted revisions in each returned document. Active only
307-
* when `include_docs` is `true`.
307+
* Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note that
308+
* when used with a view-style query or changes feed this only applies when requesting documents in the response.
308309
*
309310
* @return the conflicts
310311
*/

0 commit comments

Comments
 (0)