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
 
@@ -36,7 +36,7 @@ module Azure::ARM::Network
36
36
  #
37
37
  def delete(resource_group_name, circuit_name, custom_headers = nil)
38
38
  # Send request
39
- promise = begin_delete(resource_group_name, circuit_name, custom_headers)
39
+ promise = begin_delete_async(resource_group_name, circuit_name, custom_headers)
40
40
 
41
41
  promise = promise.then do |response|
42
42
  # Defining deserialization method.
@@ -44,7 +44,7 @@ module Azure::ARM::Network
44
44
  end
45
45
 
46
46
  # Waiting for response.
47
- @client.get_post_or_delete_operation_result(response, deserialize_method)
47
+ @client.get_long_running_operation_result(response, deserialize_method)
48
48
  end
49
49
 
50
50
  promise
@@ -56,13 +56,42 @@ module Azure::ARM::Network
56
56
  #
57
57
  # @param resource_group_name [String] The name of the resource group.
58
58
  # @param circuit_name [String] The name of the express route Circuit.
59
- # @param [Hash{String => String}] The hash of custom headers need to be
60
- # applied to HTTP request.
59
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
60
+ # will be added to the HTTP request.
61
61
  #
62
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
63
- # response.
64
62
  #
65
63
  def begin_delete(resource_group_name, circuit_name, custom_headers = nil)
64
+ response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value!
65
+ nil
66
+ end
67
+
68
+ #
69
+ # The delete ExpressRouteCircuit operation deletes the specified
70
+ # ExpressRouteCircuit.
71
+ #
72
+ # @param resource_group_name [String] The name of the resource group.
73
+ # @param circuit_name [String] The name of the express route Circuit.
74
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
75
+ # will be added to the HTTP request.
76
+ #
77
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
78
+ #
79
+ def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
80
+ begin_delete_async(resource_group_name, circuit_name, custom_headers).value!
81
+ end
82
+
83
+ #
84
+ # The delete ExpressRouteCircuit operation deletes the specified
85
+ # ExpressRouteCircuit.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group.
88
+ # @param circuit_name [String] The name of the express route Circuit.
89
+ # @param [Hash{String => String}] A hash of custom headers that will be added
90
+ # to the HTTP request.
91
+ #
92
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
93
+ #
94
+ def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil)
66
95
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
96
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
68
97
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -72,14 +101,17 @@ module Azure::ARM::Network
72
101
  # Set Headers
73
102
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
74
103
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
75
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/'
104
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
76
105
  options = {
77
106
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
78
107
  path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
79
108
  query_params: {'api-version' => @client.api_version},
80
109
  headers: request_headers.merge(custom_headers || {})
81
110
  }
82
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
111
+
112
+ request_url = @base_url || @client.base_url
113
+
114
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
83
115
  promise = request.run_promise do |req|
84
116
  @client.credentials.sign_request(req) unless @client.credentials.nil?
85
117
  end
@@ -108,13 +140,43 @@ module Azure::ARM::Network
108
140
  #
109
141
  # @param resource_group_name [String] The name of the resource group.
110
142
  # @param circuit_name [String] The name of the circuit.
111
- # @param [Hash{String => String}] The hash of custom headers need to be
112
- # applied to HTTP request.
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
113
145
  #
114
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
115
- # response.
146
+ # @return [ExpressRouteCircuit] operation results.
116
147
  #
117
148
  def get(resource_group_name, circuit_name, custom_headers = nil)
149
+ response = get_async(resource_group_name, circuit_name, custom_headers).value!
150
+ response.body unless response.nil?
151
+ end
152
+
153
+ #
154
+ # The Get ExpressRouteCircuit operation retreives information about the
155
+ # specified ExpressRouteCircuit.
156
+ #
157
+ # @param resource_group_name [String] The name of the resource group.
158
+ # @param circuit_name [String] The name of the circuit.
159
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
160
+ # will be added to the HTTP request.
161
+ #
162
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
163
+ #
164
+ def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
165
+ get_async(resource_group_name, circuit_name, custom_headers).value!
166
+ end
167
+
168
+ #
169
+ # The Get ExpressRouteCircuit operation retreives information about the
170
+ # specified ExpressRouteCircuit.
171
+ #
172
+ # @param resource_group_name [String] The name of the resource group.
173
+ # @param circuit_name [String] The name of the circuit.
174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
175
+ # to the HTTP request.
176
+ #
177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
+ #
179
+ def get_async(resource_group_name, circuit_name, custom_headers = nil)
118
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
119
181
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
120
182
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -124,14 +186,17 @@ module Azure::ARM::Network
124
186
  # Set Headers
125
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
126
188
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
127
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/'
189
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
128
190
  options = {
129
191
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
130
192
  path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
131
193
  query_params: {'api-version' => @client.api_version},
132
194
  headers: request_headers.merge(custom_headers || {})
133
195
  }
