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,80 @@
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 impact of an operation, both in absolute and relative terms.
10
+ #
11
+ class OperationImpact
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the impact dimension.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The unit in which estimated impact to dimension is
19
+ # measured.
20
+ attr_accessor :unit
21
+
22
+ # @return [Float] The absolute impact to dimension.
23
+ attr_accessor :change_value_absolute
24
+
25
+ # @return [Float] The relative impact to dimension (null if not
26
+ # applicable)
27
+ attr_accessor :change_value_relative
28
+
29
+
30
+ #
31
+ # Mapper for OperationImpact class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'OperationImpact',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'OperationImpact',
41
+ model_properties: {
42
+ name: {
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ unit: {
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'unit',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ change_value_absolute: {
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'changeValueAbsolute',
62
+ type: {
63
+ name: 'Double'
64
+ }
65
+ },
66
+ change_value_relative: {
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'changeValueRelative',
70
+ type: {
71
+ name: 'Double'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,68 @@
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 the properties of a recommended Azure SQL Database being
10
+ # upgraded.
11
+ #
12
+ class RecommendedDatabaseProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The name of the Azure SQL database being upgraded.
17
+ attr_accessor :name
18
+
19
+ # @return [TargetDatabaseEditions] The target edition for the Azure SQL
20
+ # database being upgraded. Possible values include: 'Basic', 'Standard',
21
+ # 'Premium', 'Free', 'Stretch', 'DataWarehouse'
22
+ attr_accessor :target_edition
23
+
24
+ # @return [String] The target Service Level Objective for the Azure SQL
25
+ # database being upgraded.
26
+ attr_accessor :target_service_level_objective
27
+
28
+
29
+ #
30
+ # Mapper for RecommendedDatabaseProperties class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'RecommendedDatabaseProperties',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'RecommendedDatabaseProperties',
40
+ model_properties: {
41
+ name: {
42
+ required: false,
43
+ serialized_name: 'Name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ target_edition: {
49
+ required: false,
50
+ serialized_name: 'TargetEdition',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ target_service_level_objective: {
56
+ required: false,
57
+ serialized_name: 'TargetServiceLevelObjective',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,216 @@
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 Recommended Elastic Pool.
10
+ #
11
+ class RecommendedElasticPool < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ElasticPoolEditions] The edition of the Azure SQL Recommended
16
+ # Elastic Pool. The ElasticPoolEditions enumeration contains all the
17
+ # valid editions. Possible values include: 'Basic', 'Standard', 'Premium'
18
+ attr_accessor :database_edition
19
+
20
+ # @return [Float] The DTU for the SQL Azure Recommended Elastic Pool.
21
+ attr_accessor :dtu
22
+
23
+ # @return [Float] The minimum DTU for the database.
24
+ attr_accessor :database_dtu_min
25
+
26
+ # @return [Float] The maximum DTU for the database.
27
+ attr_accessor :database_dtu_max
28
+
29
+ # @return [Float] Gets storage size in megabytes.
30
+ attr_accessor :storage_mb
31
+
32
+ # @return [DateTime] The observation period start (ISO8601 format).
33
+ attr_accessor :observation_period_start
34
+
35
+ # @return [DateTime] The observation period start (ISO8601 format).
36
+ attr_accessor :observation_period_end
37
+
38
+ # @return [Float] Gets maximum observed DTU.
39
+ attr_accessor :max_observed_dtu
40
+
41
+ # @return [Float] Gets maximum observed storage in megabytes.
42
+ attr_accessor :max_observed_storage_mb
43
+
44
+ # @return [Array<Database>] The list of Azure SQL Databases in this pool.
45
+ # Expanded property
46
+ attr_accessor :databases_property
47
+
48
+ # @return [Array<RecommendedElasticPoolMetric>] The list of Azure SQL
49
+ # Databases housed in the server. Expanded property
50
+ attr_accessor :metrics
51
+
52
+
53
+ #
54
+ # Mapper for RecommendedElasticPool class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'RecommendedElasticPool',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'RecommendedElasticPool',
64
+ model_properties: {
65
+ name: {
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'name',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ id: {
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'id',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ type: {
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'type',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ location: {
90
+ required: true,
91
+ serialized_name: 'location',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ tags: {
97
+ required: false,
98
+ serialized_name: 'tags',
99
+ type: {
100
+ name: 'Dictionary',
101
+ value: {
102
+ required: false,
103
+ serialized_name: 'StringElementType',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ }
108
+ }
109
+ },
110
+ database_edition: {
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'properties.databaseEdition',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ dtu: {
119
+ required: false,
120
+ serialized_name: 'properties.dtu',
121
+ type: {
122
+ name: 'Double'
123
+ }
124
+ },
125
+ database_dtu_min: {
126
+ required: false,
127
+ serialized_name: 'properties.databaseDtuMin',
128
+ type: {
129
+ name: 'Double'
130
+ }
131
+ },
132
+ database_dtu_max: {
133
+ required: false,
134
+ serialized_name: 'properties.databaseDtuMax',
135
+ type: {
136
+ name: 'Double'
137
+ }
138
+ },
139
+ storage_mb: {
140
+ required: false,
141
+ serialized_name: 'properties.storageMB',
142
+ type: {
143
+ name: 'Double'
144
+ }
145
+ },
146
+ observation_period_start: {
147
+ required: false,
148
+ read_only: true,
149
+ serialized_name: 'properties.observationPeriodStart',
150
+ type: {
151
+ name: 'DateTime'
152
+ }
153
+ },
154
+ observation_period_end: {
155
+ required: false,
156
+ read_only: true,
157
+ serialized_name: 'properties.observationPeriodEnd',
158
+ type: {
159
+ name: 'DateTime'
160
+ }
161
+ },
162
+ max_observed_dtu: {
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'properties.maxObservedDtu',
166
+ type: {
167
+ name: 'Double'
168
+ }
169
+ },
170
+ max_observed_storage_mb: {
171
+ required: false,
172
+ read_only: true,
173
+ serialized_name: 'properties.maxObservedStorageMB',
174
+ type: {
175
+ name: 'Double'
176
+ }
177
+ },
178
+ databases_property: {
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'properties.databases',
182
+ type: {
183
+ name: 'Sequence',
184
+ element: {
185
+ required: false,
186
+ serialized_name: 'DatabaseElementType',
187
+ type: {
188
+ name: 'Composite',
189
+ class_name: 'Database'
190
+ }
191
+ }
192
+ }
193
+ },
194
+ metrics: {
195
+ required: false,
196
+ read_only: true,
197
+ serialized_name: 'properties.metrics',
198
+ type: {
199
+ name: 'Sequence',
200
+ element: {
201
+ required: false,
202
+ serialized_name: 'RecommendedElasticPoolMetricElementType',
203
+ type: {
204
+ name: 'Composite',
205
+ class_name: 'RecommendedElasticPoolMetric'
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ end
214
+ end
215
+ end
216
+ end
@@ -0,0 +1,54 @@
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 the response to a List Azure SQL Recommended Elastic Pool
10
+ # metrics request.
11
+ #
12
+ class RecommendedElasticPoolListMetricsResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<RecommendedElasticPoolMetric>] The list of Azure SQL
17
+ # Recommended Elastic Pools metrics.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for RecommendedElasticPoolListMetricsResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'RecommendedElasticPoolListMetricsResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'RecommendedElasticPoolListMetricsResult',
32
+ model_properties: {
33
+ value: {
34
+ required: true,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'RecommendedElasticPoolMetricElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'RecommendedElasticPoolMetric'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,54 @@
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 the response to a List Azure SQL Recommended Elastic Pool
10
+ # request.
11
+ #
12
+ class RecommendedElasticPoolListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<RecommendedElasticPool>] The list of Azure SQL
17
+ # Recommended Elastic Pools hosted in the server.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for RecommendedElasticPoolListResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'RecommendedElasticPoolListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'RecommendedElasticPoolListResult',
32
+ model_properties: {
33
+ value: {
34
+ required: true,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'RecommendedElasticPoolElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'RecommendedElasticPool'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end