azure_mgmt_network 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_network.rb +91 -67
- data/lib/generated/azure_mgmt_network/application_gateways.rb +12 -12
- data/lib/generated/azure_mgmt_network/{available_private_access_services.rb → available_endpoint_services.rb} +21 -25
- data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +1 -1
- data/lib/generated/azure_mgmt_network/default_security_rules.rb +330 -0
- data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +4 -4
- data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +4 -4
- data/lib/generated/azure_mgmt_network/express_route_circuits.rb +10 -10
- data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +1 -1
- data/lib/generated/azure_mgmt_network/inbound_nat_rules.rb +616 -0
- data/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +323 -0
- data/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +323 -0
- data/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +320 -0
- data/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +225 -0
- data/lib/generated/azure_mgmt_network/load_balancer_probes.rb +320 -0
- data/lib/generated/azure_mgmt_network/load_balancers.rb +5 -5
- data/lib/generated/azure_mgmt_network/local_network_gateways.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
- data/lib/generated/azure_mgmt_network/models/{private_access_service_result.rb → endpoint_service_result.rb} +7 -7
- data/lib/generated/azure_mgmt_network/models/{private_access_services_list_result.rb → endpoint_services_list_result.rb} +11 -11
- data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/load_balancer.rb +11 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +98 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb +46 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +13 -1
- data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +7 -4
- data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +98 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +15 -2
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +46 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/security_rule.rb +35 -1
- data/lib/generated/azure_mgmt_network/models/{private_access_service_properties_format.rb → service_endpoint_properties_format.rb} +6 -6
- data/lib/generated/azure_mgmt_network/models/subnet.rb +7 -7
- data/lib/generated/azure_mgmt_network/models/usage.rb +11 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +46 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +0 -22
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +6 -3
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +300 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +100 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +22 -0
- data/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +320 -0
- data/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb +225 -0
- data/lib/generated/azure_mgmt_network/network_interfaces.rb +7 -7
- data/lib/generated/azure_mgmt_network/network_management_client.rb +55 -12
- data/lib/generated/azure_mgmt_network/network_security_groups.rb +5 -5
- data/lib/generated/azure_mgmt_network/network_watchers.rb +14 -14
- data/lib/generated/azure_mgmt_network/packet_captures.rb +6 -6
- data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +5 -5
- data/lib/generated/azure_mgmt_network/route_filter_rules.rb +5 -5
- data/lib/generated/azure_mgmt_network/route_filters.rb +6 -6
- data/lib/generated/azure_mgmt_network/route_tables.rb +5 -5
- data/lib/generated/azure_mgmt_network/routes.rb +4 -4
- data/lib/generated/azure_mgmt_network/security_rules.rb +4 -4
- data/lib/generated/azure_mgmt_network/subnets.rb +4 -4
- data/lib/generated/azure_mgmt_network/usages.rb +8 -8
- data/lib/generated/azure_mgmt_network/version.rb +1 -1
- data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +7 -7
- data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +373 -11
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +4 -4
- data/lib/generated/azure_mgmt_network/virtual_networks.rb +7 -7
- metadata +32 -8
|
@@ -107,7 +107,7 @@ module Azure::ARM::Network
|
|
|
107
107
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
108
108
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
109
109
|
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
|
110
|
-
api_version = '2017-
|
|
110
|
+
api_version = '2017-08-01'
|
|
111
111
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
112
112
|
|
|
113
113
|
|
|
@@ -294,7 +294,7 @@ module Azure::ARM::Network
|
|
|
294
294
|
def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers = nil)
|
|
295
295
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
296
296
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
297
|
-
api_version = '2017-
|
|
297
|
+
api_version = '2017-08-01'
|
|
298
298
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
299
299
|
|
|
300
300
|
|
|
@@ -388,7 +388,7 @@ module Azure::ARM::Network
|
|
|
388
388
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
389
389
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
390
390
|
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
|
391
|
-
api_version = '2017-
|
|
391
|
+
api_version = '2017-08-01'
|
|
392
392
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
393
393
|
|
|
394
394
|
|
|
@@ -480,7 +480,7 @@ module Azure::ARM::Network
|
|
|
480
480
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
481
481
|
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
|
482
482
|
fail ArgumentError, 'route_filter_rule_parameters is nil' if route_filter_rule_parameters.nil?
|
|
483
|
-
api_version = '2017-
|
|
483
|
+
api_version = '2017-08-01'
|
|
484
484
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
485
485
|
|
|
486
486
|
|
|
@@ -601,7 +601,7 @@ module Azure::ARM::Network
|
|
|
601
601
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
602
602
|
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
|
603
603
|
fail ArgumentError, 'route_filter_rule_parameters is nil' if route_filter_rule_parameters.nil?
|
|
604
|
-
api_version = '2017-
|
|
604
|
+
api_version = '2017-08-01'
|
|
605
605
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
606
606
|
|
|
607
607
|
|
|
@@ -107,7 +107,7 @@ module Azure::ARM::Network
|
|
|
107
107
|
def get_async(resource_group_name, route_filter_name, expand = nil, custom_headers = nil)
|
|
108
108
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
109
109
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
110
|
-
api_version = '2017-
|
|
110
|
+
api_version = '2017-08-01'
|
|
111
111
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
112
112
|
|
|
113
113
|
|
|
@@ -286,7 +286,7 @@ module Azure::ARM::Network
|
|
|
286
286
|
#
|
|
287
287
|
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
|
288
288
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
289
|
-
api_version = '2017-
|
|
289
|
+
api_version = '2017-08-01'
|
|
290
290
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
291
291
|
|
|
292
292
|
|
|
@@ -369,7 +369,7 @@ module Azure::ARM::Network
|
|
|
369
369
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
370
370
|
#
|
|
371
371
|
def list_async(custom_headers = nil)
|
|
372
|
-
api_version = '2017-
|
|
372
|
+
api_version = '2017-08-01'
|
|
373
373
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
374
374
|
|
|
375
375
|
|
|
@@ -459,7 +459,7 @@ module Azure::ARM::Network
|
|
|
459
459
|
def begin_delete_async(resource_group_name, route_filter_name, custom_headers = nil)
|
|
460
460
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
461
461
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
462
|
-
api_version = '2017-
|
|
462
|
+
api_version = '2017-08-01'
|
|
463
463
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
464
464
|
|
|
465
465
|
|
|
@@ -547,7 +547,7 @@ module Azure::ARM::Network
|
|
|
547
547
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
548
548
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
549
549
|
fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil?
|
|
550
|
-
api_version = '2017-
|
|
550
|
+
api_version = '2017-08-01'
|
|
551
551
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
552
552
|
|
|
553
553
|
|
|
@@ -664,7 +664,7 @@ module Azure::ARM::Network
|
|
|
664
664
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
665
665
|
fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil?
|
|
666
666
|
fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil?
|
|
667
|
-
api_version = '2017-
|
|
667
|
+
api_version = '2017-08-01'
|
|
668
668
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
669
669
|
|
|
670
670
|
|
|
@@ -104,7 +104,7 @@ module Azure::ARM::Network
|
|
|
104
104
|
def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil)
|
|
105
105
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
106
106
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
107
|
-
api_version = '2017-
|
|
107
|
+
api_version = '2017-08-01'
|
|
108
108
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
109
109
|
|
|
110
110
|
|
|
@@ -237,7 +237,7 @@ module Azure::ARM::Network
|
|
|
237
237
|
#
|
|
238
238
|
def list_async(resource_group_name, custom_headers = nil)
|
|
239
239
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
240
|
-
api_version = '2017-
|
|
240
|
+
api_version = '2017-08-01'
|
|
241
241
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
242
242
|
|
|
243
243
|
|
|
@@ -320,7 +320,7 @@ module Azure::ARM::Network
|
|
|
320
320
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
321
321
|
#
|
|
322
322
|
def list_all_async(custom_headers = nil)
|
|
323
|
-
api_version = '2017-
|
|
323
|
+
api_version = '2017-08-01'
|
|
324
324
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
325
325
|
|
|
326
326
|
|
|
@@ -410,7 +410,7 @@ module Azure::ARM::Network
|
|
|
410
410
|
def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil)
|
|
411
411
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
412
412
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
413
|
-
api_version = '2017-
|
|
413
|
+
api_version = '2017-08-01'
|
|
414
414
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
415
415
|
|
|
416
416
|
|
|
@@ -498,7 +498,7 @@ module Azure::ARM::Network
|
|
|
498
498
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
499
499
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
500
500
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
501
|
-
api_version = '2017-
|
|
501
|
+
api_version = '2017-08-01'
|
|
502
502
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
503
503
|
|
|
504
504
|
|
|
@@ -107,7 +107,7 @@ module Azure::ARM::Network
|
|
|
107
107
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
108
108
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
109
109
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
|
110
|
-
api_version = '2017-
|
|
110
|
+
api_version = '2017-08-01'
|
|
111
111
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
112
112
|
|
|
113
113
|
|
|
@@ -246,7 +246,7 @@ module Azure::ARM::Network
|
|
|
246
246
|
def list_async(resource_group_name, route_table_name, custom_headers = nil)
|
|
247
247
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
248
248
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
249
|
-
api_version = '2017-
|
|
249
|
+
api_version = '2017-08-01'
|
|
250
250
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
251
251
|
|
|
252
252
|
|
|
@@ -340,7 +340,7 @@ module Azure::ARM::Network
|
|
|
340
340
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
341
341
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
342
342
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
|
343
|
-
api_version = '2017-
|
|
343
|
+
api_version = '2017-08-01'
|
|
344
344
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
345
345
|
|
|
346
346
|
|
|
@@ -432,7 +432,7 @@ module Azure::ARM::Network
|
|
|
432
432
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
|
433
433
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
|
434
434
|
fail ArgumentError, 'route_parameters is nil' if route_parameters.nil?
|
|
435
|
-
api_version = '2017-
|
|
435
|
+
api_version = '2017-08-01'
|
|
436
436
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
437
437
|
|
|
438
438
|
|
|
@@ -112,7 +112,7 @@ module Azure::ARM::Network
|
|
|
112
112
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
113
113
|
fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
|
|
114
114
|
fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
|
|
115
|
-
api_version = '2017-
|
|
115
|
+
api_version = '2017-08-01'
|
|
116
116
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
117
117
|
|
|
118
118
|
|
|
@@ -256,7 +256,7 @@ module Azure::ARM::Network
|
|
|
256
256
|
def list_async(resource_group_name, network_security_group_name, custom_headers = nil)
|
|
257
257
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
258
258
|
fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
|
|
259
|
-
api_version = '2017-
|
|
259
|
+
api_version = '2017-08-01'
|
|
260
260
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
261
261
|
|
|
262
262
|
|
|
@@ -353,7 +353,7 @@ module Azure::ARM::Network
|
|
|
353
353
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
354
354
|
fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
|
|
355
355
|
fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
|
|
356
|
-
api_version = '2017-
|
|
356
|
+
api_version = '2017-08-01'
|
|
357
357
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
358
358
|
|
|
359
359
|
|
|
@@ -448,7 +448,7 @@ module Azure::ARM::Network
|
|
|
448
448
|
fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
|
|
449
449
|
fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
|
|
450
450
|
fail ArgumentError, 'security_rule_parameters is nil' if security_rule_parameters.nil?
|
|
451
|
-
api_version = '2017-
|
|
451
|
+
api_version = '2017-08-01'
|
|
452
452
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
453
453
|
|
|
454
454
|
|
|
@@ -110,7 +110,7 @@ module Azure::ARM::Network
|
|
|
110
110
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
111
111
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
|
112
112
|
fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
|
|
113
|
-
api_version = '2017-
|
|
113
|
+
api_version = '2017-08-01'
|
|
114
114
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
115
115
|
|
|
116
116
|
|
|
@@ -249,7 +249,7 @@ module Azure::ARM::Network
|
|
|
249
249
|
def list_async(resource_group_name, virtual_network_name, custom_headers = nil)
|
|
250
250
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
251
251
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
|
252
|
-
api_version = '2017-
|
|
252
|
+
api_version = '2017-08-01'
|
|
253
253
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
254
254
|
|
|
255
255
|
|
|
@@ -343,7 +343,7 @@ module Azure::ARM::Network
|
|
|
343
343
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
344
344
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
|
345
345
|
fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
|
|
346
|
-
api_version = '2017-
|
|
346
|
+
api_version = '2017-08-01'
|
|
347
347
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
348
348
|
|
|
349
349
|
|
|
@@ -435,7 +435,7 @@ module Azure::ARM::Network
|
|
|
435
435
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
|
436
436
|
fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
|
|
437
437
|
fail ArgumentError, 'subnet_parameters is nil' if subnet_parameters.nil?
|
|
438
|
-
api_version = '2017-
|
|
438
|
+
api_version = '2017-08-01'
|
|
439
439
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
440
440
|
|
|
441
441
|
|
|
@@ -22,7 +22,7 @@ module Azure::ARM::Network
|
|
|
22
22
|
attr_reader :client
|
|
23
23
|
|
|
24
24
|
#
|
|
25
|
-
#
|
|
25
|
+
# List network usages for a subscription.
|
|
26
26
|
#
|
|
27
27
|
# @param location [String] The location where resource usage is queried.
|
|
28
28
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -36,7 +36,7 @@ module Azure::ARM::Network
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
#
|
|
39
|
-
#
|
|
39
|
+
# List network usages for a subscription.
|
|
40
40
|
#
|
|
41
41
|
# @param location [String] The location where resource usage is queried.
|
|
42
42
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -49,7 +49,7 @@ module Azure::ARM::Network
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
#
|
|
52
|
-
#
|
|
52
|
+
# List network usages for a subscription.
|
|
53
53
|
#
|
|
54
54
|
# @param location [String] The location where resource usage is queried.
|
|
55
55
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
@@ -59,7 +59,7 @@ module Azure::ARM::Network
|
|
|
59
59
|
#
|
|
60
60
|
def list_async(location, custom_headers = nil)
|
|
61
61
|
fail ArgumentError, 'location is nil' if location.nil?
|
|
62
|
-
api_version = '2017-
|
|
62
|
+
api_version = '2017-08-01'
|
|
63
63
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
64
64
|
|
|
65
65
|
|
|
@@ -109,7 +109,7 @@ module Azure::ARM::Network
|
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
#
|
|
112
|
-
#
|
|
112
|
+
# List network usages for a subscription.
|
|
113
113
|
#
|
|
114
114
|
# @param next_page_link [String] The NextLink from the previous successful call
|
|
115
115
|
# to List operation.
|
|
@@ -124,7 +124,7 @@ module Azure::ARM::Network
|
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
#
|
|
127
|
-
#
|
|
127
|
+
# List network usages for a subscription.
|
|
128
128
|
#
|
|
129
129
|
# @param next_page_link [String] The NextLink from the previous successful call
|
|
130
130
|
# to List operation.
|
|
@@ -138,7 +138,7 @@ module Azure::ARM::Network
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
#
|
|
141
|
-
#
|
|
141
|
+
# List network usages for a subscription.
|
|
142
142
|
#
|
|
143
143
|
# @param next_page_link [String] The NextLink from the previous successful call
|
|
144
144
|
# to List operation.
|
|
@@ -196,7 +196,7 @@ module Azure::ARM::Network
|
|
|
196
196
|
end
|
|
197
197
|
|
|
198
198
|
#
|
|
199
|
-
#
|
|
199
|
+
# List network usages for a subscription.
|
|
200
200
|
#
|
|
201
201
|
# @param location [String] The location where resource usage is queried.
|
|
202
202
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -115,7 +115,7 @@ module Azure::ARM::Network
|
|
|
115
115
|
def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
|
116
116
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
117
117
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
|
118
|
-
api_version = '2017-
|
|
118
|
+
api_version = '2017-08-01'
|
|
119
119
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
120
120
|
|
|
121
121
|
|
|
@@ -307,7 +307,7 @@ module Azure::ARM::Network
|
|
|
307
307
|
def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
|
308
308
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
309
309
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
|
310
|
-
api_version = '2017-
|
|
310
|
+
api_version = '2017-08-01'
|
|
311
311
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
312
312
|
|
|
313
313
|
|
|
@@ -397,7 +397,7 @@ module Azure::ARM::Network
|
|
|
397
397
|
#
|
|
398
398
|
def list_async(resource_group_name, custom_headers = nil)
|
|
399
399
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
400
|
-
api_version = '2017-
|
|
400
|
+
api_version = '2017-08-01'
|
|
401
401
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
402
402
|
|
|
403
403
|
|
|
@@ -554,7 +554,7 @@ module Azure::ARM::Network
|
|
|
554
554
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
555
555
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
|
556
556
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
557
|
-
api_version = '2017-
|
|
557
|
+
api_version = '2017-08-01'
|
|
558
558
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
559
559
|
|
|
560
560
|
|
|
@@ -666,7 +666,7 @@ module Azure::ARM::Network
|
|
|
666
666
|
def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
|
667
667
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
668
668
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
|
669
|
-
api_version = '2017-
|
|
669
|
+
api_version = '2017-08-01'
|
|
670
670
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
671
671
|
|
|
672
672
|
|
|
@@ -766,7 +766,7 @@ module Azure::ARM::Network
|
|
|
766
766
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
767
767
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
|
768
768
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
769
|
-
api_version = '2017-
|
|
769
|
+
api_version = '2017-08-01'
|
|
770
770
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
771
771
|
|
|
772
772
|
|
|
@@ -898,7 +898,7 @@ module Azure::ARM::Network
|
|
|
898
898
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
899
899
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
|
900
900
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
901
|
-
api_version = '2017-
|
|
901
|
+
api_version = '2017-08-01'
|
|
902
902
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
903
903
|
|
|
904
904
|
|
|
@@ -114,7 +114,7 @@ module Azure::ARM::Network
|
|
|
114
114
|
def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
115
115
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
116
116
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
117
|
-
api_version = '2017-
|
|
117
|
+
api_version = '2017-08-01'
|
|
118
118
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
119
119
|
|
|
120
120
|
|
|
@@ -241,7 +241,7 @@ module Azure::ARM::Network
|
|
|
241
241
|
#
|
|
242
242
|
def list_async(resource_group_name, custom_headers = nil)
|
|
243
243
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
244
|
-
api_version = '2017-
|
|
244
|
+
api_version = '2017-08-01'
|
|
245
245
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
246
246
|
|
|
247
247
|
|
|
@@ -290,6 +290,100 @@ module Azure::ARM::Network
|
|
|
290
290
|
promise.execute
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
+
#
|
|
294
|
+
# Gets all the connections in a virtual network gateway.
|
|
295
|
+
#
|
|
296
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
297
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
298
|
+
# gateway.
|
|
299
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
300
|
+
# will be added to the HTTP request.
|
|
301
|
+
#
|
|
302
|
+
# @return [Array<VirtualNetworkGatewayConnectionListEntity>] operation results.
|
|
303
|
+
#
|
|
304
|
+
def list_connections(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
305
|
+
first_page = list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers)
|
|
306
|
+
first_page.get_all_items
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
#
|
|
310
|
+
# Gets all the connections in a virtual network gateway.
|
|
311
|
+
#
|
|
312
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
313
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
314
|
+
# gateway.
|
|
315
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
316
|
+
# will be added to the HTTP request.
|
|
317
|
+
#
|
|
318
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
319
|
+
#
|
|
320
|
+
def list_connections_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
321
|
+
list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
#
|
|
325
|
+
# Gets all the connections in a virtual network gateway.
|
|
326
|
+
#
|
|
327
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
328
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
329
|
+
# gateway.
|
|
330
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
331
|
+
# to the HTTP request.
|
|
332
|
+
#
|
|
333
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
334
|
+
#
|
|
335
|
+
def list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
336
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
337
|
+
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
338
|
+
api_version = '2017-08-01'
|
|
339
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
request_headers = {}
|
|
343
|
+
|
|
344
|
+
# Set Headers
|
|
345
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
346
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
347
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections'
|
|
348
|
+
|
|
349
|
+
request_url = @base_url || @client.base_url
|
|
350
|
+
|
|
351
|
+
options = {
|
|
352
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
353
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
|
|
354
|
+
query_params: {'api-version' => api_version},
|
|
355
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
356
|
+
base_url: request_url
|
|
357
|
+
}
|
|
358
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
359
|
+
|
|
360
|
+
promise = promise.then do |result|
|
|
361
|
+
http_response = result.response
|
|
362
|
+
status_code = http_response.status
|
|
363
|
+
response_content = http_response.body
|
|
364
|
+
unless status_code == 200
|
|
365
|
+
error_model = JSON.load(response_content)
|
|
366
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
370
|
+
# Deserialize Response
|
|
371
|
+
if status_code == 200
|
|
372
|
+
begin
|
|
373
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
374
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListConnectionsResult.mapper()
|
|
375
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
376
|
+
rescue Exception => e
|
|
377
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
result
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
promise.execute
|
|
385
|
+
end
|
|
386
|
+
|
|
293
387
|
#
|
|
294
388
|
# Resets the primary of the virtual network gateway in the specified resource
|
|
295
389
|
# group.
|
|
@@ -449,6 +543,58 @@ module Azure::ARM::Network
|
|
|
449
543
|
promise
|
|
450
544
|
end
|
|
451
545
|
|
|
546
|
+
#
|
|
547
|
+
# Gets pre-generated VPN profile for P2S client of the virtual network gateway
|
|
548
|
+
# in the specified resource group. The profile needs to be generated first
|
|
549
|
+
# using generateVpnProfile.
|
|
550
|
+
#
|
|
551
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
552
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
553
|
+
# gateway.
|
|
554
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
555
|
+
# will be added to the HTTP request.
|
|
556
|
+
#
|
|
557
|
+
# @return [String] operation results.
|
|
558
|
+
#
|
|
559
|
+
def get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
560
|
+
response = get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
|
561
|
+
response.body unless response.nil?
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
#
|
|
565
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
566
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
567
|
+
# gateway.
|
|
568
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
569
|
+
# will be added to the HTTP request.
|
|
570
|
+
#
|
|
571
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
572
|
+
# response.
|
|
573
|
+
#
|
|
574
|
+
def get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
575
|
+
# Send request
|
|
576
|
+
promise = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers)
|
|
577
|
+
|
|
578
|
+
promise = promise.then do |response|
|
|
579
|
+
# Defining deserialization method.
|
|
580
|
+
deserialize_method = lambda do |parsed_response|
|
|
581
|
+
result_mapper = {
|
|
582
|
+
required: false,
|
|
583
|
+
serialized_name: 'parsed_response',
|
|
584
|
+
type: {
|
|
585
|
+
name: 'String'
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# Waiting for response.
|
|
592
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
promise
|
|
596
|
+
end
|
|
597
|
+
|
|
452
598
|
#
|
|
453
599
|
# The GetBgpPeerStatus operation retrieves the status of all BGP peers.
|
|
454
600
|
#
|
|
@@ -639,7 +785,7 @@ module Azure::ARM::Network
|
|
|
639
785
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
640
786
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
641
787
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
642
|
-
api_version = '2017-
|
|
788
|
+
api_version = '2017-08-01'
|
|
643
789
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
644
790
|
|
|
645
791
|
|
|
@@ -751,7 +897,7 @@ module Azure::ARM::Network
|
|
|
751
897
|
def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
752
898
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
753
899
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
754
|
-
api_version = '2017-
|
|
900
|
+
api_version = '2017-08-01'
|
|
755
901
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
756
902
|
|
|
757
903
|
|
|
@@ -844,7 +990,7 @@ module Azure::ARM::Network
|
|
|
844
990
|
def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil)
|
|
845
991
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
846
992
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
847
|
-
api_version = '2017-
|
|
993
|
+
api_version = '2017-08-01'
|
|
848
994
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
849
995
|
|
|
850
996
|
|
|
@@ -948,7 +1094,7 @@ module Azure::ARM::Network
|
|
|
948
1094
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
949
1095
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
950
1096
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
951
|
-
api_version = '2017-
|
|
1097
|
+
api_version = '2017-08-01'
|
|
952
1098
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
953
1099
|
|
|
954
1100
|
|
|
@@ -1067,7 +1213,7 @@ module Azure::ARM::Network
|
|
|
1067
1213
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1068
1214
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
1069
1215
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
1070
|
-
api_version = '2017-
|
|
1216
|
+
api_version = '2017-08-01'
|
|
1071
1217
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1072
1218
|
|
|
1073
1219
|
|
|
@@ -1102,7 +1248,113 @@ module Azure::ARM::Network
|
|
|
1102
1248
|
http_response = result.response
|
|
1103
1249
|
status_code = http_response.status
|
|
1104
1250
|
response_content = http_response.body
|
|
1105
|
-
unless status_code == 200
|
|
1251
|
+
unless status_code == 200 || status_code == 202
|
|
1252
|
+
error_model = JSON.load(response_content)
|
|
1253
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1256
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1257
|
+
# Deserialize Response
|
|
1258
|
+
if status_code == 200
|
|
1259
|
+
begin
|
|
1260
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1261
|
+
result_mapper = {
|
|
1262
|
+
required: false,
|
|
1263
|
+
serialized_name: 'parsed_response',
|
|
1264
|
+
type: {
|
|
1265
|
+
name: 'String'
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1269
|
+
rescue Exception => e
|
|
1270
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1271
|
+
end
|
|
1272
|
+
end
|
|
1273
|
+
|
|
1274
|
+
result
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
promise.execute
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
#
|
|
1281
|
+
# Gets pre-generated VPN profile for P2S client of the virtual network gateway
|
|
1282
|
+
# in the specified resource group. The profile needs to be generated first
|
|
1283
|
+
# using generateVpnProfile.
|
|
1284
|
+
#
|
|
1285
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1286
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
1287
|
+
# gateway.
|
|
1288
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1289
|
+
# will be added to the HTTP request.
|
|
1290
|
+
#
|
|
1291
|
+
# @return [String] operation results.
|
|
1292
|
+
#
|
|
1293
|
+
def begin_get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
1294
|
+
response = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
|
1295
|
+
response.body unless response.nil?
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1298
|
+
#
|
|
1299
|
+
# Gets pre-generated VPN profile for P2S client of the virtual network gateway
|
|
1300
|
+
# in the specified resource group. The profile needs to be generated first
|
|
1301
|
+
# using generateVpnProfile.
|
|
1302
|
+
#
|
|
1303
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1304
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
1305
|
+
# gateway.
|
|
1306
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1307
|
+
# will be added to the HTTP request.
|
|
1308
|
+
#
|
|
1309
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1310
|
+
#
|
|
1311
|
+
def begin_get_vpn_profile_package_url_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
1312
|
+
begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1315
|
+
#
|
|
1316
|
+
# Gets pre-generated VPN profile for P2S client of the virtual network gateway
|
|
1317
|
+
# in the specified resource group. The profile needs to be generated first
|
|
1318
|
+
# using generateVpnProfile.
|
|
1319
|
+
#
|
|
1320
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1321
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
1322
|
+
# gateway.
|
|
1323
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1324
|
+
# to the HTTP request.
|
|
1325
|
+
#
|
|
1326
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1327
|
+
#
|
|
1328
|
+
def begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
1329
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1330
|
+
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
1331
|
+
api_version = '2017-08-01'
|
|
1332
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
request_headers = {}
|
|
1336
|
+
|
|
1337
|
+
# Set Headers
|
|
1338
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1339
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1340
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl'
|
|
1341
|
+
|
|
1342
|
+
request_url = @base_url || @client.base_url
|
|
1343
|
+
|
|
1344
|
+
options = {
|
|
1345
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1346
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayName' => virtual_network_gateway_name,'subscriptionId' => @client.subscription_id},
|
|
1347
|
+
query_params: {'api-version' => api_version},
|
|
1348
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1349
|
+
base_url: request_url
|
|
1350
|
+
}
|
|
1351
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
1352
|
+
|
|
1353
|
+
promise = promise.then do |result|
|
|
1354
|
+
http_response = result.response
|
|
1355
|
+
status_code = http_response.status
|
|
1356
|
+
response_content = http_response.body
|
|
1357
|
+
unless status_code == 200 || status_code == 202
|
|
1106
1358
|
error_model = JSON.load(response_content)
|
|
1107
1359
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1108
1360
|
end
|
|
@@ -1179,7 +1431,7 @@ module Azure::ARM::Network
|
|
|
1179
1431
|
def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil)
|
|
1180
1432
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1181
1433
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
1182
|
-
api_version = '2017-
|
|
1434
|
+
api_version = '2017-08-01'
|
|
1183
1435
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1184
1436
|
|
|
1185
1437
|
|
|
@@ -1276,7 +1528,7 @@ module Azure::ARM::Network
|
|
|
1276
1528
|
def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
1277
1529
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1278
1530
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
1279
|
-
api_version = '2017-
|
|
1531
|
+
api_version = '2017-08-01'
|
|
1280
1532
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1281
1533
|
|
|
1282
1534
|
|
|
@@ -1377,7 +1629,7 @@ module Azure::ARM::Network
|
|
|
1377
1629
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1378
1630
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
|
1379
1631
|
fail ArgumentError, 'peer is nil' if peer.nil?
|
|
1380
|
-
api_version = '2017-
|
|
1632
|
+
api_version = '2017-08-01'
|
|
1381
1633
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1382
1634
|
|
|
1383
1635
|
|
|
@@ -1513,6 +1765,93 @@ module Azure::ARM::Network
|
|
|
1513
1765
|
promise.execute
|
|
1514
1766
|
end
|
|
1515
1767
|
|
|
1768
|
+
#
|
|
1769
|
+
# Gets all the connections in a virtual network gateway.
|
|
1770
|
+
#
|
|
1771
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1772
|
+
# to List operation.
|
|
1773
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1774
|
+
# will be added to the HTTP request.
|
|
1775
|
+
#
|
|
1776
|
+
# @return [VirtualNetworkGatewayListConnectionsResult] operation results.
|
|
1777
|
+
#
|
|
1778
|
+
def list_connections_next(next_page_link, custom_headers = nil)
|
|
1779
|
+
response = list_connections_next_async(next_page_link, custom_headers).value!
|
|
1780
|
+
response.body unless response.nil?
|
|
1781
|
+
end
|
|
1782
|
+
|
|
1783
|
+
#
|
|
1784
|
+
# Gets all the connections in a virtual network gateway.
|
|
1785
|
+
#
|
|
1786
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1787
|
+
# to List operation.
|
|
1788
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1789
|
+
# will be added to the HTTP request.
|
|
1790
|
+
#
|
|
1791
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1792
|
+
#
|
|
1793
|
+
def list_connections_next_with_http_info(next_page_link, custom_headers = nil)
|
|
1794
|
+
list_connections_next_async(next_page_link, custom_headers).value!
|
|
1795
|
+
end
|
|
1796
|
+
|
|
1797
|
+
#
|
|
1798
|
+
# Gets all the connections in a virtual network gateway.
|
|
1799
|
+
#
|
|
1800
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1801
|
+
# to List operation.
|
|
1802
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1803
|
+
# to the HTTP request.
|
|
1804
|
+
#
|
|
1805
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1806
|
+
#
|
|
1807
|
+
def list_connections_next_async(next_page_link, custom_headers = nil)
|
|
1808
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
request_headers = {}
|
|
1812
|
+
|
|
1813
|
+
# Set Headers
|
|
1814
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1815
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1816
|
+
path_template = '{nextLink}'
|
|
1817
|
+
|
|
1818
|
+
request_url = @base_url || @client.base_url
|
|
1819
|
+
|
|
1820
|
+
options = {
|
|
1821
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1822
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1823
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1824
|
+
base_url: request_url
|
|
1825
|
+
}
|
|
1826
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1827
|
+
|
|
1828
|
+
promise = promise.then do |result|
|
|
1829
|
+
http_response = result.response
|
|
1830
|
+
status_code = http_response.status
|
|
1831
|
+
response_content = http_response.body
|
|
1832
|
+
unless status_code == 200
|
|
1833
|
+
error_model = JSON.load(response_content)
|
|
1834
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1835
|
+
end
|
|
1836
|
+
|
|
1837
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1838
|
+
# Deserialize Response
|
|
1839
|
+
if status_code == 200
|
|
1840
|
+
begin
|
|
1841
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1842
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListConnectionsResult.mapper()
|
|
1843
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1844
|
+
rescue Exception => e
|
|
1845
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1846
|
+
end
|
|
1847
|
+
end
|
|
1848
|
+
|
|
1849
|
+
result
|
|
1850
|
+
end
|
|
1851
|
+
|
|
1852
|
+
promise.execute
|
|
1853
|
+
end
|
|
1854
|
+
|
|
1516
1855
|
#
|
|
1517
1856
|
# Gets all virtual network gateways by resource group.
|
|
1518
1857
|
#
|
|
@@ -1534,5 +1873,28 @@ module Azure::ARM::Network
|
|
|
1534
1873
|
end
|
|
1535
1874
|
end
|
|
1536
1875
|
|
|
1876
|
+
#
|
|
1877
|
+
# Gets all the connections in a virtual network gateway.
|
|
1878
|
+
#
|
|
1879
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1880
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
|
1881
|
+
# gateway.
|
|
1882
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1883
|
+
# will be added to the HTTP request.
|
|
1884
|
+
#
|
|
1885
|
+
# @return [VirtualNetworkGatewayListConnectionsResult] which provide lazy
|
|
1886
|
+
# access to pages of the response.
|
|
1887
|
+
#
|
|
1888
|
+
def list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
|
1889
|
+
response = list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
|
1890
|
+
unless response.nil?
|
|
1891
|
+
page = response.body
|
|
1892
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1893
|
+
list_connections_next_async(next_page_link, custom_headers)
|
|
1894
|
+
end
|
|
1895
|
+
page
|
|
1896
|
+
end
|
|
1897
|
+
end
|
|
1898
|
+
|
|
1537
1899
|
end
|
|
1538
1900
|
end
|