azure_mgmt_network 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_network.gemspec +4 -9
  3. data/lib/azure_mgmt_network.rb +100 -39
  4. data/lib/azure_mgmt_network/application_gateways.rb +175 -401
  5. data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +429 -0
  6. data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +427 -0
  7. data/lib/azure_mgmt_network/express_route_circuits.rb +911 -0
  8. data/lib/azure_mgmt_network/express_route_service_providers.rb +149 -0
  9. data/lib/azure_mgmt_network/load_balancers.rb +139 -314
  10. data/lib/azure_mgmt_network/local_network_gateways.rb +102 -228
  11. data/lib/azure_mgmt_network/models/address_space.rb +1 -3
  12. data/lib/azure_mgmt_network/models/application_gateway.rb +7 -9
  13. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -3
  14. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -3
  15. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +16 -18
  16. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -3
  17. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +32 -8
  18. data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  19. data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration.rb → application_gateway_frontend_ipconfiguration.rb} +7 -9
  20. data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration_properties_format.rb → application_gateway_frontend_ipconfiguration_properties_format.rb} +12 -15
  21. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -3
  22. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -3
  23. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -3
  24. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +34 -17
  25. data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration.rb → application_gateway_ipconfiguration.rb} +7 -9
  26. data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration_properties_format.rb → application_gateway_ipconfiguration_properties_format.rb} +6 -8
  27. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +4 -6
  28. data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  29. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +88 -0
  30. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +101 -0
  31. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +88 -0
  32. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +118 -0
  33. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +151 -81
  34. data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  35. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -3
  36. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +26 -11
  37. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +2 -1
  38. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +6 -8
  39. data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  40. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -3
  41. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -3
  42. data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  43. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +88 -0
  44. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +122 -0
  45. data/lib/azure_mgmt_network/models/authorization_list_result.rb +87 -0
  46. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +79 -0
  47. data/lib/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  48. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +5 -7
  49. data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -3
  50. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +30 -15
  51. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +10 -16
  52. data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -3
  53. data/lib/azure_mgmt_network/models/{connection_reset_shared_key_properties_format.rb → connection_shared_key_result.rb} +11 -15
  54. data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -3
  55. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -3
  56. data/lib/azure_mgmt_network/models/error.rb +4 -6
  57. data/lib/azure_mgmt_network/models/error_details.rb +1 -3
  58. data/lib/azure_mgmt_network/models/express_route_circuit.rb +118 -0
  59. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +65 -0
  60. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +88 -0
  61. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +86 -0
  62. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +88 -0
  63. data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  64. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +92 -0
  65. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +87 -0
  66. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +194 -0
  67. data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  68. data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
  69. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +179 -0
  70. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +89 -0
  71. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +76 -0
  72. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +83 -0
  73. data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  74. data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
  75. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +67 -0
  76. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +85 -0
  77. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +88 -0
  78. data/lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb +85 -0
  79. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +92 -0
  80. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +67 -0
  81. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +86 -0
  82. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +97 -0
  83. data/lib/azure_mgmt_network/models/{frontend_ip_configuration.rb → frontend_ipconfiguration.rb} +7 -9
  84. data/lib/azure_mgmt_network/models/{frontend_ip_configuration_properties_format.rb → frontend_ipconfiguration_properties_format.rb} +133 -77
  85. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +88 -0
  86. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +134 -0
  87. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -3
  88. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +11 -12
  89. data/lib/azure_mgmt_network/models/{ip_allocation_method.rb → ipallocation_method.rb} +3 -3
  90. data/lib/azure_mgmt_network/models/ipconfiguration.rb +88 -0
  91. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +113 -0
  92. data/lib/azure_mgmt_network/models/load_balancer.rb +7 -9
  93. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +4 -6
  94. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +103 -35
  95. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -3
  96. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +30 -30
  97. data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
  98. data/lib/azure_mgmt_network/models/local_network_gateway.rb +7 -9
  99. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +4 -6
  100. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +11 -3
  101. data/lib/azure_mgmt_network/models/network_interface.rb +7 -9
  102. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +1 -3
  103. data/lib/azure_mgmt_network/models/{network_interface_ip_configuration.rb → network_interface_ipconfiguration.rb} +7 -9
  104. data/lib/azure_mgmt_network/models/{network_interface_ip_configuration_properties_format.rb → network_interface_ipconfiguration_properties_format.rb} +70 -76
  105. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +4 -6
  106. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +32 -14
  107. data/lib/azure_mgmt_network/models/{operation_status.rb → network_operation_status.rb} +3 -3
  108. data/lib/azure_mgmt_network/models/network_security_group.rb +7 -9
  109. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +4 -6
  110. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +30 -22
  111. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +88 -0
  112. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +117 -0
  113. data/lib/azure_mgmt_network/models/probe.rb +1 -3
  114. data/lib/azure_mgmt_network/models/probe_properties_format.rb +25 -26
  115. data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
  116. data/lib/azure_mgmt_network/models/processor_architecture.rb +16 -0
  117. data/lib/azure_mgmt_network/models/{public_ip_address.rb → public_ipaddress.rb} +13 -15
  118. data/lib/azure_mgmt_network/models/{public_ip_address_dns_settings.rb → public_ipaddress_dns_settings.rb} +4 -6
  119. data/lib/azure_mgmt_network/models/{public_ip_address_list_result.rb → public_ipaddress_list_result.rb} +10 -12
  120. data/lib/azure_mgmt_network/models/{public_ip_address_properties_format.rb → public_ipaddress_properties_format.rb} +25 -19
  121. data/lib/azure_mgmt_network/models/route.rb +88 -0
  122. data/lib/azure_mgmt_network/models/route_list_result.rb +85 -0
  123. data/lib/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  124. data/lib/azure_mgmt_network/models/route_properties_format.rb +94 -0
  125. data/lib/azure_mgmt_network/models/route_table.rb +102 -0
  126. data/lib/azure_mgmt_network/models/route_table_list_result.rb +86 -0
  127. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +116 -0
  128. data/lib/azure_mgmt_network/models/security_rule.rb +1 -3
  129. data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
  130. data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  131. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +4 -6
  132. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +50 -48
  133. data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  134. data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  135. data/lib/azure_mgmt_network/models/subnet.rb +1 -3
  136. data/lib/azure_mgmt_network/models/subnet_list_result.rb +4 -6
  137. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +28 -13
  138. data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
  139. data/lib/azure_mgmt_network/models/usage.rb +7 -5
  140. data/lib/azure_mgmt_network/models/usage_name.rb +1 -3
  141. data/lib/azure_mgmt_network/models/usage_unit.rb +1 -1
  142. data/lib/azure_mgmt_network/models/usages_list_result.rb +4 -6
  143. data/lib/azure_mgmt_network/models/virtual_network.rb +7 -9
  144. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +7 -9
  145. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +7 -9
  146. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +4 -6
  147. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +74 -6
  148. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  149. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  150. data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration.rb → virtual_network_gateway_ipconfiguration.rb} +7 -9
  151. data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration_properties_format.rb → virtual_network_gateway_ipconfiguration_properties_format.rb} +14 -17
  152. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +4 -6
  153. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +76 -13
  154. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +86 -0
  155. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +17 -0
  156. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +17 -0
  157. data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +2 -1
  158. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +4 -6
  159. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +14 -6
  160. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +125 -0
  161. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +60 -0
  162. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +88 -0
  163. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +69 -0
  164. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +88 -0
  165. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +66 -0
  166. data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
  167. data/lib/azure_mgmt_network/module_definition.rb +5 -3
  168. data/lib/azure_mgmt_network/network_interfaces.rb +451 -304
  169. data/lib/azure_mgmt_network/{network_resource_provider_client.rb → network_management_client.rb} +61 -57
  170. data/lib/azure_mgmt_network/network_security_groups.rb +139 -314
  171. data/lib/azure_mgmt_network/public_ipaddresses.rb +536 -0
  172. data/lib/azure_mgmt_network/route_tables.rb +532 -0
  173. data/lib/azure_mgmt_network/routes.rb +423 -0
  174. data/lib/azure_mgmt_network/security_rules.rb +102 -232
  175. data/lib/azure_mgmt_network/subnets.rb +104 -233
  176. data/lib/azure_mgmt_network/usages.rb +79 -43
  177. data/lib/azure_mgmt_network/version.rb +5 -3
  178. data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +262 -467
  179. data/lib/azure_mgmt_network/virtual_network_gateways.rb +204 -280
  180. data/lib/azure_mgmt_network/virtual_networks.rb +139 -314
  181. metadata +92 -106
  182. data/.gitignore +0 -10
  183. data/.travis.yml +0 -3
  184. data/Gemfile +0 -15
  185. data/lib/azure_mgmt_network/public_ip_addresses.rb +0 -711
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f1e771a0c4bdd6c8e7f0ab9c2f567d9007aec8f
4
- data.tar.gz: 1c4b6a5bbe46f03b884a837dce8daaac2b082753
3
+ metadata.gz: 693a0e170d08e061a7d304bcee7975db03402e20
4
+ data.tar.gz: 075c42f66a70dbb99f1a6a5d53a27a71767469b5
5
5
  SHA512:
