azure_mgmt_network 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +1 -26
- data/azure_mgmt_network.gemspec +2 -2
- data/lib/azure_mgmt_network.rb +33 -31
- data/lib/azure_mgmt_network/application_gateways.rb +345 -55
- data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +207 -31
- data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +205 -31
- data/lib/azure_mgmt_network/express_route_circuits.rb +633 -168
- data/lib/azure_mgmt_network/express_route_service_providers.rb +73 -11
- data/lib/azure_mgmt_network/load_balancers.rb +267 -41
- data/lib/azure_mgmt_network/local_network_gateways.rb +205 -31
- data/lib/azure_mgmt_network/models/address_space.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +5 -5
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_probe.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_sku.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +1 -1
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/authorization_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/authorization_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/authorization_use_status.rb +1 -1
- data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +1 -1
- data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -1
- data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/bgp_settings.rb +1 -1
- data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
- data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -1
- data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +1 -1
- data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -1
- data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -1
- data/lib/azure_mgmt_network/models/error.rb +1 -1
- data/lib/azure_mgmt_network/models/error_details.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +20 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +10 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +36 -32
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +97 -0
- data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +31 -11
- data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/{express_route_circuits_stats_list_result.rb → express_route_circuits_routes_table_summary_list_result.rb} +11 -8
- data/lib/azure_mgmt_network/models/express_route_service_provider.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/ipallocation_method.rb +1 -1
- data/lib/azure_mgmt_network/models/ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/ipversion.rb +16 -0
- data/lib/azure_mgmt_network/models/load_balancer.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +11 -4
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +59 -14
- data/lib/azure_mgmt_network/models/network_interface_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/network_operation_status.rb +1 -1
- data/lib/azure_mgmt_network/models/network_security_group.rb +1 -1
- data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/probe.rb +1 -1
- data/lib/azure_mgmt_network/models/probe_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/processor_architecture.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +15 -1
- data/lib/azure_mgmt_network/models/route.rb +1 -1
- data/lib/azure_mgmt_network/models/route_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
- data/lib/azure_mgmt_network/models/route_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/route_table.rb +1 -1
- data/lib/azure_mgmt_network/models/route_table_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/route_table_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
- data/lib/azure_mgmt_network/models/subnet.rb +1 -1
- data/lib/azure_mgmt_network/models/subnet_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/subnet_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
- data/lib/azure_mgmt_network/models/usage.rb +1 -1
- data/lib/azure_mgmt_network/models/usage_name.rb +1 -1
- data/lib/azure_mgmt_network/models/usages_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +1 -1
- data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +1 -1
- data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
- data/lib/azure_mgmt_network/module_definition.rb +1 -1
- data/lib/azure_mgmt_network/network_interfaces.rb +471 -66
- data/lib/azure_mgmt_network/network_management_client.rb +40 -7
- data/lib/azure_mgmt_network/network_security_groups.rb +277 -41
- data/lib/azure_mgmt_network/public_ipaddresses.rb +269 -41
- data/lib/azure_mgmt_network/route_tables.rb +261 -41
- data/lib/azure_mgmt_network/routes.rb +201 -31
- data/lib/azure_mgmt_network/security_rules.rb +213 -31
- data/lib/azure_mgmt_network/subnets.rb +199 -31
- data/lib/azure_mgmt_network/usages.rb +71 -11
- data/lib/azure_mgmt_network/version.rb +2 -2
- data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +357 -52
- data/lib/azure_mgmt_network/virtual_network_gateways.rb +303 -45
- data/lib/azure_mgmt_network/virtual_networks.rb +261 -41
- metadata +34 -25
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -37,7 +37,7 @@ module Azure::ARM::Network
|
|
37
37
|
#
|
38
38
|
def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
39
39
|
# Send request
|
40
|
-
promise =
|
40
|
+
promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers)
|
41
41
|
|
42
42
|
promise = promise.then do |response|
|
43
43
|
# Defining deserialization method.
|
@@ -45,7 +45,7 @@ module Azure::ARM::Network
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# Waiting for response.
|
48
|
-
@client.
|
48
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
49
49
|
end
|
50
50
|
|
51
51
|
promise
|
@@ -58,13 +58,44 @@ module Azure::ARM::Network
|
|
58
58
|
# @param resource_group_name [String] The name of the resource group.
|
59
59
|
# @param circuit_name [String] The name of the express route circuit.
|
60
60
|
# @param authorization_name [String] The name of the authorization.
|
61
|
-
# @param [Hash{String => String}]
|
62
|
-
#
|
61
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
62
|
+
# will be added to the HTTP request.
|
63
63
|
#
|
64
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
65
|
-
# response.
|
66
64
|
#
|
67
65
|
def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
66
|
+
response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value!
|
67
|
+
nil
|
68
|
+
end
|
69
|
+
|
70
|
+
#
|
71
|
+
# The delete authorization operation deletes the specified authorization from
|
72
|
+
# the specified ExpressRouteCircuit.
|
73
|
+
#
|
74
|
+
# @param resource_group_name [String] The name of the resource group.
|
75
|
+
# @param circuit_name [String] The name of the express route circuit.
|
76
|
+
# @param authorization_name [String] The name of the authorization.
|
77
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
78
|
+
# will be added to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
81
|
+
#
|
82
|
+
def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
83
|
+
begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value!
|
84
|
+
end
|
85
|
+
|
86
|
+
#
|
87
|
+
# The delete authorization operation deletes the specified authorization from
|
88
|
+
# the specified ExpressRouteCircuit.
|
89
|
+
#
|
90
|
+
# @param resource_group_name [String] The name of the resource group.
|
91
|
+
# @param circuit_name [String] The name of the express route circuit.
|
92
|
+
# @param authorization_name [String] The name of the authorization.
|
93
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
94
|
+
# to the HTTP request.
|
95
|
+
#
|
96
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
97
|
+
#
|
98
|
+
def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
68
99
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
69
100
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
70
101
|
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
|
@@ -82,7 +113,10 @@ module Azure::ARM::Network
|
|
82
113
|
query_params: {'api-version' => @client.api_version},
|
83
114
|
headers: request_headers.merge(custom_headers || {})
|
84
115
|
}
|
85
|
-
|
116
|
+
|
117
|
+
request_url = @base_url || @client.base_url
|
118
|
+
|
119
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
86
120
|
promise = request.run_promise do |req|
|
87
121
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
88
122
|
end
|
@@ -112,13 +146,45 @@ module Azure::ARM::Network
|
|
112
146
|
# @param resource_group_name [String] The name of the resource group.
|
113
147
|
# @param circuit_name [String] The name of the express route circuit.
|
114
148
|
# @param authorization_name [String] The name of the authorization.
|
115
|
-
# @param [Hash{String => String}]
|
116
|
-
#
|
149
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
|
+
# will be added to the HTTP request.
|
117
151
|
#
|
118
|
-
# @return [
|
119
|
-
# response.
|
152
|
+
# @return [ExpressRouteCircuitAuthorization] operation results.
|
120
153
|
#
|
121
154
|
def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
155
|
+
response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value!
|
156
|
+
response.body unless response.nil?
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# The GET authorization operation retrieves the specified authorization from
|
161
|
+
# the specified ExpressRouteCircuit.
|
162
|
+
#
|
163
|
+
# @param resource_group_name [String] The name of the resource group.
|
164
|
+
# @param circuit_name [String] The name of the express route circuit.
|
165
|
+
# @param authorization_name [String] The name of the authorization.
|
166
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
167
|
+
# will be added to the HTTP request.
|
168
|
+
#
|
169
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
170
|
+
#
|
171
|
+
def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
172
|
+
get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value!
|
173
|
+
end
|
174
|
+
|
175
|
+
#
|
176
|
+
# The GET authorization operation retrieves the specified authorization from
|
177
|
+
# the specified ExpressRouteCircuit.
|
178
|
+
#
|
179
|
+
# @param resource_group_name [String] The name of the resource group.
|
180
|
+
# @param circuit_name [String] The name of the express route circuit.
|
181
|
+
# @param authorization_name [String] The name of the authorization.
|
182
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
183
|
+
# to the HTTP request.
|
184
|
+
#
|
185
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
186
|
+
#
|
187
|
+
def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
122
188
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
123
189
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
124
190
|
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
|
@@ -136,7 +202,10 @@ module Azure::ARM::Network
|
|
136
202
|
query_params: {'api-version' => @client.api_version},
|
137
203
|
headers: request_headers.merge(custom_headers || {})
|
138
204
|
}
|
139
|
-
|
205
|
+
|
206
|
+
request_url = @base_url || @client.base_url
|
207
|
+
|
208
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
140
209
|
promise = request.run_promise do |req|
|
141
210
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
142
211
|
end
|
@@ -193,7 +262,7 @@ module Azure::ARM::Network
|
|
193
262
|
#
|
194
263
|
def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil)
|
195
264
|
# Send request
|
196
|
-
promise =
|
265
|
+
promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers)
|
197
266
|
|
198
267
|
promise = promise.then do |response|
|
199
268
|
# Defining deserialization method.
|
@@ -204,7 +273,7 @@ module Azure::ARM::Network
|
|
204
273
|
end
|
205
274
|
|
206
275
|
# Waiting for response.
|
207
|
-
@client.
|
276
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
208
277
|
end
|
209
278
|
|
210
279
|
promise
|
@@ -220,13 +289,51 @@ module Azure::ARM::Network
|
|
220
289
|
# @param authorization_parameters [ExpressRouteCircuitAuthorization]
|
221
290
|
# Parameters supplied to the create/update ExpressRouteCircuitAuthorization
|
222
291
|
# operation
|
223
|
-
# @param [Hash{String => String}]
|
224
|
-
#
|
292
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
293
|
+
# will be added to the HTTP request.
|
225
294
|
#
|
226
|
-
# @return [
|
227
|
-
# response.
|
295
|
+
# @return [ExpressRouteCircuitAuthorization] operation results.
|
228
296
|
#
|
229
297
|
def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil)
|
298
|
+
response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value!
|
299
|
+
response.body unless response.nil?
|
300
|
+
end
|
301
|
+
|
302
|
+
#
|
303
|
+
# The Put Authorization operation creates/updates an authorization in
|
304
|
+
# thespecified ExpressRouteCircuits
|
305
|
+
#
|
306
|
+
# @param resource_group_name [String] The name of the resource group.
|
307
|
+
# @param circuit_name [String] The name of the express route circuit.
|
308
|
+
# @param authorization_name [String] The name of the authorization.
|
309
|
+
# @param authorization_parameters [ExpressRouteCircuitAuthorization]
|
310
|
+
# Parameters supplied to the create/update ExpressRouteCircuitAuthorization
|
311
|
+
# operation
|
312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
|
+
# will be added to the HTTP request.
|
314
|
+
#
|
315
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
316
|
+
#
|
317
|
+
def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil)
|
318
|
+
begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value!
|
319
|
+
end
|
320
|
+
|
321
|
+
#
|
322
|
+
# The Put Authorization operation creates/updates an authorization in
|
323
|
+
# thespecified ExpressRouteCircuits
|
324
|
+
#
|
325
|
+
# @param resource_group_name [String] The name of the resource group.
|
326
|
+
# @param circuit_name [String] The name of the express route circuit.
|
327
|
+
# @param authorization_name [String] The name of the authorization.
|
328
|
+
# @param authorization_parameters [ExpressRouteCircuitAuthorization]
|
329
|
+
# Parameters supplied to the create/update ExpressRouteCircuitAuthorization
|
330
|
+
# operation
|
331
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
332
|
+
# to the HTTP request.
|
333
|
+
#
|
334
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
335
|
+
#
|
336
|
+
def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil)
|
230
337
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
231
338
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
232
339
|
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
|
@@ -245,7 +352,7 @@ module Azure::ARM::Network
|
|
245
352
|
unless authorization_parameters.nil?
|
246
353
|
authorization_parameters = ExpressRouteCircuitAuthorization.serialize_object(authorization_parameters)
|
247
354
|
end
|
248
|
-
request_content = JSON.generate(authorization_parameters, quirks_mode: true)
|
355
|
+
request_content = authorization_parameters != nil ? JSON.generate(authorization_parameters, quirks_mode: true) : nil
|
249
356
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
|
250
357
|
options = {
|
251
358
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -254,7 +361,10 @@ module Azure::ARM::Network
|
|
254
361
|
body: request_content,
|
255
362
|
headers: request_headers.merge(custom_headers || {})
|
256
363
|
}
|
257
|
-
|
364
|
+
|
365
|
+
request_url = @base_url || @client.base_url
|
366
|
+
|
367
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
258
368
|
promise = request.run_promise do |req|
|
259
369
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
260
370
|
end
|
@@ -307,13 +417,43 @@ module Azure::ARM::Network
|
|
307
417
|
#
|
308
418
|
# @param resource_group_name [String] The name of the resource group.
|
309
419
|
# @param circuit_name [String] The name of the curcuit.
|
310
|
-
# @param [Hash{String => String}]
|
311
|
-
#
|
420
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
421
|
+
# will be added to the HTTP request.
|
312
422
|
#
|
313
|
-
# @return [
|
314
|
-
# response.
|
423
|
+
# @return [AuthorizationListResult] operation results.
|
315
424
|
#
|
316
425
|
def list(resource_group_name, circuit_name, custom_headers = nil)
|
426
|
+
response = list_async(resource_group_name, circuit_name, custom_headers).value!
|
427
|
+
response.body unless response.nil?
|
428
|
+
end
|
429
|
+
|
430
|
+
#
|
431
|
+
# The List authorization operation retrieves all the authorizations in an
|
432
|
+
# ExpressRouteCircuit.
|
433
|
+
#
|
434
|
+
# @param resource_group_name [String] The name of the resource group.
|
435
|
+
# @param circuit_name [String] The name of the curcuit.
|
436
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
437
|
+
# will be added to the HTTP request.
|
438
|
+
#
|
439
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
440
|
+
#
|
441
|
+
def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
|
442
|
+
list_async(resource_group_name, circuit_name, custom_headers).value!
|
443
|
+
end
|
444
|
+
|
445
|
+
#
|
446
|
+
# The List authorization operation retrieves all the authorizations in an
|
447
|
+
# ExpressRouteCircuit.
|
448
|
+
#
|
449
|
+
# @param resource_group_name [String] The name of the resource group.
|
450
|
+
# @param circuit_name [String] The name of the curcuit.
|
451
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
452
|
+
# to the HTTP request.
|
453
|
+
#
|
454
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
455
|
+
#
|
456
|
+
def list_async(resource_group_name, circuit_name, custom_headers = nil)
|
317
457
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
318
458
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
319
459
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -330,7 +470,10 @@ module Azure::ARM::Network
|
|
330
470
|
query_params: {'api-version' => @client.api_version},
|
331
471
|
headers: request_headers.merge(custom_headers || {})
|
332
472
|
}
|
333
|
-
|
473
|
+
|
474
|
+
request_url = @base_url || @client.base_url
|
475
|
+
|
476
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
334
477
|
promise = request.run_promise do |req|
|
335
478
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
336
479
|
end
|
@@ -371,13 +514,43 @@ module Azure::ARM::Network
|
|
371
514
|
#
|
372
515
|
# @param next_page_link [String] The NextLink from the previous successful
|
373
516
|
# call to List operation.
|
374
|
-
# @param [Hash{String => String}]
|
375
|
-
#
|
517
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
518
|
+
# will be added to the HTTP request.
|
376
519
|
#
|
377
|
-
# @return [
|
378
|
-
# response.
|
520
|
+
# @return [AuthorizationListResult] operation results.
|
379
521
|
#
|
380
522
|
def list_next(next_page_link, custom_headers = nil)
|
523
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
524
|
+
response.body unless response.nil?
|
525
|
+
end
|
526
|
+
|
527
|
+
#
|
528
|
+
# The List authorization operation retrieves all the authorizations in an
|
529
|
+
# ExpressRouteCircuit.
|
530
|
+
#
|
531
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
532
|
+
# call to List operation.
|
533
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
534
|
+
# will be added to the HTTP request.
|
535
|
+
#
|
536
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
537
|
+
#
|
538
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
539
|
+
list_next_async(next_page_link, custom_headers).value!
|
540
|
+
end
|
541
|
+
|
542
|
+
#
|
543
|
+
# The List authorization operation retrieves all the authorizations in an
|
544
|
+
# ExpressRouteCircuit.
|
545
|
+
#
|
546
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
547
|
+
# call to List operation.
|
548
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
549
|
+
# to the HTTP request.
|
550
|
+
#
|
551
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
552
|
+
#
|
553
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
381
554
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
382
555
|
request_headers = {}
|
383
556
|
|
@@ -390,7 +563,10 @@ module Azure::ARM::Network
|
|
390
563
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
391
564
|
headers: request_headers.merge(custom_headers || {})
|
392
565
|
}
|
393
|
-
|
566
|
+
|
567
|
+
request_url = @base_url || @client.base_url
|
568
|
+
|
569
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
394
570
|
promise = request.run_promise do |req|
|
395
571
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
396
572
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -37,7 +37,7 @@ module Azure::ARM::Network
|
|
37
37
|
#
|
38
38
|
def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
39
39
|
# Send request
|
40
|
-
promise =
|
40
|
+
promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers)
|
41
41
|
|
42
42
|
promise = promise.then do |response|
|
43
43
|
# Defining deserialization method.
|
@@ -45,7 +45,7 @@ module Azure::ARM::Network
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# Waiting for response.
|
48
|
-
@client.
|
48
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
49
49
|
end
|
50
50
|
|
51
51
|
promise
|
@@ -58,13 +58,44 @@ module Azure::ARM::Network
|
|
58
58
|
# @param resource_group_name [String] The name of the resource group.
|
59
59
|
# @param circuit_name [String] The name of the express route circuit.
|
60
60
|
# @param peering_name [String] The name of the peering.
|
61
|
-
# @param [Hash{String => String}]
|
62
|
-
#
|
61
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
62
|
+
# will be added to the HTTP request.
|
63
63
|
#
|
64
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
65
|
-
# response.
|
66
64
|
#
|
67
65
|
def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
66
|
+
response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
67
|
+
nil
|
68
|
+
end
|
69
|
+
|
70
|
+
#
|
71
|
+
# The delete peering operation deletes the specified peering from the
|
72
|
+
# ExpressRouteCircuit.
|
73
|
+
#
|
74
|
+
# @param resource_group_name [String] The name of the resource group.
|
75
|
+
# @param circuit_name [String] The name of the express route circuit.
|
76
|
+
# @param peering_name [String] The name of the peering.
|
77
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
78
|
+
# will be added to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
81
|
+
#
|
82
|
+
def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
83
|
+
begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
84
|
+
end
|
85
|
+
|
86
|
+
#
|
87
|
+
# The delete peering operation deletes the specified peering from the
|
88
|
+
# ExpressRouteCircuit.
|
89
|
+
#
|
90
|
+
# @param resource_group_name [String] The name of the resource group.
|
91
|
+
# @param circuit_name [String] The name of the express route circuit.
|
92
|
+
# @param peering_name [String] The name of the peering.
|
93
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
94
|
+
# to the HTTP request.
|
95
|
+
#
|
96
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
97
|
+
#
|
98
|
+
def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
68
99
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
69
100
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
70
101
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
@@ -82,7 +113,10 @@ module Azure::ARM::Network
|
|
82
113
|
query_params: {'api-version' => @client.api_version},
|
83
114
|
headers: request_headers.merge(custom_headers || {})
|
84
115
|
}
|
85
|
-
|
116
|
+
|
117
|
+
request_url = @base_url || @client.base_url
|
118
|
+
|
119
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
86
120
|
promise = request.run_promise do |req|
|
87
121
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
88
122
|
end
|
@@ -112,13 +146,45 @@ module Azure::ARM::Network
|
|
112
146
|
# @param resource_group_name [String] The name of the resource group.
|
113
147
|
# @param circuit_name [String] The name of the express route circuit.
|
114
148
|
# @param peering_name [String] The name of the peering.
|
115
|
-
# @param [Hash{String => String}]
|
116
|
-
#
|
149
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
|
+
# will be added to the HTTP request.
|
117
151
|
#
|
118
|
-
# @return [
|
119
|
-
# response.
|
152
|
+
# @return [ExpressRouteCircuitPeering] operation results.
|
120
153
|
#
|
121
154
|
def get(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
155
|
+
response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
156
|
+
response.body unless response.nil?
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# The GET peering operation retrieves the specified authorization from the
|
161
|
+
# ExpressRouteCircuit.
|
162
|
+
#
|
163
|
+
# @param resource_group_name [String] The name of the resource group.
|
164
|
+
# @param circuit_name [String] The name of the express route circuit.
|
165
|
+
# @param peering_name [String] The name of the peering.
|
166
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
167
|
+
# will be added to the HTTP request.
|
168
|
+
#
|
169
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
170
|
+
#
|
171
|
+
def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
172
|
+
get_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
173
|
+
end
|
174
|
+
|
175
|
+
#
|
176
|
+
# The GET peering operation retrieves the specified authorization from the
|
177
|
+
# ExpressRouteCircuit.
|
178
|
+
#
|
179
|
+
# @param resource_group_name [String] The name of the resource group.
|
180
|
+
# @param circuit_name [String] The name of the express route circuit.
|
181
|
+
# @param peering_name [String] The name of the peering.
|
182
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
183
|
+
# to the HTTP request.
|
184
|
+
#
|
185
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
186
|
+
#
|
187
|
+
def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
122
188
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
123
189
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
124
190
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
@@ -136,7 +202,10 @@ module Azure::ARM::Network
|
|
136
202
|
query_params: {'api-version' => @client.api_version},
|
137
203
|
headers: request_headers.merge(custom_headers || {})
|
138
204
|
}
|
139
|
-
|
205
|
+
|
206
|
+
request_url = @base_url || @client.base_url
|
207
|
+
|
208
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
140
209
|
promise = request.run_promise do |req|
|
141
210
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
142
211
|
end
|
@@ -192,7 +261,7 @@ module Azure::ARM::Network
|
|
192
261
|
#
|
193
262
|
def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil)
|
194
263
|
# Send request
|
195
|
-
promise =
|
264
|
+
promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers)
|
196
265
|
|
197
266
|
promise = promise.then do |response|
|
198
267
|
# Defining deserialization method.
|
@@ -203,7 +272,7 @@ module Azure::ARM::Network
|
|
203
272
|
end
|
204
273
|
|
205
274
|
# Waiting for response.
|
206
|
-
@client.
|
275
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
207
276
|
end
|
208
277
|
|
209
278
|
promise
|
@@ -218,13 +287,49 @@ module Azure::ARM::Network
|
|
218
287
|
# @param peering_name [String] The name of the peering.
|
219
288
|
# @param peering_parameters [ExpressRouteCircuitPeering] Parameters supplied
|
220
289
|
# to the create/update ExpressRouteCircuit Peering operation
|
221
|
-
# @param [Hash{String => String}]
|
222
|
-
#
|
290
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
291
|
+
# will be added to the HTTP request.
|
223
292
|
#
|
224
|
-
# @return [
|
225
|
-
# response.
|
293
|
+
# @return [ExpressRouteCircuitPeering] operation results.
|
226
294
|
#
|
227
295
|
def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil)
|
296
|
+
response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value!
|
297
|
+
response.body unless response.nil?
|
298
|
+
end
|
299
|
+
|
300
|
+
#
|
301
|
+
# The Put Pering operation creates/updates an peering in the specified
|
302
|
+
# ExpressRouteCircuits
|
303
|
+
#
|
304
|
+
# @param resource_group_name [String] The name of the resource group.
|
305
|
+
# @param circuit_name [String] The name of the express route circuit.
|
306
|
+
# @param peering_name [String] The name of the peering.
|
307
|
+
# @param peering_parameters [ExpressRouteCircuitPeering] Parameters supplied
|
308
|
+
# to the create/update ExpressRouteCircuit Peering operation
|
309
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
310
|
+
# will be added to the HTTP request.
|
311
|
+
#
|
312
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
313
|
+
#
|
314
|
+
def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil)
|
315
|
+
begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value!
|
316
|
+
end
|
317
|
+
|
318
|
+
#
|
319
|
+
# The Put Pering operation creates/updates an peering in the specified
|
320
|
+
# ExpressRouteCircuits
|
321
|
+
#
|
322
|
+
# @param resource_group_name [String] The name of the resource group.
|
323
|
+
# @param circuit_name [String] The name of the express route circuit.
|
324
|
+
# @param peering_name [String] The name of the peering.
|
325
|
+
# @param peering_parameters [ExpressRouteCircuitPeering] Parameters supplied
|
326
|
+
# to the create/update ExpressRouteCircuit Peering operation
|
327
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
328
|
+
# to the HTTP request.
|
329
|
+
#
|
330
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
331
|
+
#
|
332
|
+
def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil)
|
228
333
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
229
334
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
230
335
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
@@ -243,7 +348,7 @@ module Azure::ARM::Network
|
|
243
348
|
unless peering_parameters.nil?
|
244
349
|
peering_parameters = ExpressRouteCircuitPeering.serialize_object(peering_parameters)
|
245
350
|
end
|
246
|
-
request_content = JSON.generate(peering_parameters, quirks_mode: true)
|
351
|
+
request_content = peering_parameters != nil ? JSON.generate(peering_parameters, quirks_mode: true) : nil
|
247
352
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
|
248
353
|
options = {
|
249
354
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -252,7 +357,10 @@ module Azure::ARM::Network
|
|
252
357
|
body: request_content,
|
253
358
|
headers: request_headers.merge(custom_headers || {})
|
254
359
|
}
|
255
|
-
|
360
|
+
|
361
|
+
request_url = @base_url || @client.base_url
|
362
|
+
|
363
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
256
364
|
promise = request.run_promise do |req|
|
257
365
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
258
366
|
end
|
@@ -305,13 +413,43 @@ module Azure::ARM::Network
|
|
305
413
|
#
|
306
414
|
# @param resource_group_name [String] The name of the resource group.
|
307
415
|
# @param circuit_name [String] The name of the curcuit.
|
308
|
-
# @param [Hash{String => String}]
|
309
|
-
#
|
416
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
417
|
+
# will be added to the HTTP request.
|
310
418
|
#
|
311
|
-
# @return [
|
312
|
-
# response.
|
419
|
+
# @return [ExpressRouteCircuitPeeringListResult] operation results.
|
313
420
|
#
|
314
421
|
def list(resource_group_name, circuit_name, custom_headers = nil)
|
422
|
+
response = list_async(resource_group_name, circuit_name, custom_headers).value!
|
423
|
+
response.body unless response.nil?
|
424
|
+
end
|
425
|
+
|
426
|
+
#
|
427
|
+
# The List peering operation retrieves all the peerings in an
|
428
|
+
# ExpressRouteCircuit.
|
429
|
+
#
|
430
|
+
# @param resource_group_name [String] The name of the resource group.
|
431
|
+
# @param circuit_name [String] The name of the curcuit.
|
432
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
433
|
+
# will be added to the HTTP request.
|
434
|
+
#
|
435
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
436
|
+
#
|
437
|
+
def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
|
438
|
+
list_async(resource_group_name, circuit_name, custom_headers).value!
|
439
|
+
end
|
440
|
+
|
441
|
+
#
|
442
|
+
# The List peering operation retrieves all the peerings in an
|
443
|
+
# ExpressRouteCircuit.
|
444
|
+
#
|
445
|
+
# @param resource_group_name [String] The name of the resource group.
|
446
|
+
# @param circuit_name [String] The name of the curcuit.
|
447
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
448
|
+
# to the HTTP request.
|
449
|
+
#
|
450
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
451
|
+
#
|
452
|
+
def list_async(resource_group_name, circuit_name, custom_headers = nil)
|
315
453
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
316
454
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
317
455
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -328,7 +466,10 @@ module Azure::ARM::Network
|
|
328
466
|
query_params: {'api-version' => @client.api_version},
|
329
467
|
headers: request_headers.merge(custom_headers || {})
|
330
468
|
}
|
331
|
-
|
469
|
+
|
470
|
+
request_url = @base_url || @client.base_url
|
471
|
+
|
472
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
332
473
|
promise = request.run_promise do |req|
|
333
474
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
334
475
|
end
|
@@ -369,13 +510,43 @@ module Azure::ARM::Network
|
|
369
510
|
#
|
370
511
|
# @param next_page_link [String] The NextLink from the previous successful
|
371
512
|
# call to List operation.
|
372
|
-
# @param [Hash{String => String}]
|
373
|
-
#
|
513
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
514
|
+
# will be added to the HTTP request.
|
374
515
|
#
|
375
|
-
# @return [
|
376
|
-
# response.
|
516
|
+
# @return [ExpressRouteCircuitPeeringListResult] operation results.
|
377
517
|
#
|
378
518
|
def list_next(next_page_link, custom_headers = nil)
|
519
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
520
|
+
response.body unless response.nil?
|
521
|
+
end
|
522
|
+
|
523
|
+
#
|
524
|
+
# The List peering operation retrieves all the peerings in an
|
525
|
+
# ExpressRouteCircuit.
|
526
|
+
#
|
527
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
528
|
+
# call to List operation.
|
529
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
530
|
+
# will be added to the HTTP request.
|
531
|
+
#
|
532
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
533
|
+
#
|
534
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
535
|
+
list_next_async(next_page_link, custom_headers).value!
|
536
|
+
end
|
537
|
+
|
538
|
+
#
|
539
|
+
# The List peering operation retrieves all the peerings in an
|
540
|
+
# ExpressRouteCircuit.
|
541
|
+
#
|
542
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
543
|
+
# call to List operation.
|
544
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
545
|
+
# to the HTTP request.
|
546
|
+
#
|
547
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
548
|
+
#
|
549
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
379
550
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
380
551
|
request_headers = {}
|
381
552
|
|
@@ -388,7 +559,10 @@ module Azure::ARM::Network
|
|
388
559
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
389
560
|
headers: request_headers.merge(custom_headers || {})
|
390
561
|
}
|
391
|
-
|
562
|
+
|
563
|
+
request_url = @base_url || @client.base_url
|
564
|
+
|
565
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
392
566
|
promise = request.run_promise do |req|
|
393
567
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
394
568
|
end
|