azure_mgmt_network 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -11
- data/azure_mgmt_network.gemspec +1 -1
- data/lib/generated/azure_mgmt_network.rb +7 -2
- data/lib/generated/azure_mgmt_network/application_gateways.rb +15 -15
- data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +1 -1
- data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +1 -1
- data/lib/generated/azure_mgmt_network/express_route_circuits.rb +47 -47
- data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +8 -8
- data/lib/generated/azure_mgmt_network/load_balancers.rb +22 -22
- data/lib/generated/azure_mgmt_network/local_network_gateways.rb +8 -8
- data/lib/generated/azure_mgmt_network/models/application_gateway.rb +59 -29
- data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +85 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +2 -2
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +5 -6
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +30 -12
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +9 -10
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +5 -5
- data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +12 -15
- data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +6 -7
- data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +6 -8
- data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +11 -11
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +10 -13
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +6 -7
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +7 -7
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +52 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +9 -9
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +0 -32
- data/lib/generated/azure_mgmt_network/models/{effective_network_security_rules.rb → effective_network_security_rule.rb} +4 -4
- data/lib/generated/azure_mgmt_network/models/effective_route.rb +6 -14
- data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +0 -31
- data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +10 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +21 -0
- data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +62 -0
- data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +96 -0
- data/lib/generated/azure_mgmt_network/models/subnet.rb +19 -0
- data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +41 -0
- data/lib/generated/azure_mgmt_network/network_interfaces.rb +41 -445
- data/lib/generated/azure_mgmt_network/network_management_client.rb +1 -1
- data/lib/generated/azure_mgmt_network/network_security_groups.rb +1 -1
- data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +15 -15
- data/lib/generated/azure_mgmt_network/route_tables.rb +1 -1
- data/lib/generated/azure_mgmt_network/routes.rb +8 -8
- data/lib/generated/azure_mgmt_network/security_rules.rb +8 -8
- data/lib/generated/azure_mgmt_network/subnets.rb +8 -8
- data/lib/generated/azure_mgmt_network/usages.rb +115 -4
- data/lib/generated/azure_mgmt_network/version.rb +1 -1
- data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1 -1
- data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +8 -8
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +8 -8
- data/lib/generated/azure_mgmt_network/virtual_networks.rb +98 -1
- metadata +10 -5
@@ -27,6 +27,10 @@ module Azure::ARM::Network
|
|
27
27
|
# network interface IP configurations using subnet
|
28
28
|
attr_accessor :ip_configurations
|
29
29
|
|
30
|
+
# @return [Array<ResourceNavigationLink>] Gets array of references to
|
31
|
+
# the external resources using subnet
|
32
|
+
attr_accessor :resource_navigation_links
|
33
|
+
|
30
34
|
# @return [String] Gets provisioning state of the resource
|
31
35
|
attr_accessor :provisioning_state
|
32
36
|
|
@@ -97,6 +101,21 @@ module Azure::ARM::Network
|
|
97
101
|
}
|
98
102
|
}
|
99
103
|
},
|
104
|
+
resource_navigation_links: {
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'properties.resourceNavigationLinks',
|
107
|
+
type: {
|
108
|
+
name: 'Sequence',
|
109
|
+
element: {
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'ResourceNavigationLinkElementType',
|
112
|
+
type: {
|
113
|
+
name: 'Composite',
|
114
|
+
class_name: 'ResourceNavigationLink'
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
},
|
100
119
|
provisioning_state: {
|
101
120
|
required: false,
|
102
121
|
serialized_name: 'properties.provisioningState',
|
@@ -15,6 +15,40 @@ module Azure::ARM::Network
|
|
15
15
|
# @return [Array<Usage>] Gets or sets the list Network Resource Usages.
|
16
16
|
attr_accessor :value
|
17
17
|
|
18
|
+
# @return [String] URL to get the next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# return [Proc] with next page method call.
|
22
|
+
attr_accessor :next_method
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
26
|
+
#
|
27
|
+
# @return [Array<Usage>] operation results.
|
28
|
+
#
|
29
|
+
def get_all_items
|
30
|
+
items = @value
|
31
|
+
page = self
|
32
|
+
while page.next_link != nil do
|
33
|
+
page = page.get_next_page
|
34
|
+
items.concat(page.value)
|
35
|
+
end
|
36
|
+
items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets the next page of results.
|
41
|
+
#
|
42
|
+
# @return [UsagesListResult] with next page content.
|
43
|
+
#
|
44
|
+
def get_next_page
|
45
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
46
|
+
unless response.nil?
|
47
|
+
@next_link = response.body.next_link
|
48
|
+
@value = response.body.value
|
49
|
+
self
|
50
|
+
end
|
51
|
+
end
|
18
52
|
|
19
53
|
#
|
20
54
|
# Mapper for UsagesListResult class as Ruby Hash.
|
@@ -42,6 +76,13 @@ module Azure::ARM::Network
|
|
42
76
|
}
|
43
77
|
}
|
44
78
|
}
|
79
|
+
},
|
80
|
+
next_link: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'nextLink',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
45
86
|
}
|
46
87
|
}
|
47
88
|
}
|
@@ -22,7 +22,7 @@ module Azure::ARM::Network
|
|
22
22
|
@client = client
|
23
23
|
end
|
24
24
|
|
25
|
-
# @return reference to the NetworkManagementClient
|
25
|
+
# @return [NetworkManagementClient] reference to the NetworkManagementClient
|
26
26
|
attr_reader :client
|
27
27
|
|
28
28
|
#
|
@@ -777,8 +777,8 @@ module Azure::ARM::Network
|
|
777
777
|
end
|
778
778
|
|
779
779
|
#
|
780
|
-
# The List networkInterfaces
|
781
|
-
# subscription.
|
780
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
781
|
+
# a subscription.
|
782
782
|
#
|
783
783
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
784
784
|
# will be added to the HTTP request.
|
@@ -798,8 +798,8 @@ module Azure::ARM::Network
|
|
798
798
|
end
|
799
799
|
|
800
800
|
#
|
801
|
-
# The List networkInterfaces
|
802
|
-
# subscription.
|
801
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
802
|
+
# a subscription.
|
803
803
|
#
|
804
804
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
805
805
|
# will be added to the HTTP request.
|
@@ -812,8 +812,8 @@ module Azure::ARM::Network
|
|
812
812
|
end
|
813
813
|
|
814
814
|
#
|
815
|
-
# The List networkInterfaces
|
816
|
-
# subscription.
|
815
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
816
|
+
# a subscription.
|
817
817
|
#
|
818
818
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
819
819
|
# will be added to the HTTP request.
|
@@ -825,8 +825,8 @@ module Azure::ARM::Network
|
|
825
825
|
end
|
826
826
|
|
827
827
|
#
|
828
|
-
# The List networkInterfaces
|
829
|
-
# subscription.
|
828
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
829
|
+
# a subscription.
|
830
830
|
#
|
831
831
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
832
832
|
# to the HTTP request.
|
@@ -887,8 +887,8 @@ module Azure::ARM::Network
|
|
887
887
|
end
|
888
888
|
|
889
889
|
#
|
890
|
-
# The List networkInterfaces
|
891
|
-
# resource group.
|
890
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
891
|
+
# a resource group.
|
892
892
|
#
|
893
893
|
# @param resource_group_name [String] The name of the resource group.
|
894
894
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -909,8 +909,8 @@ module Azure::ARM::Network
|
|
909
909
|
end
|
910
910
|
|
911
911
|
#
|
912
|
-
# The List networkInterfaces
|
913
|
-
# resource group.
|
912
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
913
|
+
# a resource group.
|
914
914
|
#
|
915
915
|
# @param resource_group_name [String] The name of the resource group.
|
916
916
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -924,8 +924,8 @@ module Azure::ARM::Network
|
|
924
924
|
end
|
925
925
|
|
926
926
|
#
|
927
|
-
# The List networkInterfaces
|
928
|
-
# resource group.
|
927
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
928
|
+
# a resource group.
|
929
929
|
#
|
930
930
|
# @param resource_group_name [String] The name of the resource group.
|
931
931
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -938,8 +938,8 @@ module Azure::ARM::Network
|
|
938
938
|
end
|
939
939
|
|
940
940
|
#
|
941
|
-
# The List networkInterfaces
|
942
|
-
# resource group.
|
941
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
942
|
+
# a resource group.
|
943
943
|
#
|
944
944
|
# @param resource_group_name [String] The name of the resource group.
|
945
945
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -1013,51 +1013,8 @@ module Azure::ARM::Network
|
|
1013
1013
|
# @return [EffectiveRouteListResult] operation results.
|
1014
1014
|
#
|
1015
1015
|
def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
|
1016
|
-
|
1017
|
-
|
1018
|
-
end
|
1019
|
-
|
1020
|
-
#
|
1021
|
-
# @param resource_group_name [String] The name of the resource group.
|
1022
|
-
# @param network_interface_name [String] The name of the network interface.
|
1023
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1024
|
-
# will be added to the HTTP request.
|
1025
|
-
#
|
1026
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
1027
|
-
# response.
|
1028
|
-
#
|
1029
|
-
def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
|
1030
|
-
# Send request
|
1031
|
-
promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers)
|
1032
|
-
|
1033
|
-
promise = promise.then do |response|
|
1034
|
-
# Defining deserialization method.
|
1035
|
-
deserialize_method = lambda do |parsed_response|
|
1036
|
-
result_mapper = EffectiveRouteListResult.mapper()
|
1037
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
1038
|
-
end
|
1039
|
-
|
1040
|
-
# Waiting for response.
|
1041
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
1042
|
-
end
|
1043
|
-
|
1044
|
-
promise
|
1045
|
-
end
|
1046
|
-
|
1047
|
-
#
|
1048
|
-
# The get effective routetable operation retrieves all the route tables
|
1049
|
-
# applied on a networkInterface.
|
1050
|
-
#
|
1051
|
-
# @param resource_group_name [String] The name of the resource group.
|
1052
|
-
# @param network_interface_name [String] The name of the network interface.
|
1053
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1054
|
-
# will be added to the HTTP request.
|
1055
|
-
#
|
1056
|
-
# @return [Array<EffectiveRoute>] operation results.
|
1057
|
-
#
|
1058
|
-
def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
|
1059
|
-
first_page = get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers)
|
1060
|
-
first_page.get_all_items
|
1016
|
+
response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
|
1017
|
+
response.body unless response.nil?
|
1061
1018
|
end
|
1062
1019
|
|
1063
1020
|
#
|
@@ -1096,34 +1053,11 @@ module Azure::ARM::Network
|
|
1096
1053
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1097
1054
|
# will be added to the HTTP request.
|
1098
1055
|
#
|
1099
|
-
# @return [EffectiveRouteListResult]
|
1100
|
-
# response.
|
1101
|
-
#
|
1102
|
-
def begin_get_effective_route_table_as_lazy(resource_group_name, network_interface_name, custom_headers = nil)
|
1103
|
-
response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
|
1104
|
-
unless response.nil?
|
1105
|
-
page = response.body
|
1106
|
-
page.next_method = Proc.new do |next_link|
|
1107
|
-
begin_get_effective_route_table_next_async(next_link, custom_headers)
|
1108
|
-
end
|
1109
|
-
page
|
1110
|
-
end
|
1111
|
-
end
|
1112
|
-
|
1113
|
-
#
|
1114
|
-
# The get effective routetable operation retrieves all the route tables
|
1115
|
-
# applied on a networkInterface.
|
1116
|
-
#
|
1117
|
-
# @param resource_group_name [String] The name of the resource group.
|
1118
|
-
# @param network_interface_name [String] The name of the network interface.
|
1119
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1120
|
-
# will be added to the HTTP request.
|
1121
|
-
#
|
1122
|
-
# @return [Array<EffectiveRoute>] operation results.
|
1056
|
+
# @return [EffectiveRouteListResult] operation results.
|
1123
1057
|
#
|
1124
1058
|
def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
|
1125
|
-
|
1126
|
-
|
1059
|
+
response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
|
1060
|
+
response.body unless response.nil?
|
1127
1061
|
end
|
1128
1062
|
|
1129
1063
|
#
|
@@ -1182,7 +1116,7 @@ module Azure::ARM::Network
|
|
1182
1116
|
promise = promise.then do |http_response|
|
1183
1117
|
status_code = http_response.status
|
1184
1118
|
response_content = http_response.body
|
1185
|
-
unless status_code == 200
|
1119
|
+
unless status_code == 200 || status_code == 202
|
1186
1120
|
error_model = JSON.load(response_content)
|
1187
1121
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1188
1122
|
end
|
@@ -1219,51 +1153,8 @@ module Azure::ARM::Network
|
|
1219
1153
|
# @return [EffectiveNetworkSecurityGroupListResult] operation results.
|
1220
1154
|
#
|
1221
1155
|
def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
|
1222
|
-
|
1223
|
-
|
1224
|
-
end
|
1225
|
-
|
1226
|
-
#
|
1227
|
-
# @param resource_group_name [String] The name of the resource group.
|
1228
|
-
# @param network_interface_name [String] The name of the network interface.
|
1229
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1230
|
-
# will be added to the HTTP request.
|
1231
|
-
#
|
1232
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
1233
|
-
# response.
|
1234
|
-
#
|
1235
|
-
def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
|
1236
|
-
# Send request
|
1237
|
-
promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers)
|
1238
|
-
|
1239
|
-
promise = promise.then do |response|
|
1240
|
-
# Defining deserialization method.
|
1241
|
-
deserialize_method = lambda do |parsed_response|
|
1242
|
-
result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
|
1243
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
1244
|
-
end
|
1245
|
-
|
1246
|
-
# Waiting for response.
|
1247
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
1248
|
-
end
|
1249
|
-
|
1250
|
-
promise
|
1251
|
-
end
|
1252
|
-
|
1253
|
-
#
|
1254
|
-
# The list effective network security group operation retrieves all the
|
1255
|
-
# network security groups applied on a networkInterface.
|
1256
|
-
#
|
1257
|
-
# @param resource_group_name [String] The name of the resource group.
|
1258
|
-
# @param network_interface_name [String] The name of the network interface.
|
1259
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1260
|
-
# will be added to the HTTP request.
|
1261
|
-
#
|
1262
|
-
# @return [Array<EffectiveNetworkSecurityGroup>] operation results.
|
1263
|
-
#
|
1264
|
-
def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
|
1265
|
-
first_page = list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers)
|
1266
|
-
first_page.get_all_items
|
1156
|
+
response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
|
1157
|
+
response.body unless response.nil?
|
1267
1158
|
end
|
1268
1159
|
|
1269
1160
|
#
|
@@ -1302,34 +1193,11 @@ module Azure::ARM::Network
|
|
1302
1193
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1303
1194
|
# will be added to the HTTP request.
|
1304
1195
|
#
|
1305
|
-
# @return [EffectiveNetworkSecurityGroupListResult]
|
1306
|
-
# to pages of the response.
|
1307
|
-
#
|
1308
|
-
def begin_list_effective_network_security_groups_as_lazy(resource_group_name, network_interface_name, custom_headers = nil)
|
1309
|
-
response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
|
1310
|
-
unless response.nil?
|
1311
|
-
page = response.body
|
1312
|
-
page.next_method = Proc.new do |next_link|
|
1313
|
-
begin_list_effective_network_security_groups_next_async(next_link, custom_headers)
|
1314
|
-
end
|
1315
|
-
page
|
1316
|
-
end
|
1317
|
-
end
|
1318
|
-
|
1319
|
-
#
|
1320
|
-
# The list effective network security group operation retrieves all the
|
1321
|
-
# network security groups applied on a networkInterface.
|
1322
|
-
#
|
1323
|
-
# @param resource_group_name [String] The name of the resource group.
|
1324
|
-
# @param network_interface_name [String] The name of the network interface.
|
1325
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1326
|
-
# will be added to the HTTP request.
|
1327
|
-
#
|
1328
|
-
# @return [Array<EffectiveNetworkSecurityGroup>] operation results.
|
1196
|
+
# @return [EffectiveNetworkSecurityGroupListResult] operation results.
|
1329
1197
|
#
|
1330
1198
|
def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
|
1331
|
-
|
1332
|
-
|
1199
|
+
response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
|
1200
|
+
response.body unless response.nil?
|
1333
1201
|
end
|
1334
1202
|
|
1335
1203
|
#
|
@@ -1388,7 +1256,7 @@ module Azure::ARM::Network
|
|
1388
1256
|
promise = promise.then do |http_response|
|
1389
1257
|
status_code = http_response.status
|
1390
1258
|
response_content = http_response.body
|
1391
|
-
unless status_code == 200
|
1259
|
+
unless status_code == 200 || status_code == 202
|
1392
1260
|
error_model = JSON.load(response_content)
|
1393
1261
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1394
1262
|
end
|
@@ -1600,8 +1468,8 @@ module Azure::ARM::Network
|
|
1600
1468
|
end
|
1601
1469
|
|
1602
1470
|
#
|
1603
|
-
# The List networkInterfaces
|
1604
|
-
# subscription.
|
1471
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
1472
|
+
# a subscription.
|
1605
1473
|
#
|
1606
1474
|
# @param next_page_link [String] The NextLink from the previous successful
|
1607
1475
|
# call to List operation.
|
@@ -1616,8 +1484,8 @@ module Azure::ARM::Network
|
|
1616
1484
|
end
|
1617
1485
|
|
1618
1486
|
#
|
1619
|
-
# The List networkInterfaces
|
1620
|
-
# subscription.
|
1487
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
1488
|
+
# a subscription.
|
1621
1489
|
#
|
1622
1490
|
# @param next_page_link [String] The NextLink from the previous successful
|
1623
1491
|
# call to List operation.
|
@@ -1631,8 +1499,8 @@ module Azure::ARM::Network
|
|
1631
1499
|
end
|
1632
1500
|
|
1633
1501
|
#
|
1634
|
-
# The List networkInterfaces
|
1635
|
-
# subscription.
|
1502
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
1503
|
+
# a subscription.
|
1636
1504
|
#
|
1637
1505
|
# @param next_page_link [String] The NextLink from the previous successful
|
1638
1506
|
# call to List operation.
|
@@ -1693,8 +1561,8 @@ module Azure::ARM::Network
|
|
1693
1561
|
end
|
1694
1562
|
|
1695
1563
|
#
|
1696
|
-
# The List networkInterfaces
|
1697
|
-
# resource group.
|
1564
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
1565
|
+
# a resource group.
|
1698
1566
|
#
|
1699
1567
|
# @param next_page_link [String] The NextLink from the previous successful
|
1700
1568
|
# call to List operation.
|
@@ -1709,8 +1577,8 @@ module Azure::ARM::Network
|
|
1709
1577
|
end
|
1710
1578
|
|
1711
1579
|
#
|
1712
|
-
# The List networkInterfaces
|
1713
|
-
# resource group.
|
1580
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
1581
|
+
# a resource group.
|
1714
1582
|
#
|
1715
1583
|
# @param next_page_link [String] The NextLink from the previous successful
|
1716
1584
|
# call to List operation.
|
@@ -1724,8 +1592,8 @@ module Azure::ARM::Network
|
|
1724
1592
|
end
|
1725
1593
|
|
1726
1594
|
#
|
1727
|
-
# The List networkInterfaces
|
1728
|
-
# resource group.
|
1595
|
+
# The List networkInterfaces operation retrieves all the networkInterfaces in
|
1596
|
+
# a resource group.
|
1729
1597
|
#
|
1730
1598
|
# @param next_page_link [String] The NextLink from the previous successful
|
1731
1599
|
# call to List operation.
|
@@ -1785,277 +1653,5 @@ module Azure::ARM::Network
|
|
1785
1653
|
promise.execute
|
1786
1654
|
end
|
1787
1655
|
|
1788
|
-
#
|
1789
|
-
# The get effective routetable operation retrieves all the route tables
|
1790
|
-
# applied on a networkInterface.
|
1791
|
-
#
|
1792
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1793
|
-
# call to List operation.
|
1794
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1795
|
-
# will be added to the HTTP request.
|
1796
|
-
#
|
1797
|
-
# @return [EffectiveRouteListResult] operation results.
|
1798
|
-
#
|
1799
|
-
def get_effective_route_table_next(next_page_link, custom_headers = nil)
|
1800
|
-
response = get_effective_route_table_next_async(next_page_link, custom_headers).value!
|
1801
|
-
response.body unless response.nil?
|
1802
|
-
end
|
1803
|
-
|
1804
|
-
#
|
1805
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1806
|
-
# call to List operation.
|
1807
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1808
|
-
# will be added to the HTTP request.
|
1809
|
-
#
|
1810
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
1811
|
-
# response.
|
1812
|
-
#
|
1813
|
-
def get_effective_route_table_next_async(next_page_link, custom_headers = nil)
|
1814
|
-
# Send request
|
1815
|
-
promise = begin_get_effective_route_table_next_async(next_page_link, custom_headers)
|
1816
|
-
|
1817
|
-
promise = promise.then do |response|
|
1818
|
-
# Defining deserialization method.
|
1819
|
-
deserialize_method = lambda do |parsed_response|
|
1820
|
-
result_mapper = EffectiveRouteListResult.mapper()
|
1821
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
1822
|
-
end
|
1823
|
-
|
1824
|
-
# Waiting for response.
|
1825
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
1826
|
-
end
|
1827
|
-
|
1828
|
-
promise
|
1829
|
-
end
|
1830
|
-
|
1831
|
-
#
|
1832
|
-
# The get effective routetable operation retrieves all the route tables
|
1833
|
-
# applied on a networkInterface.
|
1834
|
-
#
|
1835
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1836
|
-
# call to List operation.
|
1837
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1838
|
-
# will be added to the HTTP request.
|
1839
|
-
#
|
1840
|
-
# @return [EffectiveRouteListResult] operation results.
|
1841
|
-
#
|
1842
|
-
def begin_get_effective_route_table_next(next_page_link, custom_headers = nil)
|
1843
|
-
response = begin_get_effective_route_table_next_async(next_page_link, custom_headers).value!
|
1844
|
-
response.body unless response.nil?
|
1845
|
-
end
|
1846
|
-
|
1847
|
-
#
|
1848
|
-
# The get effective routetable operation retrieves all the route tables
|
1849
|
-
# applied on a networkInterface.
|
1850
|
-
#
|
1851
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1852
|
-
# call to List operation.
|
1853
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1854
|
-
# will be added to the HTTP request.
|
1855
|
-
#
|
1856
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1857
|
-
#
|
1858
|
-
def begin_get_effective_route_table_next_with_http_info(next_page_link, custom_headers = nil)
|
1859
|
-
begin_get_effective_route_table_next_async(next_page_link, custom_headers).value!
|
1860
|
-
end
|
1861
|
-
|
1862
|
-
#
|
1863
|
-
# The get effective routetable operation retrieves all the route tables
|
1864
|
-
# applied on a networkInterface.
|
1865
|
-
#
|
1866
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1867
|
-
# call to List operation.
|
1868
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1869
|
-
# to the HTTP request.
|
1870
|
-
#
|
1871
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1872
|
-
#
|
1873
|
-
def begin_get_effective_route_table_next_async(next_page_link, custom_headers = nil)
|
1874
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1875
|
-
|
1876
|
-
|
1877
|
-
request_headers = {}
|
1878
|
-
|
1879
|
-
# Set Headers
|
1880
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1881
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1882
|
-
path_template = '{nextLink}'
|
1883
|
-
options = {
|
1884
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1885
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1886
|
-
headers: request_headers.merge(custom_headers || {})
|
1887
|
-
}
|
1888
|
-
|
1889
|
-
request_url = @base_url || @client.base_url
|
1890
|
-
|
1891
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1892
|
-
promise = request.run_promise do |req|
|
1893
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1894
|
-
end
|
1895
|
-
|
1896
|
-
promise = promise.then do |http_response|
|
1897
|
-
status_code = http_response.status
|
1898
|
-
response_content = http_response.body
|
1899
|
-
unless status_code == 200
|
1900
|
-
error_model = JSON.load(response_content)
|
1901
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1902
|
-
end
|
1903
|
-
|
1904
|
-
# Create Result
|
1905
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1906
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1907
|
-
# Deserialize Response
|
1908
|
-
if status_code == 200
|
1909
|
-
begin
|
1910
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1911
|
-
result_mapper = EffectiveRouteListResult.mapper()
|
1912
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1913
|
-
rescue Exception => e
|
1914
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1915
|
-
end
|
1916
|
-
end
|
1917
|
-
|
1918
|
-
result
|
1919
|
-
end
|
1920
|
-
|
1921
|
-
promise.execute
|
1922
|
-
end
|
1923
|
-
|
1924
|
-
#
|
1925
|
-
# The list effective network security group operation retrieves all the
|
1926
|
-
# network security groups applied on a networkInterface.
|
1927
|
-
#
|
1928
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1929
|
-
# call to List operation.
|
1930
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1931
|
-
# will be added to the HTTP request.
|
1932
|
-
#
|
1933
|
-
# @return [EffectiveNetworkSecurityGroupListResult] operation results.
|
1934
|
-
#
|
1935
|
-
def list_effective_network_security_groups_next(next_page_link, custom_headers = nil)
|
1936
|
-
response = list_effective_network_security_groups_next_async(next_page_link, custom_headers).value!
|
1937
|
-
response.body unless response.nil?
|
1938
|
-
end
|
1939
|
-
|
1940
|
-
#
|
1941
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1942
|
-
# call to List operation.
|
1943
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1944
|
-
# will be added to the HTTP request.
|
1945
|
-
#
|
1946
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
1947
|
-
# response.
|
1948
|
-
#
|
1949
|
-
def list_effective_network_security_groups_next_async(next_page_link, custom_headers = nil)
|
1950
|
-
# Send request
|
1951
|
-
promise = begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers)
|
1952
|
-
|
1953
|
-
promise = promise.then do |response|
|
1954
|
-
# Defining deserialization method.
|
1955
|
-
deserialize_method = lambda do |parsed_response|
|
1956
|
-
result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
|
1957
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
1958
|
-
end
|
1959
|
-
|
1960
|
-
# Waiting for response.
|
1961
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
1962
|
-
end
|
1963
|
-
|
1964
|
-
promise
|
1965
|
-
end
|
1966
|
-
|
1967
|
-
#
|
1968
|
-
# The list effective network security group operation retrieves all the
|
1969
|
-
# network security groups applied on a networkInterface.
|
1970
|
-
#
|
1971
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1972
|
-
# call to List operation.
|
1973
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1974
|
-
# will be added to the HTTP request.
|
1975
|
-
#
|
1976
|
-
# @return [EffectiveNetworkSecurityGroupListResult] operation results.
|
1977
|
-
#
|
1978
|
-
def begin_list_effective_network_security_groups_next(next_page_link, custom_headers = nil)
|
1979
|
-
response = begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers).value!
|
1980
|
-
response.body unless response.nil?
|
1981
|
-
end
|
1982
|
-
|
1983
|
-
#
|
1984
|
-
# The list effective network security group operation retrieves all the
|
1985
|
-
# network security groups applied on a networkInterface.
|
1986
|
-
#
|
1987
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1988
|
-
# call to List operation.
|
1989
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1990
|
-
# will be added to the HTTP request.
|
1991
|
-
#
|
1992
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1993
|
-
#
|
1994
|
-
def begin_list_effective_network_security_groups_next_with_http_info(next_page_link, custom_headers = nil)
|
1995
|
-
begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers).value!
|
1996
|
-
end
|
1997
|
-
|
1998
|
-
#
|
1999
|
-
# The list effective network security group operation retrieves all the
|
2000
|
-
# network security groups applied on a networkInterface.
|
2001
|
-
#
|
2002
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2003
|
-
# call to List operation.
|
2004
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2005
|
-
# to the HTTP request.
|
2006
|
-
#
|
2007
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2008
|
-
#
|
2009
|
-
def begin_list_effective_network_security_groups_next_async(next_page_link, custom_headers = nil)
|
2010
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2011
|
-
|
2012
|
-
|
2013
|
-
request_headers = {}
|
2014
|
-
|
2015
|
-
# Set Headers
|
2016
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2017
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2018
|
-
path_template = '{nextLink}'
|
2019
|
-
options = {
|
2020
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2021
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2022
|
-
headers: request_headers.merge(custom_headers || {})
|
2023
|
-
}
|
2024
|
-
|
2025
|
-
request_url = @base_url || @client.base_url
|
2026
|
-
|
2027
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
2028
|
-
promise = request.run_promise do |req|
|
2029
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
2030
|
-
end
|
2031
|
-
|
2032
|
-
promise = promise.then do |http_response|
|
2033
|
-
status_code = http_response.status
|
2034
|
-
response_content = http_response.body
|
2035
|
-
unless status_code == 200
|
2036
|
-
error_model = JSON.load(response_content)
|
2037
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
2038
|
-
end
|
2039
|
-
|
2040
|
-
# Create Result
|
2041
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
2042
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2043
|
-
# Deserialize Response
|
2044
|
-
if status_code == 200
|
2045
|
-
begin
|
2046
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2047
|
-
result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
|
2048
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2049
|
-
rescue Exception => e
|
2050
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2051
|
-
end
|
2052
|
-
end
|
2053
|
-
|
2054
|
-
result
|
2055
|
-
end
|
2056
|
-
|
2057
|
-
promise.execute
|
2058
|
-
end
|
2059
|
-
|
2060
1656
|
end
|
2061
1657
|
end
|