Class DiscoveryAsyncClient


  • public final class DiscoveryAsyncClient
    extends Object
    Initializes a new instance of the asynchronous PurviewCatalogClient type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> autoCompleteWithResponse​(com.azure.core.util.BinaryData autoCompleteRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Get auto complete options.
      Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> browseWithResponse​(com.azure.core.util.BinaryData browseRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Browse entities by path or entity type.
      Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> queryWithResponse​(com.azure.core.util.BinaryData searchRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Gets data using search.
      Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> suggestWithResponse​(com.azure.core.util.BinaryData suggestRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Get search suggestions by query criteria.
    • Method Detail

      • queryWithResponse

        public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> queryWithResponse​(com.azure.core.util.BinaryData searchRequest,
                                                                                                         com.azure.core.http.rest.RequestOptions requestOptions)
        Gets data using search.

        Query Parameters

        Query Parameters
        NameTypeRequiredDescription
        api-versionStringYesApi Version

        Request Body Schema

        
         {
             keywords: String
             offset: Integer
             limit: Integer
             filter: Object
             facets: [
                 {
                     count: Integer
                     facet: String
                     sort: Object
                 }
             ]
             taxonomySetting: {
                 assetTypes: [
                     String
                 ]
                 facet: (recursive schema, see facet above)
             }
         }
         

        Response Body Schema

        
         {
             searchCount: Integer
             searchFacets: {
                 assetType: [
                     {
                         count: Integer
                         value: String
                     }
                 ]
                 classification: [
                     (recursive schema, see above)
                 ]
                 classificationCategory: [
                     (recursive schema, see above)
                 ]
                 contactId: [
                     (recursive schema, see above)
                 ]
                 fileExtension: [
                     (recursive schema, see above)
                 ]
                 label: [
                     (recursive schema, see above)
                 ]
                 term: [
                     (recursive schema, see above)
                 ]
             }
             value: [
                 {
                     searchScore: Float
                     searchHighlights: {
                         id: [
                             String
                         ]
                         qualifiedName: [
                             String
                         ]
                         name: [
                             String
                         ]
                         description: [
                             String
                         ]
                         entityType: [
                             String
                         ]
                     }
                     searchText: String
                     description: String
                     id: String
                     name: String
                     owner: String
                     qualifiedName: String
                     entityType: String
                     classification: [
                         String
                     ]
                     label: [
                         String
                     ]
                     term: [
                         {
                             name: String
                             glossaryName: String
                             guid: String
                         }
                     ]
                     contact: [
                         {
                             id: String
                             info: String
                             contactType: String
                         }
                     ]
                     assetType: [
                         String
                     ]
                 }
             ]
         }
         
        Parameters:
        searchRequest - An object specifying the search criteria.
        requestOptions - The options to configure the HTTP request before HTTP client sends it.
        Returns:
        data using search along with Response on successful completion of Mono.
        Throws:
        com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
        com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
        com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
        com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      • suggestWithResponse

        public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> suggestWithResponse​(com.azure.core.util.BinaryData suggestRequest,
                                                                                                           com.azure.core.http.rest.RequestOptions requestOptions)
        Get search suggestions by query criteria.

        Query Parameters

        Query Parameters
        NameTypeRequiredDescription
        api-versionStringYesApi Version

        Request Body Schema

        
         {
             keywords: String
             limit: Integer
             filter: Object
         }
         

        Response Body Schema

        
         {
             value: [
                 {
                     searchScore: Float
                     searchText: String
                     description: String
                     id: String
                     name: String
                     owner: String
                     qualifiedName: String
                     entityType: String
                     classification: [
                         String
                     ]
                     label: [
                         String
                     ]
                     term: [
                         {
                             name: String
                             glossaryName: String
                             guid: String
                         }
                     ]
                     contact: [
                         {
                             id: String
                             info: String
                             contactType: String
                         }
                     ]
                     assetType: [
                         String
                     ]
                 }
             ]
         }
         
        Parameters:
        suggestRequest - An object specifying the suggest criteria.
        requestOptions - The options to configure the HTTP request before HTTP client sends it.
        Returns:
        search suggestions by query criteria along with Response on successful completion of Mono.
        Throws:
        com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
        com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
        com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
        com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      • browseWithResponse

        public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> browseWithResponse​(com.azure.core.util.BinaryData browseRequest,
                                                                                                          com.azure.core.http.rest.RequestOptions requestOptions)
        Browse entities by path or entity type.

        Query Parameters

        Query Parameters
        NameTypeRequiredDescription
        api-versionStringYesApi Version

        Request Body Schema

        
         {
             entityType: String
             path: String
             limit: Integer
             offset: Integer
         }
         

        Response Body Schema

        
         {
             searchCount: Integer
             value: [
                 {
                     entityType: String
                     id: String
                     isLeaf: Boolean
                     name: String
                     owner: [
                         {
                             id: String
                             displayName: String
                             mail: String
                             contactType: String
                         }
                     ]
                     path: String
                     qualifiedName: String
                 }
             ]
         }
         
        Parameters:
        browseRequest - An object specifying the browse criteria.
        requestOptions - The options to configure the HTTP request before HTTP client sends it.
        Returns:
        browseResult along with Response on successful completion of Mono.
        Throws:
        com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
        com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
        com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
        com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
      • autoCompleteWithResponse

        public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> autoCompleteWithResponse​(com.azure.core.util.BinaryData autoCompleteRequest,
                                                                                                                com.azure.core.http.rest.RequestOptions requestOptions)
        Get auto complete options.

        Query Parameters

        Query Parameters
        NameTypeRequiredDescription
        api-versionStringYesApi Version

        Request Body Schema

        
         {
             keywords: String
             limit: Integer
             filter: Object
         }
         

        Response Body Schema

        
         {
             value: [
                 {
                     text: String
                     queryPlusText: String
                 }
             ]
         }
         
        Parameters:
        autoCompleteRequest - An object specifying the autocomplete criteria.
        requestOptions - The options to configure the HTTP request before HTTP client sends it.
        Returns:
        auto complete options along with Response on successful completion of Mono.
        Throws:
        com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
        com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
        com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
        com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.