134
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
196
+
197
+ request_url = @base_url || @client.base_url
198
+
199
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
135
200
  promise = request.run_promise do |req|
136
201
  @client.credentials.sign_request(req) unless @client.credentials.nil?
137
202
  end
@@ -185,7 +250,7 @@ module Azure::ARM::Network
185
250
  #
186
251
  def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil)
187
252
  # Send request
188
- promise = begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers)
253
+ promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers)
189
254
 
190
255
  promise = promise.then do |response|
191
256
  # Defining deserialization method.
@@ -196,7 +261,7 @@ module Azure::ARM::Network
196
261
  end
197
262
 
198
263
  # Waiting for response.
199
- @client.get_put_operation_result(response, deserialize_method)
264
+ @client.get_long_running_operation_result(response, deserialize_method)
200
265
  end
201
266
 
202
267
  promise
@@ -209,13 +274,45 @@ module Azure::ARM::Network
209
274
  # @param circuit_name [String] The name of the circuit.
210
275
  # @param parameters [ExpressRouteCircuit] Parameters supplied to the
211
276
  # create/delete ExpressRouteCircuit operation
212
- # @param [Hash{String => String}] The hash of custom headers need to be
213
- # applied to HTTP request.
277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
278
+ # will be added to the HTTP request.
214
279
  #
215
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
216
- # response.
280
+ # @return [ExpressRouteCircuit] operation results.
217
281
  #
218
282
  def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil)
283
+ response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value!
284
+ response.body unless response.nil?
285
+ end
286
+
287
+ #
288
+ # The Put ExpressRouteCircuit operation creates/updates a ExpressRouteCircuit
289
+ #
290
+ # @param resource_group_name [String] The name of the resource group.
291
+ # @param circuit_name [String] The name of the circuit.
292
+ # @param parameters [ExpressRouteCircuit] Parameters supplied to the
293
+ # create/delete ExpressRouteCircuit operation
294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
+ # will be added to the HTTP request.
296
+ #
297
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
298
+ #
299
+ def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil)
300
+ begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value!
301
+ end
302
+
303
+ #
304
+ # The Put ExpressRouteCircuit operation creates/updates a ExpressRouteCircuit
305
+ #
306
+ # @param resource_group_name [String] The name of the resource group.
307
+ # @param circuit_name [String] The name of the circuit.
308
+ # @param parameters [ExpressRouteCircuit] Parameters supplied to the
309
+ # create/delete ExpressRouteCircuit operation
310
+ # @param [Hash{String => String}] A hash of custom headers that will be added
311
+ # to the HTTP request.
312
+ #
313
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
314
+ #
315
+ def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil)
219
316
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
220
317
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
221
318
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -233,8 +330,8 @@ module Azure::ARM::Network
233
330
  unless parameters.nil?
234
331
  parameters = ExpressRouteCircuit.serialize_object(parameters)
235
332
  end
236
- request_content = JSON.generate(parameters, quirks_mode: true)
237
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/'
333
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
334
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
238
335
  options = {
239
336
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
240
337
  path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
@@ -242,7 +339,10 @@ module Azure::ARM::Network
242
339
  body: request_content,
243
340
  headers: request_headers.merge(custom_headers || {})
244
341
  }
245
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
342
+
343
+ request_url = @base_url || @client.base_url
344
+
345
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
246
346
  promise = request.run_promise do |req|
247
347
  @client.credentials.sign_request(req) unless @client.credentials.nil?
248
348
  end
@@ -296,15 +396,86 @@ module Azure::ARM::Network
296
396
  #
297
397
  # @param resource_group_name [String] The name of the resource group.
298
398
  # @param circuit_name [String] The name of the circuit.
299
- # @param [Hash{String => String}] The hash of custom headers need to be
300
- # applied to HTTP request.
301
- #
302
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
399
+ # @param peering_name [String] The name of the peering.
400
+ # @param device_path [String] The path of the device.
401
+ # @return [Concurrent::Promise] promise which provides async access to http
303
402
  # response.
304
403
  #
