# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Cosmosdb::Mgmt::V2015_04_08 module Models # # An Azure Cosmos DB Cassandra table. # class CassandraTable < Resource include MsRestAzure # @return [String] Name of the Cosmos DB Cassandra table attr_accessor :cassandra_table_id # @return [Integer] Time to live of the Cosmos DB Cassandra table attr_accessor :default_ttl # @return [CassandraSchema] Schema of the Cosmos DB Cassandra table attr_accessor :schema # # Mapper for CassandraTable class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CassandraTable', type: { name: 'Composite', class_name: 'CassandraTable', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: false, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, cassandra_table_id: { client_side_validation: true, required: true, serialized_name: 'properties.id', type: { name: 'String' } }, default_ttl: { client_side_validation: true, required: false, serialized_name: 'properties.defaultTtl', type: { name: 'Number' } }, schema: { client_side_validation: true, required: false, serialized_name: 'properties.schema', type: { name: 'Composite', class_name: 'CassandraSchema' } } } } } end end end end