azure_mgmt_redis 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8c96cddca1f0e1d8fda35ac35bef4d995b95ffce
4
- data.tar.gz: 29d06276b9f4e82da571173645d12e6bf58867c2
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZmMyYWMwYzc0YjM4OWIyMmE2ZDk1OWE0ZDdmNWIyYzE5M2YzOTcwOA==
5
+ data.tar.gz: !binary |-
6
+ YzZlNDlmM2Y1NDc5MmYzYmM4M2I4ZTIxY2ZkZjBhYjEyYzc4OTVlZQ==
5
7
  SHA512:
6
- metadata.gz: dadae2c97cc1032901ae2c2493b78177bbecb6647e8a6c2bb210f927e7cb6c7396bbcff8966d51d915d61289c64db347ec0dceb2420ce1423dae1a3f190ec36d
7
- data.tar.gz: 280f4f547bc79214997c2b6d6e357f1702e48cfdb66939c8873521c45bffd7791c17ff5214563960dc84d97a7c0a92458500e462fca761a2d2bc6e54bd8bf019
8
+ metadata.gz: !binary |-
9
+ NjEyMTNiY2IzNDEyNDc5Y2Q4MzRmZGFlYWU0ODU4ODhlZDIyZGFlMWNlYjBk
10
+ YzFkNTRkMWY3NzA3NGFmM2FjNjc2NGQ3MmM3ZjY2NDE1YTg3ODk3MDlkZThj
11
+ ZDJiMzM4OGM0MzU1NDgwZmM5YjEzYTE1ZjUwMjJiMjc0N2U2MDc=
12
+ data.tar.gz: !binary |-
13
+ NDExMDkwMjM4NDE4ODVlNTEzZTJlOWNlYjM3MTY0OTdjMzIxZmMyMzZiY2Jl
14
+ MDdlNjM3MWYxNjU1MmQ5NDY5YzU1ZWI3YTAwZGNlZjkzOGEzZTJjNTg0ZTNl
15
+ OTBlOGI0ODBhNDI4NDRiNmRmZGM3OWI4MzVjN2MyNWE2Nzg3MjA=
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake', '~> 10'
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
- spec.add_development_dependency 'azure_mgmt_resources', '~> 0.2'
32
+ spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
33
33
 
34
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.0'
34
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -27,16 +27,18 @@ module Azure::ARM::Redis
27
27
  autoload :Sku, 'azure_mgmt_redis/models/sku.rb'
28
28
  autoload :RedisProperties, 'azure_mgmt_redis/models/redis_properties.rb'
29
29
  autoload :RedisAccessKeys, 'azure_mgmt_redis/models/redis_access_keys.rb'
30
- autoload :RedisReadablePropertiesWithAccessKey, 'azure_mgmt_redis/models/redis_readable_properties_with_access_key.rb'
31
- autoload :RedisReadableProperties, 'azure_mgmt_redis/models/redis_readable_properties.rb'
32
30
  autoload :RedisListResult, 'azure_mgmt_redis/models/redis_list_result.rb'
33
31
  autoload :RedisListKeysResult, 'azure_mgmt_redis/models/redis_list_keys_result.rb'
34
32
  autoload :RedisRegenerateKeyParameters, 'azure_mgmt_redis/models/redis_regenerate_key_parameters.rb'
33
+ autoload :RedisRebootParameters, 'azure_mgmt_redis/models/redis_reboot_parameters.rb'
35
34
  autoload :RedisCreateOrUpdateParameters, 'azure_mgmt_redis/models/redis_create_or_update_parameters.rb'
35
+ autoload :RedisReadableProperties, 'azure_mgmt_redis/models/redis_readable_properties.rb'
36
36
  autoload :RedisResourceWithAccessKey, 'azure_mgmt_redis/models/redis_resource_with_access_key.rb'
37
37
  autoload :RedisResource, 'azure_mgmt_redis/models/redis_resource.rb'
38
+ autoload :RedisReadablePropertiesWithAccessKey, 'azure_mgmt_redis/models/redis_readable_properties_with_access_key.rb'
38
39
  autoload :SkuName, 'azure_mgmt_redis/models/sku_name.rb'
39
40
  autoload :SkuFamily, 'azure_mgmt_redis/models/sku_family.rb'
40
41
  autoload :RedisKeyType, 'azure_mgmt_redis/models/redis_key_type.rb'
42
+ autoload :RebootType, 'azure_mgmt_redis/models/reboot_type.rb'
41
43
  end
42
44
  end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
+ # Defines values for RebootType
10
+ #
11
+ module RebootType
12
+ PrimaryNode = "PrimaryNode"
13
+ SecondaryNode = "SecondaryNode"
14
+ AllNodes = "AllNodes"
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,7 +8,7 @@ module Azure::ARM::Redis
8
8
  #
9
9
  # Parameters describing a redis instance
10
10
  #
11
- class RedisReadableProperties
11
+ class RedisReadableProperties < RedisProperties
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -24,51 +24,11 @@ module Azure::ARM::Redis
24
24
  # @return [Integer] Redis ssl port
25
25
  attr_accessor :ssl_port
26
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
27
  #
65
28
  # Validate the object. Throws ValidationError if validation fails.
66
29
  #
67
30
  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?
