azure_mgmt_network 0.4.0 → 0.5.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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -11
  3. data/azure_mgmt_network.gemspec +1 -1
  4. data/lib/generated/azure_mgmt_network.rb +7 -2
  5. data/lib/generated/azure_mgmt_network/application_gateways.rb +15 -15
  6. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +1 -1
  7. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +1 -1
  8. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +47 -47
  9. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +8 -8
  10. data/lib/generated/azure_mgmt_network/load_balancers.rb +22 -22
  11. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +8 -8
  12. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +59 -29
  13. data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +85 -0
  14. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +2 -2
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +5 -6
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +30 -12
  17. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +9 -10
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +5 -5
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +12 -15
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +6 -7
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +4 -4
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +6 -8
  23. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +11 -11
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +10 -13
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +6 -7
  26. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +7 -7
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +52 -0
  28. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +9 -9
  30. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +3 -3
  31. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +0 -32
  32. data/lib/generated/azure_mgmt_network/models/{effective_network_security_rules.rb → effective_network_security_rule.rb} +4 -4
  33. data/lib/generated/azure_mgmt_network/models/effective_route.rb +6 -14
  34. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +0 -31
  35. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +10 -0
  36. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +21 -0
  37. data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +62 -0
  38. data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +96 -0
  39. data/lib/generated/azure_mgmt_network/models/subnet.rb +19 -0
  40. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +41 -0
  41. data/lib/generated/azure_mgmt_network/network_interfaces.rb +41 -445
  42. data/lib/generated/azure_mgmt_network/network_management_client.rb +1 -1
  43. data/lib/generated/azure_mgmt_network/network_security_groups.rb +1 -1
  44. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +15 -15
  45. data/lib/generated/azure_mgmt_network/route_tables.rb +1 -1
  46. data/lib/generated/azure_mgmt_network/routes.rb +8 -8
  47. data/lib/generated/azure_mgmt_network/security_rules.rb +8 -8
  48. data/lib/generated/azure_mgmt_network/subnets.rb +8 -8
  49. data/lib/generated/azure_mgmt_network/usages.rb +115 -4
  50. data/lib/generated/azure_mgmt_network/version.rb +1 -1
  51. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
  52. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +8 -8
  53. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +8 -8
  54. data/lib/generated/azure_mgmt_network/virtual_networks.rb +98 -1
  55. metadata +10 -5
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
- VERSION = '0.4.0'
7
+ VERSION = '0.5.0'
8
8
  end
@@ -22,7 +22,7 @@ module Azure::ARM::Network
22
22
  @client = client
23
23
  end
24
24
 
25
- # @return reference to the NetworkManagementClient
25
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
26
26
  attr_reader :client
27
27
 
28
28
  #
@@ -22,7 +22,7 @@ module Azure::ARM::Network
22
22
  @client = client
23
23
  end
24
24
 
25
- # @return reference to the NetworkManagementClient
25
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
26
26
  attr_reader :client
27
27
 
28
28
  #
@@ -436,7 +436,7 @@ module Azure::ARM::Network
436
436
  end
437
437
 
438
438
  #
439
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
439
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
440
440
  # gateways stored.
441
441
  #
442
442
  # @param resource_group_name [String] The name of the resource group.
@@ -458,7 +458,7 @@ module Azure::ARM::Network
458
458
  end
459
459
 
460
460
  #
461
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
461
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
462
462
  # gateways stored.
463
463
  #
464
464
  # @param resource_group_name [String] The name of the resource group.
@@ -473,7 +473,7 @@ module Azure::ARM::Network
473
473
  end
474
474
 
475
475
  #
476
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
476
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
477
477
  # gateways stored.
478
478
  #
479
479
  # @param resource_group_name [String] The name of the resource group.
@@ -487,7 +487,7 @@ module Azure::ARM::Network
487
487
  end
488
488
 
489
489
  #
490
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
490
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
491
491
  # gateways stored.
492
492
  #
493
493
  # @param resource_group_name [String] The name of the resource group.
@@ -848,7 +848,7 @@ module Azure::ARM::Network
848
848
  end
849
849
 
850
850
  #
851
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
851
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
852
852
  # gateways stored.
853
853
  #
854
854
  # @param next_page_link [String] The NextLink from the previous successful
@@ -864,7 +864,7 @@ module Azure::ARM::Network
864
864
  end
865
865
 
866
866
  #
867
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
867
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
868
868
  # gateways stored.
869
869
  #