305
- def list_arp_table(resource_group_name, circuit_name, custom_headers = nil)
404
+ def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
405
+ # Send request
406
+ promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
407
+
408
+ promise = promise.then do |response|
409
+ # Defining deserialization method.
410
+ deserialize_method = lambda do |parsed_response|
411
+ unless parsed_response.nil?
412
+ parsed_response = ExpressRouteCircuitsArpTableListResult.deserialize_object(parsed_response)
413
+ end
414
+ end
415
+
416
+ # Waiting for response.
417
+ @client.get_long_running_operation_result(response, deserialize_method)
418
+ end
419
+
420
+ promise
421
+ end
422
+
423
+ #
424
+ # The ListArpTable from ExpressRouteCircuit opertion retrieves the currently
425
+ # advertised arp table associated with the ExpressRouteCircuits in a resource
426
+ # group.
427
+ #
428
+ # @param resource_group_name [String] The name of the resource group.
429
+ # @param circuit_name [String] The name of the circuit.
430
+ # @param peering_name [String] The name of the peering.
431
+ # @param device_path [String] The path of the device.
432
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
433
+ # will be added to the HTTP request.
434
+ #
435
+ # @return [ExpressRouteCircuitsArpTableListResult] operation results.
436
+ #
437
+ def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
438
+ response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
439
+ response.body unless response.nil?
440
+ end
441
+
442
+ #
443
+ # The ListArpTable from ExpressRouteCircuit opertion retrieves the currently
444
+ # advertised arp table associated with the ExpressRouteCircuits in a resource
445
+ # group.
446
+ #
447
+ # @param resource_group_name [String] The name of the resource group.
448
+ # @param circuit_name [String] The name of the circuit.
449
+ # @param peering_name [String] The name of the peering.
450
+ # @param device_path [String] The path of the device.
451
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
452
+ # will be added to the HTTP request.
453
+ #
454
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
455
+ #
456
+ def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
457
+ begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
458
+ end
459
+
460
+ #
461
+ # The ListArpTable from ExpressRouteCircuit opertion retrieves the currently
462
+ # advertised arp table associated with the ExpressRouteCircuits in a resource
463
+ # group.
464
+ #
465
+ # @param resource_group_name [String] The name of the resource group.
466
+ # @param circuit_name [String] The name of the circuit.
467
+ # @param peering_name [String] The name of the peering.
468
+ # @param device_path [String] The path of the device.
469
+ # @param [Hash{String => String}] A hash of custom headers that will be added
470
+ # to the HTTP request.
471
+ #
472
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
473
+ #
474
+ def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
306
475
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
307
476
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
477
+ fail ArgumentError, 'peering_name is nil' if peering_name.nil?
478
+ fail ArgumentError, 'device_path is nil' if device_path.nil?
308
479
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
309
480
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
310
481
  request_headers = {}
@@ -312,14 +483,17 @@ module Azure::ARM::Network
312
483
  # Set Headers
313
484
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
314
485
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
315
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/arpTable'
486
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}'
316
487
  options = {
317
488
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
318
- path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
489
+ path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
319
490
  query_params: {'api-version' => @client.api_version},
320
491
  headers: request_headers.merge(custom_headers || {})
321
492
  }
322
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
493
+
494
+ request_url = @base_url || @client.base_url
495
+
496
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
323
497
  promise = request.run_promise do |req|
324
498
  @client.credentials.sign_request(req) unless @client.credentials.nil?
325
499
  end
@@ -327,7 +501,7 @@ module Azure::ARM::Network
327
501
  promise = promise.then do |http_response|
328
502
  status_code = http_response.status
329
503
  response_content = http_response.body
330
- unless status_code == 200
504
+ unless status_code == 200 || status_code == 202
331
505
  error_model = JSON.load(response_content)
332
506
  fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
333
507
  end
@@ -361,15 +535,86 @@ module Azure::ARM::Network
361
535
  #
362
536
  # @param resource_group_name [String] The name of the resource group.
363
537
  # @param circuit_name [String] The name of the circuit.
364
- # @param [Hash{String => String}] The hash of custom headers need to be
365
- # applied to HTTP request.
366
- #
367
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
538
+ # @param peering_name [String] The name of the peering.
539
+ # @param device_path [String] The path of the device.
540
+ # @return [Concurrent::Promise] promise which provides async access to http
368
541
  # response.
369
542
  #
370
- def list_routes_table(resource_group_name, circuit_name, custom_headers = nil)
543
+ def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
544
+ # Send request
545
+ promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
546
+
547
+ promise = promise.then do |response|
548
+ # Defining deserialization method.
549
+ deserialize_method = lambda do |parsed_response|
550
+ unless parsed_response.nil?
551
+ parsed_response = ExpressRouteCircuitsRoutesTableListResult.deserialize_object(parsed_response)
552
+ end
553
+ end
554
+
555
+ # Waiting for response.
556
+ @client.get_long_running_operation_result(response, deserialize_method)
557
+ end
558
+
559
+ promise
560
+ end
561
+
562
+ #
563
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
564
+ # currently advertised routes table associated with the ExpressRouteCircuits
565
+ # in a resource group.
566
+ #
567
+ # @param resource_group_name [String] The name of the resource group.
568
+ # @param circuit_name [String] The name of the circuit.
569
+ # @param peering_name [String] The name of the peering.
570
+ # @param device_path [String] The path of the device.
571
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
572
+ # will be added to the HTTP request.
573
+ #
574
+ # @return [ExpressRouteCircuitsRoutesTableListResult] operation results.
575
+ #
576
+ def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
577
+ response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
578
+ response.body unless response.nil?
579
+ end
580
+
581
+ #
582
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
583
+ # currently advertised routes table associated with the ExpressRouteCircuits
584
+ # in a resource group.
585
+ #
586
+ # @param resource_group_name [String] The name of the resource group.
587
+ # @param circuit_name [String] The name of the circuit.
588
+ # @param peering_name [String] The name of the peering.
589
+ # @param device_path [String] The path of the device.
590
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
591
+ # will be added to the HTTP request.
592
+ #
593
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
594
+ #
595
+ def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
596
+ begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
597
+ end
598
+
599
+ #
600
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
601
+ # currently advertised routes table associated with the ExpressRouteCircuits
602
+ # in a resource group.
603
+ #
604
+ # @param resource_group_name [String] The name of the resource group.
605
+ # @param circuit_name [String] The name of the circuit.
606
+ # @param peering_name [String] The name of the peering.
607
+ # @param device_path [String] The path of the device.
608
+ # @param [Hash{String => String}] A hash of custom headers that will be added
609
+ # to the HTTP request.
610
+ #
611
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
612
+ #
613
+ def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
371
614
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
372
615
  fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