6
- metadata.gz: 577722c944accdf7917dadad5b4c2746d29fe7a52154dcf5af515425fec4df1b62ecf12f530ba064aea8a010772f49867a78dda56d910c1ed77156c2c70d656d
7
- data.tar.gz: 460cf82a41e78f3733c46f43fb7b5ddd630ddf06d6d7f43f5758c38fe050b20485e77985c1e6cc366f5afe30d9e6d03096db2b9cc1030b2aa5aa08244f745653
6
+ metadata.gz: 00dd05b0132afbe3c377773e927e8526f80afd9520f4da6fdd12c40c843fe1ab7bf73e03da1d0b1b41e8595b820bc70d75c27d8980ebcb00907f91f6e24a1445
7
+ data.tar.gz: 2c8044ea6d173674dd0adb1b6fa78139ca53ac1a74ebf4c4a3a9e0aa9eb9f7c9a2d5e1648ce69f7661174a0227a595079d092e918e40bc0f1f32e24c94bdfb9f
@@ -12,9 +12,9 @@ Gem::Specification.new do |spec|
12
12
  spec.name = 'azure_mgmt_network'
13
13
  spec.version = Azure::ARM::Network::VERSION
14
14
  spec.authors = 'Microsoft Corporation'
15
- spec.email = 'azsdkteam@microsoft.com'
15
+ spec.email = 'azrubyteam@microsoft.com'
16
16
  spec.description = 'Microsoft Azure Network Management Client Library for Ruby'
17
- spec.summary = 'Official ruby client library to consume Microsoft Azure Network Management services.'
17
+ spec.summary = 'Official Ruby client library to consume Microsoft Azure Network Management services.'
18
18
  spec.homepage = 'http://github.com/azure/azure-sdk-for-ruby'
19
19
  spec.license = 'MIT'
20
20
 
@@ -29,12 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake', '~> 10'
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
- spec.add_development_dependency 'azure_mgmt_resources', '~> 0.1'
32
+ spec.add_development_dependency 'azure_mgmt_resources', '~> 0.2'
33
33
 
34
- spec.add_runtime_dependency 'json', '~> 1.8'
35
- spec.add_runtime_dependency 'concurrent-ruby', ['>= 1.0.0.pre1', '<2']
36
- spec.add_runtime_dependency 'faraday', '~> 0.9'
37
- spec.add_runtime_dependency 'faraday-cookie_jar', '~> 0.0.6'
38
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.1.0'
39
- spec.add_runtime_dependency 'ms_rest', '~> 0.1.0'
34
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.0'
40
35
  end
@@ -1,9 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
-
7
6
  require 'uri'
8
7
  require 'cgi'
9
8
  require 'date'
@@ -19,70 +18,106 @@ require 'concurrent'
19
18
  require 'ms_rest'
20
19
  require 'ms_rest_azure'
21
20
 
22
- require 'azure_mgmt_network/module_definition'
23
- require 'azure_mgmt_network/version'
24
-
25
21
  module Azure::ARM::Network
26
22
  autoload :ApplicationGateways, 'azure_mgmt_network/application_gateways.rb'
23
+ autoload :ExpressRouteCircuitAuthorizations, 'azure_mgmt_network/express_route_circuit_authorizations.rb'
24
+ autoload :ExpressRouteCircuitPeerings, 'azure_mgmt_network/express_route_circuit_peerings.rb'
25
+ autoload :ExpressRouteCircuits, 'azure_mgmt_network/express_route_circuits.rb'
26
+ autoload :ExpressRouteServiceProviders, 'azure_mgmt_network/express_route_service_providers.rb'
27
27
  autoload :LoadBalancers, 'azure_mgmt_network/load_balancers.rb'
28
28
  autoload :LocalNetworkGateways, 'azure_mgmt_network/local_network_gateways.rb'
29
29
  autoload :NetworkInterfaces, 'azure_mgmt_network/network_interfaces.rb'
30
30
  autoload :NetworkSecurityGroups, 'azure_mgmt_network/network_security_groups.rb'
31
- autoload :PublicIpAddresses, 'azure_mgmt_network/public_ip_addresses.rb'
31
+ autoload :PublicIPAddresses, 'azure_mgmt_network/public_ipaddresses.rb'
32
+ autoload :RouteTables, 'azure_mgmt_network/route_tables.rb'
33
+ autoload :Routes, 'azure_mgmt_network/routes.rb'
32
34
  autoload :SecurityRules, 'azure_mgmt_network/security_rules.rb'
33
35
  autoload :Subnets, 'azure_mgmt_network/subnets.rb'
34
36
  autoload :Usages, 'azure_mgmt_network/usages.rb'
35
37
  autoload :VirtualNetworkGatewayConnections, 'azure_mgmt_network/virtual_network_gateway_connections.rb'
36
38
  autoload :VirtualNetworkGateways, 'azure_mgmt_network/virtual_network_gateways.rb'
37
39
  autoload :VirtualNetworks, 'azure_mgmt_network/virtual_networks.rb'
38
- autoload :NetworkResourceProviderClient, 'azure_mgmt_network/network_resource_provider_client.rb'
40
+ autoload :NetworkManagementClient, 'azure_mgmt_network/network_management_client.rb'
39
41
 
40
42
  module Models
41
43
  autoload :ApplicationGatewaySku, 'azure_mgmt_network/models/application_gateway_sku.rb'
42
- autoload :ApplicationGatewayIpConfigurationPropertiesFormat, 'azure_mgmt_network/models/application_gateway_ip_configuration_properties_format.rb'
44
+ autoload :ApplicationGatewayIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb'
43
45
  autoload :ApplicationGatewaySslCertificatePropertiesFormat, 'azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb'
44
- autoload :ApplicationGatewayFrontendIpConfigurationPropertiesFormat, 'azure_mgmt_network/models/application_gateway_frontend_ip_configuration_properties_format.rb'
46
+ autoload :ApplicationGatewayFrontendIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb'
45
47
  autoload :ApplicationGatewayFrontendPortPropertiesFormat, 'azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb'
46
48
  autoload :ApplicationGatewayBackendAddress, 'azure_mgmt_network/models/application_gateway_backend_address.rb'
47
49
  autoload :ApplicationGatewayBackendAddressPoolPropertiesFormat, 'azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb'
48
50
  autoload :ApplicationGatewayBackendHttpSettingsPropertiesFormat, 'azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb'
49
51
  autoload :ApplicationGatewayHttpListenerPropertiesFormat, 'azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb'
52
+ autoload :ApplicationGatewayPathRulePropertiesFormat, 'azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb'
53
+ autoload :ApplicationGatewayProbePropertiesFormat, 'azure_mgmt_network/models/application_gateway_probe_properties_format.rb'
50
54
  autoload :ApplicationGatewayRequestRoutingRulePropertiesFormat, 'azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb'
51
55
  autoload :ApplicationGatewayPropertiesFormat, 'azure_mgmt_network/models/application_gateway_properties_format.rb'
56
+ autoload :ApplicationGatewayUrlPathMapPropertiesFormat, 'azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb'
52
57
  autoload :ApplicationGatewayListResult, 'azure_mgmt_network/models/application_gateway_list_result.rb'
