azure_mgmt_synapse 0.17.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse.rb +126 -69
  3. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/big_data_pools.rb +2 -2
  4. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/data_masking_policies.rb +253 -0
  5. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/data_masking_rules.rb +267 -0
  6. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/extended_sql_pool_blob_auditing_policies.rb +483 -0
  7. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_auth_keys_operations.rb +6 -6
  8. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_connection_infos.rb +3 -3
  9. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_credentials.rb +3 -3
  10. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_monitoring_data_operations.rb +8 -8
  11. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_node_ip_address_operations.rb +3 -3
  12. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_nodes.rb +9 -9
  13. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_object_metadata.rb +62 -14
  14. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_status_operations.rb +3 -3
  15. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtimes.rb +586 -118
  16. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/ip_firewall_rules.rb +3 -3
  17. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/keys.rb +569 -0
  18. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/azure_entity_resource.rb +3 -1
  19. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/big_data_pool_resource_info.rb +47 -1
  20. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/customer_managed_key_details.rb +59 -0
  21. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_function.rb +20 -0
  22. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_policy.rb +153 -0
  23. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_rule.rb +243 -0
  24. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_rule_list_result.rb +56 -0
  25. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_rule_state.rb +16 -0
  26. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_state.rb +16 -0
  27. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/encryption_details.rb +59 -0
  28. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/error_response.rb +5 -1
  29. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_server_blob_auditing_policy.rb +292 -0
  30. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_server_blob_auditing_policy_list_result.rb +102 -0
  31. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_sql_pool_blob_auditing_policy.rb +292 -0
  32. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_sql_pool_blob_auditing_policy_list_result.rb +102 -0
  33. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/geo_backup_policy_list_result.rb +55 -0
  34. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/key.rb +85 -0
  35. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/key_info_list_result.rb +98 -0
  36. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/list_sql_pool_security_alert_policies.rb +100 -0
  37. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_identity.rb +1 -1
  38. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_virtual_network_settings.rb +76 -0
  39. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/metadata_sync_config.rb +11 -0
  40. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/node_size.rb +3 -0
  41. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_for_private_link_hub.rb +95 -0
  42. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_for_private_link_hub_basic.rb +86 -0
  43. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_for_private_link_hub_resource_collection_response.rb +103 -0
  44. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub.rb +23 -3
  45. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_service_connection_state.rb +1 -2
  46. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/proxy_resource.rb +4 -2
  47. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/{resource_move_definition.rb → purview_configuration.rb} +10 -10
  48. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/recoverable_sql_pool.rb +111 -0
  49. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/recoverable_sql_pool_list_result.rb +100 -0
  50. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/resource.rb +8 -5
  51. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/restorable_dropped_sql_pool.rb +171 -0
  52. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/restorable_dropped_sql_pool_list_result.rb +56 -0
  53. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime.rb +2 -1
  54. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_status.rb +12 -0
  55. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sensitivity_label_source.rb +16 -0
  56. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_blob_auditing_policy.rb +280 -0
  57. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_blob_auditing_policy_list_result.rb +100 -0
  58. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_security_alert_policy.rb +179 -0
  59. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_security_alert_policy_list_result.rb +100 -0
  60. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_usage.rb +119 -0
  61. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_usage_list_result.rb +99 -0
  62. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_vulnerability_assessment.rb +114 -0
  63. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_vulnerability_assessment_list_result.rb +101 -0
  64. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sku.rb +13 -0
  65. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sql_pool.rb +2 -2
  66. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sql_pool_blob_auditing_policy_list_result.rb +100 -0
  67. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sql_pool_patch_info.rb +2 -2
  68. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sub_resource.rb +2 -14
  69. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/tracked_resource.rb +4 -1
  70. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/transparent_data_encryption_list_result.rb +100 -0
  71. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_classifier.rb +128 -0
  72. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_classifier_list_result.rb +100 -0
  73. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_group.rb +128 -0
  74. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_group_list_result.rb +100 -0
  75. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace.rb +87 -2
  76. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace_key_details.rb +57 -0
  77. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace_patch_info.rb +37 -0
  78. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace_repository_configuration.rb +114 -0
  79. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/operations.rb +5 -15
  80. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_endpoint_connections.rb +48 -30
  81. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_endpoint_connections_private_link_hub.rb +244 -0
  82. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_hubs.rb +123 -83
  83. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_resources.rb +3 -3
  84. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/restorable_dropped_sql_pools.rb +236 -0
  85. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_blob_auditing_policies.rb +220 -0
  86. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_columns.rb +143 -0
  87. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_connection_policies.rb +1 -1
  88. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_geo_backup_policies.rb +113 -1
  89. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_operation_results.rb +2 -2
  90. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_replication_links.rb +118 -2
  91. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_restore_points.rb +211 -2
  92. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_schemas.rb +110 -0
  93. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_security_alert_policies.rb +234 -0
  94. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_sensitivity_labels.rb +127 -2
  95. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_tables.rb +114 -0
  96. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_transparent_data_encryptions.rb +236 -2
  97. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_usages.rb +2 -2
  98. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_vulnerability_assessment_rule_baselines.rb +124 -0
  99. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_vulnerability_assessment_scans.rb +114 -0
  100. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_vulnerability_assessments.rb +1 -1
  101. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_workload_classifier.rb +741 -0
  102. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_workload_group.rb +715 -0
  103. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pools.rb +6 -121
  104. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb +73 -1
  105. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_aad_admins.rb +2 -2
  106. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_identity_sql_control_settings.rb +1 -1
  107. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_blob_auditing_policies.rb +536 -0
  108. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_extended_blob_auditing_policies.rb +540 -0
  109. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_recoverable_sqlpools.rb +366 -0
  110. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_security_alert_policy.rb +536 -0
  111. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_usages.rb +254 -0
  112. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_vulnerability_assessments.rb +601 -0
  113. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_sql_aad_admins.rb +432 -0
  114. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspaces.rb +4 -4
  115. data/lib/profiles/latest/modules/synapse_profile_module.rb +404 -208
  116. data/lib/version.rb +1 -1
  117. metadata +61 -4
