azure_mgmt_sql 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -33,8 +33,8 @@ module Azure::SQL::Mgmt::V2014_04_01
33
33
  #
34
34
  # @return [LocationCapabilities] operation results.
35
35
  #
36
- def list_by_location(location_id, custom_headers = nil)
37
- response = list_by_location_async(location_id, custom_headers).value!
36
+ def list_by_location(location_id, custom_headers:nil)
37
+ response = list_by_location_async(location_id, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -47,8 +47,8 @@ module Azure::SQL::Mgmt::V2014_04_01
47
47
  #
48
48
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
49
  #
50
- def list_by_location_with_http_info(location_id, custom_headers = nil)
51
- list_by_location_async(location_id, custom_headers).value!
50
+ def list_by_location_with_http_info(location_id, custom_headers:nil)
51
+ list_by_location_async(location_id, custom_headers:custom_headers).value!
52
52
  end
53
53
 
54
54
  #
@@ -60,13 +60,14 @@ module Azure::SQL::Mgmt::V2014_04_01
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_by_location_async(location_id, custom_headers = nil)
63
+ def list_by_location_async(location_id, custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
66
66
  fail ArgumentError, 'location_id is nil' if location_id.nil?
67
67
 
68
68
 
69
69
  request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
71
 
71
72
  # Set Headers
72
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01
39
39
  #
40
40
  # @return [DataMaskingPolicy] operation results.
41
41
  #
42
- def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
43
- response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
42
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
43
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
44
44
  response.body unless response.nil?
45
45
  end
46
46
 
@@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01
59
59
  #
60
60
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
61
  #
62
- def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
63
- create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
62
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
63
+ create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
64
64
  end
65
65
 
66
66
  #
@@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01
78
78
  #
79
79
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
80
80
  #
81
- def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
81
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
82
82
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
83
83
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
84
84
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -89,13 +89,12 @@ module Azure::SQL::Mgmt::V2014_04_01
89
89
 
90
90
 
91
91
  request_headers = {}
92
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
92
93
 
93
94
  # Set Headers
94
95
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
95
96
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
96
97
 
97
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
98
-
99
98
  # Serialize Request
100
99
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy.mapper()
101
100
  request_content = @client.serialize(request_mapper, parameters)
@@ -155,8 +154,8 @@ module Azure::SQL::Mgmt::V2014_04_01
155
154
  #
156
155
  # @return [DataMaskingPolicy] operation results.
157
156
  #
158
- def get(resource_group_name, server_name, database_name, custom_headers = nil)
159
- response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
157
+ def get(resource_group_name, server_name, database_name, custom_headers:nil)
158
+ response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
160
159
  response.body unless response.nil?
161
160
  end
162
161
 
@@ -173,8 +172,8 @@ module Azure::SQL::Mgmt::V2014_04_01
173
172
  #
174
173
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
175
174
  #
176
- def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
177
- get_async(resource_group_name, server_name, database_name, custom_headers).value!
175
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
176
+ get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
178
177
  end
179
178
 
180
179
  #
@@ -190,7 +189,7 @@ module Azure::SQL::Mgmt::V2014_04_01
190
189
  #
191
190
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
192
191
  #
193
- def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
192
+ def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
194
193
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
195
194
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
196
195
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -200,6 +199,7 @@ module Azure::SQL::Mgmt::V2014_04_01
200
199
 
201
200
 
202
201
  request_headers = {}
202
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
203
203
 
204
204
  # Set Headers
205
205
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -40,8 +40,8 @@ module Azure::SQL::Mgmt::V2014_04_01
40
40
  #
41
41
  # @return [DataMaskingRule] operation results.
42
42
  #
43
- def create_or_update(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers = nil)
44
- response = create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers).value!
43
+ def create_or_update(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:nil)
44
+ response = create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:custom_headers).value!
45
45
  response.body unless response.nil?
46
46
  end
47
47
 
@@ -61,8 +61,8 @@ module Azure::SQL::Mgmt::V2014_04_01
61
61
  #
62
62
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
63
63
  #
64
- def create_or_update_with_http_info(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers = nil)
65
- create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers).value!
64
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:nil)
65
+ create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:custom_headers).value!
66
66
  end
67
67
 
68
68
  #
@@ -81,7 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01
81
81
  #
82
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
83
  #
84
- def create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers = nil)
84
+ def create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:nil)
85
85
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
86
86
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
87
87
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -93,13 +93,12 @@ module Azure::SQL::Mgmt::V2014_04_01
93
93
 
94
94
 
95
95
  request_headers = {}
96
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
96
97
 
97
98
  # Set Headers
98
99
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
99
100
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
100
101
 
101
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
102
-
103
102
  # Serialize Request
104
103
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRule.mapper()
105
104
  request_content = @client.serialize(request_mapper, parameters)
@@ -169,8 +168,8 @@ module Azure::SQL::Mgmt::V2014_04_01
169
168
  #
