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.
- checksums.yaml +4 -4
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse.rb +126 -69
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/big_data_pools.rb +2 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/data_masking_policies.rb +253 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/data_masking_rules.rb +267 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/extended_sql_pool_blob_auditing_policies.rb +483 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_auth_keys_operations.rb +6 -6
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_connection_infos.rb +3 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_credentials.rb +3 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_monitoring_data_operations.rb +8 -8
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_node_ip_address_operations.rb +3 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_nodes.rb +9 -9
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_object_metadata.rb +62 -14
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_status_operations.rb +3 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtimes.rb +586 -118
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/ip_firewall_rules.rb +3 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/keys.rb +569 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/azure_entity_resource.rb +3 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/big_data_pool_resource_info.rb +47 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/customer_managed_key_details.rb +59 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_function.rb +20 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_policy.rb +153 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_rule.rb +243 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_rule_list_result.rb +56 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_rule_state.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_masking_state.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/encryption_details.rb +59 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/error_response.rb +5 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_server_blob_auditing_policy.rb +292 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_server_blob_auditing_policy_list_result.rb +102 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_sql_pool_blob_auditing_policy.rb +292 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/extended_sql_pool_blob_auditing_policy_list_result.rb +102 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/geo_backup_policy_list_result.rb +55 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/key.rb +85 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/key_info_list_result.rb +98 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/list_sql_pool_security_alert_policies.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_identity.rb +1 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_virtual_network_settings.rb +76 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/metadata_sync_config.rb +11 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/node_size.rb +3 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_for_private_link_hub.rb +95 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_for_private_link_hub_basic.rb +86 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_for_private_link_hub_resource_collection_response.rb +103 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub.rb +23 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_service_connection_state.rb +1 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/proxy_resource.rb +4 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/{resource_move_definition.rb → purview_configuration.rb} +10 -10
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/recoverable_sql_pool.rb +111 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/recoverable_sql_pool_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/resource.rb +8 -5
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/restorable_dropped_sql_pool.rb +171 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/restorable_dropped_sql_pool_list_result.rb +56 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime.rb +2 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_status.rb +12 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sensitivity_label_source.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_blob_auditing_policy.rb +280 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_blob_auditing_policy_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_security_alert_policy.rb +179 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_security_alert_policy_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_usage.rb +119 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_usage_list_result.rb +99 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_vulnerability_assessment.rb +114 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/server_vulnerability_assessment_list_result.rb +101 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sku.rb +13 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sql_pool.rb +2 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sql_pool_blob_auditing_policy_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sql_pool_patch_info.rb +2 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sub_resource.rb +2 -14
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/tracked_resource.rb +4 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/transparent_data_encryption_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_classifier.rb +128 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_classifier_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_group.rb +128 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workload_group_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace.rb +87 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace_key_details.rb +57 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace_patch_info.rb +37 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace_repository_configuration.rb +114 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/operations.rb +5 -15
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_endpoint_connections.rb +48 -30
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_endpoint_connections_private_link_hub.rb +244 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_hubs.rb +123 -83
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_resources.rb +3 -3
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/restorable_dropped_sql_pools.rb +236 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_blob_auditing_policies.rb +220 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_columns.rb +143 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_connection_policies.rb +1 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_geo_backup_policies.rb +113 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_operation_results.rb +2 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_replication_links.rb +118 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_restore_points.rb +211 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_schemas.rb +110 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_security_alert_policies.rb +234 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_sensitivity_labels.rb +127 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_tables.rb +114 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_transparent_data_encryptions.rb +236 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_usages.rb +2 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_vulnerability_assessment_rule_baselines.rb +124 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_vulnerability_assessment_scans.rb +114 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_vulnerability_assessments.rb +1 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_workload_classifier.rb +741 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pool_workload_group.rb +715 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pools.rb +6 -121
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb +73 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_aad_admins.rb +2 -2
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_identity_sql_control_settings.rb +1 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_blob_auditing_policies.rb +536 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_extended_blob_auditing_policies.rb +540 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_recoverable_sqlpools.rb +366 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_security_alert_policy.rb +536 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_usages.rb +254 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_managed_sql_server_vulnerability_assessments.rb +601 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspace_sql_aad_admins.rb +432 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/workspaces.rb +4 -4
- data/lib/profiles/latest/modules/synapse_profile_module.rb +404 -208
- data/lib/version.rb +1 -1
- metadata +61 -4
@@ -26,7 +26,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
26
26
|
#
|
27
27
|
# @param resource_group_name [String] The name of the resource group. The name
|
28
28
|
# is case insensitive.
|
29
|
-
# @param workspace_name [String] The name of the workspace
|
29
|
+
# @param workspace_name [String] The name of the workspace.
|
30
30
|
# @param private_endpoint_connection_name [String] The name of the private
|
31
31
|
# endpoint connection.
|
32
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -44,7 +44,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
44
44
|
#
|
45
45
|
# @param resource_group_name [String] The name of the resource group. The name
|
46
46
|
# is case insensitive.
|
47
|
-
# @param workspace_name [String] The name of the workspace
|
47
|
+
# @param workspace_name [String] The name of the workspace.
|
48
48
|
# @param private_endpoint_connection_name [String] The name of the private
|
49
49
|
# endpoint connection.
|
50
50
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -61,7 +61,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
61
61
|
#
|
62
62
|
# @param resource_group_name [String] The name of the resource group. The name
|
63
63
|
# is case insensitive.
|
64
|
-
# @param workspace_name [String] The name of the workspace
|
64
|
+
# @param workspace_name [String] The name of the workspace.
|
65
65
|
# @param private_endpoint_connection_name [String] The name of the private
|
66
66
|
# endpoint connection.
|
67
67
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -133,9 +133,11 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
133
133
|
#
|
134
134
|
# Approve or reject a private endpoint connection.
|
135
135
|
#
|
136
|
+
# @param request [PrivateEndpointConnection] Request body of private endpoint
|
137
|
+
# connection to create.
|
136
138
|
# @param resource_group_name [String] The name of the resource group. The name
|
137
139
|
# is case insensitive.
|
138
|
-
# @param workspace_name [String] The name of the workspace
|
140
|
+
# @param workspace_name [String] The name of the workspace.
|
139
141
|
# @param private_endpoint_connection_name [String] The name of the private
|
140
142
|
# endpoint connection.
|
141
143
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -143,15 +145,17 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
143
145
|
#
|
144
146
|
# @return [PrivateEndpointConnection] operation results.
|
145
147
|
#
|
146
|
-
def create(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
147
|
-
response = create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
148
|
+
def create(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
149
|
+
response = create_async(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
148
150
|
response.body unless response.nil?
|
149
151
|
end
|
150
152
|
|
151
153
|
#
|
154
|
+
# @param request [PrivateEndpointConnection] Request body of private endpoint
|
155
|
+
# connection to create.
|
152
156
|
# @param resource_group_name [String] The name of the resource group. The name
|
153
157
|
# is case insensitive.
|
154
|
-
# @param workspace_name [String] The name of the workspace
|
158
|
+
# @param workspace_name [String] The name of the workspace.
|
155
159
|
# @param private_endpoint_connection_name [String] The name of the private
|
156
160
|
# endpoint connection.
|
157
161
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -160,9 +164,9 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
160
164
|
# @return [Concurrent::Promise] promise which provides async access to http
|
161
165
|
# response.
|
162
166
|
#
|
163
|
-
def create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
167
|
+
def create_async(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
164
168
|
# Send request
|
165
|
-
promise = begin_create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers)
|
169
|
+
promise = begin_create_async(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers)
|
166
170
|
|
167
171
|
promise = promise.then do |response|
|
168
172
|
# Defining deserialization method.
|
@@ -183,7 +187,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
183
187
|
#
|
184
188
|
# @param resource_group_name [String] The name of the resource group. The name
|
185
189
|
# is case insensitive.
|
186
|
-
# @param workspace_name [String] The name of the workspace
|
190
|
+
# @param workspace_name [String] The name of the workspace.
|
187
191
|
# @param private_endpoint_connection_name [String] The name of the private
|
188
192
|
# endpoint connection.
|
189
193
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -199,7 +203,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
199
203
|
#
|
200
204
|
# @param resource_group_name [String] The name of the resource group. The name
|
201
205
|
# is case insensitive.
|
202
|
-
# @param workspace_name [String] The name of the workspace
|
206
|
+
# @param workspace_name [String] The name of the workspace.
|
203
207
|
# @param private_endpoint_connection_name [String] The name of the private
|
204
208
|
# endpoint connection.
|
205
209
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -231,7 +235,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
231
235
|
#
|
232
236
|
# @param resource_group_name [String] The name of the resource group. The name
|
233
237
|
# is case insensitive.
|
234
|
-
# @param workspace_name [String] The name of the workspace
|
238
|
+
# @param workspace_name [String] The name of the workspace.
|
235
239
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
236
240
|
# will be added to the HTTP request.
|
237
241
|
#
|
@@ -247,7 +251,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
247
251
|
#
|
248
252
|
# @param resource_group_name [String] The name of the resource group. The name
|
249
253
|
# is case insensitive.
|
250
|
-
# @param workspace_name [String] The name of the workspace
|
254
|
+
# @param workspace_name [String] The name of the workspace.
|
251
255
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
252
256
|
# will be added to the HTTP request.
|
253
257
|
#
|
@@ -262,7 +266,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
262
266
|
#
|
263
267
|
# @param resource_group_name [String] The name of the resource group. The name
|
264
268
|
# is case insensitive.
|
265
|
-
# @param workspace_name [String] The name of the workspace
|
269
|
+
# @param workspace_name [String] The name of the workspace.
|
266
270
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
267
271
|
# to the HTTP request.
|
268
272
|
#
|
@@ -331,9 +335,11 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
331
335
|
#
|
332
336
|
# Approve or reject a private endpoint connection.
|
333
337
|
#
|
338
|
+
# @param request [PrivateEndpointConnection] Request body of private endpoint
|
339
|
+
# connection to create.
|
334
340
|
# @param resource_group_name [String] The name of the resource group. The name
|
335
341
|
# is case insensitive.
|
336
|
-
# @param workspace_name [String] The name of the workspace
|
342
|
+
# @param workspace_name [String] The name of the workspace.
|
337
343
|
# @param private_endpoint_connection_name [String] The name of the private
|
338
344
|
# endpoint connection.
|
339
345
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -341,17 +347,19 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
341
347
|
#
|
342
348
|
# @return [PrivateEndpointConnection] operation results.
|
343
349
|
#
|
344
|
-
def begin_create(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
345
|
-
response = begin_create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
350
|
+
def begin_create(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
351
|
+
response = begin_create_async(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
346
352
|
response.body unless response.nil?
|
347
353
|
end
|
348
354
|
|
349
355
|
#
|
350
356
|
# Approve or reject a private endpoint connection.
|
351
357
|
#
|
358
|
+
# @param request [PrivateEndpointConnection] Request body of private endpoint
|
359
|
+
# connection to create.
|
352
360
|
# @param resource_group_name [String] The name of the resource group. The name
|
353
361
|
# is case insensitive.
|
354
|
-
# @param workspace_name [String] The name of the workspace
|
362
|
+
# @param workspace_name [String] The name of the workspace.
|
355
363
|
# @param private_endpoint_connection_name [String] The name of the private
|
356
364
|
# endpoint connection.
|
357
365
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -359,16 +367,18 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
359
367
|
#
|
360
368
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
361
369
|
#
|
362
|
-
def begin_create_with_http_info(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
363
|
-
begin_create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
370
|
+
def begin_create_with_http_info(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
371
|
+
begin_create_async(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
364
372
|
end
|
365
373
|
|
366
374
|
#
|
367
375
|
# Approve or reject a private endpoint connection.
|
368
376
|
#
|
377
|
+
# @param request [PrivateEndpointConnection] Request body of private endpoint
|
378
|
+
# connection to create.
|
369
379
|
# @param resource_group_name [String] The name of the resource group. The name
|
370
380
|
# is case insensitive.
|
371
|
-
# @param workspace_name [String] The name of the workspace
|
381
|
+
# @param workspace_name [String] The name of the workspace.
|
372
382
|
# @param private_endpoint_connection_name [String] The name of the private
|
373
383
|
# endpoint connection.
|
374
384
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -376,7 +386,8 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
376
386
|
#
|
377
387
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
378
388
|
#
|
379
|
-
def begin_create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
389
|
+
def begin_create_async(request, resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
390
|
+
fail ArgumentError, 'request is nil' if request.nil?
|
380
391
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
381
392
|
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
382
393
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -395,6 +406,12 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
395
406
|
# Set Headers
|
396
407
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
397
408
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
409
|
+
|
410
|
+
# Serialize Request
|
411
|
+
request_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
412
|
+
request_content = @client.serialize(request_mapper, request)
|
413
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
414
|
+
|
398
415
|
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
399
416
|
|
400
417
|
request_url = @base_url || @client.base_url
|
@@ -403,6 +420,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
403
420
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
404
421
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
405
422
|
query_params: {'api-version' => @client.api_version},
|
423
|
+
body: request_content,
|
406
424
|
headers: request_headers.merge(custom_headers || {}),
|
407
425
|
base_url: request_url
|
408
426
|
}
|
@@ -412,7 +430,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
412
430
|
http_response = result.response
|
413
431
|
status_code = http_response.status
|
414
432
|
response_content = http_response.body
|
415
|
-
unless status_code ==
|
433
|
+
unless status_code == 200 || status_code == 201
|
416
434
|
error_model = JSON.load(response_content)
|
417
435
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
418
436
|
end
|
@@ -421,7 +439,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
421
439
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
422
440
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
423
441
|
# Deserialize Response
|
424
|
-
if status_code ==
|
442
|
+
if status_code == 200
|
425
443
|
begin
|
426
444
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
427
445
|
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
@@ -431,7 +449,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
431
449
|
end
|
432
450
|
end
|
433
451
|
# Deserialize Response
|
434
|
-
if status_code ==
|
452
|
+
if status_code == 201
|
435
453
|
begin
|
436
454
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
437
455
|
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
@@ -452,7 +470,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
452
470
|
#
|
453
471
|
# @param resource_group_name [String] The name of the resource group. The name
|
454
472
|
# is case insensitive.
|
455
|
-
# @param workspace_name [String] The name of the workspace
|
473
|
+
# @param workspace_name [String] The name of the workspace.
|
456
474
|
# @param private_endpoint_connection_name [String] The name of the private
|
457
475
|
# endpoint connection.
|
458
476
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -470,7 +488,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
470
488
|
#
|
471
489
|
# @param resource_group_name [String] The name of the resource group. The name
|
472
490
|
# is case insensitive.
|
473
|
-
# @param workspace_name [String] The name of the workspace
|
491
|
+
# @param workspace_name [String] The name of the workspace.
|
474
492
|
# @param private_endpoint_connection_name [String] The name of the private
|
475
493
|
# endpoint connection.
|
476
494
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -487,7 +505,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
487
505
|
#
|
488
506
|
# @param resource_group_name [String] The name of the resource group. The name
|
489
507
|
# is case insensitive.
|
490
|
-
# @param workspace_name [String] The name of the workspace
|
508
|
+
# @param workspace_name [String] The name of the workspace.
|
491
509
|
# @param private_endpoint_connection_name [String] The name of the private
|
492
510
|
# endpoint connection.
|
493
511
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -531,7 +549,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
531
549
|
http_response = result.response
|
532
550
|
status_code = http_response.status
|
533
551
|
response_content = http_response.body
|
534
|
-
unless status_code == 202 || status_code == 204
|
552
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
535
553
|
error_model = JSON.load(response_content)
|
536
554
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
537
555
|
end
|
@@ -651,7 +669,7 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
651
669
|
#
|
652
670
|
# @param resource_group_name [String] The name of the resource group. The name
|
653
671
|
# is case insensitive.
|
654
|
-
# @param workspace_name [String] The name of the workspace
|
672
|
+
# @param workspace_name [String] The name of the workspace.
|
655
673
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
656
674
|
# will be added to the HTTP request.
|
657
675
|
#
|
@@ -0,0 +1,244 @@
|
|
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::Synapse::Mgmt::V2019_06_01_preview
|
7
|
+
#
|
8
|
+
# Azure Synapse Analytics Management Client
|
9
|
+
#
|
10
|
+
class PrivateEndpointConnectionsPrivateLinkHub
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the PrivateEndpointConnectionsPrivateLinkHub class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [SynapseManagementClient] reference to the SynapseManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param private_link_hub_name [String] Name of the privateLinkHub
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<PrivateEndpointConnectionForPrivateLinkHub>] operation
|
34
|
+
# results.
|
35
|
+
#
|
36
|
+
def list(resource_group_name, private_link_hub_name, custom_headers:nil)
|
37
|
+
first_page = list_as_lazy(resource_group_name, private_link_hub_name, custom_headers:custom_headers)
|
38
|
+
first_page.get_all_items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
45
|
+
# is case insensitive.
|
46
|
+
# @param private_link_hub_name [String] Name of the privateLinkHub
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
50
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
|
+
#
|
52
|
+
def list_with_http_info(resource_group_name, private_link_hub_name, custom_headers:nil)
|
53
|
+
list_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
58
|
+
#
|
59
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
60
|
+
# is case insensitive.
|
61
|
+
# @param private_link_hub_name [String] Name of the privateLinkHub
|
62
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
63
|
+
# to the HTTP request.
|
64
|
+
#
|
65
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
66
|
+
#
|
67
|
+
def list_async(resource_group_name, private_link_hub_name, custom_headers:nil)
|
68
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
69
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
72
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
76
|
+
fail ArgumentError, 'private_link_hub_name is nil' if private_link_hub_name.nil?
|
77
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
89
|
+
options = {
|
90
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'privateLinkHubName' => private_link_hub_name},
|
92
|
+
query_params: {'api-version' => @client.api_version},
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
95
|
+
}
|
96
|
+
promise = @client.make_request_async(:get, path_template, options)
|
97
|
+
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
100
|
+
status_code = http_response.status
|
101
|
+
response_content = http_response.body
|
102
|
+
unless status_code == 200
|
103
|
+
error_model = JSON.load(response_content)
|
104
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
105
|
+
end
|
106
|
+
|
107
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
110
|
+
# Deserialize Response
|
111
|
+
if status_code == 200
|
112
|
+
begin
|
113
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.mapper()
|
115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
+
rescue Exception => e
|
117
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
promise.execute
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
129
|
+
#
|
130
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
131
|
+
# to List operation.
|
132
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
133
|
+
# will be added to the HTTP request.
|
134
|
+
#
|
135
|
+
# @return
|
136
|
+
# [PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse]
|
137
|
+
# operation results.
|
138
|
+
#
|
139
|
+
def list_next(next_page_link, custom_headers:nil)
|
140
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
141
|
+
response.body unless response.nil?
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
146
|
+
#
|
147
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
148
|
+
# to List operation.
|
149
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
|
+
# will be added to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
153
|
+
#
|
154
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
155
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
156
|
+
end
|
157
|
+
|
158
|
+
#
|
159
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
160
|
+
#
|
161
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
162
|
+
# to List operation.
|
163
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
164
|
+
# to the HTTP request.
|
165
|
+
#
|
166
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
167
|
+
#
|
168
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
169
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
170
|
+
|
171
|
+
|
172
|
+
request_headers = {}
|
173
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
174
|
+
|
175
|
+
# Set Headers
|
176
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
177
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
178
|
+
path_template = '{nextLink}'
|
179
|
+
|
180
|
+
request_url = @base_url || @client.base_url
|
181
|
+
|
182
|
+
options = {
|
183
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
184
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
185
|
+
headers: request_headers.merge(custom_headers || {}),
|
186
|
+
base_url: request_url
|
187
|
+
}
|
188
|
+
promise = @client.make_request_async(:get, path_template, options)
|
189
|
+
|
190
|
+
promise = promise.then do |result|
|
191
|
+
http_response = result.response
|
192
|
+
status_code = http_response.status
|
193
|
+
response_content = http_response.body
|
194
|
+
unless status_code == 200
|
195
|
+
error_model = JSON.load(response_content)
|
196
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
197
|
+
end
|
198
|
+
|
199
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
200
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
201
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
202
|
+
# Deserialize Response
|
203
|
+
if status_code == 200
|
204
|
+
begin
|
205
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
206
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.mapper()
|
207
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
208
|
+
rescue Exception => e
|
209
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
result
|
214
|
+
end
|
215
|
+
|
216
|
+
promise.execute
|
217
|
+
end
|
218
|
+
|
219
|
+
#
|
220
|
+
# Get all PrivateEndpointConnections in the PrivateLinkHub
|
221
|
+
#
|
222
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
223
|
+
# is case insensitive.
|
224
|
+
# @param private_link_hub_name [String] Name of the privateLinkHub
|
225
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
226
|
+
# will be added to the HTTP request.
|
227
|
+
#
|
228
|
+
# @return
|
229
|
+
# [PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse] which
|
230
|
+
# provide lazy access to pages of the response.
|
231
|
+
#
|
232
|
+
def list_as_lazy(resource_group_name, private_link_hub_name, custom_headers:nil)
|
233
|
+
response = list_async(resource_group_name, private_link_hub_name, custom_headers:custom_headers).value!
|
234
|
+
unless response.nil?
|
235
|
+
page = response.body
|
236
|
+
page.next_method = Proc.new do |next_page_link|
|
237
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
238
|
+
end
|
239
|
+
page
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
end
|
244
|
+
end
|