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
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
38
38
|
#
|
39
39
|
# @return [SyncAgent] operation results.
|
40
40
|
#
|
41
|
-
def get(resource_group_name, server_name, sync_agent_name, custom_headers
|
42
|
-
response = get_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
41
|
+
def get(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
42
|
+
response = get_async(resource_group_name, server_name, sync_agent_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, sync_agent_name, custom_headers
|
61
|
-
get_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
60
|
+
def get_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
61
|
+
get_async(resource_group_name, server_name, sync_agent_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, sync_agent_name, custom_headers
|
78
|
+
def get_async(resource_group_name, server_name, sync_agent_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, 'sync_agent_name is nil' if sync_agent_name.nil?
|
@@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
84
84
|
|
85
85
|
|
86
86
|
request_headers = {}
|
87
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
87
88
|
|
88
89
|
# Set Headers
|
89
90
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -143,8 +144,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
143
144
|
#
|
144
145
|
# @return [SyncAgent] operation results.
|
145
146
|
#
|
146
|
-
def create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers
|
147
|
-
response = create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers).value!
|
147
|
+
def create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil)
|
148
|
+
response = create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers).value!
|
148
149
|
response.body unless response.nil?
|
149
150
|
end
|
150
151
|
|
@@ -162,9 +163,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
162
163
|
# @return [Concurrent::Promise] promise which provides async access to http
|
163
164
|
# response.
|
164
165
|
#
|
165
|
-
def create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers
|
166
|
+
def create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil)
|
166
167
|
# Send request
|
167
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers)
|
168
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers)
|
168
169
|
|
169
170
|
promise = promise.then do |response|
|
170
171
|
# Defining deserialization method.
|
@@ -192,8 +193,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
192
193
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
193
194
|
# will be added to the HTTP request.
|
194
195
|
#
|
195
|
-
def delete(resource_group_name, server_name, sync_agent_name, custom_headers
|
196
|
-
response = delete_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
196
|
+
def delete(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
197
|
+
response = delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
197
198
|
nil
|
198
199
|
end
|
199
200
|
|
@@ -210,9 +211,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
210
211
|
# @return [Concurrent::Promise] promise which provides async access to http
|
211
212
|
# response.
|
212
213
|
#
|
213
|
-
def delete_async(resource_group_name, server_name, sync_agent_name, custom_headers
|
214
|
+
def delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
214
215
|
# Send request
|
215
|
-
promise = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers)
|
216
|
+
promise = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers)
|
216
217
|
|
217
218
|
promise = promise.then do |response|
|
218
219
|
# Defining deserialization method.
|
@@ -239,8 +240,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
239
240
|
#
|
240
241
|
# @return [Array<SyncAgent>] operation results.
|
241
242
|
#
|
242
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
243
|
-
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers)
|
243
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
244
|
+
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers)
|
244
245
|
first_page.get_all_items
|
245
246
|
end
|
246
247
|
|
@@ -257,8 +258,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
257
258
|
#
|
258
259
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
259
260
|
#
|
260
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
261
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
261
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
262
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
262
263
|
end
|
263
264
|
|
264
265
|
#
|
@@ -274,7 +275,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
274
275
|
#
|
275
276
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
276
277
|
#
|
277
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
278
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
278
279
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
279
280
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
280
281
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -282,6 +283,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
282
283
|
|
283
284
|
|
284
285
|
request_headers = {}
|
286
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
285
287
|
|
286
288
|
# Set Headers
|
287
289
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -340,8 +342,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
340
342
|
#
|
341
343
|
# @return [SyncAgentKeyProperties] operation results.
|
342
344
|
#
|
343
|
-
def generate_key(resource_group_name, server_name, sync_agent_name, custom_headers
|
344
|
-
response = generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
345
|
+
def generate_key(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
346
|
+
response = generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
345
347
|
response.body unless response.nil?
|
346
348
|
end
|
347
349
|
|
@@ -359,8 +361,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
359
361
|
#
|
360
362
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
361
363
|
#
|
362
|
-
def generate_key_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers
|
363
|
-
generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
364
|
+
def generate_key_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
365
|
+
generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
364
366
|
end
|
365
367
|
|
366
368
|
#
|
@@ -377,7 +379,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
377
379
|
#
|
378
380
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
379
381
|
#
|
380
|
-
def generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers
|
382
|
+
def generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
381
383
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
382
384
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
383
385
|
fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil?
|
@@ -386,6 +388,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
386
388
|
|
387
389
|
|
388
390
|
request_headers = {}
|
391
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
389
392
|
|
390
393
|
# Set Headers
|
391
394
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -444,8 +447,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
444
447
|
#
|
445
448
|
# @return [Array<SyncAgentLinkedDatabase>] operation results.
|
446
449
|
#
|
447
|
-
def list_linked_databases(resource_group_name, server_name, sync_agent_name, custom_headers
|
448
|
-
first_page = list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers)
|
450
|
+
def list_linked_databases(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
451
|
+
first_page = list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers)
|
449
452
|
first_page.get_all_items
|
450
453
|
end
|
451
454
|
|
@@ -463,8 +466,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
463
466
|
#
|
464
467
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
465
468
|
#
|
466
|
-
def list_linked_databases_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers
|
467
|
-
list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
469
|
+
def list_linked_databases_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
470
|
+
list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
468
471
|
end
|
469
472
|
|
470
473
|
#
|
@@ -481,7 +484,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
481
484
|
#
|
482
485
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
483
486
|
#
|
484
|
-
def list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers
|
487
|
+
def list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
485
488
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
486
489
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
487
490
|
fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil?
|
@@ -490,6 +493,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
490
493
|
|
491
494
|
|
492
495
|
request_headers = {}
|
496
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
493
497
|
|
494
498
|
# Set Headers
|
495
499
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -549,8 +553,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
549
553
|
#
|
550
554
|
# @return [SyncAgent] operation results.
|
551
555
|
#
|
552
|
-
def begin_create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers
|
553
|
-
response = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers).value!
|
556
|
+
def begin_create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil)
|
557
|
+
response = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers).value!
|
554
558
|
response.body unless response.nil?
|
555
559
|
end
|
556
560
|
|
@@ -569,8 +573,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
569
573
|
#
|
570
574
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
571
575
|
#
|
572
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, sync_agent_name, parameters, custom_headers
|
573
|
-
begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers).value!
|
576
|
+
def begin_create_or_update_with_http_info(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil)
|
577
|
+
begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers).value!
|
574
578
|
end
|
575
579
|
|
576
580
|
#
|
@@ -588,7 +592,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
588
592
|
#
|
589
593
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
590
594
|
#
|
591
|
-
def begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers
|
595
|
+
def begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil)
|
592
596
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
593
597
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
594
598
|
fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil?
|
@@ -598,13 +602,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
598
602
|
|
599
603
|
|
600
604
|
request_headers = {}
|
605
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
601
606
|
|
602
607
|
# Set Headers
|
603
608
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
604
609
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
605
610
|
|
606
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
607
|
-
|
608
611
|
# Serialize Request
|
609
612
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgent.mapper()
|
610
613
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -674,8 +677,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
674
677
|
# will be added to the HTTP request.
|
675
678
|
#
|
676
679
|
#
|
677
|
-
def begin_delete(resource_group_name, server_name, sync_agent_name, custom_headers
|
678
|
-
response = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
680
|
+
def begin_delete(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
681
|
+
response = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
679
682
|
nil
|
680
683
|
end
|
681
684
|
|
@@ -693,8 +696,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
693
696
|
#
|
694
697
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
695
698
|
#
|
696
|
-
def begin_delete_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers
|
697
|
-
begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
699
|
+
def begin_delete_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
700
|
+
begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
698
701
|
end
|
699
702
|
|
700
703
|
#
|
@@ -711,7 +714,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
711
714
|
#
|
712
715
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
713
716
|
#
|
714
|
-
def begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers
|
717
|
+
def begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
715
718
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
716
719
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
717
720
|
fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil?
|
@@ -720,6 +723,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
720
723
|
|
721
724
|
|
722
725
|
request_headers = {}
|
726
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
723
727
|
|
724
728
|
# Set Headers
|
725
729
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -764,8 +768,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
764
768
|
#
|
765
769
|
# @return [SyncAgentListResult] operation results.
|
766
770
|
#
|
767
|
-
def list_by_server_next(next_page_link, custom_headers
|
768
|
-
response = list_by_server_next_async(next_page_link, custom_headers).value!
|
771
|
+
def list_by_server_next(next_page_link, custom_headers:nil)
|
772
|
+
response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
769
773
|
response.body unless response.nil?
|
770
774
|
end
|
771
775
|
|
@@ -779,8 +783,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
779
783
|
#
|
780
784
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
781
785
|
#
|
782
|
-
def list_by_server_next_with_http_info(next_page_link, custom_headers
|
783
|
-
list_by_server_next_async(next_page_link, custom_headers).value!
|
786
|
+
def list_by_server_next_with_http_info(next_page_link, custom_headers:nil)
|
787
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
784
788
|
end
|
785
789
|
|
786
790
|
#
|
@@ -793,11 +797,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
793
797
|
#
|
794
798
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
795
799
|
#
|
796
|
-
def list_by_server_next_async(next_page_link, custom_headers
|
800
|
+
def list_by_server_next_async(next_page_link, custom_headers:nil)
|
797
801
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
798
802
|
|
799
803
|
|
800
804
|
request_headers = {}
|
805
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
801
806
|
|
802
807
|
# Set Headers
|
803
808
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -851,8 +856,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
851
856
|
#
|
852
857
|
# @return [SyncAgentLinkedDatabaseListResult] operation results.
|
853
858
|
#
|
854
|
-
def list_linked_databases_next(next_page_link, custom_headers
|
855
|
-
response = list_linked_databases_next_async(next_page_link, custom_headers).value!
|
859
|
+
def list_linked_databases_next(next_page_link, custom_headers:nil)
|
860
|
+
response = list_linked_databases_next_async(next_page_link, custom_headers:custom_headers).value!
|
856
861
|
response.body unless response.nil?
|
857
862
|
end
|
858
863
|
|
@@ -866,8 +871,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
866
871
|
#
|
867
872
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
868
873
|
#
|
869
|
-
def list_linked_databases_next_with_http_info(next_page_link, custom_headers
|
870
|
-
list_linked_databases_next_async(next_page_link, custom_headers).value!
|
874
|
+
def list_linked_databases_next_with_http_info(next_page_link, custom_headers:nil)
|
875
|
+
list_linked_databases_next_async(next_page_link, custom_headers:custom_headers).value!
|
871
876
|
end
|
872
877
|
|
873
878
|
#
|
@@ -880,11 +885,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
880
885
|
#
|
881
886
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
882
887
|
#
|
883
|
-
def list_linked_databases_next_async(next_page_link, custom_headers
|
888
|
+
def list_linked_databases_next_async(next_page_link, custom_headers:nil)
|
884
889
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
885
890
|
|
886
891
|
|
887
892
|
request_headers = {}
|
893
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
888
894
|
|
889
895
|
# Set Headers
|
890
896
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -942,12 +948,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
942
948
|
# @return [SyncAgentListResult] which provide lazy access to pages of the
|
943
949
|
# response.
|
944
950
|
#
|
945
|
-
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers
|
946
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
951
|
+
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil)
|
952
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
947
953
|
unless response.nil?
|
948
954
|
page = response.body
|
949
955
|
page.next_method = Proc.new do |next_page_link|
|
950
|
-
list_by_server_next_async(next_page_link, custom_headers)
|
956
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers)
|
951
957
|
end
|
952
958
|
page
|
953
959
|
end
|
@@ -968,12 +974,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
968
974
|
# @return [SyncAgentLinkedDatabaseListResult] which provide lazy access to
|
969
975
|
# pages of the response.
|
970
976
|
#
|
971
|
-
def list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers
|
972
|
-
response = list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers).value!
|
977
|
+
def list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers:nil)
|
978
|
+
response = list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value!
|
973
979
|
unless response.nil?
|
974
980
|
page = response.body
|
975
981
|
page.next_method = Proc.new do |next_page_link|
|
976
|
-
list_linked_databases_next_async(next_page_link, custom_headers)
|
982
|
+
list_linked_databases_next_async(next_page_link, custom_headers:custom_headers)
|
977
983
|
end
|
978
984
|
page
|
979
985
|
end
|
@@ -34,8 +34,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
34
34
|
#
|
35
35
|
# @return [Array<SyncDatabaseIdProperties>] operation results.
|
36
36
|
#
|
37
|
-
def list_sync_database_ids(location_name, custom_headers
|
38
|
-
first_page = list_sync_database_ids_as_lazy(location_name, custom_headers)
|
37
|
+
def list_sync_database_ids(location_name, custom_headers:nil)
|
38
|
+
first_page = list_sync_database_ids_as_lazy(location_name, custom_headers:custom_headers)
|
39
39
|
first_page.get_all_items
|
40
40
|
end
|
41
41
|
|
@@ -49,8 +49,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
49
49
|
#
|
50
50
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
51
|
#
|
52
|
-
def list_sync_database_ids_with_http_info(location_name, custom_headers
|
53
|
-
list_sync_database_ids_async(location_name, custom_headers).value!
|
52
|
+
def list_sync_database_ids_with_http_info(location_name, custom_headers:nil)
|
53
|
+
list_sync_database_ids_async(location_name, custom_headers:custom_headers).value!
|
54
54
|
end
|
55
55
|
|
56
56
|
#
|
@@ -63,13 +63,14 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def list_sync_database_ids_async(location_name, custom_headers
|
66
|
+
def list_sync_database_ids_async(location_name, custom_headers:nil)
|
67
67
|
fail ArgumentError, 'location_name is nil' if location_name.nil?
|
68
68
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
69
69
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
70
70
|
|
71
71
|
|
72
72
|
request_headers = {}
|
73
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
73
74
|
|
74
75
|
# Set Headers
|
75
76
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -127,8 +128,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
127
128
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
129
|
# will be added to the HTTP request.
|
129
130
|
#
|
130
|
-
def refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
131
|
-
response = refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
131
|
+
def refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
132
|
+
response = refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
132
133
|
nil
|
133
134
|
end
|
134
135
|
|
@@ -146,9 +147,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
146
147
|
# @return [Concurrent::Promise] promise which provides async access to http
|
147
148
|
# response.
|
148
149
|
#
|
149
|
-
def refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
150
|
+
def refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
150
151
|
# Send request
|
151
|
-
promise = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers)
|
152
|
+
promise = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers)
|
152
153
|
|
153
154
|
promise = promise.then do |response|
|
154
155
|
# Defining deserialization method.
|
@@ -177,8 +178,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
177
178
|
#
|
178
179
|
# @return [Array<SyncFullSchemaProperties>] operation results.
|
179
180
|
#
|
180
|
-
def list_hub_schemas(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
181
|
-
first_page = list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers)
|
181
|
+
def list_hub_schemas(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
182
|
+
first_page = list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers)
|
182
183
|
first_page.get_all_items
|
183
184
|
end
|
184
185
|
|
@@ -197,8 +198,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
197
198
|
#
|
198
199
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
199
200
|
#
|
200
|
-
def list_hub_schemas_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
201
|
-
list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
201
|
+
def list_hub_schemas_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
202
|
+
list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
202
203
|
end
|
203
204
|
|
204
205
|
#
|
@@ -216,7 +217,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
216
217
|
#
|
217
218
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
218
219
|
#
|
219
|
-
def list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
220
|
+
def list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
220
221
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
221
222
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
222
223
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -226,6 +227,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
226
227
|
|
227
228
|
|
228
229
|
request_headers = {}
|
230
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
229
231
|
|
230
232
|
# Set Headers
|
231
233
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -290,8 +292,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
290
292
|
#
|
291
293
|
# @return [Array<SyncGroupLogProperties>] operation results.
|
292
294
|
#
|
293
|
-
def list_logs(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token
|
294
|
-
first_page = list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token, custom_headers)
|
295
|
+
def list_logs(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil)
|
296
|
+
first_page = list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:continuation_token, custom_headers:custom_headers)
|
295
297
|
first_page.get_all_items
|
296
298
|
end
|
297
299
|
|
@@ -315,8 +317,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
315
317
|
#
|
316
318
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
317
319
|
#
|
318
|
-
def list_logs_with_http_info(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token
|
319
|
-
list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token, custom_headers).value!
|
320
|
+
def list_logs_with_http_info(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil)
|
321
|
+
list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:continuation_token, custom_headers:custom_headers).value!
|
320
322
|
end
|
321
323
|
|
322
324
|
#
|
@@ -339,7 +341,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
339
341
|
#
|
340
342
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
341
343
|
#
|
342
|
-
def list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token
|
344
|
+
def list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil)
|
343
345
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
344
346
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
345
347
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -352,6 +354,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
352
354
|
|
353
355
|
|
354
356
|
request_headers = {}
|
357
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
355
358
|
|
356
359
|
# Set Headers
|
357
360
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -410,8 +413,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
410
413
|
# will be added to the HTTP request.
|
411
414
|
#
|
412
415
|
#
|
413
|
-
def cancel_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
414
|
-
response = cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
416
|
+
def cancel_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
417
|
+
response = cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
415
418
|
nil
|
416
419
|
end
|
417
420
|
|
@@ -430,8 +433,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
430
433
|
#
|
431
434
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
432
435
|
#
|
433
|
-
def cancel_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
434
|
-
cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
436
|
+
def cancel_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
437
|
+
cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
435
438
|
end
|
436
439
|
|
437
440
|
#
|
@@ -449,7 +452,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
449
452
|
#
|
450
453
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
451
454
|
#
|
452
|
-
def cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
455
|
+
def cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
453
456
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
454
457
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
455
458
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -459,6 +462,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
459
462
|
|
460
463
|
|
461
464
|
request_headers = {}
|
465
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
462
466
|
|
463
467
|
# Set Headers
|
464
468
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -507,8 +511,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
507
511
|
# will be added to the HTTP request.
|
508
512
|
#
|
509
513
|
#
|
510
|
-
def trigger_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
511
|
-
response = trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
514
|
+
def trigger_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
515
|
+
response = trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
512
516
|
nil
|
513
517
|
end
|
514
518
|
|
@@ -527,8 +531,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
527
531
|
#
|
528
532
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
529
533
|
#
|
530
|
-
def trigger_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
531
|
-
trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
534
|
+
def trigger_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
535
|
+
trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
532
536
|
end
|
533
537
|
|
534
538
|
#
|
@@ -546,7 +550,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
546
550
|
#
|
547
551
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
548
552
|
#
|
549
|
-
def trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
553
|
+
def trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
550
554
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
551
555
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
552
556
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -556,6 +560,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
556
560
|
|
557
561
|
|
558
562
|
request_headers = {}
|
563
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
559
564
|
|
560
565
|
# Set Headers
|
561
566
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -605,8 +610,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
605
610
|
#
|
606
611
|
# @return [SyncGroup] operation results.
|
607
612
|
#
|
608
|
-
def get(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
609
|
-
response = get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
613
|
+
def get(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
614
|
+
response = get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
610
615
|
response.body unless response.nil?
|
611
616
|
end
|
612
617
|
|
@@ -625,8 +630,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
625
630
|
#
|
626
631
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
627
632
|
#
|
628
|
-
def get_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
629
|
-
get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
633
|
+
def get_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
634
|
+
get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
630
635
|
end
|
631
636
|
|
632
637
|
#
|
@@ -644,7 +649,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
644
649
|
#
|
645
650
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
646
651
|
#
|
647
|
-
def get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
652
|
+
def get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
648
653
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
649
654
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
650
655
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -654,6 +659,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
654
659
|
|
655
660
|
|
656
661
|
request_headers = {}
|
662
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
657
663
|
|
658
664
|
# Set Headers
|
659
665
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -714,8 +720,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
714
720
|
#
|
715
721
|
# @return [SyncGroup] operation results.
|
716
722
|
#
|
717
|
-
def create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
718
|
-
response = create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value!
|
723
|
+
def create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
724
|
+
response = create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value!
|
719
725
|
response.body unless response.nil?
|
720
726
|
end
|
721
727
|
|
@@ -734,9 +740,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
734
740
|
# @return [Concurrent::Promise] promise which provides async access to http
|
735
741
|
# response.
|
736
742
|
#
|
737
|
-
def create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
743
|
+
def create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
738
744
|
# Send request
|
739
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers)
|
745
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers)
|
740
746
|
|
741
747
|
promise = promise.then do |response|
|
742
748
|
# Defining deserialization method.
|
@@ -765,8 +771,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
765
771
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
766
772
|
# will be added to the HTTP request.
|
767
773
|
#
|
768
|
-
def delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
769
|
-
response = delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
774
|
+
def delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
775
|
+
response = delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
770
776
|
nil
|
771
777
|
end
|
772
778
|
|
@@ -784,9 +790,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
784
790
|
# @return [Concurrent::Promise] promise which provides async access to http
|
785
791
|
# response.
|
786
792
|
#
|
787
|
-
def delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
793
|
+
def delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
788
794
|
# Send request
|
789
|
-
promise = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers)
|
795
|
+
promise = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers)
|
790
796
|
|
791
797
|
promise = promise.then do |response|
|
792
798
|
# Defining deserialization method.
|
@@ -816,8 +822,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
816
822
|
#
|
817
823
|
# @return [SyncGroup] operation results.
|
818
824
|
#
|
819
|
-
def update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
820
|
-
response = update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value!
|
825
|
+
def update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
826
|
+
response = update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value!
|
821
827
|
response.body unless response.nil?
|
822
828
|
end
|
823
829
|
|
@@ -836,9 +842,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
836
842
|
# @return [Concurrent::Promise] promise which provides async access to http
|
837
843
|
# response.
|
838
844
|
#
|
839
|
-
def update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
845
|
+
def update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
840
846
|
# Send request
|
841
|
-
promise = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers)
|
847
|
+
promise = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers)
|
842
848
|
|
843
849
|
promise = promise.then do |response|
|
844
850
|
# Defining deserialization method.
|
@@ -868,8 +874,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
868
874
|
#
|
869
875
|
# @return [Array<SyncGroup>] operation results.
|
870
876
|
#
|
871
|
-
def list_by_database(resource_group_name, server_name, database_name, custom_headers
|
872
|
-
first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers)
|
877
|
+
def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
|
878
|
+
first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:custom_headers)
|
873
879
|
first_page.get_all_items
|
874
880
|
end
|
875
881
|
|
@@ -887,8 +893,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
887
893
|
#
|
888
894
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
889
895
|
#
|
890
|
-
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers
|
891
|
-
list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
896
|
+
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
897
|
+
list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
892
898
|
end
|
893
899
|
|
894
900
|
#
|
@@ -905,7 +911,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
905
911
|
#
|
906
912
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
907
913
|
#
|
908
|
-
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers
|
914
|
+
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
909
915
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
910
916
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
911
917
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -914,6 +920,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
914
920
|
|
915
921
|
|
916
922
|
request_headers = {}
|
923
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
917
924
|
|
918
925
|
# Set Headers
|
919
926
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -972,8 +979,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
972
979
|
# will be added to the HTTP request.
|
973
980
|
#
|
974
981
|
#
|
975
|
-
def begin_refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
976
|
-
response = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
982
|
+
def begin_refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
983
|
+
response = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
977
984
|
nil
|
978
985
|
end
|
979
986
|
|
@@ -992,8 +999,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
992
999
|
#
|
993
1000
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
994
1001
|
#
|
995
|
-
def begin_refresh_hub_schema_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
996
|
-
begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
1002
|
+
def begin_refresh_hub_schema_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
1003
|
+
begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
997
1004
|
end
|
998
1005
|
|
999
1006
|
#
|
@@ -1011,7 +1018,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1011
1018
|
#
|
1012
1019
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1013
1020
|
#
|
1014
|
-
def begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
1021
|
+
def begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
1015
1022
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1016
1023
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
1017
1024
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -1021,6 +1028,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1021
1028
|
|
1022
1029
|
|
1023
1030
|
request_headers = {}
|
1031
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1024
1032
|
|
1025
1033
|
# Set Headers
|
1026
1034
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1071,8 +1079,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1071
1079
|
#
|
1072
1080
|
# @return [SyncGroup] operation results.
|
1073
1081
|
#
|
1074
|
-
def begin_create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
1075
|
-
response = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value!
|
1082
|
+
def begin_create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
1083
|
+
response = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value!
|
1076
1084
|
response.body unless response.nil?
|
1077
1085
|
end
|
1078
1086
|
|
@@ -1092,8 +1100,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1092
1100
|
#
|
1093
1101
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1094
1102
|
#
|
1095
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
1096
|
-
begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value!
|
1103
|
+
def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
1104
|
+
begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value!
|
1097
1105
|
end
|
1098
1106
|
|
1099
1107
|
#
|
@@ -1112,7 +1120,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1112
1120
|
#
|
1113
1121
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1114
1122
|
#
|
1115
|
-
def begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
1123
|
+
def begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
1116
1124
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1117
1125
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
1118
1126
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -1123,13 +1131,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1123
1131
|
|
1124
1132
|
|
1125
1133
|
request_headers = {}
|
1134
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1126
1135
|
|
1127
1136
|
# Set Headers
|
1128
1137
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1129
1138
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1130
1139
|
|
1131
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1132
|
-
|
1133
1140
|
# Serialize Request
|
1134
1141
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroup.mapper()
|
1135
1142
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1200,8 +1207,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1200
1207
|
# will be added to the HTTP request.
|
1201
1208
|
#
|
1202
1209
|
#
|
1203
|
-
def begin_delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
1204
|
-
response = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
1210
|
+
def begin_delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
1211
|
+
response = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
1205
1212
|
nil
|
1206
1213
|
end
|
1207
1214
|
|
@@ -1220,8 +1227,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1220
1227
|
#
|
1221
1228
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1222
1229
|
#
|
1223
|
-
def begin_delete_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
1224
|
-
begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
1230
|
+
def begin_delete_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
1231
|
+
begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
1225
1232
|
end
|
1226
1233
|
|
1227
1234
|
#
|
@@ -1239,7 +1246,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1239
1246
|
#
|
1240
1247
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1241
1248
|
#
|
1242
|
-
def begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
1249
|
+
def begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
1243
1250
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1244
1251
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
1245
1252
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -1249,6 +1256,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1249
1256
|
|
1250
1257
|
|
1251
1258
|
request_headers = {}
|
1259
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1252
1260
|
|
1253
1261
|
# Set Headers
|
1254
1262
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1299,8 +1307,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1299
1307
|
#
|
1300
1308
|
# @return [SyncGroup] operation results.
|
1301
1309
|
#
|
1302
|
-
def begin_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
1303
|
-
response = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value!
|
1310
|
+
def begin_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
1311
|
+
response = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value!
|
1304
1312
|
response.body unless response.nil?
|
1305
1313
|
end
|
1306
1314
|
|
@@ -1320,8 +1328,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1320
1328
|
#
|
1321
1329
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1322
1330
|
#
|
1323
|
-
def begin_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
1324
|
-
begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value!
|
1331
|
+
def begin_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
1332
|
+
begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value!
|
1325
1333
|
end
|
1326
1334
|
|
1327
1335
|
#
|
@@ -1340,7 +1348,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1340
1348
|
#
|
1341
1349
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1342
1350
|
#
|
1343
|
-
def begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers
|
1351
|
+
def begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil)
|
1344
1352
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1345
1353
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
1346
1354
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
@@ -1351,13 +1359,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1351
1359
|
|
1352
1360
|
|
1353
1361
|
request_headers = {}
|
1362
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1354
1363
|
|
1355
1364
|
# Set Headers
|
1356
1365
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1357
1366
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1358
1367
|
|
1359
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1360
|
-
|
1361
1368
|
# Serialize Request
|
1362
1369
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroup.mapper()
|
1363
1370
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1414,8 +1421,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1414
1421
|
#
|
1415
1422
|
# @return [SyncDatabaseIdListResult] operation results.
|
1416
1423
|
#
|
1417
|
-
def list_sync_database_ids_next(next_page_link, custom_headers
|
1418
|
-
response = list_sync_database_ids_next_async(next_page_link, custom_headers).value!
|
1424
|
+
def list_sync_database_ids_next(next_page_link, custom_headers:nil)
|
1425
|
+
response = list_sync_database_ids_next_async(next_page_link, custom_headers:custom_headers).value!
|
1419
1426
|
response.body unless response.nil?
|
1420
1427
|
end
|
1421
1428
|
|
@@ -1429,8 +1436,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1429
1436
|
#
|
1430
1437
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1431
1438
|
#
|
1432
|
-
def list_sync_database_ids_next_with_http_info(next_page_link, custom_headers
|
1433
|
-
list_sync_database_ids_next_async(next_page_link, custom_headers).value!
|
1439
|
+
def list_sync_database_ids_next_with_http_info(next_page_link, custom_headers:nil)
|
1440
|
+
list_sync_database_ids_next_async(next_page_link, custom_headers:custom_headers).value!
|
1434
1441
|
end
|
1435
1442
|
|
1436
1443
|
#
|
@@ -1443,11 +1450,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1443
1450
|
#
|
1444
1451
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1445
1452
|
#
|
1446
|
-
def list_sync_database_ids_next_async(next_page_link, custom_headers
|
1453
|
+
def list_sync_database_ids_next_async(next_page_link, custom_headers:nil)
|
1447
1454
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1448
1455
|
|
1449
1456
|
|
1450
1457
|
request_headers = {}
|
1458
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1451
1459
|
|
1452
1460
|
# Set Headers
|
1453
1461
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1501,8 +1509,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1501
1509
|
#
|
1502
1510
|
# @return [SyncFullSchemaPropertiesListResult] operation results.
|
1503
1511
|
#
|
1504
|
-
def list_hub_schemas_next(next_page_link, custom_headers
|
1505
|
-
response = list_hub_schemas_next_async(next_page_link, custom_headers).value!
|
1512
|
+
def list_hub_schemas_next(next_page_link, custom_headers:nil)
|
1513
|
+
response = list_hub_schemas_next_async(next_page_link, custom_headers:custom_headers).value!
|
1506
1514
|
response.body unless response.nil?
|
1507
1515
|
end
|
1508
1516
|
|
@@ -1516,8 +1524,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1516
1524
|
#
|
1517
1525
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1518
1526
|
#
|
1519
|
-
def list_hub_schemas_next_with_http_info(next_page_link, custom_headers
|
1520
|
-
list_hub_schemas_next_async(next_page_link, custom_headers).value!
|
1527
|
+
def list_hub_schemas_next_with_http_info(next_page_link, custom_headers:nil)
|
1528
|
+
list_hub_schemas_next_async(next_page_link, custom_headers:custom_headers).value!
|
1521
1529
|
end
|
1522
1530
|
|
1523
1531
|
#
|
@@ -1530,11 +1538,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1530
1538
|
#
|
1531
1539
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1532
1540
|
#
|
1533
|
-
def list_hub_schemas_next_async(next_page_link, custom_headers
|
1541
|
+
def list_hub_schemas_next_async(next_page_link, custom_headers:nil)
|
1534
1542
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1535
1543
|
|
1536
1544
|
|
1537
1545
|
request_headers = {}
|
1546
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1538
1547
|
|
1539
1548
|
# Set Headers
|
1540
1549
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1588,8 +1597,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1588
1597
|
#
|
1589
1598
|
# @return [SyncGroupLogListResult] operation results.
|
1590
1599
|
#
|
1591
|
-
def list_logs_next(next_page_link, custom_headers
|
1592
|
-
response = list_logs_next_async(next_page_link, custom_headers).value!
|
1600
|
+
def list_logs_next(next_page_link, custom_headers:nil)
|
1601
|
+
response = list_logs_next_async(next_page_link, custom_headers:custom_headers).value!
|
1593
1602
|
response.body unless response.nil?
|
1594
1603
|
end
|
1595
1604
|
|
@@ -1603,8 +1612,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1603
1612
|
#
|
1604
1613
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1605
1614
|
#
|
1606
|
-
def list_logs_next_with_http_info(next_page_link, custom_headers
|
1607
|
-
list_logs_next_async(next_page_link, custom_headers).value!
|
1615
|
+
def list_logs_next_with_http_info(next_page_link, custom_headers:nil)
|
1616
|
+
list_logs_next_async(next_page_link, custom_headers:custom_headers).value!
|
1608
1617
|
end
|
1609
1618
|
|
1610
1619
|
#
|
@@ -1617,11 +1626,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1617
1626
|
#
|
1618
1627
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1619
1628
|
#
|
1620
|
-
def list_logs_next_async(next_page_link, custom_headers
|
1629
|
+
def list_logs_next_async(next_page_link, custom_headers:nil)
|
1621
1630
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1622
1631
|
|
1623
1632
|
|
1624
1633
|
request_headers = {}
|
1634
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1625
1635
|
|
1626
1636
|
# Set Headers
|
1627
1637
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1675,8 +1685,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1675
1685
|
#
|
1676
1686
|
# @return [SyncGroupListResult] operation results.
|
1677
1687
|
#
|
1678
|
-
def list_by_database_next(next_page_link, custom_headers
|
1679
|
-
response = list_by_database_next_async(next_page_link, custom_headers).value!
|
1688
|
+
def list_by_database_next(next_page_link, custom_headers:nil)
|
1689
|
+
response = list_by_database_next_async(next_page_link, custom_headers:custom_headers).value!
|
1680
1690
|
response.body unless response.nil?
|
1681
1691
|
end
|
1682
1692
|
|
@@ -1690,8 +1700,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1690
1700
|
#
|
1691
1701
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1692
1702
|
#
|
1693
|
-
def list_by_database_next_with_http_info(next_page_link, custom_headers
|
1694
|
-
list_by_database_next_async(next_page_link, custom_headers).value!
|
1703
|
+
def list_by_database_next_with_http_info(next_page_link, custom_headers:nil)
|
1704
|
+
list_by_database_next_async(next_page_link, custom_headers:custom_headers).value!
|
1695
1705
|
end
|
1696
1706
|
|
1697
1707
|
#
|
@@ -1704,11 +1714,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1704
1714
|
#
|
1705
1715
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1706
1716
|
#
|
1707
|
-
def list_by_database_next_async(next_page_link, custom_headers
|
1717
|
+
def list_by_database_next_async(next_page_link, custom_headers:nil)
|
1708
1718
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1709
1719
|
|
1710
1720
|
|
1711
1721
|
request_headers = {}
|
1722
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1712
1723
|
|
1713
1724
|
# Set Headers
|
1714
1725
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1763,12 +1774,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1763
1774
|
# @return [SyncDatabaseIdListResult] which provide lazy access to pages of the
|
1764
1775
|
# response.
|
1765
1776
|
#
|
1766
|
-
def list_sync_database_ids_as_lazy(location_name, custom_headers
|
1767
|
-
response = list_sync_database_ids_async(location_name, custom_headers).value!
|
1777
|
+
def list_sync_database_ids_as_lazy(location_name, custom_headers:nil)
|
1778
|
+
response = list_sync_database_ids_async(location_name, custom_headers:custom_headers).value!
|
1768
1779
|
unless response.nil?
|
1769
1780
|
page = response.body
|
1770
1781
|
page.next_method = Proc.new do |next_page_link|
|
1771
|
-
list_sync_database_ids_next_async(next_page_link, custom_headers)
|
1782
|
+
list_sync_database_ids_next_async(next_page_link, custom_headers:custom_headers)
|
1772
1783
|
end
|
1773
1784
|
page
|
1774
1785
|
end
|
@@ -1790,12 +1801,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1790
1801
|
# @return [SyncFullSchemaPropertiesListResult] which provide lazy access to
|
1791
1802
|
# pages of the response.
|
1792
1803
|
#
|
1793
|
-
def list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers
|
1794
|
-
response = list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value!
|
1804
|
+
def list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil)
|
1805
|
+
response = list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value!
|
1795
1806
|
unless response.nil?
|
1796
1807
|
page = response.body
|
1797
1808
|
page.next_method = Proc.new do |next_page_link|
|
1798
|
-
list_hub_schemas_next_async(next_page_link, custom_headers)
|
1809
|
+
list_hub_schemas_next_async(next_page_link, custom_headers:custom_headers)
|
1799
1810
|
end
|
1800
1811
|
page
|
1801
1812
|
end
|
@@ -1822,12 +1833,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1822
1833
|
# @return [SyncGroupLogListResult] which provide lazy access to pages of the
|
1823
1834
|
# response.
|
1824
1835
|
#
|
1825
|
-
def list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token
|
1826
|
-
response = list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token, custom_headers).value!
|
1836
|
+
def list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil)
|
1837
|
+
response = list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:continuation_token, custom_headers:custom_headers).value!
|
1827
1838
|
unless response.nil?
|
1828
1839
|
page = response.body
|
1829
1840
|
page.next_method = Proc.new do |next_page_link|
|
1830
|
-
list_logs_next_async(next_page_link, custom_headers)
|
1841
|
+
list_logs_next_async(next_page_link, custom_headers:custom_headers)
|
1831
1842
|
end
|
1832
1843
|
page
|
1833
1844
|
end
|
@@ -1848,12 +1859,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1848
1859
|
# @return [SyncGroupListResult] which provide lazy access to pages of the
|
1849
1860
|
# response.
|
1850
1861
|
#
|
1851
|
-
def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers
|
1852
|
-
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
1862
|
+
def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:nil)
|
1863
|
+
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
1853
1864
|
unless response.nil?
|
1854
1865
|
page = response.body
|
1855
1866
|
page.next_method = Proc.new do |next_page_link|
|
1856
|
-
list_by_database_next_async(next_page_link, custom_headers)
|
1867
|
+
list_by_database_next_async(next_page_link, custom_headers:custom_headers)
|
1857
1868
|
end
|
1858
1869
|
page
|
1859
1870
|
end
|