azure_mgmt_resources 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_resources.rb +22 -22
  3. data/lib/generated/azure_mgmt_resources/deployment_operations.rb +54 -50
  4. data/lib/generated/azure_mgmt_resources/deployments.rb +401 -315
  5. data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +3 -3
  6. data/lib/generated/azure_mgmt_resources/models/alias_type.rb +2 -2
  7. data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +1 -1
  8. data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +10 -2
  9. data/lib/generated/azure_mgmt_resources/models/dependency.rb +1 -1
  10. data/lib/generated/azure_mgmt_resources/models/deployment.rb +1 -1
  11. data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -2
  12. data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +1 -1
  13. data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -1
  14. data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +4 -3
  15. data/lib/generated/azure_mgmt_resources/models/deployment_mode.rb +1 -1
  16. data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +5 -3
  17. data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +9 -1
  18. data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -3
  19. data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +24 -10
  20. data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +9 -5
  21. data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +1 -1
  22. data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +4 -4
  23. data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +7 -4
  24. data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +1 -1
  25. data/lib/generated/azure_mgmt_resources/models/http_message.rb +2 -1
  26. data/lib/generated/azure_mgmt_resources/models/identity.rb +3 -3
  27. data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +3 -3
  28. data/lib/generated/azure_mgmt_resources/models/plan.rb +1 -1
  29. data/lib/generated/azure_mgmt_resources/models/provider.rb +6 -3
  30. data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +4 -3
  31. data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +4 -4
  32. data/lib/generated/azure_mgmt_resources/models/resource_group.rb +15 -5
  33. data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +2 -1
  34. data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +1 -1
  35. data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +5 -4
  36. data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +1 -1
  37. data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +1 -1
  38. data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +5 -4
  39. data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +10 -5
  40. data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -1
  41. data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +2 -2
  42. data/lib/generated/azure_mgmt_resources/models/sku.rb +8 -8
  43. data/lib/generated/azure_mgmt_resources/models/tag_count.rb +1 -1
  44. data/lib/generated/azure_mgmt_resources/models/tag_details.rb +4 -2
  45. data/lib/generated/azure_mgmt_resources/models/tag_value.rb +1 -1
  46. data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +5 -4
  47. data/lib/generated/azure_mgmt_resources/models/target_resource.rb +1 -1
  48. data/lib/generated/azure_mgmt_resources/models/template_link.rb +3 -3
  49. data/lib/generated/azure_mgmt_resources/module_definition.rb +1 -1
  50. data/lib/generated/azure_mgmt_resources/providers.rb +88 -80
  51. data/lib/generated/azure_mgmt_resources/resource_groups.rb +247 -228
  52. data/lib/generated/azure_mgmt_resources/resource_management_client.rb +17 -6
  53. data/lib/generated/azure_mgmt_resources/resources.rb +869 -245
  54. data/lib/generated/azure_mgmt_resources/tags.rb +79 -54
  55. data/lib/generated/azure_mgmt_resources/version.rb +2 -2
  56. metadata +4 -4
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -18,7 +18,9 @@ module Azure::ARM::Resources
18
18
  # @return [String] The tag name.
19
19
  attr_accessor :tag_name
20
20
 
21
- # @return [TagCount] The tag count.
21
+ # @return [TagCount] The total number of resources that use the resource
22
+ # tag. When a tag is initially created and has no associated resources,
23
+ # the value is 0.
22
24
  attr_accessor :count
23
25
 
24
26
  # @return [Array<TagValue>] The list of tag values.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,10 @@ module Azure::ARM::Resources
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<TagDetails>] The list of tags.
15
+ # @return [Array<TagDetails>] An array of tags.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] The URL to get the next set of results.
18
+ # @return [String] The URL to use for getting the next set of results.
19
19
  attr_accessor :next_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -78,7 +78,8 @@ module Azure::ARM::Resources
78
78
  }
79
79
  },
