azure_mgmt_sql 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- 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::V2014_04_01
|
|
38
38
|
#
|
39
39
|
# @return [RestorableDroppedDatabase] operation results.
|
40
40
|
#
|
41
|
-
def get(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers
|
42
|
-
response = get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers).value!
|
41
|
+
def get(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:nil)
|
42
|
+
response = get_async(resource_group_name, server_name, restorable_droppeded_database_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 get_with_http_info(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers
|
61
|
-
get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers).value!
|
60
|
+
def get_with_http_info(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:nil)
|
61
|
+
get_async(resource_group_name, server_name, restorable_droppeded_database_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 get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers
|
78
|
+
def get_async(resource_group_name, server_name, restorable_droppeded_database_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?
|
@@ -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 [RestorableDroppedDatabaseListResult] 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
|
#
|
39
39
|
# @return [RestorePointListResult] operation results.
|
40
40
|
#
|
41
|
-
def list_by_database(resource_group_name, server_name, database_name, custom_headers
|
42
|
-
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
41
|
+
def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
|
42
|
+
response = list_by_database_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 list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers
|
61
|
-
list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
60
|
+
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
61
|
+
list_by_database_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 list_by_database_async(resource_group_name, server_name, database_name, custom_headers
|
78
|
+
def list_by_database_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
|
@@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
39
39
|
#
|
40
40
|
# @return [ServerAzureADAdministrator] operation results.
|
41
41
|
#
|
42
|
-
def create_or_update(resource_group_name, server_name, properties, custom_headers
|
43
|
-
response = create_or_update_async(resource_group_name, server_name, properties, custom_headers).value!
|
42
|
+
def create_or_update(resource_group_name, server_name, properties, custom_headers:nil)
|
43
|
+
response = create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers).value!
|
44
44
|
response.body unless response.nil?
|
45
45
|
end
|
46
46
|
|
@@ -57,9 +57,9 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
57
57
|
# @return [Concurrent::Promise] promise which provides async access to http
|
58
58
|
# response.
|
59
59
|
#
|
60
|
-
def create_or_update_async(resource_group_name, server_name, properties, custom_headers
|
60
|
+
def create_or_update_async(resource_group_name, server_name, properties, custom_headers:nil)
|
61
61
|
# Send request
|
62
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers)
|
62
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers)
|
63
63
|
|
64
64
|
promise = promise.then do |response|
|
65
65
|
# Defining deserialization method.
|
@@ -87,8 +87,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
87
87
|
#
|
88
88
|
# @return [ServerAzureADAdministrator] operation results.
|
89
89
|
#
|
90
|
-
def delete(resource_group_name, server_name, custom_headers
|
91
|
-
response = delete_async(resource_group_name, server_name, custom_headers).value!
|
90
|
+
def delete(resource_group_name, server_name, custom_headers:nil)
|
91
|
+
response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
92
92
|
response.body unless response.nil?
|
93
93
|
end
|
94
94
|
|
@@ -103,9 +103,9 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
103
103
|
# @return [Concurrent::Promise] promise which provides async access to http
|
104
104
|
# response.
|
105
105
|
#
|
106
|
-
def delete_async(resource_group_name, server_name, custom_headers
|
106
|
+
def delete_async(resource_group_name, server_name, custom_headers:nil)
|
107
107
|
# Send request
|
108
|
-
promise = begin_delete_async(resource_group_name, server_name, custom_headers)
|
108
|
+
promise = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers)
|
109
109
|
|
110
110
|
promise = promise.then do |response|
|
111
111
|
# Defining deserialization method.
|
@@ -133,8 +133,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
133
133
|
#
|
134
134
|
# @return [ServerAzureADAdministrator] operation results.
|
135
135
|
#
|
136
|
-
def get(resource_group_name, server_name, custom_headers
|
137
|
-
response = get_async(resource_group_name, server_name, custom_headers).value!
|
136
|
+
def get(resource_group_name, server_name, custom_headers:nil)
|
137
|
+
response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
138
138
|
response.body unless response.nil?
|
139
139
|
end
|
140
140
|
|
@@ -150,8 +150,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
150
150
|
#
|
151
151
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
152
152
|
#
|
153
|
-
def get_with_http_info(resource_group_name, server_name, custom_headers
|
154
|
-
get_async(resource_group_name, server_name, custom_headers).value!
|
153
|
+
def get_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
154
|
+
get_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
155
155
|
end
|
156
156
|
|
157
157
|
#
|
@@ -166,7 +166,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
166
166
|
#
|
167
167
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
168
|
#
|
169
|
-
def get_async(resource_group_name, server_name, custom_headers
|
169
|
+
def get_async(resource_group_name, server_name, custom_headers:nil)
|
170
170
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
171
171
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
172
172
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -175,6 +175,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
175
175
|
|
176
176
|
|
177
177
|
request_headers = {}
|
178
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
178
179
|
|
179
180
|
# Set Headers
|
180
181
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -231,8 +232,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
231
232
|
#
|
232
233
|
# @return [ServerAdministratorListResult] operation results.
|
233
234
|
#
|
234
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
235
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
235
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
236
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
236
237
|
response.body unless response.nil?
|
237
238
|
end
|
238
239
|
|
@@ -248,8 +249,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
248
249
|
#
|
249
250
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
250
251
|
#
|
251
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
252
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
252
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
253
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
253
254
|
end
|
254
255
|
|
255
256
|
#
|
@@ -264,7 +265,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
264
265
|
#
|
265
266
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
266
267
|
#
|
267
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
268
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
268
269
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
269
270
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
270
271
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -272,6 +273,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
272
273
|
|
273
274
|
|
274
275
|
request_headers = {}
|
276
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
275
277
|
|
276
278
|
# Set Headers
|
277
279
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -331,8 +333,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
331
333
|
#
|
332
334
|
# @return [ServerAzureADAdministrator] operation results.
|
333
335
|
#
|
334
|
-
def begin_create_or_update(resource_group_name, server_name, properties, custom_headers
|
335
|
-
response = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers).value!
|
336
|
+
def begin_create_or_update(resource_group_name, server_name, properties, custom_headers:nil)
|
337
|
+
response = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers).value!
|
336
338
|
response.body unless response.nil?
|
337
339
|
end
|
338
340
|
|
@@ -351,8 +353,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
351
353
|
#
|
352
354
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
353
355
|
#
|
354
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, properties, custom_headers
|
355
|
-
begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers).value!
|
356
|
+
def begin_create_or_update_with_http_info(resource_group_name, server_name, properties, custom_headers:nil)
|
357
|
+
begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers).value!
|
356
358
|
end
|
357
359
|
|
358
360
|
#
|
@@ -370,7 +372,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
370
372
|
#
|
371
373
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
372
374
|
#
|
373
|
-
def begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers
|
375
|
+
def begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:nil)
|
374
376
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
375
377
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
376
378
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -380,13 +382,12 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
380
382
|
|
381
383
|
|
382
384
|
request_headers = {}
|
385
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
383
386
|
|
384
387
|
# Set Headers
|
385
388
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
386
389
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
387
390
|
|
388
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
389
|
-
|
390
391
|
# Serialize Request
|
391
392
|
request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::ServerAzureADAdministrator.mapper()
|
392
393
|
request_content = @client.serialize(request_mapper, properties)
|
@@ -465,8 +466,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
465
466
|
#
|
466
467
|
# @return [ServerAzureADAdministrator] operation results.
|
467
468
|
#
|
468
|
-
def begin_delete(resource_group_name, server_name, custom_headers
|
469
|
-
response = begin_delete_async(resource_group_name, server_name, custom_headers).value!
|
469
|
+
def begin_delete(resource_group_name, server_name, custom_headers:nil)
|
470
|
+
response = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
470
471
|
response.body unless response.nil?
|
471
472
|
end
|
472
473
|
|
@@ -482,8 +483,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
482
483
|
#
|
483
484
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
484
485
|
#
|
485
|
-
def begin_delete_with_http_info(resource_group_name, server_name, custom_headers
|
486
|
-
begin_delete_async(resource_group_name, server_name, custom_headers).value!
|
486
|
+
def begin_delete_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
487
|
+
begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
487
488
|
end
|
488
489
|
|
489
490
|
#
|
@@ -498,7 +499,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
498
499
|
#
|
499
500
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
500
501
|
#
|
501
|
-
def begin_delete_async(resource_group_name, server_name, custom_headers
|
502
|
+
def begin_delete_async(resource_group_name, server_name, custom_headers:nil)
|
502
503
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
503
504
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
504
505
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -507,6 +508,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
507
508
|
|
508
509
|
|
509
510
|
request_headers = {}
|
511
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
510
512
|
|
511
513
|
# Set Headers
|
512
514
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
37
37
|
# will be added to the HTTP request.
|
38
38
|
#
|
39
39
|
#
|
40
|
-
def delete(resource_group_name, server_name, communication_link_name, custom_headers
|
41
|
-
response = delete_async(resource_group_name, server_name, communication_link_name, custom_headers).value!
|
40
|
+
def delete(resource_group_name, server_name, communication_link_name, custom_headers:nil)
|
41
|
+
response = delete_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value!
|
42
42
|
nil
|
43
43
|
end
|
44
44
|
|
@@ -56,8 +56,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def delete_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers
|
60
|
-
delete_async(resource_group_name, server_name, communication_link_name, custom_headers).value!
|
59
|
+
def delete_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers:nil)
|
60
|
+
delete_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -74,7 +74,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
74
74
|
#
|
75
75
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
76
76
|
#
|
77
|
-
def delete_async(resource_group_name, server_name, communication_link_name, custom_headers
|
77
|
+
def delete_async(resource_group_name, server_name, communication_link_name, custom_headers:nil)
|
78
78
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
79
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
80
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -83,6 +83,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
83
83
|
|
84
84
|
|
85
85
|
request_headers = {}
|
86
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
86
87
|
|
87
88
|
# Set Headers
|
88
89
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -131,8 +132,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
131
132
|
#
|
132
133
|
# @return [ServerCommunicationLink] operation results.
|
133
134
|
#
|
134
|
-
def get(resource_group_name, server_name, communication_link_name, custom_headers
|
135
|
-
response = get_async(resource_group_name, server_name, communication_link_name, custom_headers).value!
|
135
|
+
def get(resource_group_name, server_name, communication_link_name, custom_headers:nil)
|
136
|
+
response = get_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value!
|
136
137
|
response.body unless response.nil?
|
137
138
|
end
|
138
139
|
|
@@ -150,8 +151,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
150
151
|
#
|
151
152
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
152
153
|
#
|
153
|
-
def get_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers
|
154
|
-
get_async(resource_group_name, server_name, communication_link_name, custom_headers).value!
|
154
|
+
def get_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers:nil)
|
155
|
+
get_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value!
|
155
156
|
end
|
156
157
|
|
157
158
|
#
|
@@ -168,7 +169,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
168
169
|
#
|
169
170
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
170
171
|
#
|
171
|
-
def get_async(resource_group_name, server_name, communication_link_name, custom_headers
|
172
|
+
def get_async(resource_group_name, server_name, communication_link_name, custom_headers:nil)
|
172
173
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
173
174
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
174
175
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -177,6 +178,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
177
178
|
|
178
179
|
|
179
180
|
request_headers = {}
|
181
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
180
182
|
|
181
183
|
# Set Headers
|
182
184
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -237,8 +239,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
237
239
|
#
|
238
240
|
# @return [ServerCommunicationLink] operation results.
|
239
241
|
#
|
240
|
-
def create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers
|
241
|
-
response = create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers).value!
|
242
|
+
def create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil)
|
243
|
+
response = create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers).value!
|
242
244
|
response.body unless response.nil?
|
243
245
|
end
|
244
246
|
|
@@ -257,9 +259,9 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
257
259
|
# @return [Concurrent::Promise] promise which provides async access to http
|
258
260
|
# response.
|
259
261
|
#
|
260
|
-
def create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers
|
262
|
+
def create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil)
|
261
263
|
# Send request
|
262
|
-
promise = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers)
|
264
|
+
promise = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers)
|
263
265
|
|
264
266
|
promise = promise.then do |response|
|
265
267
|
# Defining deserialization method.
|
@@ -287,8 +289,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
287
289
|
#
|
288
290
|
# @return [ServerCommunicationLinkListResult] operation results.
|
289
291
|
#
|
290
|
-
def list_by_server(resource_group_name, server_name, custom_headers
|
291
|
-
response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
292
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
293
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
292
294
|
response.body unless response.nil?
|
293
295
|
end
|
294
296
|
|
@@ -304,8 +306,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
304
306
|
#
|
305
307
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
306
308
|
#
|
307
|
-
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers
|
308
|
-
list_by_server_async(resource_group_name, server_name, custom_headers).value!
|
309
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
310
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
309
311
|
end
|
310
312
|
|
311
313
|
#
|
@@ -320,7 +322,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
320
322
|
#
|
321
323
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
322
324
|
#
|
323
|
-
def list_by_server_async(resource_group_name, server_name, custom_headers
|
325
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
324
326
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
325
327
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
326
328
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -328,6 +330,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
328
330
|
|
329
331
|
|
330
332
|
request_headers = {}
|
333
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
331
334
|
|
332
335
|
# Set Headers
|
333
336
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -388,8 +391,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
388
391
|
#
|
389
392
|
# @return [ServerCommunicationLink] operation results.
|
390
393
|
#
|
391
|
-
def begin_create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers
|
392
|
-
response = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers).value!
|
394
|
+
def begin_create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil)
|
395
|
+
response = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers).value!
|
393
396
|
response.body unless response.nil?
|
394
397
|
end
|
395
398
|
|
@@ -409,8 +412,8 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
409
412
|
#
|
410
413
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
411
414
|
#
|
412
|
-
def begin_create_or_update_with_http_info(resource_group_name, server_name, communication_link_name, parameters, custom_headers
|
413
|
-
begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers).value!
|
415
|
+
def begin_create_or_update_with_http_info(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil)
|
416
|
+
begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers).value!
|
414
417
|
end
|
415
418
|
|
416
419
|
#
|
@@ -429,7 +432,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
429
432
|
#
|
430
433
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
431
434
|
#
|
432
|
-
def begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers
|
435
|
+
def begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil)
|
433
436
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
434
437
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
435
438
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -439,13 +442,12 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
439
442
|
|
440
443
|
|
441
444
|
request_headers = {}
|
445
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
442
446
|
|
443
447
|
# Set Headers
|
444
448
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
445
449
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
446
450
|
|
447
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
448
|
-
|
449
451
|
# Serialize Request
|
450
452
|
request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::ServerCommunicationLink.mapper()
|
451
453
|
request_content = @client.serialize(request_mapper, parameters)
|