azure_mgmt_redis 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_redis.rb +43 -0
  3. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/reboot_type.rb +1 -1
  4. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +56 -0
  5. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb +194 -0
  6. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/redis_key_type.rb +1 -1
  7. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_keys_result.rb +56 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_result.rb +94 -0
  9. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_properties.rb +149 -0
  10. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +58 -0
  11. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +46 -0
  12. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource.rb +234 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource_with_access_key.rb +245 -0
  14. data/lib/2015-08-01/generated/azure_mgmt_redis/models/resource.rb +95 -0
  15. data/lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb +68 -0
  16. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/sku_family.rb +1 -1
  17. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/sku_name.rb +1 -1
  18. data/lib/2015-08-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
  19. data/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +1002 -0
  20. data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +131 -0
  21. data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/version.rb +2 -2
  22. data/lib/2016-04-01/generated/azure_mgmt_redis.rb +56 -0
  23. data/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +225 -0
  24. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/day_of_week.rb +1 -1
  25. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/export_rdbparameters.rb +1 -1
  26. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/import_rdbparameters.rb +1 -1
  27. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/operation.rb +1 -1
  28. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/operation_display.rb +1 -1
  29. data/lib/2016-04-01/generated/azure_mgmt_redis/models/operation_list_result.rb +97 -0
  30. data/lib/2016-04-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
  31. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_access_keys.rb +1 -1
  32. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +177 -0
  33. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +89 -0
  34. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +95 -0
  35. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_force_reboot_response.rb +1 -1
  36. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
  37. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_list_result.rb +94 -0
  38. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_patch_schedule.rb +1 -1
  39. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_reboot_parameters.rb +1 -1
  40. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +1 -1
  41. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_resource.rb +245 -0
  42. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
  43. data/lib/2016-04-01/generated/azure_mgmt_redis/models/resource.rb +94 -0
  44. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/schedule_entry.rb +1 -1
  45. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/sku.rb +1 -1
  46. data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
  47. data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
  48. data/lib/2016-04-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
  49. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/operations.rb +3 -3
  50. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/patch_schedules.rb +5 -5
  51. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/redis.rb +19 -19
  52. data/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +325 -0
  53. data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +147 -0
  54. data/lib/{generated/azure_mgmt_redis/module_definition.rb → 2016-04-01/generated/azure_mgmt_redis/version.rb} +3 -3
  55. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis.rb +40 -40
  56. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/firewall_rules.rb +7 -7
  57. data/lib/2017-02-01/generated/azure_mgmt_redis/models/day_of_week.rb +23 -0
  58. data/lib/2017-02-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +64 -0
  59. data/lib/2017-02-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +61 -0
  60. data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation.rb +55 -0
  61. data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation_display.rb +75 -0
  62. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/operation_list_result.rb +1 -1
  63. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/proxy_resource.rb +1 -1
  64. data/lib/2017-02-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
  65. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +58 -0
  66. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_create_parameters.rb +1 -1
  67. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_firewall_rule.rb +1 -1
  68. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +1 -1
  69. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +45 -0
  70. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
  71. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server.rb +1 -1
  72. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +1 -1
  73. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_list.rb +1 -1
  74. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +1 -1
  75. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +1 -1
  76. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_list_result.rb +1 -1
  77. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +97 -0
  78. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +57 -0
  79. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +46 -0
  80. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_resource.rb +1 -1
  81. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +149 -0
  82. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/replication_role.rb +1 -1
  83. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/resource.rb +1 -1
  84. data/lib/2017-02-01/generated/azure_mgmt_redis/models/schedule_entry.rb +68 -0
  85. data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku.rb +69 -0
  86. data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
  87. data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
  88. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/tracked_resource.rb +1 -1
  89. data/lib/2017-02-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
  90. data/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +220 -0
  91. data/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +316 -0
  92. data/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +1481 -0
  93. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/redis_linked_server_operations.rb +7 -7
  94. data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/redis_management_client.rb +3 -3
  95. data/lib/2017-02-01/generated/azure_mgmt_redis/version.rb +8 -0
  96. data/lib/azure_mgmt_redis.rb +4 -1
  97. data/lib/module_definition.rb +9 -0
  98. data/lib/profiles/common/configurable.rb +73 -0
  99. data/lib/profiles/common/default.rb +68 -0
  100. data/lib/profiles/latest/modules/redis_profile_module.rb +178 -0
  101. data/lib/profiles/latest/redis_latest_profile_client.rb +33 -0
  102. data/lib/profiles/latest/redis_module_definition.rb +9 -0
  103. data/lib/version.rb +7 -0
  104. metadata +103 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e28f2546c4d2d3987faf644f04af04b9ec3c1a5
