azure_mgmt_sql 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2014-04-01/generated/azure_mgmt_sql.rb +77 -63
  3. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +118 -16
  4. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +114 -16
  5. data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +6 -5
  6. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +12 -12
  7. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +12 -12
  8. data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  9. data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +12 -12
  10. data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +18 -17
  11. data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +12 -12
  12. data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +6 -5
  13. data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +649 -643
  14. data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +830 -0
  15. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +6 -5
  16. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +6 -5
  17. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +216 -213
  18. data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +130 -0
  19. data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +24 -22
  20. data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +18 -17
  21. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb +56 -0
  22. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb +56 -0
  23. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +43 -10
  24. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb +1 -0
  25. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_update.rb +43 -10
  26. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb +164 -0
  27. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_auto_failover.rb +16 -0
  28. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb +16 -0
  29. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb +57 -0
  30. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb +17 -0
  31. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_status.rb +18 -0
  32. data/lib/2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb +13 -0
  33. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +13 -0
  34. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +13 -0
  35. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb +13 -0
  36. data/lib/2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb +54 -0
  37. data/lib/2014-04-01/generated/azure_mgmt_sql/models/import_request.rb +12 -4
  38. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text.rb +72 -0
  39. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb +55 -0
  40. data/lib/2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb +52 -2
  41. data/lib/2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb +10 -3
  42. data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +6 -5
  43. data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +6 -5
  44. data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +6 -5
  45. data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +134 -0
  46. data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +18 -15
  47. data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +12 -10
  48. data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +38 -33
  49. data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +12 -10
  50. data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +6 -5
  51. data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +32 -30
  52. data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +28 -26
  53. data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +12 -12
  54. data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +18 -17
  55. data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +6 -5
  56. data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +134 -133
  57. data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +12 -10
  58. data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +12 -10
  59. data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +32 -17
  60. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +6 -5
  61. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +6 -5
  62. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +12 -12
  63. data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +22 -19
  64. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  65. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +12 -12
  66. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +18 -17
  67. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +31 -29
  68. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +71 -67
  69. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage.rb +110 -0
  70. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb +100 -0
  71. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +15 -13
  72. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +18 -17
  73. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +41 -38
  74. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +66 -62
  75. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +8 -1
  76. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +324 -0
  77. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +62 -56
  78. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +118 -107
  79. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +76 -71
  80. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +41 -38
  81. data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +30 -1
  82. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +21 -18
  83. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_restore_points.rb +527 -0
  84. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +1599 -0
  85. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/arm_sku.rb +92 -0
  86. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
  87. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
  88. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_mode.rb +17 -0
  89. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_options.rb +90 -0
  90. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_reason.rb +17 -0
  91. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
  92. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_database_restore_point_definition.rb +47 -0
  93. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +23 -0
  94. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +393 -0
  95. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
  96. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point.rb +124 -0
  97. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point_list_result.rb +100 -0
  98. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +348 -0
  99. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_database_definition.rb +145 -0
  100. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_operation_result.rb +170 -0
  101. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
  102. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_type.rb +16 -0
  103. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
  104. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_automatic_tuning.rb +110 -0
  105. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias.rb +74 -0
  106. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_acquisition.rb +47 -0
  107. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_list_result.rb +100 -0
  108. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/status.rb +32 -0
  109. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
  110. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +238 -0
  111. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +805 -0
  112. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +21 -1
  113. data/lib/profiles/latest/modules/sql_profile_module.rb +912 -749
  114. data/lib/profiles/latest/sql_latest_profile_client.rb +28 -9
  115. data/lib/profiles/latest/sql_module_definition.rb +0 -1
  116. data/lib/version.rb +1 -1
  117. metadata +49 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d87431ca42b993a3b8775817a31008749277a2ba
4
- data.tar.gz: 7c67d11a6be54ddadcc4a91faa810eff4e85ecc3
3
+ metadata.gz: 66f799eec83c21ea6dace8b6c15b500d99ea1284
4
+ data.tar.gz: 95b0bd4b185af7b7a743e6ee82a7ae7910faed10
5
5
  SHA512:
