azure_mgmt_sql 0.17.3 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +6 -0
  3. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +6 -0
  4. data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +2 -0
  5. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +4 -0
  6. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +4 -0
  7. data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +6 -0
  8. data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +4 -0
  9. data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +6 -0
  10. data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +4 -0
  11. data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +2 -0
  12. data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +32 -0
  13. data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +12 -0
  14. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +2 -0
  15. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +2 -0
  16. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +14 -0
  17. data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +2 -0
  18. data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +8 -0
  19. data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +6 -0
  20. data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +2 -0
  21. data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +2 -0
  22. data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +2 -0
  23. data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +2 -0
  24. data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +6 -0
  25. data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +4 -0
  26. data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +10 -0
  27. data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +4 -0
  28. data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +2 -0
  29. data/lib/2014-04-01/generated/azure_mgmt_sql/server_advisors.rb +8 -0
  30. data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +8 -0
  31. data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +8 -0
  32. data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +4 -0
  33. data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +6 -0
  34. data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +2 -0
  35. data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +14 -0
  36. data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +4 -0
  37. data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +4 -0
  38. data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
  39. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +2 -0
  40. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +2 -0
  41. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +4 -0
  42. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +6 -0
  43. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_automatic_tuning_operations.rb +4 -0
  44. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +4 -0
  45. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +6 -0
  46. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +140 -0
  47. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +16 -0
  48. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/firewall_rules.rb +12 -0
  49. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb +16 -210
  50. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +2 -2
  51. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector.rb +1 -0
  52. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
  53. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +4 -0
  54. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +6 -0
  55. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +10 -0
  56. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +16 -0
  57. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
  58. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +6 -0
  59. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +16 -0
  60. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +30 -0
  61. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +18 -0
  62. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_clusters.rb +14 -0
  63. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +10 -0
  64. data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +26 -23
  65. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +6 -0
  66. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/data_warehouse_user_activities_operations.rb +2 -0
  67. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +4 -0
  68. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +6 -0
  69. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_rule_baselines.rb +6 -0
  70. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessments.rb +10 -0
  71. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +24 -0
  72. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_database_blob_auditing_policies.rb +4 -0
  73. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_server_blob_auditing_policies.rb +4 -0
  74. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_agents.rb +12 -0
  75. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_credentials.rb +10 -0
  76. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb +16 -0
  77. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_step_executions.rb +6 -0
  78. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_steps.rb +16 -0
  79. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_executions.rb +10 -0
  80. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_groups.rb +10 -0
  81. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_versions.rb +6 -0
  82. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/jobs.rb +10 -0
  83. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb +1086 -92
  84. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_backup_short_term_retention_policies.rb +10 -0
  85. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_database_security_alert_policies.rb +8 -0
  86. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb +14 -0
  87. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_instance_administrators.rb +663 -0
  88. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_restorable_dropped_database_backup_short_term_retention_policies.rb +10 -0
  89. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_server_security_alert_policies.rb +8 -0
  90. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +2 -2
  91. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_database_blob_auditing_policy.rb +2 -2
  92. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_server_blob_auditing_policy.rb +2 -2
  93. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_instance_administrator.rb +109 -0
  94. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_instance_administrator_list_result.rb +101 -0
  95. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_blob_auditing_policy.rb +2 -2
  96. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
  97. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/restorable_dropped_managed_databases.rb +6 -0
  98. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/restore_points.rb +8 -0
  99. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sensitivity_labels.rb +18 -0
  100. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +4 -0
  101. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_blob_auditing_policies.rb +4 -0
  102. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +12 -0
  103. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_security_alert_policies.rb +8 -0
  104. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +5 -1
  105. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/backup_short_term_retention_policies.rb +10 -0
  106. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/capabilities.rb +2 -0
  107. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_operations.rb +6 -0
  108. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_scans.rb +10 -0
  109. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/databases.rb +158 -134
  110. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pool_operations.rb +6 -0
  111. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pools.rb +12 -0
  112. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/instance_failover_groups.rb +14 -0
  113. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_database_vulnerability_assessment_rule_baselines.rb +6 -0
  114. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_database_vulnerability_assessment_scans.rb +10 -0
  115. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_database_vulnerability_assessments.rb +10 -0
  116. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_encryption_protectors.rb +140 -0
  117. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_keys.rb +10 -0
  118. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_tde_certificates.rb +2 -0
  119. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database.rb +48 -5
  120. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_status.rb +1 -0
  121. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_update.rb +48 -5
  122. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
  123. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/recoverable_managed_databases.rb +6 -0
  124. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
  125. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/tde_certificates.rb +2 -0
  126. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_columns.rb +6 -0
  127. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_schemas.rb +6 -0
  128. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_security_alert_policies.rb +8 -0
  129. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_tables.rb +6 -0
  130. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/instance_pools.rb +16 -0
  131. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_columns.rb +6 -0
  132. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_schemas.rb +6 -0
  133. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_sensitivity_labels.rb +18 -0
  134. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_tables.rb +6 -0
  135. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_instance_vulnerability_assessments.rb +10 -0
  136. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
  137. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/server_vulnerability_assessments.rb +10 -0
  138. data/lib/2018-06-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
  139. data/lib/azure_mgmt_sql.rb +1 -1
  140. data/lib/profiles/latest/modules/sql_profile_module.rb +67 -57
  141. data/lib/version.rb +1 -1
  142. metadata +8 -5
