azure_mgmt_network 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +91 -82
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +17 -20
  4. data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +216 -0
  5. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +9 -12
  6. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +9 -12
  7. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +21 -24
  8. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +3 -6
  9. data/lib/generated/azure_mgmt_network/load_balancers.rb +11 -14
  10. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +9 -12
  11. data/lib/generated/azure_mgmt_network/models/{network_operation_status.rb → access.rb} +4 -5
  12. data/lib/generated/azure_mgmt_network/models/{error.rb → bgp_service_community.rb} +39 -36
  13. data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +94 -0
  14. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +1 -1
  15. data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +84 -0
  16. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
  17. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +1 -0
  18. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -0
  19. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +13 -1
  20. data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +144 -0
  21. data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +136 -0
  22. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +13 -14
  23. data/lib/generated/azure_mgmt_network/models/route_filter.rb +141 -0
  24. data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +94 -0
  25. data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +146 -0
  26. data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +94 -0
  27. data/lib/generated/azure_mgmt_network/network_interfaces.rb +251 -254
  28. data/lib/generated/azure_mgmt_network/network_management_client.rb +60 -53
  29. data/lib/generated/azure_mgmt_network/network_security_groups.rb +11 -14
  30. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +11 -14
  31. data/lib/generated/azure_mgmt_network/route_filter_rules.rb +773 -0
  32. data/lib/generated/azure_mgmt_network/route_filters.rb +942 -0
  33. data/lib/generated/azure_mgmt_network/route_tables.rb +11 -14
  34. data/lib/generated/azure_mgmt_network/routes.rb +9 -12
  35. data/lib/generated/azure_mgmt_network/security_rules.rb +9 -12
  36. data/lib/generated/azure_mgmt_network/subnets.rb +9 -12
  37. data/lib/generated/azure_mgmt_network/usages.rb +3 -6
  38. data/lib/generated/azure_mgmt_network/version.rb +1 -1
  39. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +15 -18
  40. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +13 -16
  41. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +9 -12
  42. data/lib/generated/azure_mgmt_network/virtual_networks.rb +13 -16
  43. metadata +17 -8
  44. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +0 -64
  45. data/lib/generated/azure_mgmt_network/models/error_details.rb +0 -65
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Response for the ListRouteFilters API service call.
10
+ #
11
+ class RouteFilterListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<RouteFilter>] Gets a list of route filters in a resource
16
+ # group.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to get the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<RouteFilter>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [RouteFilterListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for RouteFilterListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'RouteFilterListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'RouteFilterListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'RouteFilterElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'RouteFilter'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,146 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Route Filter Rule Resource
10
+ #
11
+ class RouteFilterRule < MsRestAzure::SubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Access] The access type of the rule. Valid values are:
16
+ # 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'
17
+ attr_accessor :access
18
+
19
+ # @return [String] The rule type of the rule. Valid value is:
20
+ # 'Community'. Default value: 'Community' .
21
+ attr_accessor :route_filter_rule_type
22
+
23
+ # @return [Array<String>] The collection for bgp community values to
24
+ # filter on. e.g. ['12076:5010','12076:5020']
25
+ attr_accessor :communities
26
+
27
+ # @return [String] The provisioning state of the resource. Possible
28
+ # values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'.
29
+ attr_accessor :provisioning_state
30
+
31
+ # @return [String] The name of the resource that is unique within a
32
+ # resource group. This name can be used to access the resource.
33
+ attr_accessor :name
34
+
35
+ # @return [String] Resource location.
36
+ attr_accessor :location
37
+
38
+ # @return [String] A unique read-only string that changes whenever the
39
+ # resource is updated.
40
+ attr_accessor :etag
41
+
42
+ # @return [Hash{String => String}] Resource tags.
43
+ attr_accessor :tags
44
+
45
+
46
+ #
47
+ # Mapper for RouteFilterRule class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ required: false,
53
+ serialized_name: 'RouteFilterRule',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'RouteFilterRule',
57
+ model_properties: {
58
+ id: {
59
+ required: false,
60
+ serialized_name: 'id',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ access: {
66
+ required: true,
67
+ serialized_name: 'properties.access',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ route_filter_rule_type: {
73
+ required: true,
74
+ is_constant: true,
75
+ serialized_name: 'properties.routeFilterRuleType',
76
+ default_value: 'Community',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ communities: {
82
+ required: true,
83
+ serialized_name: 'properties.communities',
84
+ type: {
85
+ name: 'Sequence',
86
+ element: {
87
+ required: false,
88
+ serialized_name: 'StringElementType',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ },
95
+ provisioning_state: {
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'properties.provisioningState',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ name: {
104
+ required: false,
105
+ read_only: true,
106
+ serialized_name: 'name',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ location: {
112
+ required: false,
113
+ serialized_name: 'location',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ etag: {
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'etag',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ tags: {
127
+ required: false,
128
+ serialized_name: 'tags',
129
+ type: {
130
+ name: 'Dictionary',
131
+ value: {
132
+ required: false,
133
+ serialized_name: 'StringElementType',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ module Models
8
+ #
9
+ # Response for the ListRouteFilterRules API service call
10
+ #
11
+ class RouteFilterRuleListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<RouteFilterRule>] Gets a list of RouteFilterRules in a
16
+ # resource group.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to get the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<RouteFilterRule>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [RouteFilterRuleListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for RouteFilterRuleListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'RouteFilterRuleListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'RouteFilterRuleListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'RouteFilterRuleElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'RouteFilterRule'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -5,10 +5,7 @@
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
- # The Microsoft Azure Network management API provides a RESTful set of web
9
- # services that interact with Microsoft Azure Networks service to manage your
10
- # network resources. The API has entities that capture the relationship
11
- # between an end user and the Microsoft Azure Networks service.
8
+ # Composite Swagger for Network Client
12
9
  #
13
10
  class NetworkInterfaces
14
11
  include Azure::ARM::Network::Models
@@ -108,7 +105,7 @@ module Azure::ARM::Network
108
105
  def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil)
109
106
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
110
107
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
111
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
108
+ api_version = '2016-09-01'
112
109
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
113
110
 
114
111
 
@@ -124,7 +121,7 @@ module Azure::ARM::Network
124
121
  options = {
125
122
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
126
123
  path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
127
- query_params: {'api-version' => @client.api_version,'$expand' => expand},
124
+ query_params: {'api-version' => api_version,'$expand' => expand},
128
125
  headers: request_headers.merge(custom_headers || {}),
129
126
  base_url: request_url
130
127
  }
@@ -204,58 +201,40 @@ module Azure::ARM::Network
204
201
  end
205
202
 
206
203
  #
207
- # Gets information about all network interfaces in a virtual machine in a
208
- # virtual machine scale set.
204
+ # Gets all network interfaces in a subscription.
209
205
  #
210
- # @param resource_group_name [String] The name of the resource group.
211
- # @param virtual_machine_scale_set_name [String] The name of the virtual
212
- # machine scale set.
213
- # @param virtualmachine_index [String] The virtual machine index.
214
206
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
215
207
  # will be added to the HTTP request.
216
208
  #
217
209
  # @return [Array<NetworkInterface>] operation results.
218
210
  #
219
- def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
220
- first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers)
211
+ def list_all(custom_headers = nil)
212
+ first_page = list_all_as_lazy(custom_headers)
221
213
  first_page.get_all_items
222
214
  end
223
215
 
224
216
  #
225
- # Gets information about all network interfaces in a virtual machine in a
226
- # virtual machine scale set.
217
+ # Gets all network interfaces in a subscription.
227
218
  #
228
- # @param resource_group_name [String] The name of the resource group.
229
- # @param virtual_machine_scale_set_name [String] The name of the virtual
230
- # machine scale set.
231
- # @param virtualmachine_index [String] The virtual machine index.
232
219
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
233
220
  # will be added to the HTTP request.
234
221
  #
235
222
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
236
223
  #
237
- def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
238
- list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
224
+ def list_all_with_http_info(custom_headers = nil)
225
+ list_all_async(custom_headers).value!
239
226
  end
240
227
 
241
228
  #
242
- # Gets information about all network interfaces in a virtual machine in a
243
- # virtual machine scale set.
229
+ # Gets all network interfaces in a subscription.
244
230
  #
245
- # @param resource_group_name [String] The name of the resource group.
246
- # @param virtual_machine_scale_set_name [String] The name of the virtual
247
- # machine scale set.
248
- # @param virtualmachine_index [String] The virtual machine index.
249
231
  # @param [Hash{String => String}] A hash of custom headers that will be added
250
232
  # to the HTTP request.
251
233
  #
252
234
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
253
235
  #
254
- def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
255
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
256
- fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
257
- fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
258
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
236
+ def list_all_async(custom_headers = nil)
237
+ api_version = '2016-09-01'
259
238
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
260
239
 
261
240
 
@@ -264,14 +243,14 @@ module Azure::ARM::Network
264
243
  # Set Headers
265
244
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
266
245
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
267
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces'
246
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces'
268
247
 
269
248
  request_url = @base_url || @client.base_url
270
249
 
271
250
  options = {
272
251
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
273
- path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'subscriptionId' => @client.subscription_id},
274
- query_params: {'api-version' => @client.api_version},
252
+ path_params: {'subscriptionId' => @client.subscription_id},
253
+ query_params: {'api-version' => api_version},
275
254
  headers: request_headers.merge(custom_headers || {}),
276
255
  base_url: request_url
277
256
  }
@@ -305,51 +284,44 @@ module Azure::ARM::Network
305
284
  end
306
285
 
307
286
  #
308
- # Gets all network interfaces in a virtual machine scale set.
287
+ # Gets all network interfaces in a resource group.
309
288
  #
310
289
  # @param resource_group_name [String] The name of the resource group.
311
- # @param virtual_machine_scale_set_name [String] The name of the virtual
312
- # machine scale set.
313
290
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
314
291
  # will be added to the HTTP request.
315
292
  #
316
293
  # @return [Array<NetworkInterface>] operation results.
317
294
  #
318
- def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
319
- first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers)
295
+ def list(resource_group_name, custom_headers = nil)
296
+ first_page = list_as_lazy(resource_group_name, custom_headers)
320
297
  first_page.get_all_items
321
298
  end
322
299
 
323
300
  #
324
- # Gets all network interfaces in a virtual machine scale set.
301
+ # Gets all network interfaces in a resource group.
325
302
  #
326
303
  # @param resource_group_name [String] The name of the resource group.
327
- # @param virtual_machine_scale_set_name [String] The name of the virtual
328
- # machine scale set.
329
304
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
330
305
  # will be added to the HTTP request.
331
306
  #
332
307
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
333
308
  #
334
- def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
335
- list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
309
+ def list_with_http_info(resource_group_name, custom_headers = nil)
310
+ list_async(resource_group_name, custom_headers).value!
336
311
  end
337
312
 
338
313
  #
339
- # Gets all network interfaces in a virtual machine scale set.
314
+ # Gets all network interfaces in a resource group.
340
315
  #
341
316
  # @param resource_group_name [String] The name of the resource group.
342
- # @param virtual_machine_scale_set_name [String] The name of the virtual
343
- # machine scale set.
344
317
  # @param [Hash{String => String}] A hash of custom headers that will be added
345
318
  # to the HTTP request.
346
319
  #
347
320
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
348
321
  #
349
- def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
322
+ def list_async(resource_group_name, custom_headers = nil)
350
323
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
351
- fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
352
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
324
+ api_version = '2016-09-01'
353
325
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
354
326
 
355
327
 
@@ -358,14 +330,14 @@ module Azure::ARM::Network
358
330
  # Set Headers
359
331
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
360
332
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
361
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces'
333
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces'
362
334
 
363
335
  request_url = @base_url || @client.base_url
364
336
 
365
337
  options = {
366
338
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
367
- path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
368
- query_params: {'api-version' => @client.api_version},
339
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
340
+ query_params: {'api-version' => api_version},
369
341
  headers: request_headers.merge(custom_headers || {}),
370
342
  base_url: request_url
371
343
  }
@@ -399,62 +371,142 @@ module Azure::ARM::Network
399
371
  end
400
372
 
401
373
  #
402
- # Get the specified network interface in a virtual machine scale set.
374
+ # Gets all route tables applied to a network interface.
375
+ #
376
+ # @param resource_group_name [String] The name of the resource group.
377
+ # @param network_interface_name [String] The name of the network interface.
378
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
379
+ # will be added to the HTTP request.
380
+ #
381
+ # @return [EffectiveRouteListResult] operation results.
382
+ #
383
+ def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
384
+ response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
385
+ response.body unless response.nil?
386
+ end
387
+
388
+ #
389
+ # @param resource_group_name [String] The name of the resource group.
390
+ # @param network_interface_name [String] The name of the network interface.
391
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
392
+ # will be added to the HTTP request.
393
+ #
394
+ # @return [Concurrent::Promise] promise which provides async access to http
395
+ # response.
396
+ #
397
+ def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
398
+ # Send request
399
+ promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers)
400
+
401
+ promise = promise.then do |response|
402
+ # Defining deserialization method.
403
+ deserialize_method = lambda do |parsed_response|
404
+ result_mapper = EffectiveRouteListResult.mapper()
405
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
406
+ end
407
+
408
+ # Waiting for response.
409
+ @client.get_long_running_operation_result(response, deserialize_method)
410
+ end
411
+
412
+ promise
413
+ end
414
+
415
+ #
416
+ # Gets all network security groups applied to a network interface.
417
+ #
418
+ # @param resource_group_name [String] The name of the resource group.
419
+ # @param network_interface_name [String] The name of the network interface.
420
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
421
+ # will be added to the HTTP request.
422
+ #
423
+ # @return [EffectiveNetworkSecurityGroupListResult] operation results.
424
+ #
425
+ def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
426
+ response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
427
+ response.body unless response.nil?
428
+ end
429
+
430
+ #
431
+ # @param resource_group_name [String] The name of the resource group.
432
+ # @param network_interface_name [String] The name of the network interface.
433
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
434
+ # will be added to the HTTP request.
435
+ #
436
+ # @return [Concurrent::Promise] promise which provides async access to http
437
+ # response.
438
+ #
439
+ def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
440
+ # Send request
441
+ promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers)
442
+
443
+ promise = promise.then do |response|
444
+ # Defining deserialization method.
445
+ deserialize_method = lambda do |parsed_response|
446
+ result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
447
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
448
+ end
449
+
450
+ # Waiting for response.
451
+ @client.get_long_running_operation_result(response, deserialize_method)
452
+ end
453
+
454
+ promise
455
+ end
456
+
457
+ #
458
+ # Gets information about all network interfaces in a virtual machine in a
459
+ # virtual machine scale set.
403
460
  #
404
461
  # @param resource_group_name [String] The name of the resource group.
405
462
  # @param virtual_machine_scale_set_name [String] The name of the virtual
406
463
  # machine scale set.
407
464
  # @param virtualmachine_index [String] The virtual machine index.
408
- # @param network_interface_name [String] The name of the network interface.
409
- # @param expand [String] Expands referenced resources.
410
465
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
411
466
  # will be added to the HTTP request.
412
467
  #
413
- # @return [NetworkInterface] operation results.
468
+ # @return [Array<NetworkInterface>] operation results.
414
469
  #
415
- def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
416
- response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value!
417
- response.body unless response.nil?
470
+ def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
471
+ first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers)
472
+ first_page.get_all_items
418
473
  end
419
474
 
420
475
  #
421
- # Get the specified network interface in a virtual machine scale set.
476
+ # Gets information about all network interfaces in a virtual machine in a
477
+ # virtual machine scale set.
422
478
  #
423
479
  # @param resource_group_name [String] The name of the resource group.
424
480
  # @param virtual_machine_scale_set_name [String] The name of the virtual
425
481
  # machine scale set.
426
482
  # @param virtualmachine_index [String] The virtual machine index.
427
- # @param network_interface_name [String] The name of the network interface.
428
- # @param expand [String] Expands referenced resources.
429
483
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
484
  # will be added to the HTTP request.
431
485
  #
432
486
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
433
487
  #
434
- def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
435
- get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value!
488
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
489
+ list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
436
490
  end
437
491
 
438
492
  #
439
- # Get the specified network interface in a virtual machine scale set.
493
+ # Gets information about all network interfaces in a virtual machine in a
494
+ # virtual machine scale set.
440
495
  #
441
496
  # @param resource_group_name [String] The name of the resource group.
442
497
  # @param virtual_machine_scale_set_name [String] The name of the virtual
443
498
  # machine scale set.
444
499
  # @param virtualmachine_index [String] The virtual machine index.
445
- # @param network_interface_name [String] The name of the network interface.
446
- # @param expand [String] Expands referenced resources.
447
500
  # @param [Hash{String => String}] A hash of custom headers that will be added
448
501
  # to the HTTP request.
449
502
  #
450
503
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
451
504
  #
452
- def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
505
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
453
506
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
454
507
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
455
508
  fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
456
- fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
457
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
509
+ api_version = '2016-09-01'
458
510
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
459
511
 
460
512
 
@@ -463,14 +515,14 @@ module Azure::ARM::Network
463
515
  # Set Headers
464
516
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
465
517
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
466
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}'
518
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces'
467
519
 
468
520
  request_url = @base_url || @client.base_url
469
521
 
470
522
  options = {
471
523
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
472
- path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
473
- query_params: {'api-version' => @client.api_version,'$expand' => expand},
524
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'subscriptionId' => @client.subscription_id},
525
+ query_params: {'api-version' => api_version},
474
526
  headers: request_headers.merge(custom_headers || {}),
475
527
  base_url: request_url
476
528
  }
@@ -490,7 +542,7 @@ module Azure::ARM::Network
490
542
  if status_code == 200
491
543
  begin
492
544
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
493
- result_mapper = NetworkInterface.mapper()
545
+ result_mapper = NetworkInterfaceListResult.mapper()
494
546
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
495
547
  rescue Exception => e
496
548
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -504,40 +556,51 @@ module Azure::ARM::Network
504
556
  end
505
557
 
506
558
  #
507
- # Gets all network interfaces in a subscription.
559
+ # Gets all network interfaces in a virtual machine scale set.
508
560
  #
561
+ # @param resource_group_name [String] The name of the resource group.
562
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
563
+ # machine scale set.
509
564
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
565
  # will be added to the HTTP request.
511
566
  #
512
567
  # @return [Array<NetworkInterface>] operation results.
513
568
  #
514
- def list_all(custom_headers = nil)
515
- first_page = list_all_as_lazy(custom_headers)
569
+ def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
570
+ first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers)
516
571
  first_page.get_all_items
517
572
  end
518
573
 
519
574
  #
520
- # Gets all network interfaces in a subscription.
575
+ # Gets all network interfaces in a virtual machine scale set.
521
576
  #
577
+ # @param resource_group_name [String] The name of the resource group.
578
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
579
+ # machine scale set.
522
580
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
523
581
  # will be added to the HTTP request.
524
582
  #
525
583
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
526
584
  #
527
- def list_all_with_http_info(custom_headers = nil)
528
- list_all_async(custom_headers).value!
585
+ def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
586
+ list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
529
587
  end
530
588
 
531
589
  #
532
- # Gets all network interfaces in a subscription.
590
+ # Gets all network interfaces in a virtual machine scale set.
533
591
  #
592
+ # @param resource_group_name [String] The name of the resource group.
593
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
594
+ # machine scale set.
534
595
  # @param [Hash{String => String}] A hash of custom headers that will be added
535
596
  # to the HTTP request.
536
597
  #
537
598
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
538
599
  #
539
- def list_all_async(custom_headers = nil)
540
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
600
+ def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
601
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
602
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
603
+ api_version = '2016-09-01'
541
604
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
542
605
 
543
606
 
@@ -546,14 +609,14 @@ module Azure::ARM::Network
546
609
  # Set Headers
547
610
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
548
611
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
549
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces'
612
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces'
550
613
 
551
614
  request_url = @base_url || @client.base_url
552
615
 
553
616
  options = {
554
617
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
555
- path_params: {'subscriptionId' => @client.subscription_id},
556
- query_params: {'api-version' => @client.api_version},
618
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
619
+ query_params: {'api-version' => api_version},
557
620
  headers: request_headers.merge(custom_headers || {}),
558
621
  base_url: request_url
559
622
  }
@@ -587,44 +650,62 @@ module Azure::ARM::Network
587
650
  end
588
651
 
589
652
  #
590
- # Gets all network interfaces in a resource group.
653
+ # Get the specified network interface in a virtual machine scale set.
591
654
  #
592
655
  # @param resource_group_name [String] The name of the resource group.
656
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
657
+ # machine scale set.
658
+ # @param virtualmachine_index [String] The virtual machine index.
659
+ # @param network_interface_name [String] The name of the network interface.
660
+ # @param expand [String] Expands referenced resources.
593
661
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
594
662
  # will be added to the HTTP request.
595
663
  #
596
- # @return [Array<NetworkInterface>] operation results.
664
+ # @return [NetworkInterface] operation results.
597
665
  #
598
- def list(resource_group_name, custom_headers = nil)
599
- first_page = list_as_lazy(resource_group_name, custom_headers)
600
- first_page.get_all_items
666
+ def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
667
+ response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value!
668
+ response.body unless response.nil?
601
669
  end
602
670
 
603
671
  #
604
- # Gets all network interfaces in a resource group.
672
+ # Get the specified network interface in a virtual machine scale set.
605
673
  #
606
674
  # @param resource_group_name [String] The name of the resource group.
675
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
676
+ # machine scale set.
677
+ # @param virtualmachine_index [String] The virtual machine index.
678
+ # @param network_interface_name [String] The name of the network interface.
679
+ # @param expand [String] Expands referenced resources.
607
680
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
608
681
  # will be added to the HTTP request.
609
682
  #
610
683
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
611
684
  #
612
- def list_with_http_info(resource_group_name, custom_headers = nil)
613
- list_async(resource_group_name, custom_headers).value!
685
+ def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
686
+ get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value!
614
687
  end
615
688
 
616
689
  #
617
- # Gets all network interfaces in a resource group.
690
+ # Get the specified network interface in a virtual machine scale set.
618
691
  #
619
692
  # @param resource_group_name [String] The name of the resource group.
693
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
694
+ # machine scale set.
695
+ # @param virtualmachine_index [String] The virtual machine index.
696
+ # @param network_interface_name [String] The name of the network interface.
697
+ # @param expand [String] Expands referenced resources.
620
698
  # @param [Hash{String => String}] A hash of custom headers that will be added
621
699
  # to the HTTP request.
622
700
  #
623
701
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
624
702
  #
625
- def list_async(resource_group_name, custom_headers = nil)
703
+ def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil)
626
704
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
627
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
705
+ fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
706
+ fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
707
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
708
+ api_version = '2016-09-01'
628
709
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
629
710
 
630
711
 
@@ -633,14 +714,14 @@ module Azure::ARM::Network
633
714
  # Set Headers
634
715
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
635
716
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
636
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces'
717
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}'
637
718
 
