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,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_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Specifies which Redis node(s) to reboot.
|
10
|
+
#
|
11
|
+
class RedisRebootParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RebootType] Which Redis node(s) to reboot. Depending on this
|
16
|
+
# value data loss is possible. Possible values include: 'PrimaryNode',
|
17
|
+
# 'SecondaryNode', 'AllNodes'
|
18
|
+
attr_accessor :reboot_type
|
19
|
+
|
20
|
+
# @return [Integer] If clustering is enabled, the ID of the shard to be
|
21
|
+
# rebooted.
|
22
|
+
attr_accessor :shard_id
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for RedisRebootParameters class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'RedisRebootParameters',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'RedisRebootParameters',
|
36
|
+
model_properties: {
|
37
|
+
reboot_type: {
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'rebootType',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
shard_id: {
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'shardId',
|
47
|
+
type: {
|
48
|
+
name: 'Number'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Specifies which Redis access keys to reset.
|
10
|
+
#
|
11
|
+
class RedisRegenerateKeyParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RedisKeyType] The Redis access key to regenerate. Possible
|
16
|
+
# values include: 'Primary', 'Secondary'
|
17
|
+
attr_accessor :key_type
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for RedisRegenerateKeyParameters class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'RedisRegenerateKeyParameters',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'RedisRegenerateKeyParameters',
|
31
|
+
model_properties: {
|
32
|
+
key_type: {
|
33
|
+
required: true,
|
34
|
+
serialized_name: 'keyType',
|
35
|
+
type: {
|
36
|
+
name: 'Enum',
|
37
|
+
module: 'RedisKeyType'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,149 @@
|
|
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_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the Update Redis operation.
|
10
|
+
#
|
11
|
+
class RedisUpdateParameters
|
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
|
+
# @return [Hash{String => String}] Resource tags.
|
44
|
+
attr_accessor :tags
|
45
|
+
|
46
|
+
|
47
|
+
#
|
48
|
+
# Mapper for RedisUpdateParameters class as Ruby Hash.
|
49
|
+
# This will be used for serialization/deserialization.
|
50
|
+
#
|
51
|
+
def self.mapper()
|
52
|
+
{
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'RedisUpdateParameters',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'RedisUpdateParameters',
|
58
|
+
model_properties: {
|
59
|
+
redis_configuration: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'properties.redisConfiguration',
|
62
|
+
type: {
|
63
|
+
name: 'Dictionary',
|
64
|
+
value: {
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'StringElementType',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
enable_non_ssl_port: {
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'properties.enableNonSslPort',
|
76
|
+
type: {
|
77
|
+
name: 'Boolean'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
tenant_settings: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'properties.tenantSettings',
|
83
|
+
type: {
|
84
|
+
name: 'Dictionary',
|
85
|
+
value: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'StringElementType',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
},
|
94
|
+
shard_count: {
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'properties.shardCount',
|
97
|
+
type: {
|
98
|
+
name: 'Number'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
subnet_id: {
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'properties.subnetId',
|
104
|
+
constraints: {
|
105
|
+
Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$'
|
106
|
+
},
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
static_ip: {
|
112
|
+
required: false,
|
113
|
+
serialized_name: 'properties.staticIP',
|
114
|
+
constraints: {
|
115
|
+
Pattern: '^\d+\.\d+\.\d+\.\d+$'
|
116
|
+
},
|
117
|
+
type: {
|
118
|
+
name: 'String'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
sku: {
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'properties.sku',
|
124
|
+
type: {
|
125
|
+
name: 'Composite',
|
126
|
+
class_name: 'Sku'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
tags: {
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'properties.tags',
|
132
|
+
type: {
|
133
|
+
name: 'Dictionary',
|
134
|
+
value: {
|
135
|
+
required: false,
|
136
|
+
serialized_name: 'StringElementType',
|
137
|
+
type: {
|
138
|
+
name: 'String'
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Patch schedule entry for a Premium Redis Cache.
|
10
|
+
#
|
11
|
+
class ScheduleEntry
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DayOfWeek] Day of the week when a cache can be patched.
|
16
|
+
# Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
|
17
|
+
# 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
|
18
|
+
attr_accessor :day_of_week
|
19
|
+
|
20
|
+
# @return [Integer] Start hour after which cache patching can start.
|
21
|
+
attr_accessor :start_hour_utc
|
22
|
+
|
23
|
+
# @return [Duration] ISO8601 timespan specifying how much time cache
|
24
|
+
# patching can take.
|
25
|
+
attr_accessor :maintenance_window
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for ScheduleEntry class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ScheduleEntry',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ScheduleEntry',
|
39
|
+
model_properties: {
|
40
|
+
day_of_week: {
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'dayOfWeek',
|
43
|
+
type: {
|
44
|
+
name: 'Enum',
|
45
|
+
module: 'DayOfWeek'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
start_hour_utc: {
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'startHourUtc',
|
51
|
+
type: {
|
52
|
+
name: 'Number'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
maintenance_window: {
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'maintenanceWindow',
|
58
|
+
type: {
|
59
|
+
name: 'TimeSpan'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# SKU parameters supplied to the create Redis operation.
|
10
|
+
#
|
11
|
+
class Sku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SkuName] The type of Redis cache to deploy. Valid values:
|
16
|
+
# (Basic, Standard, Premium). Possible values include: 'Basic',
|
17
|
+
# 'Standard', 'Premium'
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [SkuFamily] The SKU family to use. Valid values: (C, P). (C =
|
21
|
+
# Basic/Standard, P = Premium). Possible values include: 'C', 'P'
|
22
|
+
attr_accessor :family
|
23
|
+
|
24
|
+
# @return [Integer] The size of the Redis cache to deploy. Valid values:
|
25
|
+
# for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium)
|
26
|
+
# family (1, 2, 3, 4).
|
27
|
+
attr_accessor :capacity
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for Sku class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'Sku',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'Sku',
|
41
|
+
model_properties: {
|
42
|
+
name: {
|
43
|
+
required: true,
|
44
|
+
serialized_name: 'name',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
family: {
|
50
|
+
required: true,
|
51
|
+
serialized_name: 'family',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
capacity: {
|
57
|
+
required: true,
|
58
|
+
serialized_name: 'capacity',
|
59
|
+
type: {
|
60
|
+
name: 'Number'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuFamily
|
10
|
+
#
|
11
|
+
module SkuFamily
|
12
|
+
C = "C"
|
13
|
+
P = "P"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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::V2017_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuName
|
10
|
+
#
|
11
|
+
module SkuName
|
12
|
+
Basic = "Basic"
|
13
|
+
Standard = "Standard"
|
14
|
+
Premium = "Premium"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|