Class GremlinGraphResource
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
Cosmos DB Gremlin graph resource object
public class GremlinGraphResource
- Inheritance
-
GremlinGraphResource
- Inherited Members
Constructors
GremlinGraphResource()
Initializes a new instance of the GremlinGraphResource class.
public GremlinGraphResource()
GremlinGraphResource(string, IndexingPolicy, ContainerPartitionKey, int?, UniqueKeyPolicy, ConflictResolutionPolicy)
Initializes a new instance of the GremlinGraphResource class.
public GremlinGraphResource(string id, IndexingPolicy indexingPolicy = null, ContainerPartitionKey partitionKey = null, int? defaultTtl = null, UniqueKeyPolicy uniqueKeyPolicy = null, ConflictResolutionPolicy conflictResolutionPolicy = null)
Parameters
id
stringName of the Cosmos DB Gremlin graph
indexingPolicy
IndexingPolicyThe configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph
partitionKey
ContainerPartitionKeyThe configuration of the partition key to be used for partitioning data into multiple partitions
defaultTtl
int?Default time to live
uniqueKeyPolicy
UniqueKeyPolicyThe unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
conflictResolutionPolicy
ConflictResolutionPolicyThe conflict resolution policy for the graph.
Properties
ConflictResolutionPolicy
Gets or sets the conflict resolution policy for the graph.
public ConflictResolutionPolicy ConflictResolutionPolicy { get; set; }
Property Value
DefaultTtl
Gets or sets default time to live
public int? DefaultTtl { get; set; }
Property Value
- int?
Id
Gets or sets name of the Cosmos DB Gremlin graph
public string Id { get; set; }
Property Value
IndexingPolicy
Gets or sets the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph
public IndexingPolicy IndexingPolicy { get; set; }
Property Value
PartitionKey
Gets or sets the configuration of the partition key to be used for partitioning data into multiple partitions
public ContainerPartitionKey PartitionKey { get; set; }
Property Value
UniqueKeyPolicy
Gets or sets the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
public UniqueKeyPolicy UniqueKeyPolicy { get; set; }
Property Value
Methods
Validate()
Validate the object.
public virtual void Validate()
Exceptions
- Microsoft.Rest.ValidationException
Thrown if validation fails