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,95 @@
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 server firewall rule.
10
+ #
11
+ class ServerFirewallRule < SqlSubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Kind of server that contains this firewall rule.
16
+ attr_accessor :kind
17
+
18
+ # @return [String] Location of the server that contains this firewall
19
+ # rule.
20
+ attr_accessor :location
21
+
22
+ # @return [String] The start IP address of the Azure SQL server firewall
23
+ # rule. Must be IPv4 format.
24
+ attr_accessor :start_ip_address
25
+
26
+ # @return [String] The end IP address of the Azure SQL server firewall
27
+ # rule. Must be IPv4 format.
28
+ attr_accessor :end_ip_address
29
+
30
+
31
+ #
32
+ # Mapper for ServerFirewallRule class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'ServerFirewallRule',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'ServerFirewallRule',
42
+ model_properties: {
43
+ name: {
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ id: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ kind: {
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'kind',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ location: {
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'location',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ start_ip_address: {
76
+ required: false,
77
+ serialized_name: 'properties.startIpAddress',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ end_ip_address: {
83
+ required: false,
84
+ serialized_name: 'properties.endIpAddress',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,53 @@
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 Firewall Rules request.
10
+ #
11
+ class ServerFirewallRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ServerFirewallRule>] The list of Azure SQL server
16
+ # firewall rules for the server.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for ServerFirewallRuleListResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'ServerFirewallRuleListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ServerFirewallRuleListResult',
31
+ model_properties: {
32
+ value: {
33
+ required: false,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'ServerFirewallRuleElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ServerFirewallRule'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,52 @@
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 Get Azure SQL server request.
10
+ #
11
+ class ServerListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Server>] The list of Azure SQL servers.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for ServerListResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'ServerListResult',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'ServerListResult',
30
+ model_properties: {
31
+ value: {
32
+ required: true,
33
+ serialized_name: 'value',
34
+ type: {
35
+ name: 'Sequence',
36
+ element: {
37
+ required: false,
38
+ serialized_name: 'ServerElementType',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'Server'
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,100 @@
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 server metrics.
10
+ #
11
+ class ServerMetric
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name of the resource.
16
+ attr_accessor :resource_name
17
+
18
+ # @return [String] The metric display name.
19
+ attr_accessor :display_name
20
+
21
+ # @return [Float] The current value of the metric.
22
+ attr_accessor :current_value
23
+
24
+ # @return [Float] The current limit of the metric.
25
+ attr_accessor :limit
26
+
27
+ # @return [String] The units of the metric.
28
+ attr_accessor :unit
29
+
30
+ # @return [DateTime] The next reset time for the metric (ISO8601 format).
31
+ attr_accessor :next_reset_time
32
+
33
+
34
+ #
35
+ # Mapper for ServerMetric class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'ServerMetric',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ServerMetric',
45
+ model_properties: {
46
+ resource_name: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'resourceName',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ display_name: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'displayName',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ current_value: {
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'currentValue',
66
+ type: {
67
+ name: 'Double'
68
+ }
69
+ },
70
+ limit: {
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'limit',
74
+ type: {
75
+ name: 'Double'
76
+ }
77
+ },
78
+ unit: {
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'unit',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ next_reset_time: {
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextResetTime',
90
+ type: {
91
+ name: 'DateTime'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,53 @@
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 server metrics request.
10
+ #
11
+ class ServerMetricListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ServerMetric>] The list of Azure SQL server metrics for
16
+ # the server.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for ServerMetricListResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'ServerMetricListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ServerMetricListResult',
31
+ model_properties: {
32
+ value: {
33
+ required: true,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'ServerMetricElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ServerMetric'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,16 @@
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 ServerVersion
10
+ #
11
+ module ServerVersion
12
+ TwoFullStopZero = "2.0"
13
+ OneTwoFullStopZero = "12.0"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,107 @@
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 Service Objective.
10
+ #
11
+ class ServiceObjective < SqlSubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name for the service objective.
16
+ attr_accessor :service_objective_name
17
+
18
+ # @return [Boolean] Gets whether the service level objective is the
19
+ # default service objective.
20
+ attr_accessor :is_default
21
+
22
+ # @return [Boolean] Gets whether the service level objective is a system
23
+ # service objective.
24
+ attr_accessor :is_system
25
+
26
+ # @return [String] The description for the service level objective.
27
+ attr_accessor :description
28
+
29
+ # @return [Boolean] Gets whether the service level objective is enabled.
30
+ attr_accessor :enabled
31
+
32
+
33
+ #
34
+ # Mapper for ServiceObjective class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ required: false,
40
+ serialized_name: 'ServiceObjective',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'ServiceObjective',
44
+ model_properties: {
45
+ name: {
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'name',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ id: {
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ service_objective_name: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'properties.serviceObjectiveName',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ is_default: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'properties.isDefault',
73
+ type: {
74
+ name: 'Boolean'
75
+ }
76
+ },
77
+ is_system: {
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'properties.isSystem',
81
+ type: {
82
+ name: 'Boolean'
83
+ }
84
+ },
85
+ description: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'properties.description',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ enabled: {
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'properties.enabled',
97
+ type: {
98
+ name: 'Boolean'
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ end
105
+ end
106
+ end
107
+ end