6
- metadata.gz: fa0c6426ce13b152c5e9d558b2c91a46d4615fd44f74481bba69fef3b29b34a4cab6d2499958c049da95adc7b96a78ac955290e85773007bb848bb0a62506a1e
7
- data.tar.gz: f59372d720379682750c10f14bebc6444b08aabc2a9cf574ebc6c2e4c310a8b6613a532bebb8efd9af595b1e933239fe80fe1ff1dfc5a55c04afedb84d87c9ee
6
+ metadata.gz: 8df0f0c1e8f49492d32cfb090a82d464c2de79c189d62fbb7fd92bed7a7b5534e1ad396283324231fc0a957aa3c79f71632ba068b722daaa9a071cb14ac57b72
7
+ data.tar.gz: f730b86ba99c036db955c33a849069bb4da89dfc9c61dade81a298735ae387f0b06498ad264b923e226c01159d0e70248df4937522371b94eaf17b496c66ec62
@@ -23,26 +23,29 @@ module Azure::SQL::Mgmt::V2014_04_01
23
23
  autoload :DatabaseAdvisors, '2014-04-01/generated/azure_mgmt_sql/database_advisors.rb'
24
24
  autoload :BackupLongTermRetentionPolicies, '2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb'
25
25
  autoload :BackupLongTermRetentionVaults, '2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb'
26
- autoload :RestorePoints, '2014-04-01/generated/azure_mgmt_sql/restore_points.rb'
27
26
  autoload :RecoverableDatabases, '2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb'
28
27
  autoload :RestorableDroppedDatabases, '2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb'
28
+ autoload :RestorePoints, '2014-04-01/generated/azure_mgmt_sql/restore_points.rb'
29
29
  autoload :Capabilities, '2014-04-01/generated/azure_mgmt_sql/capabilities.rb'
30
+ autoload :Servers, '2014-04-01/generated/azure_mgmt_sql/servers.rb'
30
31
  autoload :ServerConnectionPolicies, '2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb'
32
+ autoload :Databases, '2014-04-01/generated/azure_mgmt_sql/databases.rb'
31
33
  autoload :DatabaseThreatDetectionPolicies, '2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb'
32
34
  autoload :DataMaskingPolicies, '2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb'
33
35
  autoload :DataMaskingRules, '2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb'
34
36
  autoload :TransparentDataEncryptionConfigurations, '2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb'
37
+ autoload :Extensions, '2014-04-01/generated/azure_mgmt_sql/extensions.rb'
38
+ autoload :DisasterRecoveryConfigurations, '2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb'
39
+ autoload :ElasticPools, '2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb'
35
40
  autoload :FirewallRules, '2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb'
36
41
  autoload :GeoBackupPolicies, '2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb'
37
- autoload :Databases, '2014-04-01/generated/azure_mgmt_sql/databases.rb'
38
- autoload :ElasticPools, '2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb'
39
42
  autoload :Operations, '2014-04-01/generated/azure_mgmt_sql/operations.rb'
40
43
  autoload :Queries, '2014-04-01/generated/azure_mgmt_sql/queries.rb'
41
44
  autoload :QueryStatistics, '2014-04-01/generated/azure_mgmt_sql/query_statistics.rb'
45
+ autoload :QueryTexts, '2014-04-01/generated/azure_mgmt_sql/query_texts.rb'
42
46
  autoload :ReplicationLinks, '2014-04-01/generated/azure_mgmt_sql/replication_links.rb'
43
47
  autoload :ServerAzureADAdministrators, '2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb'
44
48
  autoload :ServerCommunicationLinks, '2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb'
45
- autoload :Servers, '2014-04-01/generated/azure_mgmt_sql/servers.rb'
46
49
  autoload :ServiceObjectives, '2014-04-01/generated/azure_mgmt_sql/service_objectives.rb'
47
50
  autoload :ElasticPoolActivities, '2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb'
48
51
  autoload :ElasticPoolDatabaseActivities, '2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb'
@@ -60,88 +63,95 @@ module Azure::SQL::Mgmt::V2014_04_01
60
63
  module Models
61
64
  autoload :FirewallRuleListResult, '2014-04-01/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb'
62
65
  autoload :Resource, '2014-04-01/generated/azure_mgmt_sql/models/resource.rb'
63
- autoload :SloUsageMetric, '2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb'
64
- autoload :ServerUsage, '2014-04-01/generated/azure_mgmt_sql/models/server_usage.rb'
65
- autoload :AdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/advisor_list_result.rb'
66
- autoload :ServerCommunicationLinkListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb'
67
- autoload :ElasticPoolDatabaseActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
68
- autoload :ServerUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_usage_list_result.rb'
69
- autoload :ElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
66
+ autoload :DisasterRecoveryConfigurationListResult, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb'
70
67
  autoload :ServerAdministratorListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_administrator_list_result.rb'
71
- autoload :RecommendedElasticPoolListMetricsResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
72
- autoload :DatabaseUsage, '2014-04-01/generated/azure_mgmt_sql/models/database_usage.rb'
73
- autoload :RecommendedElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
68
+ autoload :ServerUsage, '2014-04-01/generated/azure_mgmt_sql/models/server_usage.rb'
69
+ autoload :ServiceTierAdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
74
70
  autoload :ReplicationLinkListResult, '2014-04-01/generated/azure_mgmt_sql/models/replication_link_list_result.rb'
