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.
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
@@ -101,6 +101,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
101
101
  end
102
102
 
103
103
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
104
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
105
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
104
106
  # Deserialize Response
105
107
  if status_code == 200
106
108
  begin
@@ -199,6 +201,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
199
201
  end
200
202
 
201
203
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
204
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
205
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
202
206
  # Deserialize Response
203
207
  if status_code == 200
204
208
  begin
@@ -358,104 +362,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
358
362
  promise
359
363
  end
360
364
 
361
- #
362
- # Gets a list of all managed instances in an instance pool.
363
- #
364
- # @param resource_group_name [String] The name of the resource group that
365
- # contains the resource. You can obtain this value from the Azure Resource
366
- # Manager API or the portal.
367
- # @param instance_pool_name [String] The instance pool name.
368
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
- # will be added to the HTTP request.
370
- #
371
- # @return [Array<ManagedInstance>] operation results.
372
- #
373
- def list_by_instance_pool(resource_group_name, instance_pool_name, custom_headers:nil)
374
- first_page = list_by_instance_pool_as_lazy(resource_group_name, instance_pool_name, custom_headers:custom_headers)
375
- first_page.get_all_items
376
- end
377
-
378
- #
379
- # Gets a list of all managed instances in an instance pool.
380
- #
381
- # @param resource_group_name [String] The name of the resource group that
382
- # contains the resource. You can obtain this value from the Azure Resource
383
- # Manager API or the portal.
384
- # @param instance_pool_name [String] The instance pool name.
385
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
386
- # will be added to the HTTP request.
387
- #
388
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
389
- #
390
- def list_by_instance_pool_with_http_info(resource_group_name, instance_pool_name, custom_headers:nil)
391
- list_by_instance_pool_async(resource_group_name, instance_pool_name, custom_headers:custom_headers).value!
392
- end
393
-
394
- #
395
- # Gets a list of all managed instances in an instance pool.
396
- #
397
- # @param resource_group_name [String] The name of the resource group that
398
- # contains the resource. You can obtain this value from the Azure Resource
399
- # Manager API or the portal.
400
- # @param instance_pool_name [String] The instance pool name.
401
- # @param [Hash{String => String}] A hash of custom headers that will be added
402
- # to the HTTP request.
403
- #
404
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
405
- #
406
- def list_by_instance_pool_async(resource_group_name, instance_pool_name, custom_headers:nil)
407
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
408
- fail ArgumentError, 'instance_pool_name is nil' if instance_pool_name.nil?
409
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
410
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
411
-
412
-
413
- request_headers = {}
414
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
415
-
416
- # Set Headers
417
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
418
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
419
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances'
420
-
421
- request_url = @base_url || @client.base_url
422
-
423
- options = {
424
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
425
- path_params: {'resourceGroupName' => resource_group_name,'instancePoolName' => instance_pool_name,'subscriptionId' => @client.subscription_id},
426
- query_params: {'api-version' => @client.api_version},
427
- headers: request_headers.merge(custom_headers || {}),
428
- base_url: request_url
429
- }
430
- promise = @client.make_request_async(:get, path_template, options)
431
-
432
- promise = promise.then do |result|
433
- http_response = result.response
434
- status_code = http_response.status
435
- response_content = http_response.body
436
- unless status_code == 200
437
- error_model = JSON.load(response_content)
438
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
439
- end
440
-
441
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
442
- # Deserialize Response
443
- if status_code == 200
444
- begin
445
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
446
- result_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ManagedInstanceListResult.mapper()
447
- result.body = @client.deserialize(result_mapper, parsed_response)
448
- rescue Exception => e
449
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
450
- end
451
- end
452
-
453
- result
454
- end
455
-
456
- promise.execute
457
- end
458
-
459
365
  #
460
366
  # Gets a list of all managed instances in the subscription.
461
367
  #
@@ -523,6 +429,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
523
429
  end
524
430
 
525
431
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
432
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
433
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
526
434
  # Deserialize Response
527
435
  if status_code == 200
528
436
  begin
@@ -635,6 +543,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
635
543
  end
636
544
 
637
545
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
546
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
547
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
638
548
  # Deserialize Response
639
549
  if status_code == 200
640
550
  begin
@@ -742,6 +652,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
742
652
  end
743
653
 
744
654
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
655
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
656
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
745
657
 
746
658
  result
747
659
  end
@@ -844,6 +756,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
844
756
  end
845
757
 
846
758
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
759
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
760
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
847
761
  # Deserialize Response
848
762
  if status_code == 200
849
763
  begin
@@ -932,94 +846,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
932
846
  end
933
847
 