616
+ fail ArgumentError, 'peering_name is nil' if peering_name.nil?
617
+ fail ArgumentError, 'device_path is nil' if device_path.nil?
373
618
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
374
619
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
375
620
  request_headers = {}
@@ -377,14 +622,17 @@ module Azure::ARM::Network
377
622
  # Set Headers
378
623
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
379
624
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
380
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/routesTable'
625
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routesTable/{devicePath}'
381
626
  options = {
382
627
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
383
- path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
628
+ path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
384
629
  query_params: {'api-version' => @client.api_version},
385
630
  headers: request_headers.merge(custom_headers || {})
386
631
  }
387
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
632
+
633
+ request_url = @base_url || @client.base_url
634
+
635
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
388
636
  promise = request.run_promise do |req|
389
637
  @client.credentials.sign_request(req) unless @client.credentials.nil?
390
638
  end
@@ -392,7 +640,7 @@ module Azure::ARM::Network
392
640
  promise = promise.then do |http_response|
393
641
  status_code = http_response.status
394
642
  response_content = http_response.body
395
- unless status_code == 200
643
+ unless status_code == 200 || status_code == 202
396
644
  error_model = JSON.load(response_content)
397
645
  fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
398
646
  end
@@ -420,82 +668,92 @@ module Azure::ARM::Network
420
668
  end
421
669
 
422
670
  #
423
- # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
424
- # ExpressRouteCircuits in a resource group.
671
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
672
+ # currently advertised routes table associated with the ExpressRouteCircuits
673
+ # in a resource group.
425
674
  #
426
675
  # @param resource_group_name [String] The name of the resource group.
427
- # @param circuit_name [String] The name of the loadBalancer.
428
- # @param [Hash{String => String}] The hash of custom headers need to be
429
- # applied to HTTP request.
430
- #
431
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
676
+ # @param circuit_name [String] The name of the circuit.
677
+ # @param peering_name [String] The name of the peering.
678
+ # @param device_path [String] The path of the device.
679
+ # @return [Concurrent::Promise] promise which provides async access to http
432
680
  # response.
433
681
  #
434
- def list_stats(resource_group_name, circuit_name, custom_headers = nil)
435
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
436
- fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
437
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
438
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
439
- request_headers = {}
440
-
441
- # Set Headers
442
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
443
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
444
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats'
445
- options = {
446
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
447
- path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
448
- query_params: {'api-version' => @client.api_version},
449
- headers: request_headers.merge(custom_headers || {})
450
- }
451
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
452
- promise = request.run_promise do |req|
453
- @client.credentials.sign_request(req) unless @client.credentials.nil?
454
- end
455
-
456
- promise = promise.then do |http_response|
457
- status_code = http_response.status
458
- response_content = http_response.body
459
- unless status_code == 200
460
- error_model = JSON.load(response_content)
461
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
462
- end
682
+ def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
683
+ # Send request
684
+ promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
463
685
 
464
- # Create Result
465
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
466
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
467
- # Deserialize Response
468
- if status_code == 200
469
- begin
470
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
471
- unless parsed_response.nil?
472
- parsed_response = ExpressRouteCircuitsStatsListResult.deserialize_object(parsed_response)
473
- end
474
- result.body = parsed_response
475
- rescue Exception => e
476
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
686
+ promise = promise.then do |response|
687
+ # Defining deserialization method.
688
+ deserialize_method = lambda do |parsed_response|
689
+ unless parsed_response.nil?
690
+ parsed_response = ExpressRouteCircuitsRoutesTableSummaryListResult.deserialize_object(parsed_response)
477
691
  end
478
692
  end
479
693
 
480
- result
694
+ # Waiting for response.
695
+ @client.get_long_running_operation_result(response, deserialize_method)
481
696
  end
482
697
 
483
- promise.execute
698
+ promise
484
699
  end
485
700
 
486
701
  #
487
- # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
702
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
703
+ # currently advertised routes table associated with the ExpressRouteCircuits
488
704
  # in a resource group.
