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
 
@@ -16,6 +16,10 @@ module Azure::ARM::Network
16
16
  # (Static/Dynamic). Possible values include: 'Static', 'Dynamic'
17
17
  attr_accessor :public_ipallocation_method
18
18
 
19
+ # @return [IPVersion] Gets or sets PublicIP address version (IPv4/IPv6).
20
+ # Possible values include: 'IPv4', 'IPv6'
21
+ attr_accessor :public_ipaddress_version
22
+
19
23
  # @return [IPConfiguration]
20
24
  attr_accessor :ip_configuration
21
25
 
@@ -57,6 +61,9 @@ module Azure::ARM::Network
57
61
  serialized_property = object.public_ipallocation_method
58
62
  output_object['publicIPAllocationMethod'] = serialized_property unless serialized_property.nil?
59
63
 
64
+ serialized_property = object.public_ipaddress_version
65
+ output_object['publicIPAddressVersion'] = serialized_property unless serialized_property.nil?
66
+
60
67
  serialized_property = object.ip_configuration
61
68
  unless serialized_property.nil?
62
69
  serialized_property = IPConfiguration.serialize_object(serialized_property)
@@ -100,6 +107,13 @@ module Azure::ARM::Network
100
107
  end
101
108
  output_object.public_ipallocation_method = deserialized_property
102
109
 
110
+ deserialized_property = object['publicIPAddressVersion']
111
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
112
+ enum_is_valid = IPVersion.constants.any? { |e| IPVersion.const_get(e).to_s.downcase == deserialized_property.downcase }
113
+ warn 'Enum IPVersion does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
114
+ end
115
+ output_object.public_ipaddress_version = deserialized_property
116
+
103
117
  deserialized_property = object['ipConfiguration']
104
118
  unless deserialized_property.nil?
105
119
  deserialized_property = IPConfiguration.deserialize_object(deserialized_property)
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -35,7 +35,7 @@ module Azure::ARM::Network
35
35
  #
36
36
  def delete(resource_group_name, network_interface_name, custom_headers = nil)
37
37
  # Send request
38
- promise = begin_delete(resource_group_name, network_interface_name, custom_headers)
38
+ promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers)
39
39
 
40
40
  promise = promise.then do |response|
41
41
  # Defining deserialization method.
@@ -43,7 +43,7 @@ module Azure::ARM::Network
43
43
  end
44
44
 
45
45
  # Waiting for response.
46
- @client.get_post_or_delete_operation_result(response, deserialize_method)
46
+ @client.get_long_running_operation_result(response, deserialize_method)
47
47
  end
48
48
 
49
49
  promise
@@ -54,13 +54,40 @@ module Azure::ARM::Network
54
54
  #
55
55
  # @param resource_group_name [String] The name of the resource group.
56
56
  # @param network_interface_name [String] The name of the network interface.
57
- # @param [Hash{String => String}] The hash of custom headers need to be
58
- # applied to HTTP request.
57
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
58
+ # will be added to the HTTP request.
59
59
  #
60
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
61
- # response.
62
60
  #
63
61
  def begin_delete(resource_group_name, network_interface_name, custom_headers = nil)
62
+ response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value!
63
+ nil
64
+ end
65
+
66
+ #
67
+ # The delete netwokInterface operation deletes the specified netwokInterface.
68
+ #
69
+ # @param resource_group_name [String] The name of the resource group.
70
+ # @param network_interface_name [String] The name of the network interface.
71
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
72
+ # will be added to the HTTP request.
73
+ #
74
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
75
+ #
76
+ def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil)
77
+ begin_delete_async(resource_group_name, network_interface_name, custom_headers).value!
78
+ end
79
+
80
+ #
81
+ # The delete netwokInterface operation deletes the specified netwokInterface.
82
+ #
83
+ # @param resource_group_name [String] The name of the resource group.
84
+ # @param network_interface_name [String] The name of the network interface.
85
+ # @param [Hash{String => String}] A hash of custom headers that will be added
86
+ # to the HTTP request.
87
+ #
88
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
89
+ #
90
+ def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil)
64
91
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
92
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
66
93
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -77,7 +104,10 @@ module Azure::ARM::Network
77
104
  query_params: {'api-version' => @client.api_version},