@@ -77,7 +77,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
77
77
  # Set Headers
78
78
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
79
79
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
80
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHub'
80
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs'
81
81
 
82
82
  request_url = @base_url || @client.base_url
83
83
 
@@ -96,7 +96,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
96
96
  response_content = http_response.body
97
97
  unless status_code == 200
98
98
  error_model = JSON.load(response_content)
99
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
99
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
100
100
  end
101
101
 
102
102
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -124,7 +124,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
124
124
  #
125
125
  # @param resource_group_name [String] The name of the resource group. The name
126
126
  # is case insensitive.
127
- # @param private_link_hub_name [String] The name of the privateLinkHub
127
+ # @param private_link_hub_name [String] Name of the privateLinkHub
128
128
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
129
  # will be added to the HTTP request.
130
130
  #
@@ -140,7 +140,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
140
140
  #
141
141
  # @param resource_group_name [String] The name of the resource group. The name
142
142
  # is case insensitive.
143
- # @param private_link_hub_name [String] The name of the privateLinkHub
143
+ # @param private_link_hub_name [String] Name of the privateLinkHub
144
144
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
145
  # will be added to the HTTP request.
146
146
  #
@@ -155,7 +155,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
155
155
  #
156
156
  # @param resource_group_name [String] The name of the resource group. The name
157
157
  # is case insensitive.
158
- # @param private_link_hub_name [String] The name of the privateLinkHub
158
+ # @param private_link_hub_name [String] Name of the privateLinkHub
159
159
  # @param [Hash{String => String}] A hash of custom headers that will be added
160
160
  # to the HTTP request.
161
161
  #
@@ -224,52 +224,53 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
224
224
  #
225
225
  # Updates a privateLinkHub
226
226
  #
227
- # @param resource_group_name [String] The name of the resource group. The name
228
- # is case insensitive.
229
- # @param private_link_hub_name [String] The name of the privateLinkHub
230
227
  # @param private_link_hub_patch_info [PrivateLinkHubPatchInfo] PrivateLinkHub
231
228
  # patch request properties