489
705
  #
490
706
  # @param resource_group_name [String] The name of the resource group.
491
- # @param [Hash{String => String}] The hash of custom headers need to be
492
- # applied to HTTP request.
707
+ # @param circuit_name [String] The name of the circuit.
708
+ # @param peering_name [String] The name of the peering.
709
+ # @param device_path [String] The path of the device.
710
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
711
+ # will be added to the HTTP request.
493
712
  #
494
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
495
- # response.
713
+ # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results.
496
714
  #
497
- def list(resource_group_name, custom_headers = nil)
715
+ def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
716
+ response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
717
+ response.body unless response.nil?
718
+ end
719
+
720
+ #
721
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
722
+ # currently advertised routes table associated with the ExpressRouteCircuits
723
+ # in a resource group.
724
+ #
725
+ # @param resource_group_name [String] The name of the resource group.
726
+ # @param circuit_name [String] The name of the circuit.
727
+ # @param peering_name [String] The name of the peering.
728
+ # @param device_path [String] The path of the device.
729
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
730
+ # will be added to the HTTP request.
731
+ #
732
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
733
+ #
734
+ def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
735
+ begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
736
+ end
737
+
738
+ #
739
+ # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
740
+ # currently advertised routes table associated with the ExpressRouteCircuits
741
+ # in a resource group.
742
+ #
743
+ # @param resource_group_name [String] The name of the resource group.
744
+ # @param circuit_name [String] The name of the circuit.
745
+ # @param peering_name [String] The name of the peering.
746
+ # @param device_path [String] The path of the device.
747
+ # @param [Hash{String => String}] A hash of custom headers that will be added
748
+ # to the HTTP request.
749
+ #
750
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
751
+ #
752
+ def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
498
753
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
754
+ fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
755
+ fail ArgumentError, 'peering_name is nil' if peering_name.nil?
756
+ fail ArgumentError, 'device_path is nil' if device_path.nil?
499
757
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
500
758
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
501
759
  request_headers = {}
@@ -503,14 +761,17 @@ module Azure::ARM::Network
503
761
  # Set Headers
504
762
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
505
763
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
506
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits'
764
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}'
507
765
  options = {
508
766
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
509
- path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
767
+ path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
510
768
  query_params: {'api-version' => @client.api_version},
511
769
  headers: request_headers.merge(custom_headers || {})
512
770
  }
513
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
771
+
772
+ request_url = @base_url || @client.base_url
773
+
774
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
514
775
  promise = request.run_promise do |req|
515
776
  @client.credentials.sign_request(req) unless @client.credentials.nil?
516
777
  end
@@ -518,7 +779,7 @@ module Azure::ARM::Network
518
779
  promise = promise.then do |http_response|
519
780
  status_code = http_response.status
520
781
  response_content = http_response.body
521
- unless status_code == 200
782
+ unless status_code == 200 || status_code == 202
522
783
  error_model = JSON.load(response_content)
523
784
  fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
524
785
  end
@@ -531,7 +792,7 @@ module Azure::ARM::Network
531
792
  begin
532
793
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
533
794
  unless parsed_response.nil?
534
- parsed_response = ExpressRouteCircuitListResult.deserialize_object(parsed_response)
795
+ parsed_response = ExpressRouteCircuitsRoutesTableSummaryListResult.deserialize_object(parsed_response)
535
796
  end
536
797
  result.body = parsed_response
537
798
  rescue Exception => e
@@ -546,16 +807,50 @@ module Azure::ARM::Network
546
807
  end
547
808
 
548
809
  #
549
- # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
550
- # in a subscription.
810
+ # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
811
+ # ExpressRouteCircuits in a resource group.
551
812
  #
552
- # @param [Hash{String => String}] The hash of custom headers need to be
553
- # applied to HTTP request.
813
+ # @param resource_group_name [String] The name of the resource group.
814
+ # @param circuit_name [String] The name of the circuit.
815
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
816
+ # will be added to the HTTP request.
554
817
  #
555
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
556
- # response.
818
+ # @return [ExpressRouteCircuitStats] operation results.
557
819
  #
558
- def list_all(custom_headers = nil)
820
+ def get_stats(resource_group_name, circuit_name, custom_headers = nil)
821
+ response = get_stats_async(resource_group_name, circuit_name, custom_headers).value!
822
+ response.body unless response.nil?
823
+ end
824
+
825
+ #
826
+ # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
827
+ # ExpressRouteCircuits in a resource group.
828
+ #
829
+ # @param resource_group_name [String] The name of the resource group.
830
+ # @param circuit_name [String] The name of the circuit.
831
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
832
+ # will be added to the HTTP request.
833
+ #
834
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
835
+ #
836
+ def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
837
+ get_stats_async(resource_group_name, circuit_name, custom_headers).value!
838
+ end
839
+
840
+ #
841
+ # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
842
+ # ExpressRouteCircuits in a resource group.
843
+ #
844
+ # @param resource_group_name [String] The name of the resource group.
845
+ # @param circuit_name [String] The name of the circuit.
846
+ # @param [Hash{String => String}] A hash of custom headers that will be added
847
+ # to the HTTP request.
848
+ #
849
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
850
+ #
851
+ def get_stats_async(resource_group_name, circuit_name, custom_headers = nil)
852
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
853
+ fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
559
854
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
560
855
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
561
856
  request_headers = {}
