azure_mgmt_network 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -26
  3. data/azure_mgmt_network.gemspec +2 -2
  4. data/lib/azure_mgmt_network.rb +33 -31
  5. data/lib/azure_mgmt_network/application_gateways.rb +345 -55
  6. data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +207 -31
  7. data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +205 -31
  8. data/lib/azure_mgmt_network/express_route_circuits.rb +633 -168
  9. data/lib/azure_mgmt_network/express_route_service_providers.rb +73 -11
  10. data/lib/azure_mgmt_network/load_balancers.rb +267 -41
  11. data/lib/azure_mgmt_network/local_network_gateways.rb +205 -31
  12. data/lib/azure_mgmt_network/models/address_space.rb +1 -1
  13. data/lib/azure_mgmt_network/models/application_gateway.rb +1 -1
  14. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -1
  15. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -1
  16. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +5 -5
  17. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -1
  18. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +1 -1
  19. data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  20. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +1 -1
  21. data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +1 -1
  22. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -1
  23. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -1
  24. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -1
  25. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +1 -1
  26. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +1 -1
  27. data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +1 -1
  28. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +1 -1
  29. data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  30. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +1 -1
  31. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +1 -1
  32. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +1 -1
  33. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +1 -1
  34. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +1 -1
  35. data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  36. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -1
  37. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +1 -1
  38. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  39. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +1 -1
  40. data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  41. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -1
  42. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -1
  43. data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  44. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +1 -1
  45. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +1 -1
  46. data/lib/azure_mgmt_network/models/authorization_list_result.rb +1 -1
  47. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +1 -1
  48. data/lib/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  49. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +1 -1
  50. data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -1
  51. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +1 -1
  52. data/lib/azure_mgmt_network/models/bgp_settings.rb +1 -1
  53. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
  54. data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -1
  55. data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +1 -1
  56. data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -1
  57. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -1
  58. data/lib/azure_mgmt_network/models/error.rb +1 -1
  59. data/lib/azure_mgmt_network/models/error_details.rb +1 -1
  60. data/lib/azure_mgmt_network/models/express_route_circuit.rb +1 -1
  61. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +20 -1
  62. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -1
  63. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +1 -1
  64. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +1 -1
  65. data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  66. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +1 -1
  67. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +1 -1
  68. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +1 -1
  69. data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  70. data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  71. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +10 -1
  72. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +36 -32
  73. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +97 -0
  74. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +1 -1
  75. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +1 -1
  76. data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  77. data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  78. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +31 -11
  79. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +1 -1
  80. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +1 -1
  81. data/lib/azure_mgmt_network/models/{express_route_circuits_stats_list_result.rb → express_route_circuits_routes_table_summary_list_result.rb} +11 -8
  82. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +1 -1
  83. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +1 -1
  84. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +1 -1
  85. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +1 -1
  86. data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +1 -1
  87. data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +1 -1
  88. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +1 -1
  89. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +1 -1
  90. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -1
  91. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +1 -1
  92. data/lib/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  93. data/lib/azure_mgmt_network/models/ipconfiguration.rb +1 -1
  94. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +1 -1
  95. data/lib/azure_mgmt_network/models/ipversion.rb +16 -0
  96. data/lib/azure_mgmt_network/models/load_balancer.rb +1 -1
  97. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +1 -1
  98. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +1 -1
  99. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -1
  100. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +1 -1
  101. data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
  102. data/lib/azure_mgmt_network/models/local_network_gateway.rb +1 -1
  103. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +1 -1
  104. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +1 -1
  105. data/lib/azure_mgmt_network/models/network_interface.rb +1 -1
  106. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +11 -4
  107. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +1 -1
  108. data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +59 -14
  109. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +1 -1
  110. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +1 -1
  111. data/lib/azure_mgmt_network/models/network_operation_status.rb +1 -1
  112. data/lib/azure_mgmt_network/models/network_security_group.rb +1 -1
  113. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +1 -1
  114. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +1 -1
  115. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +1 -1
  116. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +1 -1
  117. data/lib/azure_mgmt_network/models/probe.rb +1 -1
  118. data/lib/azure_mgmt_network/models/probe_properties_format.rb +1 -1
  119. data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
  120. data/lib/azure_mgmt_network/models/processor_architecture.rb +1 -1
  121. data/lib/azure_mgmt_network/models/public_ipaddress.rb +1 -1
  122. data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
  123. data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +1 -1
  124. data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +15 -1
  125. data/lib/azure_mgmt_network/models/route.rb +1 -1
  126. data/lib/azure_mgmt_network/models/route_list_result.rb +1 -1
  127. data/lib/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  128. data/lib/azure_mgmt_network/models/route_properties_format.rb +1 -1
  129. data/lib/azure_mgmt_network/models/route_table.rb +1 -1
  130. data/lib/azure_mgmt_network/models/route_table_list_result.rb +1 -1
  131. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +1 -1
  132. data/lib/azure_mgmt_network/models/security_rule.rb +1 -1
  133. data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
  134. data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  135. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +1 -1
  136. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +1 -1
  137. data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  138. data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  139. data/lib/azure_mgmt_network/models/subnet.rb +1 -1
  140. data/lib/azure_mgmt_network/models/subnet_list_result.rb +1 -1
  141. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +1 -1
  142. data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
  143. data/lib/azure_mgmt_network/models/usage.rb +1 -1
  144. data/lib/azure_mgmt_network/models/usage_name.rb +1 -1
  145. data/lib/azure_mgmt_network/models/usages_list_result.rb +1 -1
  146. data/lib/azure_mgmt_network/models/virtual_network.rb +1 -1
  147. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +1 -1
  148. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +1 -1
  149. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +1 -1
  150. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +1 -1
  151. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  152. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  153. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +1 -1
  154. data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +1 -1
  155. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +1 -1
  156. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +1 -1
  157. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +1 -1
  158. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
  159. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
  160. data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  161. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +1 -1
  162. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +1 -1
  163. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +1 -1
  164. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +1 -1
  165. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +1 -1
  166. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +1 -1
  167. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +1 -1
  168. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +1 -1
  169. data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
  170. data/lib/azure_mgmt_network/module_definition.rb +1 -1
  171. data/lib/azure_mgmt_network/network_interfaces.rb +471 -66
  172. data/lib/azure_mgmt_network/network_management_client.rb +40 -7
  173. data/lib/azure_mgmt_network/network_security_groups.rb +277 -41
  174. data/lib/azure_mgmt_network/public_ipaddresses.rb +269 -41
  175. data/lib/azure_mgmt_network/route_tables.rb +261 -41
  176. data/lib/azure_mgmt_network/routes.rb +201 -31
  177. data/lib/azure_mgmt_network/security_rules.rb +213 -31
  178. data/lib/azure_mgmt_network/subnets.rb +199 -31
  179. data/lib/azure_mgmt_network/usages.rb +71 -11
  180. data/lib/azure_mgmt_network/version.rb +2 -2
  181. data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +357 -52
  182. data/lib/azure_mgmt_network/virtual_network_gateways.rb +303 -45
  183. data/lib/azure_mgmt_network/virtual_networks.rb +261 -41
  184. metadata +34 -25
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e7c8487286392f5fd2138b4bb64c37bad9b7b0cb
4
- data.tar.gz: 41ab6e0defd0e15fc26b1abb602c84de297657e9
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTdjNzI1MGE2YmMyZWU0Njk5ODMyZDdhZDZjM2Y4MWY3ZmQwYWYwMA==
5
+ data.tar.gz: !binary |-
6
+ MDlkYzE2NjRlYTlkMjE2ZjhmMzcyYmEyMGFmYTEwMjA1MjI5YjMzZg==
5
7
  SHA512:
