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,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 database replication link
10
+ # request.
11
+ #
12
+ class ReplicationLinkListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<ReplicationLink>] The list of Azure SQL database
17
+ # replication links housed in the database.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for ReplicationLinkListResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'ReplicationLinkListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'ReplicationLinkListResult',
32
+ model_properties: {
33
+ value: {
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'ReplicationLinkElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'ReplicationLink'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,19 @@
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 ReplicationRole
10
+ #
11
+ module ReplicationRole
12
+ Primary = "Primary"
13
+ Secondary = "Secondary"
14
+ NonReadableSecondary = "NonReadableSecondary"
15
+ Source = "Source"
16
+ Copy = "Copy"
17
+ end
18
+ end
19
+ 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 ReplicationState
10
+ #
11
+ module ReplicationState
12
+ PENDING = "PENDING"
13
+ SEEDING = "SEEDING"
14
+ CATCHUP = "CATCH_UP"
15
+ SUSPENDED = "SUSPENDED"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,117 @@
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 restore point.
10
+ #
11
+ class RestorePoint < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [RestorePointTypes] The restore point type of the Azure SQL
16
+ # database restore point. Possible values include: 'DISCRETE',
17
+ # 'CONTINUOUS'
18
+ attr_accessor :restore_point_type
19
+
20
+ # @return [DateTime] Restore point creation time (ISO8601 format).
21
+ # Populated when restorePointType = CONTINUOUS. Null otherwise.
22
+ attr_accessor :restore_point_creation_date
23
+
24
+ # @return [DateTime] Earliest restore time (ISO8601 format). Populated
25
+ # when restorePointType = DISCRETE. Null otherwise.
26
+ attr_accessor :earliest_restore_date
27
+
28
+
29
+ #
30
+ # Mapper for RestorePoint class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'RestorePoint',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'RestorePoint',
40
+ model_properties: {
41
+ name: {
42
+ required: false,
43
+ read_only: true,
44
+ serialized_name: 'name',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ id: {
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ location: {
66
+ required: true,
67
+ serialized_name: 'location',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ tags: {
73
+ required: false,
74
+ serialized_name: 'tags',
75
+ type: {
76
+ name: 'Dictionary',
77
+ value: {
78
+ required: false,
79
+ serialized_name: 'StringElementType',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ restore_point_type: {
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'properties.restorePointType',
90
+ type: {
91
+ name: 'Enum',
92
+ module: 'RestorePointTypes'
93
+ }
94
+ },
95
+ restore_point_creation_date: {
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'properties.restorePointCreationDate',
99
+ type: {
100
+ name: 'DateTime'
101
+ }
102
+ },
103
+ earliest_restore_date: {
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'properties.earliestRestoreDate',
107
+ type: {
108
+ name: 'DateTime'
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ end
115
+ end
116
+ end
117
+ 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 Database restore points
10
+ # request.
11
+ #
12
+ class RestorePointListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<RestorePoint>] The list of a given Azure SQL Database
17
+ # restore points.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for RestorePointListResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'RestorePointListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'RestorePointListResult',
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: 'RestorePointElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'RestorePoint'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ 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 RestorePointTypes
10
+ #
11
+ module RestorePointTypes
12
+ DISCRETE = "DISCRETE"
13
+ CONTINUOUS = "CONTINUOUS"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,98 @@
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 schema.
10
+ #
11
+ class Schema < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Table>] The tables from this database.
16
+ attr_accessor :tables
17
+
18
+
19
+ #
20
+ # Mapper for Schema class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'Schema',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'Schema',
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
+ tables: {
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'properties.tables',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ required: false,
84
+ serialized_name: 'TableElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'Table'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -1,58 +1,58 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::SQL
7
7
  module Models
8
8
  #
9
- # Represents an Azure SQL Server Security Alert Policy.
9
+ # Represents an Azure SQL server.
10
10
  #
11
- class ServerSecurityAlertPolicy < MsRestAzure::Resource
11
+ class Server < MsRestAzure::Resource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [State] The state of the Azure SQL Security alert policy (New,
16
- # Enabled or Disabled). Possible values include: 'Enabled', 'Disabled',
17
- # 'New'
18
- attr_accessor :state
15
+ # @return [String] The fully qualified domain name of the server.
16
+ attr_accessor :fully_qualified_domain_name
19
17
 
20
- # @return [String] The disable alerts of the Azure SQL Security alert
21
- # policy.
22
- attr_accessor :disabled_alerts
18
+ # @return [ServerVersion] The version of the server. Possible values
19
+ # include: '2.0', '12.0'
20
+ attr_accessor :version
23
21
 
24
- # @return [String] The list of email addresses to send the alert.
25
- attr_accessor :email_addresses
22
+ # @return [String] Administrator username for the server. Can only be
23
+ # specified when the server is being created (and is required for
24
+ # creation).
25
+ attr_accessor :administrator_login
26
26
 
27
- # @return [EmailAccountAdmins] Value that indicated whether to email the
28
- # azure account admins. Possible values include: 'Enabled', 'Disabled'
29
- attr_accessor :email_account_admins
27
+ # @return [String] The administrator login password (required for server
28
+ # creation).
29
+ attr_accessor :administrator_login_password
30
30
 
31
31
 
32
32
  #
33
- # Mapper for ServerSecurityAlertPolicy class as Ruby Hash.
33
+ # Mapper for Server class as Ruby Hash.
34
34
  # This will be used for serialization/deserialization.
35
35
  #
36
36
  def self.mapper()
37
37
  {
38
38
  required: false,
39
- serialized_name: 'ServerSecurityAlertPolicy',
39
+ serialized_name: 'Server',
40
40
  type: {
41
41
  name: 'Composite',
42
- class_name: 'ServerSecurityAlertPolicy',
42
+ class_name: 'Server',
43
43
  model_properties: {
44
- id: {
44
+ name: {
45
45
  required: false,
46
46
  read_only: true,
47
- serialized_name: 'id',
47
+ serialized_name: 'name',
48
48
  type: {
49
49
  name: 'String'
50
50
  }
51
51
  },
52
- name: {
52
+ id: {
53
53
  required: false,
54
54
  read_only: true,
55
- serialized_name: 'name',
55
+ serialized_name: 'id',
56
56
  type: {
57
57
  name: 'String'
58
58
  }
@@ -86,38 +86,33 @@ module Azure::ARM::SQL
86
86
  }
87
87
  }
88
88
  },
89
- state: {
89
+ fully_qualified_domain_name: {
90
90
  required: false,
91
91
  read_only: true,
92
- serialized_name: 'properties.state',
92
+ serialized_name: 'properties.fullyQualifiedDomainName',
93
93
  type: {
94
- name: 'Enum',
95
- module: 'State'
94
+ name: 'String'
96
95
  }
97
96
  },
98
- disabled_alerts: {
97
+ version: {
99
98
  required: false,
100
- read_only: true,
101
- serialized_name: 'properties.disabledAlerts',
99
+ serialized_name: 'properties.version',
102
100
  type: {
103
101
  name: 'String'
104
102
  }
105
103
  },
106
- email_addresses: {
104
+ administrator_login: {
107
105
  required: false,
108
- read_only: true,
109
- serialized_name: 'properties.emailAddresses',
106
+ serialized_name: 'properties.administratorLogin',
110
107
  type: {
111
108
  name: 'String'
112
109
  }
113
110
  },
114
- email_account_admins: {
111
+ administrator_login_password: {
115
112
  required: false,
116
- read_only: true,
117
- serialized_name: 'properties.emailAccountAdmins',
113
+ serialized_name: 'properties.administratorLoginPassword',
118
114
  type: {
119
- name: 'Enum',
120
- module: 'EmailAccountAdmins'
115
+ name: 'String'
121
116
  }
122
117
  }
123
118
  }