Class SqlContainerGetPropertiesResource
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
public class SqlContainerGetPropertiesResource
- Inheritance
-
SqlContainerGetPropertiesResource
- Inherited Members
Constructors
SqlContainerGetPropertiesResource()
Initializes a new instance of the SqlContainerGetPropertiesResource class.
public SqlContainerGetPropertiesResource()
SqlContainerGetPropertiesResource(string, IndexingPolicy, ContainerPartitionKey, int?, UniqueKeyPolicy, ConflictResolutionPolicy, string, object, string)
Initializes a new instance of the SqlContainerGetPropertiesResource class.
public SqlContainerGetPropertiesResource(string id, IndexingPolicy indexingPolicy = null, ContainerPartitionKey partitionKey = null, int? defaultTtl = null, UniqueKeyPolicy uniqueKeyPolicy = null, ConflictResolutionPolicy conflictResolutionPolicy = null, string _rid = null, object _ts = null, string _etag = null)
Parameters
id
stringName of the Cosmos DB SQL container
indexingPolicy
IndexingPolicyThe configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
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 container.
_rid
stringA system generated property. A unique identifier.
_ts
objectA system generated property that denotes the last updated timestamp of the resource.
_etag
stringA system generated property representing the resource etag required for optimistic concurrency control.
Properties
ConflictResolutionPolicy
Gets or sets the conflict resolution policy for the container.
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 SQL container
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 container
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
_etag
Gets a system generated property representing the resource etag required for optimistic concurrency control.
public string _etag { get; }
Property Value
_rid
Gets a system generated property. A unique identifier.
public string _rid { get; }
Property Value
_ts
Gets a system generated property that denotes the last updated timestamp of the resource.
public object _ts { get; }
Property Value
Methods
Validate()
Validate the object.
public virtual void Validate()
Exceptions
- Microsoft.Rest.ValidationException
Thrown if validation fails