azure_mgmt_redis 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_redis.gemspec +35 -0
- data/lib/azure_mgmt_redis.rb +41 -0
- data/lib/azure_mgmt_redis/models/redis_access_keys.rb +67 -0
- data/lib/azure_mgmt_redis/models/redis_create_or_update_parameters.rb +93 -0
- data/lib/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/azure_mgmt_redis/models/redis_list_keys_result.rb +67 -0
- data/lib/azure_mgmt_redis/models/redis_list_result.rb +85 -0
- data/lib/azure_mgmt_redis/models/redis_properties.rb +148 -0
- data/lib/azure_mgmt_redis/models/redis_readable_properties.rb +186 -0
- data/lib/azure_mgmt_redis/models/redis_readable_properties_with_access_key.rb +202 -0
- data/lib/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +61 -0
- data/lib/azure_mgmt_redis/models/redis_resource.rb +92 -0
- data/lib/azure_mgmt_redis/models/redis_resource_with_access_key.rb +92 -0
- data/lib/azure_mgmt_redis/models/sku.rb +89 -0
- data/lib/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/azure_mgmt_redis/module_definition.rb +8 -0
- data/lib/azure_mgmt_redis/redis.rb +607 -0
- data/lib/azure_mgmt_redis/redis_management_client.rb +68 -0
- data/lib/azure_mgmt_redis/version.rb +8 -0
- metadata +151 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Redis
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to CreateOrUpdate redis operation.
|
10
|
+
#
|
11
|
+
class RedisProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] RedisVersion parameter has been deprecated. As such,
|
16
|
+
# it is no longer necessary to provide this parameter and any value
|
17
|
+
# specified is ignored.
|
18
|
+
attr_accessor :redis_version
|
19
|
+
|
20
|
+
# @return [Sku] What sku of redis cache to deploy.
|
21
|
+
attr_accessor :sku
|
22
|
+
|
23
|
+
# @return [Hash{String => String}] All Redis Settings. Few possible
|
24
|
+
# 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
|
25
|
+
# etc.
|
26
|
+
attr_accessor :redis_configuration
|
27
|
+
|
28
|
+
# @return [Boolean] If the value is true, then the non-ssl redis server
|
29
|
+
# port (6379) will be enabled.
|
30
|
+
attr_accessor :enable_non_ssl_port
|
31
|
+
|
32
|
+
# @return [Hash{String => String}] tenantSettings
|
33
|
+
attr_accessor :tenant_settings
|
34
|
+
|
35
|
+
# @return [Integer] The number of shards to be created on a Premium
|
36
|
+
# Cluster Cache.
|
37
|
+
attr_accessor :shard_count
|
38
|
+
|
39
|
+
# @return [String] The exact ARM resource ID of the virtual network to
|
40
|
+
# deploy the redis cache in. Example format:
|
41
|
+
# /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.ClassicNetwork/VirtualNetworks/vnet1
|
42
|
+
attr_accessor :virtual_network
|
43
|
+
|
44
|
+
# @return [String] Required when deploying a redis cache inside an
|
45
|
+
# existing Azure Virtual Network.
|
46
|
+
attr_accessor :subnet
|
47
|
+
|
48
|
+
# @return [String] Required when deploying a redis cache inside an
|
49
|
+
# existing Azure Virtual Network.
|
50
|
+
attr_accessor :static_ip
|
51
|
+
|
52
|
+
#
|
53
|
+
# Validate the object. Throws ValidationError if validation fails.
|
54
|
+
#
|
55
|
+
def validate
|
56
|
+
fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
|
57
|
+
@sku.validate unless @sku.nil?
|
58
|
+
@redis_configuration.each{ |e| e.validate if e.respond_to?(:validate) } unless @redis_configuration.nil?
|
59
|
+
@tenant_settings.each{ |e| e.validate if e.respond_to?(:validate) } unless @tenant_settings.nil?
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Serializes given Model object into Ruby Hash.
|
64
|
+
# @param object Model object to serialize.
|
65
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
66
|
+
#
|
67
|
+
def self.serialize_object(object)
|
68
|
+
object.validate
|
69
|
+
output_object = {}
|
70
|
+
|
71
|
+
serialized_property = object.sku
|
72
|
+
unless serialized_property.nil?
|
73
|
+
serialized_property = Sku.serialize_object(serialized_property)
|
74
|
+
end
|
75
|
+
output_object['sku'] = serialized_property unless serialized_property.nil?
|
76
|
+
|
77
|
+
serialized_property = object.redis_version
|
78
|
+
output_object['redisVersion'] = serialized_property unless serialized_property.nil?
|
79
|
+
|
80
|
+
serialized_property = object.redis_configuration
|
81
|
+
output_object['redisConfiguration'] = serialized_property unless serialized_property.nil?
|
82
|
+
|
83
|
+
serialized_property = object.enable_non_ssl_port
|
84
|
+
output_object['enableNonSslPort'] = serialized_property unless serialized_property.nil?
|
85
|
+
|
86
|
+
serialized_property = object.tenant_settings
|
87
|
+
output_object['tenantSettings'] = serialized_property unless serialized_property.nil?
|
88
|
+
|
89
|
+
serialized_property = object.shard_count
|
90
|
+
output_object['shardCount'] = serialized_property unless serialized_property.nil?
|
91
|
+
|
92
|
+
serialized_property = object.virtual_network
|
93
|
+
output_object['virtualNetwork'] = serialized_property unless serialized_property.nil?
|
94
|
+
|
95
|
+
serialized_property = object.subnet
|
96
|
+
output_object['subnet'] = serialized_property unless serialized_property.nil?
|
97
|
+
|
98
|
+
serialized_property = object.static_ip
|
99
|
+
output_object['staticIP'] = serialized_property unless serialized_property.nil?
|
100
|
+
|
101
|
+
output_object
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# Deserializes given Ruby Hash into Model object.
|
106
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
107
|
+
# @return [RedisProperties] Deserialized object.
|
108
|
+
#
|
109
|
+
def self.deserialize_object(object)
|
110
|
+
return if object.nil?
|
111
|
+
output_object = RedisProperties.new
|
112
|
+
|
113
|
+
deserialized_property = object['sku']
|
114
|
+
unless deserialized_property.nil?
|
115
|
+
deserialized_property = Sku.deserialize_object(deserialized_property)
|
116
|
+
end
|
117
|
+
output_object.sku = deserialized_property
|
118
|
+
|
119
|
+
deserialized_property = object['redisVersion']
|
120
|
+
output_object.redis_version = deserialized_property
|
121
|
+
|
122
|
+
deserialized_property = object['redisConfiguration']
|
123
|
+
output_object.redis_configuration = deserialized_property
|
124
|
+
|
125
|
+
deserialized_property = object['enableNonSslPort']
|
126
|
+
output_object.enable_non_ssl_port = deserialized_property
|
127
|
+
|
128
|
+
deserialized_property = object['tenantSettings']
|
129
|
+
output_object.tenant_settings = deserialized_property
|
130
|
+
|
131
|
+
deserialized_property = object['shardCount']
|
132
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
133
|
+
output_object.shard_count = deserialized_property
|
134
|
+
|
135
|
+
deserialized_property = object['virtualNetwork']
|
136
|
+
output_object.virtual_network = deserialized_property
|
137
|
+
|
138
|
+
deserialized_property = object['subnet']
|
139
|
+
output_object.subnet = deserialized_property
|
140
|
+
|
141
|
+
deserialized_property = object['staticIP']
|
142
|
+
output_object.static_ip = deserialized_property
|
143
|
+
|
144
|
+
output_object
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,186 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Redis
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters describing a redis instance
|
10
|
+
#
|
11
|
+
class RedisReadableProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Redis instance provisioning status
|
16
|
+
attr_accessor :provisioning_state
|
17
|
+
|
18
|
+
# @return [String] Redis host name
|
19
|
+
attr_accessor :host_name
|
20
|
+
|
21
|
+
# @return [Integer] Redis non-ssl port
|
22
|
+
attr_accessor :port
|
23
|
+
|
24
|
+
# @return [Integer] Redis ssl port
|
25
|
+
attr_accessor :ssl_port
|
26
|
+
|
27
|
+
# @return [String] RedisVersion parameter has been deprecated. As such,
|
28
|
+
# it is no longer necessary to provide this parameter and any value
|
29
|
+
# specified is ignored.
|
30
|
+
attr_accessor :redis_version
|
31
|
+
|
32
|
+
# @return [Sku] What sku of redis cache to deploy.
|
33
|
+
attr_accessor :sku
|
34
|
+
|
35
|
+
# @return [Hash{String => String}] All Redis Settings. Few possible
|
36
|
+
# 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
|
37
|
+
# etc.
|
38
|
+
attr_accessor :redis_configuration
|
39
|
+
|
40
|
+
# @return [Boolean] If the value is true, then the non-ssl redis server
|
41
|
+
# port (6379) will be enabled.
|
42
|
+
attr_accessor :enable_non_ssl_port
|
43
|
+
|
44
|
+
# @return [Hash{String => String}] tenantSettings
|
45
|
+
attr_accessor :tenant_settings
|
46
|
+
|
47
|
+
# @return [Integer] The number of shards to be created on a Premium
|
48
|
+
# Cluster Cache.
|
49
|
+
attr_accessor :shard_count
|
50
|
+
|
51
|
+
# @return [String] The exact ARM resource ID of the virtual network to
|
52
|
+
# deploy the redis cache in. Example format:
|
53
|
+
# /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.ClassicNetwork/VirtualNetworks/vnet1
|
54
|
+
attr_accessor :virtual_network
|
55
|
+
|
56
|
+
# @return [String] Required when deploying a redis cache inside an
|
57
|
+
# existing Azure Virtual Network.
|
58
|
+
attr_accessor :subnet
|
59
|
+
|
60
|
+
# @return [String] Required when deploying a redis cache inside an
|
61
|
+
# existing Azure Virtual Network.
|
62
|
+
attr_accessor :static_ip
|
63
|
+
|
64
|
+
#
|
65
|
+
# Validate the object. Throws ValidationError if validation fails.
|
66
|
+
#
|
67
|
+
def validate
|
68
|
+
fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
|
69
|
+
@sku.validate unless @sku.nil?
|
70
|
+
@redis_configuration.each{ |e| e.validate if e.respond_to?(:validate) } unless @redis_configuration.nil?
|
71
|
+
@tenant_settings.each{ |e| e.validate if e.respond_to?(:validate) } unless @tenant_settings.nil?
|
72
|
+
end
|
73
|
+
|
74
|
+
#
|
75
|
+
# Serializes given Model object into Ruby Hash.
|
76
|
+
# @param object Model object to serialize.
|
77
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
78
|
+
#
|
79
|
+
def self.serialize_object(object)
|
80
|
+
object.validate
|
81
|
+
output_object = {}
|
82
|
+
|
83
|
+
serialized_property = object.sku
|
84
|
+
unless serialized_property.nil?
|
85
|
+
serialized_property = Sku.serialize_object(serialized_property)
|
86
|
+
end
|
87
|
+
output_object['sku'] = serialized_property unless serialized_property.nil?
|
88
|
+
|
89
|
+
serialized_property = object.provisioning_state
|
90
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
91
|
+
|
92
|
+
serialized_property = object.host_name
|
93
|
+
output_object['hostName'] = serialized_property unless serialized_property.nil?
|
94
|
+
|
95
|
+
serialized_property = object.port
|
96
|
+
output_object['port'] = serialized_property unless serialized_property.nil?
|
97
|
+
|
98
|
+
serialized_property = object.ssl_port
|
99
|
+
output_object['sslPort'] = serialized_property unless serialized_property.nil?
|
100
|
+
|
101
|
+
serialized_property = object.redis_version
|
102
|
+
output_object['redisVersion'] = serialized_property unless serialized_property.nil?
|
103
|
+
|
104
|
+
serialized_property = object.redis_configuration
|
105
|
+
output_object['redisConfiguration'] = serialized_property unless serialized_property.nil?
|
106
|
+
|
107
|
+
serialized_property = object.enable_non_ssl_port
|
108
|
+
output_object['enableNonSslPort'] = serialized_property unless serialized_property.nil?
|
109
|
+
|
110
|
+
serialized_property = object.tenant_settings
|
111
|
+
output_object['tenantSettings'] = serialized_property unless serialized_property.nil?
|
112
|
+
|
113
|
+
serialized_property = object.shard_count
|
114
|
+
output_object['shardCount'] = serialized_property unless serialized_property.nil?
|
115
|
+
|
116
|
+
serialized_property = object.virtual_network
|
117
|
+
output_object['virtualNetwork'] = serialized_property unless serialized_property.nil?
|
118
|
+
|
119
|
+
serialized_property = object.subnet
|
120
|
+
output_object['subnet'] = serialized_property unless serialized_property.nil?
|
121
|
+
|
122
|
+
serialized_property = object.static_ip
|
123
|
+
output_object['staticIP'] = serialized_property unless serialized_property.nil?
|
124
|
+
|
125
|
+
output_object
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Deserializes given Ruby Hash into Model object.
|
130
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
131
|
+
# @return [RedisReadableProperties] Deserialized object.
|
132
|
+
#
|
133
|
+
def self.deserialize_object(object)
|
134
|
+
return if object.nil?
|
135
|
+
output_object = RedisReadableProperties.new
|
136
|
+
|
137
|
+
deserialized_property = object['sku']
|
138
|
+
unless deserialized_property.nil?
|
139
|
+
deserialized_property = Sku.deserialize_object(deserialized_property)
|
140
|
+
end
|
141
|
+
output_object.sku = deserialized_property
|
142
|
+
|
143
|
+
deserialized_property = object['provisioningState']
|
144
|
+
output_object.provisioning_state = deserialized_property
|
145
|
+
|
146
|
+
deserialized_property = object['hostName']
|
147
|
+
output_object.host_name = deserialized_property
|
148
|
+
|
149
|
+
deserialized_property = object['port']
|
150
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
151
|
+
output_object.port = deserialized_property
|
152
|
+
|
153
|
+
deserialized_property = object['sslPort']
|
154
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
155
|
+
output_object.ssl_port = deserialized_property
|
156
|
+
|
157
|
+
deserialized_property = object['redisVersion']
|
158
|
+
output_object.redis_version = deserialized_property
|
159
|
+
|
160
|
+
deserialized_property = object['redisConfiguration']
|
161
|
+
output_object.redis_configuration = deserialized_property
|
162
|
+
|
163
|
+
deserialized_property = object['enableNonSslPort']
|
164
|
+
output_object.enable_non_ssl_port = deserialized_property
|
165
|
+
|
166
|
+
deserialized_property = object['tenantSettings']
|
167
|
+
output_object.tenant_settings = deserialized_property
|
168
|
+
|
169
|
+
deserialized_property = object['shardCount']
|
170
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
171
|
+
output_object.shard_count = deserialized_property
|
172
|
+
|
173
|
+
deserialized_property = object['virtualNetwork']
|
174
|
+
output_object.virtual_network = deserialized_property
|
175
|
+
|
176
|
+
deserialized_property = object['subnet']
|
177
|
+
output_object.subnet = deserialized_property
|
178
|
+
|
179
|
+
deserialized_property = object['staticIP']
|
180
|
+
output_object.static_ip = deserialized_property
|
181
|
+
|
182
|
+
output_object
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Redis
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Properties generated only in response to CreateOrUpdate redis operation.
|
10
|
+
#
|
11
|
+
class RedisReadablePropertiesWithAccessKey
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RedisAccessKeys] Redis cache access keys.
|
16
|
+
attr_accessor :access_keys
|
17
|
+
|
18
|
+
# @return [String] Redis instance provisioning status
|
19
|
+
attr_accessor :provisioning_state
|
20
|
+
|
21
|
+
# @return [String] Redis host name
|
22
|
+
attr_accessor :host_name
|
23
|
+
|
24
|
+
# @return [Integer] Redis non-ssl port
|
25
|
+
attr_accessor :port
|
26
|
+
|
27
|
+
# @return [Integer] Redis ssl port
|
28
|
+
attr_accessor :ssl_port
|
29
|
+
|
30
|
+
# @return [String] RedisVersion parameter has been deprecated. As such,
|
31
|
+
# it is no longer necessary to provide this parameter and any value
|
32
|
+
# specified is ignored.
|
33
|
+
attr_accessor :redis_version
|
34
|
+
|
35
|
+
# @return [Sku] What sku of redis cache to deploy.
|
36
|
+
attr_accessor :sku
|
37
|
+
|
38
|
+
# @return [Hash{String => String}] All Redis Settings. Few possible
|
39
|
+
# 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
|
40
|
+
# etc.
|
41
|
+
attr_accessor :redis_configuration
|
42
|
+
|
43
|
+
# @return [Boolean] If the value is true, then the non-ssl redis server
|
44
|
+
# port (6379) will be enabled.
|
45
|
+
attr_accessor :enable_non_ssl_port
|
46
|
+
|
47
|
+
# @return [Hash{String => String}] tenantSettings
|
48
|
+
attr_accessor :tenant_settings
|
49
|
+
|
50
|
+
# @return [Integer] The number of shards to be created on a Premium
|
51
|
+
# Cluster Cache.
|
52
|
+
attr_accessor :shard_count
|
53
|
+
|
54
|
+
# @return [String] The exact ARM resource ID of the virtual network to
|
55
|
+
# deploy the redis cache in. Example format:
|
56
|
+
# /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.ClassicNetwork/VirtualNetworks/vnet1
|
57
|
+
attr_accessor :virtual_network
|
58
|
+
|
59
|
+
# @return [String] Required when deploying a redis cache inside an
|
60
|
+
# existing Azure Virtual Network.
|
61
|
+
attr_accessor :subnet
|
62
|
+
|
63
|
+
# @return [String] Required when deploying a redis cache inside an
|
64
|
+
# existing Azure Virtual Network.
|
65
|
+
attr_accessor :static_ip
|
66
|
+
|
67
|
+
#
|
68
|
+
# Validate the object. Throws ValidationError if validation fails.
|
69
|
+
#
|
70
|
+
def validate
|
71
|
+
fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
|
72
|
+
@access_keys.validate unless @access_keys.nil?
|
73
|
+
@sku.validate unless @sku.nil?
|
74
|
+
@redis_configuration.each{ |e| e.validate if e.respond_to?(:validate) } unless @redis_configuration.nil?
|
75
|
+
@tenant_settings.each{ |e| e.validate if e.respond_to?(:validate) } unless @tenant_settings.nil?
|
76
|
+
end
|
77
|
+
|
78
|
+
#
|
79
|
+
# Serializes given Model object into Ruby Hash.
|
80
|
+
# @param object Model object to serialize.
|
81
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
82
|
+
#
|
83
|
+
def self.serialize_object(object)
|
84
|
+
object.validate
|
85
|
+
output_object = {}
|
86
|
+
|
87
|
+
serialized_property = object.sku
|
88
|
+
unless serialized_property.nil?
|
89
|
+
serialized_property = Sku.serialize_object(serialized_property)
|
90
|
+
end
|
91
|
+
output_object['sku'] = serialized_property unless serialized_property.nil?
|
92
|
+
|
93
|
+
serialized_property = object.access_keys
|
94
|
+
unless serialized_property.nil?
|
95
|
+
serialized_property = RedisAccessKeys.serialize_object(serialized_property)
|
96
|
+
end
|
97
|
+
output_object['accessKeys'] = serialized_property unless serialized_property.nil?
|
98
|
+
|
99
|
+
serialized_property = object.provisioning_state
|
100
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
101
|
+
|
102
|
+
serialized_property = object.host_name
|
103
|
+
output_object['hostName'] = serialized_property unless serialized_property.nil?
|
104
|
+
|
105
|
+
serialized_property = object.port
|
106
|
+
output_object['port'] = serialized_property unless serialized_property.nil?
|
107
|
+
|
108
|
+
serialized_property = object.ssl_port
|
109
|
+
output_object['sslPort'] = serialized_property unless serialized_property.nil?
|
110
|
+
|
111
|
+
serialized_property = object.redis_version
|
112
|
+
output_object['redisVersion'] = serialized_property unless serialized_property.nil?
|
113
|
+
|
114
|
+
serialized_property = object.redis_configuration
|
115
|
+
output_object['redisConfiguration'] = serialized_property unless serialized_property.nil?
|
116
|
+
|
117
|
+
serialized_property = object.enable_non_ssl_port
|
118
|
+
output_object['enableNonSslPort'] = serialized_property unless serialized_property.nil?
|
119
|
+
|
120
|
+
serialized_property = object.tenant_settings
|
121
|
+
output_object['tenantSettings'] = serialized_property unless serialized_property.nil?
|
122
|
+
|
123
|
+
serialized_property = object.shard_count
|
124
|
+
output_object['shardCount'] = serialized_property unless serialized_property.nil?
|
125
|
+
|
126
|
+
serialized_property = object.virtual_network
|
127
|
+
output_object['virtualNetwork'] = serialized_property unless serialized_property.nil?
|
128
|
+
|
129
|
+
serialized_property = object.subnet
|
130
|
+
output_object['subnet'] = serialized_property unless serialized_property.nil?
|
131
|
+
|
132
|
+
serialized_property = object.static_ip
|
133
|
+
output_object['staticIP'] = serialized_property unless serialized_property.nil?
|
134
|
+
|
135
|
+
output_object
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Deserializes given Ruby Hash into Model object.
|
140
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
141
|
+
# @return [RedisReadablePropertiesWithAccessKey] Deserialized object.
|
142
|
+
#
|
143
|
+
def self.deserialize_object(object)
|
144
|
+
return if object.nil?
|
145
|
+
output_object = RedisReadablePropertiesWithAccessKey.new
|
146
|
+
|
147
|
+
deserialized_property = object['sku']
|
148
|
+
unless deserialized_property.nil?
|
149
|
+
deserialized_property = Sku.deserialize_object(deserialized_property)
|
150
|
+
end
|
151
|
+
output_object.sku = deserialized_property
|
152
|
+
|
153
|
+
deserialized_property = object['accessKeys']
|
154
|
+
unless deserialized_property.nil?
|
155
|
+
deserialized_property = RedisAccessKeys.deserialize_object(deserialized_property)
|
156
|
+
end
|
157
|
+
output_object.access_keys = deserialized_property
|
158
|
+
|
159
|
+
deserialized_property = object['provisioningState']
|
160
|
+
output_object.provisioning_state = deserialized_property
|
161
|
+
|
162
|
+
deserialized_property = object['hostName']
|
163
|
+
output_object.host_name = deserialized_property
|
164
|
+
|
165
|
+
deserialized_property = object['port']
|
166
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
167
|
+
output_object.port = deserialized_property
|
168
|
+
|
169
|
+
deserialized_property = object['sslPort']
|
170
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
171
|
+
output_object.ssl_port = deserialized_property
|
172
|
+
|
173
|
+
deserialized_property = object['redisVersion']
|
174
|
+
output_object.redis_version = deserialized_property
|
175
|
+
|
176
|
+
deserialized_property = object['redisConfiguration']
|
177
|
+
output_object.redis_configuration = deserialized_property
|
178
|
+
|
179
|
+
deserialized_property = object['enableNonSslPort']
|
180
|
+
output_object.enable_non_ssl_port = deserialized_property
|
181
|
+
|
182
|
+
deserialized_property = object['tenantSettings']
|
183
|
+
output_object.tenant_settings = deserialized_property
|
184
|
+
|
185
|
+
deserialized_property = object['shardCount']
|
186
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
187
|
+
output_object.shard_count = deserialized_property
|
188
|
+
|
189
|
+
deserialized_property = object['virtualNetwork']
|
190
|
+
output_object.virtual_network = deserialized_property
|
191
|
+
|
192
|
+
deserialized_property = object['subnet']
|
193
|
+
output_object.subnet = deserialized_property
|
194
|
+
|
195
|
+
deserialized_property = object['staticIP']
|
196
|
+
output_object.static_ip = deserialized_property
|
197
|
+
|
198
|
+
output_object
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|