import { getClient , ClientOptions } from "@azure-rest/core-client" ; import { TokenCredential } from "@azure/core-auth" ; import { PurviewMetadataPoliciesRestClient } from "./clientDefinitions" ; export function PurviewMetadataPolicies ( Endpoint , credentials , options = { } ) { const baseUrl = options . baseUrl ?? `${ Endpoint }/policyStore` ; options . apiVersion = options . apiVersion ?? "2021-07-01-preview" ; options = { ... options , credentials : { scopes : [ "https://purview.azure.net/.default" ] } } ; const client = getClient ( baseUrl , credentials , options ) as PurviewMetadataPoliciesRestClient ; return client ; }