53
- autoload :FrontendIpConfigurationPropertiesFormat, 'azure_mgmt_network/models/frontend_ip_configuration_properties_format.rb'
58
+ autoload :AuthorizationPropertiesFormat, 'azure_mgmt_network/models/authorization_properties_format.rb'
59
+ autoload :AuthorizationListResult, 'azure_mgmt_network/models/authorization_list_result.rb'
60
+ autoload :ExpressRouteCircuitPeeringConfig, 'azure_mgmt_network/models/express_route_circuit_peering_config.rb'
61
+ autoload :ExpressRouteCircuitStats, 'azure_mgmt_network/models/express_route_circuit_stats.rb'
62
+ autoload :ExpressRouteCircuitPeeringPropertiesFormat, 'azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb'
63
+ autoload :ExpressRouteCircuitPeeringListResult, 'azure_mgmt_network/models/express_route_circuit_peering_list_result.rb'
64
+ autoload :ExpressRouteCircuitSku, 'azure_mgmt_network/models/express_route_circuit_sku.rb'
65
+ autoload :ExpressRouteCircuitServiceProviderProperties, 'azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb'
66
+ autoload :ExpressRouteCircuitPropertiesFormat, 'azure_mgmt_network/models/express_route_circuit_properties_format.rb'
67
+ autoload :ExpressRouteCircuitArpTable, 'azure_mgmt_network/models/express_route_circuit_arp_table.rb'
68
+ autoload :ExpressRouteCircuitsArpTableListResult, 'azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb'
69
+ autoload :ExpressRouteCircuitRoutesTable, 'azure_mgmt_network/models/express_route_circuit_routes_table.rb'
70
+ autoload :ExpressRouteCircuitsRoutesTableListResult, 'azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
71
+ autoload :ExpressRouteCircuitsStatsListResult, 'azure_mgmt_network/models/express_route_circuits_stats_list_result.rb'
72
+ autoload :ExpressRouteCircuitListResult, 'azure_mgmt_network/models/express_route_circuit_list_result.rb'
73
+ autoload :ExpressRouteServiceProviderBandwidthsOffered, 'azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb'
74
+ autoload :ExpressRouteServiceProviderPropertiesFormat, 'azure_mgmt_network/models/express_route_service_provider_properties_format.rb'
75
+ autoload :ExpressRouteServiceProviderListResult, 'azure_mgmt_network/models/express_route_service_provider_list_result.rb'
76
+ autoload :FrontendIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb'
77
+ autoload :SubnetPropertiesFormat, 'azure_mgmt_network/models/subnet_properties_format.rb'
78
+ autoload :NetworkSecurityGroupPropertiesFormat, 'azure_mgmt_network/models/network_security_group_properties_format.rb'
79
+ autoload :SecurityRulePropertiesFormat, 'azure_mgmt_network/models/security_rule_properties_format.rb'
80
+ autoload :NetworkInterfacePropertiesFormat, 'azure_mgmt_network/models/network_interface_properties_format.rb'
81
+ autoload :NetworkInterfaceIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb'
54
82
  autoload :BackendAddressPoolPropertiesFormat, 'azure_mgmt_network/models/backend_address_pool_properties_format.rb'
83
+ autoload :InboundNatRulePropertiesFormat, 'azure_mgmt_network/models/inbound_nat_rule_properties_format.rb'
84
+ autoload :PublicIPAddressPropertiesFormat, 'azure_mgmt_network/models/public_ipaddress_properties_format.rb'
85
+ autoload :IPConfigurationPropertiesFormat, 'azure_mgmt_network/models/ipconfiguration_properties_format.rb'
86
+ autoload :PublicIPAddressDnsSettings, 'azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
87
+ autoload :NetworkInterfaceDnsSettings, 'azure_mgmt_network/models/network_interface_dns_settings.rb'
88
+ autoload :RouteTablePropertiesFormat, 'azure_mgmt_network/models/route_table_properties_format.rb'
89
+ autoload :RoutePropertiesFormat, 'azure_mgmt_network/models/route_properties_format.rb'
55
90
  autoload :LoadBalancingRulePropertiesFormat, 'azure_mgmt_network/models/load_balancing_rule_properties_format.rb'
56
91
  autoload :ProbePropertiesFormat, 'azure_mgmt_network/models/probe_properties_format.rb'
57
- autoload :InboundNatRulePropertiesFormat, 'azure_mgmt_network/models/inbound_nat_rule_properties_format.rb'
92
+ autoload :InboundNatPoolPropertiesFormat, 'azure_mgmt_network/models/inbound_nat_pool_properties_format.rb'
93
+ autoload :OutboundNatRulePropertiesFormat, 'azure_mgmt_network/models/outbound_nat_rule_properties_format.rb'
58
94
  autoload :LoadBalancerPropertiesFormat, 'azure_mgmt_network/models/load_balancer_properties_format.rb'
59
95
  autoload :LoadBalancerListResult, 'azure_mgmt_network/models/load_balancer_list_result.rb'
60
96
  autoload :AddressSpace, 'azure_mgmt_network/models/address_space.rb'
61
97
  autoload :LocalNetworkGatewayPropertiesFormat, 'azure_mgmt_network/models/local_network_gateway_properties_format.rb'
62
98
  autoload :LocalNetworkGatewayListResult, 'azure_mgmt_network/models/local_network_gateway_list_result.rb'
63
- autoload :NetworkInterfaceIpConfigurationPropertiesFormat, 'azure_mgmt_network/models/network_interface_ip_configuration_properties_format.rb'
64
- autoload :NetworkInterfaceDnsSettings, 'azure_mgmt_network/models/network_interface_dns_settings.rb'
65
- autoload :NetworkInterfacePropertiesFormat, 'azure_mgmt_network/models/network_interface_properties_format.rb'
66
99
  autoload :NetworkInterfaceListResult, 'azure_mgmt_network/models/network_interface_list_result.rb'
67
- autoload :SecurityRulePropertiesFormat, 'azure_mgmt_network/models/security_rule_properties_format.rb'
68
- autoload :NetworkSecurityGroupPropertiesFormat, 'azure_mgmt_network/models/network_security_group_properties_format.rb'
69
100
  autoload :NetworkSecurityGroupListResult, 'azure_mgmt_network/models/network_security_group_list_result.rb'
70
- autoload :PublicIpAddressDnsSettings, 'azure_mgmt_network/models/public_ip_address_dns_settings.rb'
71
- autoload :PublicIpAddressPropertiesFormat, 'azure_mgmt_network/models/public_ip_address_properties_format.rb'
72
- autoload :PublicIpAddressListResult, 'azure_mgmt_network/models/public_ip_address_list_result.rb'
101
+ autoload :PublicIPAddressListResult, 'azure_mgmt_network/models/public_ipaddress_list_result.rb'
102
+ autoload :RouteTableListResult, 'azure_mgmt_network/models/route_table_list_result.rb'
103
+ autoload :RouteListResult, 'azure_mgmt_network/models/route_list_result.rb'
73
104
  autoload :SecurityRuleListResult, 'azure_mgmt_network/models/security_rule_list_result.rb'
74
- autoload :SubnetPropertiesFormat, 'azure_mgmt_network/models/subnet_properties_format.rb'
75
105
  autoload :SubnetListResult, 'azure_mgmt_network/models/subnet_list_result.rb'
76
106
  autoload :UsageName, 'azure_mgmt_network/models/usage_name.rb'
77
107
  autoload :Usage, 'azure_mgmt_network/models/usage.rb'
78
108
  autoload :UsagesListResult, 'azure_mgmt_network/models/usages_list_result.rb'
79
- autoload :VirtualNetworkGatewayIpConfigurationPropertiesFormat, 'azure_mgmt_network/models/virtual_network_gateway_ip_configuration_properties_format.rb'
109
+ autoload :VirtualNetworkGatewayIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb'
80
110
  autoload :VirtualNetworkGatewayPropertiesFormat, 'azure_mgmt_network/models/virtual_network_gateway_properties_format.rb'
111
+ autoload :VirtualNetworkGatewaySku, 'azure_mgmt_network/models/virtual_network_gateway_sku.rb'
112
+ autoload :VpnClientConfiguration, 'azure_mgmt_network/models/vpn_client_configuration.rb'
113
+ autoload :VpnClientRootCertificatePropertiesFormat, 'azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb'
114
+ autoload :VpnClientRevokedCertificatePropertiesFormat, 'azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb'
115
+ autoload :VpnClientParameters, 'azure_mgmt_network/models/vpn_client_parameters.rb'
81
116
  autoload :VirtualNetworkGatewayConnectionPropertiesFormat, 'azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb'
