azure_mgmt_sql 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_sql.rb +95 -46
  3. data/lib/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +310 -0
  4. data/lib/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +300 -0
  5. data/lib/generated/azure_mgmt_sql/data_masking_policies.rb +248 -0
  6. data/lib/generated/azure_mgmt_sql/data_masking_rules.rb +262 -0
  7. data/lib/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +264 -0
  8. data/lib/generated/azure_mgmt_sql/database_threat_detection_policies.rb +264 -0
  9. data/lib/generated/azure_mgmt_sql/database_usages.rb +129 -0
  10. data/lib/generated/azure_mgmt_sql/databases.rb +357 -2825
  11. data/lib/generated/azure_mgmt_sql/elastic_pool_activities.rb +132 -0
  12. data/lib/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +129 -0
  13. data/lib/generated/azure_mgmt_sql/elastic_pools.rb +0 -417
  14. data/lib/generated/azure_mgmt_sql/encryption_protectors.rb +498 -0
  15. data/lib/generated/azure_mgmt_sql/failover_groups.rb +6 -6
  16. data/lib/generated/azure_mgmt_sql/geo_backup_policies.rb +359 -0
  17. data/lib/generated/azure_mgmt_sql/models/database_usage.rb +4 -9
  18. data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +3 -4
  19. data/lib/generated/azure_mgmt_sql/models/failover_group.rb +2 -2
  20. data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +6 -4
  21. data/lib/generated/azure_mgmt_sql/models/failover_group_update.rb +93 -0
  22. data/lib/generated/azure_mgmt_sql/models/firewall_rule.rb +11 -14
  23. data/lib/generated/azure_mgmt_sql/models/metric_value.rb +1 -17
  24. data/lib/generated/azure_mgmt_sql/models/operation.rb +36 -3
  25. data/lib/generated/azure_mgmt_sql/models/operation_display.rb +20 -5
  26. data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +36 -6
  27. data/lib/generated/azure_mgmt_sql/models/operation_origin.rb +16 -0
  28. data/lib/generated/azure_mgmt_sql/models/partner_info.rb +1 -1
  29. data/lib/generated/azure_mgmt_sql/models/replication_link.rb +9 -12
  30. data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +11 -3
  31. data/lib/generated/azure_mgmt_sql/models/server_key.rb +3 -4
  32. data/lib/generated/azure_mgmt_sql/models/service_objective.rb +11 -3
  33. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +11 -3
  34. data/lib/generated/azure_mgmt_sql/models/sync_agent.rb +137 -0
  35. data/lib/generated/azure_mgmt_sql/models/{sql_sub_resource.rb → sync_agent_key_properties.rb} +9 -20
  36. data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb +126 -0
  37. data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb +96 -0
  38. data/lib/generated/azure_mgmt_sql/models/sync_agent_list_result.rb +96 -0
  39. data/lib/generated/azure_mgmt_sql/models/sync_agent_state.rb +17 -0
  40. data/lib/generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb +16 -0
  41. data/lib/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb +96 -0
  42. data/lib/generated/azure_mgmt_sql/models/{sub_resource.rb → sync_database_id_properties.rb} +7 -15
  43. data/lib/generated/azure_mgmt_sql/models/sync_direction.rb +17 -0
  44. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb +66 -0
  45. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb +96 -0
  46. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table.rb +99 -0
  47. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb +112 -0
  48. data/lib/generated/azure_mgmt_sql/models/sync_group.rb +145 -0
  49. data/lib/generated/azure_mgmt_sql/models/sync_group_list_result.rb +96 -0
  50. data/lib/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb +96 -0
  51. data/lib/generated/azure_mgmt_sql/models/sync_group_log_properties.rb +102 -0
  52. data/lib/generated/azure_mgmt_sql/models/sync_group_log_type.rb +18 -0
  53. data/lib/generated/azure_mgmt_sql/models/sync_group_schema.rb +64 -0
  54. data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table.rb +64 -0
  55. data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb +65 -0
  56. data/lib/generated/azure_mgmt_sql/models/sync_group_state.rb +19 -0
  57. data/lib/generated/azure_mgmt_sql/models/sync_member.rb +160 -0
  58. data/lib/generated/azure_mgmt_sql/models/sync_member_db_type.rb +16 -0
  59. data/lib/generated/azure_mgmt_sql/models/sync_member_list_result.rb +96 -0
  60. data/lib/generated/azure_mgmt_sql/models/sync_member_state.rb +32 -0
  61. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +22 -3
  62. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +22 -3
  63. data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +2 -2
  64. data/lib/generated/azure_mgmt_sql/operations.rb +111 -4
  65. data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +3 -215
  66. data/lib/generated/azure_mgmt_sql/replication_links.rb +629 -0
  67. data/lib/generated/azure_mgmt_sql/restore_points.rb +132 -0
  68. data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +5 -5
  69. data/lib/generated/azure_mgmt_sql/server_connection_policies.rb +250 -0
  70. data/lib/generated/azure_mgmt_sql/server_keys.rb +10 -10
  71. data/lib/generated/azure_mgmt_sql/server_usages.rb +125 -0
  72. data/lib/generated/azure_mgmt_sql/servers.rb +161 -1423
  73. data/lib/generated/azure_mgmt_sql/service_objectives.rb +229 -0
  74. data/lib/generated/azure_mgmt_sql/service_tier_advisors.rb +234 -0
  75. data/lib/generated/azure_mgmt_sql/sql_management_client.rb +100 -9
  76. data/lib/generated/azure_mgmt_sql/sync_agents.rb +983 -0
  77. data/lib/generated/azure_mgmt_sql/sync_groups.rb +1863 -0
  78. data/lib/generated/azure_mgmt_sql/sync_members.rb +1290 -0
  79. data/lib/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +133 -0
  80. data/lib/generated/azure_mgmt_sql/transparent_data_encryptions.rb +264 -0
  81. data/lib/generated/azure_mgmt_sql/version.rb +1 -1
  82. metadata +55 -6
