azure_mgmt_redis 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +66 -62
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +15 -13
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb +15 -13
- data/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb +18 -17
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb +100 -99
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +18 -17
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb +33 -30
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +15 -13
- data/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +18 -17
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +100 -99
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb +28 -26
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
- data/lib/2017-10-01/generated/azure_mgmt_redis.rb +64 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/firewall_rules.rb +528 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/linked_server.rb +594 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/day_of_week.rb +23 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +68 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +65 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation.rb +58 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation_display.rb +80 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation_list_result.rb +102 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/proxy_resource.rb +63 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +61 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +192 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +85 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_create_parameters.rb +57 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +100 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +70 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +110 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +100 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_list_result.rb +99 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +83 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +60 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +48 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_resource.rb +309 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +130 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/replication_role.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/resource.rb +71 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/schedule_entry.rb +72 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku.rb +73 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/tracked_resource.rb +92 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/operations.rb +222 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/patch_schedules.rb +317 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/redis.rb +1482 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/redis_management_client.rb +148 -0
- data/lib/azure_mgmt_redis.rb +1 -0
- data/lib/profiles/latest/modules/redis_profile_module.rb +166 -147
- data/lib/profiles/latest/redis_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/redis_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +43 -3
@@ -0,0 +1,17 @@
|
|
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::V2017_10_01
|
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
|
@@ -0,0 +1,61 @@
|
|
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::V2017_10_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
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'RedisAccessKeys',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'RedisAccessKeys',
|
36
|
+
model_properties: {
|
37
|
+
primary_key: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
read_only: true,
|
41
|
+
serialized_name: 'primaryKey',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
secondary_key: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'secondaryKey',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,192 @@
|
|
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::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the Create Redis operation.
|
10
|
+
#
|
11
|
+
class RedisCreateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] All Redis Settings. Few possible keys:
|
16
|
+
# 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
|
17
|
+
# etc.
|
18
|
+
attr_accessor :redis_configuration
|
19
|
+
|
20
|
+
# @return [Boolean] Specifies whether the non-ssl Redis server port
|
21
|
+
# (6379) is enabled.
|
22
|
+
attr_accessor :enable_non_ssl_port
|
23
|
+
|
24
|
+
# @return [Hash{String => String}] A dictionary of tenant settings
|
25
|
+
attr_accessor :tenant_settings
|
26
|
+
|
27
|
+
# @return [Integer] The number of shards to be created on a Premium
|
28
|
+
# Cluster Cache.
|
29
|
+
attr_accessor :shard_count
|
30
|
+
|
31
|
+
# @return [Sku] The SKU of the Redis cache to deploy.
|
32
|
+
attr_accessor :sku
|
33
|
+
|
34
|
+
# @return [String] The full resource ID of a subnet in a virtual network
|
35
|
+
# to deploy the Redis cache in. Example format:
|
36
|
+
# /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
|
37
|
+
attr_accessor :subnet_id
|
38
|
+
|
39
|
+
# @return [String] Static IP address. Required when deploying a Redis
|
40
|
+
# cache inside an existing Azure Virtual Network.
|
41
|
+
attr_accessor :static_ip
|
42
|
+
|
43
|
+
# @return [Array<String>] A list of availability zones denoting where the
|
44
|
+
# resource needs to come from.
|
45
|
+
attr_accessor :zones
|
46
|
+
|
47
|
+
# @return [String] The geo-location where the resource lives
|
48
|
+
attr_accessor :location
|
49
|
+
|
50
|
+
# @return [Hash{String => String}] Resource tags.
|
51
|
+
attr_accessor :tags
|
52
|
+
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for RedisCreateParameters class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'RedisCreateParameters',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'RedisCreateParameters',
|
66
|
+
model_properties: {
|
67
|
+
redis_configuration: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'properties.redisConfiguration',
|
71
|
+
type: {
|
72
|
+
name: 'Dictionary',
|
73
|
+
value: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'StringElementType',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
enable_non_ssl_port: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'properties.enableNonSslPort',
|
87
|
+
type: {
|
88
|
+
name: 'Boolean'
|
89
|
+
}
|
90
|
+
},
|
91
|
+
tenant_settings: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'properties.tenantSettings',
|
95
|
+
type: {
|
96
|
+
name: 'Dictionary',
|
97
|
+
value: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'StringElementType',
|
101
|
+
type: {
|
102
|
+
name: 'String'
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
},
|
107
|
+
shard_count: {
|
108
|
+
client_side_validation: true,
|
109
|
+
required: false,
|
110
|
+
serialized_name: 'properties.shardCount',
|
111
|
+
type: {
|
112
|
+
name: 'Number'
|
113
|
+
}
|
114
|
+
},
|
115
|
+
sku: {
|
116
|
+
client_side_validation: true,
|
117
|
+
required: true,
|
118
|
+
serialized_name: 'properties.sku',
|
119
|
+
type: {
|
120
|
+
name: 'Composite',
|
121
|
+
class_name: 'Sku'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
subnet_id: {
|
125
|
+
client_side_validation: true,
|
126
|
+
required: false,
|
127
|
+
serialized_name: 'properties.subnetId',
|
128
|
+
constraints: {
|
129
|
+
Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$'
|
130
|
+
},
|
131
|
+
type: {
|
132
|
+
name: 'String'
|
133
|
+
}
|
134
|
+
},
|
135
|
+
static_ip: {
|
136
|
+
client_side_validation: true,
|
137
|
+
required: false,
|
138
|
+
serialized_name: 'properties.staticIP',
|
139
|
+
constraints: {
|
140
|
+
Pattern: '^\d+\.\d+\.\d+\.\d+$'
|
141
|
+
},
|
142
|
+
type: {
|
143
|
+
name: 'String'
|
144
|
+
}
|
145
|
+
},
|
146
|
+
zones: {
|
147
|
+
client_side_validation: true,
|
148
|
+
required: false,
|
149
|
+
serialized_name: 'zones',
|
150
|
+
type: {
|
151
|
+
name: 'Sequence',
|
152
|
+
element: {
|
153
|
+
client_side_validation: true,
|
154
|
+
required: false,
|
155
|
+
serialized_name: 'StringElementType',
|
156
|
+
type: {
|
157
|
+
name: 'String'
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
},
|
162
|
+
location: {
|
163
|
+
client_side_validation: true,
|
164
|
+
required: true,
|
165
|
+
serialized_name: 'location',
|
166
|
+
type: {
|
167
|
+
name: 'String'
|
168
|
+
}
|
169
|
+
},
|
170
|
+
tags: {
|
171
|
+
client_side_validation: true,
|
172
|
+
required: false,
|
173
|
+
serialized_name: 'tags',
|
174
|
+
type: {
|
175
|
+
name: 'Dictionary',
|
176
|
+
value: {
|
177
|
+
client_side_validation: true,
|
178
|
+
required: false,
|
179
|
+
serialized_name: 'StringElementType',
|
180
|
+
type: {
|
181
|
+
name: 'String'
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A firewall rule on a redis cache has a name, and describes a contiguous
|
10
|
+
# range of IP addresses permitted to connect
|
11
|
+
#
|
12
|
+
class RedisFirewallRule < ProxyResource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] lowest IP address included in the range
|
17
|
+
attr_accessor :start_ip
|
18
|
+
|
19
|
+
# @return [String] highest IP address included in the range
|
20
|
+
attr_accessor :end_ip
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for RedisFirewallRule class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'RedisFirewallRule',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'RedisFirewallRule',
|
35
|
+
model_properties: {
|
36
|
+
id: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
read_only: true,
|
40
|
+
serialized_name: 'id',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
name: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'name',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
type: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
read_only: true,
|
58
|
+
serialized_name: 'type',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
start_ip: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: true,
|
66
|
+
serialized_name: 'properties.startIP',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
end_ip: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: true,
|
74
|
+
serialized_name: 'properties.endIP',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_create_parameters.rb
ADDED
@@ -0,0 +1,57 @@
|
|
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::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters required for creating a firewall rule on redis cache.
|
10
|
+
#
|
11
|
+
class RedisFirewallRuleCreateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] lowest IP address included in the range
|
16
|
+
attr_accessor :start_ip
|
17
|
+
|
18
|
+
# @return [String] highest IP address included in the range
|
19
|
+
attr_accessor :end_ip
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for RedisFirewallRuleCreateParameters class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'RedisFirewallRuleCreateParameters',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'RedisFirewallRuleCreateParameters',
|
34
|
+
model_properties: {
|
35
|
+
start_ip: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'properties.startIP',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
end_ip: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'properties.endIP',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of list firewall rules Redis operation.
|
10
|
+
#
|
11
|
+
class RedisFirewallRuleListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<RedisFirewallRule>] Results of the list firewall rules
|
17
|
+
# operation.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] Link for next set of locations.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<RedisFirewallRule>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [RedisFirewallRuleListResult] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for RedisFirewallRuleListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'RedisFirewallRuleListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'RedisFirewallRuleListResult',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'RedisFirewallRuleElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'RedisFirewallRule'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
read_only: true,
|
89
|
+
serialized_name: 'nextLink',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|