Class: Azure::Network::Mgmt::V2019_06_01::PrivateLinkServices
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2019_06_01::PrivateLinkServices
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb
Overview
PrivateLinkServices
Instance Attribute Summary collapse
-
#client ⇒ NetworkManagementClient
readonly
Reference to the NetworkManagementClient.
Instance Method Summary collapse
-
#begin_check_private_link_service_visibility(location, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service.
-
#begin_check_private_link_service_visibility_async(location, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Checks the subscription is visible to private link service.
-
#begin_check_private_link_service_visibility_by_resource_group(location, resource_group_name, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service.
-
#begin_check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Checks the subscription is visible to private link service.
-
#begin_check_private_link_service_visibility_by_resource_group_with_http_info(location, resource_group_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks the subscription is visible to private link service.
-
#begin_check_private_link_service_visibility_with_http_info(location, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks the subscription is visible to private link service.
-
#begin_create_or_update(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ PrivateLinkService
Creates or updates an private link service in the specified resource group.
-
#begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates an private link service in the specified resource group.
-
#begin_create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates an private link service in the specified resource group.
-
#begin_delete(resource_group_name, service_name, custom_headers: nil) ⇒ Object
Deletes the specified private link service.
-
#begin_delete_async(resource_group_name, service_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the specified private link service.
-
#begin_delete_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Object
Delete private end point connection for a private link service in a subscription.
-
#begin_delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete private end point connection for a private link service in a subscription.
-
#begin_delete_private_endpoint_connection_with_http_info(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete private end point connection for a private link service in a subscription.
-
#begin_delete_with_http_info(resource_group_name, service_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the specified private link service.
-
#check_private_link_service_visibility(location, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service.
-
#check_private_link_service_visibility_async(location, parameters, custom_headers: nil) ⇒ Concurrent::Promise
of CheckPrivateLinkService API call.
-
#check_private_link_service_visibility_by_resource_group(location, resource_group_name, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service.
-
#check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
of CheckPrivateLinkService API call.
-
#create_or_update(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ PrivateLinkService
Creates or updates an private link service in the specified resource group.
-
#create_or_update_async(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
update private link service operation.
-
#delete(resource_group_name, service_name, custom_headers: nil) ⇒ Object
Deletes the specified private link service.
-
#delete_async(resource_group_name, service_name, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#delete_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Object
Delete private end point connection for a private link service in a subscription.
-
#delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Concurrent::Promise
connection.
-
#get(resource_group_name, service_name, expand: nil, custom_headers: nil) ⇒ PrivateLinkService
Gets the specified private link service by resource group.
-
#get_async(resource_group_name, service_name, expand: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the specified private link service by resource group.
-
#get_with_http_info(resource_group_name, service_name, expand: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the specified private link service by resource group.
-
#initialize(client) ⇒ PrivateLinkServices
constructor
Creates and initializes a new instance of the PrivateLinkServices class.
-
#list(resource_group_name, custom_headers: nil) ⇒ Array<PrivateLinkService>
Gets all private link services in a resource group.
-
#list_as_lazy(resource_group_name, custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link services in a resource group.
-
#list_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link services in a resource group.
-
#list_auto_approved_private_link_services(location, custom_headers: nil) ⇒ Array<AutoApprovedPrivateLinkService>
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_as_lazy(location, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_async(location, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group(location, resource_group_name, custom_headers: nil) ⇒ Array<AutoApprovedPrivateLinkService>
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group_as_lazy(location, resource_group_name, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group_async(location, resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_by_resource_group_with_http_info(location, resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_next(next_page_link, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_auto_approved_private_link_services_with_http_info(location, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
-
#list_by_subscription(custom_headers: nil) ⇒ Array<PrivateLinkService>
Gets all private link service in a subscription.
-
#list_by_subscription_as_lazy(custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link service in a subscription.
-
#list_by_subscription_async(custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link service in a subscription.
-
#list_by_subscription_next(next_page_link, custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link service in a subscription.
-
#list_by_subscription_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link service in a subscription.
-
#list_by_subscription_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link service in a subscription.
-
#list_by_subscription_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link service in a subscription.
-
#list_next(next_page_link, custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link services in a resource group.
-
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link services in a resource group.
-
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link services in a resource group.
-
#list_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link services in a resource group.
-
#update_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, parameters, custom_headers: nil) ⇒ PrivateEndpointConnection
Approve or reject private end point connection for a private link service in a subscription.
-
#update_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Approve or reject private end point connection for a private link service in a subscription.
-
#update_private_endpoint_connection_with_http_info(resource_group_name, service_name, pe_connection_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Approve or reject private end point connection for a private link service in a subscription.
Constructor Details
#initialize(client) ⇒ PrivateLinkServices
Creates and initializes a new instance of the PrivateLinkServices class.
17 18 19 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ NetworkManagementClient (readonly)
Returns reference to the NetworkManagementClient.
22 23 24 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 22 def client @client end |
Instance Method Details
#begin_check_private_link_service_visibility(location, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. will be added to the HTTP request.
1127 1128 1129 1130 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1127 def begin_check_private_link_service_visibility(location, parameters, custom_headers:nil) response = begin_check_private_link_service_visibility_async(location, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_check_private_link_service_visibility_async(location, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. to the HTTP request.
1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1158 def begin_check_private_link_service_visibility_async(location, parameters, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Network::Mgmt::V2019_06_01::Models::CheckPrivateLinkServiceVisibilityRequest.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceVisibility.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_check_private_link_service_visibility_by_resource_group(location, resource_group_name, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. will be added to the HTTP request.
1232 1233 1234 1235 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1232 def begin_check_private_link_service_visibility_by_resource_group(location, resource_group_name, parameters, custom_headers:nil) response = begin_check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. to the HTTP request.
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1265 def begin_check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Network::Mgmt::V2019_06_01::Models::CheckPrivateLinkServiceVisibilityRequest.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceVisibility.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_check_private_link_service_visibility_by_resource_group_with_http_info(location, resource_group_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. will be added to the HTTP request.
1249 1250 1251 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1249 def begin_check_private_link_service_visibility_by_resource_group_with_http_info(location, resource_group_name, parameters, custom_headers:nil) begin_check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers:custom_headers).value! end |
#begin_check_private_link_service_visibility_with_http_info(location, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. will be added to the HTTP request.
1143 1144 1145 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1143 def begin_check_private_link_service_visibility_with_http_info(location, parameters, custom_headers:nil) begin_check_private_link_service_visibility_async(location, parameters, custom_headers:custom_headers).value! end |
#begin_create_or_update(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ PrivateLinkService
Creates or updates an private link service in the specified resource group.
update private link service operation. will be added to the HTTP request.
917 918 919 920 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 917 def begin_create_or_update(resource_group_name, service_name, parameters, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates an private link service in the specified resource group.
update private link service operation. to the HTTP request.
950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 950 def begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkService.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkService.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkService.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates an private link service in the specified resource group.
update private link service operation. will be added to the HTTP request.
934 935 936 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 934 def begin_create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! end |
#begin_delete(resource_group_name, service_name, custom_headers: nil) ⇒ Object
Deletes the specified private link service.
will be added to the HTTP request.
831 832 833 834 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 831 def begin_delete(resource_group_name, service_name, custom_headers:nil) response = begin_delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! nil end |
#begin_delete_async(resource_group_name, service_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes the specified private link service.
to the HTTP request.
860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 860 def begin_delete_async(resource_group_name, service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 202 || status_code == 204 || status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_delete_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Object
Delete private end point connection for a private link service in a subscription.
connection. will be added to the HTTP request.
1035 1036 1037 1038 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1035 def begin_delete_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, custom_headers:nil) response = begin_delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers:custom_headers).value! nil end |
#begin_delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete private end point connection for a private link service in a subscription.
connection. to the HTTP request.
1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1070 def begin_delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? fail ArgumentError, 'pe_connection_name is nil' if pe_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'peConnectionName' => pe_connection_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 202 || status_code == 204 || status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#begin_delete_private_endpoint_connection_with_http_info(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete private end point connection for a private link service in a subscription.
connection. will be added to the HTTP request.
1053 1054 1055 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1053 def begin_delete_private_endpoint_connection_with_http_info(resource_group_name, service_name, pe_connection_name, custom_headers:nil) begin_delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers:custom_headers).value! end |
#begin_delete_with_http_info(resource_group_name, service_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the specified private link service.
will be added to the HTTP request.
846 847 848 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 846 def begin_delete_with_http_info(resource_group_name, service_name, custom_headers:nil) begin_delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! end |
#check_private_link_service_visibility(location, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. will be added to the HTTP request.
553 554 555 556 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 553 def check_private_link_service_visibility(location, parameters, custom_headers:nil) response = check_private_link_service_visibility_async(location, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#check_private_link_service_visibility_async(location, parameters, custom_headers: nil) ⇒ Concurrent::Promise
of CheckPrivateLinkService API call. will be added to the HTTP request.
response.
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 568 def check_private_link_service_visibility_async(location, parameters, custom_headers:nil) # Send request promise = begin_check_private_link_service_visibility_async(location, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceVisibility.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION) end promise end |
#check_private_link_service_visibility_by_resource_group(location, resource_group_name, parameters, custom_headers: nil) ⇒ PrivateLinkServiceVisibility
Checks the subscription is visible to private link service
of CheckPrivateLinkService API call. will be added to the HTTP request.
598 599 600 601 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 598 def check_private_link_service_visibility_by_resource_group(location, resource_group_name, parameters, custom_headers:nil) response = check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
of CheckPrivateLinkService API call. will be added to the HTTP request.
response.
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 614 def check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers:nil) # Send request promise = begin_check_private_link_service_visibility_by_resource_group_async(location, resource_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceVisibility.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION) end promise end |
#create_or_update(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ PrivateLinkService
Creates or updates an private link service in the specified resource group.
update private link service operation. will be added to the HTTP request.
171 172 173 174 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 171 def create_or_update(resource_group_name, service_name, parameters, custom_headers:nil) response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, service_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
update private link service operation. will be added to the HTTP request.
response.
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 187 def create_or_update_async(resource_group_name, service_name, parameters, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkService.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete(resource_group_name, service_name, custom_headers: nil) ⇒ Object
Deletes the specified private link service.
will be added to the HTTP request.
32 33 34 35 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 32 def delete(resource_group_name, service_name, custom_headers:nil) response = delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, service_name, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 46 def delete_async(resource_group_name, service_name, custom_headers:nil) # Send request promise = begin_delete_async(resource_group_name, service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Object
Delete private end point connection for a private link service in a subscription.
connection. will be added to the HTTP request.
510 511 512 513 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 510 def delete_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, custom_headers:nil) response = delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers:custom_headers).value! nil end |
#delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers: nil) ⇒ Concurrent::Promise
connection. will be added to the HTTP request.
response.
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 526 def delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers:nil) # Send request promise = begin_delete_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#get(resource_group_name, service_name, expand: nil, custom_headers: nil) ⇒ PrivateLinkService
Gets the specified private link service by resource group.
will be added to the HTTP request.
73 74 75 76 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 73 def get(resource_group_name, service_name, expand:nil, custom_headers:nil) response = get_async(resource_group_name, service_name, expand:, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, service_name, expand: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets the specified private link service by resource group.
to the HTTP request.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 104 def get_async(resource_group_name, service_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version,'$expand' => }, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkService.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_with_http_info(resource_group_name, service_name, expand: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets the specified private link service by resource group.
will be added to the HTTP request.
89 90 91 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 89 def get_with_http_info(resource_group_name, service_name, expand:nil, custom_headers:nil) get_async(resource_group_name, service_name, expand:, custom_headers:custom_headers).value! end |
#list(resource_group_name, custom_headers: nil) ⇒ Array<PrivateLinkService>
Gets all private link services in a resource group.
will be added to the HTTP request.
214 215 216 217 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 214 def list(resource_group_name, custom_headers:nil) first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_as_lazy(resource_group_name, custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link services in a resource group.
will be added to the HTTP request.
the response.
1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1704 def list_as_lazy(resource_group_name, custom_headers:nil) response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link services in a resource group.
to the HTTP request.
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 241 def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_auto_approved_private_link_services(location, custom_headers: nil) ⇒ Array<AutoApprovedPrivateLinkService>
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
will be added to the HTTP request.
642 643 644 645 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 642 def list_auto_approved_private_link_services(location, custom_headers:nil) first_page = list_auto_approved_private_link_services_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end |
#list_auto_approved_private_link_services_as_lazy(location, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
will be added to the HTTP request.
pages of the response.
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1746 def list_auto_approved_private_link_services_as_lazy(location, custom_headers:nil) response = list_auto_approved_private_link_services_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_auto_approved_private_link_services_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_auto_approved_private_link_services_async(location, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to the HTTP request.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 671 def list_auto_approved_private_link_services_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::AutoApprovedPrivateLinkServicesResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_auto_approved_private_link_services_by_resource_group(location, resource_group_name, custom_headers: nil) ⇒ Array<AutoApprovedPrivateLinkService>
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
will be added to the HTTP request.
736 737 738 739 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 736 def list_auto_approved_private_link_services_by_resource_group(location, resource_group_name, custom_headers:nil) first_page = list_auto_approved_private_link_services_by_resource_group_as_lazy(location, resource_group_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_auto_approved_private_link_services_by_resource_group_as_lazy(location, resource_group_name, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
will be added to the HTTP request.
pages of the response.
1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1769 def list_auto_approved_private_link_services_by_resource_group_as_lazy(location, resource_group_name, custom_headers:nil) response = list_auto_approved_private_link_services_by_resource_group_async(location, resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_auto_approved_private_link_services_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_auto_approved_private_link_services_by_resource_group_async(location, resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to the HTTP request.
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 767 def list_auto_approved_private_link_services_by_resource_group_async(location, resource_group_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'location' => location,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::AutoApprovedPrivateLinkServicesResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_auto_approved_private_link_services_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to List operation. will be added to the HTTP request.
1612 1613 1614 1615 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1612 def list_auto_approved_private_link_services_by_resource_group_next(next_page_link, custom_headers:nil) response = list_auto_approved_private_link_services_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_auto_approved_private_link_services_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to List operation. to the HTTP request.
1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1643 def list_auto_approved_private_link_services_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::AutoApprovedPrivateLinkServicesResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_auto_approved_private_link_services_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to List operation. will be added to the HTTP request.
1628 1629 1630 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1628 def list_auto_approved_private_link_services_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) list_auto_approved_private_link_services_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_auto_approved_private_link_services_by_resource_group_with_http_info(location, resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
will be added to the HTTP request.
752 753 754 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 752 def list_auto_approved_private_link_services_by_resource_group_with_http_info(location, resource_group_name, custom_headers:nil) list_auto_approved_private_link_services_by_resource_group_async(location, resource_group_name, custom_headers:custom_headers).value! end |
#list_auto_approved_private_link_services_next(next_page_link, custom_headers: nil) ⇒ AutoApprovedPrivateLinkServicesResult
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to List operation. will be added to the HTTP request.
1519 1520 1521 1522 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1519 def list_auto_approved_private_link_services_next(next_page_link, custom_headers:nil) response = list_auto_approved_private_link_services_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_auto_approved_private_link_services_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to List operation. to the HTTP request.
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1550 def list_auto_approved_private_link_services_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::AutoApprovedPrivateLinkServicesResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_auto_approved_private_link_services_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
to List operation. will be added to the HTTP request.
1535 1536 1537 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1535 def list_auto_approved_private_link_services_next_with_http_info(next_page_link, custom_headers:nil) list_auto_approved_private_link_services_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_auto_approved_private_link_services_with_http_info(location, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
will be added to the HTTP request.
657 658 659 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 657 def list_auto_approved_private_link_services_with_http_info(location, custom_headers:nil) list_auto_approved_private_link_services_async(location, custom_headers:custom_headers).value! end |
#list_by_subscription(custom_headers: nil) ⇒ Array<PrivateLinkService>
Gets all private link service in a subscription.
will be added to the HTTP request.
303 304 305 306 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 303 def list_by_subscription(custom_headers:nil) first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end |
#list_by_subscription_as_lazy(custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link service in a subscription.
will be added to the HTTP request.
the response.
1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1724 def list_by_subscription_as_lazy(custom_headers:nil) response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_subscription_async(custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link service in a subscription.
to the HTTP request.
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 328 def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_subscription_next(next_page_link, custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link service in a subscription.
to List operation. will be added to the HTTP request.
1428 1429 1430 1431 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1428 def list_by_subscription_next(next_page_link, custom_headers:nil) response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_subscription_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link service in a subscription.
to List operation. to the HTTP request.
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1457 def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_subscription_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link service in a subscription.
to List operation. will be added to the HTTP request.
1443 1444 1445 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1443 def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_subscription_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link service in a subscription.
will be added to the HTTP request.
316 317 318 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 316 def list_by_subscription_with_http_info(custom_headers:nil) list_by_subscription_async(custom_headers:custom_headers).value! end |
#list_next(next_page_link, custom_headers: nil) ⇒ PrivateLinkServiceListResult
Gets all private link services in a resource group.
to List operation. will be added to the HTTP request.
1338 1339 1340 1341 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1338 def list_next(next_page_link, custom_headers:nil) response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets all private link services in a resource group.
to List operation. to the HTTP request.
1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1367 def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateLinkServiceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link services in a resource group.
to List operation. will be added to the HTTP request.
1353 1354 1355 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 1353 def list_next_with_http_info(next_page_link, custom_headers:nil) list_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets all private link services in a resource group.
will be added to the HTTP request.
228 229 230 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 228 def list_with_http_info(resource_group_name, custom_headers:nil) list_async(resource_group_name, custom_headers:custom_headers).value! end |
#update_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, parameters, custom_headers: nil) ⇒ PrivateEndpointConnection
Approve or reject private end point connection for a private link service in a subscription.
connection. or reject the private end point connection. will be added to the HTTP request.
396 397 398 399 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 396 def update_private_endpoint_connection(resource_group_name, service_name, pe_connection_name, parameters, custom_headers:nil) response = update_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Approve or reject private end point connection for a private link service in a subscription.
connection. or reject the private end point connection. to the HTTP request.
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 435 def update_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? fail ArgumentError, 'pe_connection_name is nil' if pe_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateEndpointConnection.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'peConnectionName' => pe_connection_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Network::Mgmt::V2019_06_01::Models::PrivateEndpointConnection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#update_private_endpoint_connection_with_http_info(resource_group_name, service_name, pe_connection_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Approve or reject private end point connection for a private link service in a subscription.
connection. or reject the private end point connection. will be added to the HTTP request.
416 417 418 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/private_link_services.rb', line 416 def update_private_endpoint_connection_with_http_info(resource_group_name, service_name, pe_connection_name, parameters, custom_headers:nil) update_private_endpoint_connection_async(resource_group_name, service_name, pe_connection_name, parameters, custom_headers:custom_headers).value! end |