82
- autoload :ConnectionSharedKey, 'azure_mgmt_network/models/connection_shared_key.rb'
117
+ autoload :ConnectionSharedKeyResult, 'azure_mgmt_network/models/connection_shared_key_result.rb'
83
118
  autoload :VirtualNetworkGatewayConnectionListResult, 'azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb'
84
- autoload :ConnectionResetSharedKeyPropertiesFormat, 'azure_mgmt_network/models/connection_reset_shared_key_properties_format.rb'
85
119
  autoload :ConnectionResetSharedKey, 'azure_mgmt_network/models/connection_reset_shared_key.rb'
120
+ autoload :ConnectionSharedKey, 'azure_mgmt_network/models/connection_shared_key.rb'
86
121
  autoload :VirtualNetworkGatewayListResult, 'azure_mgmt_network/models/virtual_network_gateway_list_result.rb'
87
122
  autoload :DhcpOptions, 'azure_mgmt_network/models/dhcp_options.rb'
88
123
  autoload :VirtualNetworkPropertiesFormat, 'azure_mgmt_network/models/virtual_network_properties_format.rb'
@@ -91,49 +126,75 @@ module Azure::ARM::Network
91
126
  autoload :ErrorDetails, 'azure_mgmt_network/models/error_details.rb'
92
127
  autoload :Error, 'azure_mgmt_network/models/error.rb'
93
128
  autoload :AzureAsyncOperationResult, 'azure_mgmt_network/models/azure_async_operation_result.rb'
94
- autoload :ApplicationGatewayIpConfiguration, 'azure_mgmt_network/models/application_gateway_ip_configuration.rb'
129
+ autoload :ApplicationGatewayIPConfiguration, 'azure_mgmt_network/models/application_gateway_ipconfiguration.rb'
95
130
  autoload :ApplicationGatewaySslCertificate, 'azure_mgmt_network/models/application_gateway_ssl_certificate.rb'
96
- autoload :ApplicationGatewayFrontendIpConfiguration, 'azure_mgmt_network/models/application_gateway_frontend_ip_configuration.rb'
131
+ autoload :ApplicationGatewayFrontendIPConfiguration, 'azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb'
97
132
  autoload :ApplicationGatewayFrontendPort, 'azure_mgmt_network/models/application_gateway_frontend_port.rb'
98
133
  autoload :ApplicationGatewayBackendAddressPool, 'azure_mgmt_network/models/application_gateway_backend_address_pool.rb'
99
134
  autoload :ApplicationGatewayBackendHttpSettings, 'azure_mgmt_network/models/application_gateway_backend_http_settings.rb'
100
135
  autoload :ApplicationGatewayHttpListener, 'azure_mgmt_network/models/application_gateway_http_listener.rb'
136
+ autoload :ApplicationGatewayPathRule, 'azure_mgmt_network/models/application_gateway_path_rule.rb'
137
+ autoload :ApplicationGatewayProbe, 'azure_mgmt_network/models/application_gateway_probe.rb'
101
138
  autoload :ApplicationGatewayRequestRoutingRule, 'azure_mgmt_network/models/application_gateway_request_routing_rule.rb'
139
+ autoload :ApplicationGatewayUrlPathMap, 'azure_mgmt_network/models/application_gateway_url_path_map.rb'
102
140
  autoload :ApplicationGateway, 'azure_mgmt_network/models/application_gateway.rb'
103
- autoload :FrontendIpConfiguration, 'azure_mgmt_network/models/frontend_ip_configuration.rb'
141
+ autoload :ExpressRouteCircuitAuthorization, 'azure_mgmt_network/models/express_route_circuit_authorization.rb'
142
+ autoload :ExpressRouteCircuitPeering, 'azure_mgmt_network/models/express_route_circuit_peering.rb'
143
+ autoload :ExpressRouteCircuit, 'azure_mgmt_network/models/express_route_circuit.rb'
144
+ autoload :ExpressRouteServiceProvider, 'azure_mgmt_network/models/express_route_service_provider.rb'
145
+ autoload :Subnet, 'azure_mgmt_network/models/subnet.rb'
146
+ autoload :NetworkSecurityGroup, 'azure_mgmt_network/models/network_security_group.rb'
147
+ autoload :SecurityRule, 'azure_mgmt_network/models/security_rule.rb'
148
+ autoload :NetworkInterface, 'azure_mgmt_network/models/network_interface.rb'
149
+ autoload :NetworkInterfaceIPConfiguration, 'azure_mgmt_network/models/network_interface_ipconfiguration.rb'
104
150
  autoload :BackendAddressPool, 'azure_mgmt_network/models/backend_address_pool.rb'
151
+ autoload :InboundNatRule, 'azure_mgmt_network/models/inbound_nat_rule.rb'
152
+ autoload :PublicIPAddress, 'azure_mgmt_network/models/public_ipaddress.rb'
153
+ autoload :IPConfiguration, 'azure_mgmt_network/models/ipconfiguration.rb'
154
+ autoload :RouteTable, 'azure_mgmt_network/models/route_table.rb'
155
+ autoload :Route, 'azure_mgmt_network/models/route.rb'
156
+ autoload :FrontendIPConfiguration, 'azure_mgmt_network/models/frontend_ipconfiguration.rb'
105
157
  autoload :LoadBalancingRule, 'azure_mgmt_network/models/load_balancing_rule.rb'
106
158
  autoload :Probe, 'azure_mgmt_network/models/probe.rb'
107
- autoload :InboundNatRule, 'azure_mgmt_network/models/inbound_nat_rule.rb'
159
+ autoload :InboundNatPool, 'azure_mgmt_network/models/inbound_nat_pool.rb'
160
+ autoload :OutboundNatRule, 'azure_mgmt_network/models/outbound_nat_rule.rb'
108
161
  autoload :LoadBalancer, 'azure_mgmt_network/models/load_balancer.rb'
109
162
  autoload :LocalNetworkGateway, 'azure_mgmt_network/models/local_network_gateway.rb'
110
- autoload :NetworkInterfaceIpConfiguration, 'azure_mgmt_network/models/network_interface_ip_configuration.rb'
111
- autoload :NetworkInterface, 'azure_mgmt_network/models/network_interface.rb'
112
- autoload :SecurityRule, 'azure_mgmt_network/models/security_rule.rb'
113
- autoload :NetworkSecurityGroup, 'azure_mgmt_network/models/network_security_group.rb'
114
- autoload :PublicIpAddress, 'azure_mgmt_network/models/public_ip_address.rb'
115
- autoload :Subnet, 'azure_mgmt_network/models/subnet.rb'
116
- autoload :VirtualNetworkGatewayIpConfiguration, 'azure_mgmt_network/models/virtual_network_gateway_ip_configuration.rb'
163
+ autoload :VirtualNetworkGatewayIPConfiguration, 'azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb'
164
+ autoload :VpnClientRootCertificate, 'azure_mgmt_network/models/vpn_client_root_certificate.rb'
165
+ autoload :VpnClientRevokedCertificate, 'azure_mgmt_network/models/vpn_client_revoked_certificate.rb'
117
166
  autoload :VirtualNetworkGateway, 'azure_mgmt_network/models/virtual_network_gateway.rb'
118
167
  autoload :VirtualNetworkGatewayConnection, 'azure_mgmt_network/models/virtual_network_gateway_connection.rb'
119
168
  autoload :VirtualNetwork, 'azure_mgmt_network/models/virtual_network.rb'
120
169
  autoload :ApplicationGatewaySkuName, 'azure_mgmt_network/models/application_gateway_sku_name.rb'
121
170
  autoload :ApplicationGatewayTier, 'azure_mgmt_network/models/application_gateway_tier.rb'
122
- autoload :IpAllocationMethod, 'azure_mgmt_network/models/ip_allocation_method.rb'
171
+ autoload :IPAllocationMethod, 'azure_mgmt_network/models/ipallocation_method.rb'
123
172
  autoload :ApplicationGatewayProtocol, 'azure_mgmt_network/models/application_gateway_protocol.rb'
