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
 
@@ -35,7 +35,7 @@ module Azure::ARM::Network
35
35
  #
36
36
  def delete(resource_group_name, virtual_network_name, custom_headers = nil)
37
37
  # Send request
38
- promise = begin_delete(resource_group_name, virtual_network_name, custom_headers)
38
+ promise = begin_delete_async(resource_group_name, virtual_network_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 virtual_network_name [String] The name of the virtual network.
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, virtual_network_name, custom_headers = nil)
62
+ response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value!
63
+ nil
64
+ end
65
+
66
+ #
67
+ # The Delete VirtualNetwork operation deletes the specifed virtual network
68
+ #
69
+ # @param resource_group_name [String] The name of the resource group.
70
+ # @param virtual_network_name [String] The name of the virtual network.
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, virtual_network_name, custom_headers = nil)
77
+ begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value!
78
+ end
79
+
80
+ #
81
+ # The Delete VirtualNetwork operation deletes the specifed virtual network
82
+ #
83
+ # @param resource_group_name [String] The name of the resource group.
84
+ # @param virtual_network_name [String] The name of the virtual network.
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, virtual_network_name, custom_headers = nil)
64
91
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
92
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_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 virtual_network_name [String] The name of the virtual network.
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 [VirtualNetwork] operation results.
115
144
  #
116
145
  def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil)
146
+ response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value!
147
+ response.body unless response.nil?
148
+ end
149
+
150
+ #
151
+ # The Get VirtualNetwork operation retrieves information about the specified
152
+ # virtual network.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param virtual_network_name [String] The name of the virtual network.
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, virtual_network_name, expand = nil, custom_headers = nil)
163
+ get_async(resource_group_name, virtual_network_name, expand, custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # The Get VirtualNetwork operation retrieves information about the specified
168
+ # virtual network.
169
+ #
170
+ # @param resource_group_name [String] The name of the resource group.
171
+ # @param virtual_network_name [String] The name of the virtual network.
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, virtual_network_name, expand = nil, custom_headers = nil)
117
179
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
180
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_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
@@ -185,7 +250,7 @@ module Azure::ARM::Network
185
250
  #
186
251
  def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil)
187
252
  # Send request
188
- promise = begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers)
253
+ promise = begin_create_or_update_async(resource_group_name, virtual_network_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
@@ -210,13 +275,47 @@ module Azure::ARM::Network
210
275
  # @param virtual_network_name [String] The name of the virtual network.
211
276
  # @param parameters [VirtualNetwork] Parameters supplied to the create/update
212
277
  # Virtual Network operation
213
- # @param [Hash{String => String}] The hash of custom headers need to be
214
- # applied to HTTP request.
278
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
279
+ # will be added to the HTTP request.
215
280
  #
216
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
217
- # response.
281
+ # @return [VirtualNetwork] operation results.
218
282
  #
219
283
  def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil)
284
+ response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value!
285
+ response.body unless response.nil?
286
+ end
287
+
288
+ #
289
+ # The Put VirtualNetwork operation creates/updates a virtual network in the
290
+ # specified resource group.
291
+ #
292
+ # @param resource_group_name [String] The name of the resource group.
293
+ # @param virtual_network_name [String] The name of the virtual network.
294
+ # @param parameters [VirtualNetwork] Parameters supplied to the create/update
295
+ # Virtual Network operation
296
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
297
+ # will be added to the HTTP request.
298
+ #
299
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
300
+ #
301
+ def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil)
302
+ begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value!
303
+ end
304
+
305
+ #
306
+ # The Put VirtualNetwork operation creates/updates a virtual network in the
307
+ # specified resource group.
308
+ #
309
+ # @param resource_group_name [String] The name of the resource group.
310
+ # @param virtual_network_name [String] The name of the virtual network.
311
+ # @param parameters [VirtualNetwork] Parameters supplied to the create/update
312
+ # Virtual Network operation
313
+ # @param [Hash{String => String}] A hash of custom headers that will be added
314
+ # to the HTTP request.
315
+ #
316
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
317
+ #
318
+ def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil)
220
319
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
221
320
  fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
222
321
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -234,7 +333,7 @@ module Azure::ARM::Network
234
333
  unless parameters.nil?
235
334
  parameters = VirtualNetwork.serialize_object(parameters)
236
335
  end
237
- request_content = JSON.generate(parameters, quirks_mode: true)
336
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
238
337
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualnetworks/{virtualNetworkName}'
239
338
  options = {
240
339
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -243,7 +342,10 @@ module Azure::ARM::Network
243
342
  body: request_content,
244
343
  headers: request_headers.merge(custom_headers || {})
245
344
  }
246
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
345
+
346
+ request_url = @base_url || @client.base_url
347
+
348
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
247
349
  promise = request.run_promise do |req|
248
350
  @client.credentials.sign_request(req) unless @client.credentials.nil?
249
351
  end
@@ -293,13 +395,37 @@ module Azure::ARM::Network
293
395
  #
294
396
  # The list VirtualNetwork returns all Virtual Networks in a subscription
295
397
  #
296
- # @param [Hash{String => String}] The hash of custom headers need to be
297
- # applied to HTTP request.
398
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
399
+ # will be added to the HTTP request.
298
400
  #
299
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
300
- # response.
401
+ # @return [VirtualNetworkListResult] operation results.
301
402
  #
302
403
  def list_all(custom_headers = nil)
404
+ response = list_all_async(custom_headers).value!
405
+ response.body unless response.nil?
406
+ end
407
+
408
+ #
409
+ # The list VirtualNetwork returns all Virtual Networks in a subscription
410
+ #
411
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
412
+ # will be added to the HTTP request.
413
+ #
414
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
415
+ #
416
+ def list_all_with_http_info(custom_headers = nil)
417
+ list_all_async(custom_headers).value!
418
+ end
419
+
420
+ #
421
+ # The list VirtualNetwork returns all Virtual Networks in a subscription
422
+ #
423
+ # @param [Hash{String => String}] A hash of custom headers that will be added
424
+ # to the HTTP request.
425
+ #
426
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
427
+ #
428
+ def list_all_async(custom_headers = nil)
303
429
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
304
430
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
305
431
  request_headers = {}
@@ -314,7 +440,10 @@ module Azure::ARM::Network
314
440
  query_params: {'api-version' => @client.api_version},
315
441
  headers: request_headers.merge(custom_headers || {})
316
442
  }
317
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
443
+
444
+ request_url = @base_url || @client.base_url
445
+
446
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
318
447
  promise = request.run_promise do |req|
319
448
  @client.credentials.sign_request(req) unless @client.credentials.nil?
320
449
  end
@@ -353,13 +482,39 @@ module Azure::ARM::Network
353
482
  # The list VirtualNetwork returns all Virtual Networks in a resource 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 [VirtualNetworkListResult] 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 VirtualNetwork returns all Virtual Networks in a resource group
497
+ #
498
+ # @param resource_group_name [String] The name of the resource group.
499
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
500
+ # will be added to the HTTP request.
501
+ #
502
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
503
+ #
504
+ def list_with_http_info(resource_group_name, custom_headers = nil)
505
+ list_async(resource_group_name, custom_headers).value!
506
+ end
507
+
508
+ #
509
+ # The list VirtualNetwork returns all Virtual Networks in a resource group
510
+ #
511
+ # @param resource_group_name [String] The name of the resource group.
512
+ # @param [Hash{String => String}] A hash of custom headers that will be added
513
+ # to the HTTP request.
514
+ #
515
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
516
+ #
517
+ def list_async(resource_group_name, custom_headers = nil)
363
518
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
364
519
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
365
520
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -375,7 +530,10 @@ module Azure::ARM::Network
375
530
  query_params: {'api-version' => @client.api_version},
376
531
  headers: request_headers.merge(custom_headers || {})
377
532
  }
378
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
533
+
534
+ request_url = @base_url || @client.base_url
535
+
536
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
379
537
  promise = request.run_promise do |req|
380
538
  @client.credentials.sign_request(req) unless @client.credentials.nil?
381
539
  end
@@ -415,13 +573,41 @@ module Azure::ARM::Network
415
573
  #
416
574
  # @param next_page_link [String] The NextLink from the previous successful
417
575
  # call to List operation.
418
- # @param [Hash{String => String}] The hash of custom headers need to be
419
- # applied to HTTP request.
576
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
577
+ # will be added to the HTTP request.
420
578
  #