75
- autoload :MaxSizeCapability, '2014-04-01/generated/azure_mgmt_sql/models/max_size_capability.rb'
71
+ autoload :ElasticPoolDatabaseActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
76
72
  autoload :RecommendedElasticPoolMetric, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
77
- autoload :EditionCapability, '2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb'
78
- autoload :DatabaseUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_usage_list_result.rb'
79
- autoload :ElasticPoolPerDatabaseMaxDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb'
73
+ autoload :ElasticPoolActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
74
+ autoload :ServerUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_usage_list_result.rb'
75
+ autoload :RecoverableDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb'
76
+ autoload :QueryTextListResult, '2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb'
77
+ autoload :RestorableDroppedDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb'
78
+ autoload :QueryText, '2014-04-01/generated/azure_mgmt_sql/models/query_text.rb'
79
+ autoload :RestorePointListResult, '2014-04-01/generated/azure_mgmt_sql/models/restore_point_list_result.rb'
80
80
  autoload :QueryStatisticListResult, '2014-04-01/generated/azure_mgmt_sql/models/query_statistic_list_result.rb'
81
- autoload :ElasticPoolEditionCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb'
81
+ autoload :ServiceObjectiveCapability, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_capability.rb'
82
+ autoload :DataMaskingRuleListResult, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb'
83
+ autoload :ElasticPoolPerDatabaseMinDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb'
84
+ autoload :TransparentDataEncryptionListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_list_result.rb'
85
+ autoload :ElasticPoolDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb'
86
+ autoload :ExtensionListResult, '2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb'
87
+ autoload :ServerVersionCapability, '2014-04-01/generated/azure_mgmt_sql/models/server_version_capability.rb'
82
88
  autoload :TopQueriesListResult, '2014-04-01/generated/azure_mgmt_sql/models/top_queries_list_result.rb'
83
- autoload :LocationCapabilities, '2014-04-01/generated/azure_mgmt_sql/models/location_capabilities.rb'
84
- autoload :TopQueries, '2014-04-01/generated/azure_mgmt_sql/models/top_queries.rb'
85
89
  autoload :CheckNameAvailabilityRequest, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_request.rb'
90
+ autoload :TopQueries, '2014-04-01/generated/azure_mgmt_sql/models/top_queries.rb'
91
+ autoload :TransparentDataEncryptionActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
86
92
  autoload :QueryStatistic, '2014-04-01/generated/azure_mgmt_sql/models/query_statistic.rb'
87
- autoload :DatabaseTableAuditingPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_table_auditing_policy_list_result.rb'
88
- autoload :TableAuditingPolicyProperties, '2014-04-01/generated/azure_mgmt_sql/models/table_auditing_policy_properties.rb'
89
93
  autoload :ServerListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_list_result.rb'
90
- autoload :GeoBackupPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
94
+ autoload :QueryInterval, '2014-04-01/generated/azure_mgmt_sql/models/query_interval.rb'
91
95
  autoload :OperationImpact, '2014-04-01/generated/azure_mgmt_sql/models/operation_impact.rb'
96
+ autoload :ElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
97
+ autoload :ServerCommunicationLinkListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb'
98
+ autoload :QueryMetric, '2014-04-01/generated/azure_mgmt_sql/models/query_metric.rb'
99
+ autoload :DatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_list_result.rb'
100
+ autoload :AdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/advisor_list_result.rb'
101
+ autoload :OperationListResult, '2014-04-01/generated/azure_mgmt_sql/models/operation_list_result.rb'
102
+ autoload :BackupLongTermRetentionVaultListResult, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb'
103
+ autoload :RecommendedElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
104
+ autoload :GeoBackupPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
105
+ autoload :MaxSizeCapability, '2014-04-01/generated/azure_mgmt_sql/models/max_size_capability.rb'
92
106
  autoload :ImportExtensionRequest, '2014-04-01/generated/azure_mgmt_sql/models/import_extension_request.rb'
93
- autoload :ServiceTierAdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
94
- autoload :TransparentDataEncryptionActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
95
- autoload :ElasticPoolActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
96
- autoload :RecoverableDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb'
107
+ autoload :ElasticPoolPerDatabaseMaxDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb'
108
+ autoload :DatabaseUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_usage_list_result.rb'
109
+ autoload :LocationCapabilities, '2014-04-01/generated/azure_mgmt_sql/models/location_capabilities.rb'
110
+ autoload :DatabaseUsage, '2014-04-01/generated/azure_mgmt_sql/models/database_usage.rb'
111
+ autoload :SloUsageMetric, '2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb'
97
112
  autoload :ExportRequest, '2014-04-01/generated/azure_mgmt_sql/models/export_request.rb'
