@azure-rest/maps-geolocation 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -4
- package/README.md +61 -52
- package/dist/browser/MapsGeolocation.d.ts +53 -0
- package/dist/browser/MapsGeolocation.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/MapsGeolocation.js +5 -5
- package/dist/browser/MapsGeolocation.js.map +1 -0
- package/dist/browser/generated/clientDefinitions.d.ts +18 -0
- package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/generated/clientDefinitions.js +4 -0
- package/dist/browser/generated/clientDefinitions.js.map +1 -0
- package/dist/browser/generated/index.d.ts +9 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +11 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +3 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/dist/browser/generated/isUnexpected.js +71 -0
- package/dist/browser/generated/isUnexpected.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/dist/browser/generated/logger.js +5 -0
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/mapsGeolocationClient.d.ts +15 -0
- package/dist/browser/generated/mapsGeolocationClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsGeolocationClient.js +42 -0
- package/dist/browser/generated/mapsGeolocationClient.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +38 -0
- package/dist/browser/generated/outputModels.d.ts.map +1 -0
- package/dist/browser/generated/outputModels.js +4 -0
- package/dist/browser/generated/outputModels.js.map +1 -0
- package/dist/browser/generated/parameters.d.ts +10 -0
- package/dist/browser/generated/parameters.d.ts.map +1 -0
- package/dist/browser/generated/parameters.js +4 -0
- package/{dist-esm/src → dist/browser}/generated/parameters.js.map +1 -1
- package/dist/browser/generated/responses.d.ts +19 -0
- package/dist/browser/generated/responses.d.ts.map +1 -0
- package/dist/browser/generated/responses.js +4 -0
- package/dist/browser/generated/responses.js.map +1 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/MapsGeolocation.d.ts +53 -0
- package/dist/commonjs/MapsGeolocation.d.ts.map +1 -0
- package/dist/commonjs/MapsGeolocation.js +44 -0
- package/dist/commonjs/MapsGeolocation.js.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +18 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.js +5 -0
- package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +9 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +14 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +3 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +74 -0
- package/dist/commonjs/generated/isUnexpected.js.map +1 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +8 -0
- package/dist/commonjs/generated/logger.js.map +1 -0
- package/dist/commonjs/generated/mapsGeolocationClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsGeolocationClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsGeolocationClient.js +45 -0
- package/dist/commonjs/generated/mapsGeolocationClient.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +38 -0
- package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
- package/dist/commonjs/generated/outputModels.js +5 -0
- package/dist/commonjs/generated/outputModels.js.map +1 -0
- package/dist/commonjs/generated/parameters.d.ts +10 -0
- package/dist/commonjs/generated/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/parameters.js +5 -0
- package/dist/commonjs/generated/parameters.js.map +1 -0
- package/dist/commonjs/generated/responses.d.ts +19 -0
- package/dist/commonjs/generated/responses.d.ts.map +1 -0
- package/dist/commonjs/generated/responses.js +5 -0
- package/dist/commonjs/generated/responses.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +9 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/MapsGeolocation.d.ts +53 -0
- package/dist/esm/MapsGeolocation.d.ts.map +1 -0
- package/dist/esm/MapsGeolocation.js +40 -0
- package/dist/esm/MapsGeolocation.js.map +1 -0
- package/dist/esm/generated/clientDefinitions.d.ts +18 -0
- package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/generated/clientDefinitions.js +4 -0
- package/dist/esm/generated/clientDefinitions.js.map +1 -0
- package/dist/esm/generated/index.d.ts +9 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +11 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +3 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +71 -0
- package/dist/esm/generated/isUnexpected.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/mapsGeolocationClient.d.ts +15 -0
- package/dist/esm/generated/mapsGeolocationClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsGeolocationClient.js +42 -0
- package/dist/esm/generated/mapsGeolocationClient.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +38 -0
- package/dist/esm/generated/outputModels.d.ts.map +1 -0
- package/dist/esm/generated/outputModels.js +4 -0
- package/dist/esm/generated/outputModels.js.map +1 -0
- package/dist/esm/generated/parameters.d.ts +10 -0
- package/dist/esm/generated/parameters.d.ts.map +1 -0
- package/dist/esm/generated/parameters.js +4 -0
- package/dist/esm/generated/parameters.js.map +1 -0
- package/dist/esm/generated/responses.d.ts +19 -0
- package/dist/esm/generated/responses.d.ts.map +1 -0
- package/dist/esm/generated/responses.js +4 -0
- package/dist/esm/generated/responses.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/MapsGeolocation.d.ts +53 -0
- package/dist/react-native/MapsGeolocation.d.ts.map +1 -0
- package/dist/react-native/MapsGeolocation.js +40 -0
- package/dist/react-native/MapsGeolocation.js.map +1 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +18 -0
- package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/generated/clientDefinitions.js +4 -0
- package/dist/react-native/generated/clientDefinitions.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +9 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +3 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +71 -0
- package/dist/react-native/generated/isUnexpected.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/mapsGeolocationClient.d.ts +15 -0
- package/dist/react-native/generated/mapsGeolocationClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsGeolocationClient.js +42 -0
- package/dist/react-native/generated/mapsGeolocationClient.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +38 -0
- package/dist/react-native/generated/outputModels.d.ts.map +1 -0
- package/dist/react-native/generated/outputModels.js +4 -0
- package/dist/react-native/generated/outputModels.js.map +1 -0
- package/dist/react-native/generated/parameters.d.ts +10 -0
- package/dist/react-native/generated/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/parameters.js +4 -0
- package/dist/react-native/generated/parameters.js.map +1 -0
- package/dist/react-native/generated/responses.d.ts +19 -0
- package/dist/react-native/generated/responses.d.ts.map +1 -0
- package/dist/react-native/generated/responses.js +4 -0
- package/dist/react-native/generated/responses.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +78 -63
- package/dist/index.js +0 -148
- package/dist/index.js.map +0 -1
- package/dist-esm/src/MapsGeolocation.js.map +0 -1
- package/dist-esm/src/generated/clientDefinitions.js +0 -4
- package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
- package/dist-esm/src/generated/index.js +0 -11
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/isUnexpected.js +0 -68
- package/dist-esm/src/generated/isUnexpected.js.map +0 -1
- package/dist-esm/src/generated/mapsGeolocationClient.js +0 -30
- package/dist-esm/src/generated/mapsGeolocationClient.js.map +0 -1
- package/dist-esm/src/generated/outputModels.js +0 -4
- package/dist-esm/src/generated/outputModels.js.map +0 -1
- package/dist-esm/src/generated/parameters.js +0 -4
- package/dist-esm/src/generated/responses.js +0 -4
- package/dist-esm/src/generated/responses.js.map +0 -1
- package/dist-esm/src/index.js +0 -6
- package/dist-esm/src/index.js.map +0 -1
- package/review/maps-geolocation.api.md +0 -107
- package/types/maps-geolocation-rest.d.ts +0 -159
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
## API Report File for "@azure-rest/maps-geolocation"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { AzureKeyCredential } from '@azure/core-auth';
|
|
8
|
-
import { AzureSASCredential } from '@azure/core-auth';
|
|
9
|
-
import { Client } from '@azure-rest/core-client';
|
|
10
|
-
import { ClientOptions } from '@azure-rest/core-client';
|
|
11
|
-
import { HttpResponse } from '@azure-rest/core-client';
|
|
12
|
-
import { RequestParameters } from '@azure-rest/core-client';
|
|
13
|
-
import { StreamableMethod } from '@azure-rest/core-client';
|
|
14
|
-
import { TokenCredential } from '@azure/core-auth';
|
|
15
|
-
|
|
16
|
-
// @public
|
|
17
|
-
export interface CountryRegionOutput {
|
|
18
|
-
isoCode?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// @public
|
|
22
|
-
export interface ErrorAdditionalInfoOutput {
|
|
23
|
-
info?: Record<string, unknown>;
|
|
24
|
-
type?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// @public
|
|
28
|
-
export interface ErrorDetailOutput {
|
|
29
|
-
additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
30
|
-
code?: string;
|
|
31
|
-
details?: Array<ErrorDetailOutput>;
|
|
32
|
-
message?: string;
|
|
33
|
-
target?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// @public
|
|
37
|
-
export interface ErrorResponseOutput {
|
|
38
|
-
error?: ErrorDetailOutput;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// @public
|
|
42
|
-
export interface GeolocationGetLocation200Response extends HttpResponse {
|
|
43
|
-
// (undocumented)
|
|
44
|
-
body: IpAddressToLocationResultOutput;
|
|
45
|
-
// (undocumented)
|
|
46
|
-
status: "200";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// @public
|
|
50
|
-
export interface GeolocationGetLocationDefaultResponse extends HttpResponse {
|
|
51
|
-
// (undocumented)
|
|
52
|
-
body: ErrorResponseOutput;
|
|
53
|
-
// (undocumented)
|
|
54
|
-
status: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// @public (undocumented)
|
|
58
|
-
export type GeolocationGetLocationParameters = GeolocationGetLocationQueryParam & RequestParameters;
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
export interface GeolocationGetLocationQueryParam {
|
|
62
|
-
// (undocumented)
|
|
63
|
-
queryParameters: GeolocationGetLocationQueryParamProperties;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// @public (undocumented)
|
|
67
|
-
export interface GeolocationGetLocationQueryParamProperties {
|
|
68
|
-
ip: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// @public (undocumented)
|
|
72
|
-
export interface GetLocation {
|
|
73
|
-
get(options: GeolocationGetLocationParameters): StreamableMethod<GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// @public
|
|
77
|
-
export interface IpAddressToLocationResultOutput {
|
|
78
|
-
countryRegion?: CountryRegionOutput;
|
|
79
|
-
ipAddress?: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
export function isUnexpected(response: GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse): response is GeolocationGetLocationDefaultResponse;
|
|
84
|
-
|
|
85
|
-
// @public
|
|
86
|
-
function MapsGeolocation(credential: AzureKeyCredential, options?: ClientOptions): MapsGeolocationClient;
|
|
87
|
-
|
|
88
|
-
// @public
|
|
89
|
-
function MapsGeolocation(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsGeolocationClient;
|
|
90
|
-
|
|
91
|
-
// @public
|
|
92
|
-
function MapsGeolocation(credential: AzureSASCredential, options?: ClientOptions): MapsGeolocationClient;
|
|
93
|
-
export default MapsGeolocation;
|
|
94
|
-
|
|
95
|
-
// @public (undocumented)
|
|
96
|
-
export type MapsGeolocationClient = Client & {
|
|
97
|
-
path: Routes;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// @public (undocumented)
|
|
101
|
-
export interface Routes {
|
|
102
|
-
(path: "/geolocation/ip/{format}", format: "json"): GetLocation;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// (No @packageDocumentation comment for this package)
|
|
106
|
-
|
|
107
|
-
```
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { AzureKeyCredential } from '@azure/core-auth';
|
|
2
|
-
import { AzureSASCredential } from '@azure/core-auth';
|
|
3
|
-
import { Client } from '@azure-rest/core-client';
|
|
4
|
-
import { ClientOptions } from '@azure-rest/core-client';
|
|
5
|
-
import { HttpResponse } from '@azure-rest/core-client';
|
|
6
|
-
import { RequestParameters } from '@azure-rest/core-client';
|
|
7
|
-
import { StreamableMethod } from '@azure-rest/core-client';
|
|
8
|
-
import { TokenCredential } from '@azure/core-auth';
|
|
9
|
-
|
|
10
|
-
/** The object containing the country/region information. */
|
|
11
|
-
export declare interface CountryRegionOutput {
|
|
12
|
-
/** The IP Address's 2-character code [(ISO 3166-1)](https://www.iso.org/iso-3166-country-codes.html) of the country or region. Please note, IP address in ranges reserved for special purpose will return Null for country/region. */
|
|
13
|
-
isoCode?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** The resource management error additional info. */
|
|
17
|
-
export declare interface ErrorAdditionalInfoOutput {
|
|
18
|
-
/** The additional info type. */
|
|
19
|
-
type?: string;
|
|
20
|
-
/** The additional info. */
|
|
21
|
-
info?: Record<string, unknown>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** The error detail. */
|
|
25
|
-
export declare interface ErrorDetailOutput {
|
|
26
|
-
/** The error code. */
|
|
27
|
-
code?: string;
|
|
28
|
-
/** The error message. */
|
|
29
|
-
message?: string;
|
|
30
|
-
/** The error target. */
|
|
31
|
-
target?: string;
|
|
32
|
-
/** The error details. */
|
|
33
|
-
details?: Array<ErrorDetailOutput>;
|
|
34
|
-
/** The error additional info. */
|
|
35
|
-
additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
39
|
-
export declare interface ErrorResponseOutput {
|
|
40
|
-
/** The error object. */
|
|
41
|
-
error?: ErrorDetailOutput;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
|
|
49
|
-
*/
|
|
50
|
-
export declare interface GeolocationGetLocation200Response extends HttpResponse {
|
|
51
|
-
status: "200";
|
|
52
|
-
body: IpAddressToLocationResultOutput;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
|
|
60
|
-
*/
|
|
61
|
-
export declare interface GeolocationGetLocationDefaultResponse extends HttpResponse {
|
|
62
|
-
status: string;
|
|
63
|
-
body: ErrorResponseOutput;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare type GeolocationGetLocationParameters = GeolocationGetLocationQueryParam & RequestParameters;
|
|
67
|
-
|
|
68
|
-
export declare interface GeolocationGetLocationQueryParam {
|
|
69
|
-
queryParameters: GeolocationGetLocationQueryParamProperties;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export declare interface GeolocationGetLocationQueryParamProperties {
|
|
73
|
-
/** The IP address. Both IPv4 and IPv6 are allowed. */
|
|
74
|
-
ip: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export declare interface GetLocation {
|
|
78
|
-
/**
|
|
79
|
-
* **Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* This service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.
|
|
83
|
-
*/
|
|
84
|
-
get(options: GeolocationGetLocationParameters): StreamableMethod<GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse>;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** This object is returned from a successful call to IP Address to country/region API */
|
|
88
|
-
export declare interface IpAddressToLocationResultOutput {
|
|
89
|
-
/** The object containing the country/region information. */
|
|
90
|
-
countryRegion?: CountryRegionOutput;
|
|
91
|
-
/** The IP Address of the request. */
|
|
92
|
-
ipAddress?: string;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export declare function isUnexpected(response: GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse): response is GeolocationGetLocationDefaultResponse;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Creates an instance of MapsGeolocationClient from a subscription key.
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```ts
|
|
102
|
-
* import MapsGeolocation from "@azure-rest/maps-geolocation";
|
|
103
|
-
* import { AzureKeyCredential } from "@azure/core-auth";
|
|
104
|
-
*
|
|
105
|
-
* const credential = new AzureKeyCredential("<subscription-key>");
|
|
106
|
-
* const client = MapsGeolocation(credential);
|
|
107
|
-
*```
|
|
108
|
-
*
|
|
109
|
-
* @param credential - An AzureKeyCredential instance used to authenticate requests to the service
|
|
110
|
-
* @param options - Options used to configure the Geolocation Client
|
|
111
|
-
*/
|
|
112
|
-
declare function MapsGeolocation(credential: AzureKeyCredential, options?: ClientOptions): MapsGeolocationClient;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Creates an instance of MapsGeolocation from an Azure Identity `TokenCredential`.
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```ts
|
|
119
|
-
* import MapsGeolocation from "@azure-rest/maps-geo-location";
|
|
120
|
-
* import { DefaultAzureCredential } from "@azure/identity";
|
|
121
|
-
*
|
|
122
|
-
* const credential = new DefaultAzureCredential();
|
|
123
|
-
* const client = MapsGeolocation(credential, "<maps-account-client-id>");
|
|
124
|
-
*```
|
|
125
|
-
*
|
|
126
|
-
* @param credential - An TokenCredential instance used to authenticate requests to the service
|
|
127
|
-
* @param mapsAccountClientId - The Azure Maps client id of a specific map resource
|
|
128
|
-
* @param options - Options used to configure the Route Client
|
|
129
|
-
*/
|
|
130
|
-
declare function MapsGeolocation(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsGeolocationClient;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Creates an instance of MapsGeolocation from an Azure Identity `AzureSASCredential`.
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* ```ts
|
|
137
|
-
* import MapsGeolocation from "@azure-rest/maps-geo-location";
|
|
138
|
-
* import { AzureSASCredential } from "@azure/core-auth";
|
|
139
|
-
*
|
|
140
|
-
* const credential = new AzureSASCredential("<SAS Token>");
|
|
141
|
-
* const client = MapsGeolocation(credential);
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* @param credential - An AzureSASCredential instance used to authenticate requests to the service
|
|
145
|
-
* @param options - Options used to configure the Geolocation Client
|
|
146
|
-
*/
|
|
147
|
-
declare function MapsGeolocation(credential: AzureSASCredential, options?: ClientOptions): MapsGeolocationClient;
|
|
148
|
-
export default MapsGeolocation;
|
|
149
|
-
|
|
150
|
-
export declare type MapsGeolocationClient = Client & {
|
|
151
|
-
path: Routes;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
export declare interface Routes {
|
|
155
|
-
/** Resource for '/geolocation/ip/\{format\}' has methods for the following verbs: get */
|
|
156
|
-
(path: "/geolocation/ip/{format}", format: "json"): GetLocation;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export { }
|