@@ -0,0 +1,133 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ #
8
+ # The Azure SQL Database management API provides a RESTful set of web
9
+ # services that interact with Azure SQL Database services to manage your
10
+ # databases. The API enables you to create, retrieve, update, and delete
11
+ # databases.
12
+ #
13
+ class TransparentDataEncryptionActivities
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the TransparentDataEncryptionActivities class.
18
+ # @param client service class for accessing basic functionality.
19
+ #
20
+ def initialize(client)
21
+ @client = client
22
+ end
23
+
24
+ # @return [SqlManagementClient] reference to the SqlManagementClient
25
+ attr_reader :client
26
+
27
+ #
28
+ # Returns a database's transparent data encryption operation result.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group that
31
+ # contains the resource. You can obtain this value from the Azure Resource
32
+ # Manager API or the portal.
33
+ # @param server_name [String] The name of the server.
34
+ # @param database_name [String] The name of the database for which the
35
+ # transparent data encryption applies.
36
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
+ # will be added to the HTTP request.
38
+ #
39
+ # @return [TransparentDataEncryptionActivityListResult] operation results.
40
+ #
41
+ def list_by_configuration(resource_group_name, server_name, database_name, custom_headers = nil)
42
+ response = list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers).value!
43
+ response.body unless response.nil?
44
+ end
45
+
46
+ #
47
+ # Returns a database's transparent data encryption operation result.
48
+ #
49
+ # @param resource_group_name [String] The name of the resource group that
50
+ # contains the resource. You can obtain this value from the Azure Resource
51
+ # Manager API or the portal.
52
+ # @param server_name [String] The name of the server.
53
+ # @param database_name [String] The name of the database for which the
54
+ # transparent data encryption applies.
55
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
56
+ # will be added to the HTTP request.
57
+ #
58
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
+ #
60
+ def list_by_configuration_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
61
+ list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers).value!
62
+ end
63
+
64
+ #
65
+ # Returns a database's transparent data encryption operation result.
66
+ #
67
+ # @param resource_group_name [String] The name of the resource group that
68
+ # contains the resource. You can obtain this value from the Azure Resource
69
+ # Manager API or the portal.
70
+ # @param server_name [String] The name of the server.
71
+ # @param database_name [String] The name of the database for which the
72
+ # transparent data encryption applies.
73
+ # @param [Hash{String => String}] A hash of custom headers that will be added
74
+ # to the HTTP request.
75
+ #
76
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
+ #
78
+ def list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers = nil)
79
+ api_version = '2014-04-01'
80
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
82
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
83
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
84
+ transparent_data_encryption_name = 'current'
85
+
86
+
87
+ request_headers = {}
88
+
89
+ # Set Headers
90
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
91
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
92
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults'
93
+
94
+ request_url = @base_url || @client.base_url
95
+
96
+ options = {
97
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
98
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'transparentDataEncryptionName' => transparent_data_encryption_name},
99
+ query_params: {'api-version' => api_version},
100
+ headers: request_headers.merge(custom_headers || {}),
101
+ base_url: request_url
102
+ }
103
+ promise = @client.make_request_async(:get, path_template, options)
104
+
105
+ promise = promise.then do |result|
106
+ http_response = result.response
107
+ status_code = http_response.status
108
+ response_content = http_response.body
109
+ unless status_code == 200
110
+ error_model = JSON.load(response_content)
111
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
112
+ end
113
+
114
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
115
+ # Deserialize Response
116
+ if status_code == 200
117
+ begin
118
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
119
+ result_mapper = Azure::ARM::SQL::Models::TransparentDataEncryptionActivityListResult.mapper()
120
+ result.body = @client.deserialize(result_mapper, parsed_response)
121
+ rescue Exception => e
122
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
123
+ end
124
+ end
125
+
126
+ result
127
+ end
128
+
129
+ promise.execute
130
+ end
131
+
132
+ end
133
+ end
@@ -0,0 +1,264 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ #
8
+ # The Azure SQL Database management API provides a RESTful set of web
9
+ # services that interact with Azure SQL Database services to manage your
10
+ # databases. The API enables you to create, retrieve, update, and delete
11
+ # databases.
12
+ #
13
+ class TransparentDataEncryptions
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the TransparentDataEncryptions class.
18
+ # @param client service class for accessing basic functionality.
19
+ #
20
+ def initialize(client)
21
+ @client = client
22
+ end
23
+
24
+ # @return [SqlManagementClient] reference to the SqlManagementClient
25
+ attr_reader :client
26
+
27
+ #
28
+ # Creates or updates a database's transparent data encryption configuration.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group that
31
+ # contains the resource. You can obtain this value from the Azure Resource
32
+ # Manager API or the portal.
33
+ # @param server_name [String] The name of the server.
34
+ # @param database_name [String] The name of the database for which setting the
35
+ # transparent data encryption applies.
36
+ # @param parameters [TransparentDataEncryption] The required parameters for
37
+ # creating or updating transparent data encryption.
38
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
+ # will be added to the HTTP request.
40
+ #
41
+ # @return [TransparentDataEncryption] operation results.
42
+ #
43
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
44
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
45
+ response.body unless response.nil?
46
+ end
47
+
48
+ #
49
+ # Creates or updates a database's transparent data encryption configuration.
50
+ #
51
+ # @param resource_group_name [String] The name of the resource group that
52
+ # contains the resource. You can obtain this value from the Azure Resource
53
+ # Manager API or the portal.
54
+ # @param server_name [String] The name of the server.
55
+ # @param database_name [String] The name of the database for which setting the
56
+ # transparent data encryption applies.
57
+ # @param parameters [TransparentDataEncryption] The required parameters for
58
+ # creating or updating transparent data encryption.
59
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
60
+ # will be added to the HTTP request.
61
+ #
62
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
63
+ #
64
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
65
+ create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
66
+ end
67
+
68
+ #
69
+ # Creates or updates a database's transparent data encryption configuration.
70
+ #
71
+ # @param resource_group_name [String] The name of the resource group that
72
+ # contains the resource. You can obtain this value from the Azure Resource
73
+ # Manager API or the portal.
74
+ # @param server_name [String] The name of the server.
75
+ # @param database_name [String] The name of the database for which setting the
76
+ # transparent data encryption applies.
77
+ # @param parameters [TransparentDataEncryption] The required parameters for
78
+ # creating or updating transparent data encryption.
79
+ # @param [Hash{String => String}] A hash of custom headers that will be added
80
+ # to the HTTP request.
81
+ #
82
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
+ #
84
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
85
+ api_version = '2014-04-01'
86
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
87
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
88
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
89
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
90
+ transparent_data_encryption_name = 'current'
91
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
92
+
93
+
94
+ request_headers = {}
95
+
96
+ # Set Headers
97
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
98
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
99
+
100
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
101
+
102
+ # Serialize Request
103
+ request_mapper = Azure::ARM::SQL::Models::TransparentDataEncryption.mapper()
104
+ request_content = @client.serialize(request_mapper, parameters)
105
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
106
+
107
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}'
108
+
109
+ request_url = @base_url || @client.base_url
110
+
111
+ options = {
112
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
113
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'transparentDataEncryptionName' => transparent_data_encryption_name},
114
+ query_params: {'api-version' => api_version},
115
+ body: request_content,
116
+ headers: request_headers.merge(custom_headers || {}),
117
+ base_url: request_url
118
+ }
119
+ promise = @client.make_request_async(:put, path_template, options)
120
+
121
+ promise = promise.then do |result|
122
+ http_response = result.response
123
+ status_code = http_response.status
124
+ response_content = http_response.body
125
+ unless status_code == 200 || status_code == 201
126
+ error_model = JSON.load(response_content)
127
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
128
+ end
129
+
130
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
131
+ # Deserialize Response
132
+ if status_code == 200
133
+ begin
134
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
135
+ result_mapper = Azure::ARM::SQL::Models::TransparentDataEncryption.mapper()
136
+ result.body = @client.deserialize(result_mapper, parsed_response)
137
+ rescue Exception => e
138
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
139
+ end
140
+ end
141
+ # Deserialize Response
142
+ if status_code == 201
143
+ begin
144
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
145
+ result_mapper = Azure::ARM::SQL::Models::TransparentDataEncryption.mapper()
146
+ result.body = @client.deserialize(result_mapper, parsed_response)
147
+ rescue Exception => e
148
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
149
+ end
150
+ end
151
+
152
+ result
153
+ end
154
+
155
+ promise.execute
156
+ end
157
+
158
+ #
159
+ # Gets a database's transparent data encryption configuration.
160
+ #
161
+ # @param resource_group_name [String] The name of the resource group that
162
+ # contains the resource. You can obtain this value from the Azure Resource
163
+ # Manager API or the portal.
164
+ # @param server_name [String] The name of the server.
165
+ # @param database_name [String] The name of the database for which the
166
+ # transparent data encryption applies.
167
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
168
+ # will be added to the HTTP request.
169
+ #
170
+ # @return [TransparentDataEncryption] operation results.
171
+ #
172
+ def get(resource_group_name, server_name, database_name, custom_headers = nil)
173
+ response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
174
+ response.body unless response.nil?
175
+ end
176
+
177
+ #
178
+ # Gets a database's transparent data encryption configuration.
179
+ #
180
+ # @param resource_group_name [String] The name of the resource group that
181
+ # contains the resource. You can obtain this value from the Azure Resource
182
+ # Manager API or the portal.
183
+ # @param server_name [String] The name of the server.
184
+ # @param database_name [String] The name of the database for which the
185
+ # transparent data encryption applies.
186
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
187
+ # will be added to the HTTP request.
188
+ #
189
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
190
+ #
191
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
192
+ get_async(resource_group_name, server_name, database_name, custom_headers).value!
193
+ end
194
+
195
+ #
196
+ # Gets a database's transparent data encryption configuration.
197
+ #
198
+ # @param resource_group_name [String] The name of the resource group that
199
+ # contains the resource. You can obtain this value from the Azure Resource
200
+ # Manager API or the portal.
201
+ # @param server_name [String] The name of the server.
202
+ # @param database_name [String] The name of the database for which the
203
+ # transparent data encryption applies.
204
+ # @param [Hash{String => String}] A hash of custom headers that will be added
205
+ # to the HTTP request.
206
+ #
207
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
208
+ #
209
+ def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
210
+ api_version = '2014-04-01'
211
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
212
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
213
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
214
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
215
+ transparent_data_encryption_name = 'current'
216
+
217
+
218
+ request_headers = {}
219
+
220
+ # Set Headers
221
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
222
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
223
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}'
224
+
225
+ request_url = @base_url || @client.base_url
226
+
227
+ options = {
228
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
229
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'transparentDataEncryptionName' => transparent_data_encryption_name},
230
+ query_params: {'api-version' => api_version},
231
+ headers: request_headers.merge(custom_headers || {}),
232
+ base_url: request_url
233
+ }
234
+ promise = @client.make_request_async(:get, path_template, options)
235
+
236
+ promise = promise.then do |result|
237
+ http_response = result.response
238
+ status_code = http_response.status
239
+ response_content = http_response.body
240
+ unless status_code == 200
241
+ error_model = JSON.load(response_content)
242
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
243
+ end
244
+
245
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
246
+ # Deserialize Response
247
+ if status_code == 200
248
+ begin
249
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
250
+ result_mapper = Azure::ARM::SQL::Models::TransparentDataEncryption.mapper()
251
+ result.body = @client.deserialize(result_mapper, parsed_response)
252
+ rescue Exception => e
253
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
254
+ end
255
+ end
256
+
257
+ result
258
+ end
259
+
260
+ promise.execute
261
+ end
262
+
263
+ end
264
+ end
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::SQL
7
- VERSION = '0.11.0'
7
+ VERSION = '0.12.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.8.0
75
+ version: 0.9.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.8.0
82
+ version: 0.9.0
83
83
  description: Microsoft Azure SQL Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -89,11 +89,22 @@ files:
89
89
  - LICENSE.txt
90
90
  - lib/azure_mgmt_sql.rb
91
91
  - lib/generated/azure_mgmt_sql.rb
92
+ - lib/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb
93
+ - lib/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb
92
94
  - lib/generated/azure_mgmt_sql/capabilities.rb
95
+ - lib/generated/azure_mgmt_sql/data_masking_policies.rb
96
+ - lib/generated/azure_mgmt_sql/data_masking_rules.rb
97
+ - lib/generated/azure_mgmt_sql/database_blob_auditing_policies.rb
98
+ - lib/generated/azure_mgmt_sql/database_threat_detection_policies.rb
99
+ - lib/generated/azure_mgmt_sql/database_usages.rb
93
100
  - lib/generated/azure_mgmt_sql/databases.rb
101
+ - lib/generated/azure_mgmt_sql/elastic_pool_activities.rb
102
+ - lib/generated/azure_mgmt_sql/elastic_pool_database_activities.rb
94
103
  - lib/generated/azure_mgmt_sql/elastic_pools.rb
104
+ - lib/generated/azure_mgmt_sql/encryption_protectors.rb
95
105
  - lib/generated/azure_mgmt_sql/failover_groups.rb
96
106
  - lib/generated/azure_mgmt_sql/firewall_rules.rb