934
848
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
935
- # Deserialize Response
936
- if status_code == 200
937
- begin
938
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
939
- result_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ManagedInstanceListResult.mapper()
940
- result.body = @client.deserialize(result_mapper, parsed_response)
941
- rescue Exception => e
942
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
943
- end
944
- end
945
-
946
- result
947
- end
948
-
949
- promise.execute
950
- end
951
-
952
- #
953
- # Gets a list of all managed instances in an instance pool.
954
- #
955
- # @param next_page_link [String] The NextLink from the previous successful call
956
- # to List operation.
957
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
958
- # will be added to the HTTP request.
959
- #
960
- # @return [ManagedInstanceListResult] operation results.
961
- #
962
- def list_by_instance_pool_next(next_page_link, custom_headers:nil)
963
- response = list_by_instance_pool_next_async(next_page_link, custom_headers:custom_headers).value!
964
- response.body unless response.nil?
965
- end
966
-
967
- #
968
- # Gets a list of all managed instances in an instance pool.
969
- #
970
- # @param next_page_link [String] The NextLink from the previous successful call
971
- # to List operation.
972
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
973
- # will be added to the HTTP request.
974
- #
975
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
976
- #
977
- def list_by_instance_pool_next_with_http_info(next_page_link, custom_headers:nil)
978
- list_by_instance_pool_next_async(next_page_link, custom_headers:custom_headers).value!
979
- end
980
-
981
- #
982
- # Gets a list of all managed instances in an instance pool.
983
- #
984
- # @param next_page_link [String] The NextLink from the previous successful call
985
- # to List operation.
986
- # @param [Hash{String => String}] A hash of custom headers that will be added
987
- # to the HTTP request.
988
- #
989
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
990
- #
991
- def list_by_instance_pool_next_async(next_page_link, custom_headers:nil)
992
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
993
-
994
-
995
- request_headers = {}
996
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
997
-
998
- # Set Headers
999
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1000
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1001
- path_template = '{nextLink}'
1002
-
1003
- request_url = @base_url || @client.base_url
1004
-
1005
- options = {
1006
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1007
- skip_encoding_path_params: {'nextLink' => next_page_link},
1008
- headers: request_headers.merge(custom_headers || {}),
1009
- base_url: request_url
1010
- }
1011
- promise = @client.make_request_async(:get, path_template, options)
1012
-
1013
- promise = promise.then do |result|
1014
- http_response = result.response
1015
- status_code = http_response.status
1016
- response_content = http_response.body
1017
- unless status_code == 200
1018
- error_model = JSON.load(response_content)
1019
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1020
- end
1021
-
1022
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
849
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
850
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1023
851
  # Deserialize Response
1024
852
  if status_code == 200
1025
853
  begin
@@ -1108,6 +936,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
1108
936
  end
1109
937
 
1110
938
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
939
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
940
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1111
941
  # Deserialize Response
1112
942
  if status_code == 200
1113
943
  begin
@@ -1148,30 +978,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
1148
978
  end
1149
979
  end
1150
980
 
1151
- #
1152
- # Gets a list of all managed instances in an instance pool.
1153
- #
1154
- # @param resource_group_name [String] The name of the resource group that
1155
- # contains the resource. You can obtain this value from the Azure Resource
1156
- # Manager API or the portal.
1157
- # @param instance_pool_name [String] The instance pool name.
1158
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
1159
- # will be added to the HTTP request.
1160
- #
1161
- # @return [ManagedInstanceListResult] which provide lazy access to pages of the
1162
- # response.
1163
- #
1164
- def list_by_instance_pool_as_lazy(resource_group_name, instance_pool_name, custom_headers:nil)
1165
- response = list_by_instance_pool_async(resource_group_name, instance_pool_name, custom_headers:custom_headers).value!
1166
- unless response.nil?
1167
- page = response.body
1168
- page.next_method = Proc.new do |next_page_link|
1169
- list_by_instance_pool_next_async(next_page_link, custom_headers:custom_headers)
1170
- end
1171
- page
1172
- end
1173
- end
1174
-
1175
981
  #
1176
982
  # Gets a list of all managed instances in the subscription.
1177
983
  #
@@ -117,8 +117,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
117
117
 
118
118
  # @return [Boolean] Specifies whether audit events are sent to Azure
119
119
  # Monitor.
120
- # In order to send the events to Azure Monitor, specify 'State' as
121
- # 'Enabled' and 'IsAzureMonitorTargetEnabled' as true.
120
+ # In order to send the events to Azure Monitor, specify 'state' as
121
+ # 'Enabled' and 'isAzureMonitorTargetEnabled' as true.
122
122
  #
123
123
  # When using REST API to configure auditing, Diagnostic Settings with
124
124
  # 'SQLSecurityAuditEvents' diagnostic logs category on the database