78
105
  headers: request_headers.merge(custom_headers || {})
79
106
  }
80
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
107
+
108
+ request_url = @base_url || @client.base_url
109
+
110
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
81
111
  promise = request.run_promise do |req|
82
112
  @client.credentials.sign_request(req) unless @client.credentials.nil?
83
113
  end
@@ -107,13 +137,45 @@ module Azure::ARM::Network
107
137
  # @param resource_group_name [String] The name of the resource group.
108
138
  # @param network_interface_name [String] The name of the network interface.
109
139
  # @param expand [String] expand references resources.
110
- # @param [Hash{String => String}] The hash of custom headers need to be
111
- # applied to HTTP request.
140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
+ # will be added to the HTTP request.
112
142
  #
113
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
114
- # response.
143
+ # @return [NetworkInterface] operation results.
115
144
  #
116
145
  def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil)
146
+ response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value!
147
+ response.body unless response.nil?
148
+ end
149
+
150
+ #
151
+ # The Get ntework interface operation retreives information about the
152
+ # specified network interface.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param network_interface_name [String] The name of the network interface.
156
+ # @param expand [String] expand references resources.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil)
163
+ get_async(resource_group_name, network_interface_name, expand, custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # The Get ntework interface operation retreives information about the
168
+ # specified network interface.
169
+ #
170
+ # @param resource_group_name [String] The name of the resource group.
171
+ # @param network_interface_name [String] The name of the network interface.
172
+ # @param expand [String] expand references resources.
173
+ # @param [Hash{String => String}] A hash of custom headers that will be added
174
+ # to the HTTP request.
175
+ #
176
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
177
+ #
178
+ def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil)
117
179
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
180
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
119
181
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -130,7 +192,10 @@ module Azure::ARM::Network
130
192
  query_params: {'api-version' => @client.api_version,'$expand' => expand},
131
193
  headers: request_headers.merge(custom_headers || {})
132
194
  }
133
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
195
+
196
+ request_url = @base_url || @client.base_url
197
+
198
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
134
199
  promise = request.run_promise do |req|
135
200
  @client.credentials.sign_request(req) unless @client.credentials.nil?
136
201
  end
@@ -184,7 +249,7 @@ module Azure::ARM::Network
184
249
  #
185
250
  def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil)
186
251
  # Send request
187
- promise = begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers)
252
+ promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers)
188
253
 
189
254
  promise = promise.then do |response|
190
255
  # Defining deserialization method.
@@ -195,7 +260,7 @@ module Azure::ARM::Network
195
260
  end
196
261
 
197
262
  # Waiting for response.
198
- @client.get_put_operation_result(response, deserialize_method)
263
+ @client.get_long_running_operation_result(response, deserialize_method)
199
264
  end
200
265
 
201
266
  promise
@@ -208,13 +273,45 @@ module Azure::ARM::Network
208
273
  # @param network_interface_name [String] The name of the network interface.
209
274
  # @param parameters [NetworkInterface] Parameters supplied to the
210
275
  # create/update NetworkInterface operation
211
- # @param [Hash{String => String}] The hash of custom headers need to be
212
- # applied to HTTP request.
276
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
277
+ # will be added to the HTTP request.
213
278
  #
214
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
215
- # response.
279
+ # @return [NetworkInterface] operation results.
216
280
  #
217
281
  def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil)