170
169
  # @return [DataMaskingRuleListResult] operation results.
171
170
  #
172
- def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil)
173
- response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
171
+ def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
172
+ response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
174
173
  response.body unless response.nil?
175
174
  end
176
175
 
@@ -187,8 +186,8 @@ module Azure::SQL::Mgmt::V2014_04_01
187
186
  #
188
187
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
189
188
  #
190
- def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
191
- list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
189
+ def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
190
+ list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
192
191
  end
193
192
 
194
193
  #
@@ -204,7 +203,7 @@ module Azure::SQL::Mgmt::V2014_04_01
204
203
  #
205
204
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
206
205
  #
207
- def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil)
206
+ def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
208
207
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
209
208
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
210
209
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -214,6 +213,7 @@ module Azure::SQL::Mgmt::V2014_04_01
214
213
 
215
214
 
216
215
  request_headers = {}
216
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
217
217
 
218
218
  # Set Headers
219
219
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01
37
37
  #
38
38
  # @return [AdvisorListResult] operation results.
39
39
  #
40
- def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil)
41
- response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
40
+ def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
41
+ response = list_by_database_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 list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
59
- list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
58
+ def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
59
+ list_by_database_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 list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil)
75
+ def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
76
76
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
77
77
  fail ArgumentError, 'server_name is nil' if server_name.nil?
78
78
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01
81
81
 
82
82
 
83
83
  request_headers = {}
84
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
85
 
85
86
  # Set Headers
86
87
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -139,8 +140,8 @@ module Azure::SQL::Mgmt::V2014_04_01
139
140
  #
140
141
  # @return [Advisor] operation results.
141
142
  #
142
- def get(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil)
143
- response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value!
143
+ def get(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
144
+ response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value!
144
145
  response.body unless response.nil?
145
146
  end
146
147
 
@@ -158,8 +159,8 @@ module Azure::SQL::Mgmt::V2014_04_01
158
159
  #
159
160
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
160
161
  #
161
- def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil)
162
- get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value!
162
+ def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
163
+ get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value!
163
164
  end
164
165
 
165
166
  #
@@ -176,7 +177,7 @@ module Azure::SQL::Mgmt::V2014_04_01
176
177
  #
177
178
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
179
  #
179
- def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil)
180
+ def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
180
181
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
182
  fail ArgumentError, 'server_name is nil' if server_name.nil?
182
183
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -186,6 +187,7 @@ module Azure::SQL::Mgmt::V2014_04_01
186
187
 
187
188
 
188
189
  request_headers = {}
190
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
189
191
 
190
192
  # Set Headers
191
193
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -245,8 +247,8 @@ module Azure::SQL::Mgmt::V2014_04_01
245
247
  #
246
248
  # @return [Advisor] operation results.
247
249
  #
248
- def create_or_update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil)
249
- response = create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value!
250
+ def create_or_update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil)
251
+ response = create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value!
250
252
  response.body unless response.nil?
251
253
  end
252
254
 
@@ -265,8 +267,8 @@ module Azure::SQL::Mgmt::V2014_04_01
265
267
  #
266
268
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
267
269
  #
268
- def create_or_update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil)
269
- create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value!
270
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil)
271
+ create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value!
270
272
  end
271
273
 
272
274
  #
@@ -284,7 +286,7 @@ module Azure::SQL::Mgmt::V2014_04_01
284
286
  #
285
287
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
286
288
  #
287
- def create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil)
289
+ def create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil)
288
290
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
289
291
  fail ArgumentError, 'server_name is nil' if server_name.nil?
290
292
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -295,13 +297,12 @@ module Azure::SQL::Mgmt::V2014_04_01
295
297
 
296
298
 
297
299
  request_headers = {}
300
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
298
301
 
299
302
  # Set Headers
300
303
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
301
304
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
302
305
 
303
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
304
-
305
306
  # Serialize Request
306
307
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::Advisor.mapper()
307
308
  request_content = @client.serialize(request_mapper, parameters)
@@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01
39
39
  #
40
40
  # @return [DatabaseConnectionPolicy] operation results.
41
41
  #
42
- def get(resource_group_name, server_name, database_name, custom_headers = nil)
43
- response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
42
+ def get(resource_group_name, server_name, database_name, custom_headers:nil)
43
+ response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
44
44
  response.body unless response.nil?
45
45
  end
46
46
 
@@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01
59
59
  #
60
60
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
61
  #
62
- def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
63
- get_async(resource_group_name, server_name, database_name, custom_headers).value!
62
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
63
+ get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
64
64
  end
65
65
 
66
66
  #
@@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01
78
78
  #
79
79
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
80
80
  #
81
- def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
81
+ def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
82
82
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
83
83
  fail ArgumentError, 'server_name is nil' if server_name.nil?
84
84
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -88,6 +88,7 @@ module Azure::SQL::Mgmt::V2014_04_01
88
88
 
