Class: Azure::ARM::Network::NetworkInterfaces
- Inherits:
-
Object
- Object
- Azure::ARM::Network::NetworkInterfaces
- Includes:
- Models, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_network/network_interfaces.rb
Overview
The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resrources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.
Instance Attribute Summary collapse
-
#client ⇒ NetworkManagementClient
readonly
Reference to the NetworkManagementClient.
Instance Method Summary collapse
-
#begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ NetworkInterface
The Put NetworkInterface operation creates/updates a networkInterface.
-
#begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ Concurrent::Promise
The Put NetworkInterface operation creates/updates a networkInterface.
-
#begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The Put NetworkInterface operation creates/updates a networkInterface.
-
#begin_delete(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Object
The delete netwokInterface operation deletes the specified netwokInterface.
-
#begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
The delete netwokInterface operation deletes the specified netwokInterface.
-
#begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The delete netwokInterface operation deletes the specified netwokInterface.
-
#begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveRouteListResult
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
-
#begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
-
#begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
-
#begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveNetworkSecurityGroupListResult
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
-
#begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
-
#begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
-
#create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ NetworkInterface
The Put NetworkInterface operation creates/updates a networkInterface.
-
#create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ Concurrent::Promise
create/update NetworkInterface operation will be added to the HTTP request.
-
#delete(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Object
The delete netwokInterface operation deletes the specified netwokInterface.
-
#delete_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) ⇒ NetworkInterface
The Get ntework interface operation retreives information about the specified network interface.
-
#get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) ⇒ Concurrent::Promise
The Get ntework interface operation retreives information about the specified network interface.
-
#get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveRouteListResult
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
-
#get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) ⇒ NetworkInterface
The Get ntework interface operation retreives information about the specified network interface in a virtual machine scale set.
-
#get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) ⇒ Concurrent::Promise
The Get ntework interface operation retreives information about the specified network interface in a virtual machine scale set.
-
#get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The Get ntework interface operation retreives information about the specified network interface in a virtual machine scale set.
-
#get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The Get ntework interface operation retreives information about the specified network interface.
-
#initialize(client) ⇒ NetworkInterfaces
constructor
Creates and initializes a new instance of the NetworkInterfaces class.
-
#list(resource_group_name, custom_headers = nil) ⇒ Array<NetworkInterface>
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
-
#list_all(custom_headers = nil) ⇒ Array<NetworkInterface>
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_all_as_lazy(custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_all_async(custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_all_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_all_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_all_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_all_with_http_info(custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
-
#list_as_lazy(resource_group_name, custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
-
#list_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
-
#list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveNetworkSecurityGroupListResult
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
-
#list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#list_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
-
#list_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
-
#list_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
-
#list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ Array<NetworkInterface>
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ Array<NetworkInterface>
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
-
#list_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
Constructor Details
#initialize(client) ⇒ NetworkInterfaces
Creates and initializes a new instance of the NetworkInterfaces class.
21 22 23 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 21 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ NetworkManagementClient (readonly)
Returns reference to the NetworkManagementClient.
26 27 28 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 26 def client @client end |
Instance Method Details
#begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ NetworkInterface
The Put NetworkInterface operation creates/updates a networkInterface
create/update NetworkInterface operation will be added to the HTTP request.
307 308 309 310 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 307 def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ Concurrent::Promise
The Put NetworkInterface operation creates/updates a networkInterface
create/update NetworkInterface operation to the HTTP request.
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 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 340 def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = NetworkInterface.mapper() request_content = @client.serialize(request_mapper, parameters, 'parameters') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 201 || status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterface.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterface.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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, network_interface_name, parameters, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The Put NetworkInterface operation creates/updates a networkInterface
create/update NetworkInterface operation will be added to the HTTP request.
324 325 326 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 324 def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! end |
#begin_delete(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Object
The delete netwokInterface operation deletes the specified netwokInterface.
will be added to the HTTP request.
75 76 77 78 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 75 def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! nil end |
#begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
The delete netwokInterface operation deletes the specified netwokInterface.
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 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 104 def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_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 = {} # 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/networkInterfaces/{networkInterfaceName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 204 || status_code == 202 || status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The delete netwokInterface operation deletes the specified netwokInterface.
will be added to the HTTP request.
90 91 92 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 90 def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! end |
#begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveRouteListResult
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
will be added to the HTTP request.
1058 1059 1060 1061 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1058 def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! response.body unless response.nil? end |
#begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
to the HTTP request.
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 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1089 def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_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 = {} # 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/networkInterfaces/{networkInterfaceName}/effectiveRouteTable' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = EffectiveRouteListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
will be added to the HTTP request.
1074 1075 1076 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1074 def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! end |
#begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveNetworkSecurityGroupListResult
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
will be added to the HTTP request.
1198 1199 1200 1201 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1198 def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! response.body unless response.nil? end |
#begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
to the HTTP request.
1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1229 def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_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 = {} # 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/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = EffectiveNetworkSecurityGroupListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
will be added to the HTTP request.
1214 1215 1216 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1214 def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! end |
#create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ NetworkInterface
The Put NetworkInterface operation creates/updates a networkInterface
create/update NetworkInterface operation will be added to the HTTP request.
261 262 263 264 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 261 def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) ⇒ Concurrent::Promise
create/update NetworkInterface operation will be added to the HTTP request.
response.
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 277 def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) # Send request promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = NetworkInterface.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Object
The delete netwokInterface operation deletes the specified netwokInterface.
will be added to the HTTP request.
36 37 38 39 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 36 def delete(resource_group_name, network_interface_name, custom_headers = nil) response = delete_async(resource_group_name, network_interface_name, custom_headers).value! nil end |
#delete_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 50 def delete_async(resource_group_name, network_interface_name, custom_headers = nil) # Send request promise = begin_delete_async(resource_group_name, network_interface_name, 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, network_interface_name, expand = nil, custom_headers = nil) ⇒ NetworkInterface
The Get ntework interface operation retreives information about the specified network interface.
will be added to the HTTP request.
161 162 163 164 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 161 def get(resource_group_name, network_interface_name, = nil, custom_headers = nil) response = get_async(resource_group_name, network_interface_name, , custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) ⇒ Concurrent::Promise
The Get ntework interface operation retreives information about the specified network interface.
to the HTTP request.
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 194 def get_async(resource_group_name, network_interface_name, = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_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 = {} # 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/networkInterfaces/{networkInterfaceName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version,'$expand' => }, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterface.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveRouteListResult
The get effective routetable operation retrieves all the route tables applied on a networkInterface.
will be added to the HTTP request.
1015 1016 1017 1018 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1015 def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! response.body unless response.nil? end |
#get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1029 def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) # Send request promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = EffectiveRouteListResult.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) ⇒ NetworkInterface
The Get ntework interface operation retreives information about the specified network interface in a virtual machine scale set.
machine scale set. will be added to the HTTP request.
683 684 685 686 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 683 def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, = nil, custom_headers = nil) response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, , custom_headers).value! response.body unless response.nil? end |
#get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) ⇒ Concurrent::Promise
The Get ntework interface operation retreives information about the specified network interface in a virtual machine scale set.
machine scale set. to the HTTP request.
722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 722 def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_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 = {} # 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.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version,'$expand' => }, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterface.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The Get ntework interface operation retreives information about the specified network interface in a virtual machine scale set.
machine scale set. will be added to the HTTP request.
703 704 705 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 703 def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, = nil, custom_headers = nil) get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, , custom_headers).value! end |
#get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The Get ntework interface operation retreives information about the specified network interface.
will be added to the HTTP request.
178 179 180 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 178 def get_with_http_info(resource_group_name, network_interface_name, = nil, custom_headers = nil) get_async(resource_group_name, network_interface_name, , custom_headers).value! end |
#list(resource_group_name, custom_headers = nil) ⇒ Array<NetworkInterface>
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
will be added to the HTTP request.
921 922 923 924 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 921 def list(resource_group_name, custom_headers = nil) first_page = list_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end |
#list_all(custom_headers = nil) ⇒ Array<NetworkInterface>
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
will be added to the HTTP request.
809 810 811 812 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 809 def list_all(custom_headers = nil) first_page = list_all_as_lazy(custom_headers) first_page.get_all_items end |
#list_all_as_lazy(custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
will be added to the HTTP request.
the response.
789 790 791 792 793 794 795 796 797 798 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 789 def list_all_as_lazy(custom_headers = nil) response = list_all_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| list_all_next_async(next_link, custom_headers) end page end end |
#list_all_async(custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
to the HTTP request.
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 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 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 836 def list_all_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 = {} # 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/networkInterfaces' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_all_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
call to List operation. will be added to the HTTP request.
1481 1482 1483 1484 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1481 def list_all_next(next_page_link, custom_headers = nil) response = list_all_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#list_all_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
call to List operation. to the HTTP request.
1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1512 def list_all_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} # 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}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_all_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
call to List operation. will be added to the HTTP request.
1497 1498 1499 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1497 def list_all_next_with_http_info(next_page_link, custom_headers = nil) list_all_next_async(next_page_link, custom_headers).value! end |
#list_all_with_http_info(custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a subscription.
will be added to the HTTP request.
823 824 825 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 823 def list_all_with_http_info(custom_headers = nil) list_all_async(custom_headers).value! end |
#list_as_lazy(resource_group_name, custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
will be added to the HTTP request.
the response.
900 901 902 903 904 905 906 907 908 909 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 900 def list_as_lazy(resource_group_name, custom_headers = nil) response = list_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| list_next_async(next_link, custom_headers) end page end end |
#list_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
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 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 950 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 = {} # 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/networkInterfaces' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) ⇒ EffectiveNetworkSecurityGroupListResult
The list effective network security group operation retrieves all the network security groups applied on a networkInterface.
will be added to the HTTP request.
1155 1156 1157 1158 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1155 def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! response.body unless response.nil? end |
#list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1169 def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) # Send request promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = EffectiveNetworkSecurityGroupListResult.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response') end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#list_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
call to List operation. will be added to the HTTP request.
1574 1575 1576 1577 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1574 def list_next(next_page_link, custom_headers = nil) response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
call to List operation. to the HTTP request.
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1605 def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} # 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}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
call to List operation. will be added to the HTTP request.
1590 1591 1592 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1590 def list_next_with_http_info(next_page_link, custom_headers = nil) list_next_async(next_page_link, custom_headers).value! end |
#list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ Array<NetworkInterface>
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
machine scale set. will be added to the HTTP request.
580 581 582 583 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 580 def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) first_page.get_all_items end |
#list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
machine scale set. will be added to the HTTP request.
the response.
557 558 559 560 561 562 563 564 565 566 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 557 def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| list_virtual_machine_scale_set_network_interfaces_next_async(next_link, custom_headers) end page end end |
#list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
machine scale set. to the HTTP request.
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 613 def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_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 = {} # 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.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
call to List operation. will be added to the HTTP request.
1388 1389 1390 1391 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1388 def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
call to List operation. to the HTTP request.
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1419 def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} # 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}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
call to List operation. will be added to the HTTP request.
1404 1405 1406 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1404 def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! end |
#list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine scale set.
machine scale set. will be added to the HTTP request.
597 598 599 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 597 def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! end |
#list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ Array<NetworkInterface>
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
machine scale set. will be added to the HTTP request.
453 454 455 456 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 453 def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) first_page.get_all_items end |
#list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
machine scale set. will be added to the HTTP request.
the response.
429 430 431 432 433 434 435 436 437 438 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 429 def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_link, custom_headers) end page end end |
#list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
machine scale set. to the HTTP request.
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 488 def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.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 = {} # 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.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) ⇒ NetworkInterfaceListResult
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
call to List operation. will be added to the HTTP request.
1295 1296 1297 1298 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1295 def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
call to List operation. to the HTTP request.
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1326 def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} # 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}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_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(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = NetworkInterfaceListResult.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
call to List operation. will be added to the HTTP request.
1311 1312 1313 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 1311 def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! end |
#list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The list network interface operation retrieves information about all network interfaces in a virtual machine from a virtual machine scale set.
machine scale set. will be added to the HTTP request.
471 472 473 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 471 def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! end |
#list_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
The List networkInterfaces operation retrieves all the networkInterfaces in a resource group.
will be added to the HTTP request.
936 937 938 |
# File 'lib/generated/azure_mgmt_network/network_interfaces.rb', line 936 def list_with_http_info(resource_group_name, custom_headers = nil) list_async(resource_group_name, custom_headers).value! end |