98
- autoload :ServiceObjectiveCapability, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_capability.rb'
113
+ autoload :DatabaseTableAuditingPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_table_auditing_policy_list_result.rb'
99
114
  autoload :MetricValue, '2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb'
100
- autoload :ElasticPoolDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb'
115
+ autoload :BackupLongTermRetentionPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb'
101
116
  autoload :MetricName, '2014-04-01/generated/azure_mgmt_sql/models/metric_name.rb'
102
- autoload :CheckNameAvailabilityResponse, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_response.rb'
117
+ autoload :ServiceObjectiveListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_list_result.rb'
103
118
  autoload :Metric, '2014-04-01/generated/azure_mgmt_sql/models/metric.rb'
104
- autoload :DataMaskingRuleListResult, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb'
119
+ autoload :ElasticPoolEditionCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb'
105
120
  autoload :MetricListResult, '2014-04-01/generated/azure_mgmt_sql/models/metric_list_result.rb'
106
- autoload :ServerTableAuditingPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_table_auditing_policy_list_result.rb'
121
+ autoload :TableAuditingPolicyProperties, '2014-04-01/generated/azure_mgmt_sql/models/table_auditing_policy_properties.rb'
107
122
  autoload :MetricAvailability, '2014-04-01/generated/azure_mgmt_sql/models/metric_availability.rb'
108
- autoload :RestorePointListResult, '2014-04-01/generated/azure_mgmt_sql/models/restore_point_list_result.rb'
123
+ autoload :RecommendedElasticPoolListMetricsResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
109
124
  autoload :MetricDefinition, '2014-04-01/generated/azure_mgmt_sql/models/metric_definition.rb'
110
- autoload :ElasticPoolPerDatabaseMinDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb'
125
+ autoload :CheckNameAvailabilityResponse, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_response.rb'
111
126
  autoload :MetricDefinitionListResult, '2014-04-01/generated/azure_mgmt_sql/models/metric_definition_list_result.rb'
112
- autoload :ServiceObjectiveListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_list_result.rb'
127
+ autoload :EditionCapability, '2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb'
113
128
  autoload :OperationDisplay, '2014-04-01/generated/azure_mgmt_sql/models/operation_display.rb'
114
- autoload :DatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_list_result.rb'
129
+ autoload :ServerTableAuditingPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_table_auditing_policy_list_result.rb'
115
130
  autoload :Operation, '2014-04-01/generated/azure_mgmt_sql/models/operation.rb'
116
- autoload :ServerVersionCapability, '2014-04-01/generated/azure_mgmt_sql/models/server_version_capability.rb'
117
- autoload :OperationListResult, '2014-04-01/generated/azure_mgmt_sql/models/operation_list_result.rb'
118
- autoload :RestorableDroppedDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb'
119
- autoload :QueryMetric, '2014-04-01/generated/azure_mgmt_sql/models/query_metric.rb'
120
- autoload :TransparentDataEncryptionListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_list_result.rb'
121
- autoload :QueryInterval, '2014-04-01/generated/azure_mgmt_sql/models/query_interval.rb'
122
131
  autoload :ProxyResource, '2014-04-01/generated/azure_mgmt_sql/models/proxy_resource.rb'
123
132
  autoload :Advisor, '2014-04-01/generated/azure_mgmt_sql/models/advisor.rb'
124
133
  autoload :BackupLongTermRetentionPolicy, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb'
125
134
  autoload :BackupLongTermRetentionVault, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb'
126
135
  autoload :TrackedResource, '2014-04-01/generated/azure_mgmt_sql/models/tracked_resource.rb'
127
- autoload :RestorePoint, '2014-04-01/generated/azure_mgmt_sql/models/restore_point.rb'
128
136
  autoload :RecoverableDatabase, '2014-04-01/generated/azure_mgmt_sql/models/recoverable_database.rb'
129
137
  autoload :RestorableDroppedDatabase, '2014-04-01/generated/azure_mgmt_sql/models/restorable_dropped_database.rb'
138
+ autoload :RestorePoint, '2014-04-01/generated/azure_mgmt_sql/models/restore_point.rb'
130
139
  autoload :ServerConnectionPolicy, '2014-04-01/generated/azure_mgmt_sql/models/server_connection_policy.rb'
