SqlContainerResource Class
Cosmos DB SQL container resource object.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.cosmosdb._serialization.ModelSqlContainerResource
Constructor
SqlContainerResource(*, id: str, indexing_policy: _models.IndexingPolicy | None = None, partition_key: _models.ContainerPartitionKey | None = None, default_ttl: int | None = None, unique_key_policy: _models.UniqueKeyPolicy | None = None, conflict_resolution_policy: _models.ConflictResolutionPolicy | None = None, client_encryption_policy: _models.ClientEncryptionPolicy | None = None, analytical_storage_ttl: int | None = None, restore_parameters: _models.ResourceRestoreParameters | None = None, create_mode: str | _models.CreateMode = 'Default', computed_properties: List[_models.ComputedProperty] | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
id
|
Name of the Cosmos DB SQL container. Required. |
indexing_policy
|
The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container. |
partition_key
|
The configuration of the partition key to be used for partitioning data into multiple partitions. |
default_ttl
|
Default time to live. |
unique_key_policy
|
The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. |
conflict_resolution_policy
|
The conflict resolution policy for the container. |
client_encryption_policy
|
The client encryption policy for the container. |
analytical_storage_ttl
|
Analytical TTL. |
restore_parameters
|
Parameters to indicate the information about the restore. |
create_mode
|
str or
CreateMode
Enum to indicate the mode of resource creation. Known values are: "Default" and "Restore". default value: Default
|
computed_properties
|
List of computed properties. |
Variables
Name | Description |
---|---|
id
|
Name of the Cosmos DB SQL container. Required. |
indexing_policy
|
The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container. |
partition_key
|
The configuration of the partition key to be used for partitioning data into multiple partitions. |
default_ttl
|
Default time to live. |
unique_key_policy
|
The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. |
conflict_resolution_policy
|
The conflict resolution policy for the container. |
client_encryption_policy
|
The client encryption policy for the container. |
analytical_storage_ttl
|
Analytical TTL. |
restore_parameters
|
Parameters to indicate the information about the restore. |
create_mode
|
str or
CreateMode
Enum to indicate the mode of resource creation. Known values are: "Default" and "Restore". |
computed_properties
|
List of computed properties. |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for