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, public_ip_address_name, custom_headers = nil)
37
37
  # Send request
38
- promise = begin_delete(resource_group_name, public_ip_address_name, custom_headers)
38
+ promise = begin_delete_async(resource_group_name, public_ip_address_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 public_ip_address_name [String] The name of the subnet.
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, public_ip_address_name, custom_headers = nil)
62
+ response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value!
63
+ nil
64
+ end
65
+
66
+ #
67
+ # The delete publicIpAddress operation deletes the specified publicIpAddress.
68
+ #
69
+ # @param resource_group_name [String] The name of the resource group.
70
+ # @param public_ip_address_name [String] The name of the subnet.
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, public_ip_address_name, custom_headers = nil)
77
+ begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value!
78
+ end
79
+
80
+ #
81
+ # The delete publicIpAddress operation deletes the specified publicIpAddress.
82
+ #
83
+ # @param resource_group_name [String] The name of the resource group.
84
+ # @param public_ip_address_name [String] The name of the subnet.
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, public_ip_address_name, custom_headers = nil)
64
91
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
92
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_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 public_ip_address_name [String] The name of the subnet.
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 [PublicIPAddress] operation results.
115
144
  #
116
145
  def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil)
146
+ response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value!
147
+ response.body unless response.nil?
148
+ end
149
+
150
+ #
151
+ # The Get publicIpAddress operation retreives information about the specified
152
+ # pubicIpAddress
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param public_ip_address_name [String] The name of the subnet.
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, public_ip_address_name, expand = nil, custom_headers = nil)
163
+ get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # The Get publicIpAddress operation retreives information about the specified
168
+ # pubicIpAddress
169
+ #
170
+ # @param resource_group_name [String] The name of the resource group.
171
+ # @param public_ip_address_name [String] The name of the subnet.
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, public_ip_address_name, expand = nil, custom_headers = nil)
117
179
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
180
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_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, public_ip_address_name, parameters, custom_headers = nil)
187
252
  # Send request
188
- promise = begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers)
253
+ promise = begin_create_or_update_async(resource_group_name, public_ip_address_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 public_ip_address_name [String] The name of the publicIpAddress.
211
276
  # @param parameters [PublicIPAddress] Parameters supplied to the create/update
212
277
  # PublicIPAddress 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 [PublicIPAddress] operation results.
218
282
  #
219
283
  def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil)
284
+ response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value!
285
+ response.body unless response.nil?
286
+ end
287
+
288
+ #
289
+ # The Put PublicIPAddress operation creates/updates a stable/dynamic PublicIP
290
+ # address
291
+ #
292
+ # @param resource_group_name [String] The name of the resource group.
293
+ # @param public_ip_address_name [String] The name of the publicIpAddress.
294
+ # @param parameters [PublicIPAddress] Parameters supplied to the create/update
295
+ # PublicIPAddress 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, public_ip_address_name, parameters, custom_headers = nil)
302
+ begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value!
303
+ end
304
+
305
+ #
306
+ # The Put PublicIPAddress operation creates/updates a stable/dynamic PublicIP
307
+ # address
308
+ #
309
+ # @param resource_group_name [String] The name of the resource group.
310
+ # @param public_ip_address_name [String] The name of the publicIpAddress.
311
+ # @param parameters [PublicIPAddress] Parameters supplied to the create/update
312
+ # PublicIPAddress 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, public_ip_address_name, parameters, custom_headers = nil)
220
319
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
221
320
  fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_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 = PublicIPAddress.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/publicIPAddresses/{publicIpAddressName}'
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
@@ -294,13 +396,39 @@ module Azure::ARM::Network
294
396
  # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
295
397
  # subscription.
296
398
  #
297
- # @param [Hash{String => String}] The hash of custom headers need to be
298
- # applied to HTTP request.
399
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
400
+ # will be added to the HTTP request.
299
401
  #
300
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
301
- # response.
402
+ # @return [PublicIPAddressListResult] operation results.
302
403
  #
303
404
  def list_all(custom_headers = nil)
405
+ response = list_all_async(custom_headers).value!
406
+ response.body unless response.nil?
407
+ end
408
+
409
+ #
410
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
411
+ # subscription.
412
+ #
413
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
414
+ # will be added to the HTTP request.
415
+ #
416
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
417
+ #
418
+ def list_all_with_http_info(custom_headers = nil)
419
+ list_all_async(custom_headers).value!
420
+ end
421
+
422
+ #
423
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
424
+ # subscription.
425
+ #
426
+ # @param [Hash{String => String}] A hash of custom headers that will be added
427
+ # to the HTTP request.
428
+ #
429
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
430
+ #
431
+ def list_all_async(custom_headers = nil)
304
432
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
305
433
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
306
434
  request_headers = {}
@@ -315,7 +443,10 @@ module Azure::ARM::Network
315
443
  query_params: {'api-version' => @client.api_version},
316
444
  headers: request_headers.merge(custom_headers || {})
317
445
  }
318
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
446
+
447
+ request_url = @base_url || @client.base_url
448
+
449
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
319
450
  promise = request.run_promise do |req|
320
451
  @client.credentials.sign_request(req) unless @client.credentials.nil?
321
452
  end
@@ -355,13 +486,41 @@ module Azure::ARM::Network
355
486
  # resource group.
356
487
  #
357
488
  # @param resource_group_name [String] The name of the resource group.
358
- # @param [Hash{String => String}] The hash of custom headers need to be
359
- # applied to HTTP request.
489
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
490
+ # will be added to the HTTP request.
360
491
  #