638
719
  request_url = @base_url || @client.base_url
639
720
 
640
721
  options = {
641
722
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
642
- path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
643
- query_params: {'api-version' => @client.api_version},
723
+ path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
724
+ query_params: {'api-version' => api_version,'$expand' => expand},
644
725
  headers: request_headers.merge(custom_headers || {}),
645
726
  base_url: request_url
646
727
  }
@@ -660,7 +741,7 @@ module Azure::ARM::Network
660
741
  if status_code == 200
661
742
  begin
662
743
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
663
- result_mapper = NetworkInterfaceListResult.mapper()
744
+ result_mapper = NetworkInterface.mapper()
664
745
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
665
746
  rescue Exception => e
666
747
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -673,90 +754,6 @@ module Azure::ARM::Network
673
754
  promise.execute
674
755
  end
675
756
 
676
- #
677
- # Gets all route tables applied to a network interface.
678
- #
679
- # @param resource_group_name [String] The name of the resource group.
680
- # @param network_interface_name [String] The name of the network interface.
681
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
682
- # will be added to the HTTP request.
683
- #
684
- # @return [EffectiveRouteListResult] operation results.
685
- #
686
- def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil)
687
- response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value!
688
- response.body unless response.nil?
689
- end
690
-
691
- #
692
- # @param resource_group_name [String] The name of the resource group.
693
- # @param network_interface_name [String] The name of the network interface.
694
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
695
- # will be added to the HTTP request.
696
- #
697
- # @return [Concurrent::Promise] promise which provides async access to http
698
- # response.
699
- #
700
- def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
701
- # Send request
702
- promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers)
703
-
704
- promise = promise.then do |response|
705
- # Defining deserialization method.
706
- deserialize_method = lambda do |parsed_response|
707
- result_mapper = EffectiveRouteListResult.mapper()
708
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
709
- end
710
-
711
- # Waiting for response.
712
- @client.get_long_running_operation_result(response, deserialize_method)
713
- end
714
-
715
- promise
716
- end
717
-
718
- #
719
- # Gets all network security groups applied to a network interface.
720
- #
721
- # @param resource_group_name [String] The name of the resource group.
722
- # @param network_interface_name [String] The name of the network interface.
723
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
724
- # will be added to the HTTP request.
725
- #
726
- # @return [EffectiveNetworkSecurityGroupListResult] operation results.
727
- #
728
- def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil)
729
- response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value!
730
- response.body unless response.nil?
731
- end
732
-
733
- #
734
- # @param resource_group_name [String] The name of the resource group.
735
- # @param network_interface_name [String] The name of the network interface.
736
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
737
- # will be added to the HTTP request.
738
- #
739
- # @return [Concurrent::Promise] promise which provides async access to http
740
- # response.
741
- #
742
- def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
743
- # Send request
744
- promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers)
745
-
746
- promise = promise.then do |response|
747
- # Defining deserialization method.
748
- deserialize_method = lambda do |parsed_response|
749
- result_mapper = EffectiveNetworkSecurityGroupListResult.mapper()
750
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
751
- end
752
-
753
- # Waiting for response.
754
- @client.get_long_running_operation_result(response, deserialize_method)
755
- end
756
-
757
- promise
758
- end
759
-
760
757
  #
