/
locations.ts
36 lines (34 loc) · 1.05 KB
/
locations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
LocationGetResult,
LocationsListOptionalParams,
LocationsGetOptionalParams,
LocationsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Locations. */
export interface Locations {
/**
* List Cosmos DB locations and their properties
* @param options The options parameters.
*/
list(
options?: LocationsListOptionalParams
): PagedAsyncIterableIterator<LocationGetResult>;
/**
* Get the properties of an existing Cosmos DB location
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param options The options parameters.
*/
get(
location: string,
options?: LocationsGetOptionalParams
): Promise<LocationsGetResponse>;
}