421
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
422
- # response.
579
+ # @return [VirtualNetworkListResult] operation results.
423
580
  #
424
581
  def list_all_next(next_page_link, custom_headers = nil)
582
+ response = list_all_next_async(next_page_link, custom_headers).value!
583
+ response.body unless response.nil?
584
+ end
585
+
586
+ #
587
+ # The list VirtualNetwork returns all Virtual Networks in a subscription
588
+ #
589
+ # @param next_page_link [String] The NextLink from the previous successful
590
+ # call to List operation.
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
595
+ #
596
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
597
+ list_all_next_async(next_page_link, custom_headers).value!
598
+ end
599
+
600
+ #
601
+ # The list VirtualNetwork returns all Virtual Networks in a subscription
602
+ #
603
+ # @param next_page_link [String] The NextLink from the previous successful
604
+ # call to List operation.
605
+ # @param [Hash{String => String}] A hash of custom headers that will be added
606
+ # to the HTTP request.
607
+ #
608
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
609
+ #
610
+ def list_all_next_async(next_page_link, custom_headers = nil)
425
611
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
426
612
  request_headers = {}
427
613
 
@@ -434,7 +620,10 @@ module Azure::ARM::Network
434
620
  skip_encoding_path_params: {'nextLink' => next_page_link},
435
621
  headers: request_headers.merge(custom_headers || {})
436
622
  }
437
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
623
+
624
+ request_url = @base_url || @client.base_url
625
+
626
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
438
627
  promise = request.run_promise do |req|
439
628
  @client.credentials.sign_request(req) unless @client.credentials.nil?
440
629
  end
@@ -474,13 +663,41 @@ module Azure::ARM::Network
474
663
  #
475
664
  # @param next_page_link [String] The NextLink from the previous successful
476
665
  # call to List operation.
477
- # @param [Hash{String => String}] The hash of custom headers need to be
478
- # applied to HTTP request.
666
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
667
+ # will be added to the HTTP request.
479
668
  #
480
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
481
- # response.
669
+ # @return [VirtualNetworkListResult] operation results.
482
670
  #
483
671
  def list_next(next_page_link, custom_headers = nil)
672
+ response = list_next_async(next_page_link, custom_headers).value!
673
+ response.body unless response.nil?
674
+ end
675
+
676
+ #
677
+ # The list VirtualNetwork returns all Virtual Networks in a resource group
678
+ #
679
+ # @param next_page_link [String] The NextLink from the previous successful
680
+ # call to List operation.
681
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
682
+ # will be added to the HTTP request.
683
+ #
684
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
685
+ #
686
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
687
+ list_next_async(next_page_link, custom_headers).value!
688
+ end
689
+
690
+ #
691
+ # The list VirtualNetwork returns all Virtual Networks in a resource group
692
+ #
693
+ # @param next_page_link [String] The NextLink from the previous successful
694
+ # call to List operation.
695
+ # @param [Hash{String => String}] A hash of custom headers that will be added
696
+ # to the HTTP request.
697
+ #
698
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
699
+ #
700
+ def list_next_async(next_page_link, custom_headers = nil)
484
701
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
485
702
  request_headers = {}
486
703
 
@@ -493,7 +710,10 @@ module Azure::ARM::Network
493
710
  skip_encoding_path_params: {'nextLink' => next_page_link},
494
711
  headers: request_headers.merge(custom_headers || {})
495
712
  }
496
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
713
+
714
+ request_url = @base_url || @client.base_url
715
+
716
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
497
717
  promise = request.run_promise do |req|
498
718
  @client.credentials.sign_request(req) unless @client.credentials.nil?
499
719
  end
metadata CHANGED
@@ -1,106 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: !binary |-
5
+ MC4zLjA=
5
6
  platform: ruby
6
7
  authors:
7
8
  - Microsoft Corporation
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
12
+ date: 2016-05-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ~>
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.9'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - "~>"
25
+ - - ~>
25
26
  - !ruby/object:Gem::Version
26
27
  version: '1.9'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rake
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - "~>"
32
+ - - ~>
32
33
  - !ruby/object:Gem::Version
33
34
  version: '10'
34
35
  type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - "~>"
39
+ - - ~>
39
40
  - !ruby/object:Gem::Version
40
41
  version: '10'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: rspec
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - "~>"
46
+ - - ~>
46
47
  - !ruby/object:Gem::Version
