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
@@ -32,8 +32,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
32
32
|
#
|
33
33
|
# @return [OperationListResult] operation results.
|
34
34
|
#
|
35
|
-
def list(custom_headers
|
36
|
-
response = list_async(custom_headers).value!
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
response = list_async(custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
@@ -45,8 +45,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
45
45
|
#
|
46
46
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
47
|
#
|
48
|
-
def list_with_http_info(custom_headers
|
49
|
-
list_async(custom_headers).value!
|
48
|
+
def list_with_http_info(custom_headers:nil)
|
49
|
+
list_async(custom_headers:custom_headers).value!
|
50
50
|
end
|
51
51
|
|
52
52
|
#
|
@@ -57,11 +57,12 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
57
57
|
#
|
58
58
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
59
|
#
|
60
|
-
def list_async(custom_headers
|
60
|
+
def list_async(custom_headers:nil)
|
61
61
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
62
|
|
63
63
|
|
64
64
|
request_headers = {}
|
65
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
66
|
|
66
67
|
# Set Headers
|
67
68
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
37
37
|
#
|
38
38
|
# @return [TopQueriesListResult] operation results.
|
39
39
|
#
|
40
|
-
def list_by_database(resource_group_name, server_name, database_name, custom_headers
|
41
|
-
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
40
|
+
def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
|
41
|
+
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
55
55
|
#
|
56
56
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
57
|
#
|
58
|
-
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers
|
59
|
-
list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
58
|
+
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
59
|
+
list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
60
60
|
end
|
61
61
|
|
62
62
|
#
|
@@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
72
72
|
#
|
73
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
74
|
#
|
75
|
-
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers
|
75
|
+
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
76
76
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
77
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
78
78
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
81
81
|
|
82
82
|
|
83
83
|
request_headers = {}
|
84
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
85
|
|
85
86
|
# Set Headers
|
86
87
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
38
38
|
#
|
39
39
|
# @return [QueryStatisticListResult] operation results.
|
40
40
|
#
|
41
|
-
def list_by_query(resource_group_name, server_name, database_name, query_id, custom_headers
|
42
|
-
response = list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers).value!
|
41
|
+
def list_by_query(resource_group_name, server_name, database_name, query_id, custom_headers:nil)
|
42
|
+
response = list_by_query_async(resource_group_name, server_name, database_name, query_id, 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::V2014_04_01
|
|
57
57
|
#
|
58
58
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
59
|
#
|
60
|
-
def list_by_query_with_http_info(resource_group_name, server_name, database_name, query_id, custom_headers
|
61
|
-
list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers).value!
|
60
|
+
def list_by_query_with_http_info(resource_group_name, server_name, database_name, query_id, custom_headers:nil)
|
61
|
+
list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:custom_headers).value!
|
62
62
|
end
|
63
63
|
|
64
64
|
#
|
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers
|
78
|
+
def list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:nil)
|
79
79
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
80
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
81
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
85
85
|
|
86
86
|
|
87
87
|
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
89
|
|
89
90
|
# Set Headers
|
90
91
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -0,0 +1,134 @@
|
|
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::V2014_04_01
|
7
|
+
#
|
8
|
+
# The Azure SQL Database management API provides a RESTful set of web
|
9
|
+
# services that interact with Azure SQL Database services to manage your
|
10
|
+
# databases. The API enables you to create, retrieve, update, and delete
|
11
|
+
# databases.
|
12
|
+
#
|
13
|
+
class QueryTexts
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the QueryTexts class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [SqlManagementClient] reference to the SqlManagementClient
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets a query's text.
|
29
|
+
#
|
30
|
+
# @param resource_group_name [String] The name of the resource group that
|
31
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
32
|
+
# Manager API or the portal.
|
33
|
+
# @param server_name [String] The name of the server.
|
34
|
+
# @param database_name [String] The name of the database.
|
35
|
+
# @param query_id [String] The id of the query
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
# @return [QueryTextListResult] operation results.
|
40
|
+
#
|
41
|
+
def list_by_query(resource_group_name, server_name, database_name, query_id, custom_headers:nil)
|
42
|
+
response = list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:custom_headers).value!
|
43
|
+
response.body unless response.nil?
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Gets a query's text.
|
48
|
+
#
|
49
|
+
# @param resource_group_name [String] The name of the resource group that
|
50
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
51
|
+
# Manager API or the portal.
|
52
|
+
# @param server_name [String] The name of the server.
|
53
|
+
# @param database_name [String] The name of the database.
|
54
|
+
# @param query_id [String] The id of the query
|
55
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
|
+
# will be added to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
|
+
#
|
60
|
+
def list_by_query_with_http_info(resource_group_name, server_name, database_name, query_id, custom_headers:nil)
|
61
|
+
list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:custom_headers).value!
|
62
|
+
end
|
63
|
+
|
64
|
+
#
|
65
|
+
# Gets a query's text.
|
66
|
+
#
|
67
|
+
# @param resource_group_name [String] The name of the resource group that
|
68
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
69
|
+
# Manager API or the portal.
|
70
|
+
# @param server_name [String] The name of the server.
|
71
|
+
# @param database_name [String] The name of the database.
|
72
|
+
# @param query_id [String] The id of the query
|
73
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
74
|
+
# to the HTTP request.
|
75
|
+
#
|
76
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
|
+
#
|
78
|
+
def list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:nil)
|
79
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
82
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
83
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
84
|
+
fail ArgumentError, 'query_id is nil' if query_id.nil?
|
85
|
+
|
86
|
+
|
87
|
+
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
+
|
90
|
+
# Set Headers
|
91
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
92
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
93
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/topQueries/{queryId}/queryText'
|
94
|
+
|
95
|
+
request_url = @base_url || @client.base_url
|
96
|
+
|
97
|
+
options = {
|
98
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
99
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'queryId' => query_id},
|
100
|
+
query_params: {'api-version' => @client.api_version},
|
101
|
+
headers: request_headers.merge(custom_headers || {}),
|
102
|
+
base_url: request_url
|
103
|
+
}
|
104
|
+
promise = @client.make_request_async(:get, path_template, options)
|
105
|
+
|
106
|
+
promise = promise.then do |result|
|
107
|
+
http_response = result.response
|
108
|
+
status_code = http_response.status
|
109
|
+
response_content = http_response.body
|
110
|
+
unless status_code == 200
|
111
|
+
error_model = JSON.load(response_content)
|
112
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
113
|
+
end
|
114
|
+
|
115
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
116
|
+
# Deserialize Response
|
117
|
+
if status_code == 200
|
118
|
+
begin
|
119
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
120
|
+
result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::QueryTextListResult.mapper()
|
121
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
122
|
+
rescue Exception => e
|
123
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
result
|
128
|
+
end
|
129
|
+
|
130
|
+
promise.execute
|
131
|
+
end
|
132
|
+
|
133
|
+
end
|
134
|
+
end
|
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
38
38
|
#
|
39
39
|
# @return [RecommendedElasticPool] operation results.
|
40
40
|
#
|
41
|
-
def get(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers
|
42
|
-
response = get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value!
|
41
|
+
def get(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil)
|
42
|
+
response = get_async(resource_group_name, server_name, recommended_elastic_pool_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::V2014_04_01
|
|
57
57
|
#
|
58
58
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
59
|
#
|
60
|
-
def get_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers
|
61
|
-
get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value!
|
60
|
+
def get_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil)
|
61
|
+
get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value!
|
62
62
|
end
|
63
63
|
|
64
64
|
#
|
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
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, recommended_elastic_pool_name, custom_headers
|
78
|
+
def get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil)
|
79
79
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
80
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
81
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
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
|
@@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
140
141
|
#
|
141
142
|
# @return [RecommendedElasticPoolListResult] operation results.
|
142
143
|
#
|
143
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
144
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
144
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
145
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
145
146
|
response.body unless response.nil?
|
146
147
|
end
|
147
148
|
|
@@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
157
158
|
#
|
158
159
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
159
160
|
#
|
160
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
161
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
161
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
162
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
162
163
|
end
|
163
164
|
|
164
165
|
#
|
@@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
173
174
|
#
|
174
175
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
176
|
#
|
176
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
177
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
177
178
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
178
179
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
179
180
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
181
182
|
|
182
183
|
|
183
184
|
request_headers = {}
|
185
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
184
186
|
|
185
187
|
# Set Headers
|
186
188
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -239,8 +241,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
239
241
|
#
|
240
242
|
# @return [RecommendedElasticPoolListMetricsResult] operation results.
|
241
243
|
#
|
242
|
-
def list_metrics(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers
|
243
|
-
response = list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value!
|
244
|
+
def list_metrics(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil)
|
245
|
+
response = list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value!
|
244
246
|
response.body unless response.nil?
|
245
247
|
end
|
246
248
|
|
@@ -258,8 +260,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
258
260
|
#
|
259
261
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
260
262
|
#
|
261
|
-
def list_metrics_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers
|
262
|
-
list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value!
|
263
|
+
def list_metrics_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil)
|
264
|
+
list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value!
|
263
265
|
end
|
264
266
|
|
265
267
|
#
|
@@ -276,7 +278,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
276
278
|
#
|
277
279
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
278
280
|
#
|
279
|
-
def list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers
|
281
|
+
def list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil)
|
280
282
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
281
283
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
282
284
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -285,6 +287,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
285
287
|
|
286
288
|
|
287
289
|
request_headers = {}
|
290
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
288
291
|
|
289
292
|
# Set Headers
|
290
293
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
38
38
|
#
|
39
39
|
# @return [RecoverableDatabase] operation results.
|
40
40
|
#
|
41
|
-
def get(resource_group_name, server_name, database_name, custom_headers
|
42
|
-
response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
|
41
|
+
def get(resource_group_name, server_name, database_name, custom_headers:nil)
|
42
|
+
response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
43
43
|
response.body unless response.nil?
|
44
44
|
end
|
45
45
|
|
@@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
57
57
|
#
|
58
58
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
59
|
#
|
60
|
-
def get_with_http_info(resource_group_name, server_name, database_name, custom_headers
|
61
|
-
get_async(resource_group_name, server_name, database_name, custom_headers).value!
|
60
|
+
def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
61
|
+
get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
62
62
|
end
|
63
63
|
|
64
64
|
#
|
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def get_async(resource_group_name, server_name, database_name, custom_headers
|
78
|
+
def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
79
79
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
80
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
81
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
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
|
@@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
140
141
|
#
|
141
142
|
# @return [RecoverableDatabaseListResult] operation results.
|
142
143
|
#
|
143
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
144
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
144
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
145
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
145
146
|
response.body unless response.nil?
|
146
147
|
end
|
147
148
|
|
@@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
157
158
|
#
|
158
159
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
159
160
|
#
|
160
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
161
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
161
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
162
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
162
163
|
end
|
163
164
|
|
164
165
|
#
|
@@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
173
174
|
#
|
174
175
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
176
|
#
|
176
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
177
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
177
178
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
178
179
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
179
180
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
181
182
|
|
182
183
|
|
183
184
|
request_headers = {}
|
185
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
184
186
|
|
185
187
|
# Set Headers
|
186
188
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
38
38
|
# will be added to the HTTP request.
|
39
39
|
#
|
40
40
|
#
|
41
|
-
def delete(resource_group_name, server_name, database_name, link_id, custom_headers
|
42
|
-
response = delete_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
41
|
+
def delete(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
42
|
+
response = delete_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
43
43
|
nil
|
44
44
|
end
|
45
45
|
|
@@ -58,8 +58,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
58
58
|
#
|
59
59
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
60
60
|
#
|
61
|
-
def delete_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers
|
62
|
-
delete_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
61
|
+
def delete_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
62
|
+
delete_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
63
63
|
end
|
64
64
|
|
65
65
|
#
|
@@ -77,7 +77,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
77
77
|
#
|
78
78
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
79
79
|
#
|
80
|
-
def delete_async(resource_group_name, server_name, database_name, link_id, custom_headers
|
80
|
+
def delete_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
81
81
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
82
82
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
83
83
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -87,6 +87,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
87
87
|
|
88
88
|
|
89
89
|
request_headers = {}
|
90
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
90
91
|
|
91
92
|
# Set Headers
|
92
93
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -135,8 +136,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
135
136
|
#
|
136
137
|
# @return [ReplicationLink] operation results.
|
137
138
|
#
|
138
|
-
def get(resource_group_name, server_name, database_name, link_id, custom_headers
|
139
|
-
response = get_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
139
|
+
def get(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
140
|
+
response = get_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
140
141
|
response.body unless response.nil?
|
141
142
|
end
|
142
143
|
|
@@ -154,8 +155,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
154
155
|
#
|
155
156
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
156
157
|
#
|
157
|
-
def get_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers
|
158
|
-
get_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
158
|
+
def get_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
159
|
+
get_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
159
160
|
end
|
160
161
|
|
161
162
|
#
|
@@ -172,7 +173,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
172
173
|
#
|
173
174
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
174
175
|
#
|
175
|
-
def get_async(resource_group_name, server_name, database_name, link_id, custom_headers
|
176
|
+
def get_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
176
177
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
177
178
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
178
179
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -182,6 +183,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
182
183
|
|
183
184
|
|
184
185
|
request_headers = {}
|
186
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
185
187
|
|
186
188
|
# Set Headers
|
187
189
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -240,8 +242,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
240
242
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
241
243
|
# will be added to the HTTP request.
|
242
244
|
#
|
243
|
-
def failover(resource_group_name, server_name, database_name, link_id, custom_headers
|
244
|
-
response = failover_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
245
|
+
def failover(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
246
|
+
response = failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
245
247
|
nil
|
246
248
|
end
|
247
249
|
|
@@ -259,9 +261,9 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
259
261
|
# @return [Concurrent::Promise] promise which provides async access to http
|
260
262
|
# response.
|
261
263
|
#
|
262
|
-
def failover_async(resource_group_name, server_name, database_name, link_id, custom_headers
|
264
|
+
def failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
263
265
|
# Send request
|
264
|
-
promise = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers)
|
266
|
+
promise = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers)
|
265
267
|
|
266
268
|
promise = promise.then do |response|
|
267
269
|
# Defining deserialization method.
|
@@ -289,8 +291,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
289
291
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
290
292
|
# will be added to the HTTP request.
|
291
293
|
#
|
292
|
-
def failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers
|
293
|
-
response = failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
294
|
+
def failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
295
|
+
response = failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
294
296
|
nil
|
295
297
|
end
|
296
298
|
|
@@ -308,9 +310,9 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
308
310
|
# @return [Concurrent::Promise] promise which provides async access to http
|
309
311
|
# response.
|
310
312
|
#
|
311
|
-
def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers
|
313
|
+
def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
312
314
|
# Send request
|
313
|
-
promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers)
|
315
|
+
promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers)
|
314
316
|
|
315
317
|
promise = promise.then do |response|
|
316
318
|
# Defining deserialization method.
|
@@ -337,8 +339,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
337
339
|
#
|
338
340
|
# @return [ReplicationLinkListResult] operation results.
|
339
341
|
#
|
340
|
-
def list_by_database(resource_group_name, server_name, database_name, custom_headers
|
341
|
-
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
342
|
+
def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
|
343
|
+
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
342
344
|
response.body unless response.nil?
|
343
345
|
end
|
344
346
|
|
@@ -355,8 +357,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
355
357
|
#
|
356
358
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
357
359
|
#
|
358
|
-
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers
|
359
|
-
list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
360
|
+
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
361
|
+
list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
360
362
|
end
|
361
363
|
|
362
364
|
#
|
@@ -372,7 +374,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
372
374
|
#
|
373
375
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
376
|
#
|
375
|
-
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers
|
377
|
+
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
376
378
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
377
379
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
378
380
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -381,6 +383,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
381
383
|
|
382
384
|
|
383
385
|
request_headers = {}
|
386
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
384
387
|
|
385
388
|
# Set Headers
|
386
389
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -440,8 +443,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
440
443
|
# will be added to the HTTP request.
|
441
444
|
#
|
442
445
|
#
|
443
|
-
def begin_failover(resource_group_name, server_name, database_name, link_id, custom_headers
|
444
|
-
response = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
446
|
+
def begin_failover(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
447
|
+
response = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
445
448
|
nil
|
446
449
|
end
|
447
450
|
|
@@ -461,8 +464,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
461
464
|
#
|
462
465
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
463
466
|
#
|
464
|
-
def begin_failover_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers
|
465
|
-
begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
467
|
+
def begin_failover_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
468
|
+
begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
466
469
|
end
|
467
470
|
|
468
471
|
#
|
@@ -481,7 +484,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
481
484
|
#
|
482
485
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
483
486
|
#
|
484
|
-
def begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers
|
487
|
+
def begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
485
488
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
486
489
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
487
490
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -491,6 +494,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
491
494
|
|
492
495
|
|
493
496
|
request_headers = {}
|
497
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
494
498
|
|
495
499
|
# Set Headers
|
496
500
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -540,8 +544,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
540
544
|
# will be added to the HTTP request.
|
541
545
|
#
|
542
546
|
#
|
543
|
-
def begin_failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers
|
544
|
-
response = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
547
|
+
def begin_failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
548
|
+
response = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
545
549
|
nil
|
546
550
|
end
|
547
551
|
|
@@ -561,8 +565,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
561
565
|
#
|
562
566
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
563
567
|
#
|
564
|
-
def begin_failover_allow_data_loss_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers
|
565
|
-
begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers).value!
|
568
|
+
def begin_failover_allow_data_loss_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
569
|
+
begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value!
|
566
570
|
end
|
567
571
|
|
568
572
|
#
|
@@ -581,7 +585,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
581
585
|
#
|
582
586
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
583
587
|
#
|
584
|
-
def begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers
|
588
|
+
def begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil)
|
585
589
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
586
590
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
587
591
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -591,6 +595,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
591
595
|
|
592
596
|
|
593
597
|
request_headers = {}
|
598
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
594
599
|
|
595
600
|
# Set Headers
|
596
601
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|