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
@@ -0,0 +1,100 @@
|
|
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
|
+
# A list of subscription usage metrics in a location.
|
10
|
+
#
|
11
|
+
class SubscriptionUsageListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<SubscriptionUsage>] Array of results.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to retrieve next page of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<SubscriptionUsage>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [SubscriptionUsageListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for SubscriptionUsageListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'SubscriptionUsageListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'SubscriptionUsageListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
read_only: true,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'SubscriptionUsageElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'SubscriptionUsage'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
read_only: true,
|
89
|
+
serialized_name: 'nextLink',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -32,8 +32,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
32
32
|
#
|
33
33
|
# @return [Array<Operation>] operation results.
|
34
34
|
#
|
35
|
-
def list(custom_headers
|
36
|
-
first_page = list_as_lazy(custom_headers)
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
37
37
|
first_page.get_all_items
|
38
38
|
end
|
39
39
|
|
@@ -45,8 +45,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
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::V2015_05_01_preview
|
|
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
|
@@ -115,8 +116,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
115
116
|
#
|
116
117
|
# @return [OperationListResult] operation results.
|
117
118
|
#
|
118
|
-
def list_next(next_page_link, custom_headers
|
119
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
119
|
+
def list_next(next_page_link, custom_headers:nil)
|
120
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
120
121
|
response.body unless response.nil?
|
121
122
|
end
|
122
123
|
|
@@ -130,8 +131,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
130
131
|
#
|
131
132
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
132
133
|
#
|
133
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
134
|
-
list_next_async(next_page_link, custom_headers).value!
|
134
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
135
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
135
136
|
end
|
136
137
|
|
137
138
|
#
|
@@ -144,11 +145,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
144
145
|
#
|
145
146
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
147
|
#
|
147
|
-
def list_next_async(next_page_link, custom_headers
|
148
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
148
149
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
149
150
|
|
150
151
|
|
151
152
|
request_headers = {}
|
153
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
152
154
|
|
153
155
|
# Set Headers
|
154
156
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -201,12 +203,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
201
203
|
# @return [OperationListResult] which provide lazy access to pages of the
|
202
204
|
# response.
|
203
205
|
#
|
204
|
-
def list_as_lazy(custom_headers
|
205
|
-
response = list_async(custom_headers).value!
|
206
|
+
def list_as_lazy(custom_headers:nil)
|
207
|
+
response = list_async(custom_headers:custom_headers).value!
|
206
208
|
unless response.nil?
|
207
209
|
page = response.body
|
208
210
|
page.next_method = Proc.new do |next_page_link|
|
209
|
-
list_next_async(next_page_link, custom_headers)
|
211
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
210
212
|
end
|
211
213
|
page
|
212
214
|
end
|
@@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
36
36
|
#
|
37
37
|
# @return [Array] operation results.
|
38
38
|
#
|
39
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
40
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
39
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
40
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
53
53
|
#
|
54
54
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
55
|
#
|
56
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
57
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
56
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
57
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
58
58
|
end
|
59
59
|
|
60
60
|
#
|
@@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
72
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
74
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
75
75
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
77
77
|
|
78
78
|
|
79
79
|
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
81
|
|
81
82
|
# Set Headers
|
82
83
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -150,8 +151,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
150
151
|
#
|
151
152
|
# @return [Advisor] operation results.
|
152
153
|
#
|
153
|
-
def get(resource_group_name, server_name, advisor_name, custom_headers
|
154
|
-
response = get_async(resource_group_name, server_name, advisor_name, custom_headers).value!
|
154
|
+
def get(resource_group_name, server_name, advisor_name, custom_headers:nil)
|
155
|
+
response = get_async(resource_group_name, server_name, advisor_name, custom_headers:custom_headers).value!
|
155
156
|
response.body unless response.nil?
|
156
157
|
end
|
157
158
|
|
@@ -168,8 +169,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
168
169
|
#
|
169
170
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
170
171
|
#
|
171
|
-
def get_with_http_info(resource_group_name, server_name, advisor_name, custom_headers
|
172
|
-
get_async(resource_group_name, server_name, advisor_name, custom_headers).value!
|
172
|
+
def get_with_http_info(resource_group_name, server_name, advisor_name, custom_headers:nil)
|
173
|
+
get_async(resource_group_name, server_name, advisor_name, custom_headers:custom_headers).value!
|
173
174
|
end
|
174
175
|
|
175
176
|
#
|
@@ -185,7 +186,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
185
186
|
#
|
186
187
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
187
188
|
#
|
188
|
-
def get_async(resource_group_name, server_name, advisor_name, custom_headers
|
189
|
+
def get_async(resource_group_name, server_name, advisor_name, custom_headers:nil)
|
189
190
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
190
191
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
191
192
|
fail ArgumentError, 'advisor_name is nil' if advisor_name.nil?
|
@@ -194,6 +195,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
194
195
|
|
195
196
|
|
196
197
|
request_headers = {}
|
198
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
197
199
|
|
198
200
|
# Set Headers
|
199
201
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -252,8 +254,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
252
254
|
#
|
253
255
|
# @return [Advisor] operation results.
|
254
256
|
#
|
255
|
-
def update(resource_group_name, server_name, advisor_name, parameters, custom_headers
|
256
|
-
response = update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers).value!
|
257
|
+
def update(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
258
|
+
response = update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
257
259
|
response.body unless response.nil?
|
258
260
|
end
|
259
261
|
|
@@ -271,8 +273,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
271
273
|
#
|
272
274
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
273
275
|
#
|
274
|
-
def update_with_http_info(resource_group_name, server_name, advisor_name, parameters, custom_headers
|
275
|
-
update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers).value!
|
276
|
+
def update_with_http_info(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
277
|
+
update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
276
278
|
end
|
277
279
|
|
278
280
|
#
|
@@ -289,7 +291,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
289
291
|
#
|
290
292
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
291
293
|
#
|
292
|
-
def update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers
|
294
|
+
def update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
293
295
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
294
296
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
295
297
|
fail ArgumentError, 'advisor_name is nil' if advisor_name.nil?
|
@@ -299,13 +301,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
299
301
|
|
300
302
|
|
301
303
|
request_headers = {}
|
304
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
302
305
|
|
303
306
|
# Set Headers
|
304
307
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
305
308
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
306
309
|
|
307
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
308
|
-
|
309
310
|
# Serialize Request
|
310
311
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor.mapper()
|
311
312
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
36
36
|
#
|
37
37
|
# @return [Array<ServerKey>] operation results.
|
38
38
|
#
|
39
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
40
|
-
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers)
|
39
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
40
|
+
first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers)
|
41
41
|
first_page.get_all_items
|
42
42
|
end
|
43
43
|
|
@@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
53
53
|
#
|
54
54
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
55
|
#
|
56
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
57
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
56
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
57
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
58
58
|
end
|
59
59
|
|
60
60
|
#
|
@@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
72
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
74
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
75
75
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
77
77
|
|
78
78
|
|
79
79
|
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
81
|
|
81
82
|
# Set Headers
|
82
83
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -134,8 +135,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
134
135
|
#
|
135
136
|
# @return [ServerKey] operation results.
|
136
137
|
#
|
137
|
-
def get(resource_group_name, server_name, key_name, custom_headers
|
138
|
-
response = get_async(resource_group_name, server_name, key_name, custom_headers).value!
|
138
|
+
def get(resource_group_name, server_name, key_name, custom_headers:nil)
|
139
|
+
response = get_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value!
|
139
140
|
response.body unless response.nil?
|
140
141
|
end
|
141
142
|
|
@@ -152,8 +153,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
152
153
|
#
|
153
154
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
154
155
|
#
|
155
|
-
def get_with_http_info(resource_group_name, server_name, key_name, custom_headers
|
156
|
-
get_async(resource_group_name, server_name, key_name, custom_headers).value!
|
156
|
+
def get_with_http_info(resource_group_name, server_name, key_name, custom_headers:nil)
|
157
|
+
get_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value!
|
157
158
|
end
|
158
159
|
|
159
160
|
#
|
@@ -169,7 +170,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
169
170
|
#
|
170
171
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
171
172
|
#
|
172
|
-
def get_async(resource_group_name, server_name, key_name, custom_headers
|
173
|
+
def get_async(resource_group_name, server_name, key_name, custom_headers:nil)
|
173
174
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
174
175
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
175
176
|
fail ArgumentError, 'key_name is nil' if key_name.nil?
|
@@ -178,6 +179,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
178
179
|
|
179
180
|
|
180
181
|
request_headers = {}
|
182
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
181
183
|
|
182
184
|
# Set Headers
|
183
185
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -241,8 +243,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
241
243
|
#
|
242
244
|
# @return [ServerKey] operation results.
|
243
245
|
#
|
244
|
-
def create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers
|
245
|
-
response = create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers).value!
|
246
|
+
def create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers:nil)
|
247
|
+
response = create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers).value!
|
246
248
|
response.body unless response.nil?
|
247
249
|
end
|
248
250
|
|
@@ -264,9 +266,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
264
266
|
# @return [Concurrent::Promise] promise which provides async access to http
|
265
267
|
# response.
|
266
268
|
#
|
267
|
-
def create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers
|
269
|
+
def create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:nil)
|
268
270
|
# Send request
|
269
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers)
|
271
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers)
|
270
272
|
|
271
273
|
promise = promise.then do |response|
|
272
274
|
# Defining deserialization method.
|
@@ -293,8 +295,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
293
295
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
294
296
|
# will be added to the HTTP request.
|
295
297
|
#
|
296
|
-
def delete(resource_group_name, server_name, key_name, custom_headers
|
297
|
-
response = delete_async(resource_group_name, server_name, key_name, custom_headers).value!
|
298
|
+
def delete(resource_group_name, server_name, key_name, custom_headers:nil)
|
299
|
+
response = delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value!
|
298
300
|
nil
|
299
301
|
end
|
300
302
|
|
@@ -310,9 +312,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
310
312
|
# @return [Concurrent::Promise] promise which provides async access to http
|
311
313
|
# response.
|
312
314
|
#
|
313
|
-
def delete_async(resource_group_name, server_name, key_name, custom_headers
|
315
|
+
def delete_async(resource_group_name, server_name, key_name, custom_headers:nil)
|
314
316
|
# Send request
|
315
|
-
promise = begin_delete_async(resource_group_name, server_name, key_name, custom_headers)
|
317
|
+
promise = begin_delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers)
|
316
318
|
|
317
319
|
promise = promise.then do |response|
|
318
320
|
# Defining deserialization method.
|
@@ -345,8 +347,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
345
347
|
#
|
346
348
|
# @return [ServerKey] operation results.
|
347
349
|
#
|
348
|
-
def begin_create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers
|
349
|
-
response = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers).value!
|
350
|
+
def begin_create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers:nil)
|
351
|
+
response = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers).value!
|
350
352
|
response.body unless response.nil?
|
351
353
|
end
|
352
354
|
|
@@ -369,8 +371,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
369
371
|
#
|
370
372
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
371
373
|
#
|
372
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, key_name, parameters, custom_headers
|
373
|
-
begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers).value!
|
374
|
+
def begin_create_or_update_with_http_info(resource_group_name, server_name, key_name, parameters, custom_headers:nil)
|
375
|
+
begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers).value!
|
374
376
|
end
|
375
377
|
|
376
378
|
#
|
@@ -392,7 +394,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
392
394
|
#
|
393
395
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
394
396
|
#
|
395
|
-
def begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers
|
397
|
+
def begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:nil)
|
396
398
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
397
399
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
398
400
|
fail ArgumentError, 'key_name is nil' if key_name.nil?
|
@@ -402,13 +404,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
402
404
|
|
403
405
|
|
404
406
|
request_headers = {}
|
407
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
405
408
|
|
406
409
|
# Set Headers
|
407
410
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
408
411
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
409
412
|
|
410
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
411
|
-
|
412
413
|
# Serialize Request
|
413
414
|
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKey.mapper()
|
414
415
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -477,8 +478,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
477
478
|
# will be added to the HTTP request.
|
478
479
|
#
|
479
480
|
#
|
480
|
-
def begin_delete(resource_group_name, server_name, key_name, custom_headers
|
481
|
-
response = begin_delete_async(resource_group_name, server_name, key_name, custom_headers).value!
|
481
|
+
def begin_delete(resource_group_name, server_name, key_name, custom_headers:nil)
|
482
|
+
response = begin_delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value!
|
482
483
|
nil
|
483
484
|
end
|
484
485
|
|
@@ -495,8 +496,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
495
496
|
#
|
496
497
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
497
498
|
#
|
498
|
-
def begin_delete_with_http_info(resource_group_name, server_name, key_name, custom_headers
|
499
|
-
begin_delete_async(resource_group_name, server_name, key_name, custom_headers).value!
|
499
|
+
def begin_delete_with_http_info(resource_group_name, server_name, key_name, custom_headers:nil)
|
500
|
+
begin_delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value!
|
500
501
|
end
|
501
502
|
|
502
503
|
#
|
@@ -512,7 +513,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
512
513
|
#
|
513
514
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
514
515
|
#
|
515
|
-
def begin_delete_async(resource_group_name, server_name, key_name, custom_headers
|
516
|
+
def begin_delete_async(resource_group_name, server_name, key_name, custom_headers:nil)
|
516
517
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
517
518
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
518
519
|
fail ArgumentError, 'key_name is nil' if key_name.nil?
|
@@ -521,6 +522,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
521
522
|
|
522
523
|
|
523
524
|
request_headers = {}
|
525
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
524
526
|
|
525
527
|
# Set Headers
|
526
528
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -565,8 +567,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
565
567
|
#
|
566
568
|
# @return [ServerKeyListResult] operation results.
|
567
569
|
#
|
568
|
-
def list_by_server_next(next_page_link, custom_headers
|
569
|
-
response = list_by_server_next_async(next_page_link, custom_headers).value!
|
570
|
+
def list_by_server_next(next_page_link, custom_headers:nil)
|
571
|
+
response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
570
572
|
response.body unless response.nil?
|
571
573
|
end
|
572
574
|
|
@@ -580,8 +582,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
580
582
|
#
|
581
583
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
582
584
|
#
|
583
|
-
def list_by_server_next_with_http_info(next_page_link, custom_headers
|
584
|
-
list_by_server_next_async(next_page_link, custom_headers).value!
|
585
|
+
def list_by_server_next_with_http_info(next_page_link, custom_headers:nil)
|
586
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers).value!
|
585
587
|
end
|
586
588
|
|
587
589
|
#
|
@@ -594,11 +596,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
594
596
|
#
|
595
597
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
596
598
|
#
|
597
|
-
def list_by_server_next_async(next_page_link, custom_headers
|
599
|
+
def list_by_server_next_async(next_page_link, custom_headers:nil)
|
598
600
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
599
601
|
|
600
602
|
|
601
603
|
request_headers = {}
|
604
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
602
605
|
|
603
606
|
# Set Headers
|
604
607
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -655,12 +658,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
655
658
|
# @return [ServerKeyListResult] which provide lazy access to pages of the
|
656
659
|
# response.
|
657
660
|
#
|
658
|
-
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers
|
659
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
661
|
+
def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil)
|
662
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
660
663
|
unless response.nil?
|
661
664
|
page = response.body
|
662
665
|
page.next_method = Proc.new do |next_page_link|
|
663
|
-
list_by_server_next_async(next_page_link, custom_headers)
|
666
|
+
list_by_server_next_async(next_page_link, custom_headers:custom_headers)
|
664
667
|
end
|
665
668
|
page
|
666
669
|
end
|