124
173
  autoload :ApplicationGatewayCookieBasedAffinity, 'azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb'
125
174
  autoload :ApplicationGatewayRequestRoutingRuleType, 'azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb'
126
175
  autoload :ApplicationGatewayOperationalState, 'azure_mgmt_network/models/application_gateway_operational_state.rb'
127
- autoload :TransportProtocol, 'azure_mgmt_network/models/transport_protocol.rb'
128
- autoload :LoadDistribution, 'azure_mgmt_network/models/load_distribution.rb'
129
- autoload :ProbeProtocol, 'azure_mgmt_network/models/probe_protocol.rb'
176
+ autoload :AuthorizationUseStatus, 'azure_mgmt_network/models/authorization_use_status.rb'
177
+ autoload :ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, 'azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb'
178
+ autoload :ExpressRouteCircuitPeeringType, 'azure_mgmt_network/models/express_route_circuit_peering_type.rb'
179
+ autoload :ExpressRouteCircuitPeeringState, 'azure_mgmt_network/models/express_route_circuit_peering_state.rb'
180
+ autoload :ExpressRouteCircuitSkuTier, 'azure_mgmt_network/models/express_route_circuit_sku_tier.rb'
181
+ autoload :ExpressRouteCircuitSkuFamily, 'azure_mgmt_network/models/express_route_circuit_sku_family.rb'
182
+ autoload :ServiceProviderProvisioningState, 'azure_mgmt_network/models/service_provider_provisioning_state.rb'
183
+ autoload :RouteNextHopType, 'azure_mgmt_network/models/route_next_hop_type.rb'
130
184
  autoload :SecurityRuleProtocol, 'azure_mgmt_network/models/security_rule_protocol.rb'
131
185
  autoload :SecurityRuleAccess, 'azure_mgmt_network/models/security_rule_access.rb'
132
186
  autoload :SecurityRuleDirection, 'azure_mgmt_network/models/security_rule_direction.rb'
187
+ autoload :TransportProtocol, 'azure_mgmt_network/models/transport_protocol.rb'
188
+ autoload :LoadDistribution, 'azure_mgmt_network/models/load_distribution.rb'
189
+ autoload :ProbeProtocol, 'azure_mgmt_network/models/probe_protocol.rb'
133
190
  autoload :UsageUnit, 'azure_mgmt_network/models/usage_unit.rb'
134
191
  autoload :VirtualNetworkGatewayType, 'azure_mgmt_network/models/virtual_network_gateway_type.rb'
135
192
  autoload :VpnType, 'azure_mgmt_network/models/vpn_type.rb'
193
+ autoload :VirtualNetworkGatewaySkuName, 'azure_mgmt_network/models/virtual_network_gateway_sku_name.rb'
194
+ autoload :VirtualNetworkGatewaySkuTier, 'azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb'
195
+ autoload :ProcessorArchitecture, 'azure_mgmt_network/models/processor_architecture.rb'
136
196
  autoload :VirtualNetworkGatewayConnectionType, 'azure_mgmt_network/models/virtual_network_gateway_connection_type.rb'
137
- autoload :OperationStatus, 'azure_mgmt_network/models/operation_status.rb'
197
+ autoload :VirtualNetworkGatewayConnectionStatus, 'azure_mgmt_network/models/virtual_network_gateway_connection_status.rb'
198
+ autoload :NetworkOperationStatus, 'azure_mgmt_network/models/network_operation_status.rb'
138
199
  end
139
200
  end
@@ -1,11 +1,14 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
- # ApplicationGateways
8
+ # The Microsoft Azure Network management API provides a RESTful set of web
9
+ # services that interact with Microsoft Azure Networks service to manage
10
+ # your network resrources. The API has entities that capture the
11
+ # relationship between an end user and the Microsoft Azure Networks service.
9
12
  #
10
13
  class ApplicationGateways
11
14
  include Azure::ARM::Network::Models
@@ -19,12 +22,13 @@ module Azure::ARM::Network
19
22
  @client = client
20
23
  end
21
24
 
22
- # @return reference to the NetworkResourceProviderClient
25
+ # @return reference to the NetworkManagementClient
23
26
  attr_reader :client
24
27
 
25
28
  #
26
29
  # The delete applicationgateway operation deletes the specified
27
30
  # applicationgateway.
31
+ #
28
32
  # @param resource_group_name [String] The name of the resource group.
29
33
  # @param application_gateway_name [String] The name of the applicationgateway.
30
34
  # @return [Concurrent::Promise] promise which provides async access to http
@@ -40,7 +44,7 @@ module Azure::ARM::Network
40
44
  end
41
45
 
42
46
  # Waiting for response.
43
- @client.get_post_or_delete_operation_result(response, nil, deserialize_method)
47
+ @client.get_post_or_delete_operation_result(response, deserialize_method)
44
48
  end
45
49
 
46
50
  promise
@@ -49,6 +53,7 @@ module Azure::ARM::Network
49
53
  #
50
54
  # The delete applicationgateway operation deletes the specified
51
55
  # applicationgateway.
56
+ #
52
57
  # @param resource_group_name [String] The name of the resource group.
53
58
  # @param application_gateway_name [String] The name of the applicationgateway.
54
59
  # @param [Hash{String => String}] The hash of custom headers need to be
@@ -62,60 +67,33 @@ module Azure::ARM::Network
62
67
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
63
68
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
64
69
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
- # Construct URL
66
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}"
67
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
68
- path['{applicationGatewayName}'] = ERB::Util.url_encode(application_gateway_name) if path.include?('{applicationGatewayName}')
69
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
70
- url = URI.join(@client.base_url, path)
71
- properties = {}
72
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
73
- unless url.query.nil?
74
- url.query.split('&').each do |url_item|
75
- url_items_parts = url_item.split('=')
76
- properties[url_items_parts[0]] = url_items_parts[1]
77
- end
78
- end
79
- properties.reject!{ |key, value| value.nil? }
80
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
81
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
82
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
83
- url = URI.parse(corrected_url)
84
-
85
- connection = Faraday.new(:url => url) do |faraday|
86
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
87
- faraday.use :cookie_jar
88
- faraday.adapter Faraday.default_adapter
89
- end
90
- request_headers = Hash.new
70
+ request_headers = {}
91
71
 
92
72
  # Set Headers
93
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
94
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
95
-
96
- unless custom_headers.nil?
97
- custom_headers.each do |key, value|
98
- request_headers[key] = value
99
- end
100
- end
101
-
102
- # Send Request
103
- promise = Concurrent::Promise.new do
104
- connection.delete do |request|
105
- request.headers = request_headers
106
- @client.credentials.sign_request(request) unless @client.credentials.nil?
107
- end
74
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
75
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
76
+ options = {
77
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
78
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
79
+ query_params: {'api-version' => @client.api_version},
80
+ headers: request_headers.merge(custom_headers || {})
81
+ }
82
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
83
+ promise = request.run_promise do |req|
84
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
108
85
  end
109
86
 
110
87
  promise = promise.then do |http_response|
111
88
  status_code = http_response.status
112
89
  response_content = http_response.body
113
- unless (status_code == 204 || status_code == 202 || status_code == 200)
114
- fail MsRestAzure::AzureOperationError.new(connection, http_response)
90
+ unless status_code == 202 || status_code == 204 || status_code == 200
91
+ error_model = JSON.load(response_content)
92
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
115
93
  end
116
94
 
117
95
  # Create Result
118
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
96
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
119
97
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
120
98
 
121
99
  result
@@ -127,6 +105,7 @@ module Azure::ARM::Network
127
105
  #
128
106
  # The Get applicationgateway operation retreives information about the
129
107
  # specified applicationgateway.
108
+ #
130
109
  # @param resource_group_name [String] The name of the resource group.
131
110
  # @param application_gateway_name [String] The name of the applicationgateway.
132
111
  # @param [Hash{String => String}] The hash of custom headers need to be
