azure_mgmt_sql 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2014-04-01/generated/azure_mgmt_sql.rb +77 -63
  3. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +118 -16
  4. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +114 -16
  5. data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +6 -5
  6. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +12 -12
  7. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +12 -12
  8. data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  9. data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +12 -12
  10. data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +18 -17
  11. data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +12 -12
  12. data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +6 -5
  13. data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +649 -643
  14. data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +830 -0
  15. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +6 -5
  16. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +6 -5
  17. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +216 -213
  18. data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +130 -0
  19. data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +24 -22
  20. data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +18 -17
  21. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb +56 -0
  22. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb +56 -0
  23. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +43 -10
  24. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb +1 -0
  25. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_update.rb +43 -10
  26. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb +164 -0
  27. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_auto_failover.rb +16 -0
  28. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb +16 -0
  29. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb +57 -0
  30. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb +17 -0
  31. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_status.rb +18 -0
  32. data/lib/2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb +13 -0
  33. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +13 -0
  34. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +13 -0
  35. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb +13 -0
  36. data/lib/2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb +54 -0
  37. data/lib/2014-04-01/generated/azure_mgmt_sql/models/import_request.rb +12 -4
  38. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text.rb +72 -0
  39. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb +55 -0
  40. data/lib/2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb +52 -2
  41. data/lib/2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb +10 -3
  42. data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +6 -5
  43. data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +6 -5
  44. data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +6 -5
  45. data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +134 -0
  46. data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +18 -15
  47. data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +12 -10
  48. data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +38 -33
  49. data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +12 -10
  50. data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +6 -5
  51. data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +32 -30
  52. data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +28 -26
  53. data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +12 -12
  54. data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +18 -17
  55. data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +6 -5
  56. data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +134 -133
  57. data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +12 -10
  58. data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +12 -10
  59. data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +32 -17
  60. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +6 -5
  61. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +6 -5
  62. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +12 -12
  63. data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +22 -19
  64. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  65. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +12 -12
  66. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +18 -17
  67. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +31 -29
  68. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +71 -67
  69. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage.rb +110 -0
  70. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb +100 -0
  71. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +15 -13
  72. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +18 -17
  73. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +41 -38
  74. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +66 -62
  75. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +8 -1
  76. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +324 -0
  77. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +62 -56
  78. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +118 -107
  79. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +76 -71
  80. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +41 -38
  81. data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +30 -1
  82. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +21 -18
  83. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_restore_points.rb +527 -0
  84. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +1599 -0
  85. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/arm_sku.rb +92 -0
  86. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
  87. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
  88. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_mode.rb +17 -0
  89. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_options.rb +90 -0
  90. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_reason.rb +17 -0
  91. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
  92. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_database_restore_point_definition.rb +47 -0
  93. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +23 -0
  94. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +393 -0
  95. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
  96. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point.rb +124 -0
  97. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point_list_result.rb +100 -0
  98. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +348 -0
  99. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_database_definition.rb +145 -0
  100. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_operation_result.rb +170 -0
  101. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
  102. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_type.rb +16 -0
  103. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
  104. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_automatic_tuning.rb +110 -0
  105. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias.rb +74 -0
  106. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_acquisition.rb +47 -0
  107. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_list_result.rb +100 -0
  108. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/status.rb +32 -0
  109. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
  110. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +238 -0
  111. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +805 -0
  112. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +21 -1
  113. data/lib/profiles/latest/modules/sql_profile_module.rb +912 -749
  114. data/lib/profiles/latest/sql_latest_profile_client.rb +28 -9
  115. data/lib/profiles/latest/sql_module_definition.rb +0 -1
  116. data/lib/version.rb +1 -1
  117. metadata +49 -3