@@ -80,6 +80,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
80
80
  kind: {
81
81
  client_side_validation: true,
82
82
  required: false,
83
+ read_only: true,
83
84
  serialized_name: 'kind',
84
85
  type: {
85
86
  name: 'String'
@@ -6,32 +6,28 @@
6
6
  module Azure::SQL::Mgmt::V2015_05_01_preview
7
7
  module Models
8
8
  #
9
- # The resource model definition representing SKU
9
+ # An ARM Resource SKU.
10
10
  #
11
11
  class Sku
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The name of the SKU. Ex - P3. It is typically a
16
- # letter+number code
15
+ # @return [String] The name of the SKU, typically, a letter + Number
16
+ # code, e.g. P3.
17
17
  attr_accessor :name
18
18
 
19
- # @return [String] This field is required to be implemented by the
20
- # Resource Provider if the service has more than one tier, but is not
21
- # required on a PUT.
19
+ # @return [String] The tier or edition of the particular SKU, e.g. Basic,
20
+ # Premium.
22
21
  attr_accessor :tier
23
22
 
24
- # @return [String] The SKU size. When the name field is the combination
25
- # of tier and some other value, this would be the standalone code.
23
+ # @return [String] Size of the particular SKU
26
24
  attr_accessor :size
27
25
 
28
26
  # @return [String] If the service has different generations of hardware,
29
27
  # for the same SKU, then that can be captured here.
30
28
  attr_accessor :family
31
29
 
32
- # @return [Integer] If the SKU supports scale out/in then the capacity
33
- # integer should be included. If scale out/in is not possible for the
34
- # resource this may be omitted.
30
+ # @return [Integer] Capacity of the particular SKU.
35
31
  attr_accessor :capacity
36
32
 
37
33
 
@@ -89,6 +89,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
89
89
  end
90
90
 
91
91
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
92
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
93
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
92
94
  # Deserialize Response
93
95
  if status_code == 200
94
96
  begin
@@ -177,6 +179,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
177
179
  end
178
180
 
179
181
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
182
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
183
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
180
184
  # Deserialize Response
181
185
  if status_code == 200
182
186
  begin
@@ -105,6 +105,8 @@ module Azure::SQL::Mgmt::V2015_05_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
@@ -223,6 +225,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
223
225
  end
224
226
 
225
227
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
228
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
229
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
226
230
  # Deserialize Response
227
231
  if status_code == 200
228
232
  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
  # Deserialize Response
340
346
  if status_code == 200
341
347
  begin
@@ -105,6 +105,8 @@ module Azure::SQL::Mgmt::V2015_05_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
@@ -207,6 +209,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
207
209
  end
208
210
 
209
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?
210
214
  # Deserialize Response
211
215
  if status_code == 200
212
216
  begin
@@ -439,6 +443,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
439
443
  end
440
444
 
441
445
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
446
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
447
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
442
448
  # Deserialize Response
443
449
  if status_code == 200
444
450
  begin
@@ -550,6 +556,8 @@ module Azure::SQL::Mgmt::V2015_05_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
 
554
562
  result
555
563
  end
@@ -628,6 +636,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
628
636
  end
629
637
 
630
638
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
639
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
640
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
631
641
  # Deserialize Response
632
642
  if status_code == 200
633
643
  begin
@@ -91,6 +91,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
91
91
  end
92
92
 
93
93
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
94
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
95
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
94
96
  # Deserialize Response
95
97
  if status_code == 200
96
98
  begin
@@ -185,6 +187,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
185
187
  end
186
188
 
187
189
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
190
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
191
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
188
192
  # Deserialize Response
189
193
  if status_code == 200
190
194
  begin
@@ -283,6 +287,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
283
287
  end
284
288
 
285
289
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
290
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
291
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
286
292
  # Deserialize Response
287
293
  if status_code == 200
288
294
  begin
@@ -530,6 +536,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
530
536
  end
531
537
 
532
538
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
539
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
540
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
533
541
  # Deserialize Response
534
542
  if status_code == 200
535
543
  begin
@@ -637,6 +645,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
637
645
  end
638
646
 
639
647
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
648
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
649
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
640
650
 
641
651
  result
642
652
  end
@@ -736,6 +746,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
736
746
  end
737
747
 
738
748
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
749
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
750
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
739
751
  # Deserialize Response
740
752
  if status_code == 200
741
753
  begin
@@ -824,6 +836,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
824
836
  end
825
837
 
826
838
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
839
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
840
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
827
841
  # Deserialize Response
828
842
  if status_code == 200
829
843
  begin
@@ -912,6 +926,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
912
926
  end
913
927
 
914
928
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
929
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
930
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
915
931
  # Deserialize Response
916
932
  if status_code == 200
917
933
  begin