361
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
362
- # response.
492
+ # @return [PublicIPAddressListResult] operation results.
363
493
  #
364
494
  def list(resource_group_name, custom_headers = nil)
495
+ response = list_async(resource_group_name, custom_headers).value!
496
+ response.body unless response.nil?
497
+ end
498
+
499
+ #
500
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
501
+ # resource group.
502
+ #
503
+ # @param resource_group_name [String] The name of the resource group.
504
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
505
+ # will be added to the HTTP request.
506
+ #
507
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
508
+ #
509
+ def list_with_http_info(resource_group_name, custom_headers = nil)
510
+ list_async(resource_group_name, custom_headers).value!
511
+ end
512
+
513
+ #
514
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
515
+ # resource group.
516
+ #
517
+ # @param resource_group_name [String] The name of the resource group.
518
+ # @param [Hash{String => String}] A hash of custom headers that will be added
519
+ # to the HTTP request.
520
+ #
521
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
522
+ #
523
+ def list_async(resource_group_name, custom_headers = nil)
365
524
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
366
525
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
367
526
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -377,7 +536,10 @@ module Azure::ARM::Network
377
536
  query_params: {'api-version' => @client.api_version},
378
537
  headers: request_headers.merge(custom_headers || {})
379
538
  }
380
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
539
+
540
+ request_url = @base_url || @client.base_url
541
+
542
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
381
543
  promise = request.run_promise do |req|
382
544
  @client.credentials.sign_request(req) unless @client.credentials.nil?
383
545
  end
@@ -418,13 +580,43 @@ module Azure::ARM::Network
418
580
  #
419
581
  # @param next_page_link [String] The NextLink from the previous successful
420
582
  # call to List operation.
421
- # @param [Hash{String => String}] The hash of custom headers need to be
422
- # applied to HTTP request.
583
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
584
+ # will be added to the HTTP request.
423
585
  #
424
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
425
- # response.
586
+ # @return [PublicIPAddressListResult] operation results.
426
587
  #
427
588
  def list_all_next(next_page_link, custom_headers = nil)
589
+ response = list_all_next_async(next_page_link, custom_headers).value!
590
+ response.body unless response.nil?
591
+ end
592
+
593
+ #
594
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
595
+ # subscription.
596
+ #
597
+ # @param next_page_link [String] The NextLink from the previous successful
598
+ # call to List operation.
599
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
600
+ # will be added to the HTTP request.
601
+ #
602
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
603
+ #
604
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
605
+ list_all_next_async(next_page_link, custom_headers).value!
606
+ end
607
+
608
+ #
609
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
610
+ # subscription.
611
+ #
612
+ # @param next_page_link [String] The NextLink from the previous successful
613
+ # call to List operation.
614
+ # @param [Hash{String => String}] A hash of custom headers that will be added
615
+ # to the HTTP request.
616
+ #
617
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
618
+ #
619
+ def list_all_next_async(next_page_link, custom_headers = nil)
428
620
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
429
621
  request_headers = {}
430
622
 
@@ -437,7 +629,10 @@ module Azure::ARM::Network
437
629
  skip_encoding_path_params: {'nextLink' => next_page_link},
438
630
  headers: request_headers.merge(custom_headers || {})
439
631
  }
440
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
632
+
633
+ request_url = @base_url || @client.base_url
634
+
635
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
441
636
  promise = request.run_promise do |req|
442
637
  @client.credentials.sign_request(req) unless @client.credentials.nil?
443
638
  end
@@ -478,13 +673,43 @@ module Azure::ARM::Network
478
673
  #
479
674
  # @param next_page_link [String] The NextLink from the previous successful
480
675
  # call to List operation.
481
- # @param [Hash{String => String}] The hash of custom headers need to be
482
- # applied to HTTP request.
676
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
677
+ # will be added to the HTTP request.
483
678
  #
484
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
485
- # response.
679
+ # @return [PublicIPAddressListResult] operation results.
486
680
  #
487
681
  def list_next(next_page_link, custom_headers = nil)
682
+ response = list_next_async(next_page_link, custom_headers).value!
683
+ response.body unless response.nil?
684
+ end
685
+
686
+ #
687
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
688
+ # resource group.
689
+ #
690
+ # @param next_page_link [String] The NextLink from the previous successful
691
+ # call to List operation.
692
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
693
+ # will be added to the HTTP request.
694
+ #
695
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
696
+ #
697
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
698
+ list_next_async(next_page_link, custom_headers).value!
699
+ end
700
+
701
+ #
702
+ # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
703
+ # resource group.
704
+ #
705
+ # @param next_page_link [String] The NextLink from the previous successful
706
+ # call to List operation.
707
+ # @param [Hash{String => String}] A hash of custom headers that will be added
708
+ # to the HTTP request.
709
+ #
710
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
711
+ #
712
+ def list_next_async(next_page_link, custom_headers = nil)
488
713
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
489
714
  request_headers = {}
490
715
 
@@ -497,7 +722,10 @@ module Azure::ARM::Network
497
722
  skip_encoding_path_params: {'nextLink' => next_page_link},
498
723
  headers: request_headers.merge(custom_headers || {})
499
724
  }
500
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
725
+
726
+ request_url = @base_url || @client.base_url
727
+
728
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
501
729
  promise = request.run_promise do |req|
502
730
  @client.credentials.sign_request(req) unless @client.credentials.nil?
503
731
  end