@@ -140,72 +119,44 @@ module Azure::ARM::Network
140
119
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
141
120
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
142
121
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
143
- # Construct URL
144
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}"
145
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
146
- path['{applicationGatewayName}'] = ERB::Util.url_encode(application_gateway_name) if path.include?('{applicationGatewayName}')
147
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
148
- url = URI.join(@client.base_url, path)
149
- properties = {}
150
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
151
- unless url.query.nil?
152
- url.query.split('&').each do |url_item|
153
- url_items_parts = url_item.split('=')
154
- properties[url_items_parts[0]] = url_items_parts[1]
155
- end
156
- end
157
- properties.reject!{ |key, value| value.nil? }
158
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
159
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
160
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
161
- url = URI.parse(corrected_url)
162
-
163
- connection = Faraday.new(:url => url) do |faraday|
164
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
165
- faraday.use :cookie_jar
166
- faraday.adapter Faraday.default_adapter
167
- end
168
- request_headers = Hash.new
122
+ request_headers = {}
169
123
 
170
124
  # Set Headers
171
125
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
172
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
173
-
174
- unless custom_headers.nil?
175
- custom_headers.each do |key, value|
176
- request_headers[key] = value
177
- end
178
- end
179
-
180
- # Send Request
181
- promise = Concurrent::Promise.new do
182
- connection.get do |request|
183
- request.headers = request_headers
184
- @client.credentials.sign_request(request) unless @client.credentials.nil?
185
- end
126
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
127
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
128
+ options = {
129
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
130
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
131
+ query_params: {'api-version' => @client.api_version},
132
+ headers: request_headers.merge(custom_headers || {})
133
+ }
134
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
135
+ promise = request.run_promise do |req|
136
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
186
137
  end
187
138
 
188
139
  promise = promise.then do |http_response|
189
140
  status_code = http_response.status
190
141
  response_content = http_response.body
191
- unless (status_code == 200)
142
+ unless status_code == 200
192
143
  error_model = JSON.load(response_content)
193
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
144
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
194
145
  end
195
146
 
196
147
  # Create Result
197
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
148
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
198
149
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
199
150
  # Deserialize Response
200
151
  if status_code == 200
201
152
  begin
202
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
153
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
203
154
  unless parsed_response.nil?
204
155
  parsed_response = ApplicationGateway.deserialize_object(parsed_response)
205
156
  end
206
157
  result.body = parsed_response
207
158
  rescue Exception => e
208
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
159
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
209
160
  end
210
161
  end
211
162
 
@@ -217,6 +168,7 @@ module Azure::ARM::Network
217
168
 
218
169
  #
219
170
  # The Put ApplicationGateway operation creates/updates a ApplicationGateway
171
+ #
220
172
  # @param resource_group_name [String] The name of the resource group.
221
173
  # @param application_gateway_name [String] The name of the ApplicationGateway.
222
174
  # @param parameters [ApplicationGateway] Parameters supplied to the
@@ -244,7 +196,7 @@ module Azure::ARM::Network
244
196
  end
245
197
 
246
198
  # Waiting for response.
247
- @client.get_put_operation_result(response, custom_headers, deserialize_method)
199
+ @client.get_put_operation_result(response, deserialize_method)
248
200
  end
249
201
 
250
202
  promise
@@ -252,6 +204,7 @@ module Azure::ARM::Network
252
204
 
253
205
  #
254
206
  # The Put ApplicationGateway operation creates/updates a ApplicationGateway
207
+ #
255
208
  # @param resource_group_name [String] The name of the resource group.
256
209
  # @param application_gateway_name [String] The name of the ApplicationGateway.
257
210
  # @param parameters [ApplicationGateway] Parameters supplied to the
@@ -269,92 +222,64 @@ module Azure::ARM::Network
269
222
  parameters.validate unless parameters.nil?
270
223
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
271
224
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
272
- # Construct URL
273
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}"
274
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
275
- path['{applicationGatewayName}'] = ERB::Util.url_encode(application_gateway_name) if path.include?('{applicationGatewayName}')
276
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
277
- url = URI.join(@client.base_url, path)
278
- properties = {}
279
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
280
- unless url.query.nil?
281
- url.query.split('&').each do |url_item|
282
- url_items_parts = url_item.split('=')
283
- properties[url_items_parts[0]] = url_items_parts[1]
284
- end
285
- end
286
- properties.reject!{ |key, value| value.nil? }
287
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
288
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
289
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
290
- url = URI.parse(corrected_url)
291
-
292
- connection = Faraday.new(:url => url) do |faraday|
293
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
294
- faraday.use :cookie_jar
295
- faraday.adapter Faraday.default_adapter
296
- end
297
- request_headers = Hash.new
225
+ request_headers = {}
298
226
 
299
227
  # Set Headers
300
228
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
301
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
302
-
303
- unless custom_headers.nil?
304
- custom_headers.each do |key, value|
305
- request_headers[key] = value
306
- end
307
- end
229
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
308
230
 
309
231
  # Serialize Request
310
- request_headers['Content-Type'] = 'application/json'
232
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
311
233
  unless parameters.nil?
312
234
  parameters = ApplicationGateway.serialize_object(parameters)
313
235
  end
314
236
  request_content = JSON.generate(parameters, quirks_mode: true)
315
-
316
- # Send Request
317
- promise = Concurrent::Promise.new do
318
- connection.put do |request|
319
- request.headers = request_headers
320
- request.body = request_content
321
- @client.credentials.sign_request(request) unless @client.credentials.nil?
322
- end
237
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
238
+ options = {
239
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
240
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
241
+ query_params: {'api-version' => @client.api_version},
242
+ body: request_content,
243
+ headers: request_headers.merge(custom_headers || {})
244
+ }
245
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
246
+ promise = request.run_promise do |req|
247
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
323
248
  end
324
249
 
325
250
  promise = promise.then do |http_response|
326
251
  status_code = http_response.status
327
252
  response_content = http_response.body
328
- unless (status_code == 201 || status_code == 200)
253
+ unless status_code == 201 || status_code == 200
329
254
  error_model = JSON.load(response_content)
330
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
255
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
331
256
  end
332
257
 
333
258
  # Create Result
334
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
259
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
335
260
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
336
261
  # Deserialize Response
337
262
  if status_code == 201
338
263
  begin
339
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
264
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
340
265
  unless parsed_response.nil?
341
266
  parsed_response = ApplicationGateway.deserialize_object(parsed_response)
342
267
  end
343
268
  result.body = parsed_response
344
269
  rescue Exception => e
345
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
270
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
346
271
  end
347
272
  end
348
273
  # Deserialize Response
349
274
  if status_code == 200
350
275
  begin
351
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
276
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
352
277
  unless parsed_response.nil?
353
278
  parsed_response = ApplicationGateway.deserialize_object(parsed_response)
354
279
  end
355
280
  result.body = parsed_response
356
281
  rescue Exception => e
357
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
282
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
358
283
  end
359
284
  end
360
285
 
@@ -367,6 +292,7 @@ module Azure::ARM::Network
367
292
  #
368
293
  # The List ApplicationGateway opertion retrieves all the applicationgateways
369
294
  # in a resource group.
295
+ #
370
296
  # @param resource_group_name [String] The name of the resource group.
371
297
  # @param [Hash{String => String}] The hash of custom headers need to be
372
298
  # applied to HTTP request.
@@ -378,71 +304,44 @@ module Azure::ARM::Network
378
304
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
379
305
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
380
306
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
381
- # Construct URL
382
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways"
383
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
384
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
385
- url = URI.join(@client.base_url, path)
386
- properties = {}
387
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
388
- unless url.query.nil?
389
- url.query.split('&').each do |url_item|
390
- url_items_parts = url_item.split('=')
391
- properties[url_items_parts[0]] = url_items_parts[1]
392
- end
393
- end
394
- properties.reject!{ |key, value| value.nil? }
395
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
396
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
397
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
398
- url = URI.parse(corrected_url)
399
-
400
- connection = Faraday.new(:url => url) do |faraday|
401
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
402
- faraday.use :cookie_jar
403
- faraday.adapter Faraday.default_adapter
404
- end
405
- request_headers = Hash.new
307
+ request_headers = {}
406
308
 
407
309
  # Set Headers
408
310
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
409
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
410
-
411
- unless custom_headers.nil?
412
- custom_headers.each do |key, value|
413
- request_headers[key] = value
414
- end
415
- end
416
-
417
- # Send Request
418
- promise = Concurrent::Promise.new do
419
- connection.get do |request|
420
- request.headers = request_headers
421
- @client.credentials.sign_request(request) unless @client.credentials.nil?
422
- end
311
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
312
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways'
313
+ options = {
314
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
315
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
316
+ query_params: {'api-version' => @client.api_version},
317
+ headers: request_headers.merge(custom_headers || {})
318
+ }
319
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
320
+ promise = request.run_promise do |req|
321
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
423
322
  end
