azure_mgmt_sql 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_sql.rb +63 -6
  3. data/lib/generated/azure_mgmt_sql/databases.rb +2170 -0
  4. data/lib/generated/azure_mgmt_sql/elastic_pools.rb +950 -0
  5. data/lib/generated/azure_mgmt_sql/models/column.rb +90 -0
  6. data/lib/generated/azure_mgmt_sql/models/create_mode.rb +21 -0
  7. data/lib/generated/azure_mgmt_sql/models/database.rb +366 -0
  8. data/lib/generated/azure_mgmt_sql/models/database_editions.rb +22 -0
  9. data/lib/generated/azure_mgmt_sql/models/database_list_result.rb +53 -0
  10. data/lib/generated/azure_mgmt_sql/models/database_metric.rb +100 -0
  11. data/lib/generated/azure_mgmt_sql/models/database_metric_list_result.rb +53 -0
  12. data/lib/generated/azure_mgmt_sql/models/elastic_pool.rb +158 -0
  13. data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity.rb +257 -0
  14. data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb +54 -0
  15. data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb +249 -0
  16. data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb +54 -0
  17. data/lib/generated/azure_mgmt_sql/models/elastic_pool_editions.rb +17 -0
  18. data/lib/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +53 -0
  19. data/lib/generated/azure_mgmt_sql/models/{state.rb → elastic_pool_state.rb} +5 -5
  20. data/lib/generated/azure_mgmt_sql/models/operation_impact.rb +80 -0
  21. data/lib/generated/azure_mgmt_sql/models/recommended_database_properties.rb +68 -0
  22. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb +216 -0
  23. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb +54 -0
  24. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb +54 -0
  25. data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb +65 -0
  26. data/lib/generated/azure_mgmt_sql/models/recommended_index.rb +260 -0
  27. data/lib/generated/azure_mgmt_sql/models/recommended_index_actions.rb +17 -0
  28. data/lib/generated/azure_mgmt_sql/models/recommended_index_states.rb +25 -0
  29. data/lib/generated/azure_mgmt_sql/models/recommended_index_types.rb +18 -0
  30. data/lib/generated/azure_mgmt_sql/models/replication_link.rb +149 -0
  31. data/lib/generated/azure_mgmt_sql/models/replication_link_list_result.rb +54 -0
  32. data/lib/generated/azure_mgmt_sql/models/replication_role.rb +19 -0
  33. data/lib/generated/azure_mgmt_sql/models/replication_state.rb +18 -0
  34. data/lib/generated/azure_mgmt_sql/models/restore_point.rb +117 -0
  35. data/lib/generated/azure_mgmt_sql/models/restore_point_list_result.rb +54 -0
  36. data/lib/generated/azure_mgmt_sql/models/restore_point_types.rb +16 -0
  37. data/lib/generated/azure_mgmt_sql/models/schema.rb +98 -0
  38. data/lib/generated/azure_mgmt_sql/models/{server_security_alert_policy.rb → server.rb} +32 -37
  39. data/lib/generated/azure_mgmt_sql/models/server_firewall_rule.rb +95 -0
  40. data/lib/generated/azure_mgmt_sql/models/server_firewall_rule_list_result.rb +53 -0
  41. data/lib/generated/azure_mgmt_sql/models/server_list_result.rb +52 -0
  42. data/lib/generated/azure_mgmt_sql/models/server_metric.rb +100 -0
  43. data/lib/generated/azure_mgmt_sql/models/server_metric_list_result.rb +53 -0
  44. data/lib/generated/azure_mgmt_sql/models/server_version.rb +16 -0
  45. data/lib/generated/azure_mgmt_sql/models/service_objective.rb +107 -0
  46. data/lib/generated/azure_mgmt_sql/models/service_objective_list_result.rb +54 -0
  47. data/lib/generated/azure_mgmt_sql/models/service_objective_name.rb +22 -0
  48. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +282 -0
  49. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb +53 -0
  50. data/lib/generated/azure_mgmt_sql/models/slo_usage_metric.rb +111 -0
  51. data/lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb +56 -0
  52. data/lib/generated/azure_mgmt_sql/models/table.rb +131 -0
  53. data/lib/generated/azure_mgmt_sql/models/table_type.rb +16 -0
  54. data/lib/generated/azure_mgmt_sql/models/target_database_editions.rb +20 -0
  55. data/lib/generated/azure_mgmt_sql/models/target_elastic_pool_editions.rb +17 -0
  56. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +63 -0
  57. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +74 -0
  58. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb +55 -0
  59. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_states.rb +16 -0
  60. data/lib/generated/azure_mgmt_sql/models/{email_account_admins.rb → transparent_data_encryption_states.rb} +3 -3
  61. data/lib/generated/azure_mgmt_sql/models/upgrade_hint.rb +99 -0
  62. data/lib/generated/azure_mgmt_sql/models/upgrade_recommended_elastic_pool_properties.rb +132 -0
  63. data/lib/generated/azure_mgmt_sql/module_definition.rb +1 -1
  64. data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +555 -0
  65. data/lib/generated/azure_mgmt_sql/servers.rb +1233 -0
  66. data/lib/generated/azure_mgmt_sql/sql_management_client.rb +31 -10
  67. data/lib/generated/azure_mgmt_sql/version.rb +2 -2
  68. metadata +66 -9
  69. data/lib/generated/azure_mgmt_sql/models/server_security_alert_policy_create_or_update_parameters.rb +0 -85
  70. data/lib/generated/azure_mgmt_sql/security_alert_policy.rb +0 -296