80
80
  next_link: {
81
- required: true,
81
+ required: false,
82
+ read_only: true,
82
83
  serialized_name: 'nextLink',
83
84
  type: {
84
85
  name: 'String'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,10 @@ module Azure::ARM::Resources
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] URI referencing the template.
15
+ # @return [String] The URI of the template to deploy.
16
16
  attr_accessor :uri
17
17
 
18
- # @return [String] If included it must match the ContentVersion in the
18
+ # @return [String] If included, must match the ContentVersion in the
19
19
  # template.
20
20
  attr_accessor :content_version
21
21
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,11 +1,11 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Resources
7
7
  #
8
- # Providers
8
+ # Provides operations for working with resources and resource groups.
9
9
  #
10
10
  class Providers
11
11
  include Azure::ARM::Resources::Models
@@ -23,10 +23,10 @@ module Azure::ARM::Resources
23
23
  attr_reader :client
24
24
 
25
25
  #
26
- # Unregisters provider from a subscription.
26
+ # Unregisters a subscription from a resource provider.
27
27
  #
28
- # @param resource_provider_namespace [String] Namespace of the resource
29
- # provider.
28
+ # @param resource_provider_namespace [String] The namespace of the resource
29
+ # provider to unregister.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
@@ -38,10 +38,10 @@ module Azure::ARM::Resources
38
38
  end
39
39
 
40
40
  #
41
- # Unregisters provider from a subscription.
41
+ # Unregisters a subscription from a resource provider.
42
42
  #
43
- # @param resource_provider_namespace [String] Namespace of the resource
44
- # provider.
43
+ # @param resource_provider_namespace [String] The namespace of the resource
44
+ # provider to unregister.
45
45
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
46
  # will be added to the HTTP request.
47
47
  #
@@ -52,10 +52,10 @@ module Azure::ARM::Resources
52
52
  end
53
53
 
54
54
  #
55
- # Unregisters provider from a subscription.
55
+ # Unregisters a subscription from a resource provider.
56
56
  #
57
- # @param resource_provider_namespace [String] Namespace of the resource
58
- # provider.
57
+ # @param resource_provider_namespace [String] The namespace of the resource
58
+ # provider to unregister.
59
59
  # @param [Hash{String => String}] A hash of custom headers that will be added
60
60
  # to the HTTP request.
61
61
  #
@@ -113,10 +113,10 @@ module Azure::ARM::Resources
113
113
  end
114
114
 
115
115
  #
116
- # Registers provider to be used with a subscription.
116
+ # Registers a subscription with a resource provider.
117
117
  #
118
- # @param resource_provider_namespace [String] Namespace of the resource
119
- # provider.
118
+ # @param resource_provider_namespace [String] The namespace of the resource
119
+ # provider to register.
120
120
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
121
121
  # will be added to the HTTP request.
122
122
  #
@@ -128,10 +128,10 @@ module Azure::ARM::Resources
128
128
  end
129
129
 
130
130
  #
131
- # Registers provider to be used with a subscription.
131
+ # Registers a subscription with a resource provider.
132
132
  #
133
- # @param resource_provider_namespace [String] Namespace of the resource
134
- # provider.
133
+ # @param resource_provider_namespace [String] The namespace of the resource
134
+ # provider to register.
135
135
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
136
136
  # will be added to the HTTP request.
137
137
  #
@@ -142,10 +142,10 @@ module Azure::ARM::Resources
142
142
  end
143
143
 
144
144
  #
145
- # Registers provider to be used with a subscription.
145
+ # Registers a subscription with a resource provider.
146
146
  #
147
- # @param resource_provider_namespace [String] Namespace of the resource
148
- # provider.
147
+ # @param resource_provider_namespace [String] The namespace of the resource
148
+ # provider to register.
149
149
  # @param [Hash{String => String}] A hash of custom headers that will be added
150
150
  # to the HTTP request.
151
151
  #
@@ -203,36 +203,14 @@ module Azure::ARM::Resources
203
203
  end
204
204
 
205
205
  #
206
- # Gets a list of resource providers.
207
- #
208
- # @param top [Integer] Query parameters. If null is passed returns all
209
- # deployments.
210
- # @param expand [String] The $expand query parameter. e.g. To include property
211
- # aliases in response, use $expand=resourceTypes/aliases.
212
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
213
- # will be added to the HTTP request.
214
- #
215
- # @return [ProviderListResult] which provide lazy access to pages of the
216
- # response.
217
- #
218
- def list_as_lazy(top = nil, expand = nil, custom_headers = nil)
219
- response = list_async(top, expand, custom_headers).value!
220
- unless response.nil?
221
- page = response.body
222
- page.next_method = Proc.new do |next_page_link|
223
- list_next_async(next_page_link, custom_headers)
224
- end
225
- page
226
- end
227
- end
228
-
229
- #
230
- # Gets a list of resource providers.
206
+ # Gets all resource providers for a subscription.
231
207
  #
232
- # @param top [Integer] Query parameters. If null is passed returns all
233
- # deployments.
234
- # @param expand [String] The $expand query parameter. e.g. To include property
235
- # aliases in response, use $expand=resourceTypes/aliases.
208
+ # @param top [Integer] The number of results to return. If null is passed
209
+ # returns all deployments.
210
+ # @param expand [String] The properties to include in the results. For example,
211
+ # use &$expand=metadata in the query string to retrieve resource provider
212
+ # metadata. To include property aliases in response, use
213
+ # $expand=resourceTypes/aliases.
236
214
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
237
215
  # will be added to the HTTP request.
238
216
  #
@@ -244,12 +222,14 @@ module Azure::ARM::Resources
244
222
  end
245
223
 
246
224
  #
247
- # Gets a list of resource providers.
225
+ # Gets all resource providers for a subscription.
248
226
  #
249
- # @param top [Integer] Query parameters. If null is passed returns all
250
- # deployments.
251
- # @param expand [String] The $expand query parameter. e.g. To include property
252
- # aliases in response, use $expand=resourceTypes/aliases.
227
+ # @param top [Integer] The number of results to return. If null is passed
228
+ # returns all deployments.
229
+ # @param expand [String] The properties to include in the results. For example,
230
+ # use &$expand=metadata in the query string to retrieve resource provider
231
+ # metadata. To include property aliases in response, use
232
+ # $expand=resourceTypes/aliases.
253
233
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
254
234
  # will be added to the HTTP request.
255
235
  #
@@ -260,12 +240,14 @@ module Azure::ARM::Resources
260
240
  end
261
241
 
262
242
  #
263
- # Gets a list of resource providers.
243
+ # Gets all resource providers for a subscription.
264
244
  #
265
- # @param top [Integer] Query parameters. If null is passed returns all
266
- # deployments.
267
- # @param expand [String] The $expand query parameter. e.g. To include property
268
- # aliases in response, use $expand=resourceTypes/aliases.
245
+ # @param top [Integer] The number of results to return. If null is passed
246
+ # returns all deployments.
247
+ # @param expand [String] The properties to include in the results. For example,
248
+ # use &$expand=metadata in the query string to retrieve resource provider
249
+ # metadata. To include property aliases in response, use
250
+ # $expand=resourceTypes/aliases.
269
251
  # @param [Hash{String => String}] A hash of custom headers that will be added
270
252
  # to the HTTP request.
271
253
  #
@@ -322,12 +304,12 @@ module Azure::ARM::Resources
322
304
  end
323
305
 
324
306
  #
325
- # Gets a resource provider.
307
+ # Gets the specified resource provider.
326
308
  #
327
- # @param resource_provider_namespace [String] Namespace of the resource
309
+ # @param resource_provider_namespace [String] The namespace of the resource
328
310
  # provider.
329
- # @param expand [String] The $expand query parameter. e.g. To include property
330
- # aliases in response, use $expand=resourceTypes/aliases.
311
+ # @param expand [String] The $expand query parameter. For example, to include
312
+ # property aliases in response, use $expand=resourceTypes/aliases.
331
313
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
332
314
  # will be added to the HTTP request.
333
315
  #
@@ -339,12 +321,12 @@ module Azure::ARM::Resources
339
321
  end
340
322
 
341
323
  #
342
- # Gets a resource provider.
324
+ # Gets the specified resource provider.
343
325
  #
344
- # @param resource_provider_namespace [String] Namespace of the resource
326
+ # @param resource_provider_namespace [String] The namespace of the resource
345
327
  # provider.
346
- # @param expand [String] The $expand query parameter. e.g. To include property
347
- # aliases in response, use $expand=resourceTypes/aliases.
328
+ # @param expand [String] The $expand query parameter. For example, to include
329
+ # property aliases in response, use $expand=resourceTypes/aliases.
348
330
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
349
331
  # will be added to the HTTP request.
350
332
  #
@@ -355,12 +337,12 @@ module Azure::ARM::Resources
355
337
  end
356
338
 
357
339
  #
358
- # Gets a resource provider.
340
+ # Gets the specified resource provider.
359
341
  #
360
- # @param resource_provider_namespace [String] Namespace of the resource
342
+ # @param resource_provider_namespace [String] The namespace of the resource
361
343
  # provider.
362
- # @param expand [String] The $expand query parameter. e.g. To include property
363
- # aliases in response, use $expand=resourceTypes/aliases.
344
+ # @param expand [String] The $expand query parameter. For example, to include
345
+ # property aliases in response, use $expand=resourceTypes/aliases.
364
346
  # @param [Hash{String => String}] A hash of custom headers that will be added
365
347
  # to the HTTP request.
366
348
  #
@@ -418,10 +400,10 @@ module Azure::ARM::Resources
418
400
  end
419
401
 
420
402
  #
421
- # Gets a list of resource providers.
403
+ # Gets all resource providers for a subscription.
422
404
  #
423
- # @param next_page_link [String] The NextLink from the previous successful
424
- # call to List operation.
405
+ # @param next_page_link [String] The NextLink from the previous successful call
406
+ # to List operation.
425
407
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
426
408
  # will be added to the HTTP request.
427
409
  #
@@ -433,10 +415,10 @@ module Azure::ARM::Resources
433
415
  end
434
416
 
435
417
  #
436
- # Gets a list of resource providers.
418
+ # Gets all resource providers for a subscription.
437
419
  #
438
- # @param next_page_link [String] The NextLink from the previous successful
439
- # call to List operation.
420
+ # @param next_page_link [String] The NextLink from the previous successful call
421
+ # to List operation.
440
422
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
441
423
  # will be added to the HTTP request.
442
424
  #
@@ -447,10 +429,10 @@ module Azure::ARM::Resources
447
429
  end
448
430
 
449
431
  #
450
- # Gets a list of resource providers.
432
+ # Gets all resource providers for a subscription.
451
433
  #
452
- # @param next_page_link [String] The NextLink from the previous successful
453
- # call to List operation.
434
+ # @param next_page_link [String] The NextLink from the previous successful call
435
+ # to List operation.
454
436
  # @param [Hash{String => String}] A hash of custom headers that will be added
455
437
  # to the HTTP request.
456
438
  #
@@ -504,5 +486,31 @@ module Azure::ARM::Resources
504
486
  promise.execute
505
487
  end
506
488
 
489
+ #
490
+ # Gets all resource providers for a subscription.
491
+ #
492
+ # @param top [Integer] The number of results to return. If null is passed
493
+ # returns all deployments.
494
+ # @param expand [String] The properties to include in the results. For example,
495
+ # use &$expand=metadata in the query string to retrieve resource provider
496
+ # metadata. To include property aliases in response, use
497
+ # $expand=resourceTypes/aliases.
498
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
499
+ # will be added to the HTTP request.
500
+ #
501
+ # @return [ProviderListResult] which provide lazy access to pages of the
502
+ # response.
503
+ #
504
+ def list_as_lazy(top = nil, expand = nil, custom_headers = nil)
505
+ response = list_async(top, expand, custom_headers).value!
506
+ unless response.nil?
507
+ page = response.body
508
+ page.next_method = Proc.new do |next_page_link|
509
+ list_next_async(next_page_link, custom_headers)
510
+ end
511
+ page
512
+ end
513
+ end
514
+
507
515
  end
508
516
  end
@@ -1,11 +1,11 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Resources
7
7
  #
8
- # ResourceGroups
8
+ # Provides operations for working with resources and resource groups.
9
9
  #
10
10
  class ResourceGroups
11
11
  include Azure::ARM::Resources::Models
@@ -23,40 +23,14 @@ module Azure::ARM::Resources
23
23
  attr_reader :client
24
24
 
25
25
  #
26
- # Get all of the resources under a subscription.
26
+ # Get all the resources for a resource group.
27
27
  #
28
- # @param resource_group_name [String] Query parameters. If null is passed
29
- # returns all resource groups.
28
+ # @param resource_group_name [String] The resource group with the resources to
29
+ # get.
30
30
  # @param filter [String] The filter to apply on the operation.
31
31
  # @param expand [String] The $expand query parameter
32
- # @param top [Integer] Query parameters. If null is passed returns all
33
- # resource groups.
34
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
- # will be added to the HTTP request.
36
- #
37
- # @return [ResourceListResult] which provide lazy access to pages of the
38
- # response.
39
- #
40
- def list_resources_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
41
- response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
42
- unless response.nil?
43
- page = response.body
44
- page.next_method = Proc.new do |next_page_link|
45
- list_resources_next_async(next_page_link, custom_headers)
46
- end
47
- page
48
- end
49
- end
50
-
51
- #
52
- # Get all of the resources under a subscription.
53
- #
54
- # @param resource_group_name [String] Query parameters. If null is passed
55
- # returns all resource groups.
56
- # @param filter [String] The filter to apply on the operation.
57
- # @param expand [String] The $expand query parameter
58
- # @param top [Integer] Query parameters. If null is passed returns all
59
- # resource groups.
32
+ # @param top [Integer] The number of results to return. If null is passed,
33
+ # returns all resources.
60
34
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
61
35
  # will be added to the HTTP request.
62
36
  #
@@ -68,14 +42,14 @@ module Azure::ARM::Resources
68
42
  end
69
43
 
70
44
  #
71
- # Get all of the resources under a subscription.
45
+ # Get all the resources for a resource group.
72
46
  #
73
- # @param resource_group_name [String] Query parameters. If null is passed
74
- # returns all resource groups.
47
+ # @param resource_group_name [String] The resource group with the resources to
48
+ # get.
75
49
  # @param filter [String] The filter to apply on the operation.
76
50
  # @param expand [String] The $expand query parameter
77
- # @param top [Integer] Query parameters. If null is passed returns all
78
- # resource groups.
51
+ # @param top [Integer] The number of results to return. If null is passed,
52
+ # returns all resources.
79
53
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
80
54
  # will be added to the HTTP request.
81
55
  #
@@ -86,14 +60,14 @@ module Azure::ARM::Resources
86
60
  end
87
61
 
88
62
  #
89
- # Get all of the resources under a subscription.
63
+ # Get all the resources for a resource group.
90
64
  #
91
- # @param resource_group_name [String] Query parameters. If null is passed
92
- # returns all resource groups.
65
+ # @param resource_group_name [String] The resource group with the resources to
66
+ # get.
93
67
  # @param filter [String] The filter to apply on the operation.
94
68
  # @param expand [String] The $expand query parameter
95
- # @param top [Integer] Query parameters. If null is passed returns all
96
- # resource groups.
69
+ # @param top [Integer] The number of results to return. If null is passed,
70
+ # returns all resources.
97
71
  # @param [Hash{String => String}] A hash of custom headers that will be added
98
72
  # to the HTTP request.
99
73
  #
@@ -151,7 +125,7 @@ module Azure::ARM::Resources
151
125
  end
152
126
 
153
127
  #
154
- # Checks whether resource group exists.
128
+ # Checks whether a resource group exists.
155
129
  #
156
130
  # @param resource_group_name [String] The name of the resource group to check.
157
131
  # The name is case insensitive.
@@ -166,7 +140,7 @@ module Azure::ARM::Resources
166
140
  end
167
141
 
168
142
  #
169
- # Checks whether resource group exists.
143
+ # Checks whether a resource group exists.
170
144
  #
171
145
  # @param resource_group_name [String] The name of the resource group to check.
172
146
  # The name is case insensitive.
@@ -180,7 +154,7 @@ module Azure::ARM::Resources
180
154
  end
181
155
 
182
156
  #
183
- # Checks whether resource group exists.
157
+ # Checks whether a resource group exists.
184
158
  #
185
159
  # @param resource_group_name [String] The name of the resource group to check.
186
160
  # The name is case insensitive.
@@ -232,12 +206,12 @@ module Azure::ARM::Resources
232
206
  end
233
207
 
234
208
  #
235
- # Create a resource group.
209
+ # Creates a resource group.
236
210
  #
237
- # @param resource_group_name [String] The name of the resource group to be
238
- # created or updated.
239
- # @param parameters [ResourceGroup] Parameters supplied to the create or
240
- # update resource group service operation.
211
+ # @param resource_group_name [String] The name of the resource group to create
212
+ # or update.
213
+ # @param parameters [ResourceGroup] Parameters supplied to the create or update
214
+ # a resource group.
241
215
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
216
  # will be added to the HTTP request.
243
217
  #
@@ -249,12 +223,12 @@ module Azure::ARM::Resources
249
223
  end
250
224
 
251
225
  #
252
- # Create a resource group.
226
+ # Creates a resource group.
253
227
  #
254
- # @param resource_group_name [String] The name of the resource group to be
255
- # created or updated.
256
- # @param parameters [ResourceGroup] Parameters supplied to the create or
257
- # update resource group service operation.
228
+ # @param resource_group_name [String] The name of the resource group to create
229
+ # or update.
230
+ # @param parameters [ResourceGroup] Parameters supplied to the create or update
231
+ # a resource group.
258
232
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
259
233
  # will be added to the HTTP request.
260
234
  #
@@ -265,12 +239,12 @@ module Azure::ARM::Resources
265
239
  end
266
240
 
267
241
  #
268
- # Create a resource group.
242
+ # Creates a resource group.
269
243
  #
270
- # @param resource_group_name [String] The name of the resource group to be
271
- # created or updated.
272
- # @param parameters [ResourceGroup] Parameters supplied to the create or
273
- # update resource group service operation.
244
+ # @param resource_group_name [String] The name of the resource group to create
245
+ # or update.
246
+ # @param parameters [ResourceGroup] Parameters supplied to the create or update
247
+ # a resource group.
274
248
  # @param [Hash{String => String}] A hash of custom headers that will be added
275
249
  # to the HTTP request.
276
250
  #
@@ -348,10 +322,14 @@ module Azure::ARM::Resources
348
322
  end
349
323
 
350
324
  #
351
- # Delete resource group.
325
+ # Deletes a resource group.
326
+ #
327
+ # When you delete a resource group, all of its resources are also deleted.
328
+ # Deleting a resource group deletes all of its template deployments and
329
+ # currently stored operations.
352
330
  #
353
- # @param resource_group_name [String] The name of the resource group to be
354
- # deleted. The name is case insensitive.
331
+ # @param resource_group_name [String] The name of the resource group to delete.
332
+ # The name is case insensitive.
355
333
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
356
334
  # will be added to the HTTP request.
357
335
  #
@@ -361,8 +339,8 @@ module Azure::ARM::Resources
361
339
  end
362
340
 
363
341
  #
364
- # @param resource_group_name [String] The name of the resource group to be
365
- # deleted. The name is case insensitive.
342
+ # @param resource_group_name [String] The name of the resource group to delete.
343
+ # The name is case insensitive.
366
344
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
367
345
  # will be added to the HTTP request.
368
346
  #
@@ -386,86 +364,7 @@ module Azure::ARM::Resources
386
364
  end
387
365
 
388
366
  #
389
- # Delete resource group.
390
- #
391
- # @param resource_group_name [String] The name of the resource group to be
392
- # deleted. The name is case insensitive.
393
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
394
- # will be added to the HTTP request.
395
- #
396
- #
397
- def begin_delete(resource_group_name, custom_headers = nil)
398
- response = begin_delete_async(resource_group_name, custom_headers).value!
399
- nil
400
- end
401
-
402
- #
403
- # Delete resource group.
404
- #
405
- # @param resource_group_name [String] The name of the resource group to be
406
- # deleted. The name is case insensitive.
407
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
408
- # will be added to the HTTP request.
409
- #
410
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
411
- #
412
- def begin_delete_with_http_info(resource_group_name, custom_headers = nil)
413
- begin_delete_async(resource_group_name, custom_headers).value!
414
- end
415
-
416
- #
417
- # Delete resource group.
418
- #
419
- # @param resource_group_name [String] The name of the resource group to be
420
- # deleted. The name is case insensitive.
421
- # @param [Hash{String => String}] A hash of custom headers that will be added
422
- # to the HTTP request.
423
- #
424
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
425
- #
426
- def begin_delete_async(resource_group_name, custom_headers = nil)
427
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
428
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
429
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
430
-
431
-
432
- request_headers = {}
433
-
434
- # Set Headers
435
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
436
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
437
- path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
438
-
439
- request_url = @base_url || @client.base_url
440
-
441
- options = {
442
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
443
- path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
444
- query_params: {'api-version' => @client.api_version},
445
- headers: request_headers.merge(custom_headers || {}),
446
- base_url: request_url
447
- }
448
- promise = @client.make_request_async(:delete, path_template, options)
449
-
450
- promise = promise.then do |result|
451
- http_response = result.response
452
- status_code = http_response.status
453
- response_content = http_response.body
454
- unless status_code == 202 || status_code == 200
455
- error_model = JSON.load(response_content)
456
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
457
- end
458
-
459
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
460
-
461
- result
462
- end
463
-
464
- promise.execute
465
- end
466
-
467
- #
468
- # Get a resource group.
367
+ # Gets a resource group.
469
368
  #
470
369
  # @param resource_group_name [String] The name of the resource group to get.
471
370
  # The name is case insensitive.
@@ -480,7 +379,7 @@ module Azure::ARM::Resources
480
379
  end
481
380
 
482
381
  #
483
- # Get a resource group.
382
+ # Gets a resource group.
484
383
  #
485
384
  # @param resource_group_name [String] The name of the resource group to get.
486
385
  # The name is case insensitive.
@@ -494,7 +393,7 @@ module Azure::ARM::Resources
494
393
  end
495
394
 
496
395
  #
497
- # Get a resource group.
396
+ # Gets a resource group.
498
397
  #
499
398
  # @param resource_group_name [String] The name of the resource group to get.
500
399
  # The name is case insensitive.
@@ -554,16 +453,17 @@ module Azure::ARM::Resources
554
453
  promise.execute
555
454
  end
556
455
 
456
+ #
457
+ # Updates a resource group.
557
458
  #
558
459
  # Resource groups can be updated through a simple PATCH operation to a group
559
460
  # address. The format of the request is the same as that for creating a
560
- # resource groups, though if a field is unspecified current value will be
561
- # carried over.
461
+ # resource group. If a field is unspecified, the current value is retained.
562
462
  #
563
- # @param resource_group_name [String] The name of the resource group to be
564
- # created or updated. The name is case insensitive.
565
- # @param parameters [ResourceGroup] Parameters supplied to the update state
566
- # resource group service operation.
463
+ # @param resource_group_name [String] The name of the resource group to update.
464
+ # The name is case insensitive.
465
+ # @param parameters [ResourceGroup] Parameters supplied to update a resource
466
+ # group.
567
467
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
568
468
  # will be added to the HTTP request.
569
469
  #
@@ -574,16 +474,17 @@ module Azure::ARM::Resources
574
474
  response.body unless response.nil?
575
475
  end
576
476
 
477
+ #
478
+ # Updates a resource group.
577
479
  #
578
480
  # Resource groups can be updated through a simple PATCH operation to a group
579
481
  # address. The format of the request is the same as that for creating a
580
- # resource groups, though if a field is unspecified current value will be
581
- # carried over.
482
+ # resource group. If a field is unspecified, the current value is retained.
582
483
  #
583
- # @param resource_group_name [String] The name of the resource group to be
584
- # created or updated. The name is case insensitive.
585
- # @param parameters [ResourceGroup] Parameters supplied to the update state
586
- # resource group service operation.
484
+ # @param resource_group_name [String] The name of the resource group to update.
485
+ # The name is case insensitive.
486
+ # @param parameters [ResourceGroup] Parameters supplied to update a resource
487
+ # group.
587
488
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
588
489
  # will be added to the HTTP request.
589
490
  #
@@ -593,16 +494,17 @@ module Azure::ARM::Resources
593
494
  patch_async(resource_group_name, parameters, custom_headers).value!
594
495
  end
595
496
 
497
+ #
498
+ # Updates a resource group.
596
499
  #
597
500
  # Resource groups can be updated through a simple PATCH operation to a group
598
501
  # address. The format of the request is the same as that for creating a
599
- # resource groups, though if a field is unspecified current value will be
600
- # carried over.
502
+ # resource group. If a field is unspecified, the current value is retained.
601
503
  #
602
- # @param resource_group_name [String] The name of the resource group to be
603
- # created or updated. The name is case insensitive.
604
- # @param parameters [ResourceGroup] Parameters supplied to the update state
605
- # resource group service operation.
504
+ # @param resource_group_name [String] The name of the resource group to update.
505
+ # The name is case insensitive.
506
+ # @param parameters [ResourceGroup] Parameters supplied to update a resource
507
+ # group.
606
508
  # @param [Hash{String => String}] A hash of custom headers that will be added
607
509
  # to the HTTP request.
608
510
  #
@@ -672,10 +574,10 @@ module Azure::ARM::Resources
672
574
  #
673
575
  # Captures the specified resource group as a template.
674
576
  #
675
- # @param resource_group_name [String] The name of the resource group to be
676
- # created or updated.
677
- # @param parameters [ExportTemplateRequest] Parameters supplied to the export
678
- # template resource group operation.
577
+ # @param resource_group_name [String] The name of the resource group to export
578
+ # as a template.
579
+ # @param parameters [ExportTemplateRequest] Parameters for exporting the
580
+ # template.
679
581
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
680
582
  # will be added to the HTTP request.
681
583
  #
@@ -689,10 +591,10 @@ module Azure::ARM::Resources
689
591
  #
690
592
  # Captures the specified resource group as a template.
691
593
  #
692
- # @param resource_group_name [String] The name of the resource group to be
693
- # created or updated.
694
- # @param parameters [ExportTemplateRequest] Parameters supplied to the export
695
- # template resource group operation.
594
+ # @param resource_group_name [String] The name of the resource group to export
595
+ # as a template.
596
+ # @param parameters [ExportTemplateRequest] Parameters for exporting the
597
+ # template.
696
598
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
697
599
  # will be added to the HTTP request.
698
600
  #
@@ -705,10 +607,10 @@ module Azure::ARM::Resources
705
607
  #
706
608
  # Captures the specified resource group as a template.
707
609
  #
708
- # @param resource_group_name [String] The name of the resource group to be
709
- # created or updated.
710
- # @param parameters [ExportTemplateRequest] Parameters supplied to the export
711
- # template resource group operation.
610
+ # @param resource_group_name [String] The name of the resource group to export
611
+ # as a template.
612
+ # @param parameters [ExportTemplateRequest] Parameters for exporting the
613
+ # template.
712
614
  # @param [Hash{String => String}] A hash of custom headers that will be added
713
615
  # to the HTTP request.
714
616
  #
@@ -776,34 +678,11 @@ module Azure::ARM::Resources
776
678
  end
777
679
 
778
680
  #
779
- # Gets a collection of resource groups.
681
+ # Gets all the resource groups for a subscription.
780
682
  #
781
683
  # @param filter [String] The filter to apply on the operation.
782
- # @param top [Integer] Query parameters. If null is passed returns all
783
- # resource groups.
784
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
785
- # will be added to the HTTP request.
786
- #
787
- # @return [ResourceGroupListResult] which provide lazy access to pages of the
788
- # response.
789
- #
790
- def list_as_lazy(filter = nil, top = nil, custom_headers = nil)
791
- response = list_async(filter, top, custom_headers).value!
792
- unless response.nil?
793
- page = response.body
794
- page.next_method = Proc.new do |next_page_link|
795
- list_next_async(next_page_link, custom_headers)
796
- end
797
- page
798
- end
799
- end
800
-
801
- #
802
- # Gets a collection of resource groups.
803
- #
804
- # @param filter [String] The filter to apply on the operation.
805
- # @param top [Integer] Query parameters. If null is passed returns all
806
- # resource groups.
684
+ # @param top [Integer] The number of results to return. If null is passed,
685
+ # returns all resource groups.
807
686
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
808
687
  # will be added to the HTTP request.
809
688
  #
@@ -815,11 +694,11 @@ module Azure::ARM::Resources
815
694
  end
816
695
 
817
696
  #
818
- # Gets a collection of resource groups.
697
+ # Gets all the resource groups for a subscription.
819
698
  #
820
699
  # @param filter [String] The filter to apply on the operation.
821
- # @param top [Integer] Query parameters. If null is passed returns all
822
- # resource groups.
700
+ # @param top [Integer] The number of results to return. If null is passed,
701
+ # returns all resource groups.
823
702
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
824
703
  # will be added to the HTTP request.
825
704
  #
@@ -830,11 +709,11 @@ module Azure::ARM::Resources
830
709
  end
831
710
 
832
711
  #
833
- # Gets a collection of resource groups.
712
+ # Gets all the resource groups for a subscription.
834
713
  #
835
714
  # @param filter [String] The filter to apply on the operation.
836
- # @param top [Integer] Query parameters. If null is passed returns all
837
- # resource groups.
715
+ # @param top [Integer] The number of results to return. If null is passed,
716
+ # returns all resource groups.
838
717
  # @param [Hash{String => String}] A hash of custom headers that will be added
839
718
  # to the HTTP request.
840
719
  #
@@ -891,10 +770,101 @@ module Azure::ARM::Resources
891
770
  end
892
771
 
893
772
  #
894
- # Get all of the resources under a subscription.
773
+ # Deletes a resource group.
774
+ #
775
+ # When you delete a resource group, all of its resources are also deleted.
776
+ # Deleting a resource group deletes all of its template deployments and
777
+ # currently stored operations.
778
+ #
779
+ # @param resource_group_name [String] The name of the resource group to delete.
780
+ # The name is case insensitive.
781
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
782
+ # will be added to the HTTP request.
783
+ #
784
+ #
785
+ def begin_delete(resource_group_name, custom_headers = nil)
786
+ response = begin_delete_async(resource_group_name, custom_headers).value!
787
+ nil
788
+ end
789
+
790
+ #
791
+ # Deletes a resource group.
792
+ #
793
+ # When you delete a resource group, all of its resources are also deleted.
794
+ # Deleting a resource group deletes all of its template deployments and
795
+ # currently stored operations.
796
+ #
797
+ # @param resource_group_name [String] The name of the resource group to delete.
798
+ # The name is case insensitive.
799
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
800
+ # will be added to the HTTP request.
801
+ #
802
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
803
+ #
804
+ def begin_delete_with_http_info(resource_group_name, custom_headers = nil)
805
+ begin_delete_async(resource_group_name, custom_headers).value!
806
+ end
807
+
808
+ #
809
+ # Deletes a resource group.
810
+ #
811
+ # When you delete a resource group, all of its resources are also deleted.
812
+ # Deleting a resource group deletes all of its template deployments and
813
+ # currently stored operations.
814
+ #
815
+ # @param resource_group_name [String] The name of the resource group to delete.
816
+ # The name is case insensitive.
817
+ # @param [Hash{String => String}] A hash of custom headers that will be added
818
+ # to the HTTP request.
819
+ #
820
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
821
+ #
822
+ def begin_delete_async(resource_group_name, custom_headers = nil)
823
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
824
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
825
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
826
+
827
+
828
+ request_headers = {}
829
+
830
+ # Set Headers
831
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
832
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
833
+ path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
834
+
835
+ request_url = @base_url || @client.base_url
836
+
837
+ options = {
838
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
839
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
840
+ query_params: {'api-version' => @client.api_version},
841
+ headers: request_headers.merge(custom_headers || {}),
842
+ base_url: request_url
843
+ }
844
+ promise = @client.make_request_async(:delete, path_template, options)
845
+
846
+ promise = promise.then do |result|
847
+ http_response = result.response
848
+ status_code = http_response.status
849
+ response_content = http_response.body
850
+ unless status_code == 202 || status_code == 200
851
+ error_model = JSON.load(response_content)
852
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
853
+ end
854
+
855
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
856
+
857
+ result
858
+ end
859
+
860
+ promise.execute
861
+ end
862
+
863
+ #
864
+ # Get all the resources for a resource group.
895
865
  #
896
- # @param next_page_link [String] The NextLink from the previous successful
897
- # call to List operation.
866
+ # @param next_page_link [String] The NextLink from the previous successful call
867
+ # to List operation.
898
868
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
899
869
  # will be added to the HTTP request.
900
870
  #
@@ -906,10 +876,10 @@ module Azure::ARM::Resources
906
876
  end
907
877
 
908
878
  #
909
- # Get all of the resources under a subscription.
879
+ # Get all the resources for a resource group.
910
880
  #
911
- # @param next_page_link [String] The NextLink from the previous successful
912
- # call to List operation.
881
+ # @param next_page_link [String] The NextLink from the previous successful call
882
+ # to List operation.
913
883
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
914
884
  # will be added to the HTTP request.
915
885
  #
@@ -920,10 +890,10 @@ module Azure::ARM::Resources
920
890
  end
921
891
 
922
892
  #
923
- # Get all of the resources under a subscription.
893
+ # Get all the resources for a resource group.
924
894
  #
925
- # @param next_page_link [String] The NextLink from the previous successful
926
- # call to List operation.
895
+ # @param next_page_link [String] The NextLink from the previous successful call
896
+ # to List operation.
927
897
  # @param [Hash{String => String}] A hash of custom headers that will be added
928
898
  # to the HTTP request.
929
899
  #
@@ -978,10 +948,10 @@ module Azure::ARM::Resources
978
948
  end
979
949
 
980
950
  #
981
- # Gets a collection of resource groups.
951
+ # Gets all the resource groups for a subscription.
982
952
  #
983
- # @param next_page_link [String] The NextLink from the previous successful
984
- # call to List operation.
953
+ # @param next_page_link [String] The NextLink from the previous successful call
954
+ # to List operation.
985
955
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
986
956
  # will be added to the HTTP request.
987
957
  #
@@ -993,10 +963,10 @@ module Azure::ARM::Resources
993
963
  end
994
964
 
995
965
  #
996
- # Gets a collection of resource groups.
966
+ # Gets all the resource groups for a subscription.
997
967
  #
998
- # @param next_page_link [String] The NextLink from the previous successful
999
- # call to List operation.
968
+ # @param next_page_link [String] The NextLink from the previous successful call
969
+ # to List operation.
1000
970
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1001
971
  # will be added to the HTTP request.
1002
972
  #
@@ -1007,10 +977,10 @@ module Azure::ARM::Resources
1007
977
  end
1008
978
 
1009
979
  #
1010
- # Gets a collection of resource groups.
980
+ # Gets all the resource groups for a subscription.
1011
981
  #
1012
- # @param next_page_link [String] The NextLink from the previous successful
1013
- # call to List operation.
982
+ # @param next_page_link [String] The NextLink from the previous successful call
983
+ # to List operation.
1014
984
  # @param [Hash{String => String}] A hash of custom headers that will be added
1015
985
  # to the HTTP request.
1016
986
  #
@@ -1064,5 +1034,54 @@ module Azure::ARM::Resources
1064
1034
  promise.execute
1065
1035
  end
1066
1036
 
1037
+ #
1038
+ # Get all the resources for a resource group.
1039
+ #
1040
+ # @param resource_group_name [String] The resource group with the resources to
1041
+ # get.
1042
+ # @param filter [String] The filter to apply on the operation.
1043
+ # @param expand [String] The $expand query parameter
1044
+ # @param top [Integer] The number of results to return. If null is passed,
1045
+ # returns all resources.
1046
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1047
+ # will be added to the HTTP request.
1048
+ #
1049
+ # @return [ResourceListResult] which provide lazy access to pages of the
1050
+ # response.
1051
+ #
1052
+ def list_resources_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
1053
+ response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
1054
+ unless response.nil?
1055
+ page = response.body
1056
+ page.next_method = Proc.new do |next_page_link|
1057
+ list_resources_next_async(next_page_link, custom_headers)
1058
+ end
1059
+ page
1060
+ end
1061
+ end
1062
+
1063
+ #
1064
+ # Gets all the resource groups for a subscription.
1065
+ #
1066
+ # @param filter [String] The filter to apply on the operation.
1067
+ # @param top [Integer] The number of results to return. If null is passed,
1068
+ # returns all resource groups.
1069
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1070
+ # will be added to the HTTP request.
1071
+ #
1072
+ # @return [ResourceGroupListResult] which provide lazy access to pages of the
1073
+ # response.
1074
+ #
1075
+ def list_as_lazy(filter = nil, top = nil, custom_headers = nil)
1076
+ response = list_async(filter, top, custom_headers).value!
1077
+ unless response.nil?
1078
+ page = response.body
1079
+ page.next_method = Proc.new do |next_page_link|
1080
+ list_next_async(next_page_link, custom_headers)
1081
+ end
1082
+ page
1083
+ end
1084
+ end
1085
+
1067
1086
  end
1068
1087
  end