azure_mgmt_sql 0.17.3 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +32 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +12 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +14 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +8 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +10 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_advisors.rb +8 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +8 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +8 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +6 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +14 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +4 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
- data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +2 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +4 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +6 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_automatic_tuning_operations.rb +4 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +4 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +6 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +140 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +16 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/firewall_rules.rb +12 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb +16 -210
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +2 -2
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector.rb +1 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +4 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +6 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +10 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +16 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +6 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +16 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +30 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +18 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_clusters.rb +14 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +26 -23
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +6 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/data_warehouse_user_activities_operations.rb +2 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +4 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +6 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_rule_baselines.rb +6 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessments.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +24 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_database_blob_auditing_policies.rb +4 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_server_blob_auditing_policies.rb +4 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_agents.rb +12 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_credentials.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_step_executions.rb +6 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_steps.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_executions.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_groups.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_versions.rb +6 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/jobs.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb +1086 -92
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_backup_short_term_retention_policies.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_database_security_alert_policies.rb +8 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb +14 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_instance_administrators.rb +663 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_restorable_dropped_database_backup_short_term_retention_policies.rb +10 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_server_security_alert_policies.rb +8 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +2 -2
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_database_blob_auditing_policy.rb +2 -2
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_server_blob_auditing_policy.rb +2 -2
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_instance_administrator.rb +109 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_instance_administrator_list_result.rb +101 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_blob_auditing_policy.rb +2 -2
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/restorable_dropped_managed_databases.rb +6 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/restore_points.rb +8 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sensitivity_labels.rb +18 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +4 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_blob_auditing_policies.rb +4 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +12 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_security_alert_policies.rb +8 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +5 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/backup_short_term_retention_policies.rb +10 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/capabilities.rb +2 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_operations.rb +6 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_scans.rb +10 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/databases.rb +158 -134
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pool_operations.rb +6 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pools.rb +12 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/instance_failover_groups.rb +14 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_database_vulnerability_assessment_rule_baselines.rb +6 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_database_vulnerability_assessment_scans.rb +10 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_database_vulnerability_assessments.rb +10 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_encryption_protectors.rb +140 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_keys.rb +10 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_tde_certificates.rb +2 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database.rb +48 -5
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_status.rb +1 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_update.rb +48 -5
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/recoverable_managed_databases.rb +6 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/tde_certificates.rb +2 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_columns.rb +6 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_schemas.rb +6 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_security_alert_policies.rb +8 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_tables.rb +6 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/instance_pools.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_columns.rb +6 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_schemas.rb +6 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_sensitivity_labels.rb +18 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_database_tables.rb +6 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/managed_instance_vulnerability_assessments.rb +10 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/models/sku.rb +7 -11
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/server_vulnerability_assessments.rb +10 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +1 -1
- data/lib/azure_mgmt_sql.rb +1 -1
- data/lib/profiles/latest/modules/sql_profile_module.rb +67 -57
- data/lib/version.rb +1 -1
- metadata +8 -5
@@ -105,6 +105,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
105
105
|
end
|
106
106
|
|
107
107
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
108
110
|
# Deserialize Response
|
109
111
|
if status_code == 200
|
110
112
|
begin
|
@@ -217,6 +219,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
217
219
|
end
|
218
220
|
|
219
221
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
222
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
223
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
220
224
|
# Deserialize Response
|
221
225
|
if status_code == 200
|
222
226
|
begin
|
@@ -106,6 +106,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
106
106
|
end
|
107
107
|
|
108
108
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
109
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
110
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
109
111
|
# Deserialize Response
|
110
112
|
if status_code == 200
|
111
113
|
begin
|
@@ -269,6 +271,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
269
271
|
end
|
270
272
|
|
271
273
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
274
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
275
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
272
276
|
# Deserialize Response
|
273
277
|
if status_code == 200
|
274
278
|
begin
|
@@ -112,6 +112,8 @@ module Azure::SQL::Mgmt::V2017_03_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
|
@@ -309,6 +311,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
309
311
|
end
|
310
312
|
|
311
313
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
314
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
315
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
312
316
|
# Deserialize Response
|
313
317
|
if status_code == 200
|
314
318
|
begin
|
@@ -462,6 +466,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
462
466
|
end
|
463
467
|
|
464
468
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
469
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
470
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
465
471
|
# Deserialize Response
|
466
472
|
if status_code == 200
|
467
473
|
begin
|
@@ -576,6 +582,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
576
582
|
end
|
577
583
|
|
578
584
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
585
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
586
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
579
587
|
|
580
588
|
result
|
581
589
|
end
|
@@ -681,6 +689,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
681
689
|
end
|
682
690
|
|
683
691
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
692
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
693
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
684
694
|
|
685
695
|
result
|
686
696
|
end
|
@@ -759,6 +769,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
759
769
|
end
|
760
770
|
|
761
771
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
772
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
773
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
762
774
|
# Deserialize Response
|
763
775
|
if status_code == 200
|
764
776
|
begin
|
@@ -106,6 +106,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
106
106
|
end
|
107
107
|
|
108
108
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
109
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
110
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
109
111
|
# Deserialize Response
|
110
112
|
if status_code == 200
|
111
113
|
begin
|
@@ -254,6 +256,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
254
256
|
end
|
255
257
|
|
256
258
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
259
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
260
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
257
261
|
# Deserialize Response
|
258
262
|
if status_code == 200
|
259
263
|
begin
|
@@ -367,6 +371,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
367
371
|
end
|
368
372
|
|
369
373
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
374
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
375
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
370
376
|
# Deserialize Response
|
371
377
|
if status_code == 200
|
372
378
|
begin
|
@@ -455,6 +461,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
455
461
|
end
|
456
462
|
|
457
463
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
464
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
465
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
458
466
|
# Deserialize Response
|
459
467
|
if status_code == 200
|
460
468
|
begin
|
@@ -142,6 +142,9 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
142
142
|
# @return [SensitivityLabels] sensitivity_labels
|
143
143
|
attr_reader :sensitivity_labels
|
144
144
|
|
145
|
+
# @return [ManagedInstanceAdministrators] managed_instance_administrators
|
146
|
+
attr_reader :managed_instance_administrators
|
147
|
+
|
145
148
|
#
|
146
149
|
# Creates initializes a new instance of the SqlManagementClient class.
|
147
150
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
@@ -186,6 +189,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
186
189
|
@managed_database_security_alert_policies = ManagedDatabaseSecurityAlertPolicies.new(self)
|
187
190
|
@managed_server_security_alert_policies = ManagedServerSecurityAlertPolicies.new(self)
|
188
191
|
@sensitivity_labels = SensitivityLabels.new(self)
|
192
|
+
@managed_instance_administrators = ManagedInstanceAdministrators.new(self)
|
189
193
|
@api_version = '2017-03-01-preview'
|
190
194
|
@accept_language = 'en-US'
|
191
195
|
@long_running_operation_retry_timeout = 30
|
@@ -258,7 +262,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
258
262
|
#
|
259
263
|
def add_telemetry
|
260
264
|
sdk_information = 'azure_mgmt_sql'
|
261
|
-
sdk_information = "#{sdk_information}/0.
|
265
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
262
266
|
add_user_agent_information(sdk_information)
|
263
267
|
end
|
264
268
|
end
|
data/lib/2017-10-01-preview/generated/azure_mgmt_sql/backup_short_term_retention_policies.rb
CHANGED
@@ -110,6 +110,8 @@ module Azure::SQL::Mgmt::V2017_10_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
|
@@ -316,6 +318,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
316
318
|
end
|
317
319
|
|
318
320
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
321
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
322
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
319
323
|
# Deserialize Response
|
320
324
|
if status_code == 200
|
321
325
|
begin
|
@@ -433,6 +437,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
433
437
|
end
|
434
438
|
|
435
439
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
440
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
441
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
436
442
|
# Deserialize Response
|
437
443
|
if status_code == 200
|
438
444
|
begin
|
@@ -550,6 +556,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
550
556
|
end
|
551
557
|
|
552
558
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
559
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
560
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
553
561
|
# Deserialize Response
|
554
562
|
if status_code == 200
|
555
563
|
begin
|
@@ -638,6 +646,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
638
646
|
end
|
639
647
|
|
640
648
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
649
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
650
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
641
651
|
# Deserialize Response
|
642
652
|
if status_code == 200
|
643
653
|
begin
|
@@ -107,6 +107,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
107
107
|
end
|
108
108
|
|
109
109
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
111
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
110
112
|
# Deserialize Response
|
111
113
|
if status_code == 200
|
112
114
|
begin
|
@@ -112,6 +112,8 @@ module Azure::SQL::Mgmt::V2017_10_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
|
|
116
118
|
result
|
117
119
|
end
|
@@ -204,6 +206,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
204
206
|
end
|
205
207
|
|
206
208
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
209
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
210
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
207
211
|
# Deserialize Response
|
208
212
|
if status_code == 200
|
209
213
|
begin
|
@@ -292,6 +296,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
292
296
|
end
|
293
297
|
|
294
298
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
299
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
300
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
295
301
|
# Deserialize Response
|
296
302
|
if status_code == 200
|
297
303
|
begin
|
data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_scans.rb
CHANGED
@@ -110,6 +110,8 @@ module Azure::SQL::Mgmt::V2017_10_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
|
@@ -220,6 +222,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
220
222
|
end
|
221
223
|
|
222
224
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
225
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
226
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
223
227
|
# Deserialize Response
|
224
228
|
if status_code == 200
|
225
229
|
begin
|
@@ -378,6 +382,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
378
382
|
end
|
379
383
|
|
380
384
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
385
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
386
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
381
387
|
# Deserialize Response
|
382
388
|
if status_code == 200
|
383
389
|
begin
|
@@ -497,6 +503,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
497
503
|
end
|
498
504
|
|
499
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?
|
500
508
|
|
501
509
|
result
|
502
510
|
end
|
@@ -575,6 +583,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
575
583
|
end
|
576
584
|
|
577
585
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
586
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
587
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
578
588
|
# Deserialize Response
|
579
589
|
if status_code == 200
|
580
590
|
begin
|
@@ -24,50 +24,6 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
24
24
|
# @return [SqlManagementClient] reference to the SqlManagementClient
|
25
25
|
attr_reader :client
|
26
26
|
|
27
|
-
#
|
28
|
-
# Upgrades a data warehouse.
|
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 to be upgraded.
|
35
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
-
# will be added to the HTTP request.
|
37
|
-
#
|
38
|
-
def upgrade_data_warehouse(resource_group_name, server_name, database_name, custom_headers:nil)
|
39
|
-
response = upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
40
|
-
nil
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# @param resource_group_name [String] The name of the resource group that
|
45
|
-
# contains the resource. You can obtain this value from the Azure Resource
|
46
|
-
# Manager API or the portal.
|
47
|
-
# @param server_name [String] The name of the server.
|
48
|
-
# @param database_name [String] The name of the database to be upgraded.
|
49
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
-
# will be added to the HTTP request.
|
51
|
-
#
|
52
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
53
|
-
# response.
|
54
|
-
#
|
55
|
-
def upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
56
|
-
# Send request
|
57
|
-
promise = begin_upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:custom_headers)
|
58
|
-
|
59
|
-
promise = promise.then do |response|
|
60
|
-
# Defining deserialization method.
|
61
|
-
deserialize_method = lambda do |parsed_response|
|
62
|
-
end
|
63
|
-
|
64
|
-
# Waiting for response.
|
65
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
66
|
-
end
|
67
|
-
|
68
|
-
promise
|
69
|
-
end
|
70
|
-
|
71
27
|
#
|
72
28
|
# Gets a list of databases.
|
73
29
|
#
|
@@ -149,6 +105,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
149
105
|
end
|
150
106
|
|
151
107
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
152
110
|
# Deserialize Response
|
153
111
|
if status_code == 200
|
154
112
|
begin
|
@@ -251,6 +209,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
251
209
|
end
|
252
210
|
|
253
211
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
212
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
213
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
254
214
|
# Deserialize Response
|
255
215
|
if status_code == 200
|
256
216
|
begin
|
@@ -497,6 +457,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
497
457
|
end
|
498
458
|
|
499
459
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
460
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
461
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
500
462
|
# Deserialize Response
|
501
463
|
if status_code == 200
|
502
464
|
begin
|
@@ -611,161 +573,107 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
611
573
|
end
|
612
574
|
|
613
575
|
#
|
614
|
-
#
|
576
|
+
# Upgrades a data warehouse.
|
615
577
|
#
|
616
578
|
# @param resource_group_name [String] The name of the resource group that
|
617
579
|
# contains the resource. You can obtain this value from the Azure Resource
|
618
580
|
# Manager API or the portal.
|
619
581
|
# @param server_name [String] The name of the server.
|
620
|
-
# @param database_name [String] The name of the database to
|
621
|
-
# @param parameters [ResourceMoveDefinition] The resource move definition for
|
622
|
-
# renaming this database.
|
582
|
+
# @param database_name [String] The name of the database to be upgraded.
|
623
583
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
624
584
|
# will be added to the HTTP request.
|
625
585
|
#
|
626
|
-
|
627
|
-
|
628
|
-
response = rename_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
586
|
+
def upgrade_data_warehouse(resource_group_name, server_name, database_name, custom_headers:nil)
|
587
|
+
response = upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
629
588
|
nil
|
630
589
|
end
|
631
590
|
|
632
|
-
#
|
633
|
-
# Renames a database.
|
634
591
|
#
|
635
592
|
# @param resource_group_name [String] The name of the resource group that
|
636
593
|
# contains the resource. You can obtain this value from the Azure Resource
|
637
594
|
# Manager API or the portal.
|
638
595
|
# @param server_name [String] The name of the server.
|
639
|
-
# @param database_name [String] The name of the database to
|
640
|
-
# @param parameters [ResourceMoveDefinition] The resource move definition for
|
641
|
-
# renaming this database.
|
596
|
+
# @param database_name [String] The name of the database to be upgraded.
|
642
597
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
643
598
|
# will be added to the HTTP request.
|
644
599
|
#
|
645
|
-
# @return [
|
646
|
-
#
|
647
|
-
def rename_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
648
|
-
rename_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
649
|
-
end
|
650
|
-
|
651
|
-
#
|
652
|
-
# Renames a database.
|
653
|
-
#
|
654
|
-
# @param resource_group_name [String] The name of the resource group that
|
655
|
-
# contains the resource. You can obtain this value from the Azure Resource
|
656
|
-
# Manager API or the portal.
|
657
|
-
# @param server_name [String] The name of the server.
|
658
|
-
# @param database_name [String] The name of the database to rename.
|
659
|
-
# @param parameters [ResourceMoveDefinition] The resource move definition for
|
660
|
-
# renaming this database.
|
661
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
662
|
-
# to the HTTP request.
|
663
|
-
#
|
664
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
600
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
601
|
+
# response.
|
665
602
|
#
|
666
|
-
def
|
667
|
-
|
668
|
-
|
669
|
-
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
670
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
671
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
672
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
673
|
-
|
674
|
-
|
675
|
-
request_headers = {}
|
676
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
677
|
-
|
678
|
-
# Set Headers
|
679
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
680
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
681
|
-
|
682
|
-
# Serialize Request
|
683
|
-
request_mapper = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition.mapper()
|
684
|
-
request_content = @client.serialize(request_mapper, parameters)
|
685
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
686
|
-
|
687
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move'
|
688
|
-
|
689
|
-
request_url = @base_url || @client.base_url
|
690
|
-
|
691
|
-
options = {
|
692
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
693
|
-
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
694
|
-
query_params: {'api-version' => @client.api_version},
|
695
|
-
body: request_content,
|
696
|
-
headers: request_headers.merge(custom_headers || {}),
|
697
|
-
base_url: request_url
|
698
|
-
}
|
699
|
-
promise = @client.make_request_async(:post, path_template, options)
|
603
|
+
def upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
604
|
+
# Send request
|
605
|
+
promise = begin_upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:custom_headers)
|
700
606
|
|
701
|
-
promise = promise.then do |
|
702
|
-
|
703
|
-
|
704
|
-
response_content = http_response.body
|
705
|
-
unless status_code == 200
|
706
|
-
error_model = JSON.load(response_content)
|
707
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
607
|
+
promise = promise.then do |response|
|
608
|
+
# Defining deserialization method.
|
609
|
+
deserialize_method = lambda do |parsed_response|
|
708
610
|
end
|
709
611
|
|
710
|
-
|
711
|
-
|
712
|
-
result
|
612
|
+
# Waiting for response.
|
613
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
713
614
|
end
|
714
615
|
|
715
|
-
promise
|
616
|
+
promise
|
716
617
|
end
|
717
618
|
|
718
619
|
#
|
719
|
-
#
|
620
|
+
# Renames a database.
|
720
621
|
#
|
721
622
|
# @param resource_group_name [String] The name of the resource group that
|
722
623
|
# contains the resource. You can obtain this value from the Azure Resource
|
723
624
|
# Manager API or the portal.
|
724
625
|
# @param server_name [String] The name of the server.
|
725
|
-
# @param database_name [String] The name of the database to
|
626
|
+
# @param database_name [String] The name of the database to rename.
|
627
|
+
# @param parameters [ResourceMoveDefinition] The resource move definition for
|
628
|
+
# renaming this database.
|
726
629
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
727
630
|
# will be added to the HTTP request.
|
728
631
|
#
|
729
632
|
#
|
730
|
-
def
|
731
|
-
response =
|
633
|
+
def rename(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
634
|
+
response = rename_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
732
635
|
nil
|
733
636
|
end
|
734
637
|
|
735
638
|
#
|
736
|
-
#
|
639
|
+
# Renames a database.
|
737
640
|
#
|
738
641
|
# @param resource_group_name [String] The name of the resource group that
|
739
642
|
# contains the resource. You can obtain this value from the Azure Resource
|
740
643
|
# Manager API or the portal.
|
741
644
|
# @param server_name [String] The name of the server.
|
742
|
-
# @param database_name [String] The name of the database to
|
645
|
+
# @param database_name [String] The name of the database to rename.
|
646
|
+
# @param parameters [ResourceMoveDefinition] The resource move definition for
|
647
|
+
# renaming this database.
|
743
648
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
744
649
|
# will be added to the HTTP request.
|
745
650
|
#
|
746
651
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
747
652
|
#
|
748
|
-
def
|
749
|
-
|
653
|
+
def rename_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
654
|
+
rename_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
750
655
|
end
|
751
656
|
|
752
657
|
#
|
753
|
-
#
|
658
|
+
# Renames a database.
|
754
659
|
#
|
755
660
|
# @param resource_group_name [String] The name of the resource group that
|
756
661
|
# contains the resource. You can obtain this value from the Azure Resource
|
757
662
|
# Manager API or the portal.
|
758
663
|
# @param server_name [String] The name of the server.
|
759
|
-
# @param database_name [String] The name of the database to
|
664
|
+
# @param database_name [String] The name of the database to rename.
|
665
|
+
# @param parameters [ResourceMoveDefinition] The resource move definition for
|
666
|
+
# renaming this database.
|
760
667
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
761
668
|
# to the HTTP request.
|
762
669
|
#
|
763
670
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
764
671
|
#
|
765
|
-
def
|
672
|
+
def rename_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
766
673
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
767
674
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
768
675
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
676
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
769
677
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
770
678
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
771
679
|
|
@@ -776,7 +684,13 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
776
684
|
# Set Headers
|
777
685
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
778
686
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
779
|
-
|
687
|
+
|
688
|
+
# Serialize Request
|
689
|
+
request_mapper = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition.mapper()
|
690
|
+
request_content = @client.serialize(request_mapper, parameters)
|
691
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
692
|
+
|
693
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move'
|
780
694
|
|
781
695
|
request_url = @base_url || @client.base_url
|
782
696
|
|
@@ -784,6 +698,7 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
784
698
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
785
699
|
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
786
700
|
query_params: {'api-version' => @client.api_version},
|
701
|
+
body: request_content,
|
787
702
|
headers: request_headers.merge(custom_headers || {}),
|
788
703
|
base_url: request_url
|
789
704
|
}
|
@@ -793,12 +708,14 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
793
708
|
http_response = result.response
|
794
709
|
status_code = http_response.status
|
795
710
|
response_content = http_response.body
|
796
|
-
unless status_code == 200
|
711
|
+
unless status_code == 200
|
797
712
|
error_model = JSON.load(response_content)
|
798
713
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
799
714
|
end
|
800
715
|
|
801
716
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
717
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
718
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
802
719
|
|
803
720
|
result
|
804
721
|
end
|
@@ -902,6 +819,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
902
819
|
end
|
903
820
|
|
904
821
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
822
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
823
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
905
824
|
# Deserialize Response
|
906
825
|
if status_code == 200
|
907
826
|
begin
|
@@ -1013,6 +932,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1013
932
|
end
|
1014
933
|
|
1015
934
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
935
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
936
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1016
937
|
|
1017
938
|
result
|
1018
939
|
end
|
@@ -1116,6 +1037,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1116
1037
|
end
|
1117
1038
|
|
1118
1039
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1040
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1041
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1119
1042
|
# Deserialize Response
|
1120
1043
|
if status_code == 200
|
1121
1044
|
begin
|
@@ -1218,6 +1141,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1218
1141
|
end
|
1219
1142
|
|
1220
1143
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1144
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1145
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1221
1146
|
# Deserialize Response
|
1222
1147
|
if status_code == 200
|
1223
1148
|
begin
|
@@ -1320,6 +1245,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1320
1245
|
end
|
1321
1246
|
|
1322
1247
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1248
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1249
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1323
1250
|
# Deserialize Response
|
1324
1251
|
if status_code == 200
|
1325
1252
|
begin
|
@@ -1337,6 +1264,99 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1337
1264
|
promise.execute
|
1338
1265
|
end
|
1339
1266
|
|
1267
|
+
#
|
1268
|
+
# Upgrades a data warehouse.
|
1269
|
+
#
|
1270
|
+
# @param resource_group_name [String] The name of the resource group that
|
1271
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
1272
|
+
# Manager API or the portal.
|
1273
|
+
# @param server_name [String] The name of the server.
|
1274
|
+
# @param database_name [String] The name of the database to be upgraded.
|
1275
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1276
|
+
# will be added to the HTTP request.
|
1277
|
+
#
|
1278
|
+
#
|
1279
|
+
def begin_upgrade_data_warehouse(resource_group_name, server_name, database_name, custom_headers:nil)
|
1280
|
+
response = begin_upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
1281
|
+
nil
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
#
|
1285
|
+
# Upgrades a data warehouse.
|
1286
|
+
#
|
1287
|
+
# @param resource_group_name [String] The name of the resource group that
|
1288
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
1289
|
+
# Manager API or the portal.
|
1290
|
+
# @param server_name [String] The name of the server.
|
1291
|
+
# @param database_name [String] The name of the database to be upgraded.
|
1292
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1293
|
+
# will be added to the HTTP request.
|
1294
|
+
#
|
1295
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1296
|
+
#
|
1297
|
+
def begin_upgrade_data_warehouse_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
1298
|
+
begin_upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
#
|
1302
|
+
# Upgrades a data warehouse.
|
1303
|
+
#
|
1304
|
+
# @param resource_group_name [String] The name of the resource group that
|
1305
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
1306
|
+
# Manager API or the portal.
|
1307
|
+
# @param server_name [String] The name of the server.
|
1308
|
+
# @param database_name [String] The name of the database to be upgraded.
|
1309
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1310
|
+
# to the HTTP request.
|
1311
|
+
#
|
1312
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1313
|
+
#
|
1314
|
+
def begin_upgrade_data_warehouse_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
1315
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1316
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
1317
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
1318
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1319
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1320
|
+
|
1321
|
+
|
1322
|
+
request_headers = {}
|
1323
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1324
|
+
|
1325
|
+
# Set Headers
|
1326
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1327
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1328
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse'
|
1329
|
+
|
1330
|
+
request_url = @base_url || @client.base_url
|
1331
|
+
|
1332
|
+
options = {
|
1333
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1334
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
1335
|
+
query_params: {'api-version' => @client.api_version},
|
1336
|
+
headers: request_headers.merge(custom_headers || {}),
|
1337
|
+
base_url: request_url
|
1338
|
+
}
|
1339
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1340
|
+
|
1341
|
+
promise = promise.then do |result|
|
1342
|
+
http_response = result.response
|
1343
|
+
status_code = http_response.status
|
1344
|
+
response_content = http_response.body
|
1345
|
+
unless status_code == 200 || status_code == 202
|
1346
|
+
error_model = JSON.load(response_content)
|
1347
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1351
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1352
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1353
|
+
|
1354
|
+
result
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
promise.execute
|
1358
|
+
end
|
1359
|
+
|
1340
1360
|
#
|
1341
1361
|
# Gets a list of databases.
|
1342
1362
|
#
|
@@ -1408,6 +1428,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1408
1428
|
end
|
1409
1429
|
|
1410
1430
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1431
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1432
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1411
1433
|
# Deserialize Response
|
1412
1434
|
if status_code == 200
|
1413
1435
|
begin
|
@@ -1496,6 +1518,8 @@ module Azure::SQL::Mgmt::V2017_10_01_preview
|
|
1496
1518
|
end
|
1497
1519
|
|
1498
1520
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1521
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1522
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1499
1523
|
# Deserialize Response
|
1500
1524
|
if status_code == 200
|
1501
1525
|
begin
|