131
- autoload :DatabaseSecurityAlertPolicy, '2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb'
132
- autoload :DataMaskingPolicy, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_policy.rb'
133
- autoload :DataMaskingRule, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule.rb'
140
+ autoload :ServiceTierAdvisor, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor.rb'
134
141
  autoload :TransparentDataEncryption, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption.rb'
135
142
  autoload :RecommendedIndex, '2014-04-01/generated/azure_mgmt_sql/models/recommended_index.rb'
136
- autoload :ServiceTierAdvisor, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor.rb'
143
+ autoload :Database, '2014-04-01/generated/azure_mgmt_sql/models/database.rb'
137
144
  autoload :DatabaseUpdate, '2014-04-01/generated/azure_mgmt_sql/models/database_update.rb'
138
- autoload :ElasticPoolUpdate, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb'
139
145
  autoload :TransparentDataEncryptionActivity, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb'
140
146
  autoload :ElasticPoolDatabaseActivity, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb'
141
147
  autoload :ElasticPoolActivity, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity.rb'
142
- autoload :Database, '2014-04-01/generated/azure_mgmt_sql/models/database.rb'
143
- autoload :ElasticPool, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb'
144
148
  autoload :RecommendedElasticPool, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb'
149
+ autoload :DatabaseSecurityAlertPolicy, '2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb'
150
+ autoload :DataMaskingPolicy, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_policy.rb'
151
+ autoload :DataMaskingRule, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule.rb'
152
+ autoload :DisasterRecoveryConfiguration, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb'
153
+ autoload :ElasticPool, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb'
154
+ autoload :ElasticPoolUpdate, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb'
145
155
  autoload :FirewallRule, '2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb'
146
156
  autoload :GeoBackupPolicy, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy.rb'
147
157
  autoload :ImportExportResponse, '2014-04-01/generated/azure_mgmt_sql/models/import_export_response.rb'
@@ -162,25 +172,30 @@ module Azure::SQL::Mgmt::V2014_04_01
162
172
  autoload :CapabilityStatus, '2014-04-01/generated/azure_mgmt_sql/models/capability_status.rb'
163
173
  autoload :MaxSizeUnits, '2014-04-01/generated/azure_mgmt_sql/models/max_size_units.rb'
164
174
  autoload :PerformanceLevelUnit, '2014-04-01/generated/azure_mgmt_sql/models/performance_level_unit.rb'
175
+ autoload :CheckNameAvailabilityReason, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_reason.rb'
165
176
  autoload :ServerConnectionType, '2014-04-01/generated/azure_mgmt_sql/models/server_connection_type.rb'
166
- autoload :SecurityAlertPolicyState, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_state.rb'
167
- autoload :SecurityAlertPolicyEmailAccountAdmins, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_email_account_admins.rb'
168
- autoload :SecurityAlertPolicyUseServerDefault, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb'
169
- autoload :DataMaskingState, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_state.rb'
170
- autoload :DataMaskingRuleState, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule_state.rb'
171
- autoload :DataMaskingFunction, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_function.rb'
177
+ autoload :CreateMode, '2014-04-01/generated/azure_mgmt_sql/models/create_mode.rb'
178
+ autoload :DatabaseEdition, '2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb'
179
+ autoload :ServiceObjectiveName, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb'
172
180
  autoload :TransparentDataEncryptionStatus, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_status.rb'
173
181
  autoload :RecommendedIndexAction, '2014-04-01/generated/azure_mgmt_sql/models/recommended_index_action.rb'
174
182
  autoload :RecommendedIndexState, '2014-04-01/generated/azure_mgmt_sql/models/recommended_index_state.rb'
175
183
  autoload :RecommendedIndexType, '2014-04-01/generated/azure_mgmt_sql/models/recommended_index_type.rb'
176
- autoload :ServiceObjectiveName, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb'
177
- autoload :CreateMode, '2014-04-01/generated/azure_mgmt_sql/models/create_mode.rb'
178
- autoload :DatabaseEdition, '2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb'
179
184
  autoload :ReadScale, '2014-04-01/generated/azure_mgmt_sql/models/read_scale.rb'
180
185
  autoload :SampleName, '2014-04-01/generated/azure_mgmt_sql/models/sample_name.rb'
181
- autoload :ElasticPoolState, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_state.rb'
182
- autoload :ElasticPoolEdition, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition.rb'
183
186
  autoload :TransparentDataEncryptionActivityStatus, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_status.rb'