761
758
  # Deletes the specified network interface.
762
759
  #
@@ -798,7 +795,7 @@ module Azure::ARM::Network
798
795
  def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil)
799
796
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
800
797
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
801
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
798
+ api_version = '2016-09-01'
802
799
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
803
800
 
804
801
 
@@ -814,7 +811,7 @@ module Azure::ARM::Network
814
811
  options = {
815
812
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
816
813
  path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
817
- query_params: {'api-version' => @client.api_version},
814
+ query_params: {'api-version' => api_version},
818
815
  headers: request_headers.merge(custom_headers || {}),
819
816
  base_url: request_url
820
817
  }
@@ -886,7 +883,7 @@ module Azure::ARM::Network
886
883
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
887
884
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
888
885
  fail ArgumentError, 'parameters is nil' if parameters.nil?
889
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
886
+ api_version = '2016-09-01'
890
887
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
891
888
 
892
889
 
@@ -910,7 +907,7 @@ module Azure::ARM::Network
910
907
  options = {
911
908
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
912
909
  path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
913
- query_params: {'api-version' => @client.api_version},
910
+ query_params: {'api-version' => api_version},
914
911
  body: request_content,
915
912
  headers: request_headers.merge(custom_headers || {}),
916
913
  base_url: request_url
@@ -996,7 +993,7 @@ module Azure::ARM::Network
996
993
  def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil)
