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.
- checksums.yaml +4 -4
- data/lib/2014-04-01/generated/azure_mgmt_sql.rb +77 -63
- data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +118 -16
- data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +114 -16
- data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +12 -12
- data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +12 -12
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +18 -17
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +12 -12
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +18 -17
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +12 -12
- data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +649 -643
- data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +830 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +216 -213
- data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +130 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +24 -22
- data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +18 -17
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb +56 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb +56 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +43 -10
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb +1 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_update.rb +43 -10
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb +164 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_auto_failover.rb +16 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb +16 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb +57 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb +17 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_status.rb +18 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb +13 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +13 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +13 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb +13 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb +54 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/import_request.rb +12 -4
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text.rb +72 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb +55 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb +52 -2
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb +10 -3
- data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +134 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +18 -15
- data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +12 -10
- data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +38 -33
- data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +12 -10
- data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +32 -30
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +28 -26
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +12 -12
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +18 -17
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +134 -133
- data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +12 -10
- data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +12 -10
- data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +32 -17
- data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +6 -5
- data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +12 -12
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +22 -19
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +18 -17
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +12 -12
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +18 -17
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +31 -29
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +71 -67
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage.rb +110 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb +100 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +15 -13
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +18 -17
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +41 -38
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +66 -62
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +8 -1
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +324 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +62 -56
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +118 -107
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +76 -71
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +41 -38
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +30 -1
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +21 -18
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_restore_points.rb +527 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +1599 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/arm_sku.rb +92 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_mode.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_options.rb +90 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_reason.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_database_restore_point_definition.rb +47 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +23 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +393 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point.rb +124 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +348 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_database_definition.rb +145 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_operation_result.rb +170 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_type.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_automatic_tuning.rb +110 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias.rb +74 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_acquisition.rb +47 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/status.rb +32 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +238 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +805 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +21 -1
- data/lib/profiles/latest/modules/sql_profile_module.rb +912 -749
- data/lib/profiles/latest/sql_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/sql_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +49 -3
@@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
37
37
|
#
|
38
38
|
# @return [Array] operation results.
|
39
39
|
#
|
40
|
-
def list_by_database(resource_group_name, server_name, database_name, custom_headers
|
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::V2015_05_01_preview
|
|
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
|
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::V2015_05_01_preview
|
|
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
|
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::V2015_05_01_preview
|
|
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
|
@@ -155,8 +156,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
155
156
|
#
|
156
157
|
# @return [Advisor] operation results.
|
157
158
|
#
|
158
|
-
def get(resource_group_name, server_name, database_name, advisor_name, custom_headers
|
159
|
-
response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value!
|
159
|
+
def get(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
|
160
|
+
response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value!
|
160
161
|
response.body unless response.nil?
|
161
162
|
end
|
162
163
|
|
@@ -174,8 +175,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
174
175
|
#
|
175
176
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
176
177
|
#
|
177
|
-
def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers
|
178
|
-
get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value!
|
178
|
+
def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
|
179
|
+
get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value!
|
179
180
|
end
|
180
181
|
|
181
182
|
#
|
@@ -192,7 +193,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
192
193
|
#
|
193
194
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
194
195
|
#
|
195
|
-
def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers
|
196
|
+
def get_async(resource_group_name, server_name, database_name, advisor_name, 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?
|
@@ -202,6 +203,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
202
203
|
|
203
204
|
|
204
205
|
request_headers = {}
|
206
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
205
207
|
|
206
208
|
# Set Headers
|
207
209
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -261,8 +263,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
261
263
|
#
|
262
264
|
# @return [Advisor] operation results.
|
263
265
|
#
|
264
|
-
def update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers
|
265
|
-
response = update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value!
|
266
|
+
def update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil)
|
267
|
+
response = update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
266
268
|
response.body unless response.nil?
|
267
269
|
end
|
268
270
|
|
@@ -281,8 +283,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
281
283
|
#
|
282
284
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
283
285
|
#
|
284
|
-
def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers
|
285
|
-
update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value!
|
286
|
+
def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil)
|
287
|
+
update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
286
288
|
end
|
287
289
|
|
288
290
|
#
|
@@ -300,7 +302,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
300
302
|
#
|
301
303
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
302
304
|
#
|
303
|
-
def update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers
|
305
|
+
def update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil)
|
304
306
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
305
307
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
306
308
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -311,13 +313,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
311
313
|
|
312
314
|
|
313
315
|
request_headers = {}
|
316
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
314
317
|
|
315
318
|
# Set Headers
|
316
319
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
317
320
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
318
321
|
|
319
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
320
|
-
|
321
322
|
# Serialize Request
|
322
323
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor.mapper()
|
323
324
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
38
38
|
#
|
39
39
|
# @return [DatabaseBlobAuditingPolicy] operation results.
|
40
40
|
#
|
41
|
-
def get(resource_group_name, server_name, database_name, custom_headers
|
42
|
-
response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
|
41
|
+
def get(resource_group_name, server_name, database_name, custom_headers:nil)
|
42
|
+
response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
43
43
|
response.body unless response.nil?
|
44
44
|
end
|
45
45
|
|
@@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
57
57
|
#
|
58
58
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
59
|
#
|
60
|
-
def get_with_http_info(resource_group_name, server_name, database_name, custom_headers
|
61
|
-
get_async(resource_group_name, server_name, database_name, custom_headers).value!
|
60
|
+
def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
61
|
+
get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
62
62
|
end
|
63
63
|
|
64
64
|
#
|
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def get_async(resource_group_name, server_name, database_name, custom_headers
|
78
|
+
def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
79
79
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
80
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
81
81
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
85
85
|
|
86
86
|
|
87
87
|
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
89
|
|
89
90
|
# Set Headers
|
90
91
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -145,8 +146,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
145
146
|
#
|
146
147
|
# @return [DatabaseBlobAuditingPolicy] operation results.
|
147
148
|
#
|
148
|
-
def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers
|
149
|
-
response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
|
149
|
+
def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
150
|
+
response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
150
151
|
response.body unless response.nil?
|
151
152
|
end
|
152
153
|
|
@@ -166,8 +167,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
166
167
|
#
|
167
168
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
168
169
|
#
|
169
|
-
def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers
|
170
|
-
create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
|
170
|
+
def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
171
|
+
create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
171
172
|
end
|
172
173
|
|
173
174
|
#
|
@@ -186,7 +187,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
186
187
|
#
|
187
188
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
188
189
|
#
|
189
|
-
def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers
|
190
|
+
def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
190
191
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
191
192
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
192
193
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -197,13 +198,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
197
198
|
|
198
199
|
|
199
200
|
request_headers = {}
|
201
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
200
202
|
|
201
203
|
# Set Headers
|
202
204
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
203
205
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
204
206
|
|
205
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
206
|
-
|
207
207
|
# Serialize Request
|
208
208
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::DatabaseBlobAuditingPolicy.mapper()
|
209
209
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
38
38
|
#
|
39
39
|
# @return [Array] operation results.
|
40
40
|
#
|
41
|
-
def list_by_database_advisor(resource_group_name, server_name, database_name, advisor_name, custom_headers
|
42
|
-
response = list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value!
|
41
|
+
def list_by_database_advisor(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
|
42
|
+
response = list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value!
|
43
43
|
response.body unless response.nil?
|
44
44
|
end
|
45
45
|
|
@@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
57
57
|
#
|
58
58
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
59
|
#
|
60
|
-
def list_by_database_advisor_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers
|
61
|
-
list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value!
|
60
|
+
def list_by_database_advisor_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
|
61
|
+
list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value!
|
62
62
|
end
|
63
63
|
|
64
64
|
#
|
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers
|
78
|
+
def list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil)
|
79
79
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
80
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
81
81
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
85
85
|
|
86
86
|
|
87
87
|
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
89
|
|
89
90
|
# Set Headers
|
90
91
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -161,8 +162,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
161
162
|
#
|
162
163
|
# @return [RecommendedAction] operation results.
|
163
164
|
#
|
164
|
-
def get(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers
|
165
|
-
response = get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers).value!
|
165
|
+
def get(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:nil)
|
166
|
+
response = get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:custom_headers).value!
|
166
167
|
response.body unless response.nil?
|
167
168
|
end
|
168
169
|
|
@@ -182,8 +183,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
182
183
|
#
|
183
184
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
184
185
|
#
|
185
|
-
def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers
|
186
|
-
get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers).value!
|
186
|
+
def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:nil)
|
187
|
+
get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:custom_headers).value!
|
187
188
|
end
|
188
189
|
|
189
190
|
#
|
@@ -202,7 +203,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
202
203
|
#
|
203
204
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
204
205
|
#
|
205
|
-
def get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers
|
206
|
+
def get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:nil)
|
206
207
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
207
208
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
208
209
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -213,6 +214,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
213
214
|
|
214
215
|
|
215
216
|
request_headers = {}
|
217
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
216
218
|
|
217
219
|
# Set Headers
|
218
220
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -275,8 +277,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
275
277
|
#
|
276
278
|
# @return [RecommendedAction] operation results.
|
277
279
|
#
|
278
|
-
def update(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers
|
279
|
-
response = update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers).value!
|
280
|
+
def update(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:nil)
|
281
|
+
response = update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:custom_headers).value!
|
280
282
|
response.body unless response.nil?
|
281
283
|
end
|
282
284
|
|
@@ -298,8 +300,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
298
300
|
#
|
299
301
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
300
302
|
#
|
301
|
-
def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers
|
302
|
-
update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers).value!
|
303
|
+
def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:nil)
|
304
|
+
update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:custom_headers).value!
|
303
305
|
end
|
304
306
|
|
305
307
|
#
|
@@ -320,7 +322,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
320
322
|
#
|
321
323
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
322
324
|
#
|
323
|
-
def update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers
|
325
|
+
def update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:nil)
|
324
326
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
325
327
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
326
328
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -332,13 +334,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
332
334
|
|
333
335
|
|
334
336
|
request_headers = {}
|
337
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
335
338
|
|
336
339
|
# Set Headers
|
337
340
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
338
341
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
339
342
|
|
340
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
341
|
-
|
342
343
|
# Serialize Request
|
343
344
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedAction.mapper()
|
344
345
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
36
36
|
#
|
37
37
|
# @return [Array<EncryptionProtector>] operation results.
|
38
38
|
#
|
39
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
40
|
-
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers)
|
39
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
40
|
+
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers)
|
41
41
|
first_page.get_all_items
|
42
42
|
end
|
43
43
|
|
@@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
53
53
|
#
|
54
54
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
55
|
#
|
56
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
57
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
56
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
57
|
+
list_by_server_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::V2015_05_01_preview
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
72
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
74
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
75
75
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
77
77
|
|
78
78
|
|
79
79
|
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
81
|
|
81
82
|
# Set Headers
|
82
83
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -133,8 +134,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
133
134
|
#
|
134
135
|
# @return [EncryptionProtector] operation results.
|
135
136
|
#
|
136
|
-
def get(resource_group_name, server_name, custom_headers
|
137
|
-
response = get_async(resource_group_name, server_name, custom_headers).value!
|
137
|
+
def get(resource_group_name, server_name, custom_headers:nil)
|
138
|
+
response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
138
139
|
response.body unless response.nil?
|
139
140
|
end
|
140
141
|
|
@@ -150,8 +151,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
150
151
|
#
|
151
152
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
152
153
|
#
|
153
|
-
def get_with_http_info(resource_group_name, server_name, custom_headers
|
154
|
-
get_async(resource_group_name, server_name, custom_headers).value!
|
154
|
+
def get_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
155
|
+
get_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
155
156
|
end
|
156
157
|
|
157
158
|
#
|
@@ -166,7 +167,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
166
167
|
#
|
167
168
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
169
|
#
|
169
|
-
def get_async(resource_group_name, server_name, custom_headers
|
170
|
+
def get_async(resource_group_name, server_name, custom_headers:nil)
|
170
171
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
171
172
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
172
173
|
encryption_protector_name = 'current'
|
@@ -175,6 +176,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
175
176
|
|
176
177
|
|
177
178
|
request_headers = {}
|
179
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
178
180
|
|
179
181
|
# Set Headers
|
180
182
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -233,8 +235,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
233
235
|
#
|
234
236
|
# @return [EncryptionProtector] operation results.
|
235
237
|
#
|
236
|
-
def create_or_update(resource_group_name, server_name, parameters, custom_headers
|
237
|
-
response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value!
|
238
|
+
def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil)
|
239
|
+
response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value!
|
238
240
|
response.body unless response.nil?
|
239
241
|
end
|
240
242
|
|
@@ -251,9 +253,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
251
253
|
# @return [Concurrent::Promise] promise which provides async access to http
|
252
254
|
# response.
|
253
255
|
#
|
254
|
-
def create_or_update_async(resource_group_name, server_name, parameters, custom_headers
|
256
|
+
def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil)
|
255
257
|
# Send request
|
256
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers)
|
258
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers)
|
257
259
|
|
258
260
|
promise = promise.then do |response|
|
259
261
|
# Defining deserialization method.
|
@@ -283,8 +285,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
283
285
|
#
|
284
286
|
# @return [EncryptionProtector] operation results.
|
285
287
|
#
|
286
|
-
def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers
|
287
|
-
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!
|
288
290
|
response.body unless response.nil?
|
289
291
|
end
|
290
292
|
|
@@ -302,8 +304,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
302
304
|
#
|
303
305
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
304
306
|
#
|
305
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers
|
306
|
-
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!
|
307
309
|
end
|
308
310
|
|
309
311
|
#
|
@@ -320,7 +322,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
320
322
|
#
|
321
323
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
322
324
|
#
|
323
|
-
def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers
|
325
|
+
def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil)
|
324
326
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
325
327
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
326
328
|
encryption_protector_name = 'current'
|
@@ -330,13 +332,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
330
332
|
|
331
333
|
|
332
334
|
request_headers = {}
|
335
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
333
336
|
|
334
337
|
# Set Headers
|
335
338
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
336
339
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
337
340
|
|
338
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
339
|
-
|
340
341
|
# Serialize Request
|
341
342
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::EncryptionProtector.mapper()
|
342
343
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -393,8 +394,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
393
394
|
#
|
394
395
|
# @return [EncryptionProtectorListResult] operation results.
|
395
396
|
#
|
396
|
-
def list_by_server_next(next_page_link, custom_headers
|
397
|
-
response = list_by_server_next_async(next_page_link, custom_headers).value!
|
397
|
+
def list_by_server_next(next_page_link, custom_headers:nil)
|
398
|
+
response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
398
399
|
response.body unless response.nil?
|
399
400
|
end
|
400
401
|
|
@@ -408,8 +409,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
408
409
|
#
|
409
410
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
410
411
|
#
|
411
|
-
def list_by_server_next_with_http_info(next_page_link, custom_headers
|
412
|
-
list_by_server_next_async(next_page_link, custom_headers).value!
|
412
|
+
def list_by_server_next_with_http_info(next_page_link, custom_headers:nil)
|
413
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
413
414
|
end
|
414
415
|
|
415
416
|
#
|
@@ -422,11 +423,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
422
423
|
#
|
423
424
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
424
425
|
#
|
425
|
-
def list_by_server_next_async(next_page_link, custom_headers
|
426
|
+
def list_by_server_next_async(next_page_link, custom_headers:nil)
|
426
427
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
427
428
|
|
428
429
|
|
429
430
|
request_headers = {}
|
431
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
430
432
|
|
431
433
|
# Set Headers
|
432
434
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -483,12 +485,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
483
485
|
# @return [EncryptionProtectorListResult] which provide lazy access to pages of
|
484
486
|
# the response.
|
485
487
|
#
|
486
|
-
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers
|
487
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
488
|
+
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil)
|
489
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
488
490
|
unless response.nil?
|
489
491
|
page = response.body
|
490
492
|
page.next_method = Proc.new do |next_page_link|
|
491
|
-
list_by_server_next_async(next_page_link, custom_headers)
|
493
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers)
|
492
494
|
end
|
493
495
|
page
|
494
496
|
end
|