azure_mgmt_network 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +59 -52
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +426 -308
  4. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +181 -199
  5. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +175 -193
  6. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +458 -497
  7. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +36 -43
  8. data/lib/generated/azure_mgmt_network/load_balancers.rb +225 -242
  9. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +168 -191
  10. data/lib/generated/azure_mgmt_network/models/address_space.rb +4 -4
  11. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +42 -28
  12. data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +6 -6
  13. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +4 -4
  14. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +6 -6
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +52 -0
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +66 -0
  17. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +65 -0
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +67 -0
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +18 -0
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +16 -13
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  23. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +13 -12
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +6 -6
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +16 -14
  26. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +7 -6
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +4 -4
  28. data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +9 -9
  30. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +19 -12
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  32. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +14 -11
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  34. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +11 -8
  35. data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +3 -1
  36. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +12 -9
  37. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +4 -3
  38. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
  39. data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +2 -1
  40. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +10 -9
  41. data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +57 -0
  42. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +6 -6
  43. data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  44. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +4 -3
  45. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +11 -11
  46. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +7 -6
  47. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +8 -3
  48. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +4 -4
  49. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +4 -4
  50. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +3 -3
  51. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +5 -6
  52. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +4 -4
  53. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +5 -5
  54. data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +20 -17
  55. data/lib/generated/azure_mgmt_network/models/effective_route.rb +16 -13
  56. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +4 -4
  57. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
  58. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
  59. data/lib/generated/azure_mgmt_network/models/error.rb +2 -1
  60. data/lib/generated/azure_mgmt_network/models/error_details.rb +2 -1
  61. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +20 -21
  62. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +6 -6
  63. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +10 -9
  64. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +5 -5
  65. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +26 -24
  66. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  67. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +10 -10
  68. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +6 -6
  69. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  70. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  71. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +4 -4
  72. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +5 -5
  73. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +5 -5
  74. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +9 -7
  75. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  76. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  77. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +2 -2
  78. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +5 -4
  79. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +5 -5
  80. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +5 -5
  81. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +6 -6
  82. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +4 -4
  83. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +5 -5
  84. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +18 -19
  85. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +19 -27
  86. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +25 -33
  87. data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +4 -4
  88. data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  89. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +12 -13
  90. data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
  91. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +31 -16
  92. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +5 -5
  93. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +29 -38
  94. data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
  95. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +11 -10
  96. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +5 -5
  97. data/lib/generated/azure_mgmt_network/models/network_interface.rb +31 -20
  98. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +18 -8
  99. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +19 -16
  100. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +5 -5
  101. data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +1 -1
  102. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +15 -15
  103. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +5 -5
  104. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +12 -14
  105. data/lib/generated/azure_mgmt_network/models/probe.rb +27 -28
  106. data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
  107. data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
  108. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +15 -15
  109. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +15 -14
  110. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +5 -5
  111. data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +6 -6
  112. data/lib/generated/azure_mgmt_network/models/route.rb +13 -13
  113. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +4 -4
  114. data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  115. data/lib/generated/azure_mgmt_network/models/route_table.rb +8 -7
  116. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +5 -5
  117. data/lib/generated/azure_mgmt_network/models/security_rule.rb +33 -36
  118. data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
  119. data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  120. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +6 -6
  121. data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  122. data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  123. data/lib/generated/azure_mgmt_network/models/subnet.rb +14 -15
  124. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +4 -4
  125. data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
  126. data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +92 -0
  127. data/lib/generated/azure_mgmt_network/models/usage.rb +7 -7
  128. data/lib/generated/azure_mgmt_network/models/usage_name.rb +4 -5
  129. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +3 -3
  130. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +15 -16
  131. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +26 -23
  132. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +45 -18
  133. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +6 -5
  134. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  135. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  136. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +15 -14
  137. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +5 -5
  138. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +12 -10
  139. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
  140. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
  141. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  142. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +5 -5
  143. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +21 -23
  144. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +6 -6
  145. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
  146. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +5 -5
  147. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +5 -4
  148. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +10 -9
  149. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +10 -8
  150. data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
  151. data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
  152. data/lib/generated/azure_mgmt_network/network_interfaces.rb +443 -478
  153. data/lib/generated/azure_mgmt_network/network_management_client.rb +20 -7
  154. data/lib/generated/azure_mgmt_network/network_security_groups.rb +224 -249
  155. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +220 -241
  156. data/lib/generated/azure_mgmt_network/route_tables.rb +219 -226
  157. data/lib/generated/azure_mgmt_network/routes.rb +171 -181
  158. data/lib/generated/azure_mgmt_network/security_rules.rb +175 -193
  159. data/lib/generated/azure_mgmt_network/subnets.rb +177 -181
  160. data/lib/generated/azure_mgmt_network/usages.rb +34 -34
  161. data/lib/generated/azure_mgmt_network/version.rb +2 -2
  162. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +335 -358
  163. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +246 -289
  164. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +177 -191
  165. data/lib/generated/azure_mgmt_network/virtual_networks.rb +242 -249
  166. metadata +12 -5
  167. data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +0 -44
@@ -1,14 +1,14 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
8
  # The Microsoft Azure Network management API provides a RESTful set of web
9
- # services that interact with Microsoft Azure Networks service to manage
10
- # your network resources. The API has entities that capture the
11
- # relationship between an end user and the Microsoft Azure Networks service.
9
+ # services that interact with Microsoft Azure Networks service to manage your
10
+ # network resources. The API has entities that capture the relationship
11
+ # between an end user and the Microsoft Azure Networks service.
12
12
  #
13
13
  class RouteTables
14
14
  include Azure::ARM::Network::Models
@@ -26,7 +26,7 @@ module Azure::ARM::Network
26
26
  attr_reader :client
27
27
 
28
28
  #
29
- # The Delete RouteTable operation deletes the specified Route Table
29
+ # Deletes the specified route table.
30
30
  #
31
31
  # @param resource_group_name [String] The name of the resource group.
32
32
  # @param route_table_name [String] The name of the route table.
@@ -64,92 +64,11 @@ module Azure::ARM::Network
64
64
  end
65
65
 
66
66
  #
67
- # The Delete RouteTable operation deletes the specified Route Table
67
+ # Gets the specified route table.
68
68
  #
69
69
  # @param resource_group_name [String] The name of the resource group.
70
70
  # @param route_table_name [String] The name of the route table.
71
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
72
- # will be added to the HTTP request.
73
- #
74
- #
75
- def begin_delete(resource_group_name, route_table_name, custom_headers = nil)
76
- response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value!
77
- nil
78
- end
79
-
80
- #
81
- # The Delete RouteTable operation deletes the specified Route Table
82
- #
83
- # @param resource_group_name [String] The name of the resource group.
84
- # @param route_table_name [String] The name of the route table.
85
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
86
- # will be added to the HTTP request.
87
- #
88
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
89
- #
90
- def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil)
91
- begin_delete_async(resource_group_name, route_table_name, custom_headers).value!
92
- end
93
-
94
- #
95
- # The Delete RouteTable operation deletes the specified Route Table
96
- #
97
- # @param resource_group_name [String] The name of the resource group.
98
- # @param route_table_name [String] The name of the route table.
99
- # @param [Hash{String => String}] A hash of custom headers that will be added
100
- # to the HTTP request.
101
- #
102
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
103
- #
104
- def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil)
105
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
106
- fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
107
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
108
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
109
-
110
-
111
- request_headers = {}
112
-
113
- # Set Headers
114
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
115
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
116
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'
117
-
118
- request_url = @base_url || @client.base_url
119
-
120
- options = {
121
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
122
- path_params: {'resourceGroupName' => resource_group_name,'routeTableName' => route_table_name,'subscriptionId' => @client.subscription_id},
123
- query_params: {'api-version' => @client.api_version},
124
- headers: request_headers.merge(custom_headers || {}),
125
- base_url: request_url
126
- }
127
- promise = @client.make_request_async(:delete, path_template, options)
128
-
129
- promise = promise.then do |result|
130
- http_response = result.response
131
- status_code = http_response.status
132
- response_content = http_response.body
133
- unless status_code == 204 || status_code == 200 || status_code == 202
134
- error_model = JSON.load(response_content)
135
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
136
- end
137
-
138
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
139
-
140
- result
141
- end
142
-
143
- promise.execute
144
- end
145
-
146
- #
147
- # The Get RouteTables operation retrieves information about the specified
148
- # route table.
149
- #
150
- # @param resource_group_name [String] The name of the resource group.
151
- # @param route_table_name [String] The name of the route table.
152
- # @param expand [String] expand references resources.
71
+ # @param expand [String] Expands referenced resources.
153
72
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
154
73
  # will be added to the HTTP request.
155
74
  #
@@ -161,12 +80,11 @@ module Azure::ARM::Network
161
80
  end
162
81
 
163
82
  #
164
- # The Get RouteTables operation retrieves information about the specified
165
- # route table.
83
+ # Gets the specified route table.
166
84
  #
167
85
  # @param resource_group_name [String] The name of the resource group.
168
86
  # @param route_table_name [String] The name of the route table.
169
- # @param expand [String] expand references resources.
87
+ # @param expand [String] Expands referenced resources.
170
88
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
171
89
  # will be added to the HTTP request.
172
90
  #
@@ -177,12 +95,11 @@ module Azure::ARM::Network
177
95
  end
178
96
 
179
97
  #
180
- # The Get RouteTables operation retrieves information about the specified
181
- # route table.
98
+ # Gets the specified route table.
182
99
  #
183
100
  # @param resource_group_name [String] The name of the resource group.
184
101
  # @param route_table_name [String] The name of the route table.
185
- # @param expand [String] expand references resources.
102
+ # @param expand [String] Expands referenced resources.
186
103
  # @param [Hash{String => String}] A hash of custom headers that will be added
187
104
  # to the HTTP request.
188
105
  #
@@ -241,13 +158,12 @@ module Azure::ARM::Network
241
158
  end
242
159
 
243
160
  #
244
- # The Put RouteTable operation creates/updates a route table in the specified
245
- # resource group.
161
+ # Create or updates a route table in a specified resource group.
246
162
  #
247
163
  # @param resource_group_name [String] The name of the resource group.
248
164
  # @param route_table_name [String] The name of the route table.
249
- # @param parameters [RouteTable] Parameters supplied to the create/update
250
- # Route Table operation
165
+ # @param parameters [RouteTable] Parameters supplied to the create or update
166
+ # route table operation.
251
167
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
168
  # will be added to the HTTP request.
253
169
  #
@@ -261,8 +177,8 @@ module Azure::ARM::Network
261
177
  #
262
178
  # @param resource_group_name [String] The name of the resource group.
263
179
  # @param route_table_name [String] The name of the route table.
264
- # @param parameters [RouteTable] Parameters supplied to the create/update
265
- # Route Table operation
180
+ # @param parameters [RouteTable] Parameters supplied to the create or update
181
+ # route table operation.
266
182
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
183
  # will be added to the HTTP request.
268
184
  #
@@ -288,57 +204,43 @@ module Azure::ARM::Network
288
204
  end
289
205
 
290
206
  #
291
- # The Put RouteTable operation creates/updates a route table in the specified
292
- # resource group.
207
+ # Gets all route tables in a resource group.
293
208
  #
294
209
  # @param resource_group_name [String] The name of the resource group.
295
- # @param route_table_name [String] The name of the route table.
296
- # @param parameters [RouteTable] Parameters supplied to the create/update
297
- # Route Table operation
298
210
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
299
211
  # will be added to the HTTP request.
300
212
  #
301
- # @return [RouteTable] operation results.
213
+ # @return [Array<RouteTable>] operation results.
302
214
  #
303
- def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil)
304
- response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value!
305
- response.body unless response.nil?
215
+ def list(resource_group_name, custom_headers = nil)
216
+ first_page = list_as_lazy(resource_group_name, custom_headers)
217
+ first_page.get_all_items
306
218
  end
307
219
 
308
220
  #
309
- # The Put RouteTable operation creates/updates a route table in the specified
310
- # resource group.
221
+ # Gets all route tables in a resource group.
311
222
  #
312
223
  # @param resource_group_name [String] The name of the resource group.
313
- # @param route_table_name [String] The name of the route table.
314
- # @param parameters [RouteTable] Parameters supplied to the create/update
315
- # Route Table operation
316
224
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
317
225
  # will be added to the HTTP request.
318
226
  #
319
227
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
320
228
  #
321
- def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil)
322
- begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value!
229
+ def list_with_http_info(resource_group_name, custom_headers = nil)
230
+ list_async(resource_group_name, custom_headers).value!
323
231
  end
324
232
 
325
233
  #
326
- # The Put RouteTable operation creates/updates a route table in the specified
327
- # resource group.
234
+ # Gets all route tables in a resource group.
328
235
  #
329
236
  # @param resource_group_name [String] The name of the resource group.
330
- # @param route_table_name [String] The name of the route table.
331
- # @param parameters [RouteTable] Parameters supplied to the create/update
332
- # Route Table operation
333
237
  # @param [Hash{String => String}] A hash of custom headers that will be added
334
238
  # to the HTTP request.
335
239
  #
336
240
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
337
241
  #
338
- def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil)
242
+ def list_async(resource_group_name, custom_headers = nil)
339
243
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
340
- fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
341
- fail ArgumentError, 'parameters is nil' if parameters.nil?
342
244
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
343
245
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
344
246
 
@@ -348,33 +250,24 @@ module Azure::ARM::Network
348
250
  # Set Headers
349
251
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
350
252
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
351
-
352
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
353
-
354
- # Serialize Request
355
- request_mapper = RouteTable.mapper()
356
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
357
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
358
-
359
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'
253
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables'
360
254
 
361
255
  request_url = @base_url || @client.base_url
362
256
 
363
257
  options = {
364
258
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
365
- path_params: {'resourceGroupName' => resource_group_name,'routeTableName' => route_table_name,'subscriptionId' => @client.subscription_id},
259
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
366
260
  query_params: {'api-version' => @client.api_version},
367
- body: request_content,
368
261
  headers: request_headers.merge(custom_headers || {}),
369
262
  base_url: request_url
370
263
  }
371
- promise = @client.make_request_async(:put, path_template, options)
264
+ promise = @client.make_request_async(:get, path_template, options)
372
265
 
373
266
  promise = promise.then do |result|
374
267
  http_response = result.response
375
268
  status_code = http_response.status
376
269
  response_content = http_response.body
377
- unless status_code == 200 || status_code == 201
270
+ unless status_code == 200
378
271
  error_model = JSON.load(response_content)
379
272
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
380
273
  end
@@ -384,17 +277,7 @@ module Azure::ARM::Network
384
277
  if status_code == 200
385
278
  begin
386
279
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
387
- result_mapper = RouteTable.mapper()
388
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
389
- rescue Exception => e
390
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
391
- end
392
- end
393
- # Deserialize Response
394
- if status_code == 201
395
- begin
396
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
397
- result_mapper = RouteTable.mapper()
280
+ result_mapper = RouteTableListResult.mapper()
398
281
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
399
282
  rescue Exception => e
400
283
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -408,64 +291,39 @@ module Azure::ARM::Network
408
291
  end
409
292
 
410
293
  #
411
- # The list RouteTables returns all route tables in a resource group
294
+ # Gets all route tables in a subscription.
412
295
  #
413
- # @param resource_group_name [String] The name of the resource group.
414
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
- # will be added to the HTTP request.
416
- #
417
- # @return [RouteTableListResult] which provide lazy access to pages of the
418
- # response.
419
- #
420
- def list_as_lazy(resource_group_name, custom_headers = nil)
421
- response = list_async(resource_group_name, custom_headers).value!
422
- unless response.nil?
423
- page = response.body
424
- page.next_method = Proc.new do |next_page_link|
425
- list_next_async(next_page_link, custom_headers)
426
- end
427
- page
428
- end
429
- end
430
-
431
- #
432
- # The list RouteTables returns all route tables in a resource group
433
- #
434
- # @param resource_group_name [String] The name of the resource group.
435
296
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
436
297
  # will be added to the HTTP request.
437
298
  #
438
299
  # @return [Array<RouteTable>] operation results.
439
300
  #
440
- def list(resource_group_name, custom_headers = nil)
441
- first_page = list_as_lazy(resource_group_name, custom_headers)
301
+ def list_all(custom_headers = nil)
302
+ first_page = list_all_as_lazy(custom_headers)
442
303
  first_page.get_all_items
443
304
  end
444
305
 
445
306
  #
446
- # The list RouteTables returns all route tables in a resource group
307
+ # Gets all route tables in a subscription.
447
308
  #
448
- # @param resource_group_name [String] The name of the resource group.
449
309
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
450
310
  # will be added to the HTTP request.
451
311
  #
452
312
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
453
313
  #
454
- def list_with_http_info(resource_group_name, custom_headers = nil)
455
- list_async(resource_group_name, custom_headers).value!
314
+ def list_all_with_http_info(custom_headers = nil)
315
+ list_all_async(custom_headers).value!
456
316
  end
457
317
 
458
318
  #
459
- # The list RouteTables returns all route tables in a resource group
319
+ # Gets all route tables in a subscription.
460
320
  #
461
- # @param resource_group_name [String] The name of the resource group.
462
321
  # @param [Hash{String => String}] A hash of custom headers that will be added
463
322
  # to the HTTP request.
464
323
  #
465
324
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
466
325
  #
467
- def list_async(resource_group_name, custom_headers = nil)
468
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
326
+ def list_all_async(custom_headers = nil)
469
327
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
470
328
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
471
329
 
@@ -475,13 +333,13 @@ module Azure::ARM::Network
475
333
  # Set Headers
476
334
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
477
335
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
478
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables'
336
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables'
479
337
 
480
338
  request_url = @base_url || @client.base_url
481
339
 
482
340
  options = {
483
341
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
484
- path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
342
+ path_params: {'subscriptionId' => @client.subscription_id},
485
343
  query_params: {'api-version' => @client.api_version},
486
344
  headers: request_headers.merge(custom_headers || {}),
487
345
  base_url: request_url
@@ -516,59 +374,134 @@ module Azure::ARM::Network
516
374
  end
517
375
 
518
376
  #
519
- # The list RouteTables returns all route tables in a subscription
377
+ # Deletes the specified route table.
378
+ #
379
+ # @param resource_group_name [String] The name of the resource group.
380
+ # @param route_table_name [String] The name of the route table.
381
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
382
+ # will be added to the HTTP request.
383
+ #
384
+ #
385
+ def begin_delete(resource_group_name, route_table_name, custom_headers = nil)
386
+ response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value!
387
+ nil
388
+ end
389
+
390
+ #
391
+ # Deletes the specified route table.
520
392
  #
393
+ # @param resource_group_name [String] The name of the resource group.
394
+ # @param route_table_name [String] The name of the route table.
521
395
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
522
396
  # will be added to the HTTP request.
523
397
  #
524
- # @return [RouteTableListResult] which provide lazy access to pages of the
525
- # response.
398
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
526
399
  #
527
- def list_all_as_lazy(custom_headers = nil)
528
- response = list_all_async(custom_headers).value!
529
- unless response.nil?
530
- page = response.body
531
- page.next_method = Proc.new do |next_page_link|
532
- list_all_next_async(next_page_link, custom_headers)
400
+ def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil)
401
+ begin_delete_async(resource_group_name, route_table_name, custom_headers).value!
402
+ end
403
+
404
+ #
405
+ # Deletes the specified route table.
406
+ #
407
+ # @param resource_group_name [String] The name of the resource group.
408
+ # @param route_table_name [String] The name of the route table.
409
+ # @param [Hash{String => String}] A hash of custom headers that will be added
410
+ # to the HTTP request.
411
+ #
412
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
413
+ #
414
+ def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil)
415
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
416
+ fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
417
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
418
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
419
+
420
+
421
+ request_headers = {}
422
+
423
+ # Set Headers
424
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
425
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
426
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'
427
+
428
+ request_url = @base_url || @client.base_url
429
+
430
+ options = {
431
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
432
+ path_params: {'resourceGroupName' => resource_group_name,'routeTableName' => route_table_name,'subscriptionId' => @client.subscription_id},
433
+ query_params: {'api-version' => @client.api_version},
434
+ headers: request_headers.merge(custom_headers || {}),
435
+ base_url: request_url
436
+ }
437
+ promise = @client.make_request_async(:delete, path_template, options)
438
+
439
+ promise = promise.then do |result|
440
+ http_response = result.response
441
+ status_code = http_response.status
442
+ response_content = http_response.body
443
+ unless status_code == 204 || status_code == 200 || status_code == 202
444
+ error_model = JSON.load(response_content)
445
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
533
446
  end
534
- page
447
+
448
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
449
+
450
+ result
535
451
  end
452
+
453
+ promise.execute
536
454
  end
537
455
 
538
456
  #
539
- # The list RouteTables returns all route tables in a subscription
457
+ # Create or updates a route table in a specified resource group.
540
458
  #
459
+ # @param resource_group_name [String] The name of the resource group.
460
+ # @param route_table_name [String] The name of the route table.
461
+ # @param parameters [RouteTable] Parameters supplied to the create or update
462
+ # route table operation.
541
463
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
542
464
  # will be added to the HTTP request.
543
465
  #
544
- # @return [Array<RouteTable>] operation results.
466
+ # @return [RouteTable] operation results.
545
467
  #
546
- def list_all(custom_headers = nil)
547
- first_page = list_all_as_lazy(custom_headers)
548
- first_page.get_all_items
468
+ def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil)
469
+ response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value!
470
+ response.body unless response.nil?
549
471
  end
550
472
 
551
473
  #
552
- # The list RouteTables returns all route tables in a subscription
474
+ # Create or updates a route table in a specified resource group.
553
475
  #
476
+ # @param resource_group_name [String] The name of the resource group.
477
+ # @param route_table_name [String] The name of the route table.
478
+ # @param parameters [RouteTable] Parameters supplied to the create or update
479
+ # route table operation.
554
480
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
555
481
  # will be added to the HTTP request.
556
482
  #
557
483
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
558
484
  #
559
- def list_all_with_http_info(custom_headers = nil)
560
- list_all_async(custom_headers).value!
485
+ def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil)
486
+ begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value!
561
487
  end
562
488
 
563
489
  #
564
- # The list RouteTables returns all route tables in a subscription
490
+ # Create or updates a route table in a specified resource group.
565
491
  #
492
+ # @param resource_group_name [String] The name of the resource group.
493
+ # @param route_table_name [String] The name of the route table.
494
+ # @param parameters [RouteTable] Parameters supplied to the create or update
495
+ # route table operation.
566
496
  # @param [Hash{String => String}] A hash of custom headers that will be added
567
497
  # to the HTTP request.
568
498
  #
569
499
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
570
500
  #
571
- def list_all_async(custom_headers = nil)
501
+ def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil)
502
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
503
+ fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
504
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
572
505
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
573
506
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
574
507
 
@@ -578,24 +511,33 @@ module Azure::ARM::Network
578
511
  # Set Headers
579
512
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
580
513
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
581
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables'
514
+
515
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
516
+
517
+ # Serialize Request
518
+ request_mapper = RouteTable.mapper()
519
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
520
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
521
+
522
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'
582
523
 
583
524
  request_url = @base_url || @client.base_url
584
525
 
585
526
  options = {
586
527
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
587
- path_params: {'subscriptionId' => @client.subscription_id},
528
+ path_params: {'resourceGroupName' => resource_group_name,'routeTableName' => route_table_name,'subscriptionId' => @client.subscription_id},
588
529
  query_params: {'api-version' => @client.api_version},
530
+ body: request_content,
589
531
  headers: request_headers.merge(custom_headers || {}),
590
532
  base_url: request_url
591
533
  }
592
- promise = @client.make_request_async(:get, path_template, options)
534
+ promise = @client.make_request_async(:put, path_template, options)
593
535
 
594
536
  promise = promise.then do |result|
595
537
  http_response = result.response
596
538
  status_code = http_response.status
597
539
  response_content = http_response.body
598
- unless status_code == 200
540
+ unless status_code == 200 || status_code == 201
599
541
  error_model = JSON.load(response_content)
600
542
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
601
543
  end
@@ -605,7 +547,17 @@ module Azure::ARM::Network
605
547
  if status_code == 200
606
548
  begin
607
549
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
608
- result_mapper = RouteTableListResult.mapper()
550
+ result_mapper = RouteTable.mapper()
551
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
552
+ rescue Exception => e
553
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
554
+ end
555
+ end
556
+ # Deserialize Response
557
+ if status_code == 201
558
+ begin
559
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
560
+ result_mapper = RouteTable.mapper()
609
561
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
610
562
  rescue Exception => e
611
563
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -619,10 +571,10 @@ module Azure::ARM::Network
619
571
  end
620
572
 
621
573
  #
622
- # The list RouteTables returns all route tables in a resource group
574
+ # Gets all route tables in a resource group.
623
575
  #
624
- # @param next_page_link [String] The NextLink from the previous successful
625
- # call to List operation.
576
+ # @param next_page_link [String] The NextLink from the previous successful call
577
+ # to List operation.
626
578
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
627
579
  # will be added to the HTTP request.
628
580
  #
@@ -634,10 +586,10 @@ module Azure::ARM::Network
634
586
  end
635
587
 
636
588
  #
637
- # The list RouteTables returns all route tables in a resource group
589
+ # Gets all route tables in a resource group.
638
590
  #
639
- # @param next_page_link [String] The NextLink from the previous successful
640
- # call to List operation.
591
+ # @param next_page_link [String] The NextLink from the previous successful call
592
+ # to List operation.
641
593
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
642
594
  # will be added to the HTTP request.
643
595
  #
@@ -648,10 +600,10 @@ module Azure::ARM::Network
648
600
  end
649
601
 
650
602
  #
651
- # The list RouteTables returns all route tables in a resource group
603
+ # Gets all route tables in a resource group.
652
604
  #
653
- # @param next_page_link [String] The NextLink from the previous successful
654
- # call to List operation.
605
+ # @param next_page_link [String] The NextLink from the previous successful call
606
+ # to List operation.
655
607
  # @param [Hash{String => String}] A hash of custom headers that will be added
656
608
  # to the HTTP request.
657
609
  #
@@ -706,10 +658,10 @@ module Azure::ARM::Network
706
658
  end
707
659
 
708
660
  #
709
- # The list RouteTables returns all route tables in a subscription
661
+ # Gets all route tables in a subscription.
710
662
  #
711
- # @param next_page_link [String] The NextLink from the previous successful
712
- # call to List operation.
663
+ # @param next_page_link [String] The NextLink from the previous successful call
664
+ # to List operation.
713
665
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
714
666
  # will be added to the HTTP request.
715
667
  #
@@ -721,10 +673,10 @@ module Azure::ARM::Network
721
673
  end
722
674
 
723
675
  #
724
- # The list RouteTables returns all route tables in a subscription
676
+ # Gets all route tables in a subscription.
725
677
  #
726
- # @param next_page_link [String] The NextLink from the previous successful
727
- # call to List operation.
678
+ # @param next_page_link [String] The NextLink from the previous successful call
679
+ # to List operation.
728
680
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
729
681
  # will be added to the HTTP request.
730
682
  #
@@ -735,10 +687,10 @@ module Azure::ARM::Network
735
687
  end
736
688
 
737
689
  #
738
- # The list RouteTables returns all route tables in a subscription
690
+ # Gets all route tables in a subscription.
739
691
  #
740
- # @param next_page_link [String] The NextLink from the previous successful
741
- # call to List operation.
692
+ # @param next_page_link [String] The NextLink from the previous successful call
693
+ # to List operation.
742
694
  # @param [Hash{String => String}] A hash of custom headers that will be added
743
695
  # to the HTTP request.
744
696
  #
@@ -792,5 +744,46 @@ module Azure::ARM::Network
792
744
  promise.execute
793
745
  end
794
746
 
747
+ #
748
+ # Gets all route tables in a resource group.
749
+ #
750
+ # @param resource_group_name [String] The name of the resource group.
751
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
752
+ # will be added to the HTTP request.
753
+ #
754
+ # @return [RouteTableListResult] which provide lazy access to pages of the
755
+ # response.
756
+ #
757
+ def list_as_lazy(resource_group_name, custom_headers = nil)
758
+ response = list_async(resource_group_name, custom_headers).value!
759
+ unless response.nil?
760
+ page = response.body
761
+ page.next_method = Proc.new do |next_page_link|
762
+ list_next_async(next_page_link, custom_headers)
763
+ end
764
+ page
765
+ end
766
+ end
767
+
768
+ #
769
+ # Gets all route tables in a subscription.
770
+ #
771
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
772
+ # will be added to the HTTP request.
773
+ #
774
+ # @return [RouteTableListResult] which provide lazy access to pages of the
775
+ # response.
776
+ #
777
+ def list_all_as_lazy(custom_headers = nil)
778
+ response = list_all_async(custom_headers).value!
779
+ unless response.nil?
780
+ page = response.body
781
+ page.next_method = Proc.new do |next_page_link|
782
+ list_all_next_async(next_page_link, custom_headers)
783
+ end
784
+ page
785
+ end
786
+ end
787
+
795
788
  end
796
789
  end