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.
- checksums.yaml +4 -4
- data/lib/2015-08-01/generated/azure_mgmt_redis.rb +43 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/reboot_type.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +56 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb +194 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/redis_key_type.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_keys_result.rb +56 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_result.rb +94 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_properties.rb +149 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +58 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +46 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource.rb +234 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource_with_access_key.rb +245 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/resource.rb +95 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb +68 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/sku_family.rb +1 -1
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/sku_name.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +1002 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +131 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/version.rb +2 -2
- data/lib/2016-04-01/generated/azure_mgmt_redis.rb +56 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +225 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/day_of_week.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/export_rdbparameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/import_rdbparameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/operation.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/operation_display.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/operation_list_result.rb +97 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_access_keys.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +177 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +89 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +95 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_force_reboot_response.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_list_result.rb +94 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_patch_schedule.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_reboot_parameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_resource.rb +245 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/resource.rb +94 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/schedule_entry.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/sku.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/operations.rb +3 -3
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/patch_schedules.rb +5 -5
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/redis.rb +19 -19
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +325 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +147 -0
- data/lib/{generated/azure_mgmt_redis/module_definition.rb → 2016-04-01/generated/azure_mgmt_redis/version.rb} +3 -3
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis.rb +40 -40
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/firewall_rules.rb +7 -7
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/day_of_week.rb +23 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +64 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +61 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation.rb +55 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation_display.rb +75 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/operation_list_result.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/proxy_resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +58 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_create_parameters.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_firewall_rule.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +45 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_list.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_list_result.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +97 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +57 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +46 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +149 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/replication_role.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/schedule_entry.rb +68 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku.rb +69 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/tracked_resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +220 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +316 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +1481 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/redis_linked_server_operations.rb +7 -7
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/redis_management_client.rb +3 -3
- data/lib/2017-02-01/generated/azure_mgmt_redis/version.rb +8 -0
- data/lib/azure_mgmt_redis.rb +4 -1
- data/lib/module_definition.rb +9 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/redis_profile_module.rb +178 -0
- data/lib/profiles/latest/redis_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/redis_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +103 -43
@@ -0,0 +1,97 @@
|
|
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::V2016_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list REST API operations. It contains a list of
|
10
|
+
# operations and a URL nextLink to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Operation>] List of operations supported by the resource
|
18
|
+
# provider.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] URL to get the next set of operation list results if
|
22
|
+
# there are any.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<Operation>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [OperationListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'OperationListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'OperationListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'OperationElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'Operation'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'nextLink',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -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::V2016_04_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,177 @@
|
|
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::V2016_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the Create Redis operation.
|
10
|
+
#
|
11
|
+
class RedisCreateParameters < Resource
|
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}] tenantSettings
|
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 [String] The full resource ID of a subnet in a virtual network
|
32
|
+
# to deploy the Redis cache in. Example format:
|
33
|
+
# /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
|
34
|
+
attr_accessor :subnet_id
|
35
|
+
|
36
|
+
# @return [String] Static IP address. Required when deploying a Redis
|
37
|
+
# cache inside an existing Azure Virtual Network.
|
38
|
+
attr_accessor :static_ip
|
39
|
+
|
40
|
+
# @return [Sku] The SKU of the Redis cache to deploy.
|
41
|
+
attr_accessor :sku
|
42
|
+
|
43
|
+
|
44
|
+
#
|
45
|
+
# Mapper for RedisCreateParameters class as Ruby Hash.
|
46
|
+
# This will be used for serialization/deserialization.
|
47
|
+
#
|
48
|
+
def self.mapper()
|
49
|
+
{
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'RedisCreateParameters',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'RedisCreateParameters',
|
55
|
+
model_properties: {
|
56
|
+
id: {
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'id',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
name: {
|
65
|
+
required: false,
|
66
|
+
read_only: true,
|
67
|
+
serialized_name: 'name',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
type: {
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'type',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
location: {
|
81
|
+
required: true,
|
82
|
+
serialized_name: 'location',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
tags: {
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'tags',
|
90
|
+
type: {
|
91
|
+
name: 'Dictionary',
|
92
|
+
value: {
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'StringElementType',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
redis_configuration: {
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'properties.redisConfiguration',
|
104
|
+
type: {
|
105
|
+
name: 'Dictionary',
|
106
|
+
value: {
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'StringElementType',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
},
|
115
|
+
enable_non_ssl_port: {
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'properties.enableNonSslPort',
|
118
|
+
type: {
|
119
|
+
name: 'Boolean'
|
120
|
+
}
|
121
|
+
},
|
122
|
+
tenant_settings: {
|
123
|
+
required: false,
|
124
|
+
serialized_name: 'properties.tenantSettings',
|
125
|
+
type: {
|
126
|
+
name: 'Dictionary',
|
127
|
+
value: {
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'StringElementType',
|
130
|
+
type: {
|
131
|
+
name: 'String'
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
},
|
136
|
+
shard_count: {
|
137
|
+
required: false,
|
138
|
+
serialized_name: 'properties.shardCount',
|
139
|
+
type: {
|
140
|
+
name: 'Number'
|
141
|
+
}
|
142
|
+
},
|
143
|
+
subnet_id: {
|
144
|
+
required: false,
|
145
|
+
serialized_name: 'properties.subnetId',
|
146
|
+
constraints: {
|
147
|
+
Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$'
|
148
|
+
},
|
149
|
+
type: {
|
150
|
+
name: 'String'
|
151
|
+
}
|
152
|
+
},
|
153
|
+
static_ip: {
|
154
|
+
required: false,
|
155
|
+
serialized_name: 'properties.staticIP',
|
156
|
+
constraints: {
|
157
|
+
Pattern: '^\d+\.\d+\.\d+\.\d+$'
|
158
|
+
},
|
159
|
+
type: {
|
160
|
+
name: 'String'
|
161
|
+
}
|
162
|
+
},
|
163
|
+
sku: {
|
164
|
+
required: true,
|
165
|
+
serialized_name: 'properties.sku',
|
166
|
+
type: {
|
167
|
+
name: 'Composite',
|
168
|
+
class_name: 'Sku'
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
@@ -0,0 +1,89 @@
|
|
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::V2016_04_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
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] resource ID (of the firewall rule)
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] name of the firewall rule
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [String] type (of the firewall rule resource =
|
23
|
+
# 'Microsoft.Cache/redis/firewallRule')
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
# @return [String] lowest IP address included in the range
|
27
|
+
attr_accessor :start_ip
|
28
|
+
|
29
|
+
# @return [String] highest IP address included in the range
|
30
|
+
attr_accessor :end_ip
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for RedisFirewallRule class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'RedisFirewallRule',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'RedisFirewallRule',
|
44
|
+
model_properties: {
|
45
|
+
id: {
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'id',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
name: {
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'name',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'type',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
start_ip: {
|
70
|
+
required: true,
|
71
|
+
serialized_name: 'properties.startIP',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
end_ip: {
|
77
|
+
required: true,
|
78
|
+
serialized_name: 'properties.endIP',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,95 @@
|
|
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::V2016_04_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
|
+
required: false,
|
62
|
+
serialized_name: 'RedisFirewallRuleListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'RedisFirewallRuleListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
required: true,
|
69
|
+
serialized_name: 'value',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'RedisFirewallRuleElementType',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'RedisFirewallRule'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'nextLink',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|