424
323
 
425
324
  promise = promise.then do |http_response|
426
325
  status_code = http_response.status
427
326
  response_content = http_response.body
428
- unless (status_code == 200)
327
+ unless status_code == 200
429
328
  error_model = JSON.load(response_content)
430
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
329
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
431
330
  end
432
331
 
433
332
  # Create Result
434
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
333
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
435
334
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
436
335
  # Deserialize Response
437
336
  if status_code == 200
438
337
  begin
439
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
338
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
440
339
  unless parsed_response.nil?
441
340
  parsed_response = ApplicationGatewayListResult.deserialize_object(parsed_response)
442
341
  end
443
342
  result.body = parsed_response
444
343
  rescue Exception => e
445
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
344
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
446
345
  end
447
346
  end
448
347
 
@@ -455,6 +354,7 @@ module Azure::ARM::Network
455
354
  #
456
355
  # The List applicationgateway opertion retrieves all the applicationgateways
457
356
  # in a subscription.
357
+ #
458
358
  # @param [Hash{String => String}] The hash of custom headers need to be
459
359
  # applied to HTTP request.
460
360
  #
@@ -464,70 +364,44 @@ module Azure::ARM::Network
464
364
  def list_all(custom_headers = nil)
465
365
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
466
366
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
467
- # Construct URL
468
- path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways"
469
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
470
- url = URI.join(@client.base_url, path)
471
- properties = {}
472
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
473
- unless url.query.nil?
474
- url.query.split('&').each do |url_item|
475
- url_items_parts = url_item.split('=')
476
- properties[url_items_parts[0]] = url_items_parts[1]
477
- end
478
- end
479
- properties.reject!{ |key, value| value.nil? }
480
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
481
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
482
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
483
- url = URI.parse(corrected_url)
484
-
485
- connection = Faraday.new(:url => url) do |faraday|
486
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
487
- faraday.use :cookie_jar
488
- faraday.adapter Faraday.default_adapter
489
- end
490
- request_headers = Hash.new
367
+ request_headers = {}
491
368
 
492
369
  # Set Headers
493
370
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
494
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
495
-
496
- unless custom_headers.nil?
497
- custom_headers.each do |key, value|
498
- request_headers[key] = value
499
- end
500
- end
501
-
502
- # Send Request
503
- promise = Concurrent::Promise.new do
504
- connection.get do |request|
505
- request.headers = request_headers
506
- @client.credentials.sign_request(request) unless @client.credentials.nil?
507
- end
371
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
372
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways'
373
+ options = {
374
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
375
+ path_params: {'subscriptionId' => @client.subscription_id},
376
+ query_params: {'api-version' => @client.api_version},
377
+ headers: request_headers.merge(custom_headers || {})
378
+ }
379
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
380
+ promise = request.run_promise do |req|
381
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
508
382
  end
509
383
 
510
384
  promise = promise.then do |http_response|
511
385
  status_code = http_response.status
512
386
  response_content = http_response.body
513
- unless (status_code == 200)
387
+ unless status_code == 200
514
388
  error_model = JSON.load(response_content)
515
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
389
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
516
390
  end
517
391
 
518
392
  # Create Result
519
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
393
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
520
394
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
521
395
  # Deserialize Response
522
396
  if status_code == 200
523
397
  begin
524
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
398
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
525
399
  unless parsed_response.nil?
526
400
  parsed_response = ApplicationGatewayListResult.deserialize_object(parsed_response)
527
401
  end
528
402
  result.body = parsed_response
529
403
  rescue Exception => e
530
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
404
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
531
405
  end
532
406
  end
533
407
 
@@ -540,6 +414,7 @@ module Azure::ARM::Network
540
414
  #
541
415
  # The Start ApplicationGateway operation starts application gatewayin the
542
416
  # specified resource group through Network resource provider.
417
+ #
543
418
  # @param resource_group_name [String] The name of the resource group.
544
419
  # @param application_gateway_name [String] The name of the application gateway.
545
420
  # @return [Concurrent::Promise] promise which provides async access to http
@@ -555,7 +430,7 @@ module Azure::ARM::Network
555
430
  end
556
431
 
557
432
  # Waiting for response.
558
- @client.get_post_or_delete_operation_result(response, nil, deserialize_method)
433
+ @client.get_post_or_delete_operation_result(response, deserialize_method)
559
434
  end
560
435
 
561
436
  promise
@@ -564,6 +439,7 @@ module Azure::ARM::Network
564
439
  #
565
440
  # The Start ApplicationGateway operation starts application gatewayin the
566
441
  # specified resource group through Network resource provider.
442
+ #
567
443
  # @param resource_group_name [String] The name of the resource group.
568
444
  # @param application_gateway_name [String] The name of the application gateway.
569
445
  # @param [Hash{String => String}] The hash of custom headers need to be
@@ -577,60 +453,33 @@ module Azure::ARM::Network
577
453
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
578
454
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
579
455
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
580
- # Construct URL
581
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start"
582
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
583
- path['{applicationGatewayName}'] = ERB::Util.url_encode(application_gateway_name) if path.include?('{applicationGatewayName}')
584
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
585
- url = URI.join(@client.base_url, path)
586
- properties = {}
587
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
588
- unless url.query.nil?
589
- url.query.split('&').each do |url_item|
590
- url_items_parts = url_item.split('=')
591
- properties[url_items_parts[0]] = url_items_parts[1]
592
- end
593
- end
594
- properties.reject!{ |key, value| value.nil? }
595
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
596
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
597
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
598
- url = URI.parse(corrected_url)
599
-
600
- connection = Faraday.new(:url => url) do |faraday|
601
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
602
- faraday.use :cookie_jar
603
- faraday.adapter Faraday.default_adapter
604
- end
605
- request_headers = Hash.new
456
+ request_headers = {}
606
457
 
607
458
  # Set Headers
608
459
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
609
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
610
-
611
- unless custom_headers.nil?
612
- custom_headers.each do |key, value|
613
- request_headers[key] = value
614
- end
615
- end
616
-
617
- # Send Request
618
- promise = Concurrent::Promise.new do
619
- connection.post do |request|
620
- request.headers = request_headers
621
- @client.credentials.sign_request(request) unless @client.credentials.nil?
622
- end
460
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
461
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start'
462
+ options = {
463
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
464
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
465
+ query_params: {'api-version' => @client.api_version},
466
+ headers: request_headers.merge(custom_headers || {})
467
+ }
468
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
469
+ promise = request.run_promise do |req|
470
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
623
471
  end
624
472
 
625
473
  promise = promise.then do |http_response|
626
474
  status_code = http_response.status
627
475
  response_content = http_response.body
628
- unless (status_code == 202)
629
- fail MsRestAzure::AzureOperationError.new(connection, http_response)
476
+ unless status_code == 200 || status_code == 202
477
+ error_model = JSON.load(response_content)
478
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
630
479
  end
631
480
 
632
481
  # Create Result
633
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
482
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
634
483
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
635
484
 
636
485
  result
@@ -642,6 +491,7 @@ module Azure::ARM::Network
642
491
  #
643
492
  # The STOP ApplicationGateway operation stops application gatewayin the
644
493
  # specified resource group through Network resource provider.
494
+ #
645
495
  # @param resource_group_name [String] The name of the resource group.
646
496
  # @param application_gateway_name [String] The name of the application gateway.
647
497
  # @return [Concurrent::Promise] promise which provides async access to http
@@ -657,7 +507,7 @@ module Azure::ARM::Network
657
507
  end
658
508
 
659
509
  # Waiting for response.
660
- @client.get_post_or_delete_operation_result(response, nil, deserialize_method)
510
+ @client.get_post_or_delete_operation_result(response, deserialize_method)
661
511
  end
662
512
 
663
513
  promise
@@ -666,6 +516,7 @@ module Azure::ARM::Network
666
516
  #
667
517
  # The STOP ApplicationGateway operation stops application gatewayin the