282
+ response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value!
283
+ response.body unless response.nil?
284
+ end
285
+
286
+ #
287
+ # The Put NetworkInterface operation creates/updates a networkInterface
288
+ #
289
+ # @param resource_group_name [String] The name of the resource group.
290
+ # @param network_interface_name [String] The name of the network interface.
291
+ # @param parameters [NetworkInterface] Parameters supplied to the
292
+ # create/update NetworkInterface operation
293
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
294
+ # will be added to the HTTP request.
295
+ #
296
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
297
+ #
298
+ def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil)
299
+ begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value!
300
+ end
301
+
302
+ #
303
+ # The Put NetworkInterface operation creates/updates a networkInterface
304
+ #
305
+ # @param resource_group_name [String] The name of the resource group.
306
+ # @param network_interface_name [String] The name of the network interface.
307
+ # @param parameters [NetworkInterface] Parameters supplied to the
308
+ # create/update NetworkInterface operation
309
+ # @param [Hash{String => String}] A hash of custom headers that will be added
310
+ # to the HTTP request.
311
+ #
312
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
313
+ #
314
+ def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil)
218
315
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
219
316
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
220
317
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -232,7 +329,7 @@ module Azure::ARM::Network
232
329
  unless parameters.nil?
233
330
  parameters = NetworkInterface.serialize_object(parameters)
234
331
  end
235
- request_content = JSON.generate(parameters, quirks_mode: true)
332
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
236
333
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'
237
334
  options = {
238
335
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -241,7 +338,10 @@ module Azure::ARM::Network
241
338
  body: request_content,
242
339
  headers: request_headers.merge(custom_headers || {})
243
340
  }
244
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
341
+
342
+ request_url = @base_url || @client.base_url
343
+
344
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
245
345
  promise = request.run_promise do |req|
246
346
  @client.credentials.sign_request(req) unless @client.credentials.nil?
247
347
  end
@@ -296,13 +396,47 @@ module Azure::ARM::Network
296
396
  # @param virtual_machine_scale_set_name [String] The name of the virtual
297
397
  # machine scale set.
298
398
  # @param virtualmachine_index [String] The virtual machine index.
299
- # @param [Hash{String => String}] The hash of custom headers need to be
300
- # applied to HTTP request.
399
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
400
+ # will be added to the HTTP request.
301
401
  #
302
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
303
- # response.
402
+ # @return [NetworkInterfaceListResult] operation results.
304
403
  #
305
404
  def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
405
+ response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
406
+ response.body unless response.nil?
407
+ end
408
+
409
+ #
410
+ # The list network interface operation retrieves information about all network
411
+ # interfaces in a virtual machine from a virtual machine scale set.
412
+ #
413
+ # @param resource_group_name [String] The name of the resource group.
414
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
415
+ # machine scale set.
416
+ # @param virtualmachine_index [String] The virtual machine index.
417
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
418
+ # will be added to the HTTP request.
419
+ #
420
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
421
+ #
422
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
423
+ list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
424
+ end
425
+
426
+ #
427
+ # The list network interface operation retrieves information about all network
428
+ # interfaces in a virtual machine from a virtual machine scale set.
429
+ #
430
+ # @param resource_group_name [String] The name of the resource group.
431
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
432
+ # machine scale set.
433
+ # @param virtualmachine_index [String] The virtual machine index.
434
+ # @param [Hash{String => String}] A hash of custom headers that will be added
435
+ # to the HTTP request.
436
+ #
437
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
438
+ #
439
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
306
440
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
307
441
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
308
442
  fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
@@ -320,7 +454,10 @@ module Azure::ARM::Network
320
454
  query_params: {'api-version' => @client.api_version},
321
455
  headers: request_headers.merge(custom_headers || {})
322
456
  }
323
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
457
+
458
+ request_url = @base_url || @client.base_url
459
+
460
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
324
461
  promise = request.run_promise do |req|
325
462
  @client.credentials.sign_request(req) unless @client.credentials.nil?
326
463
  end