997
994
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
998
995
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
999
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
996
+ api_version = '2016-09-01'
1000
997
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1001
998
 
1002
999
 
@@ -1012,7 +1009,7 @@ module Azure::ARM::Network
1012
1009
  options = {
1013
1010
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1014
1011
  path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1015
- query_params: {'api-version' => @client.api_version},
1012
+ query_params: {'api-version' => api_version},
1016
1013
  headers: request_headers.merge(custom_headers || {}),
1017
1014
  base_url: request_url
1018
1015
  }
@@ -1087,7 +1084,7 @@ module Azure::ARM::Network
1087
1084
  def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil)
1088
1085
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1089
1086
  fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
1090
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1087
+ api_version = '2016-09-01'
1091
1088
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1092
1089
 
1093
1090
 
@@ -1103,7 +1100,7 @@ module Azure::ARM::Network
1103
1100
  options = {
1104
1101
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1105
1102
  path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1106
- query_params: {'api-version' => @client.api_version},
1103
+ query_params: {'api-version' => api_version},
1107
1104
  headers: request_headers.merge(custom_headers || {}),
1108
1105
  base_url: request_url
1109
1106
  }
@@ -1137,8 +1134,7 @@ module Azure::ARM::Network
1137
1134
  end
1138
1135
 
1139
1136
  #
