azure_mgmt_network 0.7.0 → 0.8.0

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