Search in sources :

Example 6 with Analyzer

use of com.ibm.cloud.cloudant.v1.model.Analyzer in project cloudant-java-sdk by IBM.

the class CloudantTest method testPutDesignDocumentWOptions.

@Test
public void testPutDesignDocumentWOptions() throws Throwable {
    // Schedule some responses.
    String mockResponseBody = "{\"id\": \"id\", \"rev\": \"rev\", \"ok\": true, \"caused_by\": \"causedBy\", \"error\": \"error\", \"reason\": \"reason\"}";
    String putDesignDocumentPath = "/testString/_design/testString";
    server.enqueue(new MockResponse().setHeader("Content-type", "application/json").setResponseCode(201).setBody(mockResponseBody));
    constructClientService();
    // Construct an instance of the Attachment model
    Attachment attachmentModel = new Attachment.Builder().contentType("testString").data(TestUtilities.createMockByteArray("This is a mock byte array value.")).digest("testString").encodedLength(Long.valueOf("0")).encoding("testString").follows(true).length(Long.valueOf("0")).revpos(Long.valueOf("1")).stub(true).build();
    // Construct an instance of the Revisions model
    Revisions revisionsModel = new Revisions.Builder().ids(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).start(Long.valueOf("1")).build();
    // Construct an instance of the DocumentRevisionStatus model
    DocumentRevisionStatus documentRevisionStatusModel = new DocumentRevisionStatus.Builder().rev("testString").status("available").build();
    // Construct an instance of the Analyzer model
    Analyzer analyzerModel = new Analyzer.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).build();
    // Construct an instance of the AnalyzerConfiguration model
    AnalyzerConfiguration analyzerConfigurationModel = new AnalyzerConfiguration.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).fields(new java.util.HashMap<String, Analyzer>() {

        {
            put("foo", analyzerModel);
        }
    }).build();
    // Construct an instance of the SearchIndexDefinition model
    SearchIndexDefinition searchIndexDefinitionModel = new SearchIndexDefinition.Builder().analyzer(analyzerConfigurationModel).index("testString").build();
    // Construct an instance of the DesignDocumentOptions model
    DesignDocumentOptions designDocumentOptionsModel = new DesignDocumentOptions.Builder().partitioned(true).build();
    // Construct an instance of the DesignDocumentViewsMapReduce model
    DesignDocumentViewsMapReduce designDocumentViewsMapReduceModel = new DesignDocumentViewsMapReduce.Builder().map("testString").reduce("testString").build();
    // Construct an instance of the GeoIndexDefinition model
    GeoIndexDefinition geoIndexDefinitionModel = new GeoIndexDefinition.Builder().index("testString").build();
    // Construct an instance of the DesignDocument model
    DesignDocument designDocumentModel = new DesignDocument.Builder().attachments(new java.util.HashMap<String, Attachment>() {

        {
            put("foo", attachmentModel);
        }
    }).conflicts(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).deleted(true).deletedConflicts(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).id("testString").localSeq("testString").rev("testString").revisions(revisionsModel).revsInfo(new java.util.ArrayList<DocumentRevisionStatus>(java.util.Arrays.asList(documentRevisionStatusModel))).autoupdate(true).filters(new java.util.HashMap<String, String>() {

        {
            put("foo", "testString");
        }
    }).indexes(new java.util.HashMap<String, SearchIndexDefinition>() {

        {
            put("foo", searchIndexDefinitionModel);
        }
    }).language("javascript").options(designDocumentOptionsModel).validateDocUpdate("testString").views(new java.util.HashMap<String, DesignDocumentViewsMapReduce>() {

        {
            put("foo", designDocumentViewsMapReduceModel);
        }
    }).stIndexes(new java.util.HashMap<String, GeoIndexDefinition>() {

        {
            put("foo", geoIndexDefinitionModel);
        }
    }).add("foo", "testString").build();
    // Construct an instance of the PutDesignDocumentOptions model
    PutDesignDocumentOptions putDesignDocumentOptionsModel = new PutDesignDocumentOptions.Builder().db("testString").ddoc("testString").designDocument(designDocumentModel).ifMatch("testString").batch("ok").newEdits(false).rev("testString").build();
    // Invoke operation with valid options model (positive test)
    Response<DocumentResult> response = cloudantService.putDesignDocument(putDesignDocumentOptionsModel).execute();
    assertNotNull(response);
    DocumentResult responseObj = response.getResult();
    assertNotNull(responseObj);
    // Verify the contents of the request
    RecordedRequest request = server.takeRequest();
    assertNotNull(request);
    assertEquals(request.getMethod(), "PUT");
    // Check query
    Map<String, String> query = TestUtilities.parseQueryString(request);
    assertNotNull(query);
    // Get query params
    assertEquals(query.get("batch"), "ok");
    assertEquals(Boolean.valueOf(query.get("new_edits")), Boolean.valueOf(false));
    assertEquals(query.get("rev"), "testString");
    // Check request path
    String parsedPath = TestUtilities.parseReqPath(request);
    assertEquals(parsedPath, putDesignDocumentPath);
}
Also used : PutDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions) HashMap(java.util.HashMap) DocumentResult(com.ibm.cloud.cloudant.v1.model.DocumentResult) SearchIndexDefinition(com.ibm.cloud.cloudant.v1.model.SearchIndexDefinition) ArrayList(java.util.ArrayList) Attachment(com.ibm.cloud.cloudant.v1.model.Attachment) Revisions(com.ibm.cloud.cloudant.v1.model.Revisions) Analyzer(com.ibm.cloud.cloudant.v1.model.Analyzer) DocumentRevisionStatus(com.ibm.cloud.cloudant.v1.model.DocumentRevisionStatus) DesignDocumentViewsMapReduce(com.ibm.cloud.cloudant.v1.model.DesignDocumentViewsMapReduce) RecordedRequest(okhttp3.mockwebserver.RecordedRequest) MockResponse(okhttp3.mockwebserver.MockResponse) GetDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.GetDesignDocumentOptions) HeadDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.HeadDesignDocumentOptions) DesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.DesignDocumentOptions) PutDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions) DeleteDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.DeleteDesignDocumentOptions) DesignDocument(com.ibm.cloud.cloudant.v1.model.DesignDocument) AnalyzerConfiguration(com.ibm.cloud.cloudant.v1.model.AnalyzerConfiguration) GeoIndexDefinition(com.ibm.cloud.cloudant.v1.model.GeoIndexDefinition) Test(org.testng.annotations.Test) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest)

