azure_mgmt_synapse 0.17.1 → 0.17.2
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 +124 -37
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_auth_keys_operations.rb +263 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_connection_infos.rb +137 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_credentials.rb +138 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_monitoring_data_operations.rb +137 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_node_ip_address_operations.rb +141 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_nodes.rb +379 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_object_metadata.rb +262 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_status_operations.rb +137 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtimes.rb +1053 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/ip_firewall_rules.rb +106 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/big_data_pool_resource_info.rb +0 -4
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/cmdkey_setup.rb +86 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/component_setup.rb +75 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/custom_setup_base.rb +48 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_flow_compute_type.rb +17 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/entity_reference.rb +59 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/environment_variable_setup.rb +72 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/get_ssis_object_metadata_request.rb +46 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime.rb +78 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_auth_key_name.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_auth_keys.rb +57 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_auto_update.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_compute_properties.rb +135 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_connection_info.rb +130 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_custom_setup_script_properties.rb +61 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_data_flow_properties.rb +94 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_data_proxy_properties.rb +72 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_edition.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_entity_reference_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_internal_channel_encryption_mode.rb +17 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_license_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_list_response.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_monitoring_data.rb +67 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_node_ip_address.rb +48 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_node_monitoring_data.rb +154 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_regenerate_key_parameters.rb +48 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_resource.rb +85 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_ssis_catalog_info.rb +107 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_ssis_catalog_pricing_tier.rb +18 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_ssis_properties.rb +141 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_state.rb +24 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_status.rb +94 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_status_response.rb +61 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_type.rb +16 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_update_result.rb +17 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_vnet_properties.rb +98 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime.rb +98 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime_key_authorization.rb +62 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime_rbac_authorization.rb +64 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime_type.rb +47 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime.rb +115 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_error.rb +91 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_node.rb +82 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_node_status.rb +18 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_operation_result.rb +115 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_status.rb +154 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint.rb +47 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_list.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub.rb +99 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub_info_list_result.rb +98 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub_patch_info.rb +54 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_resource.rb +76 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_resource_list_result.rb +100 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_resource_properties.rb +89 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_service_connection_state.rb +71 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/secret_base.rb +46 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/secure_string.rb +62 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime.rb +87 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_node.rb +273 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_node_status.rb +21 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_status.rb +322 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_environment.rb +105 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_environment_reference.rb +79 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_folder.rb +74 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata.rb +82 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata_list_response.rb +69 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata_status_response.rb +79 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata_type.rb +18 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_package.rb +127 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_parameter.rb +167 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_project.rb +137 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_variable.rb +112 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sub_resource.rb +83 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/update_integration_runtime_node_request.rb +51 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/update_integration_runtime_request.rb +61 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace.rb +34 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_endpoint_connections.rb +673 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_hubs.rb +878 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_resources.rb +369 -0
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pools.rb +1 -1
- data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb +55 -1
- data/lib/profiles/latest/modules/synapse_profile_module.rb +440 -116
- data/lib/version.rb +1 -1
- metadata +89 -2
@@ -0,0 +1,51 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Update integration runtime node request.
|
10
|
+
#
|
11
|
+
class UpdateIntegrationRuntimeNodeRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The number of concurrent jobs permitted to run on the
|
16
|
+
# integration runtime node. Values between 1 and
|
17
|
+
# maxConcurrentJobs(inclusive) are allowed.
|
18
|
+
attr_accessor :concurrent_jobs_limit
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for UpdateIntegrationRuntimeNodeRequest class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
client_side_validation: true,
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'UpdateIntegrationRuntimeNodeRequest',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'UpdateIntegrationRuntimeNodeRequest',
|
33
|
+
model_properties: {
|
34
|
+
concurrent_jobs_limit: {
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'concurrentJobsLimit',
|
38
|
+
constraints: {
|
39
|
+
InclusiveMinimum: 1
|
40
|
+
},
|
41
|
+
type: {
|
42
|
+
name: 'Number'
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Update integration runtime request.
|
10
|
+
#
|
11
|
+
class UpdateIntegrationRuntimeRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [IntegrationRuntimeAutoUpdate] Enables or disables the
|
16
|
+
# auto-update feature of the self-hosted integration runtime. See
|
17
|
+
# https://go.microsoft.com/fwlink/?linkid=854189. Possible values
|
18
|
+
# include: 'On', 'Off'
|
19
|
+
attr_accessor :auto_update
|
20
|
+
|
21
|
+
# @return [String] The time offset (in hours) in the day, e.g., PT03H is
|
22
|
+
# 3 hours. The integration runtime auto update will happen on that time.
|
23
|
+
attr_accessor :update_delay_offset
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for UpdateIntegrationRuntimeRequest class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'UpdateIntegrationRuntimeRequest',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'UpdateIntegrationRuntimeRequest',
|
38
|
+
model_properties: {
|
39
|
+
auto_update: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'autoUpdate',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
update_delay_offset: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'updateDelayOffset',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -34,6 +34,15 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
34
34
|
# @return [Hash{String => String}] Connectivity endpoints
|
35
35
|
attr_accessor :connectivity_endpoints
|
36
36
|
|
37
|
+
# @return [String] Setting this to 'default' will ensure that all compute
|
38
|
+
# for this workspace is in a virtual network managed on behalf of the
|
39
|
+
# user.
|
40
|
+
attr_accessor :managed_virtual_network
|
41
|
+
|
42
|
+
# @return [Array<PrivateEndpointConnection>] Private endpoint connections
|
43
|
+
# to the workspace
|
44
|
+
attr_accessor :private_endpoint_connections
|
45
|
+
|
37
46
|
# @return [ManagedIdentity] Identity of the workspace
|
38
47
|
attr_accessor :identity
|
39
48
|
|
@@ -170,6 +179,31 @@ module Azure::Synapse::Mgmt::V2019_06_01_preview
|
|
170
179
|
}
|
171
180
|
}
|
172
181
|
},
|
182
|
+
managed_virtual_network: {
|
183
|
+
client_side_validation: true,
|
184
|
+
required: false,
|
185
|
+
serialized_name: 'properties.managedVirtualNetwork',
|
186
|
+
type: {
|
187
|
+
name: 'String'
|
188
|
+
}
|
189
|
+
},
|
190
|
+
private_endpoint_connections: {
|
191
|
+
client_side_validation: true,
|
192
|
+
required: false,
|
193
|
+
serialized_name: 'properties.privateEndpointConnections',
|
194
|
+
type: {
|
195
|
+
name: 'Sequence',
|
196
|
+
element: {
|
197
|
+
client_side_validation: true,
|
198
|
+
required: false,
|
199
|
+
serialized_name: 'PrivateEndpointConnectionElementType',
|
200
|
+
type: {
|
201
|
+
name: 'Composite',
|
202
|
+
class_name: 'PrivateEndpointConnection'
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
},
|
173
207
|
identity: {
|
174
208
|
client_side_validation: true,
|
175
209
|
required: false,
|
@@ -0,0 +1,673 @@
|
|
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 PrivateEndpointConnections
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the PrivateEndpointConnections 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
|
+
# Gets a private endpoint connection.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param workspace_name [String] The name of the workspace
|
30
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
31
|
+
# endpoint connection.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [PrivateEndpointConnection] operation results.
|
36
|
+
#
|
37
|
+
def get(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
38
|
+
response = get_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets a private endpoint connection.
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
46
|
+
# is case insensitive.
|
47
|
+
# @param workspace_name [String] The name of the workspace
|
48
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
49
|
+
# endpoint connection.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def get_with_http_info(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
56
|
+
get_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Gets a private endpoint connection.
|
61
|
+
#
|
62
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
63
|
+
# is case insensitive.
|
64
|
+
# @param workspace_name [String] The name of the workspace
|
65
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
66
|
+
# endpoint connection.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def get_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
73
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
74
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
75
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
76
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
77
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
78
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
79
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
80
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
81
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
82
|
+
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
83
|
+
|
84
|
+
|
85
|
+
request_headers = {}
|
86
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
87
|
+
|
88
|
+
# Set Headers
|
89
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
90
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
91
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
92
|
+
|
93
|
+
request_url = @base_url || @client.base_url
|
94
|
+
|
95
|
+
options = {
|
96
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
97
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
98
|
+
query_params: {'api-version' => @client.api_version},
|
99
|
+
headers: request_headers.merge(custom_headers || {}),
|
100
|
+
base_url: request_url
|
101
|
+
}
|
102
|
+
promise = @client.make_request_async(:get, path_template, options)
|
103
|
+
|
104
|
+
promise = promise.then do |result|
|
105
|
+
http_response = result.response
|
106
|
+
status_code = http_response.status
|
107
|
+
response_content = http_response.body
|
108
|
+
unless status_code == 200
|
109
|
+
error_model = JSON.load(response_content)
|
110
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
111
|
+
end
|
112
|
+
|
113
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
114
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
115
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
116
|
+
# Deserialize Response
|
117
|
+
if status_code == 200
|
118
|
+
begin
|
119
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
120
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
121
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
122
|
+
rescue Exception => e
|
123
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
result
|
128
|
+
end
|
129
|
+
|
130
|
+
promise.execute
|
131
|
+
end
|
132
|
+
|
133
|
+
#
|
134
|
+
# Approve or reject a private endpoint connection.
|
135
|
+
#
|
136
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
137
|
+
# is case insensitive.
|
138
|
+
# @param workspace_name [String] The name of the workspace
|
139
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
140
|
+
# endpoint connection.
|
141
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
|
+
# will be added to the HTTP request.
|
143
|
+
#
|
144
|
+
# @return [PrivateEndpointConnection] operation results.
|
145
|
+
#
|
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
|
+
response.body unless response.nil?
|
149
|
+
end
|
150
|
+
|
151
|
+
#
|
152
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
153
|
+
# is case insensitive.
|
154
|
+
# @param workspace_name [String] The name of the workspace
|
155
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
156
|
+
# endpoint connection.
|
157
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
158
|
+
# will be added to the HTTP request.
|
159
|
+
#
|
160
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
161
|
+
# response.
|
162
|
+
#
|
163
|
+
def create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
164
|
+
# Send request
|
165
|
+
promise = begin_create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers)
|
166
|
+
|
167
|
+
promise = promise.then do |response|
|
168
|
+
# Defining deserialization method.
|
169
|
+
deserialize_method = lambda do |parsed_response|
|
170
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
171
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Waiting for response.
|
175
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
176
|
+
end
|
177
|
+
|
178
|
+
promise
|
179
|
+
end
|
180
|
+
|
181
|
+
#
|
182
|
+
# Delete a private endpoint connection.
|
183
|
+
#
|
184
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
185
|
+
# is case insensitive.
|
186
|
+
# @param workspace_name [String] The name of the workspace
|
187
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
188
|
+
# endpoint connection.
|
189
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
190
|
+
# will be added to the HTTP request.
|
191
|
+
#
|
192
|
+
# @return [OperationResource] operation results.
|
193
|
+
#
|
194
|
+
def delete(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
195
|
+
response = delete_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
196
|
+
response.body unless response.nil?
|
197
|
+
end
|
198
|
+
|
199
|
+
#
|
200
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
201
|
+
# is case insensitive.
|
202
|
+
# @param workspace_name [String] The name of the workspace
|
203
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
204
|
+
# endpoint connection.
|
205
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
206
|
+
# will be added to the HTTP request.
|
207
|
+
#
|
208
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
209
|
+
# response.
|
210
|
+
#
|
211
|
+
def delete_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
212
|
+
# Send request
|
213
|
+
promise = begin_delete_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers)
|
214
|
+
|
215
|
+
promise = promise.then do |response|
|
216
|
+
# Defining deserialization method.
|
217
|
+
deserialize_method = lambda do |parsed_response|
|
218
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::OperationResource.mapper()
|
219
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Waiting for response.
|
223
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
224
|
+
end
|
225
|
+
|
226
|
+
promise
|
227
|
+
end
|
228
|
+
|
229
|
+
#
|
230
|
+
# Lists private endpoint connection in workspace.
|
231
|
+
#
|
232
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
233
|
+
# is case insensitive.
|
234
|
+
# @param workspace_name [String] The name of the workspace
|
235
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
236
|
+
# will be added to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [Array<PrivateEndpointConnection>] operation results.
|
239
|
+
#
|
240
|
+
def list(resource_group_name, workspace_name, custom_headers:nil)
|
241
|
+
first_page = list_as_lazy(resource_group_name, workspace_name, custom_headers:custom_headers)
|
242
|
+
first_page.get_all_items
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
# Lists private endpoint connection in workspace.
|
247
|
+
#
|
248
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
249
|
+
# is case insensitive.
|
250
|
+
# @param workspace_name [String] The name of the workspace
|
251
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
252
|
+
# will be added to the HTTP request.
|
253
|
+
#
|
254
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
255
|
+
#
|
256
|
+
def list_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
|
257
|
+
list_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
258
|
+
end
|
259
|
+
|
260
|
+
#
|
261
|
+
# Lists private endpoint connection in workspace.
|
262
|
+
#
|
263
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
264
|
+
# is case insensitive.
|
265
|
+
# @param workspace_name [String] The name of the workspace
|
266
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
267
|
+
# to the HTTP request.
|
268
|
+
#
|
269
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
270
|
+
#
|
271
|
+
def list_async(resource_group_name, workspace_name, custom_headers:nil)
|
272
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
273
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
274
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
275
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
276
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
277
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
278
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
279
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
280
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
281
|
+
|
282
|
+
|
283
|
+
request_headers = {}
|
284
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
285
|
+
|
286
|
+
# Set Headers
|
287
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
288
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
289
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections'
|
290
|
+
|
291
|
+
request_url = @base_url || @client.base_url
|
292
|
+
|
293
|
+
options = {
|
294
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
295
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
|
296
|
+
query_params: {'api-version' => @client.api_version},
|
297
|
+
headers: request_headers.merge(custom_headers || {}),
|
298
|
+
base_url: request_url
|
299
|
+
}
|
300
|
+
promise = @client.make_request_async(:get, path_template, options)
|
301
|
+
|
302
|
+
promise = promise.then do |result|
|
303
|
+
http_response = result.response
|
304
|
+
status_code = http_response.status
|
305
|
+
response_content = http_response.body
|
306
|
+
unless status_code == 200
|
307
|
+
error_model = JSON.load(response_content)
|
308
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
309
|
+
end
|
310
|
+
|
311
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
312
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
313
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
314
|
+
# Deserialize Response
|
315
|
+
if status_code == 200
|
316
|
+
begin
|
317
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
318
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnectionList.mapper()
|
319
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
320
|
+
rescue Exception => e
|
321
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
result
|
326
|
+
end
|
327
|
+
|
328
|
+
promise.execute
|
329
|
+
end
|
330
|
+
|
331
|
+
#
|
332
|
+
# Approve or reject a private endpoint connection.
|
333
|
+
#
|
334
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
335
|
+
# is case insensitive.
|
336
|
+
# @param workspace_name [String] The name of the workspace
|
337
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
338
|
+
# endpoint connection.
|
339
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
340
|
+
# will be added to the HTTP request.
|
341
|
+
#
|
342
|
+
# @return [PrivateEndpointConnection] operation results.
|
343
|
+
#
|
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!
|
346
|
+
response.body unless response.nil?
|
347
|
+
end
|
348
|
+
|
349
|
+
#
|
350
|
+
# Approve or reject a private endpoint connection.
|
351
|
+
#
|
352
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
353
|
+
# is case insensitive.
|
354
|
+
# @param workspace_name [String] The name of the workspace
|
355
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
356
|
+
# endpoint connection.
|
357
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
358
|
+
# will be added to the HTTP request.
|
359
|
+
#
|
360
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
361
|
+
#
|
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!
|
364
|
+
end
|
365
|
+
|
366
|
+
#
|
367
|
+
# Approve or reject a private endpoint connection.
|
368
|
+
#
|
369
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
370
|
+
# is case insensitive.
|
371
|
+
# @param workspace_name [String] The name of the workspace
|
372
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
373
|
+
# endpoint connection.
|
374
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
375
|
+
# to the HTTP request.
|
376
|
+
#
|
377
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
378
|
+
#
|
379
|
+
def begin_create_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
380
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
381
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
382
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
383
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
384
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
385
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
386
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
387
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
388
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
389
|
+
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
390
|
+
|
391
|
+
|
392
|
+
request_headers = {}
|
393
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
394
|
+
|
395
|
+
# Set Headers
|
396
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
397
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
398
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
399
|
+
|
400
|
+
request_url = @base_url || @client.base_url
|
401
|
+
|
402
|
+
options = {
|
403
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
404
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
405
|
+
query_params: {'api-version' => @client.api_version},
|
406
|
+
headers: request_headers.merge(custom_headers || {}),
|
407
|
+
base_url: request_url
|
408
|
+
}
|
409
|
+
promise = @client.make_request_async(:put, path_template, options)
|
410
|
+
|
411
|
+
promise = promise.then do |result|
|
412
|
+
http_response = result.response
|
413
|
+
status_code = http_response.status
|
414
|
+
response_content = http_response.body
|
415
|
+
unless status_code == 201 || status_code == 200
|
416
|
+
error_model = JSON.load(response_content)
|
417
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
418
|
+
end
|
419
|
+
|
420
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
421
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
422
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
423
|
+
# Deserialize Response
|
424
|
+
if status_code == 201
|
425
|
+
begin
|
426
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
427
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
428
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
429
|
+
rescue Exception => e
|
430
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
431
|
+
end
|
432
|
+
end
|
433
|
+
# Deserialize Response
|
434
|
+
if status_code == 200
|
435
|
+
begin
|
436
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
437
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnection.mapper()
|
438
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
439
|
+
rescue Exception => e
|
440
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
result
|
445
|
+
end
|
446
|
+
|
447
|
+
promise.execute
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Delete a private endpoint connection.
|
452
|
+
#
|
453
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
454
|
+
# is case insensitive.
|
455
|
+
# @param workspace_name [String] The name of the workspace
|
456
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
457
|
+
# endpoint connection.
|
458
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
459
|
+
# will be added to the HTTP request.
|
460
|
+
#
|
461
|
+
# @return [OperationResource] operation results.
|
462
|
+
#
|
463
|
+
def begin_delete(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
464
|
+
response = begin_delete_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
465
|
+
response.body unless response.nil?
|
466
|
+
end
|
467
|
+
|
468
|
+
#
|
469
|
+
# Delete a private endpoint connection.
|
470
|
+
#
|
471
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
472
|
+
# is case insensitive.
|
473
|
+
# @param workspace_name [String] The name of the workspace
|
474
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
475
|
+
# endpoint connection.
|
476
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
477
|
+
# will be added to the HTTP request.
|
478
|
+
#
|
479
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
480
|
+
#
|
481
|
+
def begin_delete_with_http_info(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
482
|
+
begin_delete_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:custom_headers).value!
|
483
|
+
end
|
484
|
+
|
485
|
+
#
|
486
|
+
# Delete a private endpoint connection.
|
487
|
+
#
|
488
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
489
|
+
# is case insensitive.
|
490
|
+
# @param workspace_name [String] The name of the workspace
|
491
|
+
# @param private_endpoint_connection_name [String] The name of the private
|
492
|
+
# endpoint connection.
|
493
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
494
|
+
# to the HTTP request.
|
495
|
+
#
|
496
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
497
|
+
#
|
498
|
+
def begin_delete_async(resource_group_name, workspace_name, private_endpoint_connection_name, custom_headers:nil)
|
499
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
500
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
501
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
502
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
503
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
504
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
505
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
506
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
507
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
508
|
+
fail ArgumentError, 'private_endpoint_connection_name is nil' if private_endpoint_connection_name.nil?
|
509
|
+
|
510
|
+
|
511
|
+
request_headers = {}
|
512
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
513
|
+
|
514
|
+
# Set Headers
|
515
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
516
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
517
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'
|
518
|
+
|
519
|
+
request_url = @base_url || @client.base_url
|
520
|
+
|
521
|
+
options = {
|
522
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
523
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'privateEndpointConnectionName' => private_endpoint_connection_name},
|
524
|
+
query_params: {'api-version' => @client.api_version},
|
525
|
+
headers: request_headers.merge(custom_headers || {}),
|
526
|
+
base_url: request_url
|
527
|
+
}
|
528
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
529
|
+
|
530
|
+
promise = promise.then do |result|
|
531
|
+
http_response = result.response
|
532
|
+
status_code = http_response.status
|
533
|
+
response_content = http_response.body
|
534
|
+
unless status_code == 202 || status_code == 204
|
535
|
+
error_model = JSON.load(response_content)
|
536
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
537
|
+
end
|
538
|
+
|
539
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
540
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
541
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
542
|
+
# Deserialize Response
|
543
|
+
if status_code == 202
|
544
|
+
begin
|
545
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
546
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::OperationResource.mapper()
|
547
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
548
|
+
rescue Exception => e
|
549
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
553
|
+
result
|
554
|
+
end
|
555
|
+
|
556
|
+
promise.execute
|
557
|
+
end
|
558
|
+
|
559
|
+
#
|
560
|
+
# Lists private endpoint connection in workspace.
|
561
|
+
#
|
562
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
563
|
+
# to List operation.
|
564
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
565
|
+
# will be added to the HTTP request.
|
566
|
+
#
|
567
|
+
# @return [PrivateEndpointConnectionList] operation results.
|
568
|
+
#
|
569
|
+
def list_next(next_page_link, custom_headers:nil)
|
570
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
571
|
+
response.body unless response.nil?
|
572
|
+
end
|
573
|
+
|
574
|
+
#
|
575
|
+
# Lists private endpoint connection in workspace.
|
576
|
+
#
|
577
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
578
|
+
# to List operation.
|
579
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
580
|
+
# will be added to the HTTP request.
|
581
|
+
#
|
582
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
583
|
+
#
|
584
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
585
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
586
|
+
end
|
587
|
+
|
588
|
+
#
|
589
|
+
# Lists private endpoint connection in workspace.
|
590
|
+
#
|
591
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
592
|
+
# to List operation.
|
593
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
594
|
+
# to the HTTP request.
|
595
|
+
#
|
596
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
597
|
+
#
|
598
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
599
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
600
|
+
|
601
|
+
|
602
|
+
request_headers = {}
|
603
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
604
|
+
|
605
|
+
# Set Headers
|
606
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
607
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
608
|
+
path_template = '{nextLink}'
|
609
|
+
|
610
|
+
request_url = @base_url || @client.base_url
|
611
|
+
|
612
|
+
options = {
|
613
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
614
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
615
|
+
headers: request_headers.merge(custom_headers || {}),
|
616
|
+
base_url: request_url
|
617
|
+
}
|
618
|
+
promise = @client.make_request_async(:get, path_template, options)
|
619
|
+
|
620
|
+
promise = promise.then do |result|
|
621
|
+
http_response = result.response
|
622
|
+
status_code = http_response.status
|
623
|
+
response_content = http_response.body
|
624
|
+
unless status_code == 200
|
625
|
+
error_model = JSON.load(response_content)
|
626
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
627
|
+
end
|
628
|
+
|
629
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
630
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
631
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
632
|
+
# Deserialize Response
|
633
|
+
if status_code == 200
|
634
|
+
begin
|
635
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
636
|
+
result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::PrivateEndpointConnectionList.mapper()
|
637
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
638
|
+
rescue Exception => e
|
639
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
result
|
644
|
+
end
|
645
|
+
|
646
|
+
promise.execute
|
647
|
+
end
|
648
|
+
|
649
|
+
#
|
650
|
+
# Lists private endpoint connection in workspace.
|
651
|
+
#
|
652
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
653
|
+
# is case insensitive.
|
654
|
+
# @param workspace_name [String] The name of the workspace
|
655
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
656
|
+
# will be added to the HTTP request.
|
657
|
+
#
|
658
|
+
# @return [PrivateEndpointConnectionList] which provide lazy access to pages of
|
659
|
+
# the response.
|
660
|
+
#
|
661
|
+
def list_as_lazy(resource_group_name, workspace_name, custom_headers:nil)
|
662
|
+
response = list_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
|
663
|
+
unless response.nil?
|
664
|
+
page = response.body
|
665
|
+
page.next_method = Proc.new do |next_page_link|
|
666
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
667
|
+
end
|
668
|
+
page
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
end
|
673
|
+
end
|