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
@@ -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::V2016_04_01
7
7
  module Models
8
8
  #
9
9
  # Response to force reboot for Redis cache.
@@ -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::V2016_04_01
7
+ module Models
8
+ #
9
+ # Defines values for RedisKeyType
10
+ #
11
+ module RedisKeyType
12
+ Primary = "Primary"
13
+ Secondary = "Secondary"
14
+ end
15
+ end
16
+ 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::V2016_04_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>] List of Redis cache instances.
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
@@ -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::V2016_04_01
7
7
  module Models
8
8
  #
9
9
  # Response to put/get patch schedules for Redis cache.
@@ -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::V2016_04_01
7
7
  module Models
8
8
  #
9
9
  # Specifies which Redis node(s) to reboot.
@@ -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::V2016_04_01
7
7
  module Models
8
8
  #
9
9
  # Specifies which Redis access keys to reset.
@@ -0,0 +1,245 @@
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 single Redis item in List or Get Operation.
10
+ #
11
+ class RedisResource < 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
+ # @return [String] Redis version.
44
+ attr_accessor :redis_version
45
+
46
+ # @return [String] Redis instance provisioning status.
47
+ attr_accessor :provisioning_state
48
+
49
+ # @return [String] Redis host name.
50
+ attr_accessor :host_name
51
+
52
+ # @return [Integer] Redis non-SSL port.
53
+ attr_accessor :port
54
+
55
+ # @return [Integer] Redis SSL port.
56
+ attr_accessor :ssl_port
57
+
58
+ # @return [RedisAccessKeys] The keys of the Redis cache - not set if this
59
+ # object is not the response to Create or Update redis cache
60
+ attr_accessor :access_keys
61
+
62
+
63
+ #
64
+ # Mapper for RedisResource class as Ruby Hash.
65
+ # This will be used for serialization/deserialization.
66
+ #
67
+ def self.mapper()
68
+ {
69
+ required: false,
70
+ serialized_name: 'RedisResource',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'RedisResource',
74
+ model_properties: {
75
+ id: {
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'id',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ name: {
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'name',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ type: {
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'type',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ location: {
100
+ required: true,
101
+ serialized_name: 'location',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ tags: {
107
+ required: false,
108
+ serialized_name: 'tags',
109
+ type: {
110
+ name: 'Dictionary',
111
+ value: {
112
+ required: false,
113
+ serialized_name: 'StringElementType',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ }
118
+ }
119
+ },
120
+ redis_configuration: {
121
+ required: false,
122
+ serialized_name: 'properties.redisConfiguration',
123
+ type: {
124
+ name: 'Dictionary',
125
+ value: {
126
+ required: false,
127
+ serialized_name: 'StringElementType',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ }
132
+ }
133
+ },
134
+ enable_non_ssl_port: {
135
+ required: false,
136
+ serialized_name: 'properties.enableNonSslPort',
137
+ type: {
138
+ name: 'Boolean'
139
+ }
140
+ },
141
+ tenant_settings: {
142
+ required: false,
143
+ serialized_name: 'properties.tenantSettings',
144
+ type: {
145
+ name: 'Dictionary',
146
+ value: {
147
+ required: false,
148
+ serialized_name: 'StringElementType',
149
+ type: {
150
+ name: 'String'
151
+ }
152
+ }
153
+ }
154
+ },
155
+ shard_count: {
156
+ required: false,
157
+ serialized_name: 'properties.shardCount',
158
+ type: {
159
+ name: 'Number'
160
+ }
161
+ },
162
+ subnet_id: {
163
+ required: false,
164
+ serialized_name: 'properties.subnetId',
165
+ constraints: {
166
+ Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$'
167
+ },
168
+ type: {
169
+ name: 'String'
170
+ }
171
+ },
172
+ static_ip: {
173
+ required: false,
174
+ serialized_name: 'properties.staticIP',
175
+ constraints: {
176
+ Pattern: '^\d+\.\d+\.\d+\.\d+$'
177
+ },
178
+ type: {
179
+ name: 'String'
180
+ }
181
+ },
182
+ sku: {
183
+ required: false,
184
+ serialized_name: 'properties.sku',
185
+ type: {
186
+ name: 'Composite',
187
+ class_name: 'Sku'
188
+ }
189
+ },
190
+ redis_version: {
191
+ required: false,
192
+ read_only: true,
193
+ serialized_name: 'properties.redisVersion',
194
+ type: {
195
+ name: 'String'
196
+ }
197
+ },
198
+ provisioning_state: {
199
+ required: false,
200
+ read_only: true,
201
+ serialized_name: 'properties.provisioningState',
202
+ type: {
203
+ name: 'String'
204
+ }
205
+ },
206
+ host_name: {
207
+ required: false,
208
+ read_only: true,
209
+ serialized_name: 'properties.hostName',
210
+ type: {
211
+ name: 'String'
212
+ }
213
+ },
214
+ port: {
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'properties.port',
218
+ type: {
219
+ name: 'Number'
220
+ }
221
+ },
222
+ ssl_port: {
223
+ required: false,
224
+ read_only: true,
225
+ serialized_name: 'properties.sslPort',
226
+ type: {
227
+ name: 'Number'
228
+ }
229
+ },
230
+ access_keys: {
231
+ required: false,
232
+ read_only: true,
233
+ serialized_name: 'properties.accessKeys',
234
+ type: {
235
+ name: 'Composite',
236
+ class_name: 'RedisAccessKeys'
237
+ }
238
+ }
239
+ }
240
+ }
241
+ }
242
+ end
243
+ end
244
+ end
245
+ 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::V2016_04_01
7
7
  module Models
8
8
  #
9
9
  # Parameters supplied to the Update Redis operation.
@@ -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::V2016_04_01
7
+ module Models
8
+ #
9
+ # The Resource definition.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Resource name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Resource type.
22
+ attr_accessor :type
23
+
24
+ # @return [String] Resource location.
25
+ attr_accessor :location
26
+
27
+ # @return [Hash{String => String}] Resource tags.
28
+ attr_accessor :tags
29
+
30
+
31
+ #
32
+ # Mapper for Resource class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'Resource',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'Resource',
42
+ model_properties: {
43
+ id: {
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'id',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ name: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'name',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ type: {
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'type',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ location: {
68
+ required: true,
69
+ serialized_name: 'location',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ tags: {
75
+ required: false,
76
+ serialized_name: 'tags',
77
+ type: {
78
+ name: 'Dictionary',
79
+ value: {
80
+ required: false,
81
+ serialized_name: 'StringElementType',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end