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 [FailoverGroup] operation results.
|
40
40
|
#
|
41
|
-
def get(resource_group_name, server_name, failover_group_name, custom_headers
|
42
|
-
response = get_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
41
|
+
def get(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
42
|
+
response = get_async(resource_group_name, server_name, failover_group_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, failover_group_name, custom_headers
|
61
|
-
get_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
60
|
+
def get_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
61
|
+
get_async(resource_group_name, server_name, failover_group_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, failover_group_name, custom_headers
|
78
|
+
def get_async(resource_group_name, server_name, failover_group_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, 'failover_group_name is nil' if failover_group_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 [FailoverGroup] operation results.
|
145
146
|
#
|
146
|
-
def create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
147
|
-
response = create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value!
|
147
|
+
def create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
148
|
+
response = create_or_update_async(resource_group_name, server_name, failover_group_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, failover_group_name, parameters, custom_headers
|
166
|
+
def create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
166
167
|
# Send request
|
167
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers)
|
168
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, failover_group_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, failover_group_name, custom_headers
|
196
|
-
response = delete_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
196
|
+
def delete(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
197
|
+
response = delete_async(resource_group_name, server_name, failover_group_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, failover_group_name, custom_headers
|
214
|
+
def delete_async(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
214
215
|
# Send request
|
215
|
-
promise = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers)
|
216
|
+
promise = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers)
|
216
217
|
|
217
218
|
promise = promise.then do |response|
|
218
219
|
# Defining deserialization method.
|
@@ -241,8 +242,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
241
242
|
#
|
242
243
|
# @return [FailoverGroup] operation results.
|
243
244
|
#
|
244
|
-
def update(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
245
|
-
response = update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value!
|
245
|
+
def update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
246
|
+
response = update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value!
|
246
247
|
response.body unless response.nil?
|
247
248
|
end
|
248
249
|
|
@@ -260,9 +261,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
260
261
|
# @return [Concurrent::Promise] promise which provides async access to http
|
261
262
|
# response.
|
262
263
|
#
|
263
|
-
def update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
264
|
+
def update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
264
265
|
# Send request
|
265
|
-
promise = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers)
|
266
|
+
promise = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers)
|
266
267
|
|
267
268
|
promise = promise.then do |response|
|
268
269
|
# Defining deserialization method.
|
@@ -291,8 +292,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
291
292
|
#
|
292
293
|
# @return [Array<FailoverGroup>] operation results.
|
293
294
|
#
|
294
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
295
|
-
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers)
|
295
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
296
|
+
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers)
|
296
297
|
first_page.get_all_items
|
297
298
|
end
|
298
299
|
|
@@ -309,8 +310,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
309
310
|
#
|
310
311
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
311
312
|
#
|
312
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
313
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
313
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
314
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
314
315
|
end
|
315
316
|
|
316
317
|
#
|
@@ -326,7 +327,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
326
327
|
#
|
327
328
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
328
329
|
#
|
329
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
330
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
330
331
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
331
332
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
332
333
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -334,6 +335,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
334
335
|
|
335
336
|
|
336
337
|
request_headers = {}
|
338
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
337
339
|
|
338
340
|
# Set Headers
|
339
341
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -392,8 +394,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
392
394
|
#
|
393
395
|
# @return [FailoverGroup] operation results.
|
394
396
|
#
|
395
|
-
def failover(resource_group_name, server_name, failover_group_name, custom_headers
|
396
|
-
response = failover_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
397
|
+
def failover(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
398
|
+
response = failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
397
399
|
response.body unless response.nil?
|
398
400
|
end
|
399
401
|
|
@@ -410,9 +412,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
410
412
|
# @return [Concurrent::Promise] promise which provides async access to http
|
411
413
|
# response.
|
412
414
|
#
|
413
|
-
def failover_async(resource_group_name, server_name, failover_group_name, custom_headers
|
415
|
+
def failover_async(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
414
416
|
# Send request
|
415
|
-
promise = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers)
|
417
|
+
promise = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers)
|
416
418
|
|
417
419
|
promise = promise.then do |response|
|
418
420
|
# Defining deserialization method.
|
@@ -443,8 +445,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
443
445
|
#
|
444
446
|
# @return [FailoverGroup] operation results.
|
445
447
|
#
|
446
|
-
def force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers
|
447
|
-
response = force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
448
|
+
def force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
449
|
+
response = force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
448
450
|
response.body unless response.nil?
|
449
451
|
end
|
450
452
|
|
@@ -461,9 +463,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
461
463
|
# @return [Concurrent::Promise] promise which provides async access to http
|
462
464
|
# response.
|
463
465
|
#
|
464
|
-
def force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers
|
466
|
+
def force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
465
467
|
# Send request
|
466
|
-
promise = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers)
|
468
|
+
promise = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers)
|
467
469
|
|
468
470
|
promise = promise.then do |response|
|
469
471
|
# Defining deserialization method.
|
@@ -494,8 +496,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
494
496
|
#
|
495
497
|
# @return [FailoverGroup] operation results.
|
496
498
|
#
|
497
|
-
def begin_create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
498
|
-
response = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value!
|
499
|
+
def begin_create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
500
|
+
response = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value!
|
499
501
|
response.body unless response.nil?
|
500
502
|
end
|
501
503
|
|
@@ -514,8 +516,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
514
516
|
#
|
515
517
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
516
518
|
#
|
517
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
518
|
-
begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value!
|
519
|
+
def begin_create_or_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
520
|
+
begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value!
|
519
521
|
end
|
520
522
|
|
521
523
|
#
|
@@ -533,7 +535,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
533
535
|
#
|
534
536
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
535
537
|
#
|
536
|
-
def begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
538
|
+
def begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
537
539
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
538
540
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
539
541
|
fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil?
|
@@ -543,13 +545,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
543
545
|
|
544
546
|
|
545
547
|
request_headers = {}
|
548
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
546
549
|
|
547
550
|
# Set Headers
|
548
551
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
549
552
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
550
553
|
|
551
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
552
|
-
|
553
554
|
# Serialize Request
|
554
555
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup.mapper()
|
555
556
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -619,8 +620,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
619
620
|
# will be added to the HTTP request.
|
620
621
|
#
|
621
622
|
#
|
622
|
-
def begin_delete(resource_group_name, server_name, failover_group_name, custom_headers
|
623
|
-
response = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
623
|
+
def begin_delete(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
624
|
+
response = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
624
625
|
nil
|
625
626
|
end
|
626
627
|
|
@@ -638,8 +639,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
638
639
|
#
|
639
640
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
640
641
|
#
|
641
|
-
def begin_delete_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers
|
642
|
-
begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
642
|
+
def begin_delete_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
643
|
+
begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
643
644
|
end
|
644
645
|
|
645
646
|
#
|
@@ -656,7 +657,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
656
657
|
#
|
657
658
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
658
659
|
#
|
659
|
-
def begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers
|
660
|
+
def begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
660
661
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
661
662
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
662
663
|
fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil?
|
@@ -665,6 +666,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
665
666
|
|
666
667
|
|
667
668
|
request_headers = {}
|
669
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
668
670
|
|
669
671
|
# Set Headers
|
670
672
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -714,8 +716,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
714
716
|
#
|
715
717
|
# @return [FailoverGroup] operation results.
|
716
718
|
#
|
717
|
-
def begin_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
718
|
-
response = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value!
|
719
|
+
def begin_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
720
|
+
response = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value!
|
719
721
|
response.body unless response.nil?
|
720
722
|
end
|
721
723
|
|
@@ -734,8 +736,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
734
736
|
#
|
735
737
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
736
738
|
#
|
737
|
-
def begin_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
738
|
-
begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value!
|
739
|
+
def begin_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
740
|
+
begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value!
|
739
741
|
end
|
740
742
|
|
741
743
|
#
|
@@ -753,7 +755,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
753
755
|
#
|
754
756
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
755
757
|
#
|
756
|
-
def begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers
|
758
|
+
def begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil)
|
757
759
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
758
760
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
759
761
|
fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil?
|
@@ -763,13 +765,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
763
765
|
|
764
766
|
|
765
767
|
request_headers = {}
|
768
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
766
769
|
|
767
770
|
# Set Headers
|
768
771
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
769
772
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
770
773
|
|
771
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
772
|
-
|
773
774
|
# Serialize Request
|
774
775
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupUpdate.mapper()
|
775
776
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -830,8 +831,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
830
831
|
#
|
831
832
|
# @return [FailoverGroup] operation results.
|
832
833
|
#
|
833
|
-
def begin_failover(resource_group_name, server_name, failover_group_name, custom_headers
|
834
|
-
response = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
834
|
+
def begin_failover(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
835
|
+
response = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
835
836
|
response.body unless response.nil?
|
836
837
|
end
|
837
838
|
|
@@ -849,8 +850,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
849
850
|
#
|
850
851
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
851
852
|
#
|
852
|
-
def begin_failover_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers
|
853
|
-
begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
853
|
+
def begin_failover_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
854
|
+
begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
854
855
|
end
|
855
856
|
|
856
857
|
#
|
@@ -867,7 +868,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
867
868
|
#
|
868
869
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
869
870
|
#
|
870
|
-
def begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers
|
871
|
+
def begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
871
872
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
872
873
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
873
874
|
fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil?
|
@@ -876,6 +877,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
876
877
|
|
877
878
|
|
878
879
|
request_headers = {}
|
880
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
879
881
|
|
880
882
|
# Set Headers
|
881
883
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -935,8 +937,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
935
937
|
#
|
936
938
|
# @return [FailoverGroup] operation results.
|
937
939
|
#
|
938
|
-
def begin_force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers
|
939
|
-
response = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
940
|
+
def begin_force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
941
|
+
response = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
940
942
|
response.body unless response.nil?
|
941
943
|
end
|
942
944
|
|
@@ -955,8 +957,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
955
957
|
#
|
956
958
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
957
959
|
#
|
958
|
-
def begin_force_failover_allow_data_loss_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers
|
959
|
-
begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers).value!
|
960
|
+
def begin_force_failover_allow_data_loss_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
961
|
+
begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value!
|
960
962
|
end
|
961
963
|
|
962
964
|
#
|
@@ -974,7 +976,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
974
976
|
#
|
975
977
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
976
978
|
#
|
977
|
-
def begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers
|
979
|
+
def begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:nil)
|
978
980
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
979
981
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
980
982
|
fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil?
|
@@ -983,6 +985,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
983
985
|
|
984
986
|
|
985
987
|
request_headers = {}
|
988
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
986
989
|
|
987
990
|
# Set Headers
|
988
991
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1037,8 +1040,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1037
1040
|
#
|
1038
1041
|
# @return [FailoverGroupListResult] operation results.
|
1039
1042
|
#
|
1040
|
-
def list_by_server_next(next_page_link, custom_headers
|
1041
|
-
response = list_by_server_next_async(next_page_link, custom_headers).value!
|
1043
|
+
def list_by_server_next(next_page_link, custom_headers:nil)
|
1044
|
+
response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
1042
1045
|
response.body unless response.nil?
|
1043
1046
|
end
|
1044
1047
|
|
@@ -1052,8 +1055,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1052
1055
|
#
|
1053
1056
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1054
1057
|
#
|
1055
|
-
def list_by_server_next_with_http_info(next_page_link, custom_headers
|
1056
|
-
list_by_server_next_async(next_page_link, custom_headers).value!
|
1058
|
+
def list_by_server_next_with_http_info(next_page_link, custom_headers:nil)
|
1059
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
1057
1060
|
end
|
1058
1061
|
|
1059
1062
|
#
|
@@ -1066,11 +1069,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1066
1069
|
#
|
1067
1070
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1068
1071
|
#
|
1069
|
-
def list_by_server_next_async(next_page_link, custom_headers
|
1072
|
+
def list_by_server_next_async(next_page_link, custom_headers:nil)
|
1070
1073
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1071
1074
|
|
1072
1075
|
|
1073
1076
|
request_headers = {}
|
1077
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1074
1078
|
|
1075
1079
|
# Set Headers
|
1076
1080
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1128,12 +1132,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
1128
1132
|
# @return [FailoverGroupListResult] which provide lazy access to pages of the
|
1129
1133
|
# response.
|
1130
1134
|
#
|
1131
|
-
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers
|
1132
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
1135
|
+
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil)
|
1136
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
1133
1137
|
unless response.nil?
|
1134
1138
|
page = response.body
|
1135
1139
|
page.next_method = Proc.new do |next_page_link|
|
1136
|
-
list_by_server_next_async(next_page_link, custom_headers)
|
1140
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers)
|
1137
1141
|
end
|
1138
1142
|
page
|
1139
1143
|
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::SQL::Mgmt::V2015_05_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Usage Metric of a Subscription in a Location.
|
10
|
+
#
|
11
|
+
class SubscriptionUsage < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] User-readable name of the metric.
|
16
|
+
attr_accessor :display_name
|
17
|
+
|
18
|
+
# @return [Float] Current value of the metric.
|
19
|
+
attr_accessor :current_value
|
20
|
+
|
21
|
+
# @return [Float] Boundary value of the metric.
|
22
|
+
attr_accessor :limit
|
23
|
+
|
24
|
+
# @return [String] Unit of the metric.
|
25
|
+
attr_accessor :unit
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for SubscriptionUsage class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'SubscriptionUsage',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'SubscriptionUsage',
|
40
|
+
model_properties: {
|
41
|
+
id: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
name: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'name',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
type: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'type',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
display_name: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'properties.displayName',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
current_value: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'properties.currentValue',
|
82
|
+
type: {
|
83
|
+
name: 'Double'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
limit: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'properties.limit',
|
91
|
+
type: {
|
92
|
+
name: 'Double'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
unit: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
read_only: true,
|
99
|
+
serialized_name: 'properties.unit',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|