@@ -362,13 +499,45 @@ module Azure::ARM::Network
362
499
  # @param resource_group_name [String] The name of the resource group.
363
500
  # @param virtual_machine_scale_set_name [String] The name of the virtual
364
501
  # machine scale set.
365
- # @param [Hash{String => String}] The hash of custom headers need to be
366
- # applied to HTTP request.
502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
+ # will be added to the HTTP request.
367
504
  #
368
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
369
- # response.
505
+ # @return [NetworkInterfaceListResult] operation results.
370
506
  #
371
507
  def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
508
+ response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
509
+ response.body unless response.nil?
510
+ end
511
+
512
+ #
513
+ # The list network interface operation retrieves information about all network
514
+ # interfaces in a virtual machine scale set.
515
+ #
516
+ # @param resource_group_name [String] The name of the resource group.
517
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
518
+ # machine scale set.
519
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
520
+ # will be added to the HTTP request.
521
+ #
522
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
523
+ #
524
+ def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
525
+ list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
526
+ end
527
+
528
+ #
529
+ # The list network interface operation retrieves information about all network
530
+ # interfaces in a virtual machine scale set.
531
+ #
532
+ # @param resource_group_name [String] The name of the resource group.
533
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
534
+ # machine scale set.
535
+ # @param [Hash{String => String}] A hash of custom headers that will be added
536
+ # to the HTTP request.
537
+ #
538
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
539
+ #
540
+ def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
372
541
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
373
542
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
374
543
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -385,7 +554,10 @@ module Azure::ARM::Network
385
554
  query_params: {'api-version' => @client.api_version},
386
555
  headers: request_headers.merge(custom_headers || {})
387
556
  }
388
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
557
+
558
+ request_url = @base_url || @client.base_url
559
+
560
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
389
561
  promise = request.run_promise do |req|
390
562
  @client.credentials.sign_request(req) unless @client.credentials.nil?
391
563
  end
@@ -430,13 +602,51 @@ module Azure::ARM::Network
430
602
  # @param virtualmachine_index [String] The virtual machine index.
431
603
  # @param network_interface_name [String] The name of the network interface.
432
604
  # @param expand [String] expand references resources.
433
- # @param [Hash{String => String}] The hash of custom headers need to be
434
- # 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.
435
607
  #
436
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
437
- # response.
608
+ # @return [NetworkInterface] operation results.
438
609
  #
439
610
  def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
611
+ response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value!
612
+ response.body unless response.nil?
613
+ end
614
+
615
+ #
616
+ # The Get ntework interface operation retreives information about the
617
+ # specified network interface in a virtual machine scale set.
618
+ #
619
+ # @param resource_group_name [String] The name of the resource group.
620
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
621
+ # machine scale set.
622
+ # @param virtualmachine_index [String] The virtual machine index.
623
+ # @param network_interface_name [String] The name of the network interface.
624
+ # @param expand [String] expand references resources.
625
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
626
+ # will be added to the HTTP request.
627
+ #
628
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
629
+ #
630
+ def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
631
+ get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value!
632
+ end
633
+
634
+ #
635
+ # The Get ntework interface operation retreives information about the
636
+ # specified network interface in a virtual machine scale set.
637
+ #
638
+ # @param resource_group_name [String] The name of the resource group.
639
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
640
+ # machine scale set.
641
+ # @param virtualmachine_index [String] The virtual machine index.
642
+ # @param network_interface_name [String] The name of the network interface.
643
+ # @param expand [String] expand references resources.
644
+ # @param [Hash{String => String}] A hash of custom headers that will be added
645
+ # to the HTTP request.
646
+ #
647
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
648
+ #
649
+ def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
440
650
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
441
651
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
442
652
  fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
@@ -455,7 +665,10 @@ module Azure::ARM::Network
455
665
  query_params: {'api-version' => @client.api_version,'$expand' => expand},
456
666
  headers: request_headers.merge(custom_headers || {})