1140
- # Gets information about all network interfaces in a virtual machine in a
1141
- # virtual machine scale set.
1137
+ # Gets all network interfaces in a subscription.
1142
1138
  #
1143
1139
  # @param next_page_link [String] The NextLink from the previous successful call
1144
1140
  # to List operation.
@@ -1147,14 +1143,13 @@ module Azure::ARM::Network
1147
1143
  #
1148
1144
  # @return [NetworkInterfaceListResult] operation results.
1149
1145
  #
1150
- def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil)
1151
- response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1146
+ def list_all_next(next_page_link, custom_headers = nil)
1147
+ response = list_all_next_async(next_page_link, custom_headers).value!
1152
1148
  response.body unless response.nil?
1153
1149
  end
1154
1150
 
1155
1151
  #
1156
- # Gets information about all network interfaces in a virtual machine in a
1157
- # virtual machine scale set.
1152
+ # Gets all network interfaces in a subscription.
1158
1153
  #
1159
1154
  # @param next_page_link [String] The NextLink from the previous successful call
1160
1155
  # to List operation.
@@ -1163,13 +1158,12 @@ module Azure::ARM::Network
1163
1158
  #
1164
1159
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1165
1160
  #
1166
- def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
1167
- list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1161
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1162
+ list_all_next_async(next_page_link, custom_headers).value!
1168
1163
  end