4
- data.tar.gz: 339518b732cfaa51f79433e334a2f9f09a2ad83b
3
+ metadata.gz: 226eca76cde96aeebda9337deafcd3271e2ac423
4
+ data.tar.gz: 200cb40f87ed0690f56b183be52216003b1fb2f2
5
5
  SHA512:
6
- metadata.gz: 9181b79899a52de69ac55116e3a2e3ddab7ce60c8a3d2f20b4320efa3cbeafba0bb9d7a5358a80bc935fd24f551ee64890bb88111d1b080f691a03c74b8b1b8e
7
- data.tar.gz: f6703a6f15f20ebb373e5182ac2c12335b386dae45d1af319e8481967baa6b3a4a81d03a9a56d6966eb1ed746106db087b9780cdc354fb2ef6420b8e9e8a6090
6
+ metadata.gz: 3d76c39a6102ac9dca40f02d10cc2476f7855920782cadf82743ca21bf7806333a91a20280d426c36f0c72264694b155706c43269a645cc5b1bcde01b152e4a8
7
+ data.tar.gz: d6168679c6046ef3627d6852765714fed07683948e9538885d4f488060fcf927831410781a53830476bc14636d891993510beb5f240e6a17e4e8a7d955e5e7c3
@@ -0,0 +1,43 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2015-08-01/generated/azure_mgmt_redis/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Redis::Mgmt::V2015_08_01
23
+ autoload :Redis, '2015-08-01/generated/azure_mgmt_redis/redis.rb'
24
+ autoload :RedisManagementClient, '2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb'
25
+
26
+ module Models
27
+ autoload :RedisAccessKeys, '2015-08-01/generated/azure_mgmt_redis/models/redis_access_keys.rb'
28
+ autoload :RedisProperties, '2015-08-01/generated/azure_mgmt_redis/models/redis_properties.rb'
29
+ autoload :RedisRebootParameters, '2015-08-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb'
30
+ autoload :RedisRegenerateKeyParameters, '2015-08-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb'
31
+ autoload :Sku, '2015-08-01/generated/azure_mgmt_redis/models/sku.rb'
32
+ autoload :RedisListResult, '2015-08-01/generated/azure_mgmt_redis/models/redis_list_result.rb'
33
+ autoload :Resource, '2015-08-01/generated/azure_mgmt_redis/models/resource.rb'
34
+ autoload :RedisListKeysResult, '2015-08-01/generated/azure_mgmt_redis/models/redis_list_keys_result.rb'
35
+ autoload :RedisCreateOrUpdateParameters, '2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb'
36
+ autoload :RedisResourceWithAccessKey, '2015-08-01/generated/azure_mgmt_redis/models/redis_resource_with_access_key.rb'
37
+ autoload :RedisResource, '2015-08-01/generated/azure_mgmt_redis/models/redis_resource.rb'
38
+ autoload :SkuName, '2015-08-01/generated/azure_mgmt_redis/models/sku_name.rb'
39
+ autoload :SkuFamily, '2015-08-01/generated/azure_mgmt_redis/models/sku_family.rb'
40
+ autoload :RedisKeyType, '2015-08-01/generated/azure_mgmt_redis/models/redis_key_type.rb'
41
+ autoload :RebootType, '2015-08-01/generated/azure_mgmt_redis/models/reboot_type.rb'
42
+ end
43
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Redis
6
+ module Azure::Redis::Mgmt::V2015_08_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for RebootType
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Redis::Mgmt::V2015_08_01
7
+ module Models
8
+ #
9
+ # Redis cache access keys.
10
+ #
11
+ class RedisAccessKeys
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The current primary key that clients can use to
16
+ # authenticate with Redis cache.
17
+ attr_accessor :primary_key
18
+
19
+ # @return [String] The current secondary key that clients can use to
20
+ # authenticate with Redis cache.
21
+ attr_accessor :secondary_key
22
+
23
+
24
+ #
25
+ # Mapper for RedisAccessKeys class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'RedisAccessKeys',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'RedisAccessKeys',
35
+ model_properties: {
36
+ primary_key: {
37
+ required: false,
38
+ serialized_name: 'primaryKey',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ secondary_key: {
44
+ required: false,
45
+ serialized_name: 'secondaryKey',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,194 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Redis::Mgmt::V2015_08_01
7
+ module Models
8
+ #
9
+ # Parameters supplied to the CreateOrUpdate Redis operation.
10
+ #
11
+ class RedisCreateOrUpdateParameters < Resource
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 keys:
24
+ # 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-SLL 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
+ #
54
+ # Mapper for RedisCreateOrUpdateParameters class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'RedisCreateOrUpdateParameters',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'RedisCreateOrUpdateParameters',
64
+ model_properties: {
65
+ id: {
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'id',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ name: {
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'name',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ type: {
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'type',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ location: {
90
+ required: true,
91
+ serialized_name: 'location',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ tags: {
97
+ required: false,
98
+ serialized_name: 'tags',
99
+ type: {
100
+ name: 'Dictionary',
101
+ value: {
102
+ required: false,
103
+ serialized_name: 'StringElementType',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ }
108
+ }
109
+ },
110
+ redis_version: {
111
+ required: false,
112
+ serialized_name: 'properties.redisVersion',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ sku: {
118
+ required: true,
119
+ serialized_name: 'properties.sku',
120
+ type: {
121
+ name: 'Composite',
122
+ class_name: 'Sku'
123
+ }
124
+ },
125
+ redis_configuration: {
126
+ required: false,
127
+ serialized_name: 'properties.redisConfiguration',
128
+ type: {
129
+ name: 'Dictionary',
130
+ value: {
131
+ required: false,
132
+ serialized_name: 'StringElementType',
133
+ type: {
134
+ name: 'String'
135
+ }
136
+ }
137
+ }
138
+ },
139
+ enable_non_ssl_port: {
140
+ required: false,
141
+ serialized_name: 'properties.enableNonSslPort',
142
+ type: {
143
+ name: 'Boolean'
144
+ }
145
+ },
146
+ tenant_settings: {
147
+ required: false,
148
+ serialized_name: 'properties.tenantSettings',
149
+ type: {
150
+ name: 'Dictionary',
151
+ value: {
152
+ required: false,
153
+ serialized_name: 'StringElementType',
154
+ type: {
155
+ name: 'String'
156
+ }
157
+ }
158
+ }
159
+ },
160
+ shard_count: {
161
+ required: false,
162
+ serialized_name: 'properties.shardCount',
163
+ type: {
164
+ name: 'Number'
165
+ }
166
+ },
167
+ virtual_network: {
168
+ required: false,
169
+ serialized_name: 'properties.virtualNetwork',
170
+ type: {
171
+ name: 'String'
172
+ }
173
+ },
174
+ subnet: {
175
+ required: false,
176
+ serialized_name: 'properties.subnet',
177
+ type: {
178
+ name: 'String'
179
+ }
180
+ },
181
+ static_ip: {
182
+ required: false,
183
+ serialized_name: 'properties.staticIP',
184
+ type: {
185
+ name: 'String'
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ end
192
+ end
193
+ end
194
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Redis
6
+ module Azure::Redis::Mgmt::V2015_08_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for RedisKeyType
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Redis::Mgmt::V2015_08_01
7
+ module Models
8
+ #
9
+ # The response of Redis list keys operation.
10
+ #
11
+ class RedisListKeysResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The current primary key that clients can use to
16
+ # authenticate with Redis cache.
17
+ attr_accessor :primary_key
18
+
19
+ # @return [String] The current secondary key that clients can use to
20
+ # authenticate with Redis cache.
21
+ attr_accessor :secondary_key
22
+
23
+
24
+ #
25
+ # Mapper for RedisListKeysResult class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'RedisListKeysResult',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'RedisListKeysResult',
35
+ model_properties: {
36
+ primary_key: {
37
+ required: false,
38
+ serialized_name: 'primaryKey',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ secondary_key: {
44
+ required: false,
45
+ serialized_name: 'secondaryKey',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Redis::Mgmt::V2015_08_01
7
+ module Models
8
+ #
9
+ # The response of list Redis operation.
10
+ #
11
+ class RedisListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<RedisResource>] Results of the list operation.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link for next set of locations.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<RedisResource>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [RedisListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for RedisListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'RedisListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'RedisListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'RedisResourceElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'RedisResource'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end