229
+ # @param resource_group_name [String] The name of the resource group. The name
230
+ # is case insensitive.
231
+ # @param private_link_hub_name [String] Name of the privateLinkHub
232
232
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
233
233
  # will be added to the HTTP request.
234
234
  #
235
235
  # @return [PrivateLinkHub] operation results.
236
236
  #
237
- def update(resource_group_name, private_link_hub_name, private_link_hub_patch_info, custom_headers:nil)
238
- response = update_async(resource_group_name, private_link_hub_name, private_link_hub_patch_info, custom_headers:custom_headers).value!
237
+ def update(private_link_hub_patch_info, resource_group_name, private_link_hub_name, custom_headers:nil)
238
+ response = update_async(private_link_hub_patch_info, resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
239
239
  response.body unless response.nil?
240
240
  end
241
241
 
242
242
  #
243
243
  # Updates a privateLinkHub
244
244
  #
245
- # @param resource_group_name [String] The name of the resource group. The name
246
- # is case insensitive.
247
- # @param private_link_hub_name [String] The name of the privateLinkHub
248
245
  # @param private_link_hub_patch_info [PrivateLinkHubPatchInfo] PrivateLinkHub
249
246
  # patch request properties
247
+ # @param resource_group_name [String] The name of the resource group. The name
248
+ # is case insensitive.
249
+ # @param private_link_hub_name [String] Name of the privateLinkHub
250
250
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
251
251
  # will be added to the HTTP request.
252
252
  #
253
253
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
254
254
  #
255
- def update_with_http_info(resource_group_name, private_link_hub_name, private_link_hub_patch_info, custom_headers:nil)
256
- update_async(resource_group_name, private_link_hub_name, private_link_hub_patch_info, custom_headers:custom_headers).value!
255
+ def update_with_http_info(private_link_hub_patch_info, resource_group_name, private_link_hub_name, custom_headers:nil)
256
+ update_async(private_link_hub_patch_info, resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
257
257
  end
258
258
 
259
259
  #
260
260
  # Updates a privateLinkHub
261
261
  #
262
- # @param resource_group_name [String] The name of the resource group. The name
263
- # is case insensitive.
264
- # @param private_link_hub_name [String] The name of the privateLinkHub
265
262
  # @param private_link_hub_patch_info [PrivateLinkHubPatchInfo] PrivateLinkHub
266
263
  # patch request properties
264
+ # @param resource_group_name [String] The name of the resource group. The name
265
+ # is case insensitive.
266
+ # @param private_link_hub_name [String] Name of the privateLinkHub
267
267
  # @param [Hash{String => String}] A hash of custom headers that will be added
268
268
  # to the HTTP request.
269
269
  #
270
270
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
271
271
  #
272
- def update_async(resource_group_name, private_link_hub_name, private_link_hub_patch_info, custom_headers:nil)
272
+ def update_async(private_link_hub_patch_info, resource_group_name, private_link_hub_name, custom_headers:nil)
273
+ fail ArgumentError, 'private_link_hub_patch_info is nil' if private_link_hub_patch_info.nil?
273
274
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
274
275
  fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
275
276
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -279,7 +280,6 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
279
280
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
280
281
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
281
282
  fail ArgumentError, 'private_link_hub_name is nil' if private_link_hub_name.nil?
282
- fail ArgumentError, 'private_link_hub_patch_info is nil' if private_link_hub_patch_info.nil?
283
283
 
284
284
 
285
285
  request_headers = {}
@@ -350,52 +350,53 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
350
350
  #
351
351
  # Creates or updates a privateLinkHub
352
352
  #
353
- # @param resource_group_name [String] The name of the resource group. The name
354
- # is case insensitive.
355
- # @param private_link_hub_name [String] The name of the privateLinkHub
356
353
  # @param private_link_hub_info [PrivateLinkHub] PrivateLinkHub create or update
357
354
  # request properties
355
+ # @param resource_group_name [String] The name of the resource group. The name
356
+ # is case insensitive.
357
+ # @param private_link_hub_name [String] Name of the privateLinkHub
358
358
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
359
359
  # will be added to the HTTP request.
360
360
  #
361
361
  # @return [PrivateLinkHub] operation results.
362
362
  #
363
- def create_or_update(resource_group_name, private_link_hub_name, private_link_hub_info, custom_headers:nil)
364
- response = create_or_update_async(resource_group_name, private_link_hub_name, private_link_hub_info, custom_headers:custom_headers).value!
363
+ def create_or_update(private_link_hub_info, resource_group_name, private_link_hub_name, custom_headers:nil)
364
+ response = create_or_update_async(private_link_hub_info, resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
365
365
  response.body unless response.nil?
366
366
  end
367
367
 
368
368
  #
369
369
  # Creates or updates a privateLinkHub
370
370
  #
371
- # @param resource_group_name [String] The name of the resource group. The name
372
- # is case insensitive.
373
- # @param private_link_hub_name [String] The name of the privateLinkHub
374
371
  # @param private_link_hub_info [PrivateLinkHub] PrivateLinkHub create or update
375
372
  # request properties
373
+ # @param resource_group_name [String] The name of the resource group. The name
374
+ # is case insensitive.
375
+ # @param private_link_hub_name [String] Name of the privateLinkHub
376
376
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
377
377
  # will be added to the HTTP request.
378
378
  #
379
379
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
380
380
  #
381
- def create_or_update_with_http_info(resource_group_name, private_link_hub_name, private_link_hub_info, custom_headers:nil)
382
- create_or_update_async(resource_group_name, private_link_hub_name, private_link_hub_info, custom_headers:custom_headers).value!
381
+ def create_or_update_with_http_info(private_link_hub_info, resource_group_name, private_link_hub_name, custom_headers:nil)
382
+ create_or_update_async(private_link_hub_info, resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
383
383
  end
384
384
 
385
385
  #
386
386
  # Creates or updates a privateLinkHub
387
387
  #
388
- # @param resource_group_name [String] The name of the resource group. The name
389
- # is case insensitive.
390
- # @param private_link_hub_name [String] The name of the privateLinkHub
391
388
  # @param private_link_hub_info [PrivateLinkHub] PrivateLinkHub create or update
392
389
  # request properties
390
+ # @param resource_group_name [String] The name of the resource group. The name
391
+ # is case insensitive.
392
+ # @param private_link_hub_name [String] Name of the privateLinkHub
393
393
  # @param [Hash{String => String}] A hash of custom headers that will be added
394
394
  # to the HTTP request.
395
395
  #
396
396
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
397
397
  #
398
- def create_or_update_async(resource_group_name, private_link_hub_name, private_link_hub_info, custom_headers:nil)
398
+ def create_or_update_async(private_link_hub_info, resource_group_name, private_link_hub_name, custom_headers:nil)
399
+ fail ArgumentError, 'private_link_hub_info is nil' if private_link_hub_info.nil?
399
400
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
400
401
  fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
401
402
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -405,7 +406,6 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
405
406
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
406
407
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
407
408
  fail ArgumentError, 'private_link_hub_name is nil' if private_link_hub_name.nil?
408
- fail ArgumentError, 'private_link_hub_info is nil' if private_link_hub_info.nil?
409
409
 
410
410
 
411
411
  request_headers = {}
@@ -478,52 +478,79 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
478
478
  #
479
479
  # @param resource_group_name [String] The name of the resource group. The name
480
480
  # is case insensitive.
481
- # @param private_link_hub_name [String] The name of the privateLinkHub
481
+ # @param private_link_hub_name [String] Name of the privateLinkHub
482
482
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
483
483
  # will be added to the HTTP request.
484
484
  #
485
- #
486
485
  def delete(resource_group_name, private_link_hub_name, custom_headers:nil)
487
486
  response = delete_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
488
487
  nil
489
488
  end
490
489
 
491
- #
492
- # Deletes a privateLinkHub
493
490
  #
494
491
  # @param resource_group_name [String] The name of the resource group. The name
495
492
  # is case insensitive.
496
- # @param private_link_hub_name [String] The name of the privateLinkHub
493
+ # @param private_link_hub_name [String] Name of the privateLinkHub
494
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
495
+ # will be added to the HTTP request.
496
+ #
497
+ # @return [Concurrent::Promise] promise which provides async access to http
498
+ # response.
499
+ #
500
+ def delete_async(resource_group_name, private_link_hub_name, custom_headers:nil)
501
+ # Send request
502
+ promise = begin_delete_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers)
503
+
504
+ promise = promise.then do |response|
505
+ # Defining deserialization method.
506
+ deserialize_method = lambda do |parsed_response|
507
+ end
508
+
509
+ # Waiting for response.
510
+ @client.get_long_running_operation_result(response, deserialize_method)
511
+ end
512
+
513
+ promise
514
+ end
515
+
516
+ #
517
+ # Returns a list of privateLinkHubs in a subscription
518
+ #
519
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
520
+ # will be added to the HTTP request.
521
+ #
522
+ # @return [Array<PrivateLinkHub>] operation results.
523
+ #
524
+ def list(custom_headers:nil)
525
+ first_page = list_as_lazy(custom_headers:custom_headers)
526
+ first_page.get_all_items
527
+ end
528
+
529
+ #
530
+ # Returns a list of privateLinkHubs in a subscription
531
+ #
497
532
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
498
533
  # will be added to the HTTP request.
499
534
  #
500
535
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
501
536
  #
502
- def delete_with_http_info(resource_group_name, private_link_hub_name, custom_headers:nil)
503
- delete_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
537
+ def list_with_http_info(custom_headers:nil)
538
+ list_async(custom_headers:custom_headers).value!
504
539
  end
505
540
 
506
541
  #
507
- # Deletes a privateLinkHub
542
+ # Returns a list of privateLinkHubs in a subscription
508
543
  #
509
- # @param resource_group_name [String] The name of the resource group. The name
510
- # is case insensitive.
511
- # @param private_link_hub_name [String] The name of the privateLinkHub
512
544
  # @param [Hash{String => String}] A hash of custom headers that will be added
513
545
  # to the HTTP request.
514
546
  #
515
547
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
516
548
  #
517
- def delete_async(resource_group_name, private_link_hub_name, custom_headers:nil)
549
+ def list_async(custom_headers:nil)
518
550
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
519
551
  fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
520
552
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
521
553
  fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
522
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
523
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
524
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
525
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
526
- fail ArgumentError, 'private_link_hub_name is nil' if private_link_hub_name.nil?
527
554
 
528
555
 
529
556
  request_headers = {}
@@ -532,24 +559,24 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
532
559
  # Set Headers
533
560
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
534
561
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
535
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}'
562
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs'
536
563
 
537
564
  request_url = @base_url || @client.base_url
538
565
 
539
566
  options = {
540
567
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
541
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'privateLinkHubName' => private_link_hub_name},
568
+ path_params: {'subscriptionId' => @client.subscription_id},
542
569
  query_params: {'api-version' => @client.api_version},
543
570
  headers: request_headers.merge(custom_headers || {}),
544
571
  base_url: request_url
545
572
  }
546
- promise = @client.make_request_async(:delete, path_template, options)
573
+ promise = @client.make_request_async(:get, path_template, options)
547
574
 
548
575
  promise = promise.then do |result|
549
576
  http_response = result.response
550
577
  status_code = http_response.status
551
578
  response_content = http_response.body
552
- unless status_code == 200 || status_code == 204
579
+ unless status_code == 200
553
580
  error_model = JSON.load(response_content)
554
581
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
555
582
  end
@@ -557,6 +584,16 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
557
584
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
558
585
  result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
559
586
  result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
587
+ # Deserialize Response
588
+ if status_code == 200
589
+ begin
590
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
591
+ result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateLinkHubInfoListResult.mapper()
592
+ result.body = @client.deserialize(result_mapper, parsed_response)
593
+ rescue Exception => e
594
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
595
+ end
596
+ end
560
597
 
561
598
  result
562
599
  end
@@ -565,43 +602,56 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
565
602
  end
566
603
 
567
604
  #
568
- # Returns a list of privateLinkHubs in a subscription
605
+ # Deletes a privateLinkHub
569
606
  #
607
+ # @param resource_group_name [String] The name of the resource group. The name
608
+ # is case insensitive.
609
+ # @param private_link_hub_name [String] Name of the privateLinkHub
570
610
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
571
611
  # will be added to the HTTP request.
572
612
  #
573
- # @return [Array<PrivateLinkHub>] operation results.
574
613
  #
575
- def list(custom_headers:nil)
576
- first_page = list_as_lazy(custom_headers:custom_headers)
577
- first_page.get_all_items
614
+ def begin_delete(resource_group_name, private_link_hub_name, custom_headers:nil)
615
+ response = begin_delete_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
616
+ nil
578
617
  end
579
618
 
580
619
  #
581
- # Returns a list of privateLinkHubs in a subscription
620
+ # Deletes a privateLinkHub
582
621
  #
622
+ # @param resource_group_name [String] The name of the resource group. The name
623
+ # is case insensitive.
624
+ # @param private_link_hub_name [String] Name of the privateLinkHub
583
625
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
626
  # will be added to the HTTP request.
585
627
  #
586
628
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
587
629
  #
588
- def list_with_http_info(custom_headers:nil)
589
- list_async(custom_headers:custom_headers).value!
630
+ def begin_delete_with_http_info(resource_group_name, private_link_hub_name, custom_headers:nil)
631
+ begin_delete_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
590
632
  end
591
633
 
592
634
  #
593
- # Returns a list of privateLinkHubs in a subscription
635
+ # Deletes a privateLinkHub
594
636
  #
637
+ # @param resource_group_name [String] The name of the resource group. The name
638
+ # is case insensitive.
639
+ # @param private_link_hub_name [String] Name of the privateLinkHub
595
640
  # @param [Hash{String => String}] A hash of custom headers that will be added
596
641
  # to the HTTP request.
597
642
  #
598
643
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
599
644
  #
600
- def list_async(custom_headers:nil)
645
+ def begin_delete_async(resource_group_name, private_link_hub_name, custom_headers:nil)
601
646
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
602
647
  fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
603
648
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
604
649
  fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
650
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
651
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
652
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
653
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
654
+ fail ArgumentError, 'private_link_hub_name is nil' if private_link_hub_name.nil?
605
655
 
606
656
 
607
657
  request_headers = {}
@@ -610,41 +660,31 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
610
660
  # Set Headers
611
661
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
612
662
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
613
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs'
663
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}'
614
664
 