187
+ autoload :ElasticPoolEdition, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition.rb'
188
+ autoload :SecurityAlertPolicyState, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_state.rb'
189
+ autoload :SecurityAlertPolicyEmailAccountAdmins, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_email_account_admins.rb'
190
+ autoload :SecurityAlertPolicyUseServerDefault, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb'
191
+ autoload :DataMaskingState, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_state.rb'
192
+ autoload :DataMaskingRuleState, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule_state.rb'
193
+ autoload :DataMaskingFunction, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_function.rb'
194
+ autoload :DisasterRecoveryConfigurationStatus, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_status.rb'
195
+ autoload :DisasterRecoveryConfigurationAutoFailover, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_auto_failover.rb'
196
+ autoload :DisasterRecoveryConfigurationFailoverPolicy, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb'
197
+ autoload :DisasterRecoveryConfigurationRole, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb'
198
+ autoload :ElasticPoolState, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_state.rb'
184
199
  autoload :GeoBackupPolicyState, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy_state.rb'
185
200
  autoload :StorageKeyType, '2014-04-01/generated/azure_mgmt_sql/models/storage_key_type.rb'
186
201
  autoload :AuthenticationType, '2014-04-01/generated/azure_mgmt_sql/models/authentication_type.rb'
@@ -195,6 +210,5 @@ module Azure::SQL::Mgmt::V2014_04_01
195
210
  autoload :ReplicationState, '2014-04-01/generated/azure_mgmt_sql/models/replication_state.rb'
196
211
  autoload :ServerVersion, '2014-04-01/generated/azure_mgmt_sql/models/server_version.rb'
197
212
  autoload :ServerState, '2014-04-01/generated/azure_mgmt_sql/models/server_state.rb'
198
- autoload :CheckNameAvailabilityReason, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_reason.rb'
199
213
  end
200
214
  end
@@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01
37
37
  #
38
38
  # @return [BackupLongTermRetentionPolicy] operation results.
39
39
  #
40
- def get(resource_group_name, server_name, database_name, custom_headers = nil)
41
- response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
40
+ def get(resource_group_name, server_name, database_name, custom_headers:nil)
41
+ response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
42
42
  response.body unless response.nil?
43
43
  end
44
44
 
@@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01
55
55
  #
56
56
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
57
57
  #
58
- def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
59
- get_async(resource_group_name, server_name, database_name, custom_headers).value!
58
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
59
+ get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
60
60
  end
61
61
 
62
62
  #
@@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01
72
72
  #
73
73
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
74
  #
75
- def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
75
+ def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
76
76
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
77
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
78
78
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -82,6 +82,7 @@ module Azure::SQL::Mgmt::V2014_04_01
82
82
 
83
83
 
84
84
  request_headers = {}
85
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
85
86
 
86
87
  # Set Headers
87
88
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -141,8 +142,8 @@ module Azure::SQL::Mgmt::V2014_04_01
141
142
  #
142
143
  # @return [BackupLongTermRetentionPolicy] operation results.
143
144
  #
144
- def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
145
- response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
145
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
146
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
146
147
  response.body unless response.nil?
147
148
  end
148
149
 
@@ -160,9 +161,9 @@ module Azure::SQL::Mgmt::V2014_04_01
160
161
  # @return [Concurrent::Promise] promise which provides async access to http
161
162
  # response.
162
163
  #
163
- def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
164
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
164
165
  # Send request
165
- promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers)
166
+ promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers)
166
167
 
167
168
  promise = promise.then do |response|
168
169
  # Defining deserialization method.
@@ -178,6 +179,108 @@ module Azure::SQL::Mgmt::V2014_04_01
178
179
  promise
179
180
  end
180
181
 