@@ -0,0 +1,145 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Contains the information necessary to perform import/export operation.
10
+ #
11
+ class ImportExportDatabaseDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the import database.
16
+ attr_accessor :database_name
17
+
18
+ # @return [String] Edition of the import database.
19
+ attr_accessor :edition
20
+
21
+ # @return [String] Service level objective name of the import database.
22
+ attr_accessor :service_objective_name
23
+
24
+ # @return [String] Max size in bytes for the import database.
25
+ attr_accessor :max_size_bytes
26
+
27
+ # @return [String] Storage key type.
28
+ attr_accessor :storage_key_type
29
+
30
+ # @return [String] Storage key.
31
+ attr_accessor :storage_key
32
+
33
+ # @return [String] Storage Uri.
34
+ attr_accessor :storage_uri
35
+
36
+ # @return [String] Administrator login name.
37
+ attr_accessor :administrator_login
38
+
39
+ # @return [String] Administrator login password.
40
+ attr_accessor :administrator_login_password
41
+
42
+ # @return [String] Authentication type.
43
+ attr_accessor :authentication_type
44
+
45
+
46
+ #
47
+ # Mapper for ImportExportDatabaseDefinition class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'ImportExportDatabaseDefinition',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'ImportExportDatabaseDefinition',
58
+ model_properties: {
59
+ database_name: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'databaseName',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ edition: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'edition',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ service_objective_name: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'serviceObjectiveName',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ max_size_bytes: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'maxSizeBytes',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ storage_key_type: {
92
+ client_side_validation: true,
93
+ required: true,
94
+ serialized_name: 'storageKeyType',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ storage_key: {
100
+ client_side_validation: true,
101
+ required: true,
102
+ serialized_name: 'storageKey',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ },
107
+ storage_uri: {
108
+ client_side_validation: true,
109
+ required: true,
110
+ serialized_name: 'storageUri',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ administrator_login: {
116
+ client_side_validation: true,
117
+ required: true,
118
+ serialized_name: 'administratorLogin',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ administrator_login_password: {
124
+ client_side_validation: true,
125
+ required: true,
126
+ serialized_name: 'administratorLoginPassword',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ authentication_type: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'authenticationType',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,170 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # An ImportExport operation result resource.
10
+ #
11
+ class ImportExportOperationResult < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Request Id.
16
+ attr_accessor :request_id
17
+
18
+ # @return [String] Request type.
19
+ attr_accessor :request_type
20
+
21
+ # @return [String] Queued time.
22
+ attr_accessor :queued_time
23
+
24
+ # @return [String] Last modified time.
25
+ attr_accessor :last_modified_time
26
+
27
+ # @return [String] Blob Uri.
28
+ attr_accessor :blob_uri
29
+
30
+ # @return [String] Server name.
31
+ attr_accessor :server_name
32
+
33
+ # @return [String] Database name.
34
+ attr_accessor :database_name
35
+
36
+ # @return [String] Operation status.
37
+ attr_accessor :status
38
+
39
+ # @return [String] Error message.
40
+ attr_accessor :error_message
41
+
42
+
43
+ #
44
+ # Mapper for ImportExportOperationResult class as Ruby Hash.
45
+ # This will be used for serialization/deserialization.
46
+ #
47
+ def self.mapper()
48
+ {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'ImportExportOperationResult',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'ImportExportOperationResult',
55
+ model_properties: {
56
+ id: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'id',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ name: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'name',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ type: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'type',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ request_id: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'properties.requestId',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ request_type: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'properties.requestType',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ queued_time: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'properties.queuedTime',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ last_modified_time: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ read_only: true,
114
+ serialized_name: 'properties.lastModifiedTime',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ blob_uri: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ read_only: true,
123
+ serialized_name: 'properties.blobUri',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ },
128
+ server_name: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ read_only: true,
132
+ serialized_name: 'properties.serverName',
133
+ type: {
134
+ name: 'String'
135
+ }
136
+ },
137
+ database_name: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ read_only: true,
141
+ serialized_name: 'properties.databaseName',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ status: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ read_only: true,
150
+ serialized_name: 'properties.status',
151
+ type: {
152
+ name: 'String'
153
+ }
154
+ },
155
+ error_message: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ read_only: true,
159
+ serialized_name: 'properties.errorMessage',
160
+ type: {
161
+ name: 'String'
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ end
168
+ end
169
+ end
170
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Contains the information necessary to perform a resource move (rename).
10
+ #
11
+ class ResourceMoveDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The target ID for the resource
16
+ attr_accessor :id
17
+
18
+
19
+ #
20
+ # Mapper for ResourceMoveDefinition class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ResourceMoveDefinition',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ResourceMoveDefinition',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: true,
35
+ serialized_name: 'id',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for RestorePointType
10
+ #
11
+ module RestorePointType
12
+ CONTINUOUS = "CONTINUOUS"
13
+ DISCRETE = "DISCRETE"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for SampleName
10
+ #
11
+ module SampleName
12
+ AdventureWorksLT = "AdventureWorksLT"
13
+ WideWorldImportersStd = "WideWorldImportersStd"
14
+ WideWorldImportersFull = "WideWorldImportersFull"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,110 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Server-level Automatic Tuning.
10
+ #
11
+ class ServerAutomaticTuning < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [AutomaticTuningServerMode] Automatic tuning desired state.
16
+ # Possible values include: 'Custom', 'Auto', 'Unspecified'
17
+ attr_accessor :desired_state
18
+
19
+ # @return [AutomaticTuningServerMode] Automatic tuning actual state.
20
+ # Possible values include: 'Custom', 'Auto', 'Unspecified'
21
+ attr_accessor :actual_state
22
+
23
+ # @return [Hash{String => AutomaticTuningServerOptions}] Automatic tuning
24
+ # options definition.
25
+ attr_accessor :options
26
+
27
+
28
+ #
29
+ # Mapper for ServerAutomaticTuning class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'ServerAutomaticTuning',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ServerAutomaticTuning',
40
+ model_properties: {
41
+ id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'id',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ name: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'name',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ type: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'type',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ desired_state: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'properties.desiredState',
72
+ type: {
73
+ name: 'Enum',
74
+ module: 'AutomaticTuningServerMode'
75
+ }
76
+ },
77
+ actual_state: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'properties.actualState',
82
+ type: {
83
+ name: 'Enum',
84
+ module: 'AutomaticTuningServerMode'
85
+ }
86
+ },
87
+ options: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'properties.options',
91
+ type: {
92
+ name: 'Dictionary',
93
+ value: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'AutomaticTuningServerOptionsElementType',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'AutomaticTuningServerOptions'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ end
108
+ end
109
+ end
110
+ end