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.
- checksums.yaml +13 -5
- data/README.md +1 -26
- data/azure_mgmt_network.gemspec +2 -2
- data/lib/azure_mgmt_network.rb +33 -31
- data/lib/azure_mgmt_network/application_gateways.rb +345 -55
- data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +207 -31
- data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +205 -31
- data/lib/azure_mgmt_network/express_route_circuits.rb +633 -168
- data/lib/azure_mgmt_network/express_route_service_providers.rb +73 -11
- data/lib/azure_mgmt_network/load_balancers.rb +267 -41
- data/lib/azure_mgmt_network/local_network_gateways.rb +205 -31
- data/lib/azure_mgmt_network/models/address_space.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +5 -5
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_probe.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_sku.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/authorization_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/authorization_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/authorization_use_status.rb +1 -1
- data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +1 -1
- data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -1
- data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/bgp_settings.rb +1 -1
- data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
- data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -1
- data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +1 -1
- data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -1
- data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -1
- data/lib/azure_mgmt_network/models/error.rb +1 -1
- data/lib/azure_mgmt_network/models/error_details.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +20 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +10 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +36 -32
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +97 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +31 -11
- data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/{express_route_circuits_stats_list_result.rb → express_route_circuits_routes_table_summary_list_result.rb} +11 -8
- data/lib/azure_mgmt_network/models/express_route_service_provider.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/ipallocation_method.rb +1 -1
- data/lib/azure_mgmt_network/models/ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/ipversion.rb +16 -0
- data/lib/azure_mgmt_network/models/load_balancer.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +11 -4
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +59 -14
- data/lib/azure_mgmt_network/models/network_interface_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/network_operation_status.rb +1 -1
- data/lib/azure_mgmt_network/models/network_security_group.rb +1 -1
- data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/probe.rb +1 -1
- data/lib/azure_mgmt_network/models/probe_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/processor_architecture.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +15 -1
- data/lib/azure_mgmt_network/models/route.rb +1 -1
- data/lib/azure_mgmt_network/models/route_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
- data/lib/azure_mgmt_network/models/route_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/route_table.rb +1 -1
- data/lib/azure_mgmt_network/models/route_table_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/route_table_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
- data/lib/azure_mgmt_network/models/subnet.rb +1 -1
- data/lib/azure_mgmt_network/models/subnet_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/subnet_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/usage.rb +1 -1
- data/lib/azure_mgmt_network/models/usage_name.rb +1 -1
- data/lib/azure_mgmt_network/models/usages_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
- data/lib/azure_mgmt_network/module_definition.rb +1 -1
- data/lib/azure_mgmt_network/network_interfaces.rb +471 -66
- data/lib/azure_mgmt_network/network_management_client.rb +40 -7
- data/lib/azure_mgmt_network/network_security_groups.rb +277 -41
- data/lib/azure_mgmt_network/public_ipaddresses.rb +269 -41
- data/lib/azure_mgmt_network/route_tables.rb +261 -41
- data/lib/azure_mgmt_network/routes.rb +201 -31
- data/lib/azure_mgmt_network/security_rules.rb +213 -31
- data/lib/azure_mgmt_network/subnets.rb +199 -31
- data/lib/azure_mgmt_network/usages.rb +71 -11
- data/lib/azure_mgmt_network/version.rb +2 -2
- data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +357 -52
- data/lib/azure_mgmt_network/virtual_network_gateways.rb +303 -45
- data/lib/azure_mgmt_network/virtual_networks.rb +261 -41
- metadata +34 -25
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
|
@@ -47,7 +47,7 @@ module Azure::ARM::Network
|
|
47
47
|
#
|
48
48
|
def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
|
49
49
|
# Send request
|
50
|
-
promise =
|
50
|
+
promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers)
|
51
51
|
|
52
52
|
promise = promise.then do |response|
|
53
53
|
# Defining deserialization method.
|
@@ -58,7 +58,7 @@ module Azure::ARM::Network
|
|
58
58
|
end
|
59
59
|
|
60
60
|
# Waiting for response.
|
61
|
-
@client.
|
61
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
62
62
|
end
|
63
63
|
|
64
64
|
promise
|
@@ -74,13 +74,51 @@ module Azure::ARM::Network
|
|
74
74
|
# @param parameters [LocalNetworkGateway] Parameters supplied to the Begin
|
75
75
|
# Create or update Local Network Gateway operation through Network resource
|
76
76
|
# provider.
|
77
|
-
# @param [Hash{String => String}]
|
78
|
-
#
|
77
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
78
|
+
# will be added to the HTTP request.
|
79
79
|
#
|
80
|
-
# @return [
|
81
|
-
# response.
|
80
|
+
# @return [LocalNetworkGateway] operation results.
|
82
81
|
#
|
83
82
|
def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
|
83
|
+
response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value!
|
84
|
+
response.body unless response.nil?
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
# The Put LocalNetworkGateway operation creates/updates a local network
|
89
|
+
# gateway in the specified resource group through Network resource provider.
|
90
|
+
#
|
91
|
+
# @param resource_group_name [String] The name of the resource group.
|
92
|
+
# @param local_network_gateway_name [String] The name of the local network
|
93
|
+
# gateway.
|
94
|
+
# @param parameters [LocalNetworkGateway] Parameters supplied to the Begin
|
95
|
+
# Create or update Local Network Gateway operation through Network resource
|
96
|
+
# provider.
|
97
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
98
|
+
# will be added to the HTTP request.
|
99
|
+
#
|
100
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
101
|
+
#
|
102
|
+
def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
|
103
|
+
begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value!
|
104
|
+
end
|
105
|
+
|
106
|
+
#
|
107
|
+
# The Put LocalNetworkGateway operation creates/updates a local network
|
108
|
+
# gateway in the specified resource group through Network resource provider.
|
109
|
+
#
|
110
|
+
# @param resource_group_name [String] The name of the resource group.
|
111
|
+
# @param local_network_gateway_name [String] The name of the local network
|
112
|
+
# gateway.
|
113
|
+
# @param parameters [LocalNetworkGateway] Parameters supplied to the Begin
|
114
|
+
# Create or update Local Network Gateway operation through Network resource
|
115
|
+
# provider.
|
116
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
117
|
+
# to the HTTP request.
|
118
|
+
#
|
119
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
120
|
+
#
|
121
|
+
def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil)
|
84
122
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
85
123
|
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
|
86
124
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -98,7 +136,7 @@ module Azure::ARM::Network
|
|
98
136
|
unless parameters.nil?
|
99
137
|
parameters = LocalNetworkGateway.serialize_object(parameters)
|
100
138
|
end
|
101
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
139
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
102
140
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}'
|
103
141
|
options = {
|
104
142
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -107,7 +145,10 @@ module Azure::ARM::Network
|
|
107
145
|
body: request_content,
|
108
146
|
headers: request_headers.merge(custom_headers || {})
|
109
147
|
}
|
110
|
-
|
148
|
+
|
149
|
+
request_url = @base_url || @client.base_url
|
150
|
+
|
151
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
111
152
|
promise = request.run_promise do |req|
|
112
153
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
113
154
|
end
|
@@ -161,13 +202,45 @@ module Azure::ARM::Network
|
|
161
202
|
# @param resource_group_name [String] The name of the resource group.
|
162
203
|
# @param local_network_gateway_name [String] The name of the local network
|
163
204
|
# gateway.
|
164
|
-
# @param [Hash{String => String}]
|
165
|
-
#
|
205
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
206
|
+
# will be added to the HTTP request.
|
166
207
|
#
|
167
|
-
# @return [
|
168
|
-
# response.
|
208
|
+
# @return [LocalNetworkGateway] operation results.
|
169
209
|
#
|
170
210
|
def get(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
211
|
+
response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value!
|
212
|
+
response.body unless response.nil?
|
213
|
+
end
|
214
|
+
|
215
|
+
#
|
216
|
+
# The Get LocalNetworkGateway operation retrieves information about the
|
217
|
+
# specified local network gateway through Network resource provider.
|
218
|
+
#
|
219
|
+
# @param resource_group_name [String] The name of the resource group.
|
220
|
+
# @param local_network_gateway_name [String] The name of the local network
|
221
|
+
# gateway.
|
222
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
223
|
+
# will be added to the HTTP request.
|
224
|
+
#
|
225
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
226
|
+
#
|
227
|
+
def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
228
|
+
get_async(resource_group_name, local_network_gateway_name, custom_headers).value!
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
# The Get LocalNetworkGateway operation retrieves information about the
|
233
|
+
# specified local network gateway through Network resource provider.
|
234
|
+
#
|
235
|
+
# @param resource_group_name [String] The name of the resource group.
|
236
|
+
# @param local_network_gateway_name [String] The name of the local network
|
237
|
+
# gateway.
|
238
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
239
|
+
# to the HTTP request.
|
240
|
+
#
|
241
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
242
|
+
#
|
243
|
+
def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
171
244
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
172
245
|
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
|
173
246
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -184,7 +257,10 @@ module Azure::ARM::Network
|
|
184
257
|
query_params: {'api-version' => @client.api_version},
|
185
258
|
headers: request_headers.merge(custom_headers || {})
|
186
259
|
}
|
187
|
-
|
260
|
+
|
261
|
+
request_url = @base_url || @client.base_url
|
262
|
+
|
263
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
188
264
|
promise = request.run_promise do |req|
|
189
265
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
190
266
|
end
|
@@ -231,7 +307,7 @@ module Azure::ARM::Network
|
|
231
307
|
#
|
232
308
|
def delete(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
233
309
|
# Send request
|
234
|
-
promise =
|
310
|
+
promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers)
|
235
311
|
|
236
312
|
promise = promise.then do |response|
|
237
313
|
# Defining deserialization method.
|
@@ -239,7 +315,7 @@ module Azure::ARM::Network
|
|
239
315
|
end
|
240
316
|
|
241
317
|
# Waiting for response.
|
242
|
-
@client.
|
318
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
243
319
|
end
|
244
320
|
|
245
321
|
promise
|
@@ -252,13 +328,44 @@ module Azure::ARM::Network
|
|
252
328
|
# @param resource_group_name [String] The name of the resource group.
|
253
329
|
# @param local_network_gateway_name [String] The name of the local network
|
254
330
|
# gateway.
|
255
|
-
# @param [Hash{String => String}]
|
256
|
-
#
|
331
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
332
|
+
# will be added to the HTTP request.
|
257
333
|
#
|
258
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
259
|
-
# response.
|
260
334
|
#
|
261
335
|
def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
336
|
+
response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value!
|
337
|
+
nil
|
338
|
+
end
|
339
|
+
|
340
|
+
#
|
341
|
+
# The Delete LocalNetworkGateway operation deletes the specifed local network
|
342
|
+
# Gateway through Network resource provider.
|
343
|
+
#
|
344
|
+
# @param resource_group_name [String] The name of the resource group.
|
345
|
+
# @param local_network_gateway_name [String] The name of the local network
|
346
|
+
# gateway.
|
347
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
348
|
+
# will be added to the HTTP request.
|
349
|
+
#
|
350
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
351
|
+
#
|
352
|
+
def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
353
|
+
begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value!
|
354
|
+
end
|
355
|
+
|
356
|
+
#
|
357
|
+
# The Delete LocalNetworkGateway operation deletes the specifed local network
|
358
|
+
# Gateway through Network resource provider.
|
359
|
+
#
|
360
|
+
# @param resource_group_name [String] The name of the resource group.
|
361
|
+
# @param local_network_gateway_name [String] The name of the local network
|
362
|
+
# gateway.
|
363
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
364
|
+
# to the HTTP request.
|
365
|
+
#
|
366
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
367
|
+
#
|
368
|
+
def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
262
369
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
263
370
|
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
|
264
371
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -275,7 +382,10 @@ module Azure::ARM::Network
|
|
275
382
|
query_params: {'api-version' => @client.api_version},
|
276
383
|
headers: request_headers.merge(custom_headers || {})
|
277
384
|
}
|
278
|
-
|
385
|
+
|
386
|
+
request_url = @base_url || @client.base_url
|
387
|
+
|
388
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
279
389
|
promise = request.run_promise do |req|
|
280
390
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
281
391
|
end
|
@@ -303,13 +413,41 @@ module Azure::ARM::Network
|
|
303
413
|
# gateways stored.
|
304
414
|
#
|
305
415
|
# @param resource_group_name [String] The name of the resource group.
|
306
|
-
# @param [Hash{String => String}]
|
307
|
-
#
|
416
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
417
|
+
# will be added to the HTTP request.
|
308
418
|
#
|
309
|
-
# @return [
|
310
|
-
# response.
|
419
|
+
# @return [LocalNetworkGatewayListResult] operation results.
|
311
420
|
#
|
312
421
|
def list(resource_group_name, custom_headers = nil)
|
422
|
+
response = list_async(resource_group_name, custom_headers).value!
|
423
|
+
response.body unless response.nil?
|
424
|
+
end
|
425
|
+
|
426
|
+
#
|
427
|
+
# The List LocalNetworkGateways opertion retrieves all the local network
|
428
|
+
# gateways stored.
|
429
|
+
#
|
430
|
+
# @param resource_group_name [String] The name of the resource group.
|
431
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
432
|
+
# will be added to the HTTP request.
|
433
|
+
#
|
434
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
435
|
+
#
|
436
|
+
def list_with_http_info(resource_group_name, custom_headers = nil)
|
437
|
+
list_async(resource_group_name, custom_headers).value!
|
438
|
+
end
|
439
|
+
|
440
|
+
#
|
441
|
+
# The List LocalNetworkGateways opertion retrieves all the local network
|
442
|
+
# gateways stored.
|
443
|
+
#
|
444
|
+
# @param resource_group_name [String] The name of the resource group.
|
445
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
446
|
+
# to the HTTP request.
|
447
|
+
#
|
448
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
449
|
+
#
|
450
|
+
def list_async(resource_group_name, custom_headers = nil)
|
313
451
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
314
452
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
315
453
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -325,7 +463,10 @@ module Azure::ARM::Network
|
|
325
463
|
query_params: {'api-version' => @client.api_version},
|
326
464
|
headers: request_headers.merge(custom_headers || {})
|
327
465
|
}
|
328
|
-
|
466
|
+
|
467
|
+
request_url = @base_url || @client.base_url
|
468
|
+
|
469
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
329
470
|
promise = request.run_promise do |req|
|
330
471
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
331
472
|
end
|
@@ -366,13 +507,43 @@ module Azure::ARM::Network
|
|
366
507
|
#
|
367
508
|
# @param next_page_link [String] The NextLink from the previous successful
|
368
509
|
# call to List operation.
|
369
|
-
# @param [Hash{String => String}]
|
370
|
-
#
|
510
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
511
|
+
# will be added to the HTTP request.
|
371
512
|
#
|
372
|
-
# @return [
|
373
|
-
# response.
|
513
|
+
# @return [LocalNetworkGatewayListResult] operation results.
|
374
514
|
#
|
375
515
|
def list_next(next_page_link, custom_headers = nil)
|
516
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
517
|
+
response.body unless response.nil?
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
# The List LocalNetworkGateways opertion retrieves all the local network
|
522
|
+
# gateways stored.
|
523
|
+
#
|
524
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
525
|
+
# call to List operation.
|
526
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
527
|
+
# will be added to the HTTP request.
|
528
|
+
#
|
529
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
530
|
+
#
|
531
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
532
|
+
list_next_async(next_page_link, custom_headers).value!
|
533
|
+
end
|
534
|
+
|
535
|
+
#
|
536
|
+
# The List LocalNetworkGateways opertion retrieves all the local network
|
537
|
+
# gateways stored.
|
538
|
+
#
|
539
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
540
|
+
# call to List operation.
|
541
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
542
|
+
# to the HTTP request.
|
543
|
+
#
|
544
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
545
|
+
#
|
546
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
376
547
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
377
548
|
request_headers = {}
|
378
549
|
|
@@ -385,7 +556,10 @@ module Azure::ARM::Network
|
|
385
556
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
386
557
|
headers: request_headers.merge(custom_headers || {})
|
387
558
|
}
|
388
|
-
|
559
|
+
|
560
|
+
request_url = @base_url || @client.base_url
|
561
|
+
|
562
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
389
563
|
promise = request.run_promise do |req|
|
390
564
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
391
565
|
end
|
data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
|
@@ -12,8 +12,8 @@ module Azure::ARM::Network
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<
|
16
|
-
#
|
15
|
+
# @return [Array<NetworkInterfaceIPConfiguration>] Gets collection of
|
16
|
+
# references to IPs defined in NICs
|
17
17
|
attr_accessor :backend_ipconfigurations
|
18
18
|
|
19
19
|
# @return [Array<ApplicationGatewayBackendAddress>] Gets or sets the
|
@@ -46,7 +46,7 @@ module Azure::ARM::Network
|
|
46
46
|
serializedArray = []
|
47
47
|
serialized_property.each do |element|
|
48
48
|
unless element.nil?
|
49
|
-
element =
|
49
|
+
element = NetworkInterfaceIPConfiguration.serialize_object(element)
|
50
50
|
end
|
51
51
|
serializedArray.push(element)
|
52
52
|
end
|
@@ -88,7 +88,7 @@ module Azure::ARM::Network
|
|
88
88
|
deserialized_array = []
|
89
89
|
deserialized_property.each do |element2|
|
90
90
|
unless element2.nil?
|
91
|
-
element2 =
|
91
|
+
element2 = NetworkInterfaceIPConfiguration.deserialize_object(element2)
|
92
92
|
end
|
93
93
|
deserialized_array.push(element2)
|
94
94
|
end
|