870
870
  # @param next_page_link [String] The NextLink from the previous successful
@@ -879,7 +879,7 @@ module Azure::ARM::Network
879
879
  end
880
880
 
881
881
  #
882
- # The List VirtualNetworkGateways opertion retrieves all the virtual network
882
+ # The List VirtualNetworkGateways operation retrieves all the virtual network
883
883
  # gateways stored.
884
884
  #
885
885
  # @param next_page_link [String] The NextLink from the previous successful
@@ -22,7 +22,7 @@ module Azure::ARM::Network
22
22
  @client = client
23
23
  end
24
24
 
25
- # @return reference to the NetworkManagementClient
25
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
26
26
  attr_reader :client
27
27
 
28
28
  #
@@ -438,7 +438,7 @@ module Azure::ARM::Network
438
438
  end
439
439
 
440
440
  #
441
- # The List virtual network peerings opertion retrieves all the peerings in a
441
+ # The List virtual network peerings operation retrieves all the peerings in a
442
442
  # virtual network.
443
443
  #
444
444
  # @param resource_group_name [String] The name of the resource group.
@@ -461,7 +461,7 @@ module Azure::ARM::Network
461
461
  end
462
462
 
463
463
  #
464
- # The List virtual network peerings opertion retrieves all the peerings in a
464
+ # The List virtual network peerings operation retrieves all the peerings in a
465
465
  # virtual network.
466
466
  #
467
467
  # @param resource_group_name [String] The name of the resource group.
@@ -477,7 +477,7 @@ module Azure::ARM::Network
477
477
  end
478
478
 
479
479
  #
480
- # The List virtual network peerings opertion retrieves all the peerings in a
480
+ # The List virtual network peerings operation retrieves all the peerings in a
481
481
  # virtual network.
482
482
  #
483
483
  # @param resource_group_name [String] The name of the resource group.
@@ -492,7 +492,7 @@ module Azure::ARM::Network
492
492
  end
493
493
 
494
494
  #
495
- # The List virtual network peerings opertion retrieves all the peerings in a
495
+ # The List virtual network peerings operation retrieves all the peerings in a
496
496
  # virtual network.
497
497
  #
498
498
  # @param resource_group_name [String] The name of the resource group.
@@ -558,7 +558,7 @@ module Azure::ARM::Network
558
558
  end
559
559
 
560
560
  #
561
- # The List virtual network peerings opertion retrieves all the peerings in a
561
+ # The List virtual network peerings operation retrieves all the peerings in a
562
562
  # virtual network.
563
563
  #
564
564
  # @param next_page_link [String] The NextLink from the previous successful
@@ -574,7 +574,7 @@ module Azure::ARM::Network
574
574
  end
575
575
 
576
576
  #
577
- # The List virtual network peerings opertion retrieves all the peerings in a
577
+ # The List virtual network peerings operation retrieves all the peerings in a
578
578
  # virtual network.
579
579
  #
580
580
  # @param next_page_link [String] The NextLink from the previous successful
@@ -589,7 +589,7 @@ module Azure::ARM::Network
589
589
  end
590
590
 
591
591
  #
592
- # The List virtual network peerings opertion retrieves all the peerings in a
592
+ # The List virtual network peerings operation retrieves all the peerings in a
593
593
  # virtual network.
594
594
  #
595
595
  # @param next_page_link [String] The NextLink from the previous successful
@@ -22,7 +22,7 @@ module Azure::ARM::Network
22
22
  @client = client
23
23
  end
24
24
 
25
- # @return reference to the NetworkManagementClient
25
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
26
26
  attr_reader :client
27
27
 
28
28
  #
@@ -633,6 +633,103 @@ module Azure::ARM::Network
633
633
  promise.execute
634
634
  end
635
635
 
