@ibm-cloud/cloudant 0.11.0 → 0.12.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.
- package/README.md +7 -7
- package/cloudant/v1.d.ts +285 -178
- package/cloudant/v1.js +392 -213
- package/cloudant/v1.js.map +1 -1
- package/package.json +12 -13
package/cloudant/v1.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* (C) Copyright IBM Corp.
|
|
3
|
+
* (C) Copyright IBM Corp. 2025.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -120,45 +120,6 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
120
120
|
};
|
|
121
121
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ServerInformation.deserialize);
|
|
122
122
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Retrieve one or more UUIDs.
|
|
125
|
-
*
|
|
126
|
-
* Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that
|
|
127
|
-
* provides a list of UUIDs.
|
|
128
|
-
*
|
|
129
|
-
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
130
|
-
*
|
|
131
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
132
|
-
* @param {number} [params.count] - Query parameter to specify the number of UUIDs to return.
|
|
133
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
134
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
|
|
135
|
-
*/
|
|
136
|
-
getUuids(params) {
|
|
137
|
-
const _params = { ...params };
|
|
138
|
-
const _requiredParams = [];
|
|
139
|
-
const _validParams = ['count', 'headers'];
|
|
140
|
-
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
141
|
-
if (_validationErrors) {
|
|
142
|
-
return Promise.reject(_validationErrors);
|
|
143
|
-
}
|
|
144
|
-
const query = {
|
|
145
|
-
'count': _params.count,
|
|
146
|
-
};
|
|
147
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getUuids');
|
|
148
|
-
const parameters = {
|
|
149
|
-
options: {
|
|
150
|
-
url: '/_uuids',
|
|
151
|
-
method: 'GET',
|
|
152
|
-
qs: query,
|
|
153
|
-
},
|
|
154
|
-
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
155
|
-
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
156
|
-
'Accept': 'application/json',
|
|
157
|
-
}, _params.headers),
|
|
158
|
-
}),
|
|
159
|
-
};
|
|
160
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.UuidsResult.deserialize);
|
|
161
|
-
}
|
|
162
123
|
/**
|
|
163
124
|
* Retrieve provisioned throughput capacity information.
|
|
164
125
|
*
|
|
@@ -230,6 +191,45 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
230
191
|
};
|
|
231
192
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.CapacityThroughputInformation.deserialize);
|
|
232
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Retrieve one or more UUIDs.
|
|
196
|
+
*
|
|
197
|
+
* Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that
|
|
198
|
+
* provides a list of UUIDs.
|
|
199
|
+
*
|
|
200
|
+
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
201
|
+
*
|
|
202
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
203
|
+
* @param {number} [params.count] - Query parameter to specify the number of UUIDs to return.
|
|
204
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
205
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.UuidsResult>>}
|
|
206
|
+
*/
|
|
207
|
+
getUuids(params) {
|
|
208
|
+
const _params = { ...params };
|
|
209
|
+
const _requiredParams = [];
|
|
210
|
+
const _validParams = ['count', 'headers'];
|
|
211
|
+
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
212
|
+
if (_validationErrors) {
|
|
213
|
+
return Promise.reject(_validationErrors);
|
|
214
|
+
}
|
|
215
|
+
const query = {
|
|
216
|
+
'count': _params.count,
|
|
217
|
+
};
|
|
218
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getUuids');
|
|
219
|
+
const parameters = {
|
|
220
|
+
options: {
|
|
221
|
+
url: '/_uuids',
|
|
222
|
+
method: 'GET',
|
|
223
|
+
qs: query,
|
|
224
|
+
},
|
|
225
|
+
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
226
|
+
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
227
|
+
'Accept': 'application/json',
|
|
228
|
+
}, _params.headers),
|
|
229
|
+
}),
|
|
230
|
+
};
|
|
231
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.UuidsResult.deserialize);
|
|
232
|
+
}
|
|
233
233
|
/*************************
|
|
234
234
|
* changes
|
|
235
235
|
************************/
|
|
@@ -4281,10 +4281,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4281
4281
|
* @param {string[]} [params.groupSort] - This field defines the order of the groups in a search that uses
|
|
4282
4282
|
* group_field. The default sort order is relevance. This field can have the same values as the sort field, so single
|
|
4283
4283
|
* fields and arrays of fields are supported. This option is only available when making global queries.
|
|
4284
|
-
* @param {JsonObject} [params.ranges] -
|
|
4285
|
-
*
|
|
4286
|
-
*
|
|
4287
|
-
*
|
|
4284
|
+
* @param {JsonObject} [params.ranges] - Object mapping faceted, numeric search field names to the required ranges.
|
|
4285
|
+
* Each key is a field name and each value is another object defining the ranges by mapping range name keys to string
|
|
4286
|
+
* values describing the numeric ranges, for example "[0 TO 10]". This option is only available when making global
|
|
4287
|
+
* queries.
|
|
4288
4288
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4289
4289
|
* @returns {Promise<CloudantV1.Response<CloudantV1.SearchResult>>}
|
|
4290
4290
|
*/
|
|
@@ -4391,10 +4391,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4391
4391
|
* @param {string[]} [params.groupSort] - This field defines the order of the groups in a search that uses
|
|
4392
4392
|
* group_field. The default sort order is relevance. This field can have the same values as the sort field, so single
|
|
4393
4393
|
* fields and arrays of fields are supported. This option is only available when making global queries.
|
|
4394
|
-
* @param {JsonObject} [params.ranges] -
|
|
4395
|
-
*
|
|
4396
|
-
*
|
|
4397
|
-
*
|
|
4394
|
+
* @param {JsonObject} [params.ranges] - Object mapping faceted, numeric search field names to the required ranges.
|
|
4395
|
+
* Each key is a field name and each value is another object defining the ranges by mapping range name keys to string
|
|
4396
|
+
* values describing the numeric ranges, for example "[0 TO 10]". This option is only available when making global
|
|
4397
|
+
* queries.
|
|
4398
4398
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4399
4399
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
4400
4400
|
*/
|
|
@@ -4449,6 +4449,47 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4449
4449
|
};
|
|
4450
4450
|
return this.createRequest(parameters);
|
|
4451
4451
|
}
|
|
4452
|
+
/**
|
|
4453
|
+
* Retrieve information about the search index disk size.
|
|
4454
|
+
*
|
|
4455
|
+
* Retrieve size of the search index on disk.
|
|
4456
|
+
*
|
|
4457
|
+
* @param {Object} params - The parameters to send to the service.
|
|
4458
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
4459
|
+
* @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
|
|
4460
|
+
* design document ID excluding the `_design/` prefix.
|
|
4461
|
+
* @param {string} params.index - Path parameter to specify the index name.
|
|
4462
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4463
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.SearchDiskSizeInformation>>}
|
|
4464
|
+
*/
|
|
4465
|
+
getSearchDiskSize(params) {
|
|
4466
|
+
const _params = { ...params };
|
|
4467
|
+
const _requiredParams = ['db', 'ddoc', 'index'];
|
|
4468
|
+
const _validParams = ['db', 'ddoc', 'index', 'headers'];
|
|
4469
|
+
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4470
|
+
if (_validationErrors) {
|
|
4471
|
+
return Promise.reject(_validationErrors);
|
|
4472
|
+
}
|
|
4473
|
+
const path = {
|
|
4474
|
+
'db': _params.db,
|
|
4475
|
+
'ddoc': _params.ddoc,
|
|
4476
|
+
'index': _params.index,
|
|
4477
|
+
};
|
|
4478
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getSearchDiskSize');
|
|
4479
|
+
const parameters = {
|
|
4480
|
+
options: {
|
|
4481
|
+
url: '/{db}/_design/{ddoc}/_search_disk_size/{index}',
|
|
4482
|
+
method: 'GET',
|
|
4483
|
+
path,
|
|
4484
|
+
},
|
|
4485
|
+
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
4486
|
+
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
4487
|
+
'Accept': 'application/json',
|
|
4488
|
+
}, _params.headers),
|
|
4489
|
+
}),
|
|
4490
|
+
};
|
|
4491
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.SearchDiskSizeInformation.deserialize);
|
|
4492
|
+
}
|
|
4452
4493
|
/**
|
|
4453
4494
|
* Retrieve information about a search index.
|
|
4454
4495
|
*
|
|
@@ -4494,14 +4535,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4494
4535
|
* replication
|
|
4495
4536
|
************************/
|
|
4496
4537
|
/**
|
|
4497
|
-
* Retrieve the HTTP headers for a replication
|
|
4538
|
+
* Retrieve the HTTP headers for a persistent replication.
|
|
4498
4539
|
*
|
|
4499
4540
|
* Retrieves the HTTP headers containing minimal amount of information about the specified replication document from
|
|
4500
4541
|
* the `_replicator` database. The method supports the same query arguments as the `GET /_replicator/{doc_id}`
|
|
4501
4542
|
* method, but only headers like content length and the revision (ETag header) are returned.
|
|
4502
4543
|
*
|
|
4503
4544
|
* @param {Object} params - The parameters to send to the service.
|
|
4504
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
4545
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
4546
|
+
* `_replicator` database.
|
|
4505
4547
|
* @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
|
|
4506
4548
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4507
4549
|
* @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
|
|
@@ -4604,12 +4646,55 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4604
4646
|
return this.createRequest(parameters);
|
|
4605
4647
|
}
|
|
4606
4648
|
/**
|
|
4607
|
-
*
|
|
4649
|
+
* Create a persistent replication with a generated ID.
|
|
4650
|
+
*
|
|
4651
|
+
* Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing
|
|
4652
|
+
* replication.
|
|
4653
|
+
*
|
|
4654
|
+
* @param {Object} params - The parameters to send to the service.
|
|
4655
|
+
* @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
|
|
4656
|
+
* @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
|
|
4657
|
+
* with a HTTP 202 Accepted response code immediately.
|
|
4658
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4659
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
4660
|
+
*/
|
|
4661
|
+
postReplicator(params) {
|
|
4662
|
+
const _params = { ...params };
|
|
4663
|
+
const _requiredParams = ['replicationDocument'];
|
|
4664
|
+
const _validParams = ['replicationDocument', 'batch', 'headers'];
|
|
4665
|
+
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4666
|
+
if (_validationErrors) {
|
|
4667
|
+
return Promise.reject(_validationErrors);
|
|
4668
|
+
}
|
|
4669
|
+
const body = CloudantV1.ReplicationDocument.serialize(_params.replicationDocument);
|
|
4670
|
+
const query = {
|
|
4671
|
+
'batch': _params.batch,
|
|
4672
|
+
};
|
|
4673
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postReplicator');
|
|
4674
|
+
const parameters = {
|
|
4675
|
+
options: {
|
|
4676
|
+
url: '/_replicator',
|
|
4677
|
+
method: 'POST',
|
|
4678
|
+
body,
|
|
4679
|
+
qs: query,
|
|
4680
|
+
},
|
|
4681
|
+
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
4682
|
+
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
4683
|
+
'Accept': 'application/json',
|
|
4684
|
+
'Content-Type': 'application/json',
|
|
4685
|
+
}, _params.headers),
|
|
4686
|
+
}),
|
|
4687
|
+
};
|
|
4688
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.DocumentResult.deserialize);
|
|
4689
|
+
}
|
|
4690
|
+
/**
|
|
4691
|
+
* Cancel a persistent replication.
|
|
4608
4692
|
*
|
|
4609
4693
|
* Cancels a replication by deleting the document that describes it from the `_replicator` database.
|
|
4610
4694
|
*
|
|
4611
4695
|
* @param {Object} params - The parameters to send to the service.
|
|
4612
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
4696
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
4697
|
+
* `_replicator` database.
|
|
4613
4698
|
* @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
|
|
4614
4699
|
* @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
|
|
4615
4700
|
* with a HTTP 202 Accepted response code immediately.
|
|
@@ -4650,13 +4735,14 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4650
4735
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.DocumentResult.deserialize);
|
|
4651
4736
|
}
|
|
4652
4737
|
/**
|
|
4653
|
-
* Retrieve a replication
|
|
4738
|
+
* Retrieve the configuration for a persistent replication.
|
|
4654
4739
|
*
|
|
4655
4740
|
* Retrieves a replication document from the `_replicator` database to view the configuration of the replication. The
|
|
4656
4741
|
* status of the replication is no longer recorded in the document but can be checked via the replication scheduler.
|
|
4657
4742
|
*
|
|
4658
4743
|
* @param {Object} params - The parameters to send to the service.
|
|
4659
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
4744
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
4745
|
+
* `_replicator` database.
|
|
4660
4746
|
* @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
|
|
4661
4747
|
* @param {boolean} [params.attachments] - Query parameter to specify whether to include attachments bodies in a
|
|
4662
4748
|
* response.
|
|
@@ -4721,13 +4807,14 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4721
4807
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ReplicationDocument.deserialize);
|
|
4722
4808
|
}
|
|
4723
4809
|
/**
|
|
4724
|
-
* Create or modify a
|
|
4810
|
+
* Create or modify a persistent replication.
|
|
4725
4811
|
*
|
|
4726
4812
|
* Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing
|
|
4727
4813
|
* replication.
|
|
4728
4814
|
*
|
|
4729
4815
|
* @param {Object} params - The parameters to send to the service.
|
|
4730
|
-
* @param {string} params.docId - Path parameter to specify the
|
|
4816
|
+
* @param {string} params.docId - Path parameter to specify the ID of the stored replication configuration in the
|
|
4817
|
+
* `_replicator` database.
|
|
4731
4818
|
* @param {ReplicationDocument} params.replicationDocument - HTTP request body for replication operations.
|
|
4732
4819
|
* @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
|
|
4733
4820
|
* @param {string} [params.batch] - Query parameter to specify whether to store in batch mode. The server will respond
|
|
@@ -4976,34 +5063,29 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4976
5063
|
* authorization
|
|
4977
5064
|
************************/
|
|
4978
5065
|
/**
|
|
4979
|
-
*
|
|
5066
|
+
* Generates API keys for apps or persons to enable database access.
|
|
4980
5067
|
*
|
|
4981
|
-
*
|
|
4982
|
-
*
|
|
4983
|
-
*
|
|
5068
|
+
* Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant
|
|
5069
|
+
* account for that person or application. An API key is a randomly generated username and password. The key is given
|
|
5070
|
+
* the wanted access permissions for a database.
|
|
4984
5071
|
*
|
|
4985
|
-
* @param {Object} params - The parameters to send to the service.
|
|
4986
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
5072
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
4987
5073
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4988
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
5074
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.ApiKeysResult>>}
|
|
4989
5075
|
*/
|
|
4990
|
-
|
|
5076
|
+
postApiKeys(params) {
|
|
4991
5077
|
const _params = { ...params };
|
|
4992
|
-
const _requiredParams = [
|
|
4993
|
-
const _validParams = ['
|
|
5078
|
+
const _requiredParams = [];
|
|
5079
|
+
const _validParams = ['headers'];
|
|
4994
5080
|
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
4995
5081
|
if (_validationErrors) {
|
|
4996
5082
|
return Promise.reject(_validationErrors);
|
|
4997
5083
|
}
|
|
4998
|
-
const
|
|
4999
|
-
'db': _params.db,
|
|
5000
|
-
};
|
|
5001
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getSecurity');
|
|
5084
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postApiKeys');
|
|
5002
5085
|
const parameters = {
|
|
5003
5086
|
options: {
|
|
5004
|
-
url: '/
|
|
5005
|
-
method: '
|
|
5006
|
-
path,
|
|
5087
|
+
url: '/_api/v2/api_keys',
|
|
5088
|
+
method: 'POST',
|
|
5007
5089
|
},
|
|
5008
5090
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
5009
5091
|
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
@@ -5011,14 +5093,13 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5011
5093
|
}, _params.headers),
|
|
5012
5094
|
}),
|
|
5013
5095
|
};
|
|
5014
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
5096
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ApiKeysResult.deserialize);
|
|
5015
5097
|
}
|
|
5016
5098
|
/**
|
|
5017
|
-
* Modify database permissions.
|
|
5099
|
+
* Modify only Cloudant related database permissions.
|
|
5018
5100
|
*
|
|
5019
|
-
* Modify
|
|
5020
|
-
*
|
|
5021
|
-
* users that have access permissions, you remove it from the list of users that have access to the database.
|
|
5101
|
+
* Modify only Cloudant related permissions to database. Be careful: by removing an API key from the list, you remove
|
|
5102
|
+
* the API key from the list of users that have access to the database.
|
|
5022
5103
|
*
|
|
5023
5104
|
* ### Note about nobody role
|
|
5024
5105
|
*
|
|
@@ -5028,34 +5109,34 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5028
5109
|
*
|
|
5029
5110
|
* @param {Object} params - The parameters to send to the service.
|
|
5030
5111
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
5112
|
+
* @param {JsonObject} params.cloudant - Database permissions for Cloudant users and/or API keys.
|
|
5031
5113
|
* @param {SecurityObject} [params.admins] - Schema for names and roles to map to a database permission.
|
|
5032
|
-
* @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
|
|
5033
|
-
* @param {JsonObject} [params.cloudant] - Database permissions for Cloudant users and/or API keys.
|
|
5034
5114
|
* @param {boolean} [params.couchdbAuthOnly] - Manage permissions using the `_users` database only.
|
|
5115
|
+
* @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
|
|
5035
5116
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5036
5117
|
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
5037
5118
|
*/
|
|
5038
|
-
|
|
5119
|
+
putCloudantSecurityConfiguration(params) {
|
|
5039
5120
|
const _params = { ...params };
|
|
5040
|
-
const _requiredParams = ['db'];
|
|
5041
|
-
const _validParams = ['db', '
|
|
5121
|
+
const _requiredParams = ['db', 'cloudant'];
|
|
5122
|
+
const _validParams = ['db', 'cloudant', 'admins', 'couchdbAuthOnly', 'members', 'headers'];
|
|
5042
5123
|
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
5043
5124
|
if (_validationErrors) {
|
|
5044
5125
|
return Promise.reject(_validationErrors);
|
|
5045
5126
|
}
|
|
5046
5127
|
const body = {
|
|
5047
|
-
'admins': CloudantV1.SecurityObject.serialize(_params.admins),
|
|
5048
|
-
'members': CloudantV1.SecurityObject.serialize(_params.members),
|
|
5049
5128
|
'cloudant': _params.cloudant,
|
|
5129
|
+
'admins': CloudantV1.SecurityObject.serialize(_params.admins),
|
|
5050
5130
|
'couchdb_auth_only': _params.couchdbAuthOnly,
|
|
5131
|
+
'members': CloudantV1.SecurityObject.serialize(_params.members),
|
|
5051
5132
|
};
|
|
5052
5133
|
const path = {
|
|
5053
5134
|
'db': _params.db,
|
|
5054
5135
|
};
|
|
5055
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', '
|
|
5136
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'putCloudantSecurityConfiguration');
|
|
5056
5137
|
const parameters = {
|
|
5057
5138
|
options: {
|
|
5058
|
-
url: '/{db}/_security',
|
|
5139
|
+
url: '/_api/v2/db/{db}/_security',
|
|
5059
5140
|
method: 'PUT',
|
|
5060
5141
|
body,
|
|
5061
5142
|
path,
|
|
@@ -5070,29 +5151,34 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5070
5151
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.Ok.deserialize);
|
|
5071
5152
|
}
|
|
5072
5153
|
/**
|
|
5073
|
-
*
|
|
5154
|
+
* Retrieve database permissions information.
|
|
5074
5155
|
*
|
|
5075
|
-
*
|
|
5076
|
-
*
|
|
5077
|
-
*
|
|
5156
|
+
* See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard
|
|
5157
|
+
* automatically include `_admin` permissions to all databases you create. Everyone and everything else, including
|
|
5158
|
+
* users you share databases with and API keys you create, must be given a permission level explicitly.
|
|
5078
5159
|
*
|
|
5079
|
-
* @param {Object}
|
|
5160
|
+
* @param {Object} params - The parameters to send to the service.
|
|
5161
|
+
* @param {string} params.db - Path parameter to specify the database name.
|
|
5080
5162
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5081
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
5163
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Security>>}
|
|
5082
5164
|
*/
|
|
5083
|
-
|
|
5165
|
+
getSecurity(params) {
|
|
5084
5166
|
const _params = { ...params };
|
|
5085
|
-
const _requiredParams = [];
|
|
5086
|
-
const _validParams = ['headers'];
|
|
5167
|
+
const _requiredParams = ['db'];
|
|
5168
|
+
const _validParams = ['db', 'headers'];
|
|
5087
5169
|
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
5088
5170
|
if (_validationErrors) {
|
|
5089
5171
|
return Promise.reject(_validationErrors);
|
|
5090
5172
|
}
|
|
5091
|
-
const
|
|
5173
|
+
const path = {
|
|
5174
|
+
'db': _params.db,
|
|
5175
|
+
};
|
|
5176
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getSecurity');
|
|
5092
5177
|
const parameters = {
|
|
5093
5178
|
options: {
|
|
5094
|
-
url: '/
|
|
5095
|
-
method: '
|
|
5179
|
+
url: '/{db}/_security',
|
|
5180
|
+
method: 'GET',
|
|
5181
|
+
path,
|
|
5096
5182
|
},
|
|
5097
5183
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
5098
5184
|
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
@@ -5100,13 +5186,14 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5100
5186
|
}, _params.headers),
|
|
5101
5187
|
}),
|
|
5102
5188
|
};
|
|
5103
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
5189
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.Security.deserialize);
|
|
5104
5190
|
}
|
|
5105
5191
|
/**
|
|
5106
|
-
* Modify
|
|
5192
|
+
* Modify database permissions.
|
|
5107
5193
|
*
|
|
5108
|
-
* Modify
|
|
5109
|
-
*
|
|
5194
|
+
* Modify who has permission to read, write, or manage a database. This endpoint can be used to modify both Cloudant
|
|
5195
|
+
* and CouchDB related permissions. Be careful: by removing a Cloudant API key, a member or an admin from the list of
|
|
5196
|
+
* users that have access permissions, you remove it from the list of users that have access to the database.
|
|
5110
5197
|
*
|
|
5111
5198
|
* ### Note about nobody role
|
|
5112
5199
|
*
|
|
@@ -5116,34 +5203,34 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5116
5203
|
*
|
|
5117
5204
|
* @param {Object} params - The parameters to send to the service.
|
|
5118
5205
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
5119
|
-
* @param {JsonObject} params.cloudant - Database permissions for Cloudant users and/or API keys.
|
|
5120
5206
|
* @param {SecurityObject} [params.admins] - Schema for names and roles to map to a database permission.
|
|
5121
|
-
* @param {
|
|
5207
|
+
* @param {JsonObject} [params.cloudant] - Database permissions for Cloudant users and/or API keys.
|
|
5122
5208
|
* @param {boolean} [params.couchdbAuthOnly] - Manage permissions using the `_users` database only.
|
|
5209
|
+
* @param {SecurityObject} [params.members] - Schema for names and roles to map to a database permission.
|
|
5123
5210
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5124
5211
|
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
5125
5212
|
*/
|
|
5126
|
-
|
|
5213
|
+
putSecurity(params) {
|
|
5127
5214
|
const _params = { ...params };
|
|
5128
|
-
const _requiredParams = ['db'
|
|
5129
|
-
const _validParams = ['db', '
|
|
5215
|
+
const _requiredParams = ['db'];
|
|
5216
|
+
const _validParams = ['db', 'admins', 'cloudant', 'couchdbAuthOnly', 'members', 'headers'];
|
|
5130
5217
|
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
5131
5218
|
if (_validationErrors) {
|
|
5132
5219
|
return Promise.reject(_validationErrors);
|
|
5133
5220
|
}
|
|
5134
5221
|
const body = {
|
|
5135
|
-
'cloudant': _params.cloudant,
|
|
5136
5222
|
'admins': CloudantV1.SecurityObject.serialize(_params.admins),
|
|
5137
|
-
'
|
|
5223
|
+
'cloudant': _params.cloudant,
|
|
5138
5224
|
'couchdb_auth_only': _params.couchdbAuthOnly,
|
|
5225
|
+
'members': CloudantV1.SecurityObject.serialize(_params.members),
|
|
5139
5226
|
};
|
|
5140
5227
|
const path = {
|
|
5141
5228
|
'db': _params.db,
|
|
5142
5229
|
};
|
|
5143
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', '
|
|
5230
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'putSecurity');
|
|
5144
5231
|
const parameters = {
|
|
5145
5232
|
options: {
|
|
5146
|
-
url: '/
|
|
5233
|
+
url: '/{db}/_security',
|
|
5147
5234
|
method: 'PUT',
|
|
5148
5235
|
body,
|
|
5149
5236
|
path,
|
|
@@ -5352,7 +5439,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5352
5439
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
5353
5440
|
* @param {string} params.docId - Path parameter to specify the document ID.
|
|
5354
5441
|
* @param {string} params.attachmentName - Path parameter to specify the attachment name.
|
|
5355
|
-
* @param {string} [params.accept] - The type of the response:
|
|
5442
|
+
* @param {string} [params.accept] - The type of the response: *_/_*.
|
|
5356
5443
|
* @param {string} [params.ifMatch] - Header parameter for a conditional HTTP request matching an ETag.
|
|
5357
5444
|
* @param {string} [params.ifNoneMatch] - Header parameter for a conditional HTTP request not matching an ETag.
|
|
5358
5445
|
* @param {string} [params.range] - Header parameter to specify the byte range for a request. This allows the
|
|
@@ -5834,17 +5921,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5834
5921
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ActiveTask.deserialize);
|
|
5835
5922
|
}
|
|
5836
5923
|
/**
|
|
5837
|
-
* Retrieve
|
|
5924
|
+
* Retrieve Activity Tracker events information.
|
|
5838
5925
|
*
|
|
5839
|
-
*
|
|
5840
|
-
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
5841
|
-
* cluster.
|
|
5926
|
+
* Check event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
5842
5927
|
*
|
|
5843
5928
|
* @param {Object} [params] - The parameters to send to the service.
|
|
5844
5929
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5845
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
5930
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>}
|
|
5846
5931
|
*/
|
|
5847
|
-
|
|
5932
|
+
getActivityTrackerEvents(params) {
|
|
5848
5933
|
const _params = { ...params };
|
|
5849
5934
|
const _requiredParams = [];
|
|
5850
5935
|
const _validParams = ['headers'];
|
|
@@ -5852,10 +5937,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5852
5937
|
if (_validationErrors) {
|
|
5853
5938
|
return Promise.reject(_validationErrors);
|
|
5854
5939
|
}
|
|
5855
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', '
|
|
5940
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getActivityTrackerEvents');
|
|
5856
5941
|
const parameters = {
|
|
5857
5942
|
options: {
|
|
5858
|
-
url: '/
|
|
5943
|
+
url: '/_api/v2/user/activity_tracker/events',
|
|
5859
5944
|
method: 'GET',
|
|
5860
5945
|
},
|
|
5861
5946
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
@@ -5864,52 +5949,58 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5864
5949
|
}, _params.headers),
|
|
5865
5950
|
}),
|
|
5866
5951
|
};
|
|
5867
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
5952
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ActivityTrackerEvents.deserialize);
|
|
5868
5953
|
}
|
|
5869
5954
|
/**
|
|
5870
|
-
*
|
|
5871
|
-
*
|
|
5872
|
-
* Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
|
|
5873
|
-
* `nolb`, the endpoint returns a 404 response.
|
|
5955
|
+
* Modify Activity Tracker events configuration.
|
|
5874
5956
|
*
|
|
5875
|
-
*
|
|
5957
|
+
* Configure event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
5876
5958
|
*
|
|
5877
|
-
* @param {Object}
|
|
5959
|
+
* @param {Object} params - The parameters to send to the service.
|
|
5960
|
+
* @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker for the
|
|
5961
|
+
* IBM Cloudant instance. "management" is a required element of this array.
|
|
5878
5962
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5879
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
5963
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
|
|
5880
5964
|
*/
|
|
5881
|
-
|
|
5965
|
+
postActivityTrackerEvents(params) {
|
|
5882
5966
|
const _params = { ...params };
|
|
5883
|
-
const _requiredParams = [];
|
|
5884
|
-
const _validParams = ['headers'];
|
|
5967
|
+
const _requiredParams = ['types'];
|
|
5968
|
+
const _validParams = ['types', 'headers'];
|
|
5885
5969
|
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
5886
5970
|
if (_validationErrors) {
|
|
5887
5971
|
return Promise.reject(_validationErrors);
|
|
5888
5972
|
}
|
|
5889
|
-
const
|
|
5973
|
+
const body = {
|
|
5974
|
+
'types': _params.types,
|
|
5975
|
+
};
|
|
5976
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postActivityTrackerEvents');
|
|
5890
5977
|
const parameters = {
|
|
5891
5978
|
options: {
|
|
5892
|
-
url: '/
|
|
5893
|
-
method: '
|
|
5979
|
+
url: '/_api/v2/user/activity_tracker/events',
|
|
5980
|
+
method: 'POST',
|
|
5981
|
+
body,
|
|
5894
5982
|
},
|
|
5895
5983
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
5896
5984
|
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
5897
5985
|
'Accept': 'application/json',
|
|
5986
|
+
'Content-Type': 'application/json',
|
|
5898
5987
|
}, _params.headers),
|
|
5899
5988
|
}),
|
|
5900
5989
|
};
|
|
5901
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
5990
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.Ok.deserialize);
|
|
5902
5991
|
}
|
|
5903
5992
|
/**
|
|
5904
|
-
* Retrieve
|
|
5993
|
+
* Retrieve the current provisioned throughput capacity consumption.
|
|
5905
5994
|
*
|
|
5906
|
-
*
|
|
5995
|
+
* View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current
|
|
5996
|
+
* consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given
|
|
5997
|
+
* second.
|
|
5907
5998
|
*
|
|
5908
5999
|
* @param {Object} [params] - The parameters to send to the service.
|
|
5909
6000
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5910
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
6001
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.CurrentThroughputInformation>>}
|
|
5911
6002
|
*/
|
|
5912
|
-
|
|
6003
|
+
getCurrentThroughputInformation(params) {
|
|
5913
6004
|
const _params = { ...params };
|
|
5914
6005
|
const _requiredParams = [];
|
|
5915
6006
|
const _validParams = ['headers'];
|
|
@@ -5917,10 +6008,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5917
6008
|
if (_validationErrors) {
|
|
5918
6009
|
return Promise.reject(_validationErrors);
|
|
5919
6010
|
}
|
|
5920
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', '
|
|
6011
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getCurrentThroughputInformation');
|
|
5921
6012
|
const parameters = {
|
|
5922
6013
|
options: {
|
|
5923
|
-
url: '/_api/v2/user/
|
|
6014
|
+
url: '/_api/v2/user/current/throughput',
|
|
5924
6015
|
method: 'GET',
|
|
5925
6016
|
},
|
|
5926
6017
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
@@ -5929,58 +6020,54 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5929
6020
|
}, _params.headers),
|
|
5930
6021
|
}),
|
|
5931
6022
|
};
|
|
5932
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
6023
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.CurrentThroughputInformation.deserialize);
|
|
5933
6024
|
}
|
|
5934
6025
|
/**
|
|
5935
|
-
*
|
|
6026
|
+
* Retrieve cluster membership information.
|
|
5936
6027
|
*
|
|
5937
|
-
*
|
|
6028
|
+
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
6029
|
+
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
6030
|
+
* cluster.
|
|
5938
6031
|
*
|
|
5939
|
-
* @param {Object} params - The parameters to send to the service.
|
|
5940
|
-
* @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker for the
|
|
5941
|
-
* IBM Cloudant instance. "management" is a required element of this array.
|
|
6032
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
5942
6033
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5943
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
6034
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
5944
6035
|
*/
|
|
5945
|
-
|
|
6036
|
+
getMembershipInformation(params) {
|
|
5946
6037
|
const _params = { ...params };
|
|
5947
|
-
const _requiredParams = [
|
|
5948
|
-
const _validParams = ['
|
|
6038
|
+
const _requiredParams = [];
|
|
6039
|
+
const _validParams = ['headers'];
|
|
5949
6040
|
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
5950
6041
|
if (_validationErrors) {
|
|
5951
6042
|
return Promise.reject(_validationErrors);
|
|
5952
6043
|
}
|
|
5953
|
-
const
|
|
5954
|
-
'types': _params.types,
|
|
5955
|
-
};
|
|
5956
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postActivityTrackerEvents');
|
|
6044
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getMembershipInformation');
|
|
5957
6045
|
const parameters = {
|
|
5958
6046
|
options: {
|
|
5959
|
-
url: '/
|
|
5960
|
-
method: '
|
|
5961
|
-
body,
|
|
6047
|
+
url: '/_membership',
|
|
6048
|
+
method: 'GET',
|
|
5962
6049
|
},
|
|
5963
6050
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
5964
6051
|
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
5965
6052
|
'Accept': 'application/json',
|
|
5966
|
-
'Content-Type': 'application/json',
|
|
5967
6053
|
}, _params.headers),
|
|
5968
6054
|
}),
|
|
5969
6055
|
};
|
|
5970
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
6056
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.MembershipInformation.deserialize);
|
|
5971
6057
|
}
|
|
5972
6058
|
/**
|
|
5973
|
-
* Retrieve
|
|
6059
|
+
* Retrieve information about whether the server is up.
|
|
5974
6060
|
*
|
|
5975
|
-
*
|
|
5976
|
-
*
|
|
5977
|
-
*
|
|
6061
|
+
* Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or
|
|
6062
|
+
* `nolb`, the endpoint returns a 404 response.
|
|
6063
|
+
*
|
|
6064
|
+
* **Tip:** The authentication for this endpoint is only enforced when using IAM.
|
|
5978
6065
|
*
|
|
5979
6066
|
* @param {Object} [params] - The parameters to send to the service.
|
|
5980
6067
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5981
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.
|
|
6068
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.UpInformation>>}
|
|
5982
6069
|
*/
|
|
5983
|
-
|
|
6070
|
+
getUpInformation(params) {
|
|
5984
6071
|
const _params = { ...params };
|
|
5985
6072
|
const _requiredParams = [];
|
|
5986
6073
|
const _validParams = ['headers'];
|
|
@@ -5988,10 +6075,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5988
6075
|
if (_validationErrors) {
|
|
5989
6076
|
return Promise.reject(_validationErrors);
|
|
5990
6077
|
}
|
|
5991
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', '
|
|
6078
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getUpInformation');
|
|
5992
6079
|
const parameters = {
|
|
5993
6080
|
options: {
|
|
5994
|
-
url: '/
|
|
6081
|
+
url: '/_up',
|
|
5995
6082
|
method: 'GET',
|
|
5996
6083
|
},
|
|
5997
6084
|
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
@@ -6000,7 +6087,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6000
6087
|
}, _params.headers),
|
|
6001
6088
|
}),
|
|
6002
6089
|
};
|
|
6003
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.
|
|
6090
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.UpInformation.deserialize);
|
|
6004
6091
|
}
|
|
6005
6092
|
}
|
|
6006
6093
|
/*************************
|
|
@@ -6036,6 +6123,12 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6036
6123
|
Feed["LONGPOLL"] = "longpoll";
|
|
6037
6124
|
Feed["NORMAL"] = "normal";
|
|
6038
6125
|
})(Feed = PostChangesConstants.Feed || (PostChangesConstants.Feed = {}));
|
|
6126
|
+
/** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts). */
|
|
6127
|
+
let Style;
|
|
6128
|
+
(function (Style) {
|
|
6129
|
+
Style["MAIN_ONLY"] = "main_only";
|
|
6130
|
+
Style["ALL_DOCS"] = "all_docs";
|
|
6131
|
+
})(Style = PostChangesConstants.Style || (PostChangesConstants.Style = {}));
|
|
6039
6132
|
})(PostChangesConstants = CloudantV1.PostChangesConstants || (CloudantV1.PostChangesConstants = {}));
|
|
6040
6133
|
/** Constants for the `postChangesAsStream` operation. */
|
|
6041
6134
|
let PostChangesAsStreamConstants;
|
|
@@ -6048,6 +6141,12 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6048
6141
|
Feed["LONGPOLL"] = "longpoll";
|
|
6049
6142
|
Feed["NORMAL"] = "normal";
|
|
6050
6143
|
})(Feed = PostChangesAsStreamConstants.Feed || (PostChangesAsStreamConstants.Feed = {}));
|
|
6144
|
+
/** Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current "winning" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts). */
|
|
6145
|
+
let Style;
|
|
6146
|
+
(function (Style) {
|
|
6147
|
+
Style["MAIN_ONLY"] = "main_only";
|
|
6148
|
+
Style["ALL_DOCS"] = "all_docs";
|
|
6149
|
+
})(Style = PostChangesAsStreamConstants.Style || (PostChangesAsStreamConstants.Style = {}));
|
|
6051
6150
|
})(PostChangesAsStreamConstants = CloudantV1.PostChangesAsStreamConstants || (CloudantV1.PostChangesAsStreamConstants = {}));
|
|
6052
6151
|
/** Constants for the `postDocument` operation. */
|
|
6053
6152
|
let PostDocumentConstants;
|
|
@@ -6372,6 +6471,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6372
6471
|
Stale["OK"] = "ok";
|
|
6373
6472
|
})(Stale = PostSearchAsStreamConstants.Stale || (PostSearchAsStreamConstants.Stale = {}));
|
|
6374
6473
|
})(PostSearchAsStreamConstants = CloudantV1.PostSearchAsStreamConstants || (CloudantV1.PostSearchAsStreamConstants = {}));
|
|
6474
|
+
/** Constants for the `postReplicator` operation. */
|
|
6475
|
+
let PostReplicatorConstants;
|
|
6476
|
+
(function (PostReplicatorConstants) {
|
|
6477
|
+
/** Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately. */
|
|
6478
|
+
let Batch;
|
|
6479
|
+
(function (Batch) {
|
|
6480
|
+
Batch["OK"] = "ok";
|
|
6481
|
+
})(Batch = PostReplicatorConstants.Batch || (PostReplicatorConstants.Batch = {}));
|
|
6482
|
+
})(PostReplicatorConstants = CloudantV1.PostReplicatorConstants || (CloudantV1.PostReplicatorConstants = {}));
|
|
6375
6483
|
/** Constants for the `deleteReplicationDocument` operation. */
|
|
6376
6484
|
let DeleteReplicationDocumentConstants;
|
|
6377
6485
|
(function (DeleteReplicationDocumentConstants) {
|
|
@@ -6405,9 +6513,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6405
6513
|
States["FAILED"] = "failed";
|
|
6406
6514
|
})(States = GetSchedulerDocsConstants.States || (GetSchedulerDocsConstants.States = {}));
|
|
6407
6515
|
})(GetSchedulerDocsConstants = CloudantV1.GetSchedulerDocsConstants || (CloudantV1.GetSchedulerDocsConstants = {}));
|
|
6408
|
-
/** Constants for the `
|
|
6409
|
-
let
|
|
6410
|
-
(function (
|
|
6516
|
+
/** Constants for the `putCloudantSecurityConfiguration` operation. */
|
|
6517
|
+
let PutCloudantSecurityConfigurationConstants;
|
|
6518
|
+
(function (PutCloudantSecurityConfigurationConstants) {
|
|
6411
6519
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
6412
6520
|
let Cloudant;
|
|
6413
6521
|
(function (Cloudant) {
|
|
@@ -6419,11 +6527,11 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6419
6527
|
Cloudant["DESIGN"] = "_design";
|
|
6420
6528
|
Cloudant["SHARDS"] = "_shards";
|
|
6421
6529
|
Cloudant["SECURITY"] = "_security";
|
|
6422
|
-
})(Cloudant =
|
|
6423
|
-
})(
|
|
6424
|
-
/** Constants for the `
|
|
6425
|
-
let
|
|
6426
|
-
(function (
|
|
6530
|
+
})(Cloudant = PutCloudantSecurityConfigurationConstants.Cloudant || (PutCloudantSecurityConfigurationConstants.Cloudant = {}));
|
|
6531
|
+
})(PutCloudantSecurityConfigurationConstants = CloudantV1.PutCloudantSecurityConfigurationConstants || (CloudantV1.PutCloudantSecurityConfigurationConstants = {}));
|
|
6532
|
+
/** Constants for the `putSecurity` operation. */
|
|
6533
|
+
let PutSecurityConstants;
|
|
6534
|
+
(function (PutSecurityConstants) {
|
|
6427
6535
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
6428
6536
|
let Cloudant;
|
|
6429
6537
|
(function (Cloudant) {
|
|
@@ -6435,8 +6543,8 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6435
6543
|
Cloudant["DESIGN"] = "_design";
|
|
6436
6544
|
Cloudant["SHARDS"] = "_shards";
|
|
6437
6545
|
Cloudant["SECURITY"] = "_security";
|
|
6438
|
-
})(Cloudant =
|
|
6439
|
-
})(
|
|
6546
|
+
})(Cloudant = PutSecurityConstants.Cloudant || (PutSecurityConstants.Cloudant = {}));
|
|
6547
|
+
})(PutSecurityConstants = CloudantV1.PutSecurityConstants || (CloudantV1.PutSecurityConstants = {}));
|
|
6440
6548
|
/** Constants for the `deleteAttachment` operation. */
|
|
6441
6549
|
let DeleteAttachmentConstants;
|
|
6442
6550
|
(function (DeleteAttachmentConstants) {
|
|
@@ -7043,7 +7151,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7043
7151
|
* Schema for the result of an all documents operation.
|
|
7044
7152
|
*/
|
|
7045
7153
|
class AllDocsResult {
|
|
7046
|
-
/**
|
|
7154
|
+
/** Total number of document results. */
|
|
7047
7155
|
totalRows;
|
|
7048
7156
|
/** List of doc results. */
|
|
7049
7157
|
rows;
|
|
@@ -8021,6 +8129,8 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8021
8129
|
* old replicator versions. Do not use the value to infer timing infromation. Typically only used by replicators.
|
|
8022
8130
|
*/
|
|
8023
8131
|
instanceStartTime;
|
|
8132
|
+
/** Information about database's partitioned indexes. */
|
|
8133
|
+
partitionedIndexes;
|
|
8024
8134
|
/** Schema for database properties. */
|
|
8025
8135
|
props;
|
|
8026
8136
|
/** Schema for size information of content. */
|
|
@@ -8031,8 +8141,6 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8031
8141
|
updateSeq;
|
|
8032
8142
|
/** The UUID of the database. */
|
|
8033
8143
|
uuid;
|
|
8034
|
-
/** Information about database's partitioned indexes. */
|
|
8035
|
-
partitionedIndexes;
|
|
8036
8144
|
static serialize(obj) {
|
|
8037
8145
|
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
8038
8146
|
return obj;
|
|
@@ -8068,6 +8176,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8068
8176
|
if (obj.instanceStartTime !== undefined) {
|
|
8069
8177
|
copy.instance_start_time = obj.instanceStartTime;
|
|
8070
8178
|
}
|
|
8179
|
+
if (obj.partitionedIndexes !== undefined) {
|
|
8180
|
+
copy.partitioned_indexes = PartitionedIndexesInformation.serialize(obj.partitionedIndexes);
|
|
8181
|
+
}
|
|
8071
8182
|
if (obj.props !== undefined) {
|
|
8072
8183
|
copy.props = DatabaseInformationProps.serialize(obj.props);
|
|
8073
8184
|
}
|
|
@@ -8080,9 +8191,6 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8080
8191
|
if (obj.uuid !== undefined) {
|
|
8081
8192
|
copy.uuid = obj.uuid;
|
|
8082
8193
|
}
|
|
8083
|
-
if (obj.partitionedIndexes !== undefined) {
|
|
8084
|
-
copy.partitioned_indexes = PartitionedIndexesInformation.serialize(obj.partitionedIndexes);
|
|
8085
|
-
}
|
|
8086
8194
|
return copy;
|
|
8087
8195
|
}
|
|
8088
8196
|
static deserialize(obj) {
|
|
@@ -8120,6 +8228,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8120
8228
|
if (obj.instance_start_time !== undefined) {
|
|
8121
8229
|
copy.instanceStartTime = obj.instance_start_time;
|
|
8122
8230
|
}
|
|
8231
|
+
if (obj.partitioned_indexes !== undefined) {
|
|
8232
|
+
copy.partitionedIndexes = PartitionedIndexesInformation.deserialize(obj.partitioned_indexes);
|
|
8233
|
+
}
|
|
8123
8234
|
if (obj.props !== undefined) {
|
|
8124
8235
|
copy.props = DatabaseInformationProps.deserialize(obj.props);
|
|
8125
8236
|
}
|
|
@@ -8132,9 +8243,6 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8132
8243
|
if (obj.uuid !== undefined) {
|
|
8133
8244
|
copy.uuid = obj.uuid;
|
|
8134
8245
|
}
|
|
8135
|
-
if (obj.partitioned_indexes !== undefined) {
|
|
8136
|
-
copy.partitionedIndexes = PartitionedIndexesInformation.deserialize(obj.partitioned_indexes);
|
|
8137
|
-
}
|
|
8138
8246
|
return copy;
|
|
8139
8247
|
}
|
|
8140
8248
|
}
|
|
@@ -9544,8 +9652,8 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9544
9652
|
/** Direction parameter passed to the underlying view. */
|
|
9545
9653
|
let Direction;
|
|
9546
9654
|
(function (Direction) {
|
|
9547
|
-
Direction["
|
|
9548
|
-
Direction["
|
|
9655
|
+
Direction["FWD"] = "fwd";
|
|
9656
|
+
Direction["REV"] = "rev";
|
|
9549
9657
|
})(Direction = Constants.Direction || (Constants.Direction = {}));
|
|
9550
9658
|
/** The type of the underlying view. */
|
|
9551
9659
|
let ViewType;
|
|
@@ -10238,7 +10346,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10238
10346
|
* Schema for information about the indexes in a database.
|
|
10239
10347
|
*/
|
|
10240
10348
|
class IndexesInformation {
|
|
10241
|
-
/**
|
|
10349
|
+
/** Total number of query indexes in the database. */
|
|
10242
10350
|
totalRows;
|
|
10243
10351
|
/** Indexes. */
|
|
10244
10352
|
indexes;
|
|
@@ -11303,7 +11411,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11303
11411
|
* Schema for a listing of replication scheduler documents.
|
|
11304
11412
|
*/
|
|
11305
11413
|
class SchedulerDocsResult {
|
|
11306
|
-
/**
|
|
11414
|
+
/** Total number of replication scheduler documents. */
|
|
11307
11415
|
totalRows;
|
|
11308
11416
|
/** Array of replication scheduler doc objects. */
|
|
11309
11417
|
docs;
|
|
@@ -11745,7 +11853,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11745
11853
|
* Schema for a listing of replication scheduler jobs.
|
|
11746
11854
|
*/
|
|
11747
11855
|
class SchedulerJobsResult {
|
|
11748
|
-
/**
|
|
11856
|
+
/** Total number of replication jobs. */
|
|
11749
11857
|
totalRows;
|
|
11750
11858
|
/** Array of replication job objects. */
|
|
11751
11859
|
jobs;
|
|
@@ -11805,6 +11913,42 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11805
11913
|
}
|
|
11806
11914
|
}
|
|
11807
11915
|
CloudantV1.SearchAnalyzeResult = SearchAnalyzeResult;
|
|
11916
|
+
/**
|
|
11917
|
+
* Schema for search index disk size.
|
|
11918
|
+
*/
|
|
11919
|
+
class SearchDiskSizeInformation {
|
|
11920
|
+
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
11921
|
+
name;
|
|
11922
|
+
/** Schema for search index disk size. */
|
|
11923
|
+
searchIndex;
|
|
11924
|
+
static serialize(obj) {
|
|
11925
|
+
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
11926
|
+
return obj;
|
|
11927
|
+
}
|
|
11928
|
+
let copy = {};
|
|
11929
|
+
if (obj.name !== undefined) {
|
|
11930
|
+
copy.name = obj.name;
|
|
11931
|
+
}
|
|
11932
|
+
if (obj.searchIndex !== undefined) {
|
|
11933
|
+
copy.search_index = SearchIndexDiskSize.serialize(obj.searchIndex);
|
|
11934
|
+
}
|
|
11935
|
+
return copy;
|
|
11936
|
+
}
|
|
11937
|
+
static deserialize(obj) {
|
|
11938
|
+
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
11939
|
+
return obj;
|
|
11940
|
+
}
|
|
11941
|
+
let copy = {};
|
|
11942
|
+
if (obj.name !== undefined) {
|
|
11943
|
+
copy.name = obj.name;
|
|
11944
|
+
}
|
|
11945
|
+
if (obj.search_index !== undefined) {
|
|
11946
|
+
copy.searchIndex = SearchIndexDiskSize.deserialize(obj.search_index);
|
|
11947
|
+
}
|
|
11948
|
+
return copy;
|
|
11949
|
+
}
|
|
11950
|
+
}
|
|
11951
|
+
CloudantV1.SearchDiskSizeInformation = SearchDiskSizeInformation;
|
|
11808
11952
|
/**
|
|
11809
11953
|
* Schema for a search index definition.
|
|
11810
11954
|
*/
|
|
@@ -11860,6 +12004,34 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11860
12004
|
}
|
|
11861
12005
|
}
|
|
11862
12006
|
CloudantV1.SearchIndexDefinition = SearchIndexDefinition;
|
|
12007
|
+
/**
|
|
12008
|
+
* Schema for search index disk size.
|
|
12009
|
+
*/
|
|
12010
|
+
class SearchIndexDiskSize {
|
|
12011
|
+
/** The size of the search index on disk. */
|
|
12012
|
+
diskSize;
|
|
12013
|
+
static serialize(obj) {
|
|
12014
|
+
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
12015
|
+
return obj;
|
|
12016
|
+
}
|
|
12017
|
+
let copy = {};
|
|
12018
|
+
if (obj.diskSize !== undefined) {
|
|
12019
|
+
copy.disk_size = obj.diskSize;
|
|
12020
|
+
}
|
|
12021
|
+
return copy;
|
|
12022
|
+
}
|
|
12023
|
+
static deserialize(obj) {
|
|
12024
|
+
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
12025
|
+
return obj;
|
|
12026
|
+
}
|
|
12027
|
+
let copy = {};
|
|
12028
|
+
if (obj.disk_size !== undefined) {
|
|
12029
|
+
copy.diskSize = obj.disk_size;
|
|
12030
|
+
}
|
|
12031
|
+
return copy;
|
|
12032
|
+
}
|
|
12033
|
+
}
|
|
12034
|
+
CloudantV1.SearchIndexDiskSize = SearchIndexDiskSize;
|
|
11863
12035
|
/**
|
|
11864
12036
|
* Schema for metadata information about a search index.
|
|
11865
12037
|
*/
|
|
@@ -11968,7 +12140,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11968
12140
|
* Schema for the result of a query search operation.
|
|
11969
12141
|
*/
|
|
11970
12142
|
class SearchResult {
|
|
11971
|
-
/**
|
|
12143
|
+
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
12144
|
+
* returned.
|
|
12145
|
+
*/
|
|
11972
12146
|
totalRows;
|
|
11973
12147
|
/** Opaque bookmark token used when paginating results. */
|
|
11974
12148
|
bookmark;
|
|
@@ -12046,7 +12220,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12046
12220
|
* Schema for the result of a query search operation.
|
|
12047
12221
|
*/
|
|
12048
12222
|
class SearchResultProperties {
|
|
12049
|
-
/**
|
|
12223
|
+
/** Total number of rows in the index matching the search query. The limit may truncate the number of matches
|
|
12224
|
+
* returned.
|
|
12225
|
+
*/
|
|
12050
12226
|
totalRows;
|
|
12051
12227
|
/** Opaque bookmark token used when paginating results. */
|
|
12052
12228
|
bookmark;
|
|
@@ -12172,12 +12348,12 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12172
12348
|
class Security {
|
|
12173
12349
|
/** Schema for names and roles to map to a database permission. */
|
|
12174
12350
|
admins;
|
|
12175
|
-
/** Schema for names and roles to map to a database permission. */
|
|
12176
|
-
members;
|
|
12177
12351
|
/** Database permissions for Cloudant users and/or API keys. */
|
|
12178
12352
|
cloudant;
|
|
12179
12353
|
/** Manage permissions using the `_users` database only. */
|
|
12180
12354
|
couchdbAuthOnly;
|
|
12355
|
+
/** Schema for names and roles to map to a database permission. */
|
|
12356
|
+
members;
|
|
12181
12357
|
static serialize(obj) {
|
|
12182
12358
|
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
12183
12359
|
return obj;
|
|
@@ -12186,15 +12362,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12186
12362
|
if (obj.admins !== undefined) {
|
|
12187
12363
|
copy.admins = SecurityObject.serialize(obj.admins);
|
|
12188
12364
|
}
|
|
12189
|
-
if (obj.members !== undefined) {
|
|
12190
|
-
copy.members = SecurityObject.serialize(obj.members);
|
|
12191
|
-
}
|
|
12192
12365
|
if (obj.cloudant !== undefined) {
|
|
12193
12366
|
copy.cloudant = obj.cloudant;
|
|
12194
12367
|
}
|
|
12195
12368
|
if (obj.couchdbAuthOnly !== undefined) {
|
|
12196
12369
|
copy.couchdb_auth_only = obj.couchdbAuthOnly;
|
|
12197
12370
|
}
|
|
12371
|
+
if (obj.members !== undefined) {
|
|
12372
|
+
copy.members = SecurityObject.serialize(obj.members);
|
|
12373
|
+
}
|
|
12198
12374
|
return copy;
|
|
12199
12375
|
}
|
|
12200
12376
|
static deserialize(obj) {
|
|
@@ -12205,15 +12381,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12205
12381
|
if (obj.admins !== undefined) {
|
|
12206
12382
|
copy.admins = SecurityObject.deserialize(obj.admins);
|
|
12207
12383
|
}
|
|
12208
|
-
if (obj.members !== undefined) {
|
|
12209
|
-
copy.members = SecurityObject.deserialize(obj.members);
|
|
12210
|
-
}
|
|
12211
12384
|
if (obj.cloudant !== undefined) {
|
|
12212
12385
|
copy.cloudant = obj.cloudant;
|
|
12213
12386
|
}
|
|
12214
12387
|
if (obj.couchdb_auth_only !== undefined) {
|
|
12215
12388
|
copy.couchdbAuthOnly = obj.couchdb_auth_only;
|
|
12216
12389
|
}
|
|
12390
|
+
if (obj.members !== undefined) {
|
|
12391
|
+
copy.members = SecurityObject.deserialize(obj.members);
|
|
12392
|
+
}
|
|
12217
12393
|
return copy;
|
|
12218
12394
|
}
|
|
12219
12395
|
}
|
|
@@ -12317,12 +12493,12 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12317
12493
|
couchdb;
|
|
12318
12494
|
/** List of enabled optional features. */
|
|
12319
12495
|
features;
|
|
12496
|
+
/** List of feature flags. */
|
|
12497
|
+
featuresFlags;
|
|
12320
12498
|
/** Schema for server vendor information. */
|
|
12321
12499
|
vendor;
|
|
12322
12500
|
/** Apache CouchDB version. */
|
|
12323
12501
|
version;
|
|
12324
|
-
/** List of feature flags. */
|
|
12325
|
-
featuresFlags;
|
|
12326
12502
|
static serialize(obj) {
|
|
12327
12503
|
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
12328
12504
|
return obj;
|
|
@@ -12334,15 +12510,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12334
12510
|
if (obj.features !== undefined) {
|
|
12335
12511
|
copy.features = obj.features;
|
|
12336
12512
|
}
|
|
12513
|
+
if (obj.featuresFlags !== undefined) {
|
|
12514
|
+
copy.features_flags = obj.featuresFlags;
|
|
12515
|
+
}
|
|
12337
12516
|
if (obj.vendor !== undefined) {
|
|
12338
12517
|
copy.vendor = ServerVendor.serialize(obj.vendor);
|
|
12339
12518
|
}
|
|
12340
12519
|
if (obj.version !== undefined) {
|
|
12341
12520
|
copy.version = obj.version;
|
|
12342
12521
|
}
|
|
12343
|
-
if (obj.featuresFlags !== undefined) {
|
|
12344
|
-
copy.features_flags = obj.featuresFlags;
|
|
12345
|
-
}
|
|
12346
12522
|
return copy;
|
|
12347
12523
|
}
|
|
12348
12524
|
static deserialize(obj) {
|
|
@@ -12356,15 +12532,15 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12356
12532
|
if (obj.features !== undefined) {
|
|
12357
12533
|
copy.features = obj.features;
|
|
12358
12534
|
}
|
|
12535
|
+
if (obj.features_flags !== undefined) {
|
|
12536
|
+
copy.featuresFlags = obj.features_flags;
|
|
12537
|
+
}
|
|
12359
12538
|
if (obj.vendor !== undefined) {
|
|
12360
12539
|
copy.vendor = ServerVendor.deserialize(obj.vendor);
|
|
12361
12540
|
}
|
|
12362
12541
|
if (obj.version !== undefined) {
|
|
12363
12542
|
copy.version = obj.version;
|
|
12364
12543
|
}
|
|
12365
|
-
if (obj.features_flags !== undefined) {
|
|
12366
|
-
copy.featuresFlags = obj.features_flags;
|
|
12367
|
-
}
|
|
12368
12544
|
return copy;
|
|
12369
12545
|
}
|
|
12370
12546
|
}
|
|
@@ -13056,7 +13232,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
13056
13232
|
* Schema for the result of a query view operation.
|
|
13057
13233
|
*/
|
|
13058
13234
|
class ViewResult {
|
|
13059
|
-
/**
|
|
13235
|
+
/** Total number of rows in the view index. Note that if the request query narrows the view this is not the
|
|
13236
|
+
* number of matching rows. The number of matching rows, up to the specified `limit`, is the size of the `rows`
|
|
13237
|
+
* array.
|
|
13238
|
+
*/
|
|
13060
13239
|
totalRows;
|
|
13061
13240
|
/** Current update sequence for the database. */
|
|
13062
13241
|
updateSeq;
|