@@ -112,6 +112,8 @@ module Azure::SQL::Mgmt::V2014_04_01
112
112
  end
113
113
 
114
114
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
115
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
116
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
115
117
  # Deserialize Response
116
118
  if status_code == 200
117
119
  begin
@@ -210,6 +212,8 @@ module Azure::SQL::Mgmt::V2014_04_01
210
212
  end
211
213
 
212
214
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
215
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
216
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
213
217
  # Deserialize Response
214
218
  if status_code == 200
215
219
  begin
@@ -113,6 +113,8 @@ module Azure::SQL::Mgmt::V2014_04_01
113
113
  end
114
114
 
115
115
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
116
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
117
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
116
118
  # Deserialize Response
117
119
  if status_code == 200
118
120
  begin
@@ -215,6 +217,8 @@ module Azure::SQL::Mgmt::V2014_04_01
215
217
  end
216
218
 
217
219
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
220
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
221
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
218
222
  # Deserialize Response
219
223
  if status_code == 200
220
224
  begin
@@ -281,7 +281,7 @@ module Azure::SQL::Mgmt::V2014_04_01
281
281
  #
282
282
  def add_telemetry
283
283
  sdk_information = 'azure_mgmt_sql'
284
- sdk_information = "#{sdk_information}/0.17.3"
284
+ sdk_information = "#{sdk_information}/0.18.0"
285
285
  add_user_agent_information(sdk_information)
286
286
  end
287
287
  end
@@ -113,6 +113,8 @@ module Azure::SQL::Mgmt::V2014_04_01
113
113
  end
114
114
 
115
115
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
116
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
117
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
116
118
  # Deserialize Response
117
119
  if status_code == 200
118
120
  begin
@@ -118,6 +118,8 @@ module Azure::SQL::Mgmt::V2014_04_01
118
118
  end
119
119
 
120
120
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
121
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
122
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
121
123
  # Deserialize Response
122
124
  if status_code == 200
123
125
  begin
@@ -127,6 +127,8 @@ module Azure::SQL::Mgmt::V2014_04_01
127
127
  end
128
128
 
129
129
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
130
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
131
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
130
132
  # Deserialize Response
131
133
  if status_code == 200
132
134
  begin
@@ -243,6 +245,8 @@ module Azure::SQL::Mgmt::V2014_04_01
243
245
  end
244
246
 
245
247
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
248
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
249
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
246
250
  # Deserialize Response
247
251
  if status_code == 200
248
252
  begin
@@ -109,6 +109,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
109
109
  end
110
110
 
111
111
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
112
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
113
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
112
114
  # Deserialize Response
113
115
  if status_code == 200
114
116
  begin
@@ -231,6 +233,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
231
233
  end
232
234
 
233
235
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
236
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
237
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
234
238
  # Deserialize Response
235
239
  if status_code == 200
236
240
  begin
@@ -348,6 +352,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
348
352
  end
349
353
 
350
354
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
355
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
356
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
351
357
  # Deserialize Response
352
358
  if status_code == 200
353
359
  begin
@@ -109,6 +109,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
109
109
  end
110
110
 
111
111
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
112
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
113
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
112
114
  # Deserialize Response
113
115
  if status_code == 200
114
116
  begin
@@ -225,6 +227,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
225
227
  end
226
228
 
227
229
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
230
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
231
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
228
232
  # Deserialize Response
229
233
  if status_code == 200
230
234
  begin
