@azure-rest/maps-geolocation package
Arabirimler
| CountryRegionOutput |
Ülke/bölge bilgilerini içeren nesne. |
| ErrorAdditionalInfoOutput |
Kaynak yönetimi hatası ek bilgileri. |
| ErrorDetailOutput |
Hata ayrıntısı. |
| ErrorResponseOutput |
Başarısız işlemlerin hata ayrıntılarını döndürmek için tüm Azure Resource Manager API'leri için genel hata yanıtı. (Bu, OData hata yanıt biçimini de izler.). |
| GeolocationGetLocation200Response |
|
| GeolocationGetLocationDefaultResponse |
|
| GeolocationGetLocationQueryParam | |
| GeolocationGetLocationQueryParamProperties | |
| GetLocation | |
| IpAddressToLocationResultOutput |
Bu nesne, ülke/bölge API'sine yapılan başarılı bir IP Adresine yapılan çağrıdan döndürülür |
| MapsGeolocationClientOptions |
İstemci için isteğe bağlı parametreler |
| Routes | |
Tür Diğer Adları
| GeolocationGetLocationParameters | |
| MapsGeolocationClient |
İşlevler
| default(Azure |
Bir abonelik anahtarından MapsGeolocationClient örneği oluşturur. Örnek
|
| default(Token |
Bir Azure Identity Örnek
|
| default(Azure |
Bir Azure Identity Örnek
|
| is |
İşlev Ayrıntıları
default(AzureKeyCredential, ClientOptions)
Bir abonelik anahtarından MapsGeolocationClient örneği oluşturur.
Örnek
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
Parametreler
- credential
- AzureKeyCredential
Hizmete yönelik isteklerin kimliğini doğrulamak için kullanılan bir AzureKeyCredential örneği
- options
- ClientOptions
Coğrafi Konum İstemcisi'ni yapılandırmak için kullanılan seçenekler
Döndürülenler
default(TokenCredential, string, ClientOptions)
Bir Azure Identity TokenCredential'ndan MapsGeolocation örneği oluşturur.
Örnek
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
Parametreler
- credential
- TokenCredential
Hizmete yönelik isteklerin kimliğini doğrulamak için kullanılan TokenCredential örneği
- mapsAccountClientId
-
string
Belirli bir harita kaynağının Azure Haritalar istemci kimliği
- options
- ClientOptions
Yol İstemcisi'ni yapılandırmak için kullanılan seçenekler
Döndürülenler
default(AzureSASCredential, ClientOptions)
Bir Azure Identity AzureSASCredential'ndan MapsGeolocation örneği oluşturur.
Örnek
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
Parametreler
- credential
- AzureSASCredential
Hizmete yönelik isteklerin kimliğini doğrulamak için kullanılan bir AzureSASCredential örneği
- options
- ClientOptions
Coğrafi Konum İstemcisi'ni yapılandırmak için kullanılan seçenekler
Döndürülenler
isUnexpected(GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse)
function isUnexpected(response: GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse): response
Parametreler
Döndürülenler
response