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
 
@@ -29,13 +29,39 @@ module Azure::ARM::Network
29
29
  # The List ExpressRouteServiceProvider opertion retrieves all the available
30
30
  # ExpressRouteServiceProviders.
31
31
  #
32
- # @param [Hash{String => String}] The hash of custom headers need to be
33
- # applied to HTTP request.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
34
  #
35
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
36
- # response.
35
+ # @return [ExpressRouteServiceProviderListResult] operation results.
37
36
  #
38
37
  def list(custom_headers = nil)
38
+ response = list_async(custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # The List ExpressRouteServiceProvider opertion retrieves all the available
44
+ # ExpressRouteServiceProviders.
45
+ #
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def list_with_http_info(custom_headers = nil)
52
+ list_async(custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # The List ExpressRouteServiceProvider opertion retrieves all the available
57
+ # ExpressRouteServiceProviders.
58
+ #
59
+ # @param [Hash{String => String}] A hash of custom headers that will be added
60
+ # to the HTTP request.
61
+ #
62
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
63
+ #
64
+ def list_async(custom_headers = nil)
39
65
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
40
66
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
41
67
  request_headers = {}
@@ -50,7 +76,10 @@ module Azure::ARM::Network
50
76
  query_params: {'api-version' => @client.api_version},
51
77
  headers: request_headers.merge(custom_headers || {})
52
78
  }
53
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
79
+
80
+ request_url = @base_url || @client.base_url
81
+
82
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
54
83
  promise = request.run_promise do |req|
55
84
  @client.credentials.sign_request(req) unless @client.credentials.nil?
56
85
  end
@@ -91,13 +120,43 @@ module Azure::ARM::Network
91
120
  #
92
121
  # @param next_page_link [String] The NextLink from the previous successful
93
122
  # call to List operation.
94
- # @param [Hash{String => String}] The hash of custom headers need to be
95
- # applied to HTTP request.
123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
124
+ # will be added to the HTTP request.
96
125
  #
97
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
98
- # response.
126
+ # @return [ExpressRouteServiceProviderListResult] operation results.
99
127
  #
100
128
  def list_next(next_page_link, custom_headers = nil)
129
+ response = list_next_async(next_page_link, custom_headers).value!
130
+ response.body unless response.nil?
131
+ end
132
+
133
+ #
134
+ # The List ExpressRouteServiceProvider opertion retrieves all the available
135
+ # ExpressRouteServiceProviders.
136
+ #
137
+ # @param next_page_link [String] The NextLink from the previous successful
138
+ # call to List operation.
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
143
+ #
144
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
145
+ list_next_async(next_page_link, custom_headers).value!
146
+ end
147
+
148
+ #
149
+ # The List ExpressRouteServiceProvider opertion retrieves all the available
150
+ # ExpressRouteServiceProviders.
151
+ #
152
+ # @param next_page_link [String] The NextLink from the previous successful
153
+ # call to List operation.
154
+ # @param [Hash{String => String}] A hash of custom headers that will be added
155
+ # to the HTTP request.
156
+ #
157
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
+ #
159
+ def list_next_async(next_page_link, custom_headers = nil)
101
160
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
102
161
  request_headers = {}
103
162
 
@@ -110,7 +169,10 @@ module Azure::ARM::Network
110
169
  skip_encoding_path_params: {'nextLink' => next_page_link},
111
170
  headers: request_headers.merge(custom_headers || {})
112
171
  }
113
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
172
+
173
+ request_url = @base_url || @client.base_url
174
+
175
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
114
176
  promise = request.run_promise do |req|
115
177
  @client.credentials.sign_request(req) unless @client.credentials.nil?
116
178
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -35,7 +35,7 @@ module Azure::ARM::Network
35
35
  #
36
36
  def delete(resource_group_name, load_balancer_name, custom_headers = nil)
37
37
  # Send request
38
- promise = begin_delete(resource_group_name, load_balancer_name, custom_headers)
38
+ promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers)
39
39
 
40
40
  promise = promise.then do |response|
41
41
  # Defining deserialization method.
@@ -43,7 +43,7 @@ module Azure::ARM::Network
43
43
  end
44
44
 
45
45
  # Waiting for response.
46
- @client.get_post_or_delete_operation_result(response, deserialize_method)
46
+ @client.get_long_running_operation_result(response, deserialize_method)
47
47
  end
48
48
 
49
49
  promise
@@ -54,13 +54,40 @@ module Azure::ARM::Network
54
54
  #
55
55
  # @param resource_group_name [String] The name of the resource group.
56
56
  # @param load_balancer_name [String] The name of the loadBalancer.
57
- # @param [Hash{String => String}] The hash of custom headers need to be
58
- # applied to HTTP request.
57
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
58
+ # will be added to the HTTP request.
59
59
  #
60
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
61
- # response.
62
60
  #
63
61
  def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil)
62
+ response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value!
63
+ nil
64
+ end
65
+
66
+ #
67
+ # The delete loadbalancer operation deletes the specified loadbalancer.
68
+ #
69
+ # @param resource_group_name [String] The name of the resource group.
70
+ # @param load_balancer_name [String] The name of the loadBalancer.
71
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
72
+ # will be added to the HTTP request.
73
+ #
74
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
75
+ #
76
+ def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
77
+ begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value!
78
+ end
79
+
80
+ #
81
+ # The delete loadbalancer operation deletes the specified loadbalancer.
82
+ #
83
+ # @param resource_group_name [String] The name of the resource group.
84
+ # @param load_balancer_name [String] The name of the loadBalancer.
85
+ # @param [Hash{String => String}] A hash of custom headers that will be added
86
+ # to the HTTP request.
87
+ #
88
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
89
+ #
90
+ def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil)
64
91
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
92
  fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
66
93
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -77,7 +104,10 @@ module Azure::ARM::Network
77
104
  query_params: {'api-version' => @client.api_version},
78
105
  headers: request_headers.merge(custom_headers || {})
79
106
  }
80
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
107
+
108
+ request_url = @base_url || @client.base_url
109
+
110
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
81
111
  promise = request.run_promise do |req|
82
112
  @client.credentials.sign_request(req) unless @client.credentials.nil?
83
113
  end
@@ -107,13 +137,45 @@ module Azure::ARM::Network
107
137
  # @param resource_group_name [String] The name of the resource group.
108
138
  # @param load_balancer_name [String] The name of the loadBalancer.
109
139
  # @param expand [String] expand references resources.
110
- # @param [Hash{String => String}] The hash of custom headers need to be
111
- # applied to HTTP request.
140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
+ # will be added to the HTTP request.
112
142
  #
113
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
114
- # response.
143
+ # @return [LoadBalancer] operation results.
115
144
  #
116
145
  def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil)
146
+ response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value!
147
+ response.body unless response.nil?
148
+ end
149
+
150
+ #
151
+ # The Get ntework interface operation retreives information about the
152
+ # specified network interface.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param load_balancer_name [String] The name of the loadBalancer.
156
+ # @param expand [String] expand references resources.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil)
163
+ get_async(resource_group_name, load_balancer_name, expand, custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # The Get ntework interface operation retreives information about the
168
+ # specified network interface.
169
+ #
170
+ # @param resource_group_name [String] The name of the resource group.
171
+ # @param load_balancer_name [String] The name of the loadBalancer.
172
+ # @param expand [String] expand references resources.
173
+ # @param [Hash{String => String}] A hash of custom headers that will be added
174
+ # to the HTTP request.
175
+ #
176
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
177
+ #
178
+ def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil)
117
179
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
180
  fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
119
181
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -130,7 +192,10 @@ module Azure::ARM::Network
130
192
  query_params: {'api-version' => @client.api_version,'$expand' => expand},
131
193
  headers: request_headers.merge(custom_headers || {})
132
194
  }
133
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
195
+
196
+ request_url = @base_url || @client.base_url
197
+
198
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
134
199
  promise = request.run_promise do |req|
135
200
  @client.credentials.sign_request(req) unless @client.credentials.nil?
136
201
  end
@@ -184,7 +249,7 @@ module Azure::ARM::Network
184
249
  #
185
250
  def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil)
186
251
  # Send request
187
- promise = begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers)
252
+ promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers)
188
253
 
189
254
  promise = promise.then do |response|
190
255
  # Defining deserialization method.
@@ -195,7 +260,7 @@ module Azure::ARM::Network
195
260
  end
196
261
 
197
262
  # Waiting for response.
198
- @client.get_put_operation_result(response, deserialize_method)
263
+ @client.get_long_running_operation_result(response, deserialize_method)
199
264
  end
200
265
 
201
266
  promise
@@ -208,13 +273,45 @@ module Azure::ARM::Network
208
273
  # @param load_balancer_name [String] The name of the loadBalancer.
209
274
  # @param parameters [LoadBalancer] Parameters supplied to the create/delete
210
275
  # LoadBalancer operation
211
- # @param [Hash{String => String}] The hash of custom headers need to be
212
- # applied to HTTP request.
276
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
277
+ # will be added to the HTTP request.
213
278
  #
214
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
215
- # response.
279
+ # @return [LoadBalancer] operation results.
216
280
  #
217
281
  def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil)
282
+ response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value!
283
+ response.body unless response.nil?
284
+ end
285
+
286
+ #
287
+ # The Put LoadBalancer operation creates/updates a LoadBalancer
288
+ #
289
+ # @param resource_group_name [String] The name of the resource group.
290
+ # @param load_balancer_name [String] The name of the loadBalancer.
291
+ # @param parameters [LoadBalancer] Parameters supplied to the create/delete
292
+ # LoadBalancer operation
293
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
294
+ # will be added to the HTTP request.
295
+ #
296
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
297
+ #
298
+ def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil)
299
+ begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value!
300
+ end
301
+
302
+ #
303
+ # The Put LoadBalancer operation creates/updates a LoadBalancer
304
+ #
305
+ # @param resource_group_name [String] The name of the resource group.
306
+ # @param load_balancer_name [String] The name of the loadBalancer.
307
+ # @param parameters [LoadBalancer] Parameters supplied to the create/delete
308
+ # LoadBalancer operation
309
+ # @param [Hash{String => String}] A hash of custom headers that will be added
310
+ # to the HTTP request.
311
+ #
312
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
313
+ #
314
+ def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil)
218
315
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
219
316
  fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
220
317
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -232,7 +329,7 @@ module Azure::ARM::Network
232
329
  unless parameters.nil?
233
330
  parameters = LoadBalancer.serialize_object(parameters)
234
331
  end
235
- request_content = JSON.generate(parameters, quirks_mode: true)
332
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
236
333
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}'
237
334
  options = {
238
335
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -241,7 +338,10 @@ module Azure::ARM::Network
241
338
  body: request_content,
242
339
  headers: request_headers.merge(custom_headers || {})
243
340
  }
244
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
341
+
342
+ request_url = @base_url || @client.base_url
343
+
344
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
245
345
  promise = request.run_promise do |req|
246
346
  @client.credentials.sign_request(req) unless @client.credentials.nil?
247
347
  end
@@ -292,13 +392,39 @@ module Azure::ARM::Network
292
392
  # The List loadBalancer opertion retrieves all the loadbalancers in a
293
393
  # subscription.
294
394
  #
295
- # @param [Hash{String => String}] The hash of custom headers need to be
296
- # applied to HTTP request.
395
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
396
+ # will be added to the HTTP request.
297
397
  #
298
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
299
- # response.
398
+ # @return [LoadBalancerListResult] operation results.
300
399
  #
301
400
  def list_all(custom_headers = nil)
401
+ response = list_all_async(custom_headers).value!
402
+ response.body unless response.nil?
403
+ end
404
+
405
+ #
406
+ # The List loadBalancer opertion retrieves all the loadbalancers in a
407
+ # subscription.
408
+ #
409
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
410
+ # will be added to the HTTP request.
411
+ #
412
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
413
+ #
414
+ def list_all_with_http_info(custom_headers = nil)
415
+ list_all_async(custom_headers).value!
416
+ end
417
+
418
+ #
419
+ # The List loadBalancer opertion retrieves all the loadbalancers in a
420
+ # subscription.
421
+ #
422
+ # @param [Hash{String => String}] A hash of custom headers that will be added
423
+ # to the HTTP request.
424
+ #
425
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
426
+ #
427
+ def list_all_async(custom_headers = nil)
302
428
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
303
429
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
304
430
  request_headers = {}
@@ -313,7 +439,10 @@ module Azure::ARM::Network
313
439
  query_params: {'api-version' => @client.api_version},
314
440
  headers: request_headers.merge(custom_headers || {})
315
441
  }
316
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
442
+
443
+ request_url = @base_url || @client.base_url
444
+
445
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
317
446
  promise = request.run_promise do |req|
318
447
  @client.credentials.sign_request(req) unless @client.credentials.nil?
319
448
  end
@@ -353,13 +482,41 @@ module Azure::ARM::Network
353
482
  # group.
354
483
  #
355
484
  # @param resource_group_name [String] The name of the resource group.
356
- # @param [Hash{String => String}] The hash of custom headers need to be
357
- # applied to HTTP request.
485
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
486
+ # will be added to the HTTP request.
358
487
  #
359
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
360
- # response.
488
+ # @return [LoadBalancerListResult] operation results.
361
489
  #
362
490
  def list(resource_group_name, custom_headers = nil)
491
+ response = list_async(resource_group_name, custom_headers).value!
492
+ response.body unless response.nil?
493
+ end
494
+
495
+ #
496
+ # The List loadBalancer opertion retrieves all the loadbalancers in a resource
497
+ # group.
498
+ #
499
+ # @param resource_group_name [String] The name of the resource group.
500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
501
+ # will be added to the HTTP request.
502
+ #
503
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
504
+ #
505
+ def list_with_http_info(resource_group_name, custom_headers = nil)
506
+ list_async(resource_group_name, custom_headers).value!
507
+ end
508
+
509
+ #
510
+ # The List loadBalancer opertion retrieves all the loadbalancers in a resource
511
+ # group.
512
+ #
513
+ # @param resource_group_name [String] The name of the resource group.
514
+ # @param [Hash{String => String}] A hash of custom headers that will be added
515
+ # to the HTTP request.
516
+ #
517
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
518
+ #
519
+ def list_async(resource_group_name, custom_headers = nil)
363
520
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
364
521
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
365
522
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -375,7 +532,10 @@ module Azure::ARM::Network
375
532
  query_params: {'api-version' => @client.api_version},
376
533
  headers: request_headers.merge(custom_headers || {})
377
534
  }
378
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
535
+
536
+ request_url = @base_url || @client.base_url
537
+
538
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
379
539
  promise = request.run_promise do |req|
380
540
  @client.credentials.sign_request(req) unless @client.credentials.nil?
381
541
  end
@@ -416,13 +576,43 @@ module Azure::ARM::Network
416
576
  #
417
577
  # @param next_page_link [String] The NextLink from the previous successful
418
578
  # call to List operation.
419
- # @param [Hash{String => String}] The hash of custom headers need to be
420
- # applied to HTTP request.
579
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
580
+ # will be added to the HTTP request.
421
581
  #
422
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
423
- # response.
582
+ # @return [LoadBalancerListResult] operation results.
424
583
  #
425
584
  def list_all_next(next_page_link, custom_headers = nil)
585
+ response = list_all_next_async(next_page_link, custom_headers).value!
586
+ response.body unless response.nil?
587
+ end
588
+
589
+ #
590
+ # The List loadBalancer opertion retrieves all the loadbalancers in a
591
+ # subscription.
592
+ #
593
+ # @param next_page_link [String] The NextLink from the previous successful
594
+ # call to List operation.
595
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
596
+ # will be added to the HTTP request.
597
+ #
598
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
599
+ #
600
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
601
+ list_all_next_async(next_page_link, custom_headers).value!
602
+ end
603
+
604
+ #
605
+ # The List loadBalancer opertion retrieves all the loadbalancers in a
606
+ # subscription.
607
+ #
608
+ # @param next_page_link [String] The NextLink from the previous successful
609
+ # call to List operation.
610
+ # @param [Hash{String => String}] A hash of custom headers that will be added
611
+ # to the HTTP request.
612
+ #
613
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
614
+ #
615
+ def list_all_next_async(next_page_link, custom_headers = nil)
426
616
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
427
617
  request_headers = {}
428
618
 
@@ -435,7 +625,10 @@ module Azure::ARM::Network
435
625
  skip_encoding_path_params: {'nextLink' => next_page_link},
436
626
  headers: request_headers.merge(custom_headers || {})
437
627
  }
438
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
628
+
629
+ request_url = @base_url || @client.base_url
630
+
631
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
439
632
  promise = request.run_promise do |req|
440
633
  @client.credentials.sign_request(req) unless @client.credentials.nil?
441
634
  end
@@ -476,13 +669,43 @@ module Azure::ARM::Network
476
669
  #
477
670
  # @param next_page_link [String] The NextLink from the previous successful
478
671
  # call to List operation.
479
- # @param [Hash{String => String}] The hash of custom headers need to be
480
- # applied to HTTP request.
672
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
673
+ # will be added to the HTTP request.
481
674
  #
482
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
483
- # response.
675
+ # @return [LoadBalancerListResult] operation results.
484
676
  #
485
677
  def list_next(next_page_link, custom_headers = nil)
678
+ response = list_next_async(next_page_link, custom_headers).value!
679
+ response.body unless response.nil?
680
+ end
681
+
682
+ #
683
+ # The List loadBalancer opertion retrieves all the loadbalancers in a resource
684
+ # group.
685
+ #
686
+ # @param next_page_link [String] The NextLink from the previous successful
687
+ # call to List operation.
688
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
689
+ # will be added to the HTTP request.
690
+ #
691
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
692
+ #
693
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
694
+ list_next_async(next_page_link, custom_headers).value!
695
+ end
696
+
697
+ #
698
+ # The List loadBalancer opertion retrieves all the loadbalancers in a resource
699
+ # group.
700
+ #
701
+ # @param next_page_link [String] The NextLink from the previous successful
702
+ # call to List operation.
703
+ # @param [Hash{String => String}] A hash of custom headers that will be added
704
+ # to the HTTP request.
705
+ #
706
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
707
+ #
708
+ def list_next_async(next_page_link, custom_headers = nil)
486
709
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
487
710
  request_headers = {}
488
711
 
@@ -495,7 +718,10 @@ module Azure::ARM::Network
495
718
  skip_encoding_path_params: {'nextLink' => next_page_link},
496
719
  headers: request_headers.merge(custom_headers || {})
497
720
  }
498
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
721
+
722
+ request_url = @base_url || @client.base_url
723
+
724
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
499
725
  promise = request.run_promise do |req|
500
726
  @client.credentials.sign_request(req) unless @client.credentials.nil?
501
727
  end