107
+ - lib/generated/azure_mgmt_sql/geo_backup_policies.rb
97
108
  - lib/generated/azure_mgmt_sql/models/authentication_type.rb
98
109
  - lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb
99
110
  - lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb
@@ -140,6 +151,7 @@ files:
140
151
  - lib/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb
141
152
  - lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb
142
153
  - lib/generated/azure_mgmt_sql/models/failover_group_replication_role.rb
154
+ - lib/generated/azure_mgmt_sql/models/failover_group_update.rb
143
155
  - lib/generated/azure_mgmt_sql/models/firewall_rule.rb
144
156
  - lib/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb
145
157
  - lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb
@@ -163,6 +175,7 @@ files:
163
175
  - lib/generated/azure_mgmt_sql/models/operation_display.rb
164
176
  - lib/generated/azure_mgmt_sql/models/operation_impact.rb
165
177
  - lib/generated/azure_mgmt_sql/models/operation_list_result.rb
178
+ - lib/generated/azure_mgmt_sql/models/operation_origin.rb
166
179
  - lib/generated/azure_mgmt_sql/models/partner_info.rb
167
180
  - lib/generated/azure_mgmt_sql/models/performance_level_unit.rb
168
181
  - lib/generated/azure_mgmt_sql/models/primary_aggregation_type.rb
