Class: Azure::ARM::Redis::Models::RedisProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Redis::Models::RedisProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_redis/models/redis_properties.rb
Overview
Parameters supplied to CreateOrUpdate redis operation.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#enable_non_ssl_port ⇒ Boolean
port (6379) will be enabled.
-
#redis_configuration ⇒ Hash{String => String}
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.
-
#redis_version ⇒ String
it is no longer necessary to provide this parameter and any value specified is ignored.
-
#shard_count ⇒ Integer
Cluster Cache.
-
#sku ⇒ Sku
What sku of redis cache to deploy.
-
#static_ip ⇒ String
existing Azure Virtual Network.
-
#subnet ⇒ String
existing Azure Virtual Network.
-
#tenant_settings ⇒ Hash{String => String}
TenantSettings.
-
#virtual_network ⇒ String
deploy the redis cache in.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ RedisProperties
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#enable_non_ssl_port ⇒ Boolean
port (6379) will be enabled.
30 31 32 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 30 def enable_non_ssl_port @enable_non_ssl_port end |
#redis_configuration ⇒ Hash{String => String}
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.
26 27 28 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 26 def redis_configuration @redis_configuration end |
#redis_version ⇒ String
it is no longer necessary to provide this parameter and any value specified is ignored.
18 19 20 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 18 def redis_version @redis_version end |
#shard_count ⇒ Integer
Cluster Cache.
37 38 39 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 37 def shard_count @shard_count end |
#sku ⇒ Sku
Returns What sku of redis cache to deploy.
21 22 23 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 21 def sku @sku end |
#static_ip ⇒ String
existing Azure Virtual Network.
50 51 52 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 50 def static_ip @static_ip end |
#subnet ⇒ String
existing Azure Virtual Network.
46 47 48 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 46 def subnet @subnet end |
#tenant_settings ⇒ Hash{String => String}
Returns tenantSettings.
33 34 35 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 33 def tenant_settings @tenant_settings end |
#virtual_network ⇒ String
deploy the redis cache in. Example format: /subscriptions/subid/resourceGroups/resourceGroupName/Microsoft.ClassicNetwork/VirtualNetworks/vnet1
42 43 44 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 42 def virtual_network @virtual_network end |
Class Method Details
.deserialize_object(object) ⇒ RedisProperties
Deserializes given Ruby Hash into Model object.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 109 def self.deserialize_object(object) return if object.nil? output_object = RedisProperties.new deserialized_property = object['sku'] unless deserialized_property.nil? deserialized_property = Sku.deserialize_object(deserialized_property) end output_object.sku = deserialized_property deserialized_property = object['redisVersion'] output_object.redis_version = deserialized_property deserialized_property = object['redisConfiguration'] output_object.redis_configuration = deserialized_property deserialized_property = object['enableNonSslPort'] output_object.enable_non_ssl_port = deserialized_property deserialized_property = object['tenantSettings'] output_object.tenant_settings = deserialized_property deserialized_property = object['shardCount'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.shard_count = deserialized_property deserialized_property = object['virtualNetwork'] output_object.virtual_network = deserialized_property deserialized_property = object['subnet'] output_object.subnet = deserialized_property deserialized_property = object['staticIP'] output_object.static_ip = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
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 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 67 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.sku unless serialized_property.nil? serialized_property = Sku.serialize_object(serialized_property) end output_object['sku'] = serialized_property unless serialized_property.nil? serialized_property = object.redis_version output_object['redisVersion'] = serialized_property unless serialized_property.nil? serialized_property = object.redis_configuration output_object['redisConfiguration'] = serialized_property unless serialized_property.nil? serialized_property = object.enable_non_ssl_port output_object['enableNonSslPort'] = serialized_property unless serialized_property.nil? serialized_property = object.tenant_settings output_object['tenantSettings'] = serialized_property unless serialized_property.nil? serialized_property = object.shard_count output_object['shardCount'] = serialized_property unless serialized_property.nil? serialized_property = object.virtual_network output_object['virtualNetwork'] = serialized_property unless serialized_property.nil? serialized_property = object.subnet output_object['subnet'] = serialized_property unless serialized_property.nil? serialized_property = object.static_ip output_object['staticIP'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
55 56 57 58 59 60 |
# File 'lib/azure_mgmt_redis/models/redis_properties.rb', line 55 def validate fail MsRest::ValidationError, 'property sku is nil' if @sku.nil? @sku.validate unless @sku.nil? @redis_configuration.each{ |e| e.validate if e.respond_to?(:validate) } unless @redis_configuration.nil? @tenant_settings.each{ |e| e.validate if e.respond_to?(:validate) } unless @tenant_settings.nil? end |