1169
1164
 
1170
1165
  #
1171
- # Gets information about all network interfaces in a virtual machine in a
1172
- # virtual machine scale set.
1166
+ # Gets all network interfaces in a subscription.
1173
1167
  #
1174
1168
  # @param next_page_link [String] The NextLink from the previous successful call
1175
1169
  # to List operation.
@@ -1178,7 +1172,7 @@ module Azure::ARM::Network
1178
1172
  #
1179
1173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1180
1174
  #
1181
- def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil)
1175
+ def list_all_next_async(next_page_link, custom_headers = nil)
1182
1176
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1183
1177
 
1184
1178
 
@@ -1227,7 +1221,7 @@ module Azure::ARM::Network
1227
1221
  end
1228
1222
 
1229
1223
  #
1230
- # Gets all network interfaces in a virtual machine scale set.
1224
+ # Gets all network interfaces in a resource group.
1231
1225
  #
1232
1226
  # @param next_page_link [String] The NextLink from the previous successful call
1233
1227
  # to List operation.
@@ -1236,13 +1230,13 @@ module Azure::ARM::Network
1236
1230
  #
1237
1231
  # @return [NetworkInterfaceListResult] operation results.
1238
1232
  #
1239
- def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil)
1240
- response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
1233
+ def list_next(next_page_link, custom_headers = nil)
1234
+ response = list_next_async(next_page_link, custom_headers).value!
1241
1235
  response.body unless response.nil?
1242
1236
  end
1243
1237
 
1244
1238
  #
1245
- # Gets all network interfaces in a virtual machine scale set.
1239
+ # Gets all network interfaces in a resource group.
1246
1240
  #
1247
1241
  # @param next_page_link [String] The NextLink from the previous successful call
1248
1242
  # to List operation.
@@ -1251,12 +1245,12 @@ module Azure::ARM::Network
1251
1245
  #
1252
1246
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1253
1247
  #
1254
- def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
1255
- list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
1248
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
1249
+ list_next_async(next_page_link, custom_headers).value!
1256
1250
  end
1257
1251
 
1258
1252
  #
1259
- # Gets all network interfaces in a virtual machine scale set.
1253
+ # Gets all network interfaces in a resource group.
1260
1254
  #
1261
1255
  # @param next_page_link [String] The NextLink from the previous successful call
1262
1256
  # to List operation.
@@ -1265,7 +1259,7 @@ module Azure::ARM::Network
1265
1259
  #
1266
1260
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1267
1261
  #
1268
- def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil)
1262
+ def list_next_async(next_page_link, custom_headers = nil)
1269
1263
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1270
1264
 
1271
1265
 
@@ -1314,7 +1308,8 @@ module Azure::ARM::Network
1314
1308
  end
1315
1309
 
1316
1310
  #
1317
- # Gets all network interfaces in a subscription.
1311
+ # Gets information about all network interfaces in a virtual machine in a
1312
+ # virtual machine scale set.
1318
1313
  #
1319
1314
  # @param next_page_link [String] The NextLink from the previous successful call
1320
1315
  # to List operation.
@@ -1323,13 +1318,14 @@ module Azure::ARM::Network
1323
1318
  #
1324
1319
  # @return [NetworkInterfaceListResult] operation results.
1325
1320
  #
1326
- def list_all_next(next_page_link, custom_headers = nil)
1327
- response = list_all_next_async(next_page_link, custom_headers).value!
1321
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil)
1322
+ response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1328
1323
  response.body unless response.nil?
1329
1324
  end
1330
1325
 
1331
1326
  #
1332
- # Gets all network interfaces in a subscription.
1327
+ # Gets information about all network interfaces in a virtual machine in a
1328
+ # virtual machine scale set.
1333
1329
  #
1334
1330
  # @param next_page_link [String] The NextLink from the previous successful call
1335
1331
  # to List operation.
@@ -1338,12 +1334,13 @@ module Azure::ARM::Network
1338
1334
  #
1339
1335
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1340
1336
  #
1341
- def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1342
- list_all_next_async(next_page_link, custom_headers).value!
1337
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
1338
+ list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value!
1343
1339
  end
1344
1340
 
1345
1341
  #
1346
- # Gets all network interfaces in a subscription.
1342
+ # Gets information about all network interfaces in a virtual machine in a
1343
+ # virtual machine scale set.
1347
1344
  #
1348
1345
  # @param next_page_link [String] The NextLink from the previous successful call
1349
1346
  # to List operation.
@@ -1352,7 +1349,7 @@ module Azure::ARM::Network
1352
1349
  #
1353
1350
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1354
1351
  #
1355
- def list_all_next_async(next_page_link, custom_headers = nil)
1352
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil)
1356
1353
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1357
1354
 
1358
1355
 
@@ -1401,7 +1398,7 @@ module Azure::ARM::Network
1401
1398
  end
1402
1399
 
1403
1400
  #
1404
- # Gets all network interfaces in a resource group.
1401
+ # Gets all network interfaces in a virtual machine scale set.
1405
1402
  #
1406
1403
  # @param next_page_link [String] The NextLink from the previous successful call
1407
1404
  # to List operation.
@@ -1410,13 +1407,13 @@ module Azure::ARM::Network
1410
1407
  #
1411
1408
  # @return [NetworkInterfaceListResult] operation results.
1412
1409
  #
1413
- def list_next(next_page_link, custom_headers = nil)
1414
- response = list_next_async(next_page_link, custom_headers).value!
1410
+ def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil)
1411
+ response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
1415
1412
  response.body unless response.nil?
1416
1413
  end
1417
1414
 
1418
1415
  #
1419
- # Gets all network interfaces in a resource group.
1416
+ # Gets all network interfaces in a virtual machine scale set.
1420
1417
  #