457
667
  }
458
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
668
+
669
+ request_url = @base_url || @client.base_url
670
+
671
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
459
672
  promise = request.run_promise do |req|
460
673
  @client.credentials.sign_request(req) unless @client.credentials.nil?
461
674
  end
@@ -494,13 +707,39 @@ module Azure::ARM::Network
494
707
  # The List networkInterfaces opertion retrieves all the networkInterfaces in a
495
708
  # subscription.
496
709
  #
497
- # @param [Hash{String => String}] The hash of custom headers need to be
498
- # applied to HTTP request.
710
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
711
+ # will be added to the HTTP request.
499
712
  #
500
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
501
- # response.
713
+ # @return [NetworkInterfaceListResult] operation results.
502
714
  #
503
715
  def list_all(custom_headers = nil)
716
+ response = list_all_async(custom_headers).value!
717
+ response.body unless response.nil?
718
+ end
719
+
720
+ #
721
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
722
+ # subscription.
723
+ #
724
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
725
+ # will be added to the HTTP request.
726
+ #
727
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
728
+ #
729
+ def list_all_with_http_info(custom_headers = nil)
730
+ list_all_async(custom_headers).value!
731
+ end
732
+
733
+ #
734
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
735
+ # subscription.
736
+ #
737
+ # @param [Hash{String => String}] A hash of custom headers that will be added
738
+ # to the HTTP request.
739
+ #
740
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
741
+ #
742
+ def list_all_async(custom_headers = nil)
504
743
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
505
744
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
506
745
  request_headers = {}
@@ -515,7 +754,10 @@ module Azure::ARM::Network
515
754
  query_params: {'api-version' => @client.api_version},
516
755
  headers: request_headers.merge(custom_headers || {})
517
756
  }
518
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
757
+
758
+ request_url = @base_url || @client.base_url
759
+
760
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
519
761
  promise = request.run_promise do |req|
520
762
  @client.credentials.sign_request(req) unless @client.credentials.nil?
521
763
  end
@@ -555,13 +797,41 @@ module Azure::ARM::Network
555
797
  # resource group.
556
798
  #
557
799
  # @param resource_group_name [String] The name of the resource group.
558
- # @param [Hash{String => String}] The hash of custom headers need to be
559
- # applied to HTTP request.
800
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
801
+ # will be added to the HTTP request.
560
802
  #
561
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
562
- # response.
803
+ # @return [NetworkInterfaceListResult] operation results.
563
804
  #
564
805
  def list(resource_group_name, custom_headers = nil)
806
+ response = list_async(resource_group_name, custom_headers).value!
807
+ response.body unless response.nil?
808
+ end
809
+
810
+ #
811
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
812
+ # resource group.
813
+ #
814
+ # @param resource_group_name [String] The name of the resource group.
815
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
816
+ # will be added to the HTTP request.
817
+ #
818
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
819
+ #
820
+ def list_with_http_info(resource_group_name, custom_headers = nil)
821
+ list_async(resource_group_name, custom_headers).value!
822
+ end
823
+
824
+ #
825
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
826
+ # resource group.
827
+ #
828
+ # @param resource_group_name [String] The name of the resource group.
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_async(resource_group_name, custom_headers = nil)
565
835
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
566
836
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
567
837
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -577,7 +847,10 @@ module Azure::ARM::Network
577
847
  query_params: {'api-version' => @client.api_version},
578
848
  headers: request_headers.merge(custom_headers || {})
579
849
  }
580
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
850
+
851
+ request_url = @base_url || @client.base_url
852
+
853
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
581
854
  promise = request.run_promise do |req|
582
855
  @client.credentials.sign_request(req) unless @client.credentials.nil?
583
856
  end
@@ -618,13 +891,43 @@ module Azure::ARM::Network
618
891
  #
619
892
  # @param next_page_link [String] The NextLink from the previous successful
620
893
  # call to List operation.