6
- metadata.gz: b2cd4858941c9088ccf81bb4e28f273b24c1eba4ec6ae80b3d9cb94a79e367625f8e91f5a8c8b604b62b9a78476689f0ed3bc85df79a369548b2d2e9a62538ab
7
- data.tar.gz: 0be5b32a59ca03c4bea12970df0970daa6ebb3e739ba9c95a57efb200a86430f1e6f2024e1776c24adbeb9cfd2ee7726a95447063a6d8b7ece7134f82e6d22d0
8
+ metadata.gz: !binary |-
9
+ Y2U3NTBjZjgwYjgzOGI5M2I3NjFiNmVmYzUyMDIzZjY4NDUwOTNlNjgxNGU2
10
+ NTJiZGM4ZjAyN2Y2ZjZmN2Y1Y2JmODE0MmYyOGZkMzRjYmI4NTY0MzAwNTRk
11
+ YjAyN2YxY2RhOGI3MTQ0MzQ0ZGM4ZTg4NDhiYzYzNTdiMTZiOTQ=
12
+ data.tar.gz: !binary |-
13
+ MmU5OTRlNTJhOWQzY2Y4ODI2NWIzMDdhNWM2OTk5MTYwNzAwODFmMWUyNzRi
14
+ YzdkNTE2NjdjOWJkNGNhMjRjNmM3YmZlMjlmYzgwMTExY2NiNDkyY2VkNDQ2
15
+ ZTE0NDRlYWE3ZTZhZmQ4NjFkODZhZjlmODc4ZmYxMWIzZDIxZDY=
data/README.md CHANGED
@@ -75,7 +75,7 @@ params = VirtualNetwork.new
75
75
  params.location = 'westus'
76
76
  params.properties = props
77
77
 
78
- promise = client.virtual_networks.create_or_update('existing_resource_group', 'new_vn', params)
78
+ promise = client.virtual_networks.create_or_update_async('existing_resource_group', 'new_vn', params)
79
79
  ```
80
80
 
81
81
  The SDK method returns a promise which you can utilize depending on your needs. E.g. if you need to get result immediately via sync blocking call - do the following:
@@ -104,28 +104,3 @@ p virtual_network.id # id of the new vn
104
104
  Congrats, you've create new virtual network. We encourage you to try more stuff and let us know your feedback!
105
105
  For advanced SDK usage please reference to the spec files.
106
106
 
107
- # Running tests
108
-
109
- ## Adding env variables
110
-
111
- To run the tests you would need to set the following environment variables with your real Azure data:
112
-
113
- * AZURE_TENANT_ID="your tenant id or domain"
114
- * AZURE_CLIENT_ID="your client id / application id"
115
- * AZURE_CLIENT_SECRET="your service principal secret"
116
- * AZURE_SUBSCRIPTION_ID="your subscription id"
117
-
118
- * run_long_tasks - set this to '1' only if you would like to run time consuming tests like VM creation.
119
-
120
- ## Starting tests
121
-
122
- Just run 'rspec' command from the current gem folder.
123
-
124
- # Contribution
125
-
126
- All the SDK code was generated by tool 'AutoRest' - https://github.com/Azure/autorest
127
- So if you have found a bug or have an idea for a new feature - suggest, discuss and contribute it into the AutoRest repository. After that SDK maintainers will update the sources and the gem.
128
-
129
- # Provide feedback
130
-
131
- Send email to the azsdkteam@microsoft.com or file new issue in this repository.
@@ -29,7 +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.2'
32
+ spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
33
33
 
34
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.0'
34
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -48,6 +48,19 @@ module Azure::ARM::Network
48
48
  autoload :ApplicationGatewayFrontendPortPropertiesFormat, 'azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb'
49
49
  autoload :ApplicationGatewayBackendAddress, 'azure_mgmt_network/models/application_gateway_backend_address.rb'
50
50
  autoload :ApplicationGatewayBackendAddressPoolPropertiesFormat, 'azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb'
51
+ autoload :NetworkInterfaceIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb'
52
+ autoload :BackendAddressPoolPropertiesFormat, 'azure_mgmt_network/models/backend_address_pool_properties_format.rb'
53
+ autoload :InboundNatRulePropertiesFormat, 'azure_mgmt_network/models/inbound_nat_rule_properties_format.rb'
54
+ autoload :SubnetPropertiesFormat, 'azure_mgmt_network/models/subnet_properties_format.rb'
55
+ autoload :NetworkSecurityGroupPropertiesFormat, 'azure_mgmt_network/models/network_security_group_properties_format.rb'
56
+ autoload :SecurityRulePropertiesFormat, 'azure_mgmt_network/models/security_rule_properties_format.rb'
57
+ autoload :NetworkInterfacePropertiesFormat, 'azure_mgmt_network/models/network_interface_properties_format.rb'
58
+ autoload :NetworkInterfaceDnsSettings, 'azure_mgmt_network/models/network_interface_dns_settings.rb'
59
+ autoload :RouteTablePropertiesFormat, 'azure_mgmt_network/models/route_table_properties_format.rb'
60
+ autoload :RoutePropertiesFormat, 'azure_mgmt_network/models/route_properties_format.rb'
61
+ autoload :IPConfigurationPropertiesFormat, 'azure_mgmt_network/models/ipconfiguration_properties_format.rb'
62
+ autoload :PublicIPAddressPropertiesFormat, 'azure_mgmt_network/models/public_ipaddress_properties_format.rb'
63
+ autoload :PublicIPAddressDnsSettings, 'azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
51
64
  autoload :ApplicationGatewayBackendHttpSettingsPropertiesFormat, 'azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb'
52
65
  autoload :ApplicationGatewayHttpListenerPropertiesFormat, 'azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb'
53
66
  autoload :ApplicationGatewayPathRulePropertiesFormat, 'azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb'
@@ -69,25 +82,13 @@ module Azure::ARM::Network
69
82
  autoload :ExpressRouteCircuitsArpTableListResult, 'azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb'
70
83
  autoload :ExpressRouteCircuitRoutesTable, 'azure_mgmt_network/models/express_route_circuit_routes_table.rb'
71
84
  autoload :ExpressRouteCircuitsRoutesTableListResult, 'azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
72
- autoload :ExpressRouteCircuitsStatsListResult, 'azure_mgmt_network/models/express_route_circuits_stats_list_result.rb'
85
+ autoload :ExpressRouteCircuitRoutesTableSummary, 'azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb'
86
+ autoload :ExpressRouteCircuitsRoutesTableSummaryListResult, 'azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb'
73
87
  autoload :ExpressRouteCircuitListResult, 'azure_mgmt_network/models/express_route_circuit_list_result.rb'
74
88
  autoload :ExpressRouteServiceProviderBandwidthsOffered, 'azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb'
75
89
  autoload :ExpressRouteServiceProviderPropertiesFormat, 'azure_mgmt_network/models/express_route_service_provider_properties_format.rb'
76
90
  autoload :ExpressRouteServiceProviderListResult, 'azure_mgmt_network/models/express_route_service_provider_list_result.rb'
77
91
  autoload :FrontendIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb'
78
- autoload :SubnetPropertiesFormat, 'azure_mgmt_network/models/subnet_properties_format.rb'
79
- autoload :NetworkSecurityGroupPropertiesFormat, 'azure_mgmt_network/models/network_security_group_properties_format.rb'
80
- autoload :SecurityRulePropertiesFormat, 'azure_mgmt_network/models/security_rule_properties_format.rb'
81
- autoload :NetworkInterfacePropertiesFormat, 'azure_mgmt_network/models/network_interface_properties_format.rb'
82
- autoload :NetworkInterfaceIPConfigurationPropertiesFormat, 'azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb'
83
- autoload :BackendAddressPoolPropertiesFormat, 'azure_mgmt_network/models/backend_address_pool_properties_format.rb'
84
- autoload :InboundNatRulePropertiesFormat, 'azure_mgmt_network/models/inbound_nat_rule_properties_format.rb'
85
- autoload :PublicIPAddressPropertiesFormat, 'azure_mgmt_network/models/public_ipaddress_properties_format.rb'
86
- autoload :IPConfigurationPropertiesFormat, 'azure_mgmt_network/models/ipconfiguration_properties_format.rb'
87
- autoload :PublicIPAddressDnsSettings, 'azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
88
- autoload :NetworkInterfaceDnsSettings, 'azure_mgmt_network/models/network_interface_dns_settings.rb'
89
- autoload :RouteTablePropertiesFormat, 'azure_mgmt_network/models/route_table_properties_format.rb'
90
- autoload :RoutePropertiesFormat, 'azure_mgmt_network/models/route_properties_format.rb'
91
92
  autoload :LoadBalancingRulePropertiesFormat, 'azure_mgmt_network/models/load_balancing_rule_properties_format.rb'
92
93
  autoload :ProbePropertiesFormat, 'azure_mgmt_network/models/probe_properties_format.rb'
93
94
  autoload :InboundNatPoolPropertiesFormat, 'azure_mgmt_network/models/inbound_nat_pool_properties_format.rb'
@@ -132,7 +133,18 @@ module Azure::ARM::Network
132
133
  autoload :ApplicationGatewaySslCertificate, 'azure_mgmt_network/models/application_gateway_ssl_certificate.rb'
133
134
  autoload :ApplicationGatewayFrontendIPConfiguration, 'azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb'
134
135
  autoload :ApplicationGatewayFrontendPort, 'azure_mgmt_network/models/application_gateway_frontend_port.rb'
136
+ autoload :NetworkInterfaceIPConfiguration, 'azure_mgmt_network/models/network_interface_ipconfiguration.rb'
135
137
  autoload :ApplicationGatewayBackendAddressPool, 'azure_mgmt_network/models/application_gateway_backend_address_pool.rb'
138
+ autoload :BackendAddressPool, 'azure_mgmt_network/models/backend_address_pool.rb'
139
+ autoload :InboundNatRule, 'azure_mgmt_network/models/inbound_nat_rule.rb'
140
+ autoload :Subnet, 'azure_mgmt_network/models/subnet.rb'
141
+ autoload :NetworkSecurityGroup, 'azure_mgmt_network/models/network_security_group.rb'
142
+ autoload :SecurityRule, 'azure_mgmt_network/models/security_rule.rb'
143
+ autoload :NetworkInterface, 'azure_mgmt_network/models/network_interface.rb'
144
+ autoload :RouteTable, 'azure_mgmt_network/models/route_table.rb'
145
+ autoload :Route, 'azure_mgmt_network/models/route.rb'
146
+ autoload :IPConfiguration, 'azure_mgmt_network/models/ipconfiguration.rb'
147
+ autoload :PublicIPAddress, 'azure_mgmt_network/models/public_ipaddress.rb'
136
148
  autoload :ApplicationGatewayBackendHttpSettings, 'azure_mgmt_network/models/application_gateway_backend_http_settings.rb'
137
149
  autoload :ApplicationGatewayHttpListener, 'azure_mgmt_network/models/application_gateway_http_listener.rb'
138
150
  autoload :ApplicationGatewayPathRule, 'azure_mgmt_network/models/application_gateway_path_rule.rb'
@@ -144,17 +156,6 @@ module Azure::ARM::Network
144
156
  autoload :ExpressRouteCircuitPeering, 'azure_mgmt_network/models/express_route_circuit_peering.rb'
145
157
  autoload :ExpressRouteCircuit, 'azure_mgmt_network/models/express_route_circuit.rb'
146
158
  autoload :ExpressRouteServiceProvider, 'azure_mgmt_network/models/express_route_service_provider.rb'
147
- autoload :Subnet, 'azure_mgmt_network/models/subnet.rb'
148
- autoload :NetworkSecurityGroup, 'azure_mgmt_network/models/network_security_group.rb'
149
- autoload :SecurityRule, 'azure_mgmt_network/models/security_rule.rb'
150
- autoload :NetworkInterface, 'azure_mgmt_network/models/network_interface.rb'
151
- autoload :NetworkInterfaceIPConfiguration, 'azure_mgmt_network/models/network_interface_ipconfiguration.rb'
152
- autoload :BackendAddressPool, 'azure_mgmt_network/models/backend_address_pool.rb'
153
- autoload :InboundNatRule, 'azure_mgmt_network/models/inbound_nat_rule.rb'
154
- autoload :PublicIPAddress, 'azure_mgmt_network/models/public_ipaddress.rb'
155
- autoload :IPConfiguration, 'azure_mgmt_network/models/ipconfiguration.rb'
156
- autoload :RouteTable, 'azure_mgmt_network/models/route_table.rb'
157
- autoload :Route, 'azure_mgmt_network/models/route.rb'
158
159
  autoload :FrontendIPConfiguration, 'azure_mgmt_network/models/frontend_ipconfiguration.rb'
159
160
  autoload :LoadBalancingRule, 'azure_mgmt_network/models/load_balancing_rule.rb'
160
161
  autoload :Probe, 'azure_mgmt_network/models/probe.rb'
@@ -171,6 +172,12 @@ module Azure::ARM::Network
171
172
  autoload :ApplicationGatewaySkuName, 'azure_mgmt_network/models/application_gateway_sku_name.rb'
172
173
  autoload :ApplicationGatewayTier, 'azure_mgmt_network/models/application_gateway_tier.rb'
173
174
  autoload :IPAllocationMethod, 'azure_mgmt_network/models/ipallocation_method.rb'
175
+ autoload :TransportProtocol, 'azure_mgmt_network/models/transport_protocol.rb'
176
+ autoload :IPVersion, 'azure_mgmt_network/models/ipversion.rb'
177
+ autoload :SecurityRuleProtocol, 'azure_mgmt_network/models/security_rule_protocol.rb'
178
+ autoload :SecurityRuleAccess, 'azure_mgmt_network/models/security_rule_access.rb'
179
+ autoload :SecurityRuleDirection, 'azure_mgmt_network/models/security_rule_direction.rb'
180
+ autoload :RouteNextHopType, 'azure_mgmt_network/models/route_next_hop_type.rb'
174
181
  autoload :ApplicationGatewayProtocol, 'azure_mgmt_network/models/application_gateway_protocol.rb'
175
182
  autoload :ApplicationGatewayCookieBasedAffinity, 'azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb'
176
183
  autoload :ApplicationGatewayRequestRoutingRuleType, 'azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb'
@@ -182,11 +189,6 @@ module Azure::ARM::Network
182
189
  autoload :ExpressRouteCircuitSkuTier, 'azure_mgmt_network/models/express_route_circuit_sku_tier.rb'
183
190
  autoload :ExpressRouteCircuitSkuFamily, 'azure_mgmt_network/models/express_route_circuit_sku_family.rb'
184
191
  autoload :ServiceProviderProvisioningState, 'azure_mgmt_network/models/service_provider_provisioning_state.rb'
185
- autoload :RouteNextHopType, 'azure_mgmt_network/models/route_next_hop_type.rb'
186
- autoload :SecurityRuleProtocol, 'azure_mgmt_network/models/security_rule_protocol.rb'
187
- autoload :SecurityRuleAccess, 'azure_mgmt_network/models/security_rule_access.rb'
188
- autoload :SecurityRuleDirection, 'azure_mgmt_network/models/security_rule_direction.rb'
189
- autoload :TransportProtocol, 'azure_mgmt_network/models/transport_protocol.rb'
190
192
  autoload :LoadDistribution, 'azure_mgmt_network/models/load_distribution.rb'
191
193
  autoload :ProbeProtocol, 'azure_mgmt_network/models/probe_protocol.rb'
192
194
  autoload :VirtualNetworkGatewayType, 'azure_mgmt_network/models/virtual_network_gateway_type.rb'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -36,7 +36,7 @@ module Azure::ARM::Network
36
36
  #
37
37
  def delete(resource_group_name, application_gateway_name, custom_headers = nil)
38
38
  # Send request
39
- promise = begin_delete(resource_group_name, application_gateway_name, custom_headers)
39
+ promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers)
40
40
 
41
41
  promise = promise.then do |response|
42
42
  # Defining deserialization method.
@@ -44,7 +44,7 @@ module Azure::ARM::Network
44
44
  end
45
45
 
46
46
  # Waiting for response.
47
- @client.get_post_or_delete_operation_result(response, deserialize_method)
47
+ @client.get_long_running_operation_result(response, deserialize_method)
48
48
  end
49
49
 
50
50
  promise
@@ -56,13 +56,42 @@ module Azure::ARM::Network
56
56
  #
57
57
  # @param resource_group_name [String] The name of the resource group.
58
58
  # @param application_gateway_name [String] The name of the applicationgateway.
59
- # @param [Hash{String => String}] The hash of custom headers need to be
60
- # applied to HTTP request.
59
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
60
+ # will be added to the HTTP request.
61
61
  #
62
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
63
- # response.
64
62
  #
65
63
  def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil)
64
+ response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value!
65
+ nil
66
+ end
67
+
68
+ #
69
+ # The delete applicationgateway operation deletes the specified
70
+ # applicationgateway.
71
+ #
72
+ # @param resource_group_name [String] The name of the resource group.
73
+ # @param application_gateway_name [String] The name of the applicationgateway.
74
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
75
+ # will be added to the HTTP request.
76
+ #
77
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
78
+ #
79
+ def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
80
+ begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value!
81
+ end
82
+
83
+ #
84
+ # The delete applicationgateway operation deletes the specified
85
+ # applicationgateway.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group.
88
+ # @param application_gateway_name [String] The name of the applicationgateway.
89
+ # @param [Hash{String => String}] A hash of custom headers that will be added
90
+ # to the HTTP request.
91
+ #
92
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
93
+ #
94
+ def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil)
66
95
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
96
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
68
97
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -79,7 +108,10 @@ module Azure::ARM::Network
79
108
  query_params: {'api-version' => @client.api_version},
80
109
  headers: request_headers.merge(custom_headers || {})
81
110
  }
82
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
111
+
112
+ request_url = @base_url || @client.base_url
113
+
114
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
83
115
  promise = request.run_promise do |req|
84
116
  @client.credentials.sign_request(req) unless @client.credentials.nil?
85
117
  end
@@ -108,13 +140,43 @@ module Azure::ARM::Network
108
140
  #
109
141
  # @param resource_group_name [String] The name of the resource group.
110
142
  # @param application_gateway_name [String] The name of the applicationgateway.
111
- # @param [Hash{String => String}] The hash of custom headers need to be
112
- # applied to HTTP request.
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
113
145
  #
114
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
115
- # response.
146
+ # @return [ApplicationGateway] operation results.
116
147
  #
117
148
  def get(resource_group_name, application_gateway_name, custom_headers = nil)
149
+ response = get_async(resource_group_name, application_gateway_name, custom_headers).value!
150
+ response.body unless response.nil?
151
+ end
152
+
153
+ #
154
+ # The Get applicationgateway operation retreives information about the
155
+ # specified applicationgateway.
156
+ #
157
+ # @param resource_group_name [String] The name of the resource group.
158
+ # @param application_gateway_name [String] The name of the applicationgateway.
159
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
160
+ # will be added to the HTTP request.
161
+ #
162
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
163
+ #
164
+ def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
165
+ get_async(resource_group_name, application_gateway_name, custom_headers).value!
166
+ end
167
+
168
+ #
169
+ # The Get applicationgateway operation retreives information about the
170
+ # specified applicationgateway.
171
+ #
172
+ # @param resource_group_name [String] The name of the resource group.
173
+ # @param application_gateway_name [String] The name of the applicationgateway.
174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
175
+ # to the HTTP request.
176
+ #
177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
+ #
179
+ def get_async(resource_group_name, application_gateway_name, custom_headers = nil)
118
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
119
181
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
120
182
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -131,7 +193,10 @@ module Azure::ARM::Network
131
193
  query_params: {'api-version' => @client.api_version},
132
194
  headers: request_headers.merge(custom_headers || {})
133
195
  }
134
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
196
+
197
+ request_url = @base_url || @client.base_url
198
+
199
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
135
200
  promise = request.run_promise do |req|
136
201
  @client.credentials.sign_request(req) unless @client.credentials.nil?
137
202
  end
@@ -185,7 +250,7 @@ module Azure::ARM::Network
185
250
  #
186
251
  def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
187
252
  # Send request
188
- promise = begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers)
253
+ promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers)
189
254
 
190
255
  promise = promise.then do |response|
191
256
  # Defining deserialization method.
@@ -196,7 +261,7 @@ module Azure::ARM::Network
196
261
  end
197
262
 
198
263
  # Waiting for response.
199
- @client.get_put_operation_result(response, deserialize_method)
264
+ @client.get_long_running_operation_result(response, deserialize_method)
200
265
  end
201
266
 
202
267
  promise
@@ -209,13 +274,45 @@ module Azure::ARM::Network
209
274
  # @param application_gateway_name [String] The name of the ApplicationGateway.
210
275
  # @param parameters [ApplicationGateway] Parameters supplied to the
211
276
  # create/delete ApplicationGateway operation
212
- # @param [Hash{String => String}] The hash of custom headers need to be
213
- # applied to HTTP request.
277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
278
+ # will be added to the HTTP request.
214
279
  #
215
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
216
- # response.
280
+ # @return [ApplicationGateway] operation results.
217
281
  #
218
282
  def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
283
+ response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
284
+ response.body unless response.nil?
285
+ end
286
+
287
+ #
288
+ # The Put ApplicationGateway operation creates/updates a ApplicationGateway
289
+ #
290
+ # @param resource_group_name [String] The name of the resource group.
291
+ # @param application_gateway_name [String] The name of the ApplicationGateway.
292
+ # @param parameters [ApplicationGateway] Parameters supplied to the
293
+ # create/delete ApplicationGateway operation
294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
+ # will be added to the HTTP request.
296
+ #
297
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
298
+ #
299
+ def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
300
+ begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
301
+ end
302
+
303
+ #
304
+ # The Put ApplicationGateway operation creates/updates a ApplicationGateway
305
+ #
306
+ # @param resource_group_name [String] The name of the resource group.
307
+ # @param application_gateway_name [String] The name of the ApplicationGateway.
308
+ # @param parameters [ApplicationGateway] Parameters supplied to the
309
+ # create/delete ApplicationGateway operation
310
+ # @param [Hash{String => String}] A hash of custom headers that will be added
311
+ # to the HTTP request.
312
+ #
313
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
314
+ #
315
+ def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
219
316
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
220
317
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
221
318
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -233,7 +330,7 @@ module Azure::ARM::Network
233
330
  unless parameters.nil?
234
331
  parameters = ApplicationGateway.serialize_object(parameters)
235
332
  end
236
- request_content = JSON.generate(parameters, quirks_mode: true)
333
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
237
334
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
238
335
  options = {
239
336
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -242,7 +339,10 @@ module Azure::ARM::Network
242
339
  body: request_content,
243
340
  headers: request_headers.merge(custom_headers || {})
244
341
  }
245
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
342
+
343
+ request_url = @base_url || @client.base_url
344
+
345
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
246
346
  promise = request.run_promise do |req|
247
347
  @client.credentials.sign_request(req) unless @client.credentials.nil?
248
348
  end
@@ -294,13 +394,41 @@ module Azure::ARM::Network
294
394
  # in a resource group.
295
395
  #
296
396
  # @param resource_group_name [String] The name of the resource group.
297
- # @param [Hash{String => String}] The hash of custom headers need to be
298
- # applied to HTTP request.
397
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
398
+ # will be added to the HTTP request.
299
399
  #
300
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
301
- # response.
400
+ # @return [ApplicationGatewayListResult] operation results.
302
401
  #
303
402
  def list(resource_group_name, custom_headers = nil)
403
+ response = list_async(resource_group_name, custom_headers).value!
404
+ response.body unless response.nil?
405
+ end
406
+
407
+ #
408
+ # The List ApplicationGateway opertion retrieves all the applicationgateways
409
+ # in a resource group.
410
+ #
411
+ # @param resource_group_name [String] The name of the resource group.
412
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
413
+ # will be added to the HTTP request.
414
+ #
415
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
416
+ #
417
+ def list_with_http_info(resource_group_name, custom_headers = nil)
418
+ list_async(resource_group_name, custom_headers).value!
419
+ end
420
+
421
+ #
422
+ # The List ApplicationGateway opertion retrieves all the applicationgateways
423
+ # in a resource group.
424
+ #
425
+ # @param resource_group_name [String] The name of the resource group.
426
+ # @param [Hash{String => String}] A hash of custom headers that will be added
427
+ # to the HTTP request.
428
+ #
429
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
430
+ #
431
+ def list_async(resource_group_name, custom_headers = nil)
304
432
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
305
433
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
306
434
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -316,7 +444,10 @@ module Azure::ARM::Network
316
444
  query_params: {'api-version' => @client.api_version},
317
445
  headers: request_headers.merge(custom_headers || {})
318
446
  }
319
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
447
+
448
+ request_url = @base_url || @client.base_url
449
+
450
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
320
451
  promise = request.run_promise do |req|
321
452
  @client.credentials.sign_request(req) unless @client.credentials.nil?
322
453
  end
@@ -355,13 +486,39 @@ module Azure::ARM::Network
355
486
  # The List applicationgateway opertion retrieves all the applicationgateways
356
487
  # in a subscription.
357
488
  #
358
- # @param [Hash{String => String}] The hash of custom headers need to be
359
- # applied to HTTP request.
489
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
490
+ # will be added to the HTTP request.
360
491
  #
361
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
362
- # response.
492
+ # @return [ApplicationGatewayListResult] operation results.
363
493
  #
364
494
  def list_all(custom_headers = nil)
495
+ response = list_all_async(custom_headers).value!
496
+ response.body unless response.nil?
497
+ end
498
+
499
+ #
500
+ # The List applicationgateway opertion retrieves all the applicationgateways
501
+ # in a subscription.
502
+ #
503
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
504
+ # will be added to the HTTP request.
505
+ #
506
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
507
+ #
508
+ def list_all_with_http_info(custom_headers = nil)
509
+ list_all_async(custom_headers).value!
510
+ end
511
+
512
+ #
513
+ # The List applicationgateway opertion retrieves all the applicationgateways
514
+ # in a subscription.
515
+ #
516
+ # @param [Hash{String => String}] A hash of custom headers that will be added
517
+ # to the HTTP request.
518
+ #
519
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
520
+ #
521
+ def list_all_async(custom_headers = nil)
365
522
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
366
523
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
367
524
  request_headers = {}
@@ -376,7 +533,10 @@ module Azure::ARM::Network
376
533
  query_params: {'api-version' => @client.api_version},
377
534
  headers: request_headers.merge(custom_headers || {})
378
535
  }
379
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
536
+
537
+ request_url = @base_url || @client.base_url
538
+
539
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
380
540
  promise = request.run_promise do |req|
381
541
  @client.credentials.sign_request(req) unless @client.credentials.nil?
382
542
  end
@@ -422,7 +582,7 @@ module Azure::ARM::Network
422
582
  #
423
583
  def start(resource_group_name, application_gateway_name, custom_headers = nil)
424
584
  # Send request
425
- promise = begin_start(resource_group_name, application_gateway_name, custom_headers)
585
+ promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers)
426
586
 
427
587
  promise = promise.then do |response|
428
588
  # Defining deserialization method.
@@ -430,7 +590,7 @@ module Azure::ARM::Network
430
590
  end
431
591
 
432
592
  # Waiting for response.
433
- @client.get_post_or_delete_operation_result(response, deserialize_method)
593
+ @client.get_long_running_operation_result(response, deserialize_method)
434
594
  end
435
595
 
436
596
  promise
@@ -442,13 +602,42 @@ module Azure::ARM::Network
442
602
  #
443
603
  # @param resource_group_name [String] The name of the resource group.
444
604
  # @param application_gateway_name [String] The name of the application gateway.
445
- # @param [Hash{String => String}] The hash of custom headers need to be
446
- # applied to HTTP request.
605
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
606
+ # will be added to the HTTP request.
447
607
  #
448
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
449
- # response.
450
608
  #
451
609
  def begin_start(resource_group_name, application_gateway_name, custom_headers = nil)
610
+ response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value!
611
+ nil
612
+ end
613
+
614
+ #
615
+ # The Start ApplicationGateway operation starts application gatewayin the
616
+ # specified resource group through Network resource provider.
617
+ #
618
+ # @param resource_group_name [String] The name of the resource group.
619
+ # @param application_gateway_name [String] The name of the application gateway.
620
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
621
+ # will be added to the HTTP request.
622
+ #
623
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
624
+ #
625
+ def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
626
+ begin_start_async(resource_group_name, application_gateway_name, custom_headers).value!
627
+ end
628
+
629
+ #
630
+ # The Start ApplicationGateway operation starts application gatewayin the
631
+ # specified resource group through Network resource provider.
632
+ #
633
+ # @param resource_group_name [String] The name of the resource group.
634
+ # @param application_gateway_name [String] The name of the application gateway.
635
+ # @param [Hash{String => String}] A hash of custom headers that will be added
636
+ # to the HTTP request.
637
+ #
638
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
639
+ #
640
+ def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil)
452
641
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
453
642
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
454
643
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -465,7 +654,10 @@ module Azure::ARM::Network
465
654
  query_params: {'api-version' => @client.api_version},
466
655
  headers: request_headers.merge(custom_headers || {})
467
656
  }
468
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
657
+
658
+ request_url = @base_url || @client.base_url
659
+
660
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
469
661
  promise = request.run_promise do |req|
470
662
  @client.credentials.sign_request(req) unless @client.credentials.nil?
471
663
  end
@@ -499,7 +691,7 @@ module Azure::ARM::Network
499
691
  #
500
692
  def stop(resource_group_name, application_gateway_name, custom_headers = nil)
501
693
  # Send request
502
- promise = begin_stop(resource_group_name, application_gateway_name, custom_headers)
694
+ promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers)
503
695
 
504
696
  promise = promise.then do |response|
505
697
  # Defining deserialization method.
@@ -507,7 +699,7 @@ module Azure::ARM::Network
507
699
  end
508
700
 
509
701
  # Waiting for response.
510
- @client.get_post_or_delete_operation_result(response, deserialize_method)
702
+ @client.get_long_running_operation_result(response, deserialize_method)
511
703
  end
512
704
 
513
705
  promise
@@ -519,13 +711,42 @@ module Azure::ARM::Network
519
711
  #
520
712
  # @param resource_group_name [String] The name of the resource group.
521
713
  # @param application_gateway_name [String] The name of the application gateway.
522
- # @param [Hash{String => String}] The hash of custom headers need to be
523
- # applied to HTTP request.
714
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
715
+ # will be added to the HTTP request.
524
716
  #
525
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
526
- # response.
527
717
  #
528
718
  def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil)
719
+ response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value!
720
+ nil
721
+ end
722
+
723
+ #
724
+ # The STOP ApplicationGateway operation stops application gatewayin the
725
+ # specified resource group through Network resource provider.
726
+ #
727
+ # @param resource_group_name [String] The name of the resource group.
728
+ # @param application_gateway_name [String] The name of the application gateway.
729
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
730
+ # will be added to the HTTP request.
731
+ #
732
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
733
+ #
734
+ def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
735
+ begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value!
736
+ end
737
+
738
+ #
739
+ # The STOP ApplicationGateway operation stops application gatewayin the
740
+ # specified resource group through Network resource provider.
741
+ #
742
+ # @param resource_group_name [String] The name of the resource group.
743
+ # @param application_gateway_name [String] The name of the application gateway.
744
+ # @param [Hash{String => String}] A hash of custom headers that will be added
745
+ # to the HTTP request.
746
+ #
747
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
748
+ #
749
+ def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
529
750
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
530
751
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
531
752
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -542,7 +763,10 @@ module Azure::ARM::Network
542
763
  query_params: {'api-version' => @client.api_version},
543
764
  headers: request_headers.merge(custom_headers || {})
544
765
  }
545
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
766
+
767
+ request_url = @base_url || @client.base_url
768
+
769
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
546
770
  promise = request.run_promise do |req|
547
771
  @client.credentials.sign_request(req) unless @client.credentials.nil?
548
772
  end
@@ -571,13 +795,43 @@ module Azure::ARM::Network
571
795
  #
572
796
  # @param next_page_link [String] The NextLink from the previous successful
573
797
  # call to List operation.
574
- # @param [Hash{String => String}] The hash of custom headers need to be
575
- # applied to HTTP request.
798
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
799
+ # will be added to the HTTP request.
576
800
  #
577
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
578
- # response.
801
+ # @return [ApplicationGatewayListResult] operation results.
579
802
  #
580
803
  def list_next(next_page_link, custom_headers = nil)
804
+ response = list_next_async(next_page_link, custom_headers).value!
805
+ response.body unless response.nil?
806
+ end
807
+
808
+ #
809
+ # The List ApplicationGateway opertion retrieves all the applicationgateways
810
+ # in a resource group.
811
+ #
812
+ # @param next_page_link [String] The NextLink from the previous successful
813
+ # call to List operation.
814
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
815
+ # will be added to the HTTP request.
816
+ #
817
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
818
+ #
819
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
820
+ list_next_async(next_page_link, custom_headers).value!
821
+ end
822
+
823
+ #
824
+ # The List ApplicationGateway opertion retrieves all the applicationgateways
825
+ # in a resource group.
826
+ #
827
+ # @param next_page_link [String] The NextLink from the previous successful
828
+ # call to List operation.
829
+ # @param [Hash{String => String}] A hash of custom headers that will be added
830
+ # to the HTTP request.
831
+ #
832
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
833
+ #
834
+ def list_next_async(next_page_link, custom_headers = nil)
581
835
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
582
836
  request_headers = {}
583
837
 
@@ -590,7 +844,10 @@ module Azure::ARM::Network
590
844
  skip_encoding_path_params: {'nextLink' => next_page_link},
591
845
  headers: request_headers.merge(custom_headers || {})
592
846
  }
593
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
847
+
848
+ request_url = @base_url || @client.base_url
849
+
850
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
594
851
  promise = request.run_promise do |req|
595
852
  @client.credentials.sign_request(req) unless @client.credentials.nil?
596
853
  end
@@ -631,13 +888,43 @@ module Azure::ARM::Network
631
888
  #
632
889
  # @param next_page_link [String] The NextLink from the previous successful
633
890
  # call to List operation.
634
- # @param [Hash{String => String}] The hash of custom headers need to be
635
- # applied to HTTP request.
891
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
892
+ # will be added to the HTTP request.
636
893
  #
637
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
638
- # response.
894
+ # @return [ApplicationGatewayListResult] operation results.
639
895
  #
640
896
  def list_all_next(next_page_link, custom_headers = nil)
897
+ response = list_all_next_async(next_page_link, custom_headers).value!
898
+ response.body unless response.nil?
899
+ end
900
+
901
+ #
902
+ # The List applicationgateway opertion retrieves all the applicationgateways
903
+ # in a subscription.
904
+ #
905
+ # @param next_page_link [String] The NextLink from the previous successful
906
+ # call to List operation.
907
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
908
+ # will be added to the HTTP request.
909
+ #
910
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
911
+ #
912
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
913
+ list_all_next_async(next_page_link, custom_headers).value!
914
+ end
915
+
916
+ #
917
+ # The List applicationgateway opertion retrieves all the applicationgateways
918
+ # in a subscription.
919
+ #
920
+ # @param next_page_link [String] The NextLink from the previous successful
921
+ # call to List operation.
922
+ # @param [Hash{String => String}] A hash of custom headers that will be added
923
+ # to the HTTP request.
924
+ #
925
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
926
+ #
927
+ def list_all_next_async(next_page_link, custom_headers = nil)
641
928
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
642
929
  request_headers = {}
643
930
 
@@ -650,7 +937,10 @@ module Azure::ARM::Network
650
937
  skip_encoding_path_params: {'nextLink' => next_page_link},
651
938
  headers: request_headers.merge(custom_headers || {})
652
939
  }
653
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
940
+
941
+ request_url = @base_url || @client.base_url
942
+
943
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
654
944
  promise = request.run_promise do |req|
655
945
  @client.credentials.sign_request(req) unless @client.credentials.nil?
656
946
  end