1421
1418
  # @param next_page_link [String] The NextLink from the previous successful call
1422
1419
  # to List operation.
@@ -1425,12 +1422,12 @@ module Azure::ARM::Network
1425
1422
  #
1426
1423
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1427
1424
  #
1428
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1429
- list_next_async(next_page_link, custom_headers).value!
1425
+ def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil)
1426
+ list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value!
1430
1427
  end
1431
1428
 
1432
1429
  #
1433
- # Gets all network interfaces in a resource group.
1430
+ # Gets all network interfaces in a virtual machine scale set.
1434
1431
  #
1435
1432
  # @param next_page_link [String] The NextLink from the previous successful call
1436
1433
  # to List operation.
@@ -1439,7 +1436,7 @@ module Azure::ARM::Network
1439
1436
  #
1440
1437
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1441
1438
  #
1442
- def list_next_async(next_page_link, custom_headers = nil)
1439
+ def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil)
1443
1440
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1444
1441
 
1445
1442
 
@@ -1488,89 +1485,89 @@ module Azure::ARM::Network
1488
1485
  end
1489
1486
 
1490
1487
  #
1491
- # Gets information about all network interfaces in a virtual machine in a
1492
- # virtual machine scale set.
1488
+ # Gets all network interfaces in a subscription.
1493
1489
  #
1494
- # @param resource_group_name [String] The name of the resource group.
1495
- # @param virtual_machine_scale_set_name [String] The name of the virtual
1496
- # machine scale set.
1497
- # @param virtualmachine_index [String] The virtual machine index.
1498
1490
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1499
1491
  # will be added to the HTTP request.
1500
1492
  #
1501
1493
  # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1502
1494
  # the response.
1503
1495
  #
1504
- def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
1505
- response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
1496
+ def list_all_as_lazy(custom_headers = nil)
1497
+ response = list_all_async(custom_headers).value!
1506
1498
  unless response.nil?
1507
1499
  page = response.body
1508
1500
  page.next_method = Proc.new do |next_page_link|
1509
- list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers)
1501
+ list_all_next_async(next_page_link, custom_headers)
1510
1502
  end
1511
1503
  page
1512
1504
  end
1513
1505
  end
1514
1506
 
1515
1507
  #
1516
- # Gets all network interfaces in a virtual machine scale set.
1508
+ # Gets all network interfaces in a resource group.
1517
1509
  #
1518
1510
  # @param resource_group_name [String] The name of the resource group.
1519
- # @param virtual_machine_scale_set_name [String] The name of the virtual
1520
- # machine scale set.
1521
1511
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1522
1512
  # will be added to the HTTP request.
1523
1513
  #
1524
1514
  # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1525
1515
  # the response.
1526
1516
  #
1527
- def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
1528
- response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
1517
+ def list_as_lazy(resource_group_name, custom_headers = nil)
1518
+ response = list_async(resource_group_name, custom_headers).value!
1529
1519
  unless response.nil?
1530
1520
  page = response.body
1531
1521
  page.next_method = Proc.new do |next_page_link|
1532
- list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers)
1522
+ list_next_async(next_page_link, custom_headers)
1533
1523
  end
1534
1524
  page
1535
1525
  end
1536
1526
  end
1537
1527
 
1538
1528
  #
1539
- # Gets all network interfaces in a subscription.
1529
+ # Gets information about all network interfaces in a virtual machine in a
1530
+ # virtual machine scale set.
1540
1531
  #
1532
+ # @param resource_group_name [String] The name of the resource group.
1533
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
1534
+ # machine scale set.
1535
+ # @param virtualmachine_index [String] The virtual machine index.
1541
1536
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1542
1537
  # will be added to the HTTP request.
1543
1538
  #
1544
1539
  # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1545
1540
  # the response.
1546
1541
  #
1547
- def list_all_as_lazy(custom_headers = nil)
1548
- response = list_all_async(custom_headers).value!
1542
+ def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil)
1543
+ response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value!
1549
1544
  unless response.nil?
1550
1545
  page = response.body
1551
1546
  page.next_method = Proc.new do |next_page_link|
1552
- list_all_next_async(next_page_link, custom_headers)
1547
+ list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers)
1553
1548
  end
1554
1549
  page
1555
1550
  end
1556
1551
  end
1557
1552
 
1558
1553
  #
1559
- # Gets all network interfaces in a resource group.
1554
+ # Gets all network interfaces in a virtual machine scale set.
1560
1555
  #
1561
1556
  # @param resource_group_name [String] The name of the resource group.
1557
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
1558
+ # machine scale set.
1562
1559
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1563
1560
  # will be added to the HTTP request.
1564
1561
  #
1565
1562
  # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1566
1563
  # the response.
1567
1564
  #
1568
- def list_as_lazy(resource_group_name, custom_headers = nil)
1569
- response = list_async(resource_group_name, custom_headers).value!
1565
+ def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
1566
+ response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
1570
1567
  unless response.nil?
1571
1568
  page = response.body
1572
1569
  page.next_method = Proc.new do |next_page_link|
1573
- list_next_async(next_page_link, custom_headers)
1570
+ list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers)
1574
1571
  end
1575
1572
  page
1576
1573
  end