Example 7 with Analyzer

use of com.ibm.cloud.cloudant.v1.model.Analyzer in project cloudant-java-sdk by IBM.

the class AnalyzerConfigurationTest method testAnalyzerConfiguration.

@Test
public void testAnalyzerConfiguration() throws Throwable {
    Analyzer analyzerModel = new Analyzer.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).build();
    assertEquals(analyzerModel.name(), "classic");
    assertEquals(analyzerModel.stopwords(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    AnalyzerConfiguration analyzerConfigurationModel = new AnalyzerConfiguration.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).fields(new java.util.HashMap<String, Analyzer>() {

        {
            put("foo", analyzerModel);
        }
    }).build();
    assertEquals(analyzerConfigurationModel.name(), "classic");
    assertEquals(analyzerConfigurationModel.stopwords(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    assertEquals(analyzerConfigurationModel.fields(), new java.util.HashMap<String, Analyzer>() {

        {
            put("foo", analyzerModel);
        }
    });
    String json = TestUtilities.serialize(analyzerConfigurationModel);
    AnalyzerConfiguration analyzerConfigurationModelNew = TestUtilities.deserialize(json, AnalyzerConfiguration.class);
    assertTrue(analyzerConfigurationModelNew instanceof AnalyzerConfiguration);
    assertEquals(analyzerConfigurationModelNew.name(), "classic");
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Analyzer(com.ibm.cloud.cloudant.v1.model.Analyzer) AnalyzerConfiguration(com.ibm.cloud.cloudant.v1.model.AnalyzerConfiguration) Test(org.testng.annotations.Test)

Example 8 with Analyzer

use of com.ibm.cloud.cloudant.v1.model.Analyzer in project cloudant-java-sdk by IBM.

the class AnalyzerTest method testAnalyzer.

@Test
public void testAnalyzer() throws Throwable {
    Analyzer analyzerModel = new Analyzer.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).build();
    assertEquals(analyzerModel.name(), "classic");
    assertEquals(analyzerModel.stopwords(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    String json = TestUtilities.serialize(analyzerModel);
    Analyzer analyzerModelNew = TestUtilities.deserialize(json, Analyzer.class);
    assertTrue(analyzerModelNew instanceof Analyzer);
    assertEquals(analyzerModelNew.name(), "classic");
}
Also used : ArrayList(java.util.ArrayList) Analyzer(com.ibm.cloud.cloudant.v1.model.Analyzer) Test(org.testng.annotations.Test)

Example 9 with Analyzer

use of com.ibm.cloud.cloudant.v1.model.Analyzer in project cloudant-java-sdk by IBM.

the class PostIndexOptionsTest method testPostIndexOptions.

@Test
public void testPostIndexOptions() throws Throwable {
    Analyzer analyzerModel = new Analyzer.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).build();
    assertEquals(analyzerModel.name(), "classic");
    assertEquals(analyzerModel.stopwords(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    IndexTextOperatorDefaultField indexTextOperatorDefaultFieldModel = new IndexTextOperatorDefaultField.Builder().analyzer(analyzerModel).enabled(true).build();
    assertEquals(indexTextOperatorDefaultFieldModel.analyzer(), analyzerModel);
    assertEquals(indexTextOperatorDefaultFieldModel.enabled(), Boolean.valueOf(true));
    IndexField indexFieldModel = new IndexField.Builder().name("testString").type("boolean").add("foo", "asc").build();
    assertEquals(indexFieldModel.getName(), "testString");
    assertEquals(indexFieldModel.getType(), "boolean");
    assertEquals(indexFieldModel.get("foo"), "asc");
    IndexDefinition indexDefinitionModel = new IndexDefinition.Builder().defaultAnalyzer(analyzerModel).defaultField(indexTextOperatorDefaultFieldModel).fields(new java.util.ArrayList<IndexField>(java.util.Arrays.asList(indexFieldModel))).indexArrayLengths(true).partialFilterSelector(new java.util.HashMap<String, Object>() {

        {
            put("foo", "testString");
        }
    }).build();
    assertEquals(indexDefinitionModel.defaultAnalyzer(), analyzerModel);
    assertEquals(indexDefinitionModel.defaultField(), indexTextOperatorDefaultFieldModel);
    assertEquals(indexDefinitionModel.fields(), new java.util.ArrayList<IndexField>(java.util.Arrays.asList(indexFieldModel)));
    assertEquals(indexDefinitionModel.indexArrayLengths(), Boolean.valueOf(true));
    assertEquals(indexDefinitionModel.partialFilterSelector(), new java.util.HashMap<String, Object>() {

        {
            put("foo", "testString");
        }
    });
    PostIndexOptions postIndexOptionsModel = new PostIndexOptions.Builder().db("testString").index(indexDefinitionModel).ddoc("testString").def(indexDefinitionModel).name("testString").partitioned(true).type("json").build();
    assertEquals(postIndexOptionsModel.db(), "testString");
    assertEquals(postIndexOptionsModel.index(), indexDefinitionModel);
    assertEquals(postIndexOptionsModel.ddoc(), "testString");
    assertEquals(postIndexOptionsModel.def(), indexDefinitionModel);
    assertEquals(postIndexOptionsModel.name(), "testString");
    assertEquals(postIndexOptionsModel.partitioned(), Boolean.valueOf(true));
    assertEquals(postIndexOptionsModel.type(), "json");
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Analyzer(com.ibm.cloud.cloudant.v1.model.Analyzer) PostIndexOptions(com.ibm.cloud.cloudant.v1.model.PostIndexOptions) IndexDefinition(com.ibm.cloud.cloudant.v1.model.IndexDefinition) IndexTextOperatorDefaultField(com.ibm.cloud.cloudant.v1.model.IndexTextOperatorDefaultField) IndexField(com.ibm.cloud.cloudant.v1.model.IndexField) Test(org.testng.annotations.Test)

Example 10 with Analyzer

use of com.ibm.cloud.cloudant.v1.model.Analyzer in project cloudant-java-sdk by IBM.

the class PutDesignDocumentOptionsTest method testPutDesignDocumentOptions.

@Test
public void testPutDesignDocumentOptions() throws Throwable {
    Attachment attachmentModel = new Attachment.Builder().contentType("testString").data(TestUtilities.createMockByteArray("This is a mock byte array value.")).digest("testString").encodedLength(Long.valueOf("0")).encoding("testString").follows(true).length(Long.valueOf("0")).revpos(Long.valueOf("1")).stub(true).build();
    assertEquals(attachmentModel.contentType(), "testString");
    assertEquals(attachmentModel.data(), TestUtilities.createMockByteArray("This is a mock byte array value."));
    assertEquals(attachmentModel.digest(), "testString");
    assertEquals(attachmentModel.encodedLength(), Long.valueOf("0"));
    assertEquals(attachmentModel.encoding(), "testString");
    assertEquals(attachmentModel.follows(), Boolean.valueOf(true));
    assertEquals(attachmentModel.length(), Long.valueOf("0"));
    assertEquals(attachmentModel.revpos(), Long.valueOf("1"));
    assertEquals(attachmentModel.stub(), Boolean.valueOf(true));
    Revisions revisionsModel = new Revisions.Builder().ids(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).start(Long.valueOf("1")).build();
    assertEquals(revisionsModel.ids(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    assertEquals(revisionsModel.start(), Long.valueOf("1"));
    DocumentRevisionStatus documentRevisionStatusModel = new DocumentRevisionStatus.Builder().rev("testString").status("available").build();
    assertEquals(documentRevisionStatusModel.rev(), "testString");
    assertEquals(documentRevisionStatusModel.status(), "available");
    Analyzer analyzerModel = new Analyzer.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).build();
    assertEquals(analyzerModel.name(), "classic");
    assertEquals(analyzerModel.stopwords(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    AnalyzerConfiguration analyzerConfigurationModel = new AnalyzerConfiguration.Builder().name("classic").stopwords(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).fields(new java.util.HashMap<String, Analyzer>() {

        {
            put("foo", analyzerModel);
        }
    }).build();
    assertEquals(analyzerConfigurationModel.name(), "classic");
    assertEquals(analyzerConfigurationModel.stopwords(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    assertEquals(analyzerConfigurationModel.fields(), new java.util.HashMap<String, Analyzer>() {

        {
            put("foo", analyzerModel);
        }
    });
    SearchIndexDefinition searchIndexDefinitionModel = new SearchIndexDefinition.Builder().analyzer(analyzerConfigurationModel).index("testString").build();
    assertEquals(searchIndexDefinitionModel.analyzer(), analyzerConfigurationModel);
    assertEquals(searchIndexDefinitionModel.index(), "testString");
    DesignDocumentOptions designDocumentOptionsModel = new DesignDocumentOptions.Builder().partitioned(true).build();
    assertEquals(designDocumentOptionsModel.partitioned(), Boolean.valueOf(true));
    DesignDocumentViewsMapReduce designDocumentViewsMapReduceModel = new DesignDocumentViewsMapReduce.Builder().map("testString").reduce("testString").build();
    assertEquals(designDocumentViewsMapReduceModel.map(), "testString");
    assertEquals(designDocumentViewsMapReduceModel.reduce(), "testString");
    GeoIndexDefinition geoIndexDefinitionModel = new GeoIndexDefinition.Builder().index("testString").build();
    assertEquals(geoIndexDefinitionModel.index(), "testString");
    DesignDocument designDocumentModel = new DesignDocument.Builder().attachments(new java.util.HashMap<String, Attachment>() {

        {
            put("foo", attachmentModel);
        }
    }).conflicts(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).deleted(true).deletedConflicts(new java.util.ArrayList<String>(java.util.Arrays.asList("testString"))).id("testString").localSeq("testString").rev("testString").revisions(revisionsModel).revsInfo(new java.util.ArrayList<DocumentRevisionStatus>(java.util.Arrays.asList(documentRevisionStatusModel))).autoupdate(true).filters(new java.util.HashMap<String, String>() {

        {
            put("foo", "testString");
        }
    }).indexes(new java.util.HashMap<String, SearchIndexDefinition>() {

        {
            put("foo", searchIndexDefinitionModel);
        }
    }).language("javascript").options(designDocumentOptionsModel).validateDocUpdate("testString").views(new java.util.HashMap<String, DesignDocumentViewsMapReduce>() {

        {
            put("foo", designDocumentViewsMapReduceModel);
        }
    }).stIndexes(new java.util.HashMap<String, GeoIndexDefinition>() {

        {
            put("foo", geoIndexDefinitionModel);
        }
    }).add("foo", "testString").build();
    assertEquals(designDocumentModel.getAttachments(), new java.util.HashMap<String, Attachment>() {

        {
            put("foo", attachmentModel);
        }
    });
    assertEquals(designDocumentModel.getConflicts(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    assertEquals(designDocumentModel.isDeleted(), Boolean.valueOf(true));
    assertEquals(designDocumentModel.getDeletedConflicts(), new java.util.ArrayList<String>(java.util.Arrays.asList("testString")));
    assertEquals(designDocumentModel.getId(), "testString");
    assertEquals(designDocumentModel.getLocalSeq(), "testString");
    assertEquals(designDocumentModel.getRev(), "testString");
    assertEquals(designDocumentModel.getRevisions(), revisionsModel);
    assertEquals(designDocumentModel.getRevsInfo(), new java.util.ArrayList<DocumentRevisionStatus>(java.util.Arrays.asList(documentRevisionStatusModel)));
    assertEquals(designDocumentModel.isAutoupdate(), Boolean.valueOf(true));
    assertEquals(designDocumentModel.getFilters(), new java.util.HashMap<String, String>() {

        {
            put("foo", "testString");
        }
    });
    assertEquals(designDocumentModel.getIndexes(), new java.util.HashMap<String, SearchIndexDefinition>() {

        {
            put("foo", searchIndexDefinitionModel);
        }
    });
    assertEquals(designDocumentModel.getLanguage(), "javascript");
    assertEquals(designDocumentModel.getOptions(), designDocumentOptionsModel);
    assertEquals(designDocumentModel.getValidateDocUpdate(), "testString");
    assertEquals(designDocumentModel.getViews(), new java.util.HashMap<String, DesignDocumentViewsMapReduce>() {

        {
            put("foo", designDocumentViewsMapReduceModel);
        }
    });
    assertEquals(designDocumentModel.getStIndexes(), new java.util.HashMap<String, GeoIndexDefinition>() {

        {
            put("foo", geoIndexDefinitionModel);
        }
    });
    assertEquals(designDocumentModel.get("foo"), "testString");
    PutDesignDocumentOptions putDesignDocumentOptionsModel = new PutDesignDocumentOptions.Builder().db("testString").ddoc("testString").designDocument(designDocumentModel).ifMatch("testString").batch("ok").newEdits(false).rev("testString").build();
    assertEquals(putDesignDocumentOptionsModel.db(), "testString");
    assertEquals(putDesignDocumentOptionsModel.ddoc(), "testString");
    assertEquals(putDesignDocumentOptionsModel.designDocument(), designDocumentModel);
    assertEquals(putDesignDocumentOptionsModel.ifMatch(), "testString");
    assertEquals(putDesignDocumentOptionsModel.batch(), "ok");
    assertEquals(putDesignDocumentOptionsModel.newEdits(), Boolean.valueOf(false));
    assertEquals(putDesignDocumentOptionsModel.rev(), "testString");
}
Also used : PutDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions) HashMap(java.util.HashMap) SearchIndexDefinition(com.ibm.cloud.cloudant.v1.model.SearchIndexDefinition) ArrayList(java.util.ArrayList) Attachment(com.ibm.cloud.cloudant.v1.model.Attachment) Revisions(com.ibm.cloud.cloudant.v1.model.Revisions) Analyzer(com.ibm.cloud.cloudant.v1.model.Analyzer) DocumentRevisionStatus(com.ibm.cloud.cloudant.v1.model.DocumentRevisionStatus) DesignDocumentViewsMapReduce(com.ibm.cloud.cloudant.v1.model.DesignDocumentViewsMapReduce) DesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.DesignDocumentOptions) PutDesignDocumentOptions(com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions) DesignDocument(com.ibm.cloud.cloudant.v1.model.DesignDocument) AnalyzerConfiguration(com.ibm.cloud.cloudant.v1.model.AnalyzerConfiguration) GeoIndexDefinition(com.ibm.cloud.cloudant.v1.model.GeoIndexDefinition) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)15 ArrayList (java.util.ArrayList)11 Analyzer (com.ibm.cloud.cloudant.v1.model.Analyzer)10 HashMap (java.util.HashMap)9 MockResponse (okhttp3.mockwebserver.MockResponse)6 RecordedRequest (okhttp3.mockwebserver.RecordedRequest)6 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)6 AnalyzerConfiguration (com.ibm.cloud.cloudant.v1.model.AnalyzerConfiguration)5 SearchIndexDefinition (com.ibm.cloud.cloudant.v1.model.SearchIndexDefinition)5 DesignDocument (com.ibm.cloud.cloudant.v1.model.DesignDocument)4 GeoIndexDefinition (com.ibm.cloud.cloudant.v1.model.GeoIndexDefinition)4 IndexTextOperatorDefaultField (com.ibm.cloud.cloudant.v1.model.IndexTextOperatorDefaultField)4 Attachment (com.ibm.cloud.cloudant.v1.model.Attachment)3 DesignDocumentOptions (com.ibm.cloud.cloudant.v1.model.DesignDocumentOptions)3 DesignDocumentViewsMapReduce (com.ibm.cloud.cloudant.v1.model.DesignDocumentViewsMapReduce)3 DocumentRevisionStatus (com.ibm.cloud.cloudant.v1.model.DocumentRevisionStatus)3 IndexDefinition (com.ibm.cloud.cloudant.v1.model.IndexDefinition)3 IndexField (com.ibm.cloud.cloudant.v1.model.IndexField)3 Revisions (com.ibm.cloud.cloudant.v1.model.Revisions)3 GetDesignDocumentOptions (com.ibm.cloud.cloudant.v1.model.GetDesignDocumentOptions)2