/**
 * DlsDataPlane API
 * A description of the DlsDataPlane API.
 * OpenAPI spec version: 20211001
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import common = require ( "oci-common" ) ; import * as requests from "./request" ; import * as model from "./model" ; import * as responses from "./response" ; import { DataLabelingWaiter } from "./datalabeling-waiter" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum DataLabelingApiKeys { } /**
 * This service client uses  common . CircuitBreaker . DefaultConfiguration for all the operations by default if no circuit breaker configuration is defined by the user.
  export class DataLabelingClient { protected static serviceEndpointTemplate = "https://datalabeling-dp.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_waiters" : DataLabelingWaiter ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; if ( params . authenticationDetailsProvider && common . isRegionProvider ( params . authenticationDetailsProvider ) ) { const provider = params . authenticationDetailsProvider ; if ( provider . getRegion ( ) ) { this . region = provider . getRegion ( ) ; } } } /**
     * Get the endpoint that is being used to call (ex, https://www.example.com).
     */ public get endpoint ( ) { return this . _endpoint ; } param endpoint public set endpoint ( endpoint ) { this . _endpoint = endpoint ; this . _endpoint = this . _endpoint + "/20211001" ; if ( this . logger ) this . logger . info ( `DataLabelingClient endpoint set to ${ this . _endpoint }` ) ; } public get logger ( ) { return common . LOG . logger ; } /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     * Note, this will call  {@link #endpoint(String) endpoint} after resolving the endpoint.
     *  param region public set region ( region ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegion ( DataLabelingClient . serviceEndpointTemplate , region ) ; } /**
     * Sets the regionId to call (ex, 'us-phoenix-1').
     *
     * Note, this will first try to map the region ID to a known Region and call  {@link #region(Region) region} .
     * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
     * and then call  {@link #endpoint(String) endpoint} .
     *  param regionId public set regionId ( regionId ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegionId ( DataLabelingClient . serviceEndpointTemplate , regionId ) ; } param config return public createWaiters ( config ? ) { this . _waiters = new DataLabelingWaiter ( this , config ) ; return this . _waiters ; } return public getWaiters ( ) { if ( this . _waiters ) { return this . _waiters ; } throw Error ( "Waiters do not exist. Please create waiters." ) ; } param CreateAnnotationRequest return throws example Click  https to see how to use CreateAnnotation API.
      public async createAnnotation ( createAnnotationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#createAnnotation." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createAnnotationRequest . opcRetryToken , "opc-request-id" : createAnnotationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createAnnotationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/annotations" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createAnnotationRequest . createAnnotationDetails , "CreateAnnotationDetails" , model . CreateAnnotationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateAnnotationResponse > { } , body : await response . json ( ) , bodyKey : "annotation" , bodyModel : model . Annotation , type : "model.Annotation" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateRecordRequest return throws example Click  https to see how to use CreateRecord API.
      public async createRecord ( createRecordRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#createRecord." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-retry-token" : createRecordRequest . opcRetryToken , "opc-request-id" : createRecordRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createRecordRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createRecordRequest . createRecordDetails , "CreateRecordDetails" , model . CreateRecordDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateRecordResponse > { } , body : await response . json ( ) , bodyKey : "record" , bodyModel : model . Record , type : "model.Record" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteAnnotationRequest return throws example Click  https to see how to use DeleteAnnotation API.
      public async deleteAnnotation ( deleteAnnotationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#deleteAnnotation." ) ; const pathParams = { "{annotationId}" : deleteAnnotationRequest . annotationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteAnnotationRequest . ifMatch , "opc-request-id" : deleteAnnotationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteAnnotationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/annotations/{annotationId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteAnnotationResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteRecordRequest return throws example Click  https to see how to use DeleteRecord API.
      public async deleteRecord ( deleteRecordRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#deleteRecord." ) ; const pathParams = { "{recordId}" : deleteRecordRequest . recordId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : deleteRecordRequest . ifMatch , "opc-request-id" : deleteRecordRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteRecordRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records/{recordId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteRecordResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetAnnotationRequest return throws example Click  https to see how to use GetAnnotation API.
      public async getAnnotation ( getAnnotationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#getAnnotation." ) ; const pathParams = { "{annotationId}" : getAnnotationRequest . annotationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getAnnotationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getAnnotationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/annotations/{annotationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetAnnotationResponse > { } , body : await response . json ( ) , bodyKey : "annotation" , bodyModel : model . Annotation , type : "model.Annotation" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetDatasetRequest return throws example Click  https to see how to use GetDataset API.
      public async getDataset ( getDatasetRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#getDataset." ) ; const pathParams = { "{datasetId}" : getDatasetRequest . datasetId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getDatasetRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getDatasetRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/datasets/{datasetId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetDatasetResponse > { } , body : await response . json ( ) , bodyKey : "dataset" , bodyModel : model . Dataset , type : "model.Dataset" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetRecordRequest return throws example Click  https to see how to use GetRecord API.
      public async getRecord ( getRecordRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#getRecord." ) ; const pathParams = { "{recordId}" : getRecordRequest . recordId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRecordRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRecordRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records/{recordId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRecordResponse > { } , body : await response . json ( ) , bodyKey : "record" , bodyModel : model . Record , type : "model.Record" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetRecordContentRequest return throws example Click  https to see how to use GetRecordContent API.
      public async getRecordContent ( getRecordContentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#getRecordContent." ) ; const pathParams = { "{recordId}" : getRecordContentRequest . recordId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRecordContentRequest . opcRequestId , "if-none-match" : getRecordContentRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRecordContentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records/{recordId}/content" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRecordContentResponse > { } , body : response . body ! , bodyKey : "value" , bodyModel : "string" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "content-length" ) , key : "contentLength" , dataType : "number" } , { value : response . headers . get ( "content-disposition" ) , key : "contentDisposition" , dataType : "string" } , { value : response . headers . get ( "content-type" ) , key : "contentType" , dataType : "string" } , { value : response . headers . get ( "cache-control" ) , key : "cacheControl" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetRecordPreviewContentRequest return throws example Click  https to see how to use GetRecordPreviewContent API.
      public async getRecordPreviewContent ( getRecordPreviewContentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#getRecordPreviewContent." ) ; const pathParams = { "{recordId}" : getRecordPreviewContentRequest . recordId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getRecordPreviewContentRequest . opcRequestId , "if-none-match" : getRecordPreviewContentRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getRecordPreviewContentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records/{recordId}/preview/content" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetRecordPreviewContentResponse > { } , body : response . body ! , bodyKey : "value" , bodyModel : "string" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "content-length" ) , key : "contentLength" , dataType : "number" } , { value : response . headers . get ( "content-disposition" ) , key : "contentDisposition" , dataType : "string" } , { value : response . headers . get ( "content-type" ) , key : "contentType" , dataType : "string" } , { value : response . headers . get ( "cache-control" ) , key : "cacheControl" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListAnnotationsRequest return throws example Click  https to see how to use ListAnnotations API.
      public async listAnnotations ( listAnnotationsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#listAnnotations." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listAnnotationsRequest . compartmentId , "lifecycleState" : listAnnotationsRequest . lifecycleState , "id" : listAnnotationsRequest . id , "datasetId" : listAnnotationsRequest . datasetId , "updatedBy" : listAnnotationsRequest . updatedBy , "recordId" : listAnnotationsRequest . recordId , "timeCreatedGreaterThanOrEqualTo" : listAnnotationsRequest . timeCreatedGreaterThanOrEqualTo , "timeCreatedLessThanOrEqualTo" : listAnnotationsRequest . timeCreatedLessThanOrEqualTo , "limit" : listAnnotationsRequest . limit , "page" : listAnnotationsRequest . page , "sortOrder" : listAnnotationsRequest . sortOrder , "sortBy" : listAnnotationsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listAnnotationsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listAnnotationsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/annotations" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListAnnotationsResponse > { } , body : await response . json ( ) , bodyKey : "annotationCollection" , bodyModel : model . AnnotationCollection , type : "model.AnnotationCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListRecordsRequest return throws example Click  https to see how to use ListRecords API.
      public async listRecords ( listRecordsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#listRecords." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : listRecordsRequest . compartmentId , "lifecycleState" : listRecordsRequest . lifecycleState , "name" : listRecordsRequest . name , "id" : listRecordsRequest . id , "datasetId" : listRecordsRequest . datasetId , "isLabeled" : listRecordsRequest . isLabeled , "annotationLabelsContains" : listRecordsRequest . annotationLabelsContains , "limit" : listRecordsRequest . limit , "page" : listRecordsRequest . page , "sortOrder" : listRecordsRequest . sortOrder , "sortBy" : listRecordsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listRecordsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listRecordsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListRecordsResponse > { } , body : await response . json ( ) , bodyKey : "recordCollection" , bodyModel : model . RecordCollection , type : "model.RecordCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param SummarizeAnnotationAnalyticsRequest return throws example Click  https to see how to use SummarizeAnnotationAnalytics API.
      public async summarizeAnnotationAnalytics ( summarizeAnnotationAnalyticsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#summarizeAnnotationAnalytics." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : summarizeAnnotationAnalyticsRequest . compartmentId , "datasetId" : summarizeAnnotationAnalyticsRequest . datasetId , "lifecycleState" : summarizeAnnotationAnalyticsRequest . lifecycleState , "label" : summarizeAnnotationAnalyticsRequest . label , "limit" : summarizeAnnotationAnalyticsRequest . limit , "page" : summarizeAnnotationAnalyticsRequest . page , "sortOrder" : summarizeAnnotationAnalyticsRequest . sortOrder , "sortBy" : summarizeAnnotationAnalyticsRequest . sortBy , "annotationGroupBy" : summarizeAnnotationAnalyticsRequest . annotationGroupBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : summarizeAnnotationAnalyticsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , summarizeAnnotationAnalyticsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/annotationAnalytics" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SummarizeAnnotationAnalyticsResponse > { } , body : await response . json ( ) , bodyKey : "annotationAnalyticsAggregationCollection" , bodyModel : model . AnnotationAnalyticsAggregationCollection , type : "model.AnnotationAnalyticsAggregationCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param SummarizeRecordAnalyticsRequest return throws example Click  https to see how to use SummarizeRecordAnalytics API.
      public async summarizeRecordAnalytics ( summarizeRecordAnalyticsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#summarizeRecordAnalytics." ) ; const pathParams = { } ; const queryParams = { "compartmentId" : summarizeRecordAnalyticsRequest . compartmentId , "lifecycleState" : summarizeRecordAnalyticsRequest . lifecycleState , "datasetId" : summarizeRecordAnalyticsRequest . datasetId , "limit" : summarizeRecordAnalyticsRequest . limit , "page" : summarizeRecordAnalyticsRequest . page , "sortOrder" : summarizeRecordAnalyticsRequest . sortOrder , "recordGroupBy" : summarizeRecordAnalyticsRequest . recordGroupBy , "sortBy" : summarizeRecordAnalyticsRequest . sortBy } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : summarizeRecordAnalyticsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , summarizeRecordAnalyticsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/recordAnalytics" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . SummarizeRecordAnalyticsResponse > { } , body : await response . json ( ) , bodyKey : "recordAnalyticsAggregationCollection" , bodyModel : model . RecordAnalyticsAggregationCollection , type : "model.RecordAnalyticsAggregationCollection" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateAnnotationRequest return throws example Click  https to see how to use UpdateAnnotation API.
      public async updateAnnotation ( updateAnnotationRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#updateAnnotation." ) ; const pathParams = { "{annotationId}" : updateAnnotationRequest . annotationId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateAnnotationRequest . ifMatch , "opc-request-id" : updateAnnotationRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateAnnotationRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/annotations/{annotationId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateAnnotationRequest . updateAnnotationDetails , "UpdateAnnotationDetails" , model . UpdateAnnotationDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateAnnotationResponse > { } , body : await response . json ( ) , bodyKey : "annotation" , bodyModel : model . Annotation , type : "model.Annotation" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdateRecordRequest return throws example Click  https to see how to use UpdateRecord API.
      public async updateRecord ( updateRecordRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation DataLabelingClient#updateRecord." ) ; const pathParams = { "{recordId}" : updateRecordRequest . recordId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : updateRecordRequest . ifMatch , "opc-request-id" : updateRecordRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateRecordRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/records/{recordId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateRecordRequest . updateRecordDetails , "UpdateRecordDetails" , model . UpdateRecordDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateRecordResponse > { } , body : await response . json ( ) , bodyKey : "record" , bodyModel : model . Record , type : "model.Record" , responseHeaders : [ { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } , { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }