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 ExpressRouteCircuits
|
14
14
|
include Azure::ARM::Network::Models
|
@@ -26,11 +26,10 @@ module Azure::ARM::Network
|
|
26
26
|
attr_reader :client
|
27
27
|
|
28
28
|
#
|
29
|
-
#
|
30
|
-
# ExpressRouteCircuit.
|
29
|
+
# Deletes the specified express route circuit.
|
31
30
|
#
|
32
31
|
# @param resource_group_name [String] The name of the resource group.
|
33
|
-
# @param circuit_name [String] The name of the express route
|
32
|
+
# @param circuit_name [String] The name of the express route circuit.
|
34
33
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
34
|
# will be added to the HTTP request.
|
36
35
|
#
|
@@ -41,7 +40,7 @@ module Azure::ARM::Network
|
|
41
40
|
|
42
41
|
#
|
43
42
|
# @param resource_group_name [String] The name of the resource group.
|
44
|
-
# @param circuit_name [String] The name of the express route
|
43
|
+
# @param circuit_name [String] The name of the express route circuit.
|
45
44
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
45
|
# will be added to the HTTP request.
|
47
46
|
#
|
@@ -65,94 +64,10 @@ module Azure::ARM::Network
|
|
65
64
|
end
|
66
65
|
|
67
66
|
#
|
68
|
-
#
|
69
|
-
# ExpressRouteCircuit.
|
67
|
+
# Gets information about the specified express route circuit.
|
70
68
|
#
|
71
69
|
# @param resource_group_name [String] The name of the resource group.
|
72
|
-
# @param circuit_name [String] The name of
|
73
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
74
|
-
# will be added to the HTTP request.
|
75
|
-
#
|
76
|
-
#
|
77
|
-
def begin_delete(resource_group_name, circuit_name, custom_headers = nil)
|
78
|
-
response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value!
|
79
|
-
nil
|
80
|
-
end
|
81
|
-
|
82
|
-
#
|
83
|
-
# The delete ExpressRouteCircuit operation deletes the specified
|
84
|
-
# ExpressRouteCircuit.
|
85
|
-
#
|
86
|
-
# @param resource_group_name [String] The name of the resource group.
|
87
|
-
# @param circuit_name [String] The name of the express route Circuit.
|
88
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
89
|
-
# will be added to the HTTP request.
|
90
|
-
#
|
91
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
92
|
-
#
|
93
|
-
def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
|
94
|
-
begin_delete_async(resource_group_name, circuit_name, custom_headers).value!
|
95
|
-
end
|
96
|
-
|
97
|
-
#
|
98
|
-
# The delete ExpressRouteCircuit operation deletes the specified
|
99
|
-
# ExpressRouteCircuit.
|
100
|
-
#
|
101
|
-
# @param resource_group_name [String] The name of the resource group.
|
102
|
-
# @param circuit_name [String] The name of the express route Circuit.
|
103
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
104
|
-
# to the HTTP request.
|
105
|
-
#
|
106
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
107
|
-
#
|
108
|
-
def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil)
|
109
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
110
|
-
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
111
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
112
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
113
|
-
|
114
|
-
|
115
|
-
request_headers = {}
|
116
|
-
|
117
|
-
# Set Headers
|
118
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
119
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
120
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
|
121
|
-
|
122
|
-
request_url = @base_url || @client.base_url
|
123
|
-
|
124
|
-
options = {
|
125
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
126
|
-
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
|
127
|
-
query_params: {'api-version' => @client.api_version},
|
128
|
-
headers: request_headers.merge(custom_headers || {}),
|
129
|
-
base_url: request_url
|
130
|
-
}
|
131
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
132
|
-
|
133
|
-
promise = promise.then do |result|
|
134
|
-
http_response = result.response
|
135
|
-
status_code = http_response.status
|
136
|
-
response_content = http_response.body
|
137
|
-
unless status_code == 204 || status_code == 202 || status_code == 200
|
138
|
-
error_model = JSON.load(response_content)
|
139
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
140
|
-
end
|
141
|
-
|
142
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
143
|
-
|
144
|
-
result
|
145
|
-
end
|
146
|
-
|
147
|
-
promise.execute
|
148
|
-
end
|
149
|
-
|
150
|
-
#
|
151
|
-
# The Get ExpressRouteCircuit operation retrieves information about the
|
152
|
-
# specified ExpressRouteCircuit.
|
153
|
-
#
|
154
|
-
# @param resource_group_name [String] The name of the resource group.
|
155
|
-
# @param circuit_name [String] The name of the circuit.
|
70
|
+
# @param circuit_name [String] The name of express route circuit.
|
156
71
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
157
72
|
# will be added to the HTTP request.
|
158
73
|
#
|
@@ -164,11 +79,10 @@ module Azure::ARM::Network
|
|
164
79
|
end
|
165
80
|
|
166
81
|
#
|
167
|
-
#
|
168
|
-
# specified ExpressRouteCircuit.
|
82
|
+
# Gets information about the specified express route circuit.
|
169
83
|
#
|
170
84
|
# @param resource_group_name [String] The name of the resource group.
|
171
|
-
# @param circuit_name [String] The name of
|
85
|
+
# @param circuit_name [String] The name of express route circuit.
|
172
86
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
173
87
|
# will be added to the HTTP request.
|
174
88
|
#
|
@@ -179,11 +93,10 @@ module Azure::ARM::Network
|
|
179
93
|
end
|
180
94
|
|
181
95
|
#
|
182
|
-
#
|
183
|
-
# specified ExpressRouteCircuit.
|
96
|
+
# Gets information about the specified express route circuit.
|
184
97
|
#
|
185
98
|
# @param resource_group_name [String] The name of the resource group.
|
186
|
-
# @param circuit_name [String] The name of
|
99
|
+
# @param circuit_name [String] The name of express route circuit.
|
187
100
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
188
101
|
# to the HTTP request.
|
189
102
|
#
|
@@ -242,12 +155,12 @@ module Azure::ARM::Network
|
|
242
155
|
end
|
243
156
|
|
244
157
|
#
|
245
|
-
#
|
158
|
+
# Creates or updates an express route circuit.
|
246
159
|
#
|
247
160
|
# @param resource_group_name [String] The name of the resource group.
|
248
161
|
# @param circuit_name [String] The name of the circuit.
|
249
|
-
# @param parameters [ExpressRouteCircuit] Parameters supplied to the
|
250
|
-
#
|
162
|
+
# @param parameters [ExpressRouteCircuit] Parameters supplied to the create or
|
163
|
+
# update express route circuit operation.
|
251
164
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
252
165
|
# will be added to the HTTP request.
|
253
166
|
#
|
@@ -261,8 +174,8 @@ module Azure::ARM::Network
|
|
261
174
|
#
|
262
175
|
# @param resource_group_name [String] The name of the resource group.
|
263
176
|
# @param circuit_name [String] The name of the circuit.
|
264
|
-
# @param parameters [ExpressRouteCircuit] Parameters supplied to the
|
265
|
-
#
|
177
|
+
# @param parameters [ExpressRouteCircuit] Parameters supplied to the create or
|
178
|
+
# update express route circuit operation.
|
266
179
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
267
180
|
# will be added to the HTTP request.
|
268
181
|
#
|
@@ -288,144 +201,120 @@ module Azure::ARM::Network
|
|
288
201
|
end
|
289
202
|
|
290
203
|
#
|
291
|
-
#
|
204
|
+
# Gets the currently advertised ARP table associated with the express route
|
205
|
+
# circuit in a resource group.
|
292
206
|
#
|
293
207
|
# @param resource_group_name [String] The name of the resource group.
|
294
|
-
# @param circuit_name [String] The name of the circuit.
|
295
|
-
# @param
|
296
|
-
#
|
208
|
+
# @param circuit_name [String] The name of the express route circuit.
|
209
|
+
# @param peering_name [String] The name of the peering.
|
210
|
+
# @param device_path [String] The path of the device.
|
297
211
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
298
212
|
# will be added to the HTTP request.
|
299
213
|
#
|
300
|
-
# @return [
|
214
|
+
# @return [ExpressRouteCircuitsArpTableListResult] operation results.
|
301
215
|
#
|
302
|
-
def
|
303
|
-
response =
|
216
|
+
def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
217
|
+
response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
304
218
|
response.body unless response.nil?
|
305
219
|
end
|
306
220
|
|
307
|
-
#
|
308
|
-
# The Put ExpressRouteCircuit operation creates/updates a ExpressRouteCircuit
|
309
221
|
#
|
310
222
|
# @param resource_group_name [String] The name of the resource group.
|
311
|
-
# @param circuit_name [String] The name of the circuit.
|
312
|
-
# @param
|
313
|
-
#
|
223
|
+
# @param circuit_name [String] The name of the express route circuit.
|
224
|
+
# @param peering_name [String] The name of the peering.
|
225
|
+
# @param device_path [String] The path of the device.
|
314
226
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
315
227
|
# will be added to the HTTP request.
|
316
228
|
#
|
317
|
-
# @return [
|
229
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
230
|
+
# response.
|
318
231
|
#
|
319
|
-
def
|
320
|
-
|
232
|
+
def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
233
|
+
# Send request
|
234
|
+
promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
|
235
|
+
|
236
|
+
promise = promise.then do |response|
|
237
|
+
# Defining deserialization method.
|
238
|
+
deserialize_method = lambda do |parsed_response|
|
239
|
+
result_mapper = ExpressRouteCircuitsArpTableListResult.mapper()
|
240
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
241
|
+
end
|
242
|
+
|
243
|
+
# Waiting for response.
|
244
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
245
|
+
end
|
246
|
+
|
247
|
+
promise
|
321
248
|
end
|
322
249
|
|
323
250
|
#
|
324
|
-
#
|
251
|
+
# Gets the currently advertised routes table associated with the express route
|
252
|
+
# circuit in a resource group.
|
325
253
|
#
|
326
254
|
# @param resource_group_name [String] The name of the resource group.
|
327
|
-
# @param circuit_name [String] The name of the circuit.
|
328
|
-
# @param
|
329
|
-
#
|
330
|
-
# @param [Hash{String => String}] A hash of custom headers that
|
331
|
-
# to the HTTP request.
|
255
|
+
# @param circuit_name [String] The name of the express route circuit.
|
256
|
+
# @param peering_name [String] The name of the peering.
|
257
|
+
# @param device_path [String] The path of the device.
|
258
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
259
|
+
# will be added to the HTTP request.
|
332
260
|
#
|
333
|
-
# @return [
|
261
|
+
# @return [ExpressRouteCircuitsRoutesTableListResult] operation results.
|
334
262
|
#
|
335
|
-
def
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
340
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
341
|
-
|
342
|
-
|
343
|
-
request_headers = {}
|
344
|
-
|
345
|
-
# Set Headers
|
346
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
347
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
348
|
-
|
349
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
350
|
-
|
351
|
-
# Serialize Request
|
352
|
-
request_mapper = ExpressRouteCircuit.mapper()
|
353
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
354
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
355
|
-
|
356
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
|
357
|
-
|
358
|
-
request_url = @base_url || @client.base_url
|
359
|
-
|
360
|
-
options = {
|
361
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
362
|
-
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
|
363
|
-
query_params: {'api-version' => @client.api_version},
|
364
|
-
body: request_content,
|
365
|
-
headers: request_headers.merge(custom_headers || {}),
|
366
|
-
base_url: request_url
|
367
|
-
}
|
368
|
-
promise = @client.make_request_async(:put, path_template, options)
|
263
|
+
def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
264
|
+
response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
265
|
+
response.body unless response.nil?
|
266
|
+
end
|
369
267
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
268
|
+
#
|
269
|
+
# @param resource_group_name [String] The name of the resource group.
|
270
|
+
# @param circuit_name [String] The name of the express route circuit.
|
271
|
+
# @param peering_name [String] The name of the peering.
|
272
|
+
# @param device_path [String] The path of the device.
|
273
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
274
|
+
# will be added to the HTTP request.
|
275
|
+
#
|
276
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
277
|
+
# response.
|
278
|
+
#
|
279
|
+
def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
280
|
+
# Send request
|
281
|
+
promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
|
378
282
|
|
379
|
-
|
380
|
-
#
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
result_mapper = ExpressRouteCircuit.mapper()
|
385
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
386
|
-
rescue Exception => e
|
387
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
388
|
-
end
|
389
|
-
end
|
390
|
-
# Deserialize Response
|
391
|
-
if status_code == 200
|
392
|
-
begin
|
393
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
394
|
-
result_mapper = ExpressRouteCircuit.mapper()
|
395
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
396
|
-
rescue Exception => e
|
397
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
398
|
-
end
|
283
|
+
promise = promise.then do |response|
|
284
|
+
# Defining deserialization method.
|
285
|
+
deserialize_method = lambda do |parsed_response|
|
286
|
+
result_mapper = ExpressRouteCircuitsRoutesTableListResult.mapper()
|
287
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
399
288
|
end
|
400
289
|
|
401
|
-
|
290
|
+
# Waiting for response.
|
291
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
402
292
|
end
|
403
293
|
|
404
|
-
promise
|
294
|
+
promise
|
405
295
|
end
|
406
296
|
|
407
297
|
#
|
408
|
-
#
|
409
|
-
#
|
410
|
-
# group.
|
298
|
+
# Gets the currently advertised routes table summary associated with the
|
299
|
+
# express route circuit in a resource group.
|
411
300
|
#
|
412
301
|
# @param resource_group_name [String] The name of the resource group.
|
413
|
-
# @param circuit_name [String] The name of the circuit.
|
302
|
+
# @param circuit_name [String] The name of the express route circuit.
|
414
303
|
# @param peering_name [String] The name of the peering.
|
415
304
|
# @param device_path [String] The path of the device.
|
416
305
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
417
306
|
# will be added to the HTTP request.
|
418
307
|
#
|
419
|
-
# @return [
|
308
|
+
# @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results.
|
420
309
|
#
|
421
|
-
def
|
422
|
-
response =
|
310
|
+
def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
311
|
+
response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
423
312
|
response.body unless response.nil?
|
424
313
|
end
|
425
314
|
|
426
315
|
#
|
427
316
|
# @param resource_group_name [String] The name of the resource group.
|
428
|
-
# @param circuit_name [String] The name of the circuit.
|
317
|
+
# @param circuit_name [String] The name of the express route circuit.
|
429
318
|
# @param peering_name [String] The name of the peering.
|
430
319
|
# @param device_path [String] The path of the device.
|
431
320
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -434,14 +323,14 @@ module Azure::ARM::Network
|
|
434
323
|
# @return [Concurrent::Promise] promise which provides async access to http
|
435
324
|
# response.
|
436
325
|
#
|
437
|
-
def
|
326
|
+
def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
438
327
|
# Send request
|
439
|
-
promise =
|
328
|
+
promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
|
440
329
|
|
441
330
|
promise = promise.then do |response|
|
442
331
|
# Defining deserialization method.
|
443
332
|
deserialize_method = lambda do |parsed_response|
|
444
|
-
result_mapper =
|
333
|
+
result_mapper = ExpressRouteCircuitsRoutesTableSummaryListResult.mapper()
|
445
334
|
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
446
335
|
end
|
447
336
|
|
@@ -453,61 +342,47 @@ module Azure::ARM::Network
|
|
453
342
|
end
|
454
343
|
|
455
344
|
#
|
456
|
-
#
|
457
|
-
# advertised arp table associated with the ExpressRouteCircuits in a resource
|
458
|
-
# group.
|
345
|
+
# Gets all the stats from an express route circuit in a resource group.
|
459
346
|
#
|
460
347
|
# @param resource_group_name [String] The name of the resource group.
|
461
|
-
# @param circuit_name [String] The name of the circuit.
|
462
|
-
# @param peering_name [String] The name of the peering.
|
463
|
-
# @param device_path [String] The path of the device.
|
348
|
+
# @param circuit_name [String] The name of the express route circuit.
|
464
349
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
465
350
|
# will be added to the HTTP request.
|
466
351
|
#
|
467
|
-
# @return [
|
352
|
+
# @return [ExpressRouteCircuitStats] operation results.
|
468
353
|
#
|
469
|
-
def
|
470
|
-
response =
|
354
|
+
def get_stats(resource_group_name, circuit_name, custom_headers = nil)
|
355
|
+
response = get_stats_async(resource_group_name, circuit_name, custom_headers).value!
|
471
356
|
response.body unless response.nil?
|
472
357
|
end
|
473
358
|
|
474
359
|
#
|
475
|
-
#
|
476
|
-
# advertised arp table associated with the ExpressRouteCircuits in a resource
|
477
|
-
# group.
|
360
|
+
# Gets all the stats from an express route circuit in a resource group.
|
478
361
|
#
|
479
362
|
# @param resource_group_name [String] The name of the resource group.
|
480
|
-
# @param circuit_name [String] The name of the circuit.
|
481
|
-
# @param peering_name [String] The name of the peering.
|
482
|
-
# @param device_path [String] The path of the device.
|
363
|
+
# @param circuit_name [String] The name of the express route circuit.
|
483
364
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
484
365
|
# will be added to the HTTP request.
|
485
366
|
#
|
486
367
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
487
368
|
#
|
488
|
-
def
|
489
|
-
|
369
|
+
def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
|
370
|
+
get_stats_async(resource_group_name, circuit_name, custom_headers).value!
|
490
371
|
end
|
491
372
|
|
492
373
|
#
|
493
|
-
#
|
494
|
-
# advertised arp table associated with the ExpressRouteCircuits in a resource
|
495
|
-
# group.
|
374
|
+
# Gets all the stats from an express route circuit in a resource group.
|
496
375
|
#
|
497
376
|
# @param resource_group_name [String] The name of the resource group.
|
498
|
-
# @param circuit_name [String] The name of the circuit.
|
499
|
-
# @param peering_name [String] The name of the peering.
|
500
|
-
# @param device_path [String] The path of the device.
|
377
|
+
# @param circuit_name [String] The name of the express route circuit.
|
501
378
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
502
379
|
# to the HTTP request.
|
503
380
|
#
|
504
381
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
505
382
|
#
|
506
|
-
def
|
383
|
+
def get_stats_async(resource_group_name, circuit_name, custom_headers = nil)
|
507
384
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
508
385
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
509
|
-
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
510
|
-
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
511
386
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
512
387
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
513
388
|
|
@@ -517,24 +392,24 @@ module Azure::ARM::Network
|
|
517
392
|
# Set Headers
|
518
393
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
519
394
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
520
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/
|
395
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats'
|
521
396
|
|
522
397
|
request_url = @base_url || @client.base_url
|
523
398
|
|
524
399
|
options = {
|
525
400
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
526
|
-
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'
|
401
|
+
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
|
527
402
|
query_params: {'api-version' => @client.api_version},
|
528
403
|
headers: request_headers.merge(custom_headers || {}),
|
529
404
|
base_url: request_url
|
530
405
|
}
|
531
|
-
promise = @client.make_request_async(:
|
406
|
+
promise = @client.make_request_async(:get, path_template, options)
|
532
407
|
|
533
408
|
promise = promise.then do |result|
|
534
409
|
http_response = result.response
|
535
410
|
status_code = http_response.status
|
536
411
|
response_content = http_response.body
|
537
|
-
unless status_code == 200
|
412
|
+
unless status_code == 200
|
538
413
|
error_model = JSON.load(response_content)
|
539
414
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
540
415
|
end
|
@@ -544,7 +419,7 @@ module Azure::ARM::Network
|
|
544
419
|
if status_code == 200
|
545
420
|
begin
|
546
421
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
547
|
-
result_mapper =
|
422
|
+
result_mapper = ExpressRouteCircuitStats.mapper()
|
548
423
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
549
424
|
rescue Exception => e
|
550
425
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -558,109 +433,138 @@ module Azure::ARM::Network
|
|
558
433
|
end
|
559
434
|
|
560
435
|
#
|
561
|
-
#
|
562
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
563
|
-
# in a resource group.
|
436
|
+
# Gets all stats from an express route circuit in a resource group.
|
564
437
|
#
|
565
438
|
# @param resource_group_name [String] The name of the resource group.
|
566
|
-
# @param circuit_name [String] The name of the circuit.
|
439
|
+
# @param circuit_name [String] The name of the express route circuit.
|
567
440
|
# @param peering_name [String] The name of the peering.
|
568
|
-
# @param device_path [String] The path of the device.
|
569
441
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
570
442
|
# will be added to the HTTP request.
|
571
443
|
#
|
572
|
-
# @return [
|
444
|
+
# @return [ExpressRouteCircuitStats] operation results.
|
573
445
|
#
|
574
|
-
def
|
575
|
-
response =
|
446
|
+
def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
447
|
+
response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
576
448
|
response.body unless response.nil?
|
577
449
|
end
|
578
450
|
|
451
|
+
#
|
452
|
+
# Gets all stats from an express route circuit in a resource group.
|
579
453
|
#
|
580
454
|
# @param resource_group_name [String] The name of the resource group.
|
581
|
-
# @param circuit_name [String] The name of the circuit.
|
455
|
+
# @param circuit_name [String] The name of the express route circuit.
|
582
456
|
# @param peering_name [String] The name of the peering.
|
583
|
-
# @param device_path [String] The path of the device.
|
584
457
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
585
458
|
# will be added to the HTTP request.
|
586
459
|
#
|
587
|
-
# @return [
|
588
|
-
# response.
|
460
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
589
461
|
#
|
590
|
-
def
|
591
|
-
|
592
|
-
|
462
|
+
def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
463
|
+
get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
464
|
+
end
|
593
465
|
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
466
|
+
#
|
467
|
+
# Gets all stats from an express route circuit in a resource group.
|
468
|
+
#
|
469
|
+
# @param resource_group_name [String] The name of the resource group.
|
470
|
+
# @param circuit_name [String] The name of the express route circuit.
|
471
|
+
# @param peering_name [String] The name of the peering.
|
472
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
473
|
+
# to the HTTP request.
|
474
|
+
#
|
475
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
476
|
+
#
|
477
|
+
def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
478
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
479
|
+
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
480
|
+
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
481
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
482
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
483
|
+
|
484
|
+
|
485
|
+
request_headers = {}
|
486
|
+
|
487
|
+
# Set Headers
|
488
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
489
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
490
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats'
|
491
|
+
|
492
|
+
request_url = @base_url || @client.base_url
|
493
|
+
|
494
|
+
options = {
|
495
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
496
|
+
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'subscriptionId' => @client.subscription_id},
|
497
|
+
query_params: {'api-version' => @client.api_version},
|
498
|
+
headers: request_headers.merge(custom_headers || {}),
|
499
|
+
base_url: request_url
|
500
|
+
}
|
501
|
+
promise = @client.make_request_async(:get, path_template, options)
|
502
|
+
|
503
|
+
promise = promise.then do |result|
|
504
|
+
http_response = result.response
|
505
|
+
status_code = http_response.status
|
506
|
+
response_content = http_response.body
|
507
|
+
unless status_code == 200
|
508
|
+
error_model = JSON.load(response_content)
|
509
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
599
510
|
end
|
600
511
|
|
601
|
-
|
602
|
-
|
512
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
513
|
+
# Deserialize Response
|
514
|
+
if status_code == 200
|
515
|
+
begin
|
516
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
517
|
+
result_mapper = ExpressRouteCircuitStats.mapper()
|
518
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
519
|
+
rescue Exception => e
|
520
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
result
|
603
525
|
end
|
604
526
|
|
605
|
-
promise
|
527
|
+
promise.execute
|
606
528
|
end
|
607
529
|
|
608
530
|
#
|
609
|
-
#
|
610
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
611
|
-
# in a resource group.
|
531
|
+
# Gets all the express route circuits in a resource group.
|
612
532
|
#
|
613
533
|
# @param resource_group_name [String] The name of the resource group.
|
614
|
-
# @param circuit_name [String] The name of the circuit.
|
615
|
-
# @param peering_name [String] The name of the peering.
|
616
|
-
# @param device_path [String] The path of the device.
|
617
534
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
618
535
|
# will be added to the HTTP request.
|
619
536
|
#
|
620
|
-
# @return [
|
537
|
+
# @return [Array<ExpressRouteCircuit>] operation results.
|
621
538
|
#
|
622
|
-
def
|
623
|
-
|
624
|
-
|
539
|
+
def list(resource_group_name, custom_headers = nil)
|
540
|
+
first_page = list_as_lazy(resource_group_name, custom_headers)
|
541
|
+
first_page.get_all_items
|
625
542
|
end
|
626
543
|
|
627
544
|
#
|
628
|
-
#
|
629
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
630
|
-
# in a resource group.
|
545
|
+
# Gets all the express route circuits in a resource group.
|
631
546
|
#
|
632
547
|
# @param resource_group_name [String] The name of the resource group.
|
633
|
-
# @param circuit_name [String] The name of the circuit.
|
634
|
-
# @param peering_name [String] The name of the peering.
|
635
|
-
# @param device_path [String] The path of the device.
|
636
548
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
637
549
|
# will be added to the HTTP request.
|
638
550
|
#
|
639
551
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
640
552
|
#
|
641
|
-
def
|
642
|
-
|
553
|
+
def list_with_http_info(resource_group_name, custom_headers = nil)
|
554
|
+
list_async(resource_group_name, custom_headers).value!
|
643
555
|
end
|
644
556
|
|
645
557
|
#
|
646
|
-
#
|
647
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
648
|
-
# in a resource group.
|
558
|
+
# Gets all the express route circuits in a resource group.
|
649
559
|
#
|
650
560
|
# @param resource_group_name [String] The name of the resource group.
|
651
|
-
# @param circuit_name [String] The name of the circuit.
|
652
|
-
# @param peering_name [String] The name of the peering.
|
653
|
-
# @param device_path [String] The path of the device.
|
654
561
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
655
562
|
# to the HTTP request.
|
656
563
|
#
|
657
564
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
658
565
|
#
|
659
|
-
def
|
566
|
+
def list_async(resource_group_name, custom_headers = nil)
|
660
567
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
661
|
-
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
662
|
-
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
663
|
-
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
664
568
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
665
569
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
666
570
|
|
@@ -670,24 +574,24 @@ module Azure::ARM::Network
|
|
670
574
|
# Set Headers
|
671
575
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
672
576
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
673
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits
|
577
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits'
|
674
578
|
|
675
579
|
request_url = @base_url || @client.base_url
|
676
580
|
|
677
581
|
options = {
|
678
582
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
679
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
583
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
680
584
|
query_params: {'api-version' => @client.api_version},
|
681
585
|
headers: request_headers.merge(custom_headers || {}),
|
682
586
|
base_url: request_url
|
683
587
|
}
|
684
|
-
promise = @client.make_request_async(:
|
588
|
+
promise = @client.make_request_async(:get, path_template, options)
|
685
589
|
|
686
590
|
promise = promise.then do |result|
|
687
591
|
http_response = result.response
|
688
592
|
status_code = http_response.status
|
689
593
|
response_content = http_response.body
|
690
|
-
unless status_code == 200
|
594
|
+
unless status_code == 200
|
691
595
|
error_model = JSON.load(response_content)
|
692
596
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
693
597
|
end
|
@@ -697,7 +601,7 @@ module Azure::ARM::Network
|
|
697
601
|
if status_code == 200
|
698
602
|
begin
|
699
603
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
700
|
-
result_mapper =
|
604
|
+
result_mapper = ExpressRouteCircuitListResult.mapper()
|
701
605
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
702
606
|
rescue Exception => e
|
703
607
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -711,109 +615,129 @@ module Azure::ARM::Network
|
|
711
615
|
end
|
712
616
|
|
713
617
|
#
|
714
|
-
#
|
715
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
716
|
-
# in a resource group.
|
618
|
+
# Gets all the express route circuits in a subscription.
|
717
619
|
#
|
718
|
-
# @param resource_group_name [String] The name of the resource group.
|
719
|
-
# @param circuit_name [String] The name of the circuit.
|
720
|
-
# @param peering_name [String] The name of the peering.
|
721
|
-
# @param device_path [String] The path of the device.
|
722
620
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
723
621
|
# will be added to the HTTP request.
|
724
622
|
#
|
725
|
-
# @return [
|
623
|
+
# @return [Array<ExpressRouteCircuit>] operation results.
|
726
624
|
#
|
727
|
-
def
|
728
|
-
|
729
|
-
|
625
|
+
def list_all(custom_headers = nil)
|
626
|
+
first_page = list_all_as_lazy(custom_headers)
|
627
|
+
first_page.get_all_items
|
730
628
|
end
|
731
629
|
|
732
630
|
#
|
733
|
-
#
|
734
|
-
#
|
735
|
-
# @param peering_name [String] The name of the peering.
|
736
|
-
# @param device_path [String] The path of the device.
|
631
|
+
# Gets all the express route circuits in a subscription.
|
632
|
+
#
|
737
633
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
738
634
|
# will be added to the HTTP request.
|
739
635
|
#
|
740
|
-
# @return [
|
741
|
-
# response.
|
636
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
742
637
|
#
|
743
|
-
def
|
744
|
-
|
745
|
-
|
638
|
+
def list_all_with_http_info(custom_headers = nil)
|
639
|
+
list_all_async(custom_headers).value!
|
640
|
+
end
|
746
641
|
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
642
|
+
#
|
643
|
+
# Gets all the express route circuits in a subscription.
|
644
|
+
#
|
645
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
646
|
+
# to the HTTP request.
|
647
|
+
#
|
648
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
649
|
+
#
|
650
|
+
def list_all_async(custom_headers = nil)
|
651
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
652
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
653
|
+
|
654
|
+
|
655
|
+
request_headers = {}
|
656
|
+
|
657
|
+
# Set Headers
|
658
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
659
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
660
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits'
|
661
|
+
|
662
|
+
request_url = @base_url || @client.base_url
|
663
|
+
|
664
|
+
options = {
|
665
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
666
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
667
|
+
query_params: {'api-version' => @client.api_version},
|
668
|
+
headers: request_headers.merge(custom_headers || {}),
|
669
|
+
base_url: request_url
|
670
|
+
}
|
671
|
+
promise = @client.make_request_async(:get, path_template, options)
|
672
|
+
|
673
|
+
promise = promise.then do |result|
|
674
|
+
http_response = result.response
|
675
|
+
status_code = http_response.status
|
676
|
+
response_content = http_response.body
|
677
|
+
unless status_code == 200
|
678
|
+
error_model = JSON.load(response_content)
|
679
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
680
|
+
end
|
681
|
+
|
682
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
683
|
+
# Deserialize Response
|
684
|
+
if status_code == 200
|
685
|
+
begin
|
686
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
687
|
+
result_mapper = ExpressRouteCircuitListResult.mapper()
|
688
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
689
|
+
rescue Exception => e
|
690
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
691
|
+
end
|
752
692
|
end
|
753
693
|
|
754
|
-
|
755
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
694
|
+
result
|
756
695
|
end
|
757
696
|
|
758
|
-
promise
|
697
|
+
promise.execute
|
759
698
|
end
|
760
699
|
|
761
700
|
#
|
762
|
-
#
|
763
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
764
|
-
# in a resource group.
|
701
|
+
# Deletes the specified express route circuit.
|
765
702
|
#
|
766
703
|
# @param resource_group_name [String] The name of the resource group.
|
767
|
-
# @param circuit_name [String] The name of the circuit.
|
768
|
-
# @param peering_name [String] The name of the peering.
|
769
|
-
# @param device_path [String] The path of the device.
|
704
|
+
# @param circuit_name [String] The name of the express route circuit.
|
770
705
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
771
706
|
# will be added to the HTTP request.
|
772
707
|
#
|
773
|
-
# @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results.
|
774
708
|
#
|
775
|
-
def
|
776
|
-
response =
|
777
|
-
|
709
|
+
def begin_delete(resource_group_name, circuit_name, custom_headers = nil)
|
710
|
+
response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value!
|
711
|
+
nil
|
778
712
|
end
|
779
713
|
|
780
714
|
#
|
781
|
-
#
|
782
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
783
|
-
# in a resource group.
|
715
|
+
# Deletes the specified express route circuit.
|
784
716
|
#
|
785
717
|
# @param resource_group_name [String] The name of the resource group.
|
786
|
-
# @param circuit_name [String] The name of the circuit.
|
787
|
-
# @param peering_name [String] The name of the peering.
|
788
|
-
# @param device_path [String] The path of the device.
|
718
|
+
# @param circuit_name [String] The name of the express route circuit.
|
789
719
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
790
720
|
# will be added to the HTTP request.
|
791
721
|
#
|
792
722
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
793
723
|
#
|
794
|
-
def
|
795
|
-
|
724
|
+
def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
|
725
|
+
begin_delete_async(resource_group_name, circuit_name, custom_headers).value!
|
796
726
|
end
|
797
727
|
|
798
728
|
#
|
799
|
-
#
|
800
|
-
# currently advertised routes table associated with the ExpressRouteCircuits
|
801
|
-
# in a resource group.
|
729
|
+
# Deletes the specified express route circuit.
|
802
730
|
#
|
803
731
|
# @param resource_group_name [String] The name of the resource group.
|
804
|
-
# @param circuit_name [String] The name of the circuit.
|
805
|
-
# @param peering_name [String] The name of the peering.
|
806
|
-
# @param device_path [String] The path of the device.
|
732
|
+
# @param circuit_name [String] The name of the express route circuit.
|
807
733
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
808
734
|
# to the HTTP request.
|
809
735
|
#
|
810
736
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
811
737
|
#
|
812
|
-
def
|
738
|
+
def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil)
|
813
739
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
814
740
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
815
|
-
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
816
|
-
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
817
741
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
818
742
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
819
743
|
|
@@ -823,39 +747,29 @@ module Azure::ARM::Network
|
|
823
747
|
# Set Headers
|
824
748
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
825
749
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
826
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}
|
750
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
|
827
751
|
|
828
752
|
request_url = @base_url || @client.base_url
|
829
753
|
|
830
754
|
options = {
|
831
755
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
832
|
-
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'
|
756
|
+
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
|
833
757
|
query_params: {'api-version' => @client.api_version},
|
834
758
|
headers: request_headers.merge(custom_headers || {}),
|
835
759
|
base_url: request_url
|
836
760
|
}
|
837
|
-
promise = @client.make_request_async(:
|
761
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
838
762
|
|
839
763
|
promise = promise.then do |result|
|
840
764
|
http_response = result.response
|
841
765
|
status_code = http_response.status
|
842
766
|
response_content = http_response.body
|
843
|
-
unless status_code ==
|
767
|
+
unless status_code == 204 || status_code == 202 || status_code == 200
|
844
768
|
error_model = JSON.load(response_content)
|
845
769
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
846
770
|
end
|
847
771
|
|
848
772
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
849
|
-
# Deserialize Response
|
850
|
-
if status_code == 200
|
851
|
-
begin
|
852
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
853
|
-
result_mapper = ExpressRouteCircuitsRoutesTableSummaryListResult.mapper()
|
854
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
855
|
-
rescue Exception => e
|
856
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
857
|
-
end
|
858
|
-
end
|
859
773
|
|
860
774
|
result
|
861
775
|
end
|
@@ -864,50 +778,54 @@ module Azure::ARM::Network
|
|
864
778
|
end
|
865
779
|
|
866
780
|
#
|
867
|
-
#
|
868
|
-
# ExpressRouteCircuits in a resource group.
|
781
|
+
# Creates or updates an express route circuit.
|
869
782
|
#
|
870
783
|
# @param resource_group_name [String] The name of the resource group.
|
871
784
|
# @param circuit_name [String] The name of the circuit.
|
785
|
+
# @param parameters [ExpressRouteCircuit] Parameters supplied to the create or
|
786
|
+
# update express route circuit operation.
|
872
787
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
873
788
|
# will be added to the HTTP request.
|
874
789
|
#
|
875
|
-
# @return [
|
790
|
+
# @return [ExpressRouteCircuit] operation results.
|
876
791
|
#
|
877
|
-
def
|
878
|
-
response =
|
792
|
+
def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil)
|
793
|
+
response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value!
|
879
794
|
response.body unless response.nil?
|
880
795
|
end
|
881
796
|
|
882
797
|
#
|
883
|
-
#
|
884
|
-
# ExpressRouteCircuits in a resource group.
|
798
|
+
# Creates or updates an express route circuit.
|
885
799
|
#
|
886
800
|
# @param resource_group_name [String] The name of the resource group.
|
887
801
|
# @param circuit_name [String] The name of the circuit.
|
802
|
+
# @param parameters [ExpressRouteCircuit] Parameters supplied to the create or
|
803
|
+
# update express route circuit operation.
|
888
804
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
889
805
|
# will be added to the HTTP request.
|
890
806
|
#
|
891
807
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
892
808
|
#
|
893
|
-
def
|
894
|
-
|
809
|
+
def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil)
|
810
|
+
begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value!
|
895
811
|
end
|
896
812
|
|
897
813
|
#
|
898
|
-
#
|
899
|
-
# ExpressRouteCircuits in a resource group.
|
814
|
+
# Creates or updates an express route circuit.
|
900
815
|
#
|
901
816
|
# @param resource_group_name [String] The name of the resource group.
|
902
817
|
# @param circuit_name [String] The name of the circuit.
|
818
|
+
# @param parameters [ExpressRouteCircuit] Parameters supplied to the create or
|
819
|
+
# update express route circuit operation.
|
903
820
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
904
821
|
# to the HTTP request.
|
905
822
|
#
|
906
823
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
907
824
|
#
|
908
|
-
def
|
825
|
+
def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil)
|
909
826
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
910
827
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
828
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
911
829
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
912
830
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
913
831
|
|
@@ -917,7 +835,15 @@ module Azure::ARM::Network
|
|
917
835
|
# Set Headers
|
918
836
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
919
837
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
920
|
-
|
838
|
+
|
839
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
840
|
+
|
841
|
+
# Serialize Request
|
842
|
+
request_mapper = ExpressRouteCircuit.mapper()
|
843
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
844
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
845
|
+
|
846
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
|
921
847
|
|
922
848
|
request_url = @base_url || @client.base_url
|
923
849
|
|
@@ -925,26 +851,37 @@ module Azure::ARM::Network
|
|
925
851
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
926
852
|
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'subscriptionId' => @client.subscription_id},
|
927
853
|
query_params: {'api-version' => @client.api_version},
|
854
|
+
body: request_content,
|
928
855
|
headers: request_headers.merge(custom_headers || {}),
|
929
856
|
base_url: request_url
|
930
857
|
}
|
931
|
-
promise = @client.make_request_async(:
|
858
|
+
promise = @client.make_request_async(:put, path_template, options)
|
932
859
|
|
933
860
|
promise = promise.then do |result|
|
934
861
|
http_response = result.response
|
935
862
|
status_code = http_response.status
|
936
863
|
response_content = http_response.body
|
937
|
-
unless status_code == 200
|
864
|
+
unless status_code == 201 || status_code == 200
|
938
865
|
error_model = JSON.load(response_content)
|
939
866
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
940
867
|
end
|
941
868
|
|
942
869
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
943
870
|
# Deserialize Response
|
871
|
+
if status_code == 201
|
872
|
+
begin
|
873
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
874
|
+
result_mapper = ExpressRouteCircuit.mapper()
|
875
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
876
|
+
rescue Exception => e
|
877
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
878
|
+
end
|
879
|
+
end
|
880
|
+
# Deserialize Response
|
944
881
|
if status_code == 200
|
945
882
|
begin
|
946
883
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
947
|
-
result_mapper =
|
884
|
+
result_mapper = ExpressRouteCircuit.mapper()
|
948
885
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
949
886
|
rescue Exception => e
|
950
887
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -958,54 +895,58 @@ module Azure::ARM::Network
|
|
958
895
|
end
|
959
896
|
|
960
897
|
#
|
961
|
-
#
|
962
|
-
#
|
898
|
+
# Gets the currently advertised ARP table associated with the express route
|
899
|
+
# circuit in a resource group.
|
963
900
|
#
|
964
901
|
# @param resource_group_name [String] The name of the resource group.
|
965
|
-
# @param circuit_name [String] The name of the circuit.
|
902
|
+
# @param circuit_name [String] The name of the express route circuit.
|
966
903
|
# @param peering_name [String] The name of the peering.
|
904
|
+
# @param device_path [String] The path of the device.
|
967
905
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
968
906
|
# will be added to the HTTP request.
|
969
907
|
#
|
970
|
-
# @return [
|
908
|
+
# @return [ExpressRouteCircuitsArpTableListResult] operation results.
|
971
909
|
#
|
972
|
-
def
|
973
|
-
response =
|
910
|
+
def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
911
|
+
response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
974
912
|
response.body unless response.nil?
|
975
913
|
end
|
976
914
|
|
977
915
|
#
|
978
|
-
#
|
979
|
-
#
|
916
|
+
# Gets the currently advertised ARP table associated with the express route
|
917
|
+
# circuit in a resource group.
|
980
918
|
#
|
981
919
|
# @param resource_group_name [String] The name of the resource group.
|
982
|
-
# @param circuit_name [String] The name of the circuit.
|
920
|
+
# @param circuit_name [String] The name of the express route circuit.
|
983
921
|
# @param peering_name [String] The name of the peering.
|
922
|
+
# @param device_path [String] The path of the device.
|
984
923
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
985
924
|
# will be added to the HTTP request.
|
986
925
|
#
|
987
926
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
988
927
|
#
|
989
|
-
def
|
990
|
-
|
928
|
+
def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
929
|
+
begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
991
930
|
end
|
992
931
|
|
993
932
|
#
|
994
|
-
#
|
995
|
-
#
|
933
|
+
# Gets the currently advertised ARP table associated with the express route
|
934
|
+
# circuit in a resource group.
|
996
935
|
#
|
997
936
|
# @param resource_group_name [String] The name of the resource group.
|
998
|
-
# @param circuit_name [String] The name of the circuit.
|
937
|
+
# @param circuit_name [String] The name of the express route circuit.
|
999
938
|
# @param peering_name [String] The name of the peering.
|
939
|
+
# @param device_path [String] The path of the device.
|
1000
940
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1001
941
|
# to the HTTP request.
|
1002
942
|
#
|
1003
943
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1004
944
|
#
|
1005
|
-
def
|
945
|
+
def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1006
946
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1007
947
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
1008
948
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
949
|
+
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
1009
950
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1010
951
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1011
952
|
|
@@ -1015,24 +956,24 @@ module Azure::ARM::Network
|
|
1015
956
|
# Set Headers
|
1016
957
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1017
958
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1018
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/
|
959
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}'
|
1019
960
|
|
1020
961
|
request_url = @base_url || @client.base_url
|
1021
962
|
|
1022
963
|
options = {
|
1023
964
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1024
|
-
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'subscriptionId' => @client.subscription_id},
|
965
|
+
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
|
1025
966
|
query_params: {'api-version' => @client.api_version},
|
1026
967
|
headers: request_headers.merge(custom_headers || {}),
|
1027
968
|
base_url: request_url
|
1028
969
|
}
|
1029
|
-
promise = @client.make_request_async(:
|
970
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1030
971
|
|
1031
972
|
promise = promise.then do |result|
|
1032
973
|
http_response = result.response
|
1033
974
|
status_code = http_response.status
|
1034
975
|
response_content = http_response.body
|
1035
|
-
unless status_code == 200
|
976
|
+
unless status_code == 200 || status_code == 202
|
1036
977
|
error_model = JSON.load(response_content)
|
1037
978
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1038
979
|
end
|
@@ -1042,7 +983,7 @@ module Azure::ARM::Network
|
|
1042
983
|
if status_code == 200
|
1043
984
|
begin
|
1044
985
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1045
|
-
result_mapper =
|
986
|
+
result_mapper = ExpressRouteCircuitsArpTableListResult.mapper()
|
1046
987
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1047
988
|
rescue Exception => e
|
1048
989
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1056,68 +997,58 @@ module Azure::ARM::Network
|
|
1056
997
|
end
|
1057
998
|
|
1058
999
|
#
|
1059
|
-
#
|
1060
|
-
#
|
1061
|
-
#
|
1062
|
-
# @param resource_group_name [String] The name of the resource group.
|
1063
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1064
|
-
# will be added to the HTTP request.
|
1065
|
-
#
|
1066
|
-
# @return [ExpressRouteCircuitListResult] which provide lazy access to pages
|
1067
|
-
# of the response.
|
1068
|
-
#
|
1069
|
-
def list_as_lazy(resource_group_name, custom_headers = nil)
|
1070
|
-
response = list_async(resource_group_name, custom_headers).value!
|
1071
|
-
unless response.nil?
|
1072
|
-
page = response.body
|
1073
|
-
page.next_method = Proc.new do |next_page_link|
|
1074
|
-
list_next_async(next_page_link, custom_headers)
|
1075
|
-
end
|
1076
|
-
page
|
1077
|
-
end
|
1078
|
-
end
|
1079
|
-
|
1080
|
-
#
|
1081
|
-
# The List ExpressRouteCircuit operation retrieves all the
|
1082
|
-
# ExpressRouteCircuits in a resource group.
|
1000
|
+
# Gets the currently advertised routes table associated with the express route
|
1001
|
+
# circuit in a resource group.
|
1083
1002
|
#
|
1084
1003
|
# @param resource_group_name [String] The name of the resource group.
|
1004
|
+
# @param circuit_name [String] The name of the express route circuit.
|
1005
|
+
# @param peering_name [String] The name of the peering.
|
1006
|
+
# @param device_path [String] The path of the device.
|
1085
1007
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1086
1008
|
# will be added to the HTTP request.
|
1087
1009
|
#
|
1088
|
-
# @return [
|
1010
|
+
# @return [ExpressRouteCircuitsRoutesTableListResult] operation results.
|
1089
1011
|
#
|
1090
|
-
def
|
1091
|
-
|
1092
|
-
|
1012
|
+
def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1013
|
+
response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
1014
|
+
response.body unless response.nil?
|
1093
1015
|
end
|
1094
1016
|
|
1095
1017
|
#
|
1096
|
-
#
|
1097
|
-
#
|
1018
|
+
# Gets the currently advertised routes table associated with the express route
|
1019
|
+
# circuit in a resource group.
|
1098
1020
|
#
|
1099
1021
|
# @param resource_group_name [String] The name of the resource group.
|
1022
|
+
# @param circuit_name [String] The name of the express route circuit.
|
1023
|
+
# @param peering_name [String] The name of the peering.
|
1024
|
+
# @param device_path [String] The path of the device.
|
1100
1025
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1101
1026
|
# will be added to the HTTP request.
|
1102
1027
|
#
|
1103
1028
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1104
1029
|
#
|
1105
|
-
def
|
1106
|
-
|
1030
|
+
def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1031
|
+
begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
1107
1032
|
end
|
1108
1033
|
|
1109
1034
|
#
|
1110
|
-
#
|
1111
|
-
#
|
1035
|
+
# Gets the currently advertised routes table associated with the express route
|
1036
|
+
# circuit in a resource group.
|
1112
1037
|
#
|
1113
1038
|
# @param resource_group_name [String] The name of the resource group.
|
1039
|
+
# @param circuit_name [String] The name of the express route circuit.
|
1040
|
+
# @param peering_name [String] The name of the peering.
|
1041
|
+
# @param device_path [String] The path of the device.
|
1114
1042
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1115
1043
|
# to the HTTP request.
|
1116
1044
|
#
|
1117
1045
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1118
1046
|
#
|
1119
|
-
def
|
1047
|
+
def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1120
1048
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1049
|
+
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
1050
|
+
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
1051
|
+
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
1121
1052
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1122
1053
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1123
1054
|
|
@@ -1127,24 +1058,24 @@ module Azure::ARM::Network
|
|
1127
1058
|
# Set Headers
|
1128
1059
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1129
1060
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1130
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits'
|
1061
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}'
|
1131
1062
|
|
1132
1063
|
request_url = @base_url || @client.base_url
|
1133
1064
|
|
1134
1065
|
options = {
|
1135
1066
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1136
|
-
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
1067
|
+
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
|
1137
1068
|
query_params: {'api-version' => @client.api_version},
|
1138
1069
|
headers: request_headers.merge(custom_headers || {}),
|
1139
1070
|
base_url: request_url
|
1140
1071
|
}
|
1141
|
-
promise = @client.make_request_async(:
|
1072
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1142
1073
|
|
1143
1074
|
promise = promise.then do |result|
|
1144
1075
|
http_response = result.response
|
1145
1076
|
status_code = http_response.status
|
1146
1077
|
response_content = http_response.body
|
1147
|
-
unless status_code == 200
|
1078
|
+
unless status_code == 200 || status_code == 202
|
1148
1079
|
error_model = JSON.load(response_content)
|
1149
1080
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1150
1081
|
end
|
@@ -1154,7 +1085,7 @@ module Azure::ARM::Network
|
|
1154
1085
|
if status_code == 200
|
1155
1086
|
begin
|
1156
1087
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1157
|
-
result_mapper =
|
1088
|
+
result_mapper = ExpressRouteCircuitsRoutesTableListResult.mapper()
|
1158
1089
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1159
1090
|
rescue Exception => e
|
1160
1091
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1168,63 +1099,58 @@ module Azure::ARM::Network
|
|
1168
1099
|
end
|
1169
1100
|
|
1170
1101
|
#
|
1171
|
-
#
|
1172
|
-
#
|
1173
|
-
#
|
1174
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1175
|
-
# will be added to the HTTP request.
|
1176
|
-
#
|
1177
|
-
# @return [ExpressRouteCircuitListResult] which provide lazy access to pages
|
1178
|
-
# of the response.
|
1179
|
-
#
|
1180
|
-
def list_all_as_lazy(custom_headers = nil)
|
1181
|
-
response = list_all_async(custom_headers).value!
|
1182
|
-
unless response.nil?
|
1183
|
-
page = response.body
|
1184
|
-
page.next_method = Proc.new do |next_page_link|
|
1185
|
-
list_all_next_async(next_page_link, custom_headers)
|
1186
|
-
end
|
1187
|
-
page
|
1188
|
-
end
|
1189
|
-
end
|
1190
|
-
|
1191
|
-
#
|
1192
|
-
# The List ExpressRouteCircuit operation retrieves all the
|
1193
|
-
# ExpressRouteCircuits in a subscription.
|
1102
|
+
# Gets the currently advertised routes table summary associated with the
|
1103
|
+
# express route circuit in a resource group.
|
1194
1104
|
#
|
1105
|
+
# @param resource_group_name [String] The name of the resource group.
|
1106
|
+
# @param circuit_name [String] The name of the express route circuit.
|
1107
|
+
# @param peering_name [String] The name of the peering.
|
1108
|
+
# @param device_path [String] The path of the device.
|
1195
1109
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1196
1110
|
# will be added to the HTTP request.
|
1197
1111
|
#
|
1198
|
-
# @return [
|
1112
|
+
# @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results.
|
1199
1113
|
#
|
1200
|
-
def
|
1201
|
-
|
1202
|
-
|
1114
|
+
def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1115
|
+
response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
1116
|
+
response.body unless response.nil?
|
1203
1117
|
end
|
1204
1118
|
|
1205
1119
|
#
|
1206
|
-
#
|
1207
|
-
#
|
1120
|
+
# Gets the currently advertised routes table summary associated with the
|
1121
|
+
# express route circuit in a resource group.
|
1208
1122
|
#
|
1123
|
+
# @param resource_group_name [String] The name of the resource group.
|
1124
|
+
# @param circuit_name [String] The name of the express route circuit.
|
1125
|
+
# @param peering_name [String] The name of the peering.
|
1126
|
+
# @param device_path [String] The path of the device.
|
1209
1127
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1210
1128
|
# will be added to the HTTP request.
|
1211
1129
|
#
|
1212
1130
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1213
1131
|
#
|
1214
|
-
def
|
1215
|
-
|
1132
|
+
def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1133
|
+
begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
1216
1134
|
end
|
1217
1135
|
|
1218
1136
|
#
|
1219
|
-
#
|
1220
|
-
#
|
1137
|
+
# Gets the currently advertised routes table summary associated with the
|
1138
|
+
# express route circuit in a resource group.
|
1221
1139
|
#
|
1140
|
+
# @param resource_group_name [String] The name of the resource group.
|
1141
|
+
# @param circuit_name [String] The name of the express route circuit.
|
1142
|
+
# @param peering_name [String] The name of the peering.
|
1143
|
+
# @param device_path [String] The path of the device.
|
1222
1144
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1223
1145
|
# to the HTTP request.
|
1224
1146
|
#
|
1225
1147
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1226
1148
|
#
|
1227
|
-
def
|
1149
|
+
def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
1150
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1151
|
+
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
1152
|
+
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
1153
|
+
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
1228
1154
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1229
1155
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1230
1156
|
|
@@ -1234,24 +1160,24 @@ module Azure::ARM::Network
|
|
1234
1160
|
# Set Headers
|
1235
1161
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1236
1162
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1237
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits'
|
1163
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}'
|
1238
1164
|
|
1239
1165
|
request_url = @base_url || @client.base_url
|
1240
1166
|
|
1241
1167
|
options = {
|
1242
1168
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1243
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
1169
|
+
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
|
1244
1170
|
query_params: {'api-version' => @client.api_version},
|
1245
1171
|
headers: request_headers.merge(custom_headers || {}),
|
1246
1172
|
base_url: request_url
|
1247
1173
|
}
|
1248
|
-
promise = @client.make_request_async(:
|
1174
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1249
1175
|
|
1250
1176
|
promise = promise.then do |result|
|
1251
1177
|
http_response = result.response
|
1252
1178
|
status_code = http_response.status
|
1253
1179
|
response_content = http_response.body
|
1254
|
-
unless status_code == 200
|
1180
|
+
unless status_code == 200 || status_code == 202
|
1255
1181
|
error_model = JSON.load(response_content)
|
1256
1182
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1257
1183
|
end
|
@@ -1261,7 +1187,7 @@ module Azure::ARM::Network
|
|
1261
1187
|
if status_code == 200
|
1262
1188
|
begin
|
1263
1189
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1264
|
-
result_mapper =
|
1190
|
+
result_mapper = ExpressRouteCircuitsRoutesTableSummaryListResult.mapper()
|
1265
1191
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1266
1192
|
rescue Exception => e
|
1267
1193
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1275,11 +1201,10 @@ module Azure::ARM::Network
|
|
1275
1201
|
end
|
1276
1202
|
|
1277
1203
|
#
|
1278
|
-
#
|
1279
|
-
# ExpressRouteCircuits in a resource group.
|
1204
|
+
# Gets all the express route circuits in a resource group.
|
1280
1205
|
#
|
1281
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1282
|
-
#
|
1206
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1207
|
+
# to List operation.
|
1283
1208
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1284
1209
|
# will be added to the HTTP request.
|
1285
1210
|
#
|
@@ -1291,11 +1216,10 @@ module Azure::ARM::Network
|
|
1291
1216
|
end
|
1292
1217
|
|
1293
1218
|
#
|
1294
|
-
#
|
1295
|
-
# ExpressRouteCircuits in a resource group.
|
1219
|
+
# Gets all the express route circuits in a resource group.
|
1296
1220
|
#
|
1297
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1298
|
-
#
|
1221
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1222
|
+
# to List operation.
|
1299
1223
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1300
1224
|
# will be added to the HTTP request.
|
1301
1225
|
#
|
@@ -1306,11 +1230,10 @@ module Azure::ARM::Network
|
|
1306
1230
|
end
|
1307
1231
|
|
1308
1232
|
#
|
1309
|
-
#
|
1310
|
-
# ExpressRouteCircuits in a resource group.
|
1233
|
+
# Gets all the express route circuits in a resource group.
|
1311
1234
|
#
|
1312
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1313
|
-
#
|
1235
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1236
|
+
# to List operation.
|
1314
1237
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1315
1238
|
# to the HTTP request.
|
1316
1239
|
#
|
@@ -1365,11 +1288,10 @@ module Azure::ARM::Network
|
|
1365
1288
|
end
|
1366
1289
|
|
1367
1290
|
#
|
1368
|
-
#
|
1369
|
-
# ExpressRouteCircuits in a subscription.
|
1291
|
+
# Gets all the express route circuits in a subscription.
|
1370
1292
|
#
|
1371
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1372
|
-
#
|
1293
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1294
|
+
# to List operation.
|
1373
1295
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1374
1296
|
# will be added to the HTTP request.
|
1375
1297
|
#
|
@@ -1381,11 +1303,10 @@ module Azure::ARM::Network
|
|
1381
1303
|
end
|
1382
1304
|
|
1383
1305
|
#
|
1384
|
-
#
|
1385
|
-
# ExpressRouteCircuits in a subscription.
|
1306
|
+
# Gets all the express route circuits in a subscription.
|
1386
1307
|
#
|
1387
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1388
|
-
#
|
1308
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1309
|
+
# to List operation.
|
1389
1310
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1390
1311
|
# will be added to the HTTP request.
|
1391
1312
|
#
|
@@ -1396,11 +1317,10 @@ module Azure::ARM::Network
|
|
1396
1317
|
end
|
1397
1318
|
|
1398
1319
|
#
|
1399
|
-
#
|
1400
|
-
# ExpressRouteCircuits in a subscription.
|
1320
|
+
# Gets all the express route circuits in a subscription.
|
1401
1321
|
#
|
1402
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1403
|
-
#
|
1322
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1323
|
+
# to List operation.
|
1404
1324
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1405
1325
|
# to the HTTP request.
|
1406
1326
|
#
|
@@ -1454,5 +1374,46 @@ module Azure::ARM::Network
|
|
1454
1374
|
promise.execute
|
1455
1375
|
end
|
1456
1376
|
|
1377
|
+
#
|
1378
|
+
# Gets all the express route circuits in a resource group.
|
1379
|
+
#
|
1380
|
+
# @param resource_group_name [String] The name of the resource group.
|
1381
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1382
|
+
# will be added to the HTTP request.
|
1383
|
+
#
|
1384
|
+
# @return [ExpressRouteCircuitListResult] which provide lazy access to pages of
|
1385
|
+
# the response.
|
1386
|
+
#
|
1387
|
+
def list_as_lazy(resource_group_name, custom_headers = nil)
|
1388
|
+
response = list_async(resource_group_name, custom_headers).value!
|
1389
|
+
unless response.nil?
|
1390
|
+
page = response.body
|
1391
|
+
page.next_method = Proc.new do |next_page_link|
|
1392
|
+
list_next_async(next_page_link, custom_headers)
|
1393
|
+
end
|
1394
|
+
page
|
1395
|
+
end
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
#
|
1399
|
+
# Gets all the express route circuits in a subscription.
|
1400
|
+
#
|
1401
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1402
|
+
# will be added to the HTTP request.
|
1403
|
+
#
|
1404
|
+
# @return [ExpressRouteCircuitListResult] which provide lazy access to pages of
|
1405
|
+
# the response.
|
1406
|
+
#
|
1407
|
+
def list_all_as_lazy(custom_headers = nil)
|
1408
|
+
response = list_all_async(custom_headers).value!
|
1409
|
+
unless response.nil?
|
1410
|
+
page = response.body
|
1411
|
+
page.next_method = Proc.new do |next_page_link|
|
1412
|
+
list_all_next_async(next_page_link, custom_headers)
|
1413
|
+
end
|
1414
|
+
page
|
1415
|
+
end
|
1416
|
+
end
|
1417
|
+
|
1457
1418
|
end
|
1458
1419
|
end
|