182
+ #
183
+ # Returns a database backup long term retention policy
184
+ #
185
+ # @param resource_group_name [String] The name of the resource group that
186
+ # contains the resource. You can obtain this value from the Azure Resource
187
+ # Manager API or the portal.
188
+ # @param server_name [String] The name of the server.
189
+ # @param database_name [String] The name of the database.
190
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
191
+ # will be added to the HTTP request.
192
+ #
193
+ # @return [BackupLongTermRetentionPolicyListResult] operation results.
194
+ #
195
+ def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
196
+ response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
197
+ response.body unless response.nil?
198
+ end
199
+
200
+ #
201
+ # Returns a database backup long term retention policy
202
+ #
203
+ # @param resource_group_name [String] The name of the resource group that
204
+ # contains the resource. You can obtain this value from the Azure Resource
205
+ # Manager API or the portal.
206
+ # @param server_name [String] The name of the server.
207
+ # @param database_name [String] The name of the database.
208
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
209
+ # will be added to the HTTP request.
210
+ #
211
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
212
+ #
213
+ def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
214
+ list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
215
+ end
216
+
217
+ #
218
+ # Returns a database backup long term retention policy
219
+ #
220
+ # @param resource_group_name [String] The name of the resource group that
221
+ # contains the resource. You can obtain this value from the Azure Resource
222
+ # Manager API or the portal.
223
+ # @param server_name [String] The name of the server.
224
+ # @param database_name [String] The name of the database.
225
+ # @param [Hash{String => String}] A hash of custom headers that will be added
226
+ # to the HTTP request.
227
+ #
228
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
229
+ #
230
+ def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
231
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
232
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
233
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
234
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
235
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
236
+
237
+
238
+ request_headers = {}
239
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
240
+
241
+ # Set Headers
242
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
243
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
244
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies'
245
+
246
+ request_url = @base_url || @client.base_url
247
+
248
+ options = {
249
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
250
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name},
251
+ query_params: {'api-version' => @client.api_version},
252
+ headers: request_headers.merge(custom_headers || {}),
253
+ base_url: request_url
254
+ }
255
+ promise = @client.make_request_async(:get, path_template, options)
256
+
257
+ promise = promise.then do |result|
258
+ http_response = result.response
259
+ status_code = http_response.status
260
+ response_content = http_response.body
261
+ unless status_code == 200
262
+ error_model = JSON.load(response_content)
263
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
264
+ end
265
+
266
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
267
+ # Deserialize Response
268
+ if status_code == 200
269
+ begin
270
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
271
+ result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult.mapper()
272
+ result.body = @client.deserialize(result_mapper, parsed_response)
273
+ rescue Exception => e
274
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
275
+ end
276
+ end
277
+
278
+ result
279
+ end
280
+
281
+ promise.execute
282
+ end
283
+
181
284
  #
182
285
  # Creates or updates a database backup long term retention policy
183
286
  #
@@ -193,8 +296,8 @@ module Azure::SQL::Mgmt::V2014_04_01
193
296
  #
194
297
  # @return [BackupLongTermRetentionPolicy] operation results.
195
298
  #
196
- def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
197
- response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
299
+ def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
300
+ response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
198
301
  response.body unless response.nil?
199
302
  end
200
303
 
@@ -213,8 +316,8 @@ module Azure::SQL::Mgmt::V2014_04_01
213
316
  #
214
317
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
215
318
  #
216
- def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
217
- begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
319
+ def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
320
+ begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
218
321
  end
219
322
 
220
323
  #
@@ -232,7 +335,7 @@ module Azure::SQL::Mgmt::V2014_04_01
232
335
  #
233
336
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
234
337
  #
235
- def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
338
+ def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
236
339
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
237
340
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
238
341
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -243,13 +346,12 @@ module Azure::SQL::Mgmt::V2014_04_01
243
346
 
244
347
 
245
348
  request_headers = {}
349
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
246
350
 
247
351
  # Set Headers
248
352
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
249
353
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
250
354
 
251
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
252
-
253
355
  # Serialize Request
254
356
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicy.mapper()
255
357
  request_content = @client.serialize(request_mapper, parameters)
@@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2014_04_01
36
36
  #
37
37
  # @return [BackupLongTermRetentionVault] operation results.
38
38
  #
39
- def get(resource_group_name, server_name, custom_headers = nil)
40
- response = get_async(resource_group_name, server_name, custom_headers).value!
39
+ def get(resource_group_name, server_name, custom_headers:nil)
40
+ response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value!
41
41
  response.body unless response.nil?
42
42
  end
43
43
 
@@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2014_04_01
53
53
  #
54
54
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
55
  #
56
- def get_with_http_info(resource_group_name, server_name, custom_headers = nil)
57
- get_async(resource_group_name, server_name, custom_headers).value!
56
+ def get_with_http_info(resource_group_name, server_name, custom_headers:nil)
57
+ get_async(resource_group_name, server_name, custom_headers:custom_headers).value!
58
58
  end
59
59
 
60
60
  #
@@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2014_04_01
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def get_async(resource_group_name, server_name, custom_headers = nil)
72
+ def get_async(resource_group_name, server_name, custom_headers:nil)
73
73
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
74
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
75
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -78,6 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01
78
78
 
79
79
 
80
80
  request_headers = {}
81
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
82
 
82
83
  # Set Headers
83
84
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -136,8 +137,8 @@ module Azure::SQL::Mgmt::V2014_04_01
136
137
  #
137
138
  # @return [BackupLongTermRetentionVault] operation results.
138
139
  #
139
- def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil)
140
- response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value!
140
+ def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil)
141
+ response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value!
141
142
  response.body unless response.nil?
142
143
  end
143
144
 
@@ -154,9 +155,9 @@ module Azure::SQL::Mgmt::V2014_04_01
154
155
  # @return [Concurrent::Promise] promise which provides async access to http
