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,65 @@
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 Azure SQL recommended elastic pool metric.
10
+ #
11
+ class RecommendedElasticPoolMetric
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] The time of metric (ISO8601 format).
16
+ attr_accessor :date_time
17
+
18
+ # @return [Float] Gets or sets the DTUs (Database Transaction Units). See
19
+ # https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/
20
+ attr_accessor :dtu
21
+
22
+ # @return [Float] Gets or sets size in gigabytes.
23
+ attr_accessor :size_gb
24
+
25
+
26
+ #
27
+ # Mapper for RecommendedElasticPoolMetric class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'RecommendedElasticPoolMetric',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'RecommendedElasticPoolMetric',
37
+ model_properties: {
38
+ date_time: {
39
+ required: false,
40
+ serialized_name: 'dateTime',
41
+ type: {
42
+ name: 'DateTime'
43
+ }
44
+ },
45
+ dtu: {
46
+ required: false,
47
+ serialized_name: 'dtu',
48
+ type: {
49
+ name: 'Double'
50
+ }
51
+ },
52
+ size_gb: {
53
+ required: false,
54
+ serialized_name: 'sizeGB',
55
+ type: {
56
+ name: 'Double'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,260 @@
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 recommended index.
10
+ #
11
+ class RecommendedIndex < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [RecommendedIndexActions] The proposed index action. You can
16
+ # create a missing index, drop an unused index, or rebuild an existing
17
+ # index to improve its performance. Possible values are 'Create', 'Drop',
18
+ # 'Rebuild'. Possible values include: 'Create', 'Drop', 'Rebuild'
19
+ attr_accessor :action
20
+
21
+ # @return [RecommendedIndexStates] The current recommendation state.
22
+ # Current options are: 'Active', 'Pending', 'Executing', 'Verifying',
23
+ # 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired',
24
+ # 'Blocked', 'Success'. Possible values include: 'Active', 'Pending',
25
+ # 'Executing', 'Verifying', 'Pending Revert', 'Reverting', 'Reverted',
26
+ # 'Ignored', 'Expired', 'Blocked', 'Success'
27
+ attr_accessor :state
28
+
29
+ # @return [DateTime] The UTC datetime showing when this resource was
30
+ # created (ISO8601 format).
31
+ attr_accessor :created
32
+
33
+ # @return [DateTime] The UTC datetime of when was this resource last
34
+ # changed (ISO8601 format).
35
+ attr_accessor :last_modified
36
+
37
+ # @return [RecommendedIndexTypes] The type of index (CLUSTERED,
38
+ # NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values
39
+ # include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED
40
+ # COLUMNSTORE'
41
+ attr_accessor :index_type
42
+
43
+ # @return [String] The schema where table to build index over resides
44
+ attr_accessor :schema
45
+
46
+ # @return [String] The table on which to build index.
47
+ attr_accessor :table
48
+
49
+ # @return [Array<String>] Columns over which to build index
50
+ attr_accessor :columns
51
+
52
+ # @return [Array<String>] The list of column names to be included in the
53
+ # index
54
+ attr_accessor :included_columns
55
+
56
+ # @return [String] The full build index script
57
+ attr_accessor :index_script
58
+
59
+ # @return [Array<OperationImpact>] The estimated impact of doing
60
+ # recommended index action.
61
+ attr_accessor :estimated_impact
62
+
63
+ # @return [Array<OperationImpact>] The values reported after index action
64
+ # is complete.
65
+ attr_accessor :reported_impact
66
+
67
+
68
+ #
69
+ # Mapper for RecommendedIndex class as Ruby Hash.
70
+ # This will be used for serialization/deserialization.
71
+ #
72
+ def self.mapper()
73
+ {
74
+ required: false,
75
+ serialized_name: 'RecommendedIndex',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'RecommendedIndex',
79
+ model_properties: {
80
+ name: {
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'name',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ id: {
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'id',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ type: {
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'type',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ location: {
105
+ required: true,
106
+ serialized_name: 'location',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ tags: {
112
+ required: false,
113
+ serialized_name: 'tags',
114
+ type: {
115
+ name: 'Dictionary',
116
+ value: {
117
+ required: false,
118
+ serialized_name: 'StringElementType',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ }
123
+ }
124
+ },
125
+ action: {
126
+ required: false,
127
+ read_only: true,
128
+ serialized_name: 'properties.action',
129
+ type: {
130
+ name: 'Enum',
131
+ module: 'RecommendedIndexActions'
132
+ }
133
+ },
134
+ state: {
135
+ required: false,
136
+ read_only: true,
137
+ serialized_name: 'properties.state',
138
+ type: {
139
+ name: 'Enum',
140
+ module: 'RecommendedIndexStates'
141
+ }
142
+ },
143
+ created: {
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'properties.created',
147
+ type: {
148
+ name: 'DateTime'
149
+ }
150
+ },
151
+ last_modified: {
152
+ required: false,
153
+ read_only: true,
154
+ serialized_name: 'properties.lastModified',
155
+ type: {
156
+ name: 'DateTime'
157
+ }
158
+ },
159
+ index_type: {
160
+ required: false,
161
+ read_only: true,
162
+ serialized_name: 'properties.indexType',
163
+ type: {
164
+ name: 'Enum',
165
+ module: 'RecommendedIndexTypes'
166
+ }
167
+ },
168
+ schema: {
169
+ required: false,
170
+ read_only: true,
171
+ serialized_name: 'properties.schema',
172
+ type: {
173
+ name: 'String'
174
+ }
175
+ },
176
+ table: {
177
+ required: false,
178
+ read_only: true,
179
+ serialized_name: 'properties.table',
180
+ type: {
181
+ name: 'String'
182
+ }
183
+ },
184
+ columns: {
185
+ required: false,
186
+ read_only: true,
187
+ serialized_name: 'properties.columns',
188
+ type: {
189
+ name: 'Sequence',
190
+ element: {
191
+ required: false,
192
+ serialized_name: 'StringElementType',
193
+ type: {
194
+ name: 'String'
195
+ }
196
+ }
197
+ }
198
+ },
199
+ included_columns: {
200
+ required: false,
201
+ read_only: true,
202
+ serialized_name: 'properties.includedColumns',
203
+ type: {
204
+ name: 'Sequence',
205
+ element: {
206
+ required: false,
207
+ serialized_name: 'StringElementType',
208
+ type: {
209
+ name: 'String'
210
+ }
211
+ }
212
+ }
213
+ },
214
+ index_script: {
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'properties.indexScript',
218
+ type: {
219
+ name: 'String'
220
+ }
221
+ },
222
+ estimated_impact: {
223
+ required: false,
224
+ read_only: true,
225
+ serialized_name: 'properties.estimatedImpact',
226
+ type: {
227
+ name: 'Sequence',
228
+ element: {
229
+ required: false,
230
+ serialized_name: 'OperationImpactElementType',
231
+ type: {
232
+ name: 'Composite',
233
+ class_name: 'OperationImpact'
234
+ }
235
+ }
236
+ }
237
+ },
238
+ reported_impact: {
239
+ required: false,
240
+ read_only: true,
241
+ serialized_name: 'properties.reportedImpact',
242
+ type: {
243
+ name: 'Sequence',
244
+ element: {
245
+ required: false,
246
+ serialized_name: 'OperationImpactElementType',
247
+ type: {
248
+ name: 'Composite',
249
+ class_name: 'OperationImpact'
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ end
258
+ end
259
+ end
260
+ end
@@ -0,0 +1,17 @@
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 RecommendedIndexActions
10
+ #
11
+ module RecommendedIndexActions
12
+ Create = "Create"
13
+ Drop = "Drop"
14
+ Rebuild = "Rebuild"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,25 @@
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 RecommendedIndexStates
10
+ #
11
+ module RecommendedIndexStates
12
+ Active = "Active"
13
+ Pending = "Pending"
14
+ Executing = "Executing"
15
+ Verifying = "Verifying"
16
+ PendingRevert = "Pending Revert"
17
+ Reverting = "Reverting"
18
+ Reverted = "Reverted"
19
+ Ignored = "Ignored"
20
+ Expired = "Expired"
21
+ Blocked = "Blocked"
22
+ Success = "Success"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,18 @@
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 RecommendedIndexTypes
10
+ #
11
+ module RecommendedIndexTypes
12
+ CLUSTERED = "CLUSTERED"
13
+ NONCLUSTERED = "NONCLUSTERED"
14
+ COLUMNSTORE = "COLUMNSTORE"
15
+ CLUSTEREDCOLUMNSTORE = "CLUSTERED COLUMNSTORE"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,149 @@
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 replication link.
10
+ #
11
+ class ReplicationLink < SqlSubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the Azure SQL server hosting the partner
16
+ # Azure SQL Database.
17
+ attr_accessor :partner_server
18
+
19
+ # @return [String] The name of the partner Azure SQL Database.
20
+ attr_accessor :partner_database
21
+
22
+ # @return [String] The Azure Region of the partner Azure SQL Database.
23
+ attr_accessor :partner_location
24
+
25
+ # @return [ReplicationRole] The role of the Azure SQL database in the
26
+ # replication link. Possible values include: 'Primary', 'Secondary',
27
+ # 'NonReadableSecondary', 'Source', 'Copy'
28
+ attr_accessor :role
29
+
30
+ # @return [ReplicationRole] The role of the partner Azure SQL Database in
31
+ # the replication link. Possible values include: 'Primary', 'Secondary',
32
+ # 'NonReadableSecondary', 'Source', 'Copy'
33
+ attr_accessor :partner_role
34
+
35
+ # @return [DateTime] The start time for the replication link (ISO8601
36
+ # format).
37
+ attr_accessor :start_time
38
+
39
+ # @return [Integer] The percentage of seeding complete for the
40
+ # replication link.
41
+ attr_accessor :percent_complete
42
+
43
+ # @return [ReplicationState] The replication state for the replication
44
+ # link. Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP',
45
+ # 'SUSPENDED'
46
+ attr_accessor :replication_state
47
+
48
+
49
+ #
50
+ # Mapper for ReplicationLink class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ required: false,
56
+ serialized_name: 'ReplicationLink',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'ReplicationLink',
60
+ model_properties: {
61
+ name: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ id: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'id',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ partner_server: {
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'properties.partnerServer',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ partner_database: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'properties.partnerDatabase',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ partner_location: {
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'properties.partnerLocation',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ role: {
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'properties.role',
105
+ type: {
106
+ name: 'Enum',
107
+ module: 'ReplicationRole'
108
+ }
109
+ },
110
+ partner_role: {
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'properties.partnerRole',
114
+ type: {
115
+ name: 'Enum',
116
+ module: 'ReplicationRole'
117
+ }
118
+ },
119
+ start_time: {
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'properties.startTime',
123
+ type: {
124
+ name: 'DateTime'
125
+ }
126
+ },
127
+ percent_complete: {
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'properties.percentComplete',
131
+ type: {
132
+ name: 'Number'
133
+ }
134
+ },
135
+ replication_state: {
136
+ required: false,
137
+ read_only: true,
138
+ serialized_name: 'properties.replicationState',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ end
147
+ end
148
+ end
149
+ end