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, virtual_network_gateway_name, parameters, custom_headers = nil)
|
49
49
|
# Send request
|
50
|
-
promise =
|
50
|
+
promise = begin_create_or_update_async(resource_group_name, virtual_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 [VirtualNetworkGateway] Parameters supplied to the Begin
|
75
75
|
# Create or update Virtual 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 [VirtualNetworkGateway] operation results.
|
82
81
|
#
|
83
82
|
def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
83
|
+
response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
|
84
|
+
response.body unless response.nil?
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
# The Put VirtualNetworkGateway operation creates/updates a virtual 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 virtual_network_gateway_name [String] The name of the virtual network
|
93
|
+
# gateway.
|
94
|
+
# @param parameters [VirtualNetworkGateway] Parameters supplied to the Begin
|
95
|
+
# Create or update Virtual 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, virtual_network_gateway_name, parameters, custom_headers = nil)
|
103
|
+
begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
|
104
|
+
end
|
105
|
+
|
106
|
+
#
|
107
|
+
# The Put VirtualNetworkGateway operation creates/updates a virtual 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 virtual_network_gateway_name [String] The name of the virtual network
|
112
|
+
# gateway.
|
113
|
+
# @param parameters [VirtualNetworkGateway] Parameters supplied to the Begin
|
114
|
+
# Create or update Virtual 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, virtual_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, 'virtual_network_gateway_name is nil' if virtual_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 = VirtualNetworkGateway.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/virtualnetworkgateways/{virtualNetworkGatewayName}'
|
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 virtual_network_gateway_name [String] The name of the virtual 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 [VirtualNetworkGateway] operation results.
|
169
209
|
#
|
170
210
|
def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
|
211
|
+
response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
212
|
+
response.body unless response.nil?
|
213
|
+
end
|
214
|
+
|
215
|
+
#
|
216
|
+
# The Get VirtualNetworkGateway operation retrieves information about the
|
217
|
+
# specified virtual network gateway through Network resource provider.
|
218
|
+
#
|
219
|
+
# @param resource_group_name [String] The name of the resource group.
|
220
|
+
# @param virtual_network_gateway_name [String] The name of the virtual 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, virtual_network_gateway_name, custom_headers = nil)
|
228
|
+
get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
# The Get VirtualNetworkGateway operation retrieves information about the
|
233
|
+
# specified virtual network gateway through Network resource provider.
|
234
|
+
#
|
235
|
+
# @param resource_group_name [String] The name of the resource group.
|
236
|
+
# @param virtual_network_gateway_name [String] The name of the virtual 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, virtual_network_gateway_name, custom_headers = nil)
|
171
244
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
172
245
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_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, virtual_network_gateway_name, custom_headers = nil)
|
233
309
|
# Send request
|
234
|
-
promise =
|
310
|
+
promise = begin_delete_async(resource_group_name, virtual_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 virtual_network_gateway_name [String] The name of the virtual 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, virtual_network_gateway_name, custom_headers = nil)
|
336
|
+
response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
337
|
+
nil
|
338
|
+
end
|
339
|
+
|
340
|
+
#
|
341
|
+
# The Delete VirtualNetworkGateway operation deletes the specifed virtual
|
342
|
+
# network Gateway through Network resource provider.
|
343
|
+
#
|
344
|
+
# @param resource_group_name [String] The name of the resource group.
|
345
|
+
# @param virtual_network_gateway_name [String] The name of the virtual 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, virtual_network_gateway_name, custom_headers = nil)
|
353
|
+
begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
|
354
|
+
end
|
355
|
+
|
356
|
+
#
|
357
|
+
# The Delete VirtualNetworkGateway operation deletes the specifed virtual
|
358
|
+
# network Gateway through Network resource provider.
|
359
|
+
#
|
360
|
+
# @param resource_group_name [String] The name of the resource group.
|
361
|
+
# @param virtual_network_gateway_name [String] The name of the virtual 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, virtual_network_gateway_name, custom_headers = nil)
|
262
369
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
263
370
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_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 [VirtualNetworkGatewayListResult] 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 VirtualNetworkGateways opertion retrieves all the virtual 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 VirtualNetworkGateways opertion retrieves all the virtual 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
|
@@ -375,7 +516,7 @@ module Azure::ARM::Network
|
|
375
516
|
#
|
376
517
|
def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
377
518
|
# Send request
|
378
|
-
promise =
|
519
|
+
promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers)
|
379
520
|
|
380
521
|
promise = promise.then do |response|
|
381
522
|
# Defining deserialization method.
|
@@ -386,7 +527,7 @@ module Azure::ARM::Network
|
|
386
527
|
end
|
387
528
|
|
388
529
|
# Waiting for response.
|
389
|
-
@client.
|
530
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
390
531
|
end
|
391
532
|
|
392
533
|
promise
|
@@ -402,13 +543,51 @@ module Azure::ARM::Network
|
|
402
543
|
# gateway.
|
403
544
|
# @param parameters [VirtualNetworkGateway] Parameters supplied to the Begin
|
404
545
|
# Reset Virtual Network Gateway operation through Network resource provider.
|
405
|
-
# @param [Hash{String => String}]
|
406
|
-
#
|
546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
547
|
+
# will be added to the HTTP request.
|
407
548
|
#
|
408
|
-
# @return [
|
409
|
-
# response.
|
549
|
+
# @return [VirtualNetworkGateway] operation results.
|
410
550
|
#
|
411
551
|
def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
552
|
+
response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
|
553
|
+
response.body unless response.nil?
|
554
|
+
end
|
555
|
+
|
556
|
+
#
|
557
|
+
# The Reset VirtualNetworkGateway operation resets the primary of the virtual
|
558
|
+
# network gateway in the specified resource group through Network resource
|
559
|
+
# provider.
|
560
|
+
#
|
561
|
+
# @param resource_group_name [String] The name of the resource group.
|
562
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
563
|
+
# gateway.
|
564
|
+
# @param parameters [VirtualNetworkGateway] Parameters supplied to the Begin
|
565
|
+
# Reset Virtual Network Gateway operation through Network resource provider.
|
566
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
567
|
+
# will be added to the HTTP request.
|
568
|
+
#
|
569
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
570
|
+
#
|
571
|
+
def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
572
|
+
begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
|
573
|
+
end
|
574
|
+
|
575
|
+
#
|
576
|
+
# The Reset VirtualNetworkGateway operation resets the primary of the virtual
|
577
|
+
# network gateway in the specified resource group through Network resource
|
578
|
+
# provider.
|
579
|
+
#
|
580
|
+
# @param resource_group_name [String] The name of the resource group.
|
581
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
582
|
+
# gateway.
|
583
|
+
# @param parameters [VirtualNetworkGateway] Parameters supplied to the Begin
|
584
|
+
# Reset Virtual Network Gateway operation through Network resource provider.
|
585
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
586
|
+
# to the HTTP request.
|
587
|
+
#
|
588
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
589
|
+
#
|
590
|
+
def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
412
591
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
413
592
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
414
593
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -426,7 +605,7 @@ module Azure::ARM::Network
|
|
426
605
|
unless parameters.nil?
|
427
606
|
parameters = VirtualNetworkGateway.serialize_object(parameters)
|
428
607
|
end
|
429
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
608
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
430
609
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualnetworkgateways/{virtualNetworkGatewayName}/reset'
|
431
610
|
options = {
|
432
611
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -435,7 +614,10 @@ module Azure::ARM::Network
|
|
435
614
|
body: request_content,
|
436
615
|
headers: request_headers.merge(custom_headers || {})
|
437
616
|
}
|
438
|
-
|
617
|
+
|
618
|
+
request_url = @base_url || @client.base_url
|
619
|
+
|
620
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
439
621
|
promise = request.run_promise do |req|
|
440
622
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
441
623
|
end
|
@@ -481,13 +663,53 @@ module Azure::ARM::Network
|
|
481
663
|
# @param parameters [VpnClientParameters] Parameters supplied to the Begin
|
482
664
|
# Generating Virtual Network Gateway Vpn client package operation through
|
483
665
|
# Network resource provider.
|
484
|
-
# @param [Hash{String => String}]
|
485
|
-
#
|
666
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
667
|
+
# will be added to the HTTP request.
|
486
668
|
#
|
487
|
-
# @return [
|
488
|
-
# response.
|
669
|
+
# @return [String] operation results.
|
489
670
|
#
|
490
671
|
def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
672
|
+
response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
|
673
|
+
response.body unless response.nil?
|
674
|
+
end
|
675
|
+
|
676
|
+
#
|
677
|
+
# The Generatevpnclientpackage operation generates Vpn client package for P2S
|
678
|
+
# client of the virtual network gateway in the specified resource group
|
679
|
+
# through Network resource provider.
|
680
|
+
#
|
681
|
+
# @param resource_group_name [String] The name of the resource group.
|
682
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
683
|
+
# gateway.
|
684
|
+
# @param parameters [VpnClientParameters] Parameters supplied to the Begin
|
685
|
+
# Generating Virtual Network Gateway Vpn client package operation through
|
686
|
+
# Network resource provider.
|
687
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
688
|
+
# will be added to the HTTP request.
|
689
|
+
#
|
690
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
691
|
+
#
|
692
|
+
def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
693
|
+
generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value!
|
694
|
+
end
|
695
|
+
|
696
|
+
#
|
697
|
+
# The Generatevpnclientpackage operation generates Vpn client package for P2S
|
698
|
+
# client of the virtual network gateway in the specified resource group
|
699
|
+
# through Network resource provider.
|
700
|
+
#
|
701
|
+
# @param resource_group_name [String] The name of the resource group.
|
702
|
+
# @param virtual_network_gateway_name [String] The name of the virtual network
|
703
|
+
# gateway.
|
704
|
+
# @param parameters [VpnClientParameters] Parameters supplied to the Begin
|
705
|
+
# Generating Virtual Network Gateway Vpn client package operation through
|
706
|
+
# Network resource provider.
|
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 generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil)
|
491
713
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
492
714
|
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
|
493
715
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -505,7 +727,7 @@ module Azure::ARM::Network
|
|
505
727
|
unless parameters.nil?
|
506
728
|
parameters = VpnClientParameters.serialize_object(parameters)
|
507
729
|
end
|
508
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
730
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
509
731
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualnetworkgateways/{virtualNetworkGatewayName}/generatevpnclientpackage'
|
510
732
|
options = {
|
511
733
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -514,7 +736,10 @@ module Azure::ARM::Network
|
|
514
736
|
body: request_content,
|
515
737
|
headers: request_headers.merge(custom_headers || {})
|
516
738
|
}
|
517
|
-
|
739
|
+
|
740
|
+
request_url = @base_url || @client.base_url
|
741
|
+
|
742
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
518
743
|
promise = request.run_promise do |req|
|
519
744
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
520
745
|
end
|
@@ -552,13 +777,43 @@ module Azure::ARM::Network
|
|
552
777
|
#
|
553
778
|
# @param next_page_link [String] The NextLink from the previous successful
|
554
779
|
# call to List operation.
|
555
|
-
# @param [Hash{String => String}]
|
556
|
-
#
|
780
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
781
|
+
# will be added to the HTTP request.
|
557
782
|
#
|
558
|
-
# @return [
|
559
|
-
# response.
|
783
|
+
# @return [VirtualNetworkGatewayListResult] operation results.
|
560
784
|
#
|
561
785
|
def list_next(next_page_link, custom_headers = nil)
|
786
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
787
|
+
response.body unless response.nil?
|
788
|
+
end
|
789
|
+
|
790
|
+
#
|
791
|
+
# The List VirtualNetworkGateways opertion retrieves all the virtual network
|
792
|
+
# gateways stored.
|
793
|
+
#
|
794
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
795
|
+
# call to List operation.
|
796
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
797
|
+
# will be added to the HTTP request.
|
798
|
+
#
|
799
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
800
|
+
#
|
801
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
802
|
+
list_next_async(next_page_link, custom_headers).value!
|
803
|
+
end
|
804
|
+
|
805
|
+
#
|
806
|
+
# The List VirtualNetworkGateways opertion retrieves all the virtual network
|
807
|
+
# gateways stored.
|
808
|
+
#
|
809
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
810
|
+
# call to List operation.
|
811
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
812
|
+
# to the HTTP request.
|
813
|
+
#
|
814
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
815
|
+
#
|
816
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
562
817
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
563
818
|
request_headers = {}
|
564
819
|
|
@@ -571,7 +826,10 @@ module Azure::ARM::Network
|
|
571
826
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
572
827
|
headers: request_headers.merge(custom_headers || {})
|
573
828
|
}
|
574
|
-
|
829
|
+
|
830
|
+
request_url = @base_url || @client.base_url
|
831
|
+
|
832
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
575
833
|
promise = request.run_promise do |req|
|
576
834
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
577
835
|
end
|