615
665
  request_url = @base_url || @client.base_url
616
666
 
617
667
  options = {
618
668
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
619
- path_params: {'subscriptionId' => @client.subscription_id},
669
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'privateLinkHubName' => private_link_hub_name},
620
670
  query_params: {'api-version' => @client.api_version},
621
671
  headers: request_headers.merge(custom_headers || {}),
622
672
  base_url: request_url
623
673
  }
624
- promise = @client.make_request_async(:get, path_template, options)
674
+ promise = @client.make_request_async(:delete, path_template, options)
625
675
 
626
676
  promise = promise.then do |result|
627
677
  http_response = result.response
628
678
  status_code = http_response.status
629
679
  response_content = http_response.body
630
- unless status_code == 200
680
+ unless status_code == 200 || status_code == 202 || status_code == 204
631
681
  error_model = JSON.load(response_content)
632
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
682
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
633
683
  end
634
684
 
635
685
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
636
686
  result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
637
687
  result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
638
- # Deserialize Response
639
- if status_code == 200
640
- begin
641
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
642
- result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateLinkHubInfoListResult.mapper()
643
- result.body = @client.deserialize(result_mapper, parsed_response)
644
- rescue Exception => e
645
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
646
- end
647
- end
648
688
 
649
689
  result
650
690
  end
@@ -719,7 +759,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
719
759
  response_content = http_response.body
720
760
  unless status_code == 200
721
761
  error_model = JSON.load(response_content)
722
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
762
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
723
763
  end
724
764
 
725
765
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -809,7 +849,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
809
849
  response_content = http_response.body
810
850
  unless status_code == 200
811
851
  error_model = JSON.load(response_content)
812
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
852
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
813
853
  end
814
854
 
815
855
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?