Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::SqlContainerResource
- Inherits:
-
Object
- Object
- Azure::Cosmosdb::Mgmt::V2019_12_12::Models::SqlContainerResource
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb
Overview
Cosmos DB SQL container resource object
Instance Attribute Summary collapse
-
#conflict_resolution_policy ⇒ ConflictResolutionPolicy
the container.
-
#default_ttl ⇒ Integer
Default time to live.
-
#id ⇒ String
Name of the Cosmos DB SQL container.
-
#indexing_policy ⇒ IndexingPolicy
default, the indexing is automatic for all document paths within the container.
-
#partition_key ⇒ ContainerPartitionKey
to be used for partitioning data into multiple partitions.
-
#unique_key_policy ⇒ UniqueKeyPolicy
specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SqlContainerResource class as Ruby Hash.
Instance Attribute Details
#conflict_resolution_policy ⇒ ConflictResolutionPolicy
the container.
37 38 39 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 37 def conflict_resolution_policy @conflict_resolution_policy end |
#default_ttl ⇒ Integer
Returns Default time to live.
28 29 30 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 28 def default_ttl @default_ttl end |
#id ⇒ String
Returns Name of the Cosmos DB SQL container.
16 17 18 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 16 def id @id end |
#indexing_policy ⇒ IndexingPolicy
default, the indexing is automatic for all document paths within the container
21 22 23 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 21 def indexing_policy @indexing_policy end |
#partition_key ⇒ ContainerPartitionKey
to be used for partitioning data into multiple partitions
25 26 27 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 25 def partition_key @partition_key end |
#unique_key_policy ⇒ UniqueKeyPolicy
specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
33 34 35 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 33 def unique_key_policy @unique_key_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for SqlContainerResource class as Ruby Hash. This will be used for serialization/deserialization.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb', line 44 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SqlContainerResource', type: { name: 'Composite', class_name: 'SqlContainerResource', model_properties: { id: { client_side_validation: true, required: true, serialized_name: 'id', type: { name: 'String' } }, indexing_policy: { client_side_validation: true, required: false, serialized_name: 'indexingPolicy', type: { name: 'Composite', class_name: 'IndexingPolicy' } }, partition_key: { client_side_validation: true, required: false, serialized_name: 'partitionKey', type: { name: 'Composite', class_name: 'ContainerPartitionKey' } }, default_ttl: { client_side_validation: true, required: false, serialized_name: 'defaultTtl', type: { name: 'Number' } }, unique_key_policy: { client_side_validation: true, required: false, serialized_name: 'uniqueKeyPolicy', type: { name: 'Composite', class_name: 'UniqueKeyPolicy' } }, conflict_resolution_policy: { client_side_validation: true, required: false, serialized_name: 'conflictResolutionPolicy', type: { name: 'Composite', class_name: 'ConflictResolutionPolicy' } } } } } end |