47
- version: '3'
48
+ version: !binary |-
49
+ Mw==
48
50
  type: :development
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
- - - "~>"
54
+ - - ~>
53
55
  - !ruby/object:Gem::Version
54
- version: '3'
56
+ version: !binary |-
57
+ Mw==
55
58
  - !ruby/object:Gem::Dependency
56
59
  name: dotenv
57
60
  requirement: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - "~>"
62
+ - - ~>
60
63
  - !ruby/object:Gem::Version
61
64
  version: '2'
62
65
  type: :development
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ~>
67
70
  - !ruby/object:Gem::Version
68
71
  version: '2'
69
72
  - !ruby/object:Gem::Dependency
70
73
  name: azure_mgmt_resources
71
74
  requirement: !ruby/object:Gem::Requirement
72
75
  requirements:
73
- - - "~>"
76
+ - - ~>
74
77
  - !ruby/object:Gem::Version
75
- version: '0.2'
78
+ version: !binary |-
79
+ MC4z
76
80
  type: :development
77
81
  prerelease: false
78
82
  version_requirements: !ruby/object:Gem::Requirement
79
83
  requirements:
80
- - - "~>"
84
+ - - ~>
81
85
  - !ruby/object:Gem::Version
82
- version: '0.2'
86
+ version: !binary |-
87
+ MC4z
83
88
  - !ruby/object:Gem::Dependency
84
89
  name: ms_rest_azure
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - "~>"
92
+ - - ~>
88
93
  - !ruby/object:Gem::Version
89
- version: 0.2.0
94
+ version: !binary |-
95
+ MC4yLjM=
90
96
  type: :runtime
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - "~>"
100
+ - - ~>
95
101
  - !ruby/object:Gem::Version
96
- version: 0.2.0
102
+ version: !binary |-
103
+ MC4yLjM=
97
104
  description: Microsoft Azure Network Management Client Library for Ruby
98
105
  email: azrubyteam@microsoft.com
99
106
  executables: []
100
107
  extensions: []
101
108
  extra_rdoc_files: []
102
109
  files:
103
- - ".rspec"
110
+ - .rspec
104
111
  - LICENSE.txt
105
112
  - README.md
106
113
  - Rakefile
@@ -174,6 +181,7 @@ files:
174
181
  - lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb
175
182
  - lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb
176
183
  - lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb
184
+ - lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb
177
185
  - lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb
178
186
  - lib/azure_mgmt_network/models/express_route_circuit_sku.rb
179
187
  - lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb
@@ -181,7 +189,7 @@ files:
181
189
  - lib/azure_mgmt_network/models/express_route_circuit_stats.rb
182
190
  - lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb
183
191
  - lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb
184
- - lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb
192
+ - lib/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb
185
193
  - lib/azure_mgmt_network/models/express_route_service_provider.rb
186
194
  - lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb
187
195
  - lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb
@@ -195,6 +203,7 @@ files:
195
203
  - lib/azure_mgmt_network/models/ipallocation_method.rb
196
204
  - lib/azure_mgmt_network/models/ipconfiguration.rb
197
205
  - lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb
206
+ - lib/azure_mgmt_network/models/ipversion.rb
198
207
  - lib/azure_mgmt_network/models/load_balancer.rb
199
208
  - lib/azure_mgmt_network/models/load_balancer_list_result.rb
200
209
  - lib/azure_mgmt_network/models/load_balancer_properties_format.rb
@@ -293,17 +302,17 @@ require_paths:
293
302
  - lib
294
303
  required_ruby_version: !ruby/object:Gem::Requirement
295
304
  requirements:
296
- - - ">="
305
+ - - ! '>='
297
306
  - !ruby/object:Gem::Version
298
307
  version: 1.9.3
299
308
  required_rubygems_version: !ruby/object:Gem::Requirement
300
309
  requirements:
301
- - - ">="
310
+ - - ! '>='
302
311
  - !ruby/object:Gem::Version
303
312
  version: '0'
304
313
  requirements: []
305
314
  rubyforge_project:
306
- rubygems_version: 2.4.6
315
+ rubygems_version: 2.4.5
307
316
  signing_key:
308
317
  specification_version: 4
309
318
  summary: Official Ruby client library to consume Microsoft Azure Network Management