31
+ # Nothing to validate
72
32
  end
73
33
 
74
34
  #
@@ -86,18 +46,6 @@ module Azure::ARM::Redis
86
46
  end
87
47
  output_object['sku'] = serialized_property unless serialized_property.nil?
88
48
 
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
49
  serialized_property = object.redis_version
102
50
  output_object['redisVersion'] = serialized_property unless serialized_property.nil?
103
51
 
@@ -122,6 +70,18 @@ module Azure::ARM::Redis
122
70
  serialized_property = object.static_ip
123
71
  output_object['staticIP'] = serialized_property unless serialized_property.nil?
124
72
 
73
+ serialized_property = object.provisioning_state
74
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
75
+
76
+ serialized_property = object.host_name
77
+ output_object['hostName'] = serialized_property unless serialized_property.nil?
78
+
79
+ serialized_property = object.port
80
+ output_object['port'] = serialized_property unless serialized_property.nil?
81
+
82
+ serialized_property = object.ssl_port
83
+ output_object['sslPort'] = serialized_property unless serialized_property.nil?
84
+
125
85
  output_object
126
86
  end
127
87
 
@@ -140,20 +100,6 @@ module Azure::ARM::Redis
140
100
  end
141
101
  output_object.sku = deserialized_property
142
102
 
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
103
  deserialized_property = object['redisVersion']
158
104
  output_object.redis_version = deserialized_property
159
105
 
@@ -179,6 +125,20 @@ module Azure::ARM::Redis
179
125
  deserialized_property = object['staticIP']
180
126
  output_object.static_ip = deserialized_property
181
127
 
128
+ deserialized_property = object['provisioningState']
129
+ output_object.provisioning_state = deserialized_property
130
+
131
+ deserialized_property = object['hostName']
132
+ output_object.host_name = deserialized_property
133
+
134
+ deserialized_property = object['port']
135
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
136
+ output_object.port = deserialized_property
137
+
138
+ deserialized_property = object['sslPort']
139
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
140
+ output_object.ssl_port = deserialized_property
141
+
182
142
  output_object
183
143
  end
184
144
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,71 +8,18 @@ module Azure::ARM::Redis
8
8
  #
9
9
  # Properties generated only in response to CreateOrUpdate redis operation.
10
10
  #
11
- class RedisReadablePropertiesWithAccessKey
11
+ class RedisReadablePropertiesWithAccessKey < RedisReadableProperties
12
12
 
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [RedisAccessKeys] Redis cache access keys.
16
16
  attr_accessor :access_keys
17
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
18
  #
68
19
  # Validate the object. Throws ValidationError if validation fails.
69
20
  #
70
21
  def validate
71
- fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
72
22
  @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
23
  end
77
24
 
78
25
  #
@@ -90,24 +37,6 @@ module Azure::ARM::Redis
90
37
  end
91
38
  output_object['sku'] = serialized_property unless serialized_property.nil?
92
39
 
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
40
  serialized_property = object.redis_version
112
41
  output_object['redisVersion'] = serialized_property unless serialized_property.nil?
113
42
 
@@ -132,6 +61,24 @@ module Azure::ARM::Redis
132
61
  serialized_property = object.static_ip
133
62
  output_object['staticIP'] = serialized_property unless serialized_property.nil?
134
63
 
64
+ serialized_property = object.provisioning_state
65
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
66
+
67
+ serialized_property = object.host_name
68
+ output_object['hostName'] = serialized_property unless serialized_property.nil?
69
+
70
+ serialized_property = object.port
71
+ output_object['port'] = serialized_property unless serialized_property.nil?
72
+
73
+ serialized_property = object.ssl_port
74
+ output_object['sslPort'] = serialized_property unless serialized_property.nil?
75
+
76
+ serialized_property = object.access_keys
77
+ unless serialized_property.nil?
78
+ serialized_property = RedisAccessKeys.serialize_object(serialized_property)
79
+ end
80
+ output_object['accessKeys'] = serialized_property unless serialized_property.nil?
81
+
135
82
  output_object
136
83
  end
137
84
 
@@ -150,26 +97,6 @@ module Azure::ARM::Redis
150
97
  end
151
98
  output_object.sku = deserialized_property
152
99
 
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
100
  deserialized_property = object['redisVersion']
174
101
  output_object.redis_version = deserialized_property
175
102
 
@@ -195,6 +122,26 @@ module Azure::ARM::Redis
195
122
  deserialized_property = object['staticIP']
196
123
  output_object.static_ip = deserialized_property
197
124
 
125
+ deserialized_property = object['provisioningState']
126
+ output_object.provisioning_state = deserialized_property
127
+
128
+ deserialized_property = object['hostName']
129
+ output_object.host_name = deserialized_property
130
+
131
+ deserialized_property = object['port']
132
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
133
+ output_object.port = deserialized_property
134
+
135
+ deserialized_property = object['sslPort']
136
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
137
+ output_object.ssl_port = deserialized_property
138
+
139
+ deserialized_property = object['accessKeys']
140
+ unless deserialized_property.nil?
141
+ deserialized_property = RedisAccessKeys.deserialize_object(deserialized_property)
142
+ end
143
+ output_object.access_keys = deserialized_property
144
+
198
145
  output_object
199
146
  end
200
147
  end