@@ -0,0 +1,90 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Represents an Azure SQL Database table column.
10
+ #
11
+ class Column < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The type of Azure SQL Database table column.
16
+ attr_accessor :column_type
17
+
18
+
19
+ #
20
+ # Mapper for Column class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'Column',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'Column',
30
+ model_properties: {
31
+ name: {
32
+ required: false,
33
+ read_only: true,
34
+ serialized_name: 'name',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ },
39
+ id: {
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'id',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ type: {
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'type',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ location: {
56
+ required: true,
57
+ serialized_name: 'location',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ tags: {
63
+ required: false,
64
+ serialized_name: 'tags',
65
+ type: {
66
+ name: 'Dictionary',
67
+ value: {
68
+ required: false,
69
+ serialized_name: 'StringElementType',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ column_type: {
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'properties.columnType',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,21 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Defines values for CreateMode
10
+ #
11
+ module CreateMode
12
+ Copy = "Copy"
13
+ Default = "Default"
14
+ NonReadableSecondary = "NonReadableSecondary"
15
+ OnlineSecondary = "OnlineSecondary"
16
+ PointInTimeRestore = "PointInTimeRestore"
17
+ Recovery = "Recovery"
18
+ Restore = "Restore"
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,366 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Represents an Azure SQL Database.
10
+ #
11
+ class Database < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The collation of the Azure SQL database.
16
+ attr_accessor :collation
17
+
18
+ # @return [DateTime] The creation date of the Azure SQL database (ISO8601
19
+ # format).
20
+ attr_accessor :creation_date
21
+
22
+ # @return [Integer] The containment state of the Azure SQL database.
23
+ attr_accessor :containment_state
24
+
25
+ # @return The current Service Level Objective ID of the Azure SQL
26
+ # database. This is the ID of the Service Level Objective that is
27
+ # currently active.
28
+ attr_accessor :current_service_objective_id
29
+
30
+ # @return [String] The ID of the Azure SQL database.
31
+ attr_accessor :database_id
32
+
33
+ # @return [DateTime] The recovery period start date of the Azure SQL
34
+ # database. This records the start date and time when recovery is
35
+ # available for this Azure SQL Database (ISO8601 format).
36
+ attr_accessor :earliest_restore_date
37
+
38
+ # @return [CreateMode] Specifies the type of database to create. Possible
39
+ # values include: 'Copy', 'Default', 'NonReadableSecondary',
40
+ # 'OnlineSecondary', 'PointInTimeRestore', 'Recovery', 'Restore'
41
+ attr_accessor :create_mode
42
+
43
+ # @return [String] Conditional. Specifies the resource ID of the source
44
+ # database. If createMode is not set to Default, then this value must be
45
+ # specified. The name of the source database must be the same. NOTE:
46
+ # Collation, Edition, and MaxSizeBytes must remain the same while the
47
+ # link is active. Values specified for these parameters will be ignored.
48
+ attr_accessor :source_database_id
49
+
50
+ # @return [DatabaseEditions] The edition of the Azure SQL database. The
51
+ # DatabaseEditions enumeration contains all the valid editions. Possible
52
+ # values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium',
53
+ # 'Free', 'Stretch', 'DataWarehouse'
54
+ attr_accessor :edition
55
+
56
+ # @return [String] The max size of the Azure SQL database expressed in
57
+ # bytes. Note: Only the following sizes are supported (in addition to
58
+ # limitations being placed on each edition): { 100 MB | 500 MB |1 GB | 5
59
+ # GB | 10 GB | 20 GB | 30 GB … 150 GB | 200 GB … 500 GB }
60
+ attr_accessor :max_size_bytes
61
+
62
+ # @return The configured Service Level Objective ID of the Azure SQL
63
+ # database. This is the Service Level Objective that is in the process of
64
+ # being applied to the Azure SQL database. Once successfully updated, it
65
+ # will match the value of currentServiceObjectiveId property.
66
+ attr_accessor :requested_service_objective_id
67
+
68
+ # @return [ServiceObjectiveName] The name of the configured Service Level
69
+ # Objective of the Azure SQL database. This is the Service Level
70
+ # Objective that is in the process of being applied to the Azure SQL
71
+ # database. Once successfully updated, it will match the value of
72
+ # serviceLevelObjective property. Possible values include: 'Basic', 'S0',
73
+ # 'S1', 'S2', 'S3', 'P1', 'P2', 'P3'
74
+ attr_accessor :requested_service_objective_name
75
+
76
+ # @return [ServiceObjectiveName] The current Service Level Objective of
77
+ # the Azure SQL database. Possible values include: 'Basic', 'S0', 'S1',
78
+ # 'S2', 'S3', 'P1', 'P2', 'P3'
79
+ attr_accessor :service_level_objective
80
+
81
+ # @return [String] The status of the Azure SQL database.
82
+ attr_accessor :status
83
+
84
+ # @return [String] The name of the Azure SQL Elastic Pool the database is
85
+ # in.
86
+ attr_accessor :elastic_pool_name
87
+
88
+ # @return [String] The default secondary region for this database.
89
+ attr_accessor :default_secondary_location
90
+
91
+ # @return [Array<ServiceTierAdvisor>] The list of service tier advisors
92
+ # for this database. Expanded property
93
+ attr_accessor :service_tier_advisors
94
+
95
+ # @return [UpgradeHint] The upgrade hint for this database.
96
+ attr_accessor :upgrade_hint
97
+
98
+ # @return [Array<Schema>] The schemas from this database.
99
+ attr_accessor :schemas
100
+
101
+ # @return [Array<TransparentDataEncryption>] The transparent data
102
+ # encryption info for this database.
103
+ attr_accessor :transparent_data_encryption
104
+
105
+ # @return [Array<RecommendedIndex>] The recommended indices for this
106
+ # database.
107
+ attr_accessor :recommended_index
108
+
109
+
110
+ #
111
+ # Mapper for Database class as Ruby Hash.
112
+ # This will be used for serialization/deserialization.
113
+ #
114
+ def self.mapper()
115
+ {
116
+ required: false,
117
+ serialized_name: 'Database',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'Database',
121
+ model_properties: {
122
+ name: {
123
+ required: false,
124
+ read_only: true,
125
+ serialized_name: 'name',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ id: {
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'id',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ type: {
139
+ required: false,
140
+ read_only: true,
141
+ serialized_name: 'type',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ location: {
147
+ required: true,
148
+ serialized_name: 'location',
149
+ type: {
150
+ name: 'String'
151
+ }
152
+ },
153
+ tags: {
154
+ required: false,
155
+ serialized_name: 'tags',
156
+ type: {
157
+ name: 'Dictionary',
158
+ value: {
159
+ required: false,
160
+ serialized_name: 'StringElementType',
161
+ type: {
162
+ name: 'String'
163
+ }
164
+ }
165
+ }
166
+ },
167
+ collation: {
168
+ required: false,
169
+ serialized_name: 'properties.collation',
170
+ type: {
171
+ name: 'String'
172
+ }
173
+ },
174
+ creation_date: {
175
+ required: false,
176
+ read_only: true,
177
+ serialized_name: 'properties.creationDate',
178
+ type: {
179
+ name: 'DateTime'
180
+ }
181
+ },
182
+ containment_state: {
183
+ required: false,
184
+ read_only: true,
185
+ serialized_name: 'properties.containmentState',
186
+ type: {
187
+ name: 'Number'
188
+ }
189
+ },
190
+ current_service_objective_id: {
191
+ required: false,
192
+ read_only: true,
193
+ serialized_name: 'properties.currentServiceObjectiveId',
194
+ type: {
195
+ name: 'String'
196
+ }
197
+ },
198
+ database_id: {
199
+ required: false,
200
+ read_only: true,
201
+ serialized_name: 'properties.databaseId',
202
+ type: {
203
+ name: 'String'
204
+ }
205
+ },
206
+ earliest_restore_date: {
207
+ required: false,
208
+ read_only: true,
209
+ serialized_name: 'properties.earliestRestoreDate',
210
+ type: {
211
+ name: 'DateTime'
212
+ }
213
+ },
214
+ create_mode: {
215
+ required: false,
216
+ serialized_name: 'properties.createMode',
217
+ type: {
218
+ name: 'String'
219
+ }
220
+ },
221
+ source_database_id: {
222
+ required: false,
223
+ serialized_name: 'properties.sourceDatabaseId',
224
+ type: {
225
+ name: 'String'
226
+ }
227
+ },
228
+ edition: {
229
+ required: false,
230
+ serialized_name: 'properties.edition',
231
+ type: {
232
+ name: 'String'
233
+ }
234
+ },
235
+ max_size_bytes: {
236
+ required: false,
237
+ serialized_name: 'properties.maxSizeBytes',
238
+ type: {
239
+ name: 'String'
240
+ }
241
+ },
242
+ requested_service_objective_id: {
243
+ required: false,
244
+ serialized_name: 'properties.requestedServiceObjectiveId',
245
+ type: {
246
+ name: 'String'
247
+ }
248
+ },
249
+ requested_service_objective_name: {
250
+ required: false,
251
+ serialized_name: 'properties.requestedServiceObjectiveName',
252
+ type: {
253
+ name: 'String'
254
+ }
255
+ },
256
+ service_level_objective: {
257
+ required: false,
258
+ read_only: true,
259
+ serialized_name: 'properties.serviceLevelObjective',
260
+ type: {
261
+ name: 'String'
262
+ }
263
+ },
264
+ status: {
265
+ required: false,
266
+ read_only: true,
267
+ serialized_name: 'properties.status',
268
+ type: {
269
+ name: 'String'
270
+ }
271
+ },
272
+ elastic_pool_name: {
273
+ required: false,
274
+ serialized_name: 'properties.elasticPoolName',
275
+ type: {
276
+ name: 'String'
277
+ }
278
+ },
279
+ default_secondary_location: {
280
+ required: false,
281
+ read_only: true,
282
+ serialized_name: 'properties.defaultSecondaryLocation',
283
+ type: {
284
+ name: 'String'
285
+ }
286
+ },
287
+ service_tier_advisors: {
288
+ required: false,
289
+ read_only: true,
290
+ serialized_name: 'properties.serviceTierAdvisors',
291
+ type: {
292
+ name: 'Sequence',
293
+ element: {
294
+ required: false,
295
+ serialized_name: 'ServiceTierAdvisorElementType',
296
+ type: {
297
+ name: 'Composite',
298
+ class_name: 'ServiceTierAdvisor'
299
+ }
300
+ }
301
+ }
302
+ },
303
+ upgrade_hint: {
304
+ required: false,
305
+ read_only: true,
306
+ serialized_name: 'properties.upgradeHint',
307
+ type: {
308
+ name: 'Composite',
309
+ class_name: 'UpgradeHint'
310
+ }
311
+ },
312
+ schemas: {
313
+ required: false,
314
+ read_only: true,
315
+ serialized_name: 'properties.schemas',
316
+ type: {
317
+ name: 'Sequence',
318
+ element: {
319
+ required: false,
320
+ serialized_name: 'SchemaElementType',
321
+ type: {
322
+ name: 'Composite',
323
+ class_name: 'Schema'
324
+ }
325
+ }
326
+ }
327
+ },
328
+ transparent_data_encryption: {
329
+ required: false,
330
+ read_only: true,
331
+ serialized_name: 'properties.transparentDataEncryption',
332
+ type: {
333
+ name: 'Sequence',
334
+ element: {
335
+ required: false,
336
+ serialized_name: 'TransparentDataEncryptionElementType',
337
+ type: {
338
+ name: 'Composite',
339
+ class_name: 'TransparentDataEncryption'
340
+ }
341
+ }
342
+ }
343
+ },
344
+ recommended_index: {
345
+ required: false,
346
+ read_only: true,
347
+ serialized_name: 'properties.recommendedIndex',
348
+ type: {
349
+ name: 'Sequence',
350
+ element: {
351
+ required: false,
352
+ serialized_name: 'RecommendedIndexElementType',
353
+ type: {
354
+ name: 'Composite',
355
+ class_name: 'RecommendedIndex'
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ }
362
+ }
363
+ end
364
+ end
365
+ end
366
+ end