/
ContainerDefinition.ts
25 lines (24 loc) · 1.08 KB
/
ContainerDefinition.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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { IndexingPolicy, PartitionKeyDefinition } from "../../documents";
import { ConflictResolutionPolicy } from "../Conflict/ConflictResolutionPolicy";
import { UniqueKeyPolicy } from "./UniqueKeyPolicy";
import { GeospatialType } from "../../documents/GeospatialType";
export interface ContainerDefinition {
/** The id of the container. */
id?: string;
/** The partition key for the container. */
partitionKey?: PartitionKeyDefinition;
/** The indexing policy associated with the container. */
indexingPolicy?: IndexingPolicy;
/** The default time to live in seconds for items in a container. */
defaultTtl?: number;
/** The conflict resolution policy used to resolve conflicts in a container. */
conflictResolutionPolicy?: ConflictResolutionPolicy;
/** Policy for additional keys that must be unique per partition key */
uniqueKeyPolicy?: UniqueKeyPolicy;
/** Geospatial configuration for a collection. Type is set to Geography by default */
geospatialConfig?: {
type: GeospatialType;
};
}