155
156
  # response.
156
157
  #
157
- def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil)
158
+ def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil)
158
159
  # Send request
159
- promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers)
160
+ promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers)
160
161
 
161
162
  promise = promise.then do |response|
162
163
  # Defining deserialization method.
@@ -172,6 +173,104 @@ module Azure::SQL::Mgmt::V2014_04_01
172
173
  promise
173
174
  end
174
175
 
176
+ #
177
+ # Gets server backup long term retention vaults in a server
178
+ #
179
+ # @param resource_group_name [String] The name of the resource group that
180
+ # contains the resource. You can obtain this value from the Azure Resource
181
+ # Manager API or the portal.
182
+ # @param server_name [String] The name of the server.
183
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
184
+ # will be added to the HTTP request.
185
+ #
186
+ # @return [BackupLongTermRetentionVaultListResult] operation results.
187
+ #
188
+ def list_by_server(resource_group_name, server_name, custom_headers:nil)
189
+ response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
190
+ response.body unless response.nil?
191
+ end
192
+
193
+ #
194
+ # Gets server backup long term retention vaults in a server
195
+ #
196
+ # @param resource_group_name [String] The name of the resource group that
197
+ # contains the resource. You can obtain this value from the Azure Resource
198
+ # Manager API or the portal.
199
+ # @param server_name [String] The name of the server.
200
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
201
+ # will be added to the HTTP request.
202
+ #
203
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
204
+ #
205
+ def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
206
+ list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
207
+ end
208
+
209
+ #
210
+ # Gets server backup long term retention vaults in a server
211
+ #
212
+ # @param resource_group_name [String] The name of the resource group that
213
+ # contains the resource. You can obtain this value from the Azure Resource
214
+ # Manager API or the portal.
215
+ # @param server_name [String] The name of the server.
216
+ # @param [Hash{String => String}] A hash of custom headers that will be added
217
+ # to the HTTP request.
218
+ #
219
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
220
+ #
221
+ def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
222
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
223
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
224
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
225
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
226
+
227
+
228
+ request_headers = {}
229
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
230
+
231
+ # Set Headers
232
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
233
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
234
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/backupLongTermRetentionVaults'
235
+
236
+ request_url = @base_url || @client.base_url
237
+
238
+ options = {
239
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
240
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
241
+ query_params: {'api-version' => @client.api_version},
242
+ headers: request_headers.merge(custom_headers || {}),
243
+ base_url: request_url
244
+ }
245
+ promise = @client.make_request_async(:get, path_template, options)
246
+
247
+ promise = promise.then do |result|
248
+ http_response = result.response
249
+ status_code = http_response.status
250
+ response_content = http_response.body
251
+ unless status_code == 200
252
+ error_model = JSON.load(response_content)
253
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
254
+ end
255
+
256
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
257
+ # Deserialize Response
258
+ if status_code == 200
259
+ begin
260
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
261
+ result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVaultListResult.mapper()
262
+ result.body = @client.deserialize(result_mapper, parsed_response)
263
+ rescue Exception => e
264
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
265
+ end
266
+ end
267
+
268
+ result
269
+ end
270
+
271
+ promise.execute
272
+ end
273
+
175
274
  #
176
275
  # Updates a server backup long term retention vault
177
276
  #
@@ -186,8 +285,8 @@ module Azure::SQL::Mgmt::V2014_04_01
186
285
  #
187
286
  # @return [BackupLongTermRetentionVault] operation results.
188
287
  #
189
- def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers = nil)
190
- response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value!
288
+ def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers:nil)
289
+ response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value!
191
290
  response.body unless response.nil?
192
291
  end
193
292
 
@@ -205,8 +304,8 @@ module Azure::SQL::Mgmt::V2014_04_01
205
304
  #
206
305
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
207
306
  #
208
- def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil)
209
- begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value!
307
+ def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil)
308
+ begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value!
210
309
  end
211
310
 
212
311
  #
@@ -223,7 +322,7 @@ module Azure::SQL::Mgmt::V2014_04_01
223
322
  #
224
323
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
225
324
  #
226
- def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil)
325
+ def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil)
227
326
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
228
327
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
229
328
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -233,13 +332,12 @@ module Azure::SQL::Mgmt::V2014_04_01
233
332
 
234
333
 
235
334
  request_headers = {}
335
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
236
336
 
237
337
  # Set Headers
238
338
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
239
339
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
240
340
 
241
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
242
-
243
341
  # Serialize Request
244
342
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVault.mapper()
245
343
  request_content = @client.serialize(request_mapper, parameters)