@@ -110,6 +110,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
110
110
  end
111
111
 
112
112
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
114
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
113
115
  # Deserialize Response
114
116
  if status_code == 200
115
117
  begin
@@ -227,6 +229,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
227
229
  end
228
230
 
229
231
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
232
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
233
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
230
234
  # Deserialize Response
231
235
  if status_code == 200
232
236
  begin
@@ -113,6 +113,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
113
113
  end
114
114
 
115
115
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
116
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
117
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
116
118
  # Deserialize Response
117
119
  if status_code == 200
118
120
  begin
@@ -242,6 +244,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
242
244
  end
243
245
 
244
246
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
247
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
248
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
245
249
  # Deserialize Response
246
250
  if status_code == 200
247
251
  begin
@@ -369,6 +373,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
369
373
  end
370
374
 
371
375
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
376
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
377
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
372
378
  # Deserialize Response
373
379
  if status_code == 200
374
380
  begin
@@ -24,6 +24,48 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
24
24
  # @return [SqlManagementClient] reference to the SqlManagementClient
25
25
  attr_reader :client
26
26
 
27
+ #
28
+ # Revalidates an existing encryption protector.
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 custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ def revalidate(resource_group_name, server_name, custom_headers:nil)
38
+ response = revalidate_async(resource_group_name, server_name, custom_headers:custom_headers).value!
39
+ nil
40
+ end
41
+
42
+ #
43
+ # @param resource_group_name [String] The name of the resource group that
44
+ # contains the resource. You can obtain this value from the Azure Resource
45
+ # Manager API or the portal.
46
+ # @param server_name [String] The name of the server.
47
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
48
+ # will be added to the HTTP request.
49
+ #
50
+ # @return [Concurrent::Promise] promise which provides async access to http
51
+ # response.
52
+ #
53
+ def revalidate_async(resource_group_name, server_name, custom_headers:nil)
54
+ # Send request
55
+ promise = begin_revalidate_async(resource_group_name, server_name, custom_headers:custom_headers)
56
+
57
+ promise = promise.then do |response|
58
+ # Defining deserialization method.
59
+ deserialize_method = lambda do |parsed_response|
60
+ end
61
+
62
+ # Waiting for response.
63
+ @client.get_long_running_operation_result(response, deserialize_method)
64
+ end
65
+
66
+ promise
67
+ end
68
+
27
69
  #
28
70
  # Gets a list of server encryption protectors
29
71
  #
@@ -105,6 +147,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
105
147
  end
106
148
 
107
149
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
150
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
151
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
108
152
  # Deserialize Response
109
153
  if status_code == 200
110
154
  begin
@@ -204,6 +248,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
204
248
  end
205
249
 
206
250
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
251
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
252
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
207
253
  # Deserialize Response
208
254
  if status_code == 200
209
255
  begin
@@ -271,6 +317,96 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
271
317
  promise
272
318
  end
273
319
 
320
+ #
321
+ # Revalidates an existing encryption protector.
322
+ #
323
+ # @param resource_group_name [String] The name of the resource group that
324
+ # contains the resource. You can obtain this value from the Azure Resource
325
+ # Manager API or the portal.
326
+ # @param server_name [String] The name of the server.
327
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
328
+ # will be added to the HTTP request.
329
+ #
330
+ #
331
+ def begin_revalidate(resource_group_name, server_name, custom_headers:nil)
332
+ response = begin_revalidate_async(resource_group_name, server_name, custom_headers:custom_headers).value!
333
+ nil
334
+ end
335
+
336
+ #
337
+ # Revalidates an existing encryption protector.
338
+ #
339
+ # @param resource_group_name [String] The name of the resource group that
340
+ # contains the resource. You can obtain this value from the Azure Resource
341
+ # Manager API or the portal.
342
+ # @param server_name [String] The name of the server.
343
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
344
+ # will be added to the HTTP request.
345
+ #
346
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
347
+ #
348
+ def begin_revalidate_with_http_info(resource_group_name, server_name, custom_headers:nil)
349
+ begin_revalidate_async(resource_group_name, server_name, custom_headers:custom_headers).value!
350
+ end
351
+
352
+ #
353
+ # Revalidates an existing encryption protector.
354
+ #
355
+ # @param resource_group_name [String] The name of the resource group that
356
+ # contains the resource. You can obtain this value from the Azure Resource
357
+ # Manager API or the portal.
358
+ # @param server_name [String] The name of the server.
359
+ # @param [Hash{String => String}] A hash of custom headers that will be added
360
+ # to the HTTP request.
361
+ #
362
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
363
+ #
364
+ def begin_revalidate_async(resource_group_name, server_name, custom_headers:nil)
365
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
366
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
367
+ encryption_protector_name = 'current'
368
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
369
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
370
+
371
+
372
+ request_headers = {}
373
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
374
+
375
+ # Set Headers
376
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
377
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
378
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate'
379
+
380
+ request_url = @base_url || @client.base_url
381
+
382
+ options = {
383
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
384
+ path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'encryptionProtectorName' => encryption_protector_name,'subscriptionId' => @client.subscription_id},
385
+ query_params: {'api-version' => @client.api_version},
386
+ headers: request_headers.merge(custom_headers || {}),
387
+ base_url: request_url
388
+ }
389
+ promise = @client.make_request_async(:post, path_template, options)
390
+
391
+ promise = promise.then do |result|
392
+ http_response = result.response
393
+ status_code = http_response.status
394
+ response_content = http_response.body
395
+ unless status_code == 200 || status_code == 202
396
+ error_model = JSON.load(response_content)
397
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
398
+ end
399
+
400
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
401
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
402
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
403
+
404
+ result
405
+ end
406
+
407
+ promise.execute
408
+ end
409
+
274
410
  #
