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
|
|
@@ -35,7 +35,7 @@ module Azure::ARM::Network
|
|
35
35
|
#
|
36
36
|
def delete(resource_group_name, route_table_name, custom_headers = nil)
|
37
37
|
# Send request
|
38
|
-
promise =
|
38
|
+
promise = begin_delete_async(resource_group_name, route_table_name, custom_headers)
|
39
39
|
|
40
40
|
promise = promise.then do |response|
|
41
41
|
# Defining deserialization method.
|
@@ -43,7 +43,7 @@ module Azure::ARM::Network
|
|
43
43
|
end
|
44
44
|
|
45
45
|
# Waiting for response.
|
46
|
-
@client.
|
46
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
47
47
|
end
|
48
48
|
|
49
49
|
promise
|
@@ -54,13 +54,40 @@ module Azure::ARM::Network
|
|
54
54
|
#
|
55
55
|
# @param resource_group_name [String] The name of the resource group.
|
56
56
|
# @param route_table_name [String] The name of the route table.
|
57
|
-
# @param [Hash{String => String}]
|
58
|
-
#
|
57
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
|
+
# will be added to the HTTP request.
|
59
59
|
#
|
60
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
61
|
-
# response.
|
62
60
|
#
|
63
61
|
def begin_delete(resource_group_name, route_table_name, custom_headers = nil)
|
62
|
+
response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value!
|
63
|
+
nil
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# The Delete RouteTable operation deletes the specifed Route Table
|
68
|
+
#
|
69
|
+
# @param resource_group_name [String] The name of the resource group.
|
70
|
+
# @param route_table_name [String] The name of the route table.
|
71
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
72
|
+
# will be added to the HTTP request.
|
73
|
+
#
|
74
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
75
|
+
#
|
76
|
+
def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil)
|
77
|
+
begin_delete_async(resource_group_name, route_table_name, custom_headers).value!
|
78
|
+
end
|
79
|
+
|
80
|
+
#
|
81
|
+
# The Delete RouteTable operation deletes the specifed Route Table
|
82
|
+
#
|
83
|
+
# @param resource_group_name [String] The name of the resource group.
|
84
|
+
# @param route_table_name [String] The name of the route table.
|
85
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
86
|
+
# to the HTTP request.
|
87
|
+
#
|
88
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
89
|
+
#
|
90
|
+
def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil)
|
64
91
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
65
92
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
66
93
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -77,7 +104,10 @@ module Azure::ARM::Network
|
|
77
104
|
query_params: {'api-version' => @client.api_version},
|
78
105
|
headers: request_headers.merge(custom_headers || {})
|
79
106
|
}
|
80
|
-
|
107
|
+
|
108
|
+
request_url = @base_url || @client.base_url
|
109
|
+
|
110
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
81
111
|
promise = request.run_promise do |req|
|
82
112
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
83
113
|
end
|
@@ -107,13 +137,45 @@ module Azure::ARM::Network
|
|
107
137
|
# @param resource_group_name [String] The name of the resource group.
|
108
138
|
# @param route_table_name [String] The name of the route table.
|
109
139
|
# @param expand [String] expand references resources.
|
110
|
-
# @param [Hash{String => String}]
|
111
|
-
#
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
112
142
|
#
|
113
|
-
# @return [
|
114
|
-
# response.
|
143
|
+
# @return [RouteTable] operation results.
|
115
144
|
#
|
116
145
|
def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil)
|
146
|
+
response = get_async(resource_group_name, route_table_name, expand, custom_headers).value!
|
147
|
+
response.body unless response.nil?
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# The Get RouteTables operation retrieves information about the specified
|
152
|
+
# route table.
|
153
|
+
#
|
154
|
+
# @param resource_group_name [String] The name of the resource group.
|
155
|
+
# @param route_table_name [String] The name of the route table.
|
156
|
+
# @param expand [String] expand references resources.
|
157
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
158
|
+
# will be added to the HTTP request.
|
159
|
+
#
|
160
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
161
|
+
#
|
162
|
+
def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil)
|
163
|
+
get_async(resource_group_name, route_table_name, expand, custom_headers).value!
|
164
|
+
end
|
165
|
+
|
166
|
+
#
|
167
|
+
# The Get RouteTables operation retrieves information about the specified
|
168
|
+
# route table.
|
169
|
+
#
|
170
|
+
# @param resource_group_name [String] The name of the resource group.
|
171
|
+
# @param route_table_name [String] The name of the route table.
|
172
|
+
# @param expand [String] expand references resources.
|
173
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
174
|
+
# to the HTTP request.
|
175
|
+
#
|
176
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
177
|
+
#
|
178
|
+
def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil)
|
117
179
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
118
180
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
119
181
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -130,7 +192,10 @@ module Azure::ARM::Network
|
|
130
192
|
query_params: {'api-version' => @client.api_version,'$expand' => expand},
|
131
193
|
headers: request_headers.merge(custom_headers || {})
|
132
194
|
}
|
133
|
-
|
195
|
+
|
196
|
+
request_url = @base_url || @client.base_url
|
197
|
+
|
198
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
134
199
|
promise = request.run_promise do |req|
|
135
200
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
136
201
|
end
|
@@ -185,7 +250,7 @@ module Azure::ARM::Network
|
|
185
250
|
#
|
186
251
|
def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil)
|
187
252
|
# Send request
|
188
|
-
promise =
|
253
|
+
promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers)
|
189
254
|
|
190
255
|
promise = promise.then do |response|
|
191
256
|
# Defining deserialization method.
|
@@ -196,7 +261,7 @@ module Azure::ARM::Network
|
|
196
261
|
end
|
197
262
|
|
198
263
|
# Waiting for response.
|
199
|
-
@client.
|
264
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
200
265
|
end
|
201
266
|
|
202
267
|
promise
|
@@ -210,13 +275,47 @@ module Azure::ARM::Network
|
|
210
275
|
# @param route_table_name [String] The name of the route table.
|
211
276
|
# @param parameters [RouteTable] Parameters supplied to the create/update
|
212
277
|
# Route Table operation
|
213
|
-
# @param [Hash{String => String}]
|
214
|
-
#
|
278
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
279
|
+
# will be added to the HTTP request.
|
215
280
|
#
|
216
|
-
# @return [
|
217
|
-
# response.
|
281
|
+
# @return [RouteTable] operation results.
|
218
282
|
#
|
219
283
|
def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil)
|
284
|
+
response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value!
|
285
|
+
response.body unless response.nil?
|
286
|
+
end
|
287
|
+
|
288
|
+
#
|
289
|
+
# The Put RouteTable operation creates/updates a route tablein the specified
|
290
|
+
# resource group.
|
291
|
+
#
|
292
|
+
# @param resource_group_name [String] The name of the resource group.
|
293
|
+
# @param route_table_name [String] The name of the route table.
|
294
|
+
# @param parameters [RouteTable] Parameters supplied to the create/update
|
295
|
+
# Route Table operation
|
296
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
297
|
+
# will be added to the HTTP request.
|
298
|
+
#
|
299
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
300
|
+
#
|
301
|
+
def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil)
|
302
|
+
begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value!
|
303
|
+
end
|
304
|
+
|
305
|
+
#
|
306
|
+
# The Put RouteTable operation creates/updates a route tablein the specified
|
307
|
+
# resource group.
|
308
|
+
#
|
309
|
+
# @param resource_group_name [String] The name of the resource group.
|
310
|
+
# @param route_table_name [String] The name of the route table.
|
311
|
+
# @param parameters [RouteTable] Parameters supplied to the create/update
|
312
|
+
# Route Table operation
|
313
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
314
|
+
# to the HTTP request.
|
315
|
+
#
|
316
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
317
|
+
#
|
318
|
+
def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil)
|
220
319
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
221
320
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
222
321
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -234,7 +333,7 @@ module Azure::ARM::Network
|
|
234
333
|
unless parameters.nil?
|
235
334
|
parameters = RouteTable.serialize_object(parameters)
|
236
335
|
end
|
237
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
336
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
238
337
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'
|
239
338
|
options = {
|
240
339
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -243,7 +342,10 @@ module Azure::ARM::Network
|
|
243
342
|
body: request_content,
|
244
343
|
headers: request_headers.merge(custom_headers || {})
|
245
344
|
}
|
246
|
-
|
345
|
+
|
346
|
+
request_url = @base_url || @client.base_url
|
347
|
+
|
348
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
247
349
|
promise = request.run_promise do |req|
|
248
350
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
249
351
|
end
|
@@ -294,13 +396,39 @@ module Azure::ARM::Network
|
|
294
396
|
# The list RouteTables returns all route tables in a resource group
|
295
397
|
#
|
296
398
|
# @param resource_group_name [String] The name of the resource group.
|
297
|
-
# @param [Hash{String => String}]
|
298
|
-
#
|
399
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
400
|
+
# will be added to the HTTP request.
|
299
401
|
#
|
300
|
-
# @return [
|
301
|
-
# response.
|
402
|
+
# @return [RouteTableListResult] operation results.
|
302
403
|
#
|
303
404
|
def list(resource_group_name, custom_headers = nil)
|
405
|
+
response = list_async(resource_group_name, custom_headers).value!
|
406
|
+
response.body unless response.nil?
|
407
|
+
end
|
408
|
+
|
409
|
+
#
|
410
|
+
# The list RouteTables returns all route tables in a resource group
|
411
|
+
#
|
412
|
+
# @param resource_group_name [String] The name of the resource group.
|
413
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
414
|
+
# will be added to the HTTP request.
|
415
|
+
#
|
416
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
417
|
+
#
|
418
|
+
def list_with_http_info(resource_group_name, custom_headers = nil)
|
419
|
+
list_async(resource_group_name, custom_headers).value!
|
420
|
+
end
|
421
|
+
|
422
|
+
#
|
423
|
+
# The list RouteTables returns all route tables in a resource group
|
424
|
+
#
|
425
|
+
# @param resource_group_name [String] The name of the resource group.
|
426
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
427
|
+
# to the HTTP request.
|
428
|
+
#
|
429
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
430
|
+
#
|
431
|
+
def list_async(resource_group_name, custom_headers = nil)
|
304
432
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
305
433
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
306
434
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -316,7 +444,10 @@ module Azure::ARM::Network
|
|
316
444
|
query_params: {'api-version' => @client.api_version},
|
317
445
|
headers: request_headers.merge(custom_headers || {})
|
318
446
|
}
|
319
|
-
|
447
|
+
|
448
|
+
request_url = @base_url || @client.base_url
|
449
|
+
|
450
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
320
451
|
promise = request.run_promise do |req|
|
321
452
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
322
453
|
end
|
@@ -354,13 +485,37 @@ module Azure::ARM::Network
|
|
354
485
|
#
|
355
486
|
# The list RouteTables returns all route tables in a subscription
|
356
487
|
#
|
357
|
-
# @param [Hash{String => String}]
|
358
|
-
#
|
488
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
489
|
+
# will be added to the HTTP request.
|
359
490
|
#
|
360
|
-
# @return [
|
361
|
-
# response.
|
491
|
+
# @return [RouteTableListResult] operation results.
|
362
492
|
#
|
363
493
|
def list_all(custom_headers = nil)
|
494
|
+
response = list_all_async(custom_headers).value!
|
495
|
+
response.body unless response.nil?
|
496
|
+
end
|
497
|
+
|
498
|
+
#
|
499
|
+
# The list RouteTables returns all route tables in a subscription
|
500
|
+
#
|
501
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
502
|
+
# will be added to the HTTP request.
|
503
|
+
#
|
504
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
505
|
+
#
|
506
|
+
def list_all_with_http_info(custom_headers = nil)
|
507
|
+
list_all_async(custom_headers).value!
|
508
|
+
end
|
509
|
+
|
510
|
+
#
|
511
|
+
# The list RouteTables returns all route tables in a subscription
|
512
|
+
#
|
513
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
514
|
+
# to the HTTP request.
|
515
|
+
#
|
516
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
517
|
+
#
|
518
|
+
def list_all_async(custom_headers = nil)
|
364
519
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
365
520
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
366
521
|
request_headers = {}
|
@@ -375,7 +530,10 @@ module Azure::ARM::Network
|
|
375
530
|
query_params: {'api-version' => @client.api_version},
|
376
531
|
headers: request_headers.merge(custom_headers || {})
|
377
532
|
}
|
378
|
-
|
533
|
+
|
534
|
+
request_url = @base_url || @client.base_url
|
535
|
+
|
536
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
379
537
|
promise = request.run_promise do |req|
|
380
538
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
381
539
|
end
|
@@ -415,13 +573,41 @@ module Azure::ARM::Network
|
|
415
573
|
#
|
416
574
|
# @param next_page_link [String] The NextLink from the previous successful
|
417
575
|
# call to List operation.
|
418
|
-
# @param [Hash{String => String}]
|
419
|
-
#
|
576
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
577
|
+
# will be added to the HTTP request.
|
420
578
|
#
|
421
|
-
# @return [
|
422
|
-
# response.
|
579
|
+
# @return [RouteTableListResult] operation results.
|
423
580
|
#
|
424
581
|
def list_next(next_page_link, custom_headers = nil)
|
582
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
583
|
+
response.body unless response.nil?
|
584
|
+
end
|
585
|
+
|
586
|
+
#
|
587
|
+
# The list RouteTables returns all route tables in a resource group
|
588
|
+
#
|
589
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
590
|
+
# call to List operation.
|
591
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
592
|
+
# will be added to the HTTP request.
|
593
|
+
#
|
594
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
595
|
+
#
|
596
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
597
|
+
list_next_async(next_page_link, custom_headers).value!
|
598
|
+
end
|
599
|
+
|
600
|
+
#
|
601
|
+
# The list RouteTables returns all route tables in a resource group
|
602
|
+
#
|
603
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
604
|
+
# call to List operation.
|
605
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
606
|
+
# to the HTTP request.
|
607
|
+
#
|
608
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
609
|
+
#
|
610
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
425
611
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
426
612
|
request_headers = {}
|
427
613
|
|
@@ -434,7 +620,10 @@ module Azure::ARM::Network
|
|
434
620
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
435
621
|
headers: request_headers.merge(custom_headers || {})
|
436
622
|
}
|
437
|
-
|
623
|
+
|
624
|
+
request_url = @base_url || @client.base_url
|
625
|
+
|
626
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
438
627
|
promise = request.run_promise do |req|
|
439
628
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
440
629
|
end
|
@@ -474,13 +663,41 @@ module Azure::ARM::Network
|
|
474
663
|
#
|
475
664
|
# @param next_page_link [String] The NextLink from the previous successful
|
476
665
|
# call to List operation.
|
477
|
-
# @param [Hash{String => String}]
|
478
|
-
#
|
666
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
667
|
+
# will be added to the HTTP request.
|
479
668
|
#
|
480
|
-
# @return [
|
481
|
-
# response.
|
669
|
+
# @return [RouteTableListResult] operation results.
|
482
670
|
#
|
483
671
|
def list_all_next(next_page_link, custom_headers = nil)
|
672
|
+
response = list_all_next_async(next_page_link, custom_headers).value!
|
673
|
+
response.body unless response.nil?
|
674
|
+
end
|
675
|
+
|
676
|
+
#
|
677
|
+
# The list RouteTables returns all route tables in a subscription
|
678
|
+
#
|
679
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
680
|
+
# call to List operation.
|
681
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
682
|
+
# will be added to the HTTP request.
|
683
|
+
#
|
684
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
685
|
+
#
|
686
|
+
def list_all_next_with_http_info(next_page_link, custom_headers = nil)
|
687
|
+
list_all_next_async(next_page_link, custom_headers).value!
|
688
|
+
end
|
689
|
+
|
690
|
+
#
|
691
|
+
# The list RouteTables returns all route tables in a subscription
|
692
|
+
#
|
693
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
694
|
+
# call to List operation.
|
695
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
696
|
+
# to the HTTP request.
|
697
|
+
#
|
698
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
699
|
+
#
|
700
|
+
def list_all_next_async(next_page_link, custom_headers = nil)
|
484
701
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
485
702
|
request_headers = {}
|
486
703
|
|
@@ -493,7 +710,10 @@ module Azure::ARM::Network
|
|
493
710
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
494
711
|
headers: request_headers.merge(custom_headers || {})
|
495
712
|
}
|
496
|
-
|
713
|
+
|
714
|
+
request_url = @base_url || @client.base_url
|
715
|
+
|
716
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
497
717
|
promise = request.run_promise do |req|
|
498
718
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
499
719
|
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
|
|
@@ -36,7 +36,7 @@ module Azure::ARM::Network
|
|
36
36
|
#
|
37
37
|
def delete(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
38
38
|
# Send request
|
39
|
-
promise =
|
39
|
+
promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers)
|
40
40
|
|
41
41
|
promise = promise.then do |response|
|
42
42
|
# Defining deserialization method.
|
@@ -44,7 +44,7 @@ module Azure::ARM::Network
|
|
44
44
|
end
|
45
45
|
|
46
46
|
# Waiting for response.
|
47
|
-
@client.
|
47
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
48
48
|
end
|
49
49
|
|
50
50
|
promise
|
@@ -56,13 +56,42 @@ module Azure::ARM::Network
|
|
56
56
|
# @param resource_group_name [String] The name of the resource group.
|
57
57
|
# @param route_table_name [String] The name of the route table.
|
58
58
|
# @param route_name [String] The name of the route.
|
59
|
-
# @param [Hash{String => String}]
|
60
|
-
#
|
59
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
60
|
+
# will be added to the HTTP request.
|
61
61
|
#
|
62
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
63
|
-
# response.
|
64
62
|
#
|
65
63
|
def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
64
|
+
response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value!
|
65
|
+
nil
|
66
|
+
end
|
67
|
+
|
68
|
+
#
|
69
|
+
# The delete route operation deletes the specified route from a route table.
|
70
|
+
#
|
71
|
+
# @param resource_group_name [String] The name of the resource group.
|
72
|
+
# @param route_table_name [String] The name of the route table.
|
73
|
+
# @param route_name [String] The name of the route.
|
74
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
75
|
+
# will be added to the HTTP request.
|
76
|
+
#
|
77
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
78
|
+
#
|
79
|
+
def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
80
|
+
begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value!
|
81
|
+
end
|
82
|
+
|
83
|
+
#
|
84
|
+
# The delete route operation deletes the specified route from a route table.
|
85
|
+
#
|
86
|
+
# @param resource_group_name [String] The name of the resource group.
|
87
|
+
# @param route_table_name [String] The name of the route table.
|
88
|
+
# @param route_name [String] The name of the route.
|
89
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
90
|
+
# to the HTTP request.
|
91
|
+
#
|
92
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
93
|
+
#
|
94
|
+
def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
66
95
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
67
96
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
68
97
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
@@ -80,7 +109,10 @@ module Azure::ARM::Network
|
|
80
109
|
query_params: {'api-version' => @client.api_version},
|
81
110
|
headers: request_headers.merge(custom_headers || {})
|
82
111
|
}
|
83
|
-
|
112
|
+
|
113
|
+
request_url = @base_url || @client.base_url
|
114
|
+
|
115
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
84
116
|
promise = request.run_promise do |req|
|
85
117
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
86
118
|
end
|
@@ -110,13 +142,45 @@ module Azure::ARM::Network
|
|
110
142
|
# @param resource_group_name [String] The name of the resource group.
|
111
143
|
# @param route_table_name [String] The name of the route table.
|
112
144
|
# @param route_name [String] The name of the route.
|
113
|
-
# @param [Hash{String => String}]
|
114
|
-
#
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
115
147
|
#
|
116
|
-
# @return [
|
117
|
-
# response.
|
148
|
+
# @return [Route] operation results.
|
118
149
|
#
|
119
150
|
def get(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
151
|
+
response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value!
|
152
|
+
response.body unless response.nil?
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# The Get route operation retreives information about the specified route from
|
157
|
+
# the route table.
|
158
|
+
#
|
159
|
+
# @param resource_group_name [String] The name of the resource group.
|
160
|
+
# @param route_table_name [String] The name of the route table.
|
161
|
+
# @param route_name [String] The name of the route.
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
|
+
#
|
167
|
+
def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
168
|
+
get_async(resource_group_name, route_table_name, route_name, custom_headers).value!
|
169
|
+
end
|
170
|
+
|
171
|
+
#
|
172
|
+
# The Get route operation retreives information about the specified route from
|
173
|
+
# the route table.
|
174
|
+
#
|
175
|
+
# @param resource_group_name [String] The name of the resource group.
|
176
|
+
# @param route_table_name [String] The name of the route table.
|
177
|
+
# @param route_name [String] The name of the route.
|
178
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
179
|
+
# to the HTTP request.
|
180
|
+
#
|
181
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
182
|
+
#
|
183
|
+
def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
120
184
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
121
185
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
122
186
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
@@ -134,7 +198,10 @@ module Azure::ARM::Network
|
|
134
198
|
query_params: {'api-version' => @client.api_version},
|
135
199
|
headers: request_headers.merge(custom_headers || {})
|
136
200
|
}
|
137
|
-
|
201
|
+
|
202
|
+
request_url = @base_url || @client.base_url
|
203
|
+
|
204
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
138
205
|
promise = request.run_promise do |req|
|
139
206
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
140
207
|
end
|
@@ -189,7 +256,7 @@ module Azure::ARM::Network
|
|
189
256
|
#
|
190
257
|
def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil)
|
191
258
|
# Send request
|
192
|
-
promise =
|
259
|
+
promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers)
|
193
260
|
|
194
261
|
promise = promise.then do |response|
|
195
262
|
# Defining deserialization method.
|
@@ -200,7 +267,7 @@ module Azure::ARM::Network
|
|
200
267
|
end
|
201
268
|
|
202
269
|
# Waiting for response.
|
203
|
-
@client.
|
270
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
204
271
|
end
|
205
272
|
|
206
273
|
promise
|
@@ -214,13 +281,47 @@ module Azure::ARM::Network
|
|
214
281
|
# @param route_name [String] The name of the route.
|
215
282
|
# @param route_parameters [Route] Parameters supplied to the create/update
|
216
283
|
# routeoperation
|
217
|
-
# @param [Hash{String => String}]
|
218
|
-
#
|
284
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
285
|
+
# will be added to the HTTP request.
|
219
286
|
#
|
220
|
-
# @return [
|
221
|
-
# response.
|
287
|
+
# @return [Route] operation results.
|
222
288
|
#
|
223
289
|
def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil)
|
290
|
+
response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value!
|
291
|
+
response.body unless response.nil?
|
292
|
+
end
|
293
|
+
|
294
|
+
#
|
295
|
+
# The Put route operation creates/updates a route in the specified route table
|
296
|
+
#
|
297
|
+
# @param resource_group_name [String] The name of the resource group.
|
298
|
+
# @param route_table_name [String] The name of the route table.
|
299
|
+
# @param route_name [String] The name of the route.
|
300
|
+
# @param route_parameters [Route] Parameters supplied to the create/update
|
301
|
+
# routeoperation
|
302
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
303
|
+
# will be added to the HTTP request.
|
304
|
+
#
|
305
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
306
|
+
#
|
307
|
+
def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil)
|
308
|
+
begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value!
|
309
|
+
end
|
310
|
+
|
311
|
+
#
|
312
|
+
# The Put route operation creates/updates a route in the specified route table
|
313
|
+
#
|
314
|
+
# @param resource_group_name [String] The name of the resource group.
|
315
|
+
# @param route_table_name [String] The name of the route table.
|
316
|
+
# @param route_name [String] The name of the route.
|
317
|
+
# @param route_parameters [Route] Parameters supplied to the create/update
|
318
|
+
# routeoperation
|
319
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
320
|
+
# to the HTTP request.
|
321
|
+
#
|
322
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
323
|
+
#
|
324
|
+
def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil)
|
224
325
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
225
326
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
226
327
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
@@ -239,7 +340,7 @@ module Azure::ARM::Network
|
|
239
340
|
unless route_parameters.nil?
|
240
341
|
route_parameters = Route.serialize_object(route_parameters)
|
241
342
|
end
|
242
|
-
request_content = JSON.generate(route_parameters, quirks_mode: true)
|
343
|
+
request_content = route_parameters != nil ? JSON.generate(route_parameters, quirks_mode: true) : nil
|
243
344
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}'
|
244
345
|
options = {
|
245
346
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -248,7 +349,10 @@ module Azure::ARM::Network
|
|
248
349
|
body: request_content,
|
249
350
|
headers: request_headers.merge(custom_headers || {})
|
250
351
|
}
|
251
|
-
|
352
|
+
|
353
|
+
request_url = @base_url || @client.base_url
|
354
|
+
|
355
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
252
356
|
promise = request.run_promise do |req|
|
253
357
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
254
358
|
end
|
@@ -301,13 +405,43 @@ module Azure::ARM::Network
|
|
301
405
|
#
|
302
406
|
# @param resource_group_name [String] The name of the resource group.
|
303
407
|
# @param route_table_name [String] The name of the route table.
|
304
|
-
# @param [Hash{String => String}]
|
305
|
-
#
|
408
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
409
|
+
# will be added to the HTTP request.
|
306
410
|
#
|
307
|
-
# @return [
|
308
|
-
# response.
|
411
|
+
# @return [RouteListResult] operation results.
|
309
412
|
#
|
310
413
|
def list(resource_group_name, route_table_name, custom_headers = nil)
|
414
|
+
response = list_async(resource_group_name, route_table_name, custom_headers).value!
|
415
|
+
response.body unless response.nil?
|
416
|
+
end
|
417
|
+
|
418
|
+
#
|
419
|
+
# The List network security rule opertion retrieves all the routes in a route
|
420
|
+
# table.
|
421
|
+
#
|
422
|
+
# @param resource_group_name [String] The name of the resource group.
|
423
|
+
# @param route_table_name [String] The name of the route table.
|
424
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
425
|
+
# will be added to the HTTP request.
|
426
|
+
#
|
427
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
428
|
+
#
|
429
|
+
def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil)
|
430
|
+
list_async(resource_group_name, route_table_name, custom_headers).value!
|
431
|
+
end
|
432
|
+
|
433
|
+
#
|
434
|
+
# The List network security rule opertion retrieves all the routes in a route
|
435
|
+
# table.
|
436
|
+
#
|
437
|
+
# @param resource_group_name [String] The name of the resource group.
|
438
|
+
# @param route_table_name [String] The name of the route table.
|
439
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
440
|
+
# to the HTTP request.
|
441
|
+
#
|
442
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
443
|
+
#
|
444
|
+
def list_async(resource_group_name, route_table_name, custom_headers = nil)
|
311
445
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
312
446
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
313
447
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -324,7 +458,10 @@ module Azure::ARM::Network
|
|
324
458
|
query_params: {'api-version' => @client.api_version},
|
325
459
|
headers: request_headers.merge(custom_headers || {})
|
326
460
|
}
|
327
|
-
|
461
|
+
|
462
|
+
request_url = @base_url || @client.base_url
|
463
|
+
|
464
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
328
465
|
promise = request.run_promise do |req|
|
329
466
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
330
467
|
end
|
@@ -365,13 +502,43 @@ module Azure::ARM::Network
|
|
365
502
|
#
|
366
503
|
# @param next_page_link [String] The NextLink from the previous successful
|
367
504
|
# call to List operation.
|
368
|
-
# @param [Hash{String => String}]
|
369
|
-
#
|
505
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
506
|
+
# will be added to the HTTP request.
|
370
507
|
#
|
371
|
-
# @return [
|
372
|
-
# response.
|
508
|
+
# @return [RouteListResult] operation results.
|
373
509
|
#
|
374
510
|
def list_next(next_page_link, custom_headers = nil)
|
511
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
512
|
+
response.body unless response.nil?
|
513
|
+
end
|
514
|
+
|
515
|
+
#
|
516
|
+
# The List network security rule opertion retrieves all the routes in a route
|
517
|
+
# table.
|
518
|
+
#
|
519
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
520
|
+
# call to List operation.
|
521
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
522
|
+
# will be added to the HTTP request.
|
523
|
+
#
|
524
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
525
|
+
#
|
526
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
527
|
+
list_next_async(next_page_link, custom_headers).value!
|
528
|
+
end
|
529
|
+
|
530
|
+
#
|
531
|
+
# The List network security rule opertion retrieves all the routes in a route
|
532
|
+
# table.
|
533
|
+
#
|
534
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
535
|
+
# call to List operation.
|
536
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
537
|
+
# to the HTTP request.
|
538
|
+
#
|
539
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
540
|
+
#
|
541
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
375
542
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
376
543
|
request_headers = {}
|
377
544
|
|
@@ -384,7 +551,10 @@ module Azure::ARM::Network
|
|
384
551
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
385
552
|
headers: request_headers.merge(custom_headers || {})
|
386
553
|
}
|
387
|
-
|
554
|
+
|
555
|
+
request_url = @base_url || @client.base_url
|
556
|
+
|
557
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
388
558
|
promise = request.run_promise do |req|
|
389
559
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
390
560
|
end
|