621
- # @param [Hash{String => String}] The hash of custom headers need to be
622
- # applied to HTTP request.
894
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
895
+ # will be added to the HTTP request.
623
896
  #
624
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
625
- # response.
897
+ # @return [NetworkInterfaceListResult] operation results.
626
898
  #
627
899
  def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil)
900
+ response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
901
+ response.body unless response.nil?
902
+ end
903
+
904
+ #
905
+ # The list network interface operation retrieves information about all network
906
+ # interfaces in a virtual machine from a virtual machine scale set.
907
+ #
908
+ # @param next_page_link [String] The NextLink from the previous successful
909
+ # call to List operation.
910
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
911
+ # will be added to the HTTP request.
912
+ #
913
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
914
+ #
915
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
916
+ list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
917
+ end
918
+
919
+ #
920
+ # The list network interface operation retrieves information about all network
921
+ # interfaces in a virtual machine from a virtual machine scale set.
922
+ #
923
+ # @param next_page_link [String] The NextLink from the previous successful
924
+ # call to List operation.
925
+ # @param [Hash{String => String}] A hash of custom headers that will be added
926
+ # to the HTTP request.
927
+ #
928
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
929
+ #
930
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil)
628
931
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
629
932
  request_headers = {}
630
933
 
@@ -637,7 +940,10 @@ module Azure::ARM::Network
637
940
  skip_encoding_path_params: {'nextLink' => next_page_link},
638
941
  headers: request_headers.merge(custom_headers || {})
639
942
  }
640
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
943
+
944
+ request_url = @base_url || @client.base_url
945
+
946
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
641
947
  promise = request.run_promise do |req|
642
948
  @client.credentials.sign_request(req) unless @client.credentials.nil?
643
949
  end
@@ -678,13 +984,43 @@ module Azure::ARM::Network
678
984
  #
679
985
  # @param next_page_link [String] The NextLink from the previous successful
680
986
  # call to List operation.
681
- # @param [Hash{String => String}] The hash of custom headers need to be
682
- # applied to HTTP request.
987
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
988
+ # will be added to the HTTP request.
683
989
  #
684
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
685
- # response.
990
+ # @return [NetworkInterfaceListResult] operation results.
686
991
  #
687
992
  def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil)
993
+ response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
994
+ response.body unless response.nil?
995
+ end
996
+
997
+ #
998
+ # The list network interface operation retrieves information about all network
999
+ # interfaces in a virtual machine scale set.
1000
+ #
1001
+ # @param next_page_link [String] The NextLink from the previous successful
1002
+ # call to List operation.
1003
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1004
+ # will be added to the HTTP request.
1005
+ #
1006
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1007
+ #
1008
+ def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
1009
+ list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
1010
+ end
1011
+
1012
+ #
1013
+ # The list network interface operation retrieves information about all network
1014
+ # interfaces in a virtual machine scale set.
1015
+ #
1016
+ # @param next_page_link [String] The NextLink from the previous successful
1017
+ # call to List operation.
1018
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1019
+ # to the HTTP request.
1020
+ #
1021
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1022
+ #
1023
+ def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil)
688
1024
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
689
1025
  request_headers = {}
690
1026
 
@@ -697,7 +1033,10 @@ module Azure::ARM::Network
697
1033
  skip_encoding_path_params: {'nextLink' => next_page_link},
698
1034
  headers: request_headers.merge(custom_headers || {})
699
1035
  }
700
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1036
+
1037
+ request_url = @base_url || @client.base_url
1038
+
1039
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
701
1040
  promise = request.run_promise do |req|
702
1041
  @client.credentials.sign_request(req) unless @client.credentials.nil?
703
1042
  end
@@ -738,13 +1077,43 @@ module Azure::ARM::Network
738
1077
  #
739
1078
  # @param next_page_link [String] The NextLink from the previous successful
740
1079
  # call to List operation.