668
518
  # specified resource group through Network resource provider.
519
+ #
669
520
  # @param resource_group_name [String] The name of the resource group.
670
521
  # @param application_gateway_name [String] The name of the application gateway.
671
522
  # @param [Hash{String => String}] The hash of custom headers need to be
@@ -679,60 +530,33 @@ module Azure::ARM::Network
679
530
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
680
531
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
681
532
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
682
- # Construct URL
683
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop"
684
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
685
- path['{applicationGatewayName}'] = ERB::Util.url_encode(application_gateway_name) if path.include?('{applicationGatewayName}')
686
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
687
- url = URI.join(@client.base_url, path)
688
- properties = {}
689
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
690
- unless url.query.nil?
691
- url.query.split('&').each do |url_item|
692
- url_items_parts = url_item.split('=')
693
- properties[url_items_parts[0]] = url_items_parts[1]
694
- end
695
- end
696
- properties.reject!{ |key, value| value.nil? }
697
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
698
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
699
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
700
- url = URI.parse(corrected_url)
701
-
702
- connection = Faraday.new(:url => url) do |faraday|
703
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
704
- faraday.use :cookie_jar
705
- faraday.adapter Faraday.default_adapter
706
- end
707
- request_headers = Hash.new
533
+ request_headers = {}
708
534
 
709
535
  # Set Headers
710
536
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
711
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
712
-
713
- unless custom_headers.nil?
714
- custom_headers.each do |key, value|
715
- request_headers[key] = value
716
- end
717
- end
718
-
719
- # Send Request
720
- promise = Concurrent::Promise.new do
721
- connection.post do |request|
722
- request.headers = request_headers
723
- @client.credentials.sign_request(request) unless @client.credentials.nil?
724
- end
537
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
538
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop'
539
+ options = {
540
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
541
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
542
+ query_params: {'api-version' => @client.api_version},
543
+ headers: request_headers.merge(custom_headers || {})
544
+ }
545
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
546
+ promise = request.run_promise do |req|
547
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
725
548
  end
726
549
 
727
550
  promise = promise.then do |http_response|
728
551
  status_code = http_response.status
729
552
  response_content = http_response.body
730
- unless (status_code == 202 || status_code == 200)
731
- fail MsRestAzure::AzureOperationError.new(connection, http_response)
553
+ unless status_code == 200 || status_code == 202
554
+ error_model = JSON.load(response_content)
555
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
732
556
  end
733
557
 
734
558
  # Create Result
735
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
559
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
736
560
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
737
561
 
738
562
  result
@@ -744,6 +568,7 @@ module Azure::ARM::Network
744
568
  #
745
569
  # The List ApplicationGateway opertion retrieves all the applicationgateways
746
570
  # in a resource group.
571
+ #
747
572
  # @param next_page_link [String] The NextLink from the previous successful
748
573
  # call to List operation.
749
574
  # @param [Hash{String => String}] The hash of custom headers need to be
@@ -754,69 +579,43 @@ module Azure::ARM::Network
754
579
  #
755
580
  def list_next(next_page_link, custom_headers = nil)
756
581
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
757
- # Construct URL
758
- path = "{nextLink}"
759
- path['{nextLink}'] = next_page_link if path.include?('{nextLink}')
760
- url = URI.parse(path)
761
- properties = {}
762
- unless url.query.nil?
763
- url.query.split('&').each do |url_item|
764
- url_items_parts = url_item.split('=')
765
- properties[url_items_parts[0]] = url_items_parts[1]
766
- end
767
- end
768
- properties.reject!{ |key, value| value.nil? }
769
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
770
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
771
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
772
- url = URI.parse(corrected_url)
773
-
774
- connection = Faraday.new(:url => url) do |faraday|
775
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
776
- faraday.use :cookie_jar
777
- faraday.adapter Faraday.default_adapter
778
- end
779
- request_headers = Hash.new
582
+ request_headers = {}
780
583
 
781
584
  # Set Headers
782
585
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
783
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
784
-
785
- unless custom_headers.nil?
786
- custom_headers.each do |key, value|
787
- request_headers[key] = value
788
- end
789
- end
790
-
791
- # Send Request
792
- promise = Concurrent::Promise.new do
793
- connection.get do |request|
794
- request.headers = request_headers
795
- @client.credentials.sign_request(request) unless @client.credentials.nil?
796
- end
586
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
587
+ path_template = '{nextLink}'
588
+ options = {
589
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
590
+ skip_encoding_path_params: {'nextLink' => next_page_link},
591
+ headers: request_headers.merge(custom_headers || {})
592
+ }
593
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
594
+ promise = request.run_promise do |req|
595
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
797
596
  end
798
597
 
799
598
  promise = promise.then do |http_response|
800
599
  status_code = http_response.status
801
600
  response_content = http_response.body
802
- unless (status_code == 200)
601
+ unless status_code == 200
803
602
  error_model = JSON.load(response_content)
804
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
603
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
805
604
  end
806
605
 
807
606
  # Create Result
808
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
607
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
809
608
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
810
609
  # Deserialize Response
811
610
  if status_code == 200
812
611
  begin
813
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
612
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
814
613
  unless parsed_response.nil?
815
614
  parsed_response = ApplicationGatewayListResult.deserialize_object(parsed_response)
816
615
  end
817
616
  result.body = parsed_response
818
617
  rescue Exception => e
819
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
618
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
820
619
  end
821
620
  end
822
621
 
@@ -829,6 +628,7 @@ module Azure::ARM::Network
829
628
  #
830
629
  # The List applicationgateway opertion retrieves all the applicationgateways
831
630
  # in a subscription.
631
+ #
832
632
  # @param next_page_link [String] The NextLink from the previous successful
833
633
  # call to List operation.
834
634
  # @param [Hash{String => String}] The hash of custom headers need to be
@@ -839,69 +639,43 @@ module Azure::ARM::Network
839
639
  #
840
640
  def list_all_next(next_page_link, custom_headers = nil)
841
641
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
842
- # Construct URL
843
- path = "{nextLink}"
844
- path['{nextLink}'] = next_page_link if path.include?('{nextLink}')
845
- url = URI.parse(path)
846
- properties = {}
847
- unless url.query.nil?
848
- url.query.split('&').each do |url_item|
849
- url_items_parts = url_item.split('=')
850
- properties[url_items_parts[0]] = url_items_parts[1]
851
- end
852
- end
853
- properties.reject!{ |key, value| value.nil? }
854
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
855
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
856
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
857
- url = URI.parse(corrected_url)
858
-
859
- connection = Faraday.new(:url => url) do |faraday|
860
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
861
- faraday.use :cookie_jar
862
- faraday.adapter Faraday.default_adapter
863
- end
864
- request_headers = Hash.new
642
+ request_headers = {}
865
643
 
866
644
  # Set Headers
867
645
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
868
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
869
-
870
- unless custom_headers.nil?
871
- custom_headers.each do |key, value|
872
- request_headers[key] = value
873
- end
874
- end
875
-
876
- # Send Request
877
- promise = Concurrent::Promise.new do
878
- connection.get do |request|
879
- request.headers = request_headers
880
- @client.credentials.sign_request(request) unless @client.credentials.nil?
881
- end
646
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
647
+ path_template = '{nextLink}'
648
+ options = {
649
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
650
+ skip_encoding_path_params: {'nextLink' => next_page_link},
651
+ headers: request_headers.merge(custom_headers || {})
652
+ }
653
+ request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
654
+ promise = request.run_promise do |req|
655
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
882
656
  end
883
657
 
884
658
  promise = promise.then do |http_response|
885
659
  status_code = http_response.status
886
660
  response_content = http_response.body
887
- unless (status_code == 200)
661
+ unless status_code == 200
888
662
  error_model = JSON.load(response_content)
889
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
663
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
890
664
  end
891
665
 
892
666
  # Create Result
893
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
667
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
894
668
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
895
669
  # Deserialize Response
896
670
  if status_code == 200
897
671
  begin
898
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
672
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
899
673
  unless parsed_response.nil?
900
674
  parsed_response = ApplicationGatewayListResult.deserialize_object(parsed_response)
901
675
  end
902
676
  result.body = parsed_response
903
677
  rescue Exception => e
904
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
678
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
905
679
  end
906
680
  end
907
681