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
|
|
@@ -29,13 +29,39 @@ module Azure::ARM::Network
|
|
29
29
|
# Lists compute usages for a subscription.
|
30
30
|
#
|
31
31
|
# @param location [String] The location upon which resource usage is queried.
|
32
|
-
# @param [Hash{String => String}]
|
33
|
-
#
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
34
|
#
|
35
|
-
# @return [
|
36
|
-
# response.
|
35
|
+
# @return [UsagesListResult] operation results.
|
37
36
|
#
|
38
37
|
def list(location, custom_headers = nil)
|
38
|
+
response = list_async(location, custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Lists compute usages for a subscription.
|
44
|
+
#
|
45
|
+
# @param location [String] The location upon which resource usage is queried.
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_with_http_info(location, custom_headers = nil)
|
52
|
+
list_async(location, custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Lists compute usages for a subscription.
|
57
|
+
#
|
58
|
+
# @param location [String] The location upon which resource usage is queried.
|
59
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
|
+
# to the HTTP request.
|
61
|
+
#
|
62
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
|
+
#
|
64
|
+
def list_async(location, custom_headers = nil)
|
39
65
|
fail ArgumentError, 'location is nil' if location.nil?
|
40
66
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
41
67
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -51,7 +77,10 @@ module Azure::ARM::Network
|
|
51
77
|
query_params: {'api-version' => @client.api_version},
|
52
78
|
headers: request_headers.merge(custom_headers || {})
|
53
79
|
}
|
54
|
-
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
55
84
|
promise = request.run_promise do |req|
|
56
85
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
57
86
|
end
|
@@ -91,13 +120,41 @@ module Azure::ARM::Network
|
|
91
120
|
#
|
92
121
|
# @param next_page_link [String] The NextLink from the previous successful
|
93
122
|
# call to List operation.
|
94
|
-
# @param [Hash{String => String}]
|
95
|
-
#
|
123
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
124
|
+
# will be added to the HTTP request.
|
96
125
|
#
|
97
|
-
# @return [
|
98
|
-
# response.
|
126
|
+
# @return [UsagesListResult] operation results.
|
99
127
|
#
|
100
128
|
def list_next(next_page_link, custom_headers = nil)
|
129
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
130
|
+
response.body unless response.nil?
|
131
|
+
end
|
132
|
+
|
133
|
+
#
|
134
|
+
# Lists compute usages for a subscription.
|
135
|
+
#
|
136
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
137
|
+
# call to List operation.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
|
+
#
|
143
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
144
|
+
list_next_async(next_page_link, custom_headers).value!
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Lists compute usages for a subscription.
|
149
|
+
#
|
150
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
151
|
+
# call to List operation.
|
152
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
153
|
+
# to the HTTP request.
|
154
|
+
#
|
155
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
|
+
#
|
157
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
101
158
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
102
159
|
request_headers = {}
|
103
160
|
|
@@ -110,7 +167,10 @@ module Azure::ARM::Network
|
|
110
167
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
111
168
|
headers: request_headers.merge(custom_headers || {})
|
112
169
|
}
|
113
|
-
|
170
|
+
|
171
|
+
request_url = @base_url || @client.base_url
|
172
|
+
|
173
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
114
174
|
promise = request.run_promise do |req|
|
115
175
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
116
176
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Network
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.3.0'
|
8
8
|
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
|
|
@@ -48,7 +48,7 @@ module Azure::ARM::Network
|
|
48
48
|
#
|
49
49
|
def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
50
50
|
# Send request
|
51
|
-
promise =
|
51
|
+
promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers)
|
52
52
|
|
53
53
|
promise = promise.then do |response|
|
54
54
|
# Defining deserialization method.
|
@@ -59,7 +59,7 @@ module Azure::ARM::Network
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# Waiting for response.
|
62
|
-
@client.
|
62
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
63
63
|
end
|
64
64
|
|
65
65
|
promise
|
@@ -76,13 +76,53 @@ module Azure::ARM::Network
|
|
76
76
|
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
77
77
|
# the Begin Create or update Virtual Network Gateway connection operation
|
78
78
|
# through Network resource provider.
|
79
|
-
# @param [Hash{String => String}]
|
80
|
-
#
|
79
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
80
|
+
# will be added to the HTTP request.
|
81
81
|
#
|
82
|
-
# @return [
|
83
|
-
# response.
|
82
|
+
# @return [VirtualNetworkGatewayConnection] operation results.
|
84
83
|
#
|
85
84
|
def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
85
|
+
response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
86
|
+
response.body unless response.nil?
|
87
|
+
end
|
88
|
+
|
89
|
+
#
|
90
|
+
# The Put VirtualNetworkGatewayConnection operation creates/updates a virtual
|
91
|
+
# network gateway connection in the specified resource group through Network
|
92
|
+
# resource provider.
|
93
|
+
#
|
94
|
+
# @param resource_group_name [String] The name of the resource group.
|
95
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
96
|
+
# virtual network gateway conenction.
|
97
|
+
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
98
|
+
# the Begin Create or update Virtual Network Gateway connection operation
|
99
|
+
# through Network resource provider.
|
100
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
101
|
+
# will be added to the HTTP request.
|
102
|
+
#
|
103
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
104
|
+
#
|
105
|
+
def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
106
|
+
begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
107
|
+
end
|
108
|
+
|
109
|
+
#
|
110
|
+
# The Put VirtualNetworkGatewayConnection operation creates/updates a virtual
|
111
|
+
# network gateway connection in the specified resource group through Network
|
112
|
+
# resource provider.
|
113
|
+
#
|
114
|
+
# @param resource_group_name [String] The name of the resource group.
|
115
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
116
|
+
# virtual network gateway conenction.
|
117
|
+
# @param parameters [VirtualNetworkGatewayConnection] Parameters supplied to
|
118
|
+
# the Begin Create or update Virtual Network Gateway connection operation
|
119
|
+
# through Network resource provider.
|
120
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
121
|
+
# to the HTTP request.
|
122
|
+
#
|
123
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
124
|
+
#
|
125
|
+
def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
86
126
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
87
127
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
88
128
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -100,7 +140,7 @@ module Azure::ARM::Network
|
|
100
140
|
unless parameters.nil?
|
101
141
|
parameters = VirtualNetworkGatewayConnection.serialize_object(parameters)
|
102
142
|
end
|
103
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
143
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
104
144
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'
|
105
145
|
options = {
|
106
146
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -109,7 +149,10 @@ module Azure::ARM::Network
|
|
109
149
|
body: request_content,
|
110
150
|
headers: request_headers.merge(custom_headers || {})
|
111
151
|
}
|
112
|
-
|
152
|
+
|
153
|
+
request_url = @base_url || @client.base_url
|
154
|
+
|
155
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
113
156
|
promise = request.run_promise do |req|
|
114
157
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
115
158
|
end
|
@@ -164,13 +207,47 @@ module Azure::ARM::Network
|
|
164
207
|
# @param resource_group_name [String] The name of the resource group.
|
165
208
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
166
209
|
# virtual network gateway connection.
|
167
|
-
# @param [Hash{String => String}]
|
168
|
-
#
|
210
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
211
|
+
# will be added to the HTTP request.
|
169
212
|
#
|
170
|
-
# @return [
|
171
|
-
# response.
|
213
|
+
# @return [VirtualNetworkGatewayConnection] operation results.
|
172
214
|
#
|
173
215
|
def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
216
|
+
response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
217
|
+
response.body unless response.nil?
|
218
|
+
end
|
219
|
+
|
220
|
+
#
|
221
|
+
# The Get VirtualNetworkGatewayConnection operation retrieves information
|
222
|
+
# about the specified virtual network gateway connection through Network
|
223
|
+
# resource provider.
|
224
|
+
#
|
225
|
+
# @param resource_group_name [String] The name of the resource group.
|
226
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
227
|
+
# virtual network gateway connection.
|
228
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
229
|
+
# will be added to the HTTP request.
|
230
|
+
#
|
231
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
232
|
+
#
|
233
|
+
def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
234
|
+
get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# The Get VirtualNetworkGatewayConnection operation retrieves information
|
239
|
+
# about the specified virtual network gateway connection through Network
|
240
|
+
# resource provider.
|
241
|
+
#
|
242
|
+
# @param resource_group_name [String] The name of the resource group.
|
243
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
244
|
+
# virtual network gateway connection.
|
245
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
246
|
+
# to the HTTP request.
|
247
|
+
#
|
248
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
249
|
+
#
|
250
|
+
def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
174
251
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
175
252
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
176
253
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -187,7 +264,10 @@ module Azure::ARM::Network
|
|
187
264
|
query_params: {'api-version' => @client.api_version},
|
188
265
|
headers: request_headers.merge(custom_headers || {})
|
189
266
|
}
|
190
|
-
|
267
|
+
|
268
|
+
request_url = @base_url || @client.base_url
|
269
|
+
|
270
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
191
271
|
promise = request.run_promise do |req|
|
192
272
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
193
273
|
end
|
@@ -234,7 +314,7 @@ module Azure::ARM::Network
|
|
234
314
|
#
|
235
315
|
def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
236
316
|
# Send request
|
237
|
-
promise =
|
317
|
+
promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers)
|
238
318
|
|
239
319
|
promise = promise.then do |response|
|
240
320
|
# Defining deserialization method.
|
@@ -242,7 +322,7 @@ module Azure::ARM::Network
|
|
242
322
|
end
|
243
323
|
|
244
324
|
# Waiting for response.
|
245
|
-
@client.
|
325
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
246
326
|
end
|
247
327
|
|
248
328
|
promise
|
@@ -255,13 +335,44 @@ module Azure::ARM::Network
|
|
255
335
|
# @param resource_group_name [String] The name of the resource group.
|
256
336
|
# @param virtual_network_gateway_connection_name [String] The name of the
|
257
337
|
# virtual network gateway connection.
|
258
|
-
# @param [Hash{String => String}]
|
259
|
-
#
|
338
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
339
|
+
# will be added to the HTTP request.
|
260
340
|
#
|
261
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
262
|
-
# response.
|
263
341
|
#
|
264
342
|
def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
343
|
+
response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
344
|
+
nil
|
345
|
+
end
|
346
|
+
|
347
|
+
#
|
348
|
+
# The Delete VirtualNetworkGatewayConnection operation deletes the specifed
|
349
|
+
# virtual network Gateway connection through Network resource provider.
|
350
|
+
#
|
351
|
+
# @param resource_group_name [String] The name of the resource group.
|
352
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
353
|
+
# virtual network gateway connection.
|
354
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
355
|
+
# will be added to the HTTP request.
|
356
|
+
#
|
357
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
358
|
+
#
|
359
|
+
def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
360
|
+
begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value!
|
361
|
+
end
|
362
|
+
|
363
|
+
#
|
364
|
+
# The Delete VirtualNetworkGatewayConnection operation deletes the specifed
|
365
|
+
# virtual network Gateway connection through Network resource provider.
|
366
|
+
#
|
367
|
+
# @param resource_group_name [String] The name of the resource group.
|
368
|
+
# @param virtual_network_gateway_connection_name [String] The name of the
|
369
|
+
# virtual network gateway connection.
|
370
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
371
|
+
# to the HTTP request.
|
372
|
+
#
|
373
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
|
+
#
|
375
|
+
def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil)
|
265
376
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
266
377
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
267
378
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -278,7 +389,10 @@ module Azure::ARM::Network
|
|
278
389
|
query_params: {'api-version' => @client.api_version},
|
279
390
|
headers: request_headers.merge(custom_headers || {})
|
280
391
|
}
|
281
|
-
|
392
|
+
|
393
|
+
request_url = @base_url || @client.base_url
|
394
|
+
|
395
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
282
396
|
promise = request.run_promise do |req|
|
283
397
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
284
398
|
end
|
@@ -309,13 +423,47 @@ module Azure::ARM::Network
|
|
309
423
|
# @param resource_group_name [String] The name of the resource group.
|
310
424
|
# @param connection_shared_key_name [String] The virtual network gateway
|
311
425
|
# connection shared key name.
|
312
|
-
# @param [Hash{String => String}]
|
313
|
-
#
|
426
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
427
|
+
# will be added to the HTTP request.
|
314
428
|
#
|
315
|
-
# @return [
|
316
|
-
# response.
|
429
|
+
# @return [ConnectionSharedKeyResult] operation results.
|
317
430
|
#
|
318
431
|
def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers = nil)
|
432
|
+
response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value!
|
433
|
+
response.body unless response.nil?
|
434
|
+
end
|
435
|
+
|
436
|
+
#
|
437
|
+
# The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves
|
438
|
+
# information about the specified virtual network gateway connection shared
|
439
|
+
# key through Network resource provider.
|
440
|
+
#
|
441
|
+
# @param resource_group_name [String] The name of the resource group.
|
442
|
+
# @param connection_shared_key_name [String] The virtual network gateway
|
443
|
+
# connection shared key name.
|
444
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
445
|
+
# will be added to the HTTP request.
|
446
|
+
#
|
447
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
448
|
+
#
|
449
|
+
def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers = nil)
|
450
|
+
get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value!
|
451
|
+
end
|
452
|
+
|
453
|
+
#
|
454
|
+
# The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves
|
455
|
+
# information about the specified virtual network gateway connection shared
|
456
|
+
# key through Network resource provider.
|
457
|
+
#
|
458
|
+
# @param resource_group_name [String] The name of the resource group.
|
459
|
+
# @param connection_shared_key_name [String] The virtual network gateway
|
460
|
+
# connection shared key name.
|
461
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
462
|
+
# to the HTTP request.
|
463
|
+
#
|
464
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
465
|
+
#
|
466
|
+
def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers = nil)
|
319
467
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
320
468
|
fail ArgumentError, 'connection_shared_key_name is nil' if connection_shared_key_name.nil?
|
321
469
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -332,7 +480,10 @@ module Azure::ARM::Network
|
|
332
480
|
query_params: {'api-version' => @client.api_version},
|
333
481
|
headers: request_headers.merge(custom_headers || {})
|
334
482
|
}
|
335
|
-
|
483
|
+
|
484
|
+
request_url = @base_url || @client.base_url
|
485
|
+
|
486
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
336
487
|
promise = request.run_promise do |req|
|
337
488
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
338
489
|
end
|
@@ -372,13 +523,41 @@ module Azure::ARM::Network
|
|
372
523
|
# virtual network gateways connections created.
|
373
524
|
#
|
374
525
|
# @param resource_group_name [String] The name of the resource group.
|
375
|
-
# @param [Hash{String => String}]
|
376
|
-
#
|
526
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
527
|
+
# will be added to the HTTP request.
|
377
528
|
#
|
378
|
-
# @return [
|
379
|
-
# response.
|
529
|
+
# @return [VirtualNetworkGatewayConnectionListResult] operation results.
|
380
530
|
#
|
381
531
|
def list(resource_group_name, custom_headers = nil)
|
532
|
+
response = list_async(resource_group_name, custom_headers).value!
|
533
|
+
response.body unless response.nil?
|
534
|
+
end
|
535
|
+
|
536
|
+
#
|
537
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
538
|
+
# virtual network gateways connections created.
|
539
|
+
#
|
540
|
+
# @param resource_group_name [String] The name of the resource group.
|
541
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
542
|
+
# will be added to the HTTP request.
|
543
|
+
#
|
544
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
545
|
+
#
|
546
|
+
def list_with_http_info(resource_group_name, custom_headers = nil)
|
547
|
+
list_async(resource_group_name, custom_headers).value!
|
548
|
+
end
|
549
|
+
|
550
|
+
#
|
551
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
552
|
+
# virtual network gateways connections created.
|
553
|
+
#
|
554
|
+
# @param resource_group_name [String] The name of the resource group.
|
555
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
556
|
+
# to the HTTP request.
|
557
|
+
#
|
558
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
559
|
+
#
|
560
|
+
def list_async(resource_group_name, custom_headers = nil)
|
382
561
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
383
562
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
384
563
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -394,7 +573,10 @@ module Azure::ARM::Network
|
|
394
573
|
query_params: {'api-version' => @client.api_version},
|
395
574
|
headers: request_headers.merge(custom_headers || {})
|
396
575
|
}
|
397
|
-
|
576
|
+
|
577
|
+
request_url = @base_url || @client.base_url
|
578
|
+
|
579
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
398
580
|
promise = request.run_promise do |req|
|
399
581
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
400
582
|
end
|
@@ -446,7 +628,7 @@ module Azure::ARM::Network
|
|
446
628
|
#
|
447
629
|
def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
448
630
|
# Send request
|
449
|
-
promise =
|
631
|
+
promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers)
|
450
632
|
|
451
633
|
promise = promise.then do |response|
|
452
634
|
# Defining deserialization method.
|
@@ -457,7 +639,7 @@ module Azure::ARM::Network
|
|
457
639
|
end
|
458
640
|
|
459
641
|
# Waiting for response.
|
460
|
-
@client.
|
642
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
461
643
|
end
|
462
644
|
|
463
645
|
promise
|
@@ -475,13 +657,55 @@ module Azure::ARM::Network
|
|
475
657
|
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the
|
476
658
|
# Begin Reset Virtual Network Gateway connection shared key operation through
|
477
659
|
# Network resource provider.
|
478
|
-
# @param [Hash{String => String}]
|
479
|
-
#
|
660
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
661
|
+
# will be added to the HTTP request.
|
480
662
|
#
|
481
|
-
# @return [
|
482
|
-
# response.
|
663
|
+
# @return [ConnectionResetSharedKey] operation results.
|
483
664
|
#
|
484
665
|
def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
666
|
+
response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
667
|
+
response.body unless response.nil?
|
668
|
+
end
|
669
|
+
|
670
|
+
#
|
671
|
+
# The VirtualNetworkGatewayConnectionResetSharedKey operation resets the
|
672
|
+
# virtual network gateway connection shared key for passed virtual network
|
673
|
+
# gateway connection in the specified resource group through Network resource
|
674
|
+
# provider.
|
675
|
+
#
|
676
|
+
# @param resource_group_name [String] The name of the resource group.
|
677
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
678
|
+
# gateway connection reset shared key Name.
|
679
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the
|
680
|
+
# Begin Reset Virtual Network Gateway connection shared key operation through
|
681
|
+
# Network resource provider.
|
682
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
683
|
+
# will be added to the HTTP request.
|
684
|
+
#
|
685
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
686
|
+
#
|
687
|
+
def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
688
|
+
begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
689
|
+
end
|
690
|
+
|
691
|
+
#
|
692
|
+
# The VirtualNetworkGatewayConnectionResetSharedKey operation resets the
|
693
|
+
# virtual network gateway connection shared key for passed virtual network
|
694
|
+
# gateway connection in the specified resource group through Network resource
|
695
|
+
# provider.
|
696
|
+
#
|
697
|
+
# @param resource_group_name [String] The name of the resource group.
|
698
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
699
|
+
# gateway connection reset shared key Name.
|
700
|
+
# @param parameters [ConnectionResetSharedKey] Parameters supplied to the
|
701
|
+
# Begin Reset Virtual Network Gateway connection shared key operation through
|
702
|
+
# Network resource provider.
|
703
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
704
|
+
# to the HTTP request.
|
705
|
+
#
|
706
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
707
|
+
#
|
708
|
+
def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
485
709
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
486
710
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
487
711
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -499,7 +723,7 @@ module Azure::ARM::Network
|
|
499
723
|
unless parameters.nil?
|
500
724
|
parameters = ConnectionResetSharedKey.serialize_object(parameters)
|
501
725
|
end
|
502
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
726
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
503
727
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset'
|
504
728
|
options = {
|
505
729
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -508,7 +732,10 @@ module Azure::ARM::Network
|
|
508
732
|
body: request_content,
|
509
733
|
headers: request_headers.merge(custom_headers || {})
|
510
734
|
}
|
511
|
-
|
735
|
+
|
736
|
+
request_url = @base_url || @client.base_url
|
737
|
+
|
738
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
512
739
|
promise = request.run_promise do |req|
|
513
740
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
514
741
|
end
|
@@ -567,7 +794,7 @@ module Azure::ARM::Network
|
|
567
794
|
#
|
568
795
|
def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
569
796
|
# Send request
|
570
|
-
promise =
|
797
|
+
promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers)
|
571
798
|
|
572
799
|
promise = promise.then do |response|
|
573
800
|
# Defining deserialization method.
|
@@ -578,7 +805,7 @@ module Azure::ARM::Network
|
|
578
805
|
end
|
579
806
|
|
580
807
|
# Waiting for response.
|
581
|
-
@client.
|
808
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
582
809
|
end
|
583
810
|
|
584
811
|
promise
|
@@ -596,13 +823,55 @@ module Azure::ARM::Network
|
|
596
823
|
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
597
824
|
# Virtual Network Gateway conection Shared key operation throughNetwork
|
598
825
|
# resource provider.
|
599
|
-
# @param [Hash{String => String}]
|
600
|
-
#
|
826
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
827
|
+
# will be added to the HTTP request.
|
601
828
|
#
|
602
|
-
# @return [
|
603
|
-
# response.
|
829
|
+
# @return [ConnectionSharedKey] operation results.
|
604
830
|
#
|
605
831
|
def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
832
|
+
response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
833
|
+
response.body unless response.nil?
|
834
|
+
end
|
835
|
+
|
836
|
+
#
|
837
|
+
# The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
|
838
|
+
# network gateway connection shared key for passed virtual network gateway
|
839
|
+
# connection in the specified resource group through Network resource
|
840
|
+
# provider.
|
841
|
+
#
|
842
|
+
# @param resource_group_name [String] The name of the resource group.
|
843
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
844
|
+
# gateway connection name.
|
845
|
+
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
846
|
+
# Virtual Network Gateway conection Shared key operation throughNetwork
|
847
|
+
# resource provider.
|
848
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
849
|
+
# will be added to the HTTP request.
|
850
|
+
#
|
851
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
852
|
+
#
|
853
|
+
def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
854
|
+
begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value!
|
855
|
+
end
|
856
|
+
|
857
|
+
#
|
858
|
+
# The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
|
859
|
+
# network gateway connection shared key for passed virtual network gateway
|
860
|
+
# connection in the specified resource group through Network resource
|
861
|
+
# provider.
|
862
|
+
#
|
863
|
+
# @param resource_group_name [String] The name of the resource group.
|
864
|
+
# @param virtual_network_gateway_connection_name [String] The virtual network
|
865
|
+
# gateway connection name.
|
866
|
+
# @param parameters [ConnectionSharedKey] Parameters supplied to the Begin Set
|
867
|
+
# Virtual Network Gateway conection Shared key operation throughNetwork
|
868
|
+
# resource provider.
|
869
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
870
|
+
# to the HTTP request.
|
871
|
+
#
|
872
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
873
|
+
#
|
874
|
+
def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil)
|
606
875
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
607
876
|
fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil?
|
608
877
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -620,7 +889,7 @@ module Azure::ARM::Network
|
|
620
889
|
unless parameters.nil?
|
621
890
|
parameters = ConnectionSharedKey.serialize_object(parameters)
|
622
891
|
end
|
623
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
892
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
624
893
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'
|
625
894
|
options = {
|
626
895
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -629,7 +898,10 @@ module Azure::ARM::Network
|
|
629
898
|
body: request_content,
|
630
899
|
headers: request_headers.merge(custom_headers || {})
|
631
900
|
}
|
632
|
-
|
901
|
+
|
902
|
+
request_url = @base_url || @client.base_url
|
903
|
+
|
904
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
633
905
|
promise = request.run_promise do |req|
|
634
906
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
635
907
|
end
|
@@ -682,13 +954,43 @@ module Azure::ARM::Network
|
|
682
954
|
#
|
683
955
|
# @param next_page_link [String] The NextLink from the previous successful
|
684
956
|
# call to List operation.
|
685
|
-
# @param [Hash{String => String}]
|
686
|
-
#
|
957
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
958
|
+
# will be added to the HTTP request.
|
687
959
|
#
|
688
|
-
# @return [
|
689
|
-
# response.
|
960
|
+
# @return [VirtualNetworkGatewayConnectionListResult] operation results.
|
690
961
|
#
|
691
962
|
def list_next(next_page_link, custom_headers = nil)
|
963
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
964
|
+
response.body unless response.nil?
|
965
|
+
end
|
966
|
+
|
967
|
+
#
|
968
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
969
|
+
# virtual network gateways connections created.
|
970
|
+
#
|
971
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
972
|
+
# call to List operation.
|
973
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
974
|
+
# will be added to the HTTP request.
|
975
|
+
#
|
976
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
977
|
+
#
|
978
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
979
|
+
list_next_async(next_page_link, custom_headers).value!
|
980
|
+
end
|
981
|
+
|
982
|
+
#
|
983
|
+
# The List VirtualNetworkGatewayConnections operation retrieves all the
|
984
|
+
# virtual network gateways connections created.
|
985
|
+
#
|
986
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
987
|
+
# call to List operation.
|
988
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
989
|
+
# to the HTTP request.
|
990
|
+
#
|
991
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
992
|
+
#
|
993
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
692
994
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
693
995
|
request_headers = {}
|
694
996
|
|
@@ -701,7 +1003,10 @@ module Azure::ARM::Network
|
|
701
1003
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
702
1004
|
headers: request_headers.merge(custom_headers || {})
|
703
1005
|
}
|
704
|
-
|
1006
|
+
|
1007
|
+
request_url = @base_url || @client.base_url
|
1008
|
+
|
1009
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
705
1010
|
promise = request.run_promise do |req|
|
706
1011
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
707
1012
|
end
|