@@ -216,9 +229,34 @@ files:
216
229
  - lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb
217
230
  - lib/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb
218
231
  - lib/generated/azure_mgmt_sql/models/slo_usage_metric.rb
219
- - lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb
220
232
  - lib/generated/azure_mgmt_sql/models/storage_key_type.rb
221
- - lib/generated/azure_mgmt_sql/models/sub_resource.rb
233
+ - lib/generated/azure_mgmt_sql/models/sync_agent.rb
234
+ - lib/generated/azure_mgmt_sql/models/sync_agent_key_properties.rb
235
+ - lib/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb
236
+ - lib/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb
237
+ - lib/generated/azure_mgmt_sql/models/sync_agent_list_result.rb
238
+ - lib/generated/azure_mgmt_sql/models/sync_agent_state.rb
239
+ - lib/generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb
240
+ - lib/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb
241
+ - lib/generated/azure_mgmt_sql/models/sync_database_id_properties.rb
242
+ - lib/generated/azure_mgmt_sql/models/sync_direction.rb
243
+ - lib/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb
244
+ - lib/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb
245
+ - lib/generated/azure_mgmt_sql/models/sync_full_schema_table.rb
246
+ - lib/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb
247
+ - lib/generated/azure_mgmt_sql/models/sync_group.rb
248
+ - lib/generated/azure_mgmt_sql/models/sync_group_list_result.rb
249
+ - lib/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb
250
+ - lib/generated/azure_mgmt_sql/models/sync_group_log_properties.rb
251
+ - lib/generated/azure_mgmt_sql/models/sync_group_log_type.rb
252
+ - lib/generated/azure_mgmt_sql/models/sync_group_schema.rb
253
+ - lib/generated/azure_mgmt_sql/models/sync_group_schema_table.rb
254
+ - lib/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb
255
+ - lib/generated/azure_mgmt_sql/models/sync_group_state.rb
256
+ - lib/generated/azure_mgmt_sql/models/sync_member.rb
257
+ - lib/generated/azure_mgmt_sql/models/sync_member_db_type.rb
258
+ - lib/generated/azure_mgmt_sql/models/sync_member_list_result.rb
259
+ - lib/generated/azure_mgmt_sql/models/sync_member_state.rb
222
260
  - lib/generated/azure_mgmt_sql/models/tracked_resource.rb
223
261
  - lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb
224
262
  - lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb
@@ -233,12 +271,23 @@ files:
233
271
  - lib/generated/azure_mgmt_sql/operations.rb
234
272
  - lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb
235
273
  - lib/generated/azure_mgmt_sql/recoverable_databases.rb
274
+ - lib/generated/azure_mgmt_sql/replication_links.rb
236
275
  - lib/generated/azure_mgmt_sql/restorable_dropped_databases.rb
276
+ - lib/generated/azure_mgmt_sql/restore_points.rb
237
277
  - lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb
238
278
  - lib/generated/azure_mgmt_sql/server_communication_links.rb
279
+ - lib/generated/azure_mgmt_sql/server_connection_policies.rb
239
280
  - lib/generated/azure_mgmt_sql/server_keys.rb
281
+ - lib/generated/azure_mgmt_sql/server_usages.rb
240
282
  - lib/generated/azure_mgmt_sql/servers.rb
283
+ - lib/generated/azure_mgmt_sql/service_objectives.rb
284
+ - lib/generated/azure_mgmt_sql/service_tier_advisors.rb
241
285
  - lib/generated/azure_mgmt_sql/sql_management_client.rb
286
+ - lib/generated/azure_mgmt_sql/sync_agents.rb
287
+ - lib/generated/azure_mgmt_sql/sync_groups.rb
288
+ - lib/generated/azure_mgmt_sql/sync_members.rb
289
+ - lib/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb
290
+ - lib/generated/azure_mgmt_sql/transparent_data_encryptions.rb
242
291
  - lib/generated/azure_mgmt_sql/version.rb
243
292
  - lib/generated/azure_mgmt_sql/virtual_network_rules.rb
244
293
  homepage: https://aka.ms/azure-sdk-for-ruby