@@ -563,14 +858,17 @@ module Azure::ARM::Network
563
858
  # Set Headers
564
859
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
565
860
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
566
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits'
861
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats'
567
862
  options = {
568
863
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
569
- path_params: {'subscriptionId' => @client.subscription_id},
864
+ path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
570
865
  query_params: {'api-version' => @client.api_version},
571
866
  headers: request_headers.merge(custom_headers || {})
572
867
  }
573
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
868
+
869
+ request_url = @base_url || @client.base_url
870
+
871
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
574
872
  promise = request.run_promise do |req|
575
873
  @client.credentials.sign_request(req) unless @client.credentials.nil?
576
874
  end
@@ -591,7 +889,7 @@ module Azure::ARM::Network
591
889
  begin
592
890
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
593
891
  unless parsed_response.nil?
594
- parsed_response = ExpressRouteCircuitListResult.deserialize_object(parsed_response)
892
+ parsed_response = ExpressRouteCircuitStats.deserialize_object(parsed_response)
595
893
  end
596
894
  result.body = parsed_response
597
895
  rescue Exception => e
@@ -606,32 +904,72 @@ module Azure::ARM::Network
606
904
  end
607
905
 
608
906
  #
609
- # The ListArpTable from ExpressRouteCircuit opertion retrieves the currently
610
- # advertised arp table associated with the ExpressRouteCircuits in a resource
611
- # group.
907
+ # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
908
+ # ExpressRouteCircuits in a resource group.
612
909
  #
613
- # @param next_page_link [String] The NextLink from the previous successful
614
- # call to List operation.
615
- # @param [Hash{String => String}] The hash of custom headers need to be
616
- # applied to HTTP request.
910
+ # @param resource_group_name [String] The name of the resource group.
911
+ # @param circuit_name [String] The name of the circuit.
912
+ # @param peering_name [String] The name of the peering.
913
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
914
+ # will be added to the HTTP request.
617
915
  #
618
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
619
- # response.
916
+ # @return [ExpressRouteCircuitStats] operation results.
620
917
  #
621
- def list_arp_table_next(next_page_link, custom_headers = nil)
622
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
918
+ def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil)
919
+ response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
920
+ response.body unless response.nil?
921
+ end
922
+
923
+ #
924
+ # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
925
+ # ExpressRouteCircuits in a resource group.
926
+ #
927
+ # @param resource_group_name [String] The name of the resource group.
928
+ # @param circuit_name [String] The name of the circuit.
929
+ # @param peering_name [String] The name of the peering.
930
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
931
+ # will be added to the HTTP request.
932
+ #
933
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
934
+ #
935
+ def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil)
936
+ get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
937
+ end
938
+
939
+ #
940
+ # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
941
+ # ExpressRouteCircuits in a resource group.
942
+ #
943
+ # @param resource_group_name [String] The name of the resource group.
944
+ # @param circuit_name [String] The name of the circuit.
945
+ # @param peering_name [String] The name of the peering.
946
+ # @param [Hash{String => String}] A hash of custom headers that will be added
947
+ # to the HTTP request.
948
+ #
949
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
950
+ #
951
+ def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil)
952
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
953
+ fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
954
+ fail ArgumentError, 'peering_name is nil' if peering_name.nil?
955
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
956
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
623
957
  request_headers = {}
624
958
 
625
959
  # Set Headers
626
960
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
627
961
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
628
- path_template = '{nextLink}'
962
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats'
629
963
  options = {
630
964
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
631
- skip_encoding_path_params: {'nextLink' => next_page_link},
965
+ path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'subscriptionId' => @client.subscription_id},
966
+ query_params: {'api-version' => @client.api_version},
632
967
  headers: request_headers.merge(custom_headers || {})
633
968
  }
634
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
969
+
970
+ request_url = @base_url || @client.base_url
971
+
972
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
635
973
  promise = request.run_promise do |req|
636
974
  @client.credentials.sign_request(req) unless @client.credentials.nil?
637
975
  end
@@ -652,7 +990,7 @@ module Azure::ARM::Network
652
990
  begin
653
991
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
654
992
  unless parsed_response.nil?
655
- parsed_response = ExpressRouteCircuitsArpTableListResult.deserialize_object(parsed_response)
993
+ parsed_response = ExpressRouteCircuitStats.deserialize_object(parsed_response)
656
994
  end
657
995
  result.body = parsed_response
658
996
  rescue Exception => e