741
- # @param [Hash{String => String}] The hash of custom headers need to be
742
- # applied to HTTP request.
1080
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1081
+ # will be added to the HTTP request.
743
1082
  #
744
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
745
- # response.
1083
+ # @return [NetworkInterfaceListResult] operation results.
746
1084
  #
747
1085
  def list_all_next(next_page_link, custom_headers = nil)
1086
+ response = list_all_next_async(next_page_link, custom_headers).value!
1087
+ response.body unless response.nil?
1088
+ end
1089
+
1090
+ #
1091
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
1092
+ # subscription.
1093
+ #
1094
+ # @param next_page_link [String] The NextLink from the previous successful
1095
+ # call to List operation.
1096
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1097
+ # will be added to the HTTP request.
1098
+ #
1099
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1100
+ #
1101
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1102
+ list_all_next_async(next_page_link, custom_headers).value!
1103
+ end
1104
+
1105
+ #
1106
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
1107
+ # subscription.
1108
+ #
1109
+ # @param next_page_link [String] The NextLink from the previous successful
1110
+ # call to List operation.
1111
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1112
+ # to the HTTP request.
1113
+ #
1114
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1115
+ #
1116
+ def list_all_next_async(next_page_link, custom_headers = nil)
748
1117
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
749
1118
  request_headers = {}
750
1119
 
@@ -757,7 +1126,10 @@ module Azure::ARM::Network
757
1126
  skip_encoding_path_params: {'nextLink' => next_page_link},
758
1127
  headers: request_headers.merge(custom_headers || {})
759
1128
  }
760
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1129
+
1130
+ request_url = @base_url || @client.base_url
1131
+
1132
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
761
1133
  promise = request.run_promise do |req|
762
1134
  @client.credentials.sign_request(req) unless @client.credentials.nil?
763
1135
  end
@@ -798,13 +1170,43 @@ module Azure::ARM::Network
798
1170
  #
799
1171
  # @param next_page_link [String] The NextLink from the previous successful
800
1172
  # call to List operation.
801
- # @param [Hash{String => String}] The hash of custom headers need to be
802
- # applied to HTTP request.
1173
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1174
+ # will be added to the HTTP request.
803
1175
  #
804
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
805
- # response.
1176
+ # @return [NetworkInterfaceListResult] operation results.
806
1177
  #
807
1178
  def list_next(next_page_link, custom_headers = nil)
1179
+ response = list_next_async(next_page_link, custom_headers).value!
1180
+ response.body unless response.nil?
1181
+ end
1182
+
1183
+ #
1184
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
1185
+ # resource group.
1186
+ #
1187
+ # @param next_page_link [String] The NextLink from the previous successful
1188
+ # call to List operation.
1189
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1190
+ # will be added to the HTTP request.
1191
+ #
1192
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1193
+ #
1194
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
1195
+ list_next_async(next_page_link, custom_headers).value!
1196
+ end
1197
+
1198
+ #
1199
+ # The List networkInterfaces opertion retrieves all the networkInterfaces in a
1200
+ # resource group.
1201
+ #
1202
+ # @param next_page_link [String] The NextLink from the previous successful
1203
+ # call to List operation.
1204
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1205
+ # to the HTTP request.
1206
+ #
1207
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1208
+ #
1209
+ def list_next_async(next_page_link, custom_headers = nil)
808
1210
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
809
1211
  request_headers = {}
810
1212
 
@@ -817,7 +1219,10 @@ module Azure::ARM::Network
817
1219
  skip_encoding_path_params: {'nextLink' => next_page_link},
818
1220
  headers: request_headers.merge(custom_headers || {})
819
1221
  }
820
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1222
+
1223
+ request_url = @base_url || @client.base_url
1224
+
1225
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
821
1226
  promise = request.run_promise do |req|
822
1227
  @client.credentials.sign_request(req) unless @client.credentials.nil?
823
1228
  end