89
89
 
90
90
  request_headers = {}
91
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
92
 
92
93
  # Set Headers
93
94
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -148,8 +149,8 @@ module Azure::SQL::Mgmt::V2014_04_01
148
149
  #
149
150
  # @return [DatabaseConnectionPolicy] operation results.
150
151
  #
151
- def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
152
- response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
152
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
153
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
153
154
  response.body unless response.nil?
154
155
  end
155
156
 
@@ -169,8 +170,8 @@ module Azure::SQL::Mgmt::V2014_04_01
169
170
  #
170
171
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
171
172
  #
172
- def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
173
- create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
173
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
174
+ create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
174
175
  end
175
176
 
176
177
  #
@@ -189,7 +190,7 @@ module Azure::SQL::Mgmt::V2014_04_01
189
190
  #
190
191
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
191
192
  #
192
- def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
193
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
193
194
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
194
195
  fail ArgumentError, 'server_name is nil' if server_name.nil?
195
196
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -200,13 +201,12 @@ module Azure::SQL::Mgmt::V2014_04_01
200
201
 
201
202
 
202
203
  request_headers = {}
204
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
203
205
 
204
206
  # Set Headers
205
207
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
206
208
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
207
209
 
208
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
209
-
210
210
  # Serialize Request
211
211
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseConnectionPolicy.mapper()
212
212
  request_content = @client.serialize(request_mapper, parameters)
@@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01
39
39
  #
40
40
  # @return [DatabaseTableAuditingPolicy] operation results.
41
41
  #
42
- def get(resource_group_name, server_name, database_name, custom_headers = nil)
43
- response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
42
+ def get(resource_group_name, server_name, database_name, custom_headers:nil)
43
+ response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
44
44
  response.body unless response.nil?
45
45
  end
46
46
 
@@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01
59
59
  #
60
60
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
61
  #
62
- def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
63
- get_async(resource_group_name, server_name, database_name, custom_headers).value!
62
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
63
+ get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
64
64
  end
65
65
 
66
66
  #
@@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01
78
78
  #
79
79
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
80
80
  #
81
- def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
81
+ def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
82
82
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
83
83
  fail ArgumentError, 'server_name is nil' if server_name.nil?
84
84
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -88,6 +88,7 @@ module Azure::SQL::Mgmt::V2014_04_01
88
88
 
89
89
 
90
90
  request_headers = {}
91
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
92
 
92
93
  # Set Headers
93
94
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -149,8 +150,8 @@ module Azure::SQL::Mgmt::V2014_04_01
149
150
  #
150
151
  # @return [DatabaseTableAuditingPolicy] operation results.
151
152
  #
152
- def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
153
- response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
153
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
154
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
154
155
  response.body unless response.nil?
155
156
  end
156
157
 
@@ -171,8 +172,8 @@ module Azure::SQL::Mgmt::V2014_04_01
171
172
  #
172
173
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
173
174
  #
174
- def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
175
- create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
175
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
176
+ create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
176
177
  end
177
178
 
178
179
  #
@@ -192,7 +193,7 @@ module Azure::SQL::Mgmt::V2014_04_01
192
193
  #
193
194
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
194
195
  #
195
- def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
196
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
196
197
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
197
198
  fail ArgumentError, 'server_name is nil' if server_name.nil?
198
199
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -203,13 +204,12 @@ module Azure::SQL::Mgmt::V2014_04_01
203
204
 
204
205
 
205
206
  request_headers = {}
207
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
206
208
 
207
209
  # Set Headers
208
210
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
209
211
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
210
212
 
211
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
212
-
213
213
  # Serialize Request
214
214
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicy.mapper()
215
215
  request_content = @client.serialize(request_mapper, parameters)
@@ -281,8 +281,8 @@ module Azure::SQL::Mgmt::V2014_04_01
281
281
  #
282
282
  # @return [DatabaseTableAuditingPolicyListResult] operation results.
283
283
  #
284
- def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil)
285
- response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
284
+ def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
285
+ response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
286
286
  response.body unless response.nil?
287
287
  end
288
288
 
@@ -301,8 +301,8 @@ module Azure::SQL::Mgmt::V2014_04_01
301
301
  #
302
302
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
303
303
  #
304
- def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
305
- list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
304
+ def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
305
+ list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
306
306
  end
307
307
 
308
308
  #
@@ -320,7 +320,7 @@ module Azure::SQL::Mgmt::V2014_04_01
320
320
  #
321
321
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
322
322
  #
323
- def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil)
323
+ def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
324
324
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
325
325
  fail ArgumentError, 'server_name is nil' if server_name.nil?
326
326
  fail ArgumentError, 'database_name is nil' if database_name.nil?
@@ -329,6 +329,7 @@ module Azure::SQL::Mgmt::V2014_04_01
329
329
 
330
330
 
331
331
  request_headers = {}
332
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
332
333
 
333
334
  # Set Headers
334
335
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid