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
@@ -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
 
@@ -47,7 +47,7 @@ module Azure::ARM::Network
47
47
  #
48
48
  def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
49
49
  # Send request
50
- promise = begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers)
50
+ promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers)
51
51
 
52
52
  promise = promise.then do |response|
53
53
  # Defining deserialization method.
@@ -58,7 +58,7 @@ module Azure::ARM::Network
58
58
  end
59
59
 
60
60
  # Waiting for response.
61
- @client.get_put_operation_result(response, deserialize_method)
61
+ @client.get_long_running_operation_result(response, deserialize_method)
62
62
  end
63
63
 
64
64
  promise
@@ -74,13 +74,51 @@ module Azure::ARM::Network
74
74
  # @param parameters [LocalNetworkGateway] Parameters supplied to the Begin
75
75
  # Create or update Local Network Gateway operation through Network resource
76
76
  # provider.
77
- # @param [Hash{String => String}] The hash of custom headers need to be
78
- # applied to HTTP request.
77
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
78
+ # will be added to the HTTP request.
79
79
  #
80
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
81
- # response.
80
+ # @return [LocalNetworkGateway] operation results.
82
81
  #
83
82
  def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
83
+ response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value!
84
+ response.body unless response.nil?
85
+ end
86
+
87
+ #
88
+ # The Put LocalNetworkGateway operation creates/updates a local network
89
+ # gateway in the specified resource group through Network resource provider.
90
+ #
91
+ # @param resource_group_name [String] The name of the resource group.
92
+ # @param local_network_gateway_name [String] The name of the local network
93
+ # gateway.
94
+ # @param parameters [LocalNetworkGateway] Parameters supplied to the Begin
95
+ # Create or update Local Network Gateway operation through Network resource
96
+ # provider.
97
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
98
+ # will be added to the HTTP request.
99
+ #
100
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
101
+ #
102
+ def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
103
+ begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value!
104
+ end
105
+
106
+ #
107
+ # The Put LocalNetworkGateway operation creates/updates a local network
108
+ # gateway in the specified resource group through Network resource provider.
109
+ #
110
+ # @param resource_group_name [String] The name of the resource group.
111
+ # @param local_network_gateway_name [String] The name of the local network
112
+ # gateway.
113
+ # @param parameters [LocalNetworkGateway] Parameters supplied to the Begin
114
+ # Create or update Local Network Gateway operation through Network resource
115
+ # provider.
116
+ # @param [Hash{String => String}] A hash of custom headers that will be added
117
+ # to the HTTP request.
118
+ #
119
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
120
+ #
121
+ def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
84
122
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
85
123
  fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
86
124
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -98,7 +136,7 @@ module Azure::ARM::Network
98
136
  unless parameters.nil?
99
137
  parameters = LocalNetworkGateway.serialize_object(parameters)
100
138
  end
101
- request_content = JSON.generate(parameters, quirks_mode: true)
139
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
102
140
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}'
103
141
  options = {
104
142
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -107,7 +145,10 @@ module Azure::ARM::Network
107
145
  body: request_content,
108
146
  headers: request_headers.merge(custom_headers || {})
109
147
  }
110
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
148
+
149
+ request_url = @base_url || @client.base_url
150
+
151
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
111
152
  promise = request.run_promise do |req|
112
153
  @client.credentials.sign_request(req) unless @client.credentials.nil?
113
154
  end
@@ -161,13 +202,45 @@ module Azure::ARM::Network
161
202
  # @param resource_group_name [String] The name of the resource group.
162
203
  # @param local_network_gateway_name [String] The name of the local network
163
204
  # gateway.
164
- # @param [Hash{String => String}] The hash of custom headers need to be
165
- # applied to HTTP request.
205
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
206
+ # will be added to the HTTP request.
166
207
  #
167
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
168
- # response.
208
+ # @return [LocalNetworkGateway] operation results.
169
209
  #
170
210
  def get(resource_group_name, local_network_gateway_name, custom_headers = nil)
211
+ response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value!
212
+ response.body unless response.nil?
213
+ end
214
+
215
+ #
216
+ # The Get LocalNetworkGateway operation retrieves information about the
217
+ # specified local network gateway through Network resource provider.
218
+ #
219
+ # @param resource_group_name [String] The name of the resource group.
220
+ # @param local_network_gateway_name [String] The name of the local network
221
+ # gateway.
222
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
223
+ # will be added to the HTTP request.
224
+ #
225
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
226
+ #
227
+ def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil)
228
+ get_async(resource_group_name, local_network_gateway_name, custom_headers).value!
229
+ end
230
+
231
+ #
232
+ # The Get LocalNetworkGateway operation retrieves information about the
233
+ # specified local network gateway through Network resource provider.
234
+ #
235
+ # @param resource_group_name [String] The name of the resource group.
236
+ # @param local_network_gateway_name [String] The name of the local network
237
+ # gateway.
238
+ # @param [Hash{String => String}] A hash of custom headers that will be added
239
+ # to the HTTP request.
240
+ #
241
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
+ #
243
+ def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
171
244
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
172
245
  fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
173
246
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -184,7 +257,10 @@ module Azure::ARM::Network
184
257
  query_params: {'api-version' => @client.api_version},
185
258
  headers: request_headers.merge(custom_headers || {})
186
259
  }
187
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
260
+
261
+ request_url = @base_url || @client.base_url
262
+
263
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
188
264
  promise = request.run_promise do |req|
189
265
  @client.credentials.sign_request(req) unless @client.credentials.nil?
190
266
  end
@@ -231,7 +307,7 @@ module Azure::ARM::Network
231
307
  #
232
308
  def delete(resource_group_name, local_network_gateway_name, custom_headers = nil)
233
309
  # Send request
234
- promise = begin_delete(resource_group_name, local_network_gateway_name, custom_headers)
310
+ promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers)
235
311
 
236
312
  promise = promise.then do |response|
237
313
  # Defining deserialization method.
@@ -239,7 +315,7 @@ module Azure::ARM::Network
239
315
  end
240
316
 
241
317
  # Waiting for response.
242
- @client.get_post_or_delete_operation_result(response, deserialize_method)
318
+ @client.get_long_running_operation_result(response, deserialize_method)
243
319
  end
244
320
 
245
321
  promise
@@ -252,13 +328,44 @@ module Azure::ARM::Network
252
328
  # @param resource_group_name [String] The name of the resource group.
253
329
  # @param local_network_gateway_name [String] The name of the local network
254
330
  # gateway.
255
- # @param [Hash{String => String}] The hash of custom headers need to be
256
- # applied to HTTP request.
331
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
332
+ # will be added to the HTTP request.
257
333
  #
258
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
259
- # response.
260
334
  #
261
335
  def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil)
336
+ response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value!
337
+ nil
338
+ end
339
+
340
+ #
341
+ # The Delete LocalNetworkGateway operation deletes the specifed local network
342
+ # Gateway through Network resource provider.
343
+ #
344
+ # @param resource_group_name [String] The name of the resource group.
345
+ # @param local_network_gateway_name [String] The name of the local network
346
+ # gateway.
347
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
348
+ # will be added to the HTTP request.
349
+ #
350
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
351
+ #
352
+ def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil)
353
+ begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value!
354
+ end
355
+
356
+ #
357
+ # The Delete LocalNetworkGateway operation deletes the specifed local network
358
+ # Gateway through Network resource provider.
359
+ #
360
+ # @param resource_group_name [String] The name of the resource group.
361
+ # @param local_network_gateway_name [String] The name of the local network
362
+ # gateway.
363
+ # @param [Hash{String => String}] A hash of custom headers that will be added
364
+ # to the HTTP request.
365
+ #
366
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
367
+ #
368
+ def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
262
369
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
263
370
  fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
264
371
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -275,7 +382,10 @@ module Azure::ARM::Network
275
382
  query_params: {'api-version' => @client.api_version},
276
383
  headers: request_headers.merge(custom_headers || {})
277
384
  }
278
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
385
+
386
+ request_url = @base_url || @client.base_url
387
+
388
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
279
389
  promise = request.run_promise do |req|
280
390
  @client.credentials.sign_request(req) unless @client.credentials.nil?
281
391
  end
@@ -303,13 +413,41 @@ module Azure::ARM::Network
303
413
  # gateways stored.
304
414
  #
305
415
  # @param resource_group_name [String] The name of the resource group.
306
- # @param [Hash{String => String}] The hash of custom headers need to be
307
- # applied to HTTP request.
416
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
417
+ # will be added to the HTTP request.
308
418
  #
309
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
310
- # response.
419
+ # @return [LocalNetworkGatewayListResult] operation results.
311
420
  #
312
421
  def list(resource_group_name, custom_headers = nil)
422
+ response = list_async(resource_group_name, custom_headers).value!
423
+ response.body unless response.nil?
424
+ end
425
+
426
+ #
427
+ # The List LocalNetworkGateways opertion retrieves all the local network
428
+ # gateways stored.
429
+ #
430
+ # @param resource_group_name [String] The name of the resource group.
431
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
432
+ # will be added to the HTTP request.
433
+ #
434
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
435
+ #
436
+ def list_with_http_info(resource_group_name, custom_headers = nil)
437
+ list_async(resource_group_name, custom_headers).value!
438
+ end
439
+
440
+ #
441
+ # The List LocalNetworkGateways opertion retrieves all the local network
442
+ # gateways stored.
443
+ #
444
+ # @param resource_group_name [String] The name of the resource group.
445
+ # @param [Hash{String => String}] A hash of custom headers that will be added
446
+ # to the HTTP request.
447
+ #
448
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
449
+ #
450
+ def list_async(resource_group_name, custom_headers = nil)
313
451
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
314
452
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
315
453
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -325,7 +463,10 @@ module Azure::ARM::Network
325
463
  query_params: {'api-version' => @client.api_version},
326
464
  headers: request_headers.merge(custom_headers || {})
327
465
  }
328
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
466
+
467
+ request_url = @base_url || @client.base_url
468
+
469
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
329
470
  promise = request.run_promise do |req|
330
471
  @client.credentials.sign_request(req) unless @client.credentials.nil?
331
472
  end
@@ -366,13 +507,43 @@ module Azure::ARM::Network
366
507
  #
367
508
  # @param next_page_link [String] The NextLink from the previous successful
368
509
  # call to List operation.
369
- # @param [Hash{String => String}] The hash of custom headers need to be
370
- # applied to HTTP request.
510
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
+ # will be added to the HTTP request.
371
512
  #
372
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
373
- # response.
513
+ # @return [LocalNetworkGatewayListResult] operation results.
374
514
  #
375
515
  def list_next(next_page_link, custom_headers = nil)
516
+ response = list_next_async(next_page_link, custom_headers).value!
517
+ response.body unless response.nil?
518
+ end
519
+
520
+ #
521
+ # The List LocalNetworkGateways opertion retrieves all the local network
522
+ # gateways stored.
523
+ #
524
+ # @param next_page_link [String] The NextLink from the previous successful
525
+ # call to List operation.
526
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
527
+ # will be added to the HTTP request.
528
+ #
529
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
530
+ #
531
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
532
+ list_next_async(next_page_link, custom_headers).value!
533
+ end
534
+
535
+ #
536
+ # The List LocalNetworkGateways opertion retrieves all the local network
537
+ # gateways stored.
538
+ #
539
+ # @param next_page_link [String] The NextLink from the previous successful
540
+ # call to List operation.
541
+ # @param [Hash{String => String}] A hash of custom headers that will be added
542
+ # to the HTTP request.
543
+ #
544
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
545
+ #
546
+ def list_next_async(next_page_link, custom_headers = nil)
376
547
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
377
548
  request_headers = {}
378
549
 
@@ -385,7 +556,10 @@ module Azure::ARM::Network
385
556
  skip_encoding_path_params: {'nextLink' => next_page_link},
386
557
  headers: request_headers.merge(custom_headers || {})
387
558
  }
388
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
559
+
560
+ request_url = @base_url || @client.base_url
561
+
562
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
389
563
  promise = request.run_promise do |req|
390
564
  @client.credentials.sign_request(req) unless @client.credentials.nil?
391
565
  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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -12,8 +12,8 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<SubResource>] Gets or sets backendIPConfiguration of
16
- # application gateway
15
+ # @return [Array<NetworkInterfaceIPConfiguration>] Gets collection of
16
+ # references to IPs defined in NICs
17
17
  attr_accessor :backend_ipconfigurations
18
18
 
19
19
  # @return [Array<ApplicationGatewayBackendAddress>] Gets or sets the
@@ -46,7 +46,7 @@ module Azure::ARM::Network
46
46
  serializedArray = []
47
47
  serialized_property.each do |element|
48
48
  unless element.nil?
49
- element = MsRestAzure::SubResource.serialize_object(element)
49
+ element = NetworkInterfaceIPConfiguration.serialize_object(element)
50
50
  end
51
51
  serializedArray.push(element)
52
52
  end
@@ -88,7 +88,7 @@ module Azure::ARM::Network
88
88
  deserialized_array = []
89
89
  deserialized_property.each do |element2|
90
90
  unless element2.nil?
91
- element2 = MsRestAzure::SubResource.deserialize_object(element2)
91
+ element2 = NetworkInterfaceIPConfiguration.deserialize_object(element2)
92
92
  end
93
93
  deserialized_array.push(element2)
94
94
  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
 
@@ -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
 
@@ -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
 
@@ -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