@azure-rest/maps-geolocation package
Schnittstellen
| CountryRegionOutput |
Das Objekt, das die Informationen zu Land/Region enthält. |
| ErrorAdditionalInfoOutput |
Der Ressourcenverwaltungsfehler zusätzliche Informationen. |
| ErrorDetailOutput |
Das Fehlerdetails. |
| ErrorResponseOutput |
Häufige Fehlerantwort für alle Azure Resource Manager-APIs, um Fehlerdetails für fehlgeschlagene Vorgänge zurückzugeben. (Dies folgt auch dem OData-Fehlerantwortformat.) |
| GeolocationGetLocation200Response |
Die |
| GeolocationGetLocationDefaultResponse |
Die |
| GeolocationGetLocationQueryParam | |
| GeolocationGetLocationQueryParamProperties | |
| GetLocation | |
| IpAddressToLocationResultOutput |
Dieses Objekt wird von einem erfolgreichen Aufruf der IP-Adresse an die Länder-/Regions-API zurückgegeben. |
| MapsGeolocationClientOptions |
Die optionalen Parameter für den Client |
| Routes | |
Functions
| default(Azure |
Erstellt eine Instanz von MapsGeolocationClient aus einem Abonnementschlüssel. Beispiel
|
| default(Token |
Erstellt eine Instanz von MapsGeolocation aus einer Azure Identity Beispiel
|
| default(Azure |
Erstellt eine Instanz von MapsGeolocation aus einer Azure Identity Beispiel
|
| is |
Details zur Funktion
default(AzureKeyCredential, ClientOptions)
Erstellt eine Instanz von MapsGeolocationClient aus einem Abonnementschlüssel.
Beispiel
import { AzureKeyCredential } from "@azure/core-auth";
import MapsGeolocation from "@azure-rest/maps-geolocation";
const credential = new AzureKeyCredential("<subscription-key>");
const client = MapsGeolocation(credential);
function default(credential: AzureKeyCredential, options?: ClientOptions): MapsGeolocationClient
Parameter
- credential
- AzureKeyCredential
Eine AzureKeyCredential-Instanz, die zum Authentifizieren von Anforderungen an den Dienst verwendet wird
- options
- ClientOptions
Optionen zum Konfigurieren des Geolocation-Clients
Gibt zurück
default(TokenCredential, string, ClientOptions)
Erstellt eine Instanz von MapsGeolocation aus einer Azure Identity TokenCredential.
Beispiel
import { DefaultAzureCredential } from "@azure/identity";
import MapsGeolocation from "@azure-rest/maps-geolocation";
const credential = new DefaultAzureCredential();
const client = MapsGeolocation(credential, "<maps-account-client-id>");
function default(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsGeolocationClient
Parameter
- credential
- TokenCredential
Eine TokenCredential-Instanz, die zum Authentifizieren von Anforderungen an den Dienst verwendet wird
- mapsAccountClientId
-
string
Die Azure Maps-Client-ID einer bestimmten Kartenressource
- options
- ClientOptions
Optionen zum Konfigurieren des Routingclients
Gibt zurück
default(AzureSASCredential, ClientOptions)
Erstellt eine Instanz von MapsGeolocation aus einer Azure Identity AzureSASCredential.
Beispiel
import { AzureSASCredential } from "@azure/core-auth";
import MapsGeolocation from "@azure-rest/maps-geolocation";
const credential = new AzureSASCredential("<SAS Token>");
const client = MapsGeolocation(credential);
function default(credential: AzureSASCredential, options?: ClientOptions): MapsGeolocationClient
Parameter
- credential
- AzureSASCredential
Eine AzureSASCredential-Instanz, die zum Authentifizieren von Anforderungen an den Dienst verwendet wird
- options
- ClientOptions
Optionen zum Konfigurieren des Geolocation-Clients
Gibt zurück
isUnexpected(GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse)
function isUnexpected(response: GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse): response
Parameter
Gibt zurück
response