@azure-rest/maps-render
Version:
A generated SDK for MapsRenderClient.
53 lines • 2.36 kB
TypeScript
import type { ClientOptions } from "@azure-rest/core-client";
import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@azure/core-auth";
import type { MapsRenderClient } from "./generated/index.js";
/**
* Creates an instance of MapsRenderClient from a subscription key.
*
* @example
* ```ts snippet:ReadmeSampleCreateClient_SubscriptionKey
* import { AzureKeyCredential } from "@azure/core-auth";
* import MapsRender from "@azure-rest/maps-render";
*
* const credential = new AzureKeyCredential("<subscription-key>");
* const client = MapsRender(credential);
*```
*
* @param credential - An AzureKeyCredential instance used to authenticate requests to the service
* @param options - Options used to configure the Render Client
*/
export default function MapsRender(credential: AzureKeyCredential, options?: ClientOptions): MapsRenderClient;
/**
* Creates an instance of MapsRender from an Azure Identity `TokenCredential`.
*
* @example
* ```ts snippet:ReadmeSampleCreateClient_TokenCredential
* import { DefaultAzureCredential } from "@azure/identity";
* import MapsRender from "@azure-rest/maps-render";
*
* const credential = new DefaultAzureCredential();
* const client = MapsRender(credential, "<maps-account-client-id>");
*```
*
* @param credential - An TokenCredential instance used to authenticate requests to the service
* @param mapsAccountClientId - The Azure Maps client id of a specific map resource
* @param options - Options used to configure the Render Client
*/
export default function MapsRender(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsRenderClient;
/**
* Creates an instance of MapsRender from an Azure Identity `AzureSASCredential`.
*
* @example
* ```ts snippet:ReadmeSampleCreateClient_SASToken
* import { AzureSASCredential } from "@azure/core-auth";
* import MapsRender from "@azure-rest/maps-render";
*
* const credential = new AzureSASCredential("<SAS Token>");
* const client = MapsRender(credential);
* ```
*
* @param credential - An AzureSASCredential instance used to authenticate requests to the service
* @param options - Options used to configure the Render Client
*/
export default function MapsRender(credential: AzureSASCredential, options?: ClientOptions): MapsRenderClient;
//# sourceMappingURL=mapsRender.d.ts.map