275
411
  # Updates an existing encryption protector.
276
412
  #
@@ -367,6 +503,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
367
503
  end
368
504
 
369
505
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
506
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
507
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
370
508
  # Deserialize Response
371
509
  if status_code == 200
372
510
  begin
@@ -455,6 +593,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
455
593
  end
456
594
 
457
595
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
596
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
597
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
458
598
  # Deserialize Response
459
599
  if status_code == 200
460
600
  begin
@@ -112,6 +112,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
112
112
  end
113
113
 
114
114
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
115
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
116
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
115
117
  # Deserialize Response
116
118
  if status_code == 200
117
119
  begin
@@ -363,6 +365,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
363
365
  end
364
366
 
365
367
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
368
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
369
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
366
370
  # Deserialize Response
367
371
  if status_code == 200
368
372
  begin
@@ -580,6 +584,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
580
584
  end
581
585
 
582
586
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
587
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
588
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
583
589
  # Deserialize Response
584
590
  if status_code == 200
585
591
  begin
@@ -694,6 +700,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
694
700
  end
695
701
 
696
702
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
703
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
704
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
697
705
 
698
706
  result
699
707
  end
@@ -800,6 +808,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
800
808
  end
801
809
 
802
810
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
811
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
812
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
803
813
  # Deserialize Response
804
814
  if status_code == 200
805
815
  begin
@@ -905,6 +915,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
905
915
  end
906
916
 
907
917
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
918
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
919
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
908
920
  # Deserialize Response
909
921
  if status_code == 200
910
922
  begin
@@ -1013,6 +1025,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
1013
1025
  end
1014
1026
 
1015
1027
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1028
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1029
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1016
1030
  # Deserialize Response
1017
1031
  if status_code == 200
1018
1032
  begin
@@ -1101,6 +1115,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
1101
1115
  end
1102
1116
 
1103
1117
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1118
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1119
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1104
1120
  # Deserialize Response
1105
1121
  if status_code == 200
1106
1122
  begin
@@ -109,6 +109,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
109
109
  end
110
110
 
111
111
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
112
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
113
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
112
114
  # Deserialize Response
113
115
  if status_code == 200
114
116
  begin
@@ -225,6 +227,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
225
227
  end
226
228
 
227
229
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
230
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
231
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
228
232
  # Deserialize Response
229
233
  if status_code == 200
230
234
  begin
@@ -336,6 +340,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
336
340
  end
337
341
 
338
342
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
343
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
344
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
339
345
 
340
346
  result
341
347
  end
@@ -424,6 +430,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
424
430
  end
425
431
 
426
432
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
433
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
434
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
427
435
  # Deserialize Response
428
436
  if status_code == 200
429
437
  begin
@@ -533,6 +541,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
533
541
  end
534
542
 
535
543
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
544
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
545
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
536
546
  # Deserialize Response
537
547
  if status_code == 200
538
548
  begin
@@ -621,6 +631,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
621
631
  end
622
632
 
623
633
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
634
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
635
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
624
636
  # Deserialize Response
625
637
  if status_code == 200
626
638
  begin