636
+ #
637
+ # Checks whether a private Ip address is available for use.
638
+ #
639
+ # @param resource_group_name [String] The name of the resource group.
640
+ # @param virtual_network_name [String] The name of the virtual network.
641
+ # @param ip_address [String] The private IP address to be verified.
642
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
643
+ # will be added to the HTTP request.
644
+ #
645
+ # @return [IPAddressAvailabilityResult] operation results.
646
+ #
647
+ def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil)
648
+ response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value!
649
+ response.body unless response.nil?
650
+ end
651
+
652
+ #
653
+ # Checks whether a private Ip address is available for use.
654
+ #
655
+ # @param resource_group_name [String] The name of the resource group.
656
+ # @param virtual_network_name [String] The name of the virtual network.
657
+ # @param ip_address [String] The private IP address to be verified.
658
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
659
+ # will be added to the HTTP request.
660
+ #
661
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
662
+ #
663
+ def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil)
664
+ check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value!
665
+ end
666
+
667
+ #
668
+ # Checks whether a private Ip address is available for use.
669
+ #
670
+ # @param resource_group_name [String] The name of the resource group.
671
+ # @param virtual_network_name [String] The name of the virtual network.
672
+ # @param ip_address [String] The private IP address to be verified.
673
+ # @param [Hash{String => String}] A hash of custom headers that will be added
674
+ # to the HTTP request.
675
+ #
676
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
677
+ #
678
+ def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil)
679
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
680
+ fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
681
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
682
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
683
+
684
+
685
+ request_headers = {}
686
+
687
+ # Set Headers
688
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
689
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
690
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability'
691
+ options = {
692
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
693
+ path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkName' => virtual_network_name,'subscriptionId' => @client.subscription_id},
694
+ query_params: {'ipAddress' => ip_address,'api-version' => @client.api_version},
695
+ headers: request_headers.merge(custom_headers || {})
696
+ }
697
+
698
+ request_url = @base_url || @client.base_url
699
+
700
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
701
+ promise = request.run_promise do |req|
702
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
703
+ end
704
+
705
+ promise = promise.then do |http_response|
706
+ status_code = http_response.status
707
+ response_content = http_response.body
708
+ unless status_code == 200
709
+ error_model = JSON.load(response_content)
710
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
711
+ end
712
+
713
+ # Create Result
714
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
715
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
716
+ # Deserialize Response
717
+ if status_code == 200
718
+ begin
719
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
720
+ result_mapper = IPAddressAvailabilityResult.mapper()
721
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
722
+ rescue Exception => e
723
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
724
+ end
725
+ end
726
+
727
+ result
728
+ end
729
+
730
+ promise.execute
731
+ end
732
+
636
733
  #
637
734
  # The list VirtualNetwork returns all Virtual Networks in a subscription
638
735
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-22 00:00:00.000000000 Z
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.3.0
75
+ version: 0.4.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.3.0
82
+ version: 0.4.0
83
83
  description: Microsoft Azure Network Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -102,6 +102,7 @@ files:
102
102
  - lib/generated/azure_mgmt_network/local_network_gateways.rb
103
103
  - lib/generated/azure_mgmt_network/models/address_space.rb
104
104
  - lib/generated/azure_mgmt_network/models/application_gateway.rb
105
+ - lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb
105
106
  - lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb
106
107
  - lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb
107
108
  - lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb
@@ -120,6 +121,8 @@ files:
120
121
  - lib/generated/azure_mgmt_network/models/application_gateway_sku.rb
121
122
  - lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb
122
123
  - lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb
124
+ - lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb
125
+ - lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb
123
126
  - lib/generated/azure_mgmt_network/models/application_gateway_tier.rb
124
127
  - lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb
125
128
  - lib/generated/azure_mgmt_network/models/authorization_list_result.rb
@@ -135,7 +138,7 @@ files:
135
138
  - lib/generated/azure_mgmt_network/models/effective_network_security_group.rb
136
139
  - lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb
137
140
  - lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb
138
- - lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb
141
+ - lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb
139
142
  - lib/generated/azure_mgmt_network/models/effective_route.rb
140
143
  - lib/generated/azure_mgmt_network/models/effective_route_list_result.rb
141
144
  - lib/generated/azure_mgmt_network/models/effective_route_source.rb
@@ -168,6 +171,7 @@ files:
168
171
  - lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb
169
172
  - lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb
170
173
  - lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb
174
+ - lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb
171
175
  - lib/generated/azure_mgmt_network/models/ipallocation_method.rb
172
176
  - lib/generated/azure_mgmt_network/models/ipconfiguration.rb
173
177
  - lib/generated/azure_mgmt_network/models/ipversion.rb
@@ -191,6 +195,7 @@ files:
191
195
  - lib/generated/azure_mgmt_network/models/public_ipaddress.rb
192
196
  - lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb
193
197
  - lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb
198
+ - lib/generated/azure_mgmt_network/models/resource_navigation_link.rb
194
199
  - lib/generated/azure_mgmt_network/models/route.rb
195
200
  - lib/generated/azure_mgmt_network/models/route_list_result.rb
196
201
  - lib/generated/azure_mgmt_network/models/route_next_hop_type.rb