@@ -667,32 +1005,64 @@ module Azure::ARM::Network
667
1005
  end
668
1006
 
669
1007
  #
670
- # The ListRoutesTable from ExpressRouteCircuit opertion retrieves the
671
- # currently advertised routes table associated with the ExpressRouteCircuits
1008
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
672
1009
  # in a resource group.
673
1010
  #
674
- # @param next_page_link [String] The NextLink from the previous successful
675
- # call to List operation.
676
- # @param [Hash{String => String}] The hash of custom headers need to be
677
- # applied to HTTP request.
1011
+ # @param resource_group_name [String] The name of the resource group.
1012
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1013
+ # will be added to the HTTP request.
678
1014
  #
679
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
680
- # response.
1015
+ # @return [ExpressRouteCircuitListResult] operation results.
681
1016
  #
682
- def list_routes_table_next(next_page_link, custom_headers = nil)
683
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1017
+ def list(resource_group_name, custom_headers = nil)
1018
+ response = list_async(resource_group_name, custom_headers).value!
1019
+ response.body unless response.nil?
1020
+ end
1021
+
1022
+ #
1023
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1024
+ # in a resource group.
1025
+ #
1026
+ # @param resource_group_name [String] The name of the resource group.
1027
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1028
+ # will be added to the HTTP request.
1029
+ #
1030
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1031
+ #
1032
+ def list_with_http_info(resource_group_name, custom_headers = nil)
1033
+ list_async(resource_group_name, custom_headers).value!
1034
+ end
1035
+
1036
+ #
1037
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1038
+ # in a resource group.
1039
+ #
1040
+ # @param resource_group_name [String] The name of the resource group.
1041
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1042
+ # to the HTTP request.
1043
+ #
1044
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1045
+ #
1046
+ def list_async(resource_group_name, custom_headers = nil)
1047
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1048
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1049
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
684
1050
  request_headers = {}
685
1051
 
686
1052
  # Set Headers
687
1053
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
688
1054
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
689
- path_template = '{nextLink}'
1055
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits'
690
1056
  options = {
691
1057
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
692
- skip_encoding_path_params: {'nextLink' => next_page_link},
1058
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
1059
+ query_params: {'api-version' => @client.api_version},
693
1060
  headers: request_headers.merge(custom_headers || {})
694
1061
  }
695
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1062
+
1063
+ request_url = @base_url || @client.base_url
1064
+
1065
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
696
1066
  promise = request.run_promise do |req|
697
1067
  @client.credentials.sign_request(req) unless @client.credentials.nil?
698
1068
  end
@@ -713,7 +1083,7 @@ module Azure::ARM::Network
713
1083
  begin
714
1084
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
715
1085
  unless parsed_response.nil?
716
- parsed_response = ExpressRouteCircuitsRoutesTableListResult.deserialize_object(parsed_response)
1086
+ parsed_response = ExpressRouteCircuitListResult.deserialize_object(parsed_response)
717
1087
  end
718
1088
  result.body = parsed_response
719
1089
  rescue Exception => e
@@ -728,31 +1098,60 @@ module Azure::ARM::Network
728
1098
  end
729
1099
 
730
1100
  #
731
- # The Liststats ExpressRouteCircuit opertion retrieves all the stats from a
732
- # ExpressRouteCircuits in a resource group.
1101
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1102
+ # in a subscription.
733
1103
  #
734
- # @param next_page_link [String] The NextLink from the previous successful
735
- # call to List operation.
736
- # @param [Hash{String => String}] The hash of custom headers need to be
737
- # applied to HTTP request.
1104
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1105
+ # will be added to the HTTP request.
738
1106
  #
739
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
740
- # response.
1107
+ # @return [ExpressRouteCircuitListResult] operation results.
741
1108
  #
742
- def list_stats_next(next_page_link, custom_headers = nil)
743
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1109
+ def list_all(custom_headers = nil)
1110
+ response = list_all_async(custom_headers).value!
1111
+ response.body unless response.nil?
1112
+ end
1113
+
1114
+ #
1115
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1116
+ # in a subscription.
1117
+ #
1118
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1119
+ # will be added to the HTTP request.
1120
+ #
1121
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1122
+ #
1123
+ def list_all_with_http_info(custom_headers = nil)
1124
+ list_all_async(custom_headers).value!
1125
+ end
1126
+
1127
+ #
1128
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1129
+ # in a subscription.
1130
+ #
1131
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1132
+ # to the HTTP request.
1133
+ #
1134
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1135
+ #
1136
+ def list_all_async(custom_headers = nil)
1137
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1138
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
744
1139
  request_headers = {}
745
1140
 
746
1141
  # Set Headers
747
1142
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
748
1143
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
749
- path_template = '{nextLink}'
1144
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits'
750
1145
  options = {
751
1146
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
752
- skip_encoding_path_params: {'nextLink' => next_page_link},
1147
+ path_params: {'subscriptionId' => @client.subscription_id},
1148
+ query_params: {'api-version' => @client.api_version},
753
1149
  headers: request_headers.merge(custom_headers || {})
754
1150
  }
