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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_network.rb +59 -52
- data/lib/generated/azure_mgmt_network/application_gateways.rb +426 -308
- data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +181 -199
- data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +175 -193
- data/lib/generated/azure_mgmt_network/express_route_circuits.rb +458 -497
- data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +36 -43
- data/lib/generated/azure_mgmt_network/load_balancers.rb +225 -242
- data/lib/generated/azure_mgmt_network/local_network_gateways.rb +168 -191
- data/lib/generated/azure_mgmt_network/models/address_space.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/application_gateway.rb +42 -28
- data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +52 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +66 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +67 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +18 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +16 -13
- data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +13 -12
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +16 -14
- data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +7 -6
- data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +9 -9
- data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +19 -12
- data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +14 -11
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +11 -8
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +3 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +12 -9
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +4 -3
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +10 -9
- data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +57 -0
- data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +4 -3
- data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +11 -11
- data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +7 -6
- data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +8 -3
- data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +5 -6
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +20 -17
- data/lib/generated/azure_mgmt_network/models/effective_route.rb +16 -13
- data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/error.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/error_details.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +20 -21
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +10 -9
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +26 -24
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +10 -10
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +9 -7
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +2 -2
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +5 -4
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +18 -19
- data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +19 -27
- data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +25 -33
- data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +12 -13
- data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/load_balancer.rb +31 -16
- data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +29 -38
- data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +11 -10
- data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/network_interface.rb +31 -20
- data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +18 -8
- data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +19 -16
- data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/network_security_group.rb +15 -15
- data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +12 -14
- data/lib/generated/azure_mgmt_network/models/probe.rb +27 -28
- data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +15 -15
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +15 -14
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/route.rb +13 -13
- data/lib/generated/azure_mgmt_network/models/route_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/route_table.rb +8 -7
- data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/security_rule.rb +33 -36
- data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/subnet.rb +14 -15
- data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +92 -0
- data/lib/generated/azure_mgmt_network/models/usage.rb +7 -7
- data/lib/generated/azure_mgmt_network/models/usage_name.rb +4 -5
- data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/virtual_network.rb +15 -16
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +26 -23
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +45 -18
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +6 -5
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +15 -14
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +12 -10
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +21 -23
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +6 -6
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +5 -4
- data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +10 -9
- data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +10 -8
- data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_network/network_interfaces.rb +443 -478
- data/lib/generated/azure_mgmt_network/network_management_client.rb +20 -7
- data/lib/generated/azure_mgmt_network/network_security_groups.rb +224 -249
- data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +220 -241
- data/lib/generated/azure_mgmt_network/route_tables.rb +219 -226
- data/lib/generated/azure_mgmt_network/routes.rb +171 -181
- data/lib/generated/azure_mgmt_network/security_rules.rb +175 -193
- data/lib/generated/azure_mgmt_network/subnets.rb +177 -181
- data/lib/generated/azure_mgmt_network/usages.rb +34 -34
- data/lib/generated/azure_mgmt_network/version.rb +2 -2
- data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +335 -358
- data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +246 -289
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +177 -191
- data/lib/generated/azure_mgmt_network/virtual_networks.rb +242 -249
- metadata +12 -5
- 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.
|
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
|
-
#
|
11
|
-
#
|
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 Usages
|
14
14
|
include Azure::ARM::Network::Models
|
@@ -28,28 +28,7 @@ module Azure::ARM::Network
|
|
28
28
|
#
|
29
29
|
# Lists compute usages for a subscription.
|
30
30
|
#
|
31
|
-
# @param location [String] The location
|
32
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
-
# will be added to the HTTP request.
|
34
|
-
#
|
35
|
-
# @return [UsagesListResult] which provide lazy access to pages of the
|
36
|
-
# response.
|
37
|
-
#
|
38
|
-
def list_as_lazy(location, custom_headers = nil)
|
39
|
-
response = list_async(location, custom_headers).value!
|
40
|
-
unless response.nil?
|
41
|
-
page = response.body
|
42
|
-
page.next_method = Proc.new do |next_page_link|
|
43
|
-
list_next_async(next_page_link, custom_headers)
|
44
|
-
end
|
45
|
-
page
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
#
|
50
|
-
# Lists compute usages for a subscription.
|
51
|
-
#
|
52
|
-
# @param location [String] The location upon which resource usage is queried.
|
31
|
+
# @param location [String] The location where resource usage is queried.
|
53
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
54
33
|
# will be added to the HTTP request.
|
55
34
|
#
|
@@ -63,7 +42,7 @@ module Azure::ARM::Network
|
|
63
42
|
#
|
64
43
|
# Lists compute usages for a subscription.
|
65
44
|
#
|
66
|
-
# @param location [String] The location
|
45
|
+
# @param location [String] The location where resource usage is queried.
|
67
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
68
47
|
# will be added to the HTTP request.
|
69
48
|
#
|
@@ -76,7 +55,7 @@ module Azure::ARM::Network
|
|
76
55
|
#
|
77
56
|
# Lists compute usages for a subscription.
|
78
57
|
#
|
79
|
-
# @param location [String] The location
|
58
|
+
# @param location [String] The location where resource usage is queried.
|
80
59
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
81
60
|
# to the HTTP request.
|
82
61
|
#
|
@@ -136,8 +115,8 @@ module Azure::ARM::Network
|
|
136
115
|
#
|
137
116
|
# Lists compute usages for a subscription.
|
138
117
|
#
|
139
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
140
|
-
#
|
118
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
119
|
+
# to List operation.
|
141
120
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
121
|
# will be added to the HTTP request.
|
143
122
|
#
|
@@ -151,8 +130,8 @@ module Azure::ARM::Network
|
|
151
130
|
#
|
152
131
|
# Lists compute usages for a subscription.
|
153
132
|
#
|
154
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
155
|
-
#
|
133
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
134
|
+
# to List operation.
|
156
135
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
157
136
|
# will be added to the HTTP request.
|
158
137
|
#
|
@@ -165,8 +144,8 @@ module Azure::ARM::Network
|
|
165
144
|
#
|
166
145
|
# Lists compute usages for a subscription.
|
167
146
|
#
|
168
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
169
|
-
#
|
147
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
148
|
+
# to List operation.
|
170
149
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
171
150
|
# to the HTTP request.
|
172
151
|
#
|
@@ -220,5 +199,26 @@ module Azure::ARM::Network
|
|
220
199
|
promise.execute
|
221
200
|
end
|
222
201
|
|
202
|
+
#
|
203
|
+
# Lists compute usages for a subscription.
|
204
|
+
#
|
205
|
+
# @param location [String] The location where resource usage is queried.
|
206
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
207
|
+
# will be added to the HTTP request.
|
208
|
+
#
|
209
|
+
# @return [UsagesListResult] which provide lazy access to pages of the
|
210
|
+
# response.
|
211
|
+
#
|
212
|
+
def list_as_lazy(location, custom_headers = nil)
|
213
|
+
response = list_async(location, custom_headers).value!
|
214
|
+
unless response.nil?
|
215
|
+
page = response.body
|
216
|
+
page.next_method = Proc.new do |next_page_link|
|
217
|
+
list_next_async(next_page_link, custom_headers)
|
218
|
+
end
|
219
|
+
page
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
223
|
end
|
224
224
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.8.0'
|
8
8
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
-
#
|
11
|
-
#
|
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 VirtualNetworkGatewayConnections
|
14
14
|
include Azure::ARM::Network::Models
|
@@ -26,16 +26,14 @@ module Azure::ARM::Network
|
|
26
26
|
attr_reader :client
|
27
27
|
|
28
28
|
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
# resource provider.
|
29
|
+
# Creates or updates a virtual network gateway connection in the specified
|
30
|
+
# resource group.
|
32
31
|
#
|
33
32
|
# @param resource_group_name [String] The name of the resource group.
|
34
33
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
35
34
|
# virtual network gateway connection.
|
36
35
|
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
37
|
-
# the
|
38
|
-
# through Network resource provider.
|
36
|
+
# the create or update virtual network gateway connection operation.
|
39
37
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
40
38
|
# will be added to the HTTP request.
|
41
39
|
#
|
@@ -51,8 +49,7 @@ module Azure::ARM::Network
|
|
51
49
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
52
50
|
# virtual network gateway connection.
|
53
51
|
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
54
|
-
# the
|
55
|
-
# through Network resource provider.
|
52
|
+
# the create or update virtual network gateway connection operation.
|
56
53
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
57
54
|
# will be added to the HTTP request.
|
58
55
|
#
|
@@ -78,138 +75,7 @@ module Azure::ARM::Network
|
|
78
75
|
end
|
79
76
|
|
80
77
|
#
|
81
|
-
#
|
82
|
-
# network gateway connection in the specified resource group through Network
|
83
|
-
# resource provider.
|
84
|
-
#
|
85
|
-
# @param resource_group_name [String] The name of the resource group.
|
86
|
-
# @param virtual_network_gateway_connection_name [String] The name of the
|
87
|
-
# virtual network gateway connection.
|
88
|
-
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
89
|
-
# the Begin Create or update Virtual Network Gateway connection operation
|
90
|
-
# through Network resource provider.
|
91
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
92
|
-
# will be added to the HTTP request.
|
93
|
-
#
|
94
|
-
# @return [VirtualNetworkGatewayConnection] operation results.
|
95
|
-
#
|
96
|
-
def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
97
|
-
response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
98
|
-
response.body unless response.nil?
|
99
|
-
end
|
100
|
-
|
101
|
-
#
|
102
|
-
# The Put VirtualNetworkGatewayConnection operation creates/updates a virtual
|
103
|
-
# network gateway connection in the specified resource group through Network
|
104
|
-
# resource provider.
|
105
|
-
#
|
106
|
-
# @param resource_group_name [String] The name of the resource group.
|
107
|
-
# @param virtual_network_gateway_connection_name [String] The name of the
|
108
|
-
# virtual network gateway connection.
|
109
|
-
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
110
|
-
# the Begin Create or update Virtual Network Gateway connection operation
|
111
|
-
# through Network resource provider.
|
112
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
113
|
-
# will be added to the HTTP request.
|
114
|
-
#
|
115
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
116
|
-
#
|
117
|
-
def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
118
|
-
begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
119
|
-
end
|
120
|
-
|
121
|
-
#
|
122
|
-
# The Put VirtualNetworkGatewayConnection operation creates/updates a virtual
|
123
|
-
# network gateway connection in the specified resource group through Network
|
124
|
-
# resource provider.
|
125
|
-
#
|
126
|
-
# @param resource_group_name [String] The name of the resource group.
|
127
|
-
# @param virtual_network_gateway_connection_name [String] The name of the
|
128
|
-
# virtual network gateway connection.
|
129
|
-
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
130
|
-
# the Begin Create or update Virtual Network Gateway connection operation
|
131
|
-
# through Network resource provider.
|
132
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
133
|
-
# to the HTTP request.
|
134
|
-
#
|
135
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
136
|
-
#
|
137
|
-
def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
138
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
139
|
-
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
140
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
141
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
142
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
143
|
-
|
144
|
-
|
145
|
-
request_headers = {}
|
146
|
-
|
147
|
-
# Set Headers
|
148
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
149
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
150
|
-
|
151
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
152
|
-
|
153
|
-
# Serialize Request
|
154
|
-
request_mapper = VirtualNetworkGatewayConnection.mapper()
|
155
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
156
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
157
|
-
|
158
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
|
159
|
-
|
160
|
-
request_url = @base_url || @client.base_url
|
161
|
-
|
162
|
-
options = {
|
163
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
164
|
-
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayConnectionName' => virtual_network_gateway_connection_name,'subscriptionId' => @client.subscription_id},
|
165
|
-
query_params: {'api-version' => @client.api_version},
|
166
|
-
body: request_content,
|
167
|
-
headers: request_headers.merge(custom_headers || {}),
|
168
|
-
base_url: request_url
|
169
|
-
}
|
170
|
-
promise = @client.make_request_async(:put, path_template, options)
|
171
|
-
|
172
|
-
promise = promise.then do |result|
|
173
|
-
http_response = result.response
|
174
|
-
status_code = http_response.status
|
175
|
-
response_content = http_response.body
|
176
|
-
unless status_code == 200 || status_code == 201
|
177
|
-
error_model = JSON.load(response_content)
|
178
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
179
|
-
end
|
180
|
-
|
181
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
182
|
-
# Deserialize Response
|
183
|
-
if status_code == 200
|
184
|
-
begin
|
185
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
186
|
-
result_mapper = VirtualNetworkGatewayConnection.mapper()
|
187
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
188
|
-
rescue Exception => e
|
189
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
190
|
-
end
|
191
|
-
end
|
192
|
-
# Deserialize Response
|
193
|
-
if status_code == 201
|
194
|
-
begin
|
195
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
196
|
-
result_mapper = VirtualNetworkGatewayConnection.mapper()
|
197
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
198
|
-
rescue Exception => e
|
199
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
result
|
204
|
-
end
|
205
|
-
|
206
|
-
promise.execute
|
207
|
-
end
|
208
|
-
|
209
|
-
#
|
210
|
-
# The Get VirtualNetworkGatewayConnection operation retrieves information
|
211
|
-
# about the specified virtual network gateway connection through Network
|
212
|
-
# resource provider.
|
78
|
+
# Gets the specified virtual network gateway connection by resource group.
|
213
79
|
#
|
214
80
|
# @param resource_group_name [String] The name of the resource group.
|
215
81
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
@@ -225,9 +91,7 @@ module Azure::ARM::Network
|
|
225
91
|
end
|
226
92
|
|
227
93
|
#
|
228
|
-
#
|
229
|
-
# about the specified virtual network gateway connection through Network
|
230
|
-
# resource provider.
|
94
|
+
# Gets the specified virtual network gateway connection by resource group.
|
231
95
|
#
|
232
96
|
# @param resource_group_name [String] The name of the resource group.
|
233
97
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
@@ -242,9 +106,7 @@ module Azure::ARM::Network
|
|
242
106
|
end
|
243
107
|
|
244
108
|
#
|
245
|
-
#
|
246
|
-
# about the specified virtual network gateway connection through Network
|
247
|
-
# resource provider.
|
109
|
+
# Gets the specified virtual network gateway connection by resource group.
|
248
110
|
#
|
249
111
|
# @param resource_group_name [String] The name of the resource group.
|
250
112
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
@@ -307,8 +169,7 @@ module Azure::ARM::Network
|
|
307
169
|
end
|
308
170
|
|
309
171
|
#
|
310
|
-
#
|
311
|
-
# virtual network Gateway connection through Network resource provider.
|
172
|
+
# Deletes the specified virtual network Gateway connection.
|
312
173
|
#
|
313
174
|
# @param resource_group_name [String] The name of the resource group.
|
314
175
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
@@ -348,142 +209,108 @@ module Azure::ARM::Network
|
|
348
209
|
end
|
349
210
|
|
350
211
|
#
|
351
|
-
# The
|
352
|
-
#
|
212
|
+
# The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
|
213
|
+
# network gateway connection shared key for passed virtual network gateway
|
214
|
+
# connection in the specified resource group through Network resource provider.
|
353
215
|
#
|
354
216
|
# @param resource_group_name [String] The name of the resource group.
|
355
|
-
# @param virtual_network_gateway_connection_name [String] The
|
356
|
-
#
|
217
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
218
|
+
# gateway connection name.
|
219
|
+
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
220
|
+
# Virtual Network Gateway connection Shared key operation throughNetwork
|
221
|
+
# resource provider.
|
357
222
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
358
223
|
# will be added to the HTTP request.
|
359
224
|
#
|
225
|
+
# @return [ConnectionSharedKey] operation results.
|
360
226
|
#
|
361
|
-
def
|
362
|
-
response =
|
363
|
-
nil
|
227
|
+
def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
228
|
+
response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
229
|
+
response.body unless response.nil?
|
364
230
|
end
|
365
231
|
|
366
|
-
#
|
367
|
-
# The Delete VirtualNetworkGatewayConnection operation deletes the specified
|
368
|
-
# virtual network Gateway connection through Network resource provider.
|
369
232
|
#
|
370
233
|
# @param resource_group_name [String] The name of the resource group.
|
371
|
-
# @param virtual_network_gateway_connection_name [String] The
|
372
|
-
#
|
234
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
235
|
+
# gateway connection name.
|
236
|
+
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
237
|
+
# Virtual Network Gateway connection Shared key operation throughNetwork
|
238
|
+
# resource provider.
|
373
239
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
374
240
|
# will be added to the HTTP request.
|
375
241
|
#
|
376
|
-
# @return [
|
377
|
-
#
|
378
|
-
def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
379
|
-
begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
380
|
-
end
|
381
|
-
|
382
|
-
#
|
383
|
-
# The Delete VirtualNetworkGatewayConnection operation deletes the specified
|
384
|
-
# virtual network Gateway connection through Network resource provider.
|
385
|
-
#
|
386
|
-
# @param resource_group_name [String] The name of the resource group.
|
387
|
-
# @param virtual_network_gateway_connection_name [String] The name of the
|
388
|
-
# virtual network gateway connection.
|
389
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
390
|
-
# to the HTTP request.
|
391
|
-
#
|
392
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
242
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
243
|
+
# response.
|
393
244
|
#
|
394
|
-
def
|
395
|
-
|
396
|
-
|
397
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
398
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
399
|
-
|
400
|
-
|
401
|
-
request_headers = {}
|
402
|
-
|
403
|
-
# Set Headers
|
404
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
405
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
406
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
|
407
|
-
|
408
|
-
request_url = @base_url || @client.base_url
|
409
|
-
|
410
|
-
options = {
|
411
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
412
|
-
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayConnectionName' => virtual_network_gateway_connection_name,'subscriptionId' => @client.subscription_id},
|
413
|
-
query_params: {'api-version' => @client.api_version},
|
414
|
-
headers: request_headers.merge(custom_headers || {}),
|
415
|
-
base_url: request_url
|
416
|
-
}
|
417
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
245
|
+
def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
246
|
+
# Send request
|
247
|
+
promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers)
|
418
248
|
|
419
|
-
promise = promise.then do |
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
error_model = JSON.load(response_content)
|
425
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
249
|
+
promise = promise.then do |response|
|
250
|
+
# Defining deserialization method.
|
251
|
+
deserialize_method = lambda do |parsed_response|
|
252
|
+
result_mapper = ConnectionSharedKey.mapper()
|
253
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
426
254
|
end
|
427
255
|
|
428
|
-
|
429
|
-
|
430
|
-
result
|
256
|
+
# Waiting for response.
|
257
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
431
258
|
end
|
432
259
|
|
433
|
-
promise
|
260
|
+
promise
|
434
261
|
end
|
435
262
|
|
436
263
|
#
|
437
264
|
# The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves
|
438
|
-
# information about the specified virtual network gateway connection shared
|
439
|
-
#
|
265
|
+
# information about the specified virtual network gateway connection shared key
|
266
|
+
# through Network resource provider.
|
440
267
|
#
|
441
268
|
# @param resource_group_name [String] The name of the resource group.
|
442
|
-
# @param
|
443
|
-
# connection shared key name.
|
269
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
270
|
+
# gateway connection shared key name.
|
444
271
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
445
272
|
# will be added to the HTTP request.
|
446
273
|
#
|
447
|
-
# @return [
|
274
|
+
# @return [ConnectionSharedKey] operation results.
|
448
275
|
#
|
449
|
-
def get_shared_key(resource_group_name,
|
450
|
-
response = get_shared_key_async(resource_group_name,
|
276
|
+
def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
277
|
+
response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
451
278
|
response.body unless response.nil?
|
452
279
|
end
|
453
280
|
|
454
281
|
#
|
455
282
|
# The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves
|
456
|
-
# information about the specified virtual network gateway connection shared
|
457
|
-
#
|
283
|
+
# information about the specified virtual network gateway connection shared key
|
284
|
+
# through Network resource provider.
|
458
285
|
#
|
459
286
|
# @param resource_group_name [String] The name of the resource group.
|
460
|
-
# @param
|
461
|
-
# connection shared key name.
|
287
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
288
|
+
# gateway connection shared key name.
|
462
289
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
463
290
|
# will be added to the HTTP request.
|
464
291
|
#
|
465
292
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
466
293
|
#
|
467
|
-
def get_shared_key_with_http_info(resource_group_name,
|
468
|
-
get_shared_key_async(resource_group_name,
|
294
|
+
def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
295
|
+
get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
469
296
|
end
|
470
297
|
|
471
298
|
#
|
472
299
|
# The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves
|
473
|
-
# information about the specified virtual network gateway connection shared
|
474
|
-
#
|
300
|
+
# information about the specified virtual network gateway connection shared key
|
301
|
+
# through Network resource provider.
|
475
302
|
#
|
476
303
|
# @param resource_group_name [String] The name of the resource group.
|
477
|
-
# @param
|
478
|
-
# connection shared key name.
|
304
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
305
|
+
# gateway connection shared key name.
|
479
306
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
480
307
|
# to the HTTP request.
|
481
308
|
#
|
482
309
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
483
310
|
#
|
484
|
-
def get_shared_key_async(resource_group_name,
|
311
|
+
def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
485
312
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
486
|
-
fail ArgumentError, '
|
313
|
+
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
487
314
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
488
315
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
489
316
|
|
@@ -493,13 +320,13 @@ module Azure::ARM::Network
|
|
493
320
|
# Set Headers
|
494
321
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
495
322
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
496
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{
|
323
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'
|
497
324
|
|
498
325
|
request_url = @base_url || @client.base_url
|
499
326
|
|
500
327
|
options = {
|
501
328
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
502
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
329
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayConnectionName' => virtual_network_gateway_connection_name,'subscriptionId' => @client.subscription_id},
|
503
330
|
query_params: {'api-version' => @client.api_version},
|
504
331
|
headers: request_headers.merge(custom_headers || {}),
|
505
332
|
base_url: request_url
|
@@ -520,7 +347,7 @@ module Azure::ARM::Network
|
|
520
347
|
if status_code == 200
|
521
348
|
begin
|
522
349
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
523
|
-
result_mapper =
|
350
|
+
result_mapper = ConnectionSharedKey.mapper()
|
524
351
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
525
352
|
rescue Exception => e
|
526
353
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -534,30 +361,8 @@ module Azure::ARM::Network
|
|
534
361
|
end
|
535
362
|
|
536
363
|
#
|
537
|
-
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
538
|
-
#
|
539
|
-
#
|
540
|
-
# @param resource_group_name [String] The name of the resource group.
|
541
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
542
|
-
# will be added to the HTTP request.
|
543
|
-
#
|
544
|
-
# @return [VirtualNetworkGatewayConnectionListResult] which provide lazy
|
545
|
-
# access to pages of the response.
|
546
|
-
#
|
547
|
-
def list_as_lazy(resource_group_name, custom_headers = nil)
|
548
|
-
response = list_async(resource_group_name, custom_headers).value!
|
549
|
-
unless response.nil?
|
550
|
-
page = response.body
|
551
|
-
page.next_method = Proc.new do |next_page_link|
|
552
|
-
list_next_async(next_page_link, custom_headers)
|
553
|
-
end
|
554
|
-
page
|
555
|
-
end
|
556
|
-
end
|
557
|
-
|
558
|
-
#
|
559
|
-
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
560
|
-
# virtual network gateways connections created.
|
364
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
365
|
+
# network gateways connections created.
|
561
366
|
#
|
562
367
|
# @param resource_group_name [String] The name of the resource group.
|
563
368
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -571,8 +376,8 @@ module Azure::ARM::Network
|
|
571
376
|
end
|
572
377
|
|
573
378
|
#
|
574
|
-
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
575
|
-
#
|
379
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
380
|
+
# network gateways connections created.
|
576
381
|
#
|
577
382
|
# @param resource_group_name [String] The name of the resource group.
|
578
383
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -585,8 +390,8 @@ module Azure::ARM::Network
|
|
585
390
|
end
|
586
391
|
|
587
392
|
#
|
588
|
-
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
589
|
-
#
|
393
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
394
|
+
# network gateways connections created.
|
590
395
|
#
|
591
396
|
# @param resource_group_name [String] The name of the resource group.
|
592
397
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -654,9 +459,9 @@ module Azure::ARM::Network
|
|
654
459
|
# @param resource_group_name [String] The name of the resource group.
|
655
460
|
# @param virtual_network_gateway_connection_name [String] The virtual network
|
656
461
|
# gateway connection reset shared key Name.
|
657
|
-
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the
|
658
|
-
#
|
659
|
-
#
|
462
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the begin
|
463
|
+
# reset virtual network gateway connection shared key operation through network
|
464
|
+
# resource provider.
|
660
465
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
661
466
|
# will be added to the HTTP request.
|
662
467
|
#
|
@@ -671,9 +476,9 @@ module Azure::ARM::Network
|
|
671
476
|
# @param resource_group_name [String] The name of the resource group.
|
672
477
|
# @param virtual_network_gateway_connection_name [String] The virtual network
|
673
478
|
# gateway connection reset shared key Name.
|
674
|
-
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the
|
675
|
-
#
|
676
|
-
#
|
479
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the begin
|
480
|
+
# reset virtual network gateway connection shared key operation through network
|
481
|
+
# resource provider.
|
677
482
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
678
483
|
# will be added to the HTTP request.
|
679
484
|
#
|
@@ -699,66 +504,57 @@ module Azure::ARM::Network
|
|
699
504
|
end
|
700
505
|
|
701
506
|
#
|
702
|
-
#
|
703
|
-
#
|
704
|
-
# gateway connection in the specified resource group through Network resource
|
705
|
-
# provider.
|
507
|
+
# Creates or updates a virtual network gateway connection in the specified
|
508
|
+
# resource group.
|
706
509
|
#
|
707
510
|
# @param resource_group_name [String] The name of the resource group.
|
708
|
-
# @param virtual_network_gateway_connection_name [String] The
|
709
|
-
# gateway connection
|
710
|
-
# @param parameters [
|
711
|
-
#
|
712
|
-
# Network resource provider.
|
511
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
512
|
+
# virtual network gateway connection.
|
513
|
+
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
514
|
+
# the create or update virtual network gateway connection operation.
|
713
515
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
714
516
|
# will be added to the HTTP request.
|
715
517
|
#
|
716
|
-
# @return [
|
518
|
+
# @return [VirtualNetworkGatewayConnection] operation results.
|
717
519
|
#
|
718
|
-
def
|
719
|
-
response =
|
520
|
+
def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
521
|
+
response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
720
522
|
response.body unless response.nil?
|
721
523
|
end
|
722
524
|
|
723
525
|
#
|
724
|
-
#
|
725
|
-
#
|
726
|
-
# gateway connection in the specified resource group through Network resource
|
727
|
-
# provider.
|
526
|
+
# Creates or updates a virtual network gateway connection in the specified
|
527
|
+
# resource group.
|
728
528
|
#
|
729
529
|
# @param resource_group_name [String] The name of the resource group.
|
730
|
-
# @param virtual_network_gateway_connection_name [String] The
|
731
|
-
# gateway connection
|
732
|
-
# @param parameters [
|
733
|
-
#
|
734
|
-
# Network resource provider.
|
530
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
531
|
+
# virtual network gateway connection.
|
532
|
+
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
533
|
+
# the create or update virtual network gateway connection operation.
|
735
534
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
736
535
|
# will be added to the HTTP request.
|
737
536
|
#
|
738
537
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
739
538
|
#
|
740
|
-
def
|
741
|
-
|
539
|
+
def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
540
|
+
begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
742
541
|
end
|
743
542
|
|
744
543
|
#
|
745
|
-
#
|
746
|
-
#
|
747
|
-
# gateway connection in the specified resource group through Network resource
|
748
|
-
# provider.
|
544
|
+
# Creates or updates a virtual network gateway connection in the specified
|
545
|
+
# resource group.
|
749
546
|
#
|
750
547
|
# @param resource_group_name [String] The name of the resource group.
|
751
|
-
# @param virtual_network_gateway_connection_name [String] The
|
752
|
-
# gateway connection
|
753
|
-
# @param parameters [
|
754
|
-
#
|
755
|
-
# Network resource provider.
|
548
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
549
|
+
# virtual network gateway connection.
|
550
|
+
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
551
|
+
# the create or update virtual network gateway connection operation.
|
756
552
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
757
553
|
# to the HTTP request.
|
758
554
|
#
|
759
555
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
760
556
|
#
|
761
|
-
def
|
557
|
+
def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
762
558
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
763
559
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
764
560
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -775,11 +571,11 @@ module Azure::ARM::Network
|
|
775
571
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
776
572
|
|
777
573
|
# Serialize Request
|
778
|
-
request_mapper =
|
574
|
+
request_mapper = VirtualNetworkGatewayConnection.mapper()
|
779
575
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
780
576
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
781
577
|
|
782
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}
|
578
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
|
783
579
|
|
784
580
|
request_url = @base_url || @client.base_url
|
785
581
|
|
@@ -791,13 +587,13 @@ module Azure::ARM::Network
|
|
791
587
|
headers: request_headers.merge(custom_headers || {}),
|
792
588
|
base_url: request_url
|
793
589
|
}
|
794
|
-
promise = @client.make_request_async(:
|
590
|
+
promise = @client.make_request_async(:put, path_template, options)
|
795
591
|
|
796
592
|
promise = promise.then do |result|
|
797
593
|
http_response = result.response
|
798
594
|
status_code = http_response.status
|
799
595
|
response_content = http_response.body
|
800
|
-
unless status_code == 200 || status_code ==
|
596
|
+
unless status_code == 200 || status_code == 201
|
801
597
|
error_model = JSON.load(response_content)
|
802
598
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
803
599
|
end
|
@@ -807,7 +603,17 @@ module Azure::ARM::Network
|
|
807
603
|
if status_code == 200
|
808
604
|
begin
|
809
605
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
810
|
-
result_mapper =
|
606
|
+
result_mapper = VirtualNetworkGatewayConnection.mapper()
|
607
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
608
|
+
rescue Exception => e
|
609
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
610
|
+
end
|
611
|
+
end
|
612
|
+
# Deserialize Response
|
613
|
+
if status_code == 201
|
614
|
+
begin
|
615
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
616
|
+
result_mapper = VirtualNetworkGatewayConnection.mapper()
|
811
617
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
812
618
|
rescue Exception => e
|
813
619
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -821,63 +627,92 @@ module Azure::ARM::Network
|
|
821
627
|
end
|
822
628
|
|
823
629
|
#
|
824
|
-
#
|
825
|
-
# network gateway connection shared key for passed virtual network gateway
|
826
|
-
# connection in the specified resource group through Network resource
|
827
|
-
# provider.
|
630
|
+
# Deletes the specified virtual network Gateway connection.
|
828
631
|
#
|
829
632
|
# @param resource_group_name [String] The name of the resource group.
|
830
|
-
# @param virtual_network_gateway_connection_name [String] The
|
831
|
-
# gateway connection
|
832
|
-
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
833
|
-
# Virtual Network Gateway connection Shared key operation throughNetwork
|
834
|
-
# resource provider.
|
633
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
634
|
+
# virtual network gateway connection.
|
835
635
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
836
636
|
# will be added to the HTTP request.
|
837
637
|
#
|
838
|
-
# @return [ConnectionSharedKey] operation results.
|
839
638
|
#
|
840
|
-
def
|
841
|
-
response =
|
842
|
-
|
639
|
+
def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
640
|
+
response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
641
|
+
nil
|
843
642
|
end
|
844
643
|
|
644
|
+
#
|
645
|
+
# Deletes the specified virtual network Gateway connection.
|
845
646
|
#
|
846
647
|
# @param resource_group_name [String] The name of the resource group.
|
847
|
-
# @param virtual_network_gateway_connection_name [String] The
|
848
|
-
# gateway connection
|
849
|
-
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
850
|
-
# Virtual Network Gateway connection Shared key operation throughNetwork
|
851
|
-
# resource provider.
|
648
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
649
|
+
# virtual network gateway connection.
|
852
650
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
853
651
|
# will be added to the HTTP request.
|
854
652
|
#
|
855
|
-
# @return [
|
856
|
-
# response.
|
653
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
857
654
|
#
|
858
|
-
def
|
859
|
-
|
860
|
-
|
655
|
+
def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
656
|
+
begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
657
|
+
end
|
861
658
|
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
659
|
+
#
|
660
|
+
# Deletes the specified virtual network Gateway connection.
|
661
|
+
#
|
662
|
+
# @param resource_group_name [String] The name of the resource group.
|
663
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
664
|
+
# virtual network gateway connection.
|
665
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
666
|
+
# to the HTTP request.
|
667
|
+
#
|
668
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
669
|
+
#
|
670
|
+
def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
671
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
672
|
+
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
673
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
674
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
675
|
+
|
676
|
+
|
677
|
+
request_headers = {}
|
678
|
+
|
679
|
+
# Set Headers
|
680
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
681
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
682
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
|
683
|
+
|
684
|
+
request_url = @base_url || @client.base_url
|
685
|
+
|
686
|
+
options = {
|
687
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
688
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayConnectionName' => virtual_network_gateway_connection_name,'subscriptionId' => @client.subscription_id},
|
689
|
+
query_params: {'api-version' => @client.api_version},
|
690
|
+
headers: request_headers.merge(custom_headers || {}),
|
691
|
+
base_url: request_url
|
692
|
+
}
|
693
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
694
|
+
|
695
|
+
promise = promise.then do |result|
|
696
|
+
http_response = result.response
|
697
|
+
status_code = http_response.status
|
698
|
+
response_content = http_response.body
|
699
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
700
|
+
error_model = JSON.load(response_content)
|
701
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
867
702
|
end
|
868
703
|
|
869
|
-
|
870
|
-
|
704
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
705
|
+
|
706
|
+
result
|
871
707
|
end
|
872
708
|
|
873
|
-
promise
|
709
|
+
promise.execute
|
874
710
|
end
|
875
711
|
|
876
712
|
#
|
877
713
|
# The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
|
878
714
|
# network gateway connection shared key for passed virtual network gateway
|
879
|
-
# connection in the specified resource group through Network resource
|
880
|
-
# provider.
|
715
|
+
# connection in the specified resource group through Network resource provider.
|
881
716
|
#
|
882
717
|
# @param resource_group_name [String] The name of the resource group.
|
883
718
|
# @param virtual_network_gateway_connection_name [String] The virtual network
|
@@ -898,8 +733,7 @@ module Azure::ARM::Network
|
|
898
733
|
#
|
899
734
|
# The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
|
900
735
|
# network gateway connection shared key for passed virtual network gateway
|
901
|
-
# connection in the specified resource group through Network resource
|
902
|
-
# provider.
|
736
|
+
# connection in the specified resource group through Network resource provider.
|
903
737
|
#
|
904
738
|
# @param resource_group_name [String] The name of the resource group.
|
905
739
|
# @param virtual_network_gateway_connection_name [String] The virtual network
|
@@ -919,8 +753,7 @@ module Azure::ARM::Network
|
|
919
753
|
#
|
920
754
|
# The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
|
921
755
|
# network gateway connection shared key for passed virtual network gateway
|
922
|
-
# connection in the specified resource group through Network resource
|
923
|
-
# provider.
|
756
|
+
# connection in the specified resource group through Network resource provider.
|
924
757
|
#
|
925
758
|
# @param resource_group_name [String] The name of the resource group.
|
926
759
|
# @param virtual_network_gateway_connection_name [String] The virtual network
|
@@ -1006,11 +839,133 @@ module Azure::ARM::Network
|
|
1006
839
|
end
|
1007
840
|
|
1008
841
|
#
|
1009
|
-
# The
|
1010
|
-
# virtual network
|
842
|
+
# The VirtualNetworkGatewayConnectionResetSharedKey operation resets the
|
843
|
+
# virtual network gateway connection shared key for passed virtual network
|
844
|
+
# gateway connection in the specified resource group through Network resource
|
845
|
+
# provider.
|
846
|
+
#
|
847
|
+
# @param resource_group_name [String] The name of the resource group.
|
848
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
849
|
+
# gateway connection reset shared key Name.
|
850
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the begin
|
851
|
+
# reset virtual network gateway connection shared key operation through network
|
852
|
+
# resource provider.
|
853
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
854
|
+
# will be added to the HTTP request.
|
855
|
+
#
|
856
|
+
# @return [ConnectionResetSharedKey] operation results.
|
857
|
+
#
|
858
|
+
def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
859
|
+
response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
860
|
+
response.body unless response.nil?
|
861
|
+
end
|
862
|
+
|
863
|
+
#
|
864
|
+
# The VirtualNetworkGatewayConnectionResetSharedKey operation resets the
|
865
|
+
# virtual network gateway connection shared key for passed virtual network
|
866
|
+
# gateway connection in the specified resource group through Network resource
|
867
|
+
# provider.
|
868
|
+
#
|
869
|
+
# @param resource_group_name [String] The name of the resource group.
|
870
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
871
|
+
# gateway connection reset shared key Name.
|
872
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the begin
|
873
|
+
# reset virtual network gateway connection shared key operation through network
|
874
|
+
# resource provider.
|
875
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
876
|
+
# will be added to the HTTP request.
|
877
|
+
#
|
878
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
879
|
+
#
|
880
|
+
def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
881
|
+
begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
882
|
+
end
|
883
|
+
|
884
|
+
#
|
885
|
+
# The VirtualNetworkGatewayConnectionResetSharedKey operation resets the
|
886
|
+
# virtual network gateway connection shared key for passed virtual network
|
887
|
+
# gateway connection in the specified resource group through Network resource
|
888
|
+
# provider.
|
889
|
+
#
|
890
|
+
# @param resource_group_name [String] The name of the resource group.
|
891
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
892
|
+
# gateway connection reset shared key Name.
|
893
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the begin
|
894
|
+
# reset virtual network gateway connection shared key operation through network
|
895
|
+
# resource provider.
|
896
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
897
|
+
# to the HTTP request.
|
898
|
+
#
|
899
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
900
|
+
#
|
901
|
+
def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
902
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
903
|
+
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
904
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
905
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
906
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
907
|
+
|
908
|
+
|
909
|
+
request_headers = {}
|
910
|
+
|
911
|
+
# Set Headers
|
912
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
913
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
914
|
+
|
915
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
916
|
+
|
917
|
+
# Serialize Request
|
918
|
+
request_mapper = ConnectionResetSharedKey.mapper()
|
919
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
920
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
921
|
+
|
922
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset'
|
923
|
+
|
924
|
+
request_url = @base_url || @client.base_url
|
925
|
+
|
926
|
+
options = {
|
927
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
928
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkGatewayConnectionName' => virtual_network_gateway_connection_name,'subscriptionId' => @client.subscription_id},
|
929
|
+
query_params: {'api-version' => @client.api_version},
|
930
|
+
body: request_content,
|
931
|
+
headers: request_headers.merge(custom_headers || {}),
|
932
|
+
base_url: request_url
|
933
|
+
}
|
934
|
+
promise = @client.make_request_async(:post, path_template, options)
|
935
|
+
|
936
|
+
promise = promise.then do |result|
|
937
|
+
http_response = result.response
|
938
|
+
status_code = http_response.status
|
939
|
+
response_content = http_response.body
|
940
|
+
unless status_code == 200 || status_code == 202
|
941
|
+
error_model = JSON.load(response_content)
|
942
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
943
|
+
end
|
944
|
+
|
945
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
946
|
+
# Deserialize Response
|
947
|
+
if status_code == 200
|
948
|
+
begin
|
949
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
950
|
+
result_mapper = ConnectionResetSharedKey.mapper()
|
951
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
952
|
+
rescue Exception => e
|
953
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
954
|
+
end
|
955
|
+
end
|
956
|
+
|
957
|
+
result
|
958
|
+
end
|
959
|
+
|
960
|
+
promise.execute
|
961
|
+
end
|
962
|
+
|
963
|
+
#
|
964
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
965
|
+
# network gateways connections created.
|
1011
966
|
#
|
1012
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1013
|
-
#
|
967
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
968
|
+
# to List operation.
|
1014
969
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1015
970
|
# will be added to the HTTP request.
|
1016
971
|
#
|
@@ -1022,11 +977,11 @@ module Azure::ARM::Network
|
|
1022
977
|
end
|
1023
978
|
|
1024
979
|
#
|
1025
|
-
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
1026
|
-
#
|
980
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
981
|
+
# network gateways connections created.
|
1027
982
|
#
|
1028
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1029
|
-
#
|
983
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
984
|
+
# to List operation.
|
1030
985
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1031
986
|
# will be added to the HTTP request.
|
1032
987
|
#
|
@@ -1037,11 +992,11 @@ module Azure::ARM::Network
|
|
1037
992
|
end
|
1038
993
|
|
1039
994
|
#
|
1040
|
-
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
1041
|
-
#
|
995
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
996
|
+
# network gateways connections created.
|
1042
997
|
#
|
1043
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1044
|
-
#
|
998
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
999
|
+
# to List operation.
|
1045
1000
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1046
1001
|
# to the HTTP request.
|
1047
1002
|
#
|
@@ -1095,5 +1050,27 @@ module Azure::ARM::Network
|
|
1095
1050
|
promise.execute
|
1096
1051
|
end
|
1097
1052
|
|
1053
|
+
#
|
1054
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the virtual
|
1055
|
+
# network gateways connections created.
|
1056
|
+
#
|
1057
|
+
# @param resource_group_name [String] The name of the resource group.
|
1058
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1059
|
+
# will be added to the HTTP request.
|
1060
|
+
#
|
1061
|
+
# @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access
|
1062
|
+
# to pages of the response.
|
1063
|
+
#
|
1064
|
+
def list_as_lazy(resource_group_name, custom_headers = nil)
|
1065
|
+
response = list_async(resource_group_name, custom_headers).value!
|
1066
|
+
unless response.nil?
|
1067
|
+
page = response.body
|
1068
|
+
page.next_method = Proc.new do |next_page_link|
|
1069
|
+
list_next_async(next_page_link, custom_headers)
|
1070
|
+
end
|
1071
|
+
page
|
1072
|
+
end
|
1073
|
+
end
|
1074
|
+
|
1098
1075
|
end
|
1099
1076
|
end
|