@azure-rest/health-deidentification package
Interfaces
Type Aliases
| CancelJobParameters | |
| DeidentificationClient | |
| DeidentificationOperationType |
Alias for DeidentificationOperationType |
| DeidentificationOperationTypeOutput |
Alias for DeidentificationOperationTypeOutput |
| DeidentifyDocumentsParameters | |
| DeidentifyTextParameters | |
| DeleteJobParameters | |
| GetArrayType |
Helper type to extract the type of an array |
| GetJobParameters | |
| GetPage |
The type of a custom function that defines how to get a page and a link to the next one if any. |
| ListJobDocumentsParameters | |
| ListJobsParameters | |
| OperationState |
Alias for OperationState |
| OperationStateOutput |
Alias for OperationStateOutput |
| PaginateReturn |
Helper type to infer the Type of the paged elements from the response type
This type is generated based on the swagger information for x-ms-pageable
specifically on the itemName property which indicates the property of the response
where the page items are found. The default value is |
| PhiCategoryOutput |
Alias for PhiCategoryOutput |
Functions
Function Details
default(string, TokenCredential, DeidentificationClientOptions)
Initialize a new instance of DeidentificationClient
function default(endpointParam: string, credentials: TokenCredential, options?: DeidentificationClientOptions): DeidentificationClient
Parameters
- endpointParam
-
string
Url of your De-identification Service.
- credentials
- TokenCredential
uniquely identify client credential
- options
- DeidentificationClientOptions
the parameter for all optional parameters
Returns
getLongRunningPoller<TResult>(Client, DeidentifyDocuments200Response | DeidentifyDocuments201Response | DeidentifyDocumentsDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
Helper function that builds a Poller object to help polling a long running operation.
function getLongRunningPoller<TResult>(client: Client, initialResponse: DeidentifyDocuments200Response | DeidentifyDocuments201Response | DeidentifyDocumentsDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
Parameters
- client
- Client
Client to use for sending the request to get additional pages.
- initialResponse
-
DeidentifyDocuments200Response | DeidentifyDocuments201Response | DeidentifyDocumentsDefaultResponse
The initial response.
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
Options to set a resume state or custom polling interval.
Returns
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
- A poller object to poll for operation state updates and eventually get the final response.
isUnexpected(GetJob200Response | GetJobDefaultResponse)
function isUnexpected(response: GetJob200Response | GetJobDefaultResponse): response
Parameters
- response
Returns
response
isUnexpected(DeidentifyDocuments200Response | DeidentifyDocuments201Response | DeidentifyDocumentsDefaultResponse | DeidentifyDocumentsLogicalResponse)
function isUnexpected(response: DeidentifyDocuments200Response | DeidentifyDocuments201Response | DeidentifyDocumentsDefaultResponse | DeidentifyDocumentsLogicalResponse): response
Parameters
Returns
response
isUnexpected(DeleteJob204Response | DeleteJobDefaultResponse)
function isUnexpected(response: DeleteJob204Response | DeleteJobDefaultResponse): response
Parameters
- response
Returns
response
isUnexpected(ListJobs200Response | ListJobsDefaultResponse)
function isUnexpected(response: ListJobs200Response | ListJobsDefaultResponse): response
Parameters
- response
Returns
response
isUnexpected(ListJobDocuments200Response | ListJobDocumentsDefaultResponse)
function isUnexpected(response: ListJobDocuments200Response | ListJobDocumentsDefaultResponse): response
Parameters
Returns
response
isUnexpected(CancelJob200Response | CancelJobDefaultResponse)
function isUnexpected(response: CancelJob200Response | CancelJobDefaultResponse): response
Parameters
- response
Returns
response
isUnexpected(DeidentifyText200Response | DeidentifyTextDefaultResponse)
function isUnexpected(response: DeidentifyText200Response | DeidentifyTextDefaultResponse): response
Parameters
Returns
response
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)
Helper to paginate results from an initial response that follows the specification of Autorest x-ms-pageable extension
function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>
Parameters
- client
- Client
Client to use for sending the next page requests
- initialResponse
-
TResponse
Initial response containing the nextLink and current page of elements
- options
-
PagingOptions<TResponse>
Returns
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator to iterate the elements