755
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1151
+
1152
+ request_url = @base_url || @client.base_url
1153
+
1154
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
756
1155
  promise = request.run_promise do |req|
757
1156
  @client.credentials.sign_request(req) unless @client.credentials.nil?
758
1157
  end
@@ -773,7 +1172,7 @@ module Azure::ARM::Network
773
1172
  begin
774
1173
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
775
1174
  unless parsed_response.nil?
776
- parsed_response = ExpressRouteCircuitsStatsListResult.deserialize_object(parsed_response)
1175
+ parsed_response = ExpressRouteCircuitListResult.deserialize_object(parsed_response)
777
1176
  end
778
1177
  result.body = parsed_response
779
1178
  rescue Exception => e
@@ -793,13 +1192,43 @@ module Azure::ARM::Network
793
1192
  #
794
1193
  # @param next_page_link [String] The NextLink from the previous successful
795
1194
  # call to List operation.
796
- # @param [Hash{String => String}] The hash of custom headers need to be
797
- # applied to HTTP request.
1195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1196
+ # will be added to the HTTP request.
798
1197
  #
799
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
800
- # response.
1198
+ # @return [ExpressRouteCircuitListResult] operation results.
801
1199
  #
802
1200
  def list_next(next_page_link, custom_headers = nil)
1201
+ response = list_next_async(next_page_link, custom_headers).value!
1202
+ response.body unless response.nil?
1203
+ end
1204
+
1205
+ #
1206
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1207
+ # in a resource group.
1208
+ #
1209
+ # @param next_page_link [String] The NextLink from the previous successful
1210
+ # call to List operation.
1211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1212
+ # will be added to the HTTP request.
1213
+ #
1214
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1215
+ #
1216
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
1217
+ list_next_async(next_page_link, custom_headers).value!
1218
+ end
1219
+
1220
+ #
1221
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1222
+ # in a resource group.
1223
+ #
1224
+ # @param next_page_link [String] The NextLink from the previous successful
1225
+ # call to List operation.
1226
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1227
+ # to the HTTP request.
1228
+ #
1229
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1230
+ #
1231
+ def list_next_async(next_page_link, custom_headers = nil)
803
1232
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
804
1233
  request_headers = {}
805
1234
 
@@ -812,7 +1241,10 @@ module Azure::ARM::Network
812
1241
  skip_encoding_path_params: {'nextLink' => next_page_link},
813
1242
  headers: request_headers.merge(custom_headers || {})
814
1243
  }
815
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1244
+
1245
+ request_url = @base_url || @client.base_url
1246
+
1247
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
816
1248
  promise = request.run_promise do |req|
817
1249
  @client.credentials.sign_request(req) unless @client.credentials.nil?
818
1250
  end
@@ -853,13 +1285,43 @@ module Azure::ARM::Network
853
1285
  #
854
1286
  # @param next_page_link [String] The NextLink from the previous successful
855
1287
  # call to List operation.
856
- # @param [Hash{String => String}] The hash of custom headers need to be
857
- # applied to HTTP request.
1288
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1289
+ # will be added to the HTTP request.
858
1290
  #
859
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
860
- # response.
1291
+ # @return [ExpressRouteCircuitListResult] operation results.
861
1292
  #
862
1293
  def list_all_next(next_page_link, custom_headers = nil)
1294
+ response = list_all_next_async(next_page_link, custom_headers).value!
1295
+ response.body unless response.nil?
1296
+ end
1297
+
1298
+ #
1299
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1300
+ # in a subscription.
1301
+ #
1302
+ # @param next_page_link [String] The NextLink from the previous successful
1303
+ # call to List operation.
1304
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1305
+ # will be added to the HTTP request.
1306
+ #
1307
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1308
+ #
1309
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1310
+ list_all_next_async(next_page_link, custom_headers).value!
1311
+ end
1312
+
1313
+ #
1314
+ # The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
1315
+ # in a subscription.
1316
+ #
1317
+ # @param next_page_link [String] The NextLink from the previous successful
1318
+ # call to List operation.
1319
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1320
+ # to the HTTP request.
1321
+ #
1322
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1323
+ #
1324
+ def list_all_next_async(next_page_link, custom_headers = nil)
863
1325
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
864
1326
  request_headers = {}
865
1327
 
@@ -872,7 +1334,10 @@ module Azure::ARM::Network
872
1334
  skip_encoding_path_params: {'nextLink' => next_page_link},
873
1335
  headers: request_headers.merge(custom_headers || {})
874
1336
  }
875
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1337
+
1338
+ request_url = @base_url || @client.base_url
1339
+
1340
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
876
1341
  promise = request.run_promise do |req|
877
1342
  @client.credentials.sign_request(req) unless @client.credentials.nil?
878
1343
  end