# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Redis module Models # # Parameters supplied to the Create Redis operation. # class RedisCreateParameters < MsRestAzure::Resource include MsRestAzure # @return [Hash{String => String}] All Redis Settings. Few possible # keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value # etc. attr_accessor :redis_configuration # @return [Boolean] If the value is true, then the non-ssl redis server # port (6379) will be enabled. attr_accessor :enable_non_ssl_port # @return [Hash{String => String}] tenantSettings attr_accessor :tenant_settings # @return [Integer] The number of shards to be created on a Premium # Cluster Cache. attr_accessor :shard_count # @return [String] The full resource ID of a subnet in a virtual network # to deploy the redis cache in. Example format: # /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 attr_accessor :subnet_id # @return [String] Required when deploying a redis cache inside an # existing Azure Virtual Network. attr_accessor :static_ip # @return [Sku] What sku of redis cache to deploy. attr_accessor :sku # # Mapper for RedisCreateParameters class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'RedisCreateParameters', type: { name: 'Composite', class_name: 'RedisCreateParameters', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: true, serialized_name: 'location', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, redis_configuration: { required: false, serialized_name: 'properties.redisConfiguration', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, enable_non_ssl_port: { required: false, serialized_name: 'properties.enableNonSslPort', type: { name: 'Boolean' } }, tenant_settings: { required: false, serialized_name: 'properties.tenantSettings', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, shard_count: { required: false, serialized_name: 'properties.shardCount', type: { name: 'Number' } }, subnet_id: { required: false, serialized_name: 'properties.subnetId', constraints: { Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$' }, type: { name: 'String' } }, static_ip: { required: false, serialized_name: 'properties.staticIP', constraints: { Pattern: '^\d+\.\d+\.\d+\.\d+$' }, type: { name: 'String' } }, sku: { required: true, serialized_name: 'properties.sku', type: { name: 'Composite', class_name: 'Sku' } } } } } end end end end