azure_mgmt_authorization 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_authorization.rb +10 -10
  3. data/lib/generated/azure_mgmt_authorization/authorization_management_client.rb +16 -5
  4. data/lib/generated/azure_mgmt_authorization/classic_administrators.rb +49 -38
  5. data/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb +6 -6
  6. data/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +3 -5
  7. data/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb +3 -3
  8. data/lib/generated/azure_mgmt_authorization/models/permission.rb +3 -3
  9. data/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb +3 -4
  10. data/lib/generated/azure_mgmt_authorization/models/provider_operation.rb +6 -6
  11. data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb +7 -7
  12. data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +3 -5
  13. data/lib/generated/azure_mgmt_authorization/models/resource_type.rb +4 -5
  14. data/lib/generated/azure_mgmt_authorization/models/role_assignment.rb +5 -6
  15. data/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +2 -3
  16. data/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +1 -1
  17. data/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +2 -3
  18. data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +5 -3
  19. data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +4 -4
  20. data/lib/generated/azure_mgmt_authorization/models/role_definition.rb +5 -6
  21. data/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb +1 -1
  22. data/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +2 -3
  23. data/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb +6 -6
  24. data/lib/generated/azure_mgmt_authorization/module_definition.rb +1 -1
  25. data/lib/generated/azure_mgmt_authorization/permissions.rb +110 -98
  26. data/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +58 -54
  27. data/lib/generated/azure_mgmt_authorization/role_assignments.rb +312 -222
  28. data/lib/generated/azure_mgmt_authorization/role_definitions.rb +83 -79
  29. data/lib/generated/azure_mgmt_authorization/version.rb +2 -2
  30. metadata +4 -4
@@ -1,11 +1,15 @@
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::Authorization
7
7
  #
8
- # ProviderOperationsMetadataOperations
8
+ # Role based access control provides you a way to apply granular level policy
9
+ # administration down to individual resources or resource groups. These
10
+ # operations enable you to manage role definitions and role assignments. A
11
+ # role definition describes the set of actions that can be performed on
12
+ # resources. A role assignment grants access to Azure Active Directory users.
9
13
  #
10
14
  class ProviderOperationsMetadataOperations
11
15
  include Azure::ARM::Authorization::Models
@@ -23,12 +27,12 @@ module Azure::ARM::Authorization
23
27
  attr_reader :client
24
28
 
25
29
  #
26
- # Gets provider operations metadata
30
+ # Gets provider operations metadata for the specified resource provider.
27
31
  #
28
- # @param resource_provider_namespace [String] Namespace of the resource
32
+ # @param resource_provider_namespace [String] The namespace of the resource
29
33
  # provider.
30
- # @param api_version [String]
31
- # @param expand [String]
34
+ # @param api_version [String] The API version to use for the operation.
35
+ # @param expand [String] Specifies whether to expand the values.
32
36
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
37
  # will be added to the HTTP request.
34
38
  #
@@ -40,12 +44,12 @@ module Azure::ARM::Authorization
40
44
  end
41
45
 
42
46
  #
43
- # Gets provider operations metadata
47
+ # Gets provider operations metadata for the specified resource provider.
44
48
  #
45
- # @param resource_provider_namespace [String] Namespace of the resource
49
+ # @param resource_provider_namespace [String] The namespace of the resource
46
50
  # provider.
47
- # @param api_version [String]
48
- # @param expand [String]
51
+ # @param api_version [String] The API version to use for the operation.
52
+ # @param expand [String] Specifies whether to expand the values.
49
53
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
54
  # will be added to the HTTP request.
51
55
  #
@@ -56,12 +60,12 @@ module Azure::ARM::Authorization
56
60
  end
57
61
 
58
62
  #
59
- # Gets provider operations metadata
63
+ # Gets provider operations metadata for the specified resource provider.
60
64
  #
61
- # @param resource_provider_namespace [String] Namespace of the resource
65
+ # @param resource_provider_namespace [String] The namespace of the resource
62
66
  # provider.
63
- # @param api_version [String]
64
- # @param expand [String]
67
+ # @param api_version [String] The API version to use for the operation.
68
+ # @param expand [String] Specifies whether to expand the values.
65
69
  # @param [Hash{String => String}] A hash of custom headers that will be added
66
70
  # to the HTTP request.
67
71
  #
@@ -118,32 +122,10 @@ module Azure::ARM::Authorization
118
122
  end
119
123
 
120
124
  #
121
- # Gets provider operations metadata list
125
+ # Gets provider operations metadata for all resource providers.
122
126
  #
123
- # @param api_version [String]
124
- # @param expand [String]
125
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
- # will be added to the HTTP request.
127
- #
128
- # @return [ProviderOperationsMetadataListResult] which provide lazy access to
129
- # pages of the response.
130
- #
131
- def list_as_lazy(api_version, expand = 'resourceTypes', custom_headers = nil)
132
- response = list_async(api_version, expand, custom_headers).value!
133
- unless response.nil?
134
- page = response.body
135
- page.next_method = Proc.new do |next_page_link|
136
- list_next_async(next_page_link, custom_headers)
137
- end
138
- page
139
- end
140
- end
141
-
142
- #
143
- # Gets provider operations metadata list
144
- #
145
- # @param api_version [String]
146
- # @param expand [String]
127
+ # @param api_version [String] The API version to use for this operation.
128
+ # @param expand [String] Specifies whether to expand the values.
147
129
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
148
130
  # will be added to the HTTP request.
149
131
  #
@@ -155,10 +137,10 @@ module Azure::ARM::Authorization
155
137
  end
156
138
 
157
139
  #
158
- # Gets provider operations metadata list
140
+ # Gets provider operations metadata for all resource providers.
159
141
  #
160
- # @param api_version [String]
161
- # @param expand [String]
142
+ # @param api_version [String] The API version to use for this operation.
143
+ # @param expand [String] Specifies whether to expand the values.
162
144
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
163
145
  # will be added to the HTTP request.
164
146
  #
@@ -169,10 +151,10 @@ module Azure::ARM::Authorization
169
151
  end
170
152
 
171
153
  #
172
- # Gets provider operations metadata list
154
+ # Gets provider operations metadata for all resource providers.
173
155
  #
174
- # @param api_version [String]
175
- # @param expand [String]
156
+ # @param api_version [String] The API version to use for this operation.
157
+ # @param expand [String] Specifies whether to expand the values.
176
158
  # @param [Hash{String => String}] A hash of custom headers that will be added
177
159
  # to the HTTP request.
178
160
  #
@@ -227,10 +209,10 @@ module Azure::ARM::Authorization
227
209
  end
228
210
 
229
211
  #
230
- # Gets provider operations metadata list
212
+ # Gets provider operations metadata for all resource providers.
231
213
  #
232
- # @param next_page_link [String] The NextLink from the previous successful
233
- # call to List operation.
214
+ # @param next_page_link [String] The NextLink from the previous successful call
215
+ # to List operation.
234
216
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
217
  # will be added to the HTTP request.
236
218
  #
@@ -242,10 +224,10 @@ module Azure::ARM::Authorization
242
224
  end
243
225
 
244
226
  #
245
- # Gets provider operations metadata list
227
+ # Gets provider operations metadata for all resource providers.
246
228
  #
247
- # @param next_page_link [String] The NextLink from the previous successful
248
- # call to List operation.
229
+ # @param next_page_link [String] The NextLink from the previous successful call
230
+ # to List operation.
249
231
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
250
232
  # will be added to the HTTP request.
251
233
  #
@@ -256,10 +238,10 @@ module Azure::ARM::Authorization
256
238
  end
257
239
 
258
240
  #
259
- # Gets provider operations metadata list
241
+ # Gets provider operations metadata for all resource providers.
260
242
  #
261
- # @param next_page_link [String] The NextLink from the previous successful
262
- # call to List operation.
243
+ # @param next_page_link [String] The NextLink from the previous successful call
244
+ # to List operation.
263
245
  # @param [Hash{String => String}] A hash of custom headers that will be added
264
246
  # to the HTTP request.
265
247
  #
@@ -313,5 +295,27 @@ module Azure::ARM::Authorization
313
295
  promise.execute
314
296
  end
315
297
 
298
+ #
299
+ # Gets provider operations metadata for all resource providers.
300
+ #
301
+ # @param api_version [String] The API version to use for this operation.
302
+ # @param expand [String] Specifies whether to expand the values.
303
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
304
+ # will be added to the HTTP request.
305
+ #
306
+ # @return [ProviderOperationsMetadataListResult] which provide lazy access to
307
+ # pages of the response.
308
+ #
309
+ def list_as_lazy(api_version, expand = 'resourceTypes', custom_headers = nil)
310
+ response = list_async(api_version, expand, custom_headers).value!
311
+ unless response.nil?
312
+ page = response.body
313
+ page.next_method = Proc.new do |next_page_link|
314
+ list_next_async(next_page_link, custom_headers)
315
+ end
316
+ page
317
+ end
318
+ end
319
+
316
320
  end
317
321
  end
@@ -1,11 +1,15 @@
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::Authorization
7
7
  #
8
- # RoleAssignments
8
+ # Role based access control provides you a way to apply granular level policy
9
+ # administration down to individual resources or resource groups. These
10
+ # operations enable you to manage role definitions and role assignments. A
11
+ # role definition describes the set of actions that can be performed on
12
+ # resources. A role assignment grants access to Azure Active Directory users.
9
13
  #
10
14
  class RoleAssignments
11
15
  include Azure::ARM::Authorization::Models
@@ -23,40 +27,19 @@ module Azure::ARM::Authorization
23
27
  attr_reader :client
24
28
 
25
29
  #
26
- # Gets role assignments of the resource.
30
+ # Gets role assignments for a resource.
27
31
  #
28
32
  # @param resource_group_name [String] The name of the resource group.
29
- # @param resource_provider_namespace [String] Resource identity.
30
- # @param parent_resource_path [String] Resource identity.
31
- # @param resource_type [String] Resource identity.
32
- # @param resource_name [String] Resource identity.
33
- # @param filter [String] The filter to apply on the operation.
34
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
- # will be added to the HTTP request.
36
- #
37
- # @return [RoleAssignmentListResult] which provide lazy access to pages of the
38
- # response.
39
- #
40
- def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
41
- response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value!
42
- unless response.nil?
43
- page = response.body
44
- page.next_method = Proc.new do |next_page_link|
45
- list_for_resource_next_async(next_page_link, custom_headers)
46
- end
47
- page
48
- end
49
- end
50
-
51
- #
52
- # Gets role assignments of the resource.
53
- #
54
- # @param resource_group_name [String] The name of the resource group.
55
- # @param resource_provider_namespace [String] Resource identity.
56
- # @param parent_resource_path [String] Resource identity.
57
- # @param resource_type [String] Resource identity.
58
- # @param resource_name [String] Resource identity.
59
- # @param filter [String] The filter to apply on the operation.
33
+ # @param resource_provider_namespace [String] The namespace of the resource
34
+ # provider.
35
+ # @param parent_resource_path [String] The parent resource identity.
36
+ # @param resource_type [String] The resource type of the resource.
37
+ # @param resource_name [String] The name of the resource to get role
38
+ # assignments for.
39
+ # @param filter [String] The filter to apply on the operation. Use
40
+ # $filter=atScope() to return all role assignments at or above the scope. Use
41
+ # $filter=principalId eq {id} to return all role assignments at, above or below
42
+ # the scope for the specified principal.
60
43
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
61
44
  # will be added to the HTTP request.
62
45
  #
@@ -68,14 +51,19 @@ module Azure::ARM::Authorization
68
51
  end
69
52
 
70
53
  #
71
- # Gets role assignments of the resource.
54
+ # Gets role assignments for a resource.
72
55
  #
73
56
  # @param resource_group_name [String] The name of the resource group.
74
- # @param resource_provider_namespace [String] Resource identity.
75
- # @param parent_resource_path [String] Resource identity.
76
- # @param resource_type [String] Resource identity.
77
- # @param resource_name [String] Resource identity.
78
- # @param filter [String] The filter to apply on the operation.
57
+ # @param resource_provider_namespace [String] The namespace of the resource
58
+ # provider.
59
+ # @param parent_resource_path [String] The parent resource identity.
60
+ # @param resource_type [String] The resource type of the resource.
61
+ # @param resource_name [String] The name of the resource to get role
62
+ # assignments for.
63
+ # @param filter [String] The filter to apply on the operation. Use
64
+ # $filter=atScope() to return all role assignments at or above the scope. Use
65
+ # $filter=principalId eq {id} to return all role assignments at, above or below
66
+ # the scope for the specified principal.
79
67
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
80
68
  # will be added to the HTTP request.
81
69
  #
@@ -86,14 +74,19 @@ module Azure::ARM::Authorization
86
74
  end
87
75
 
88
76
  #
89
- # Gets role assignments of the resource.
77
+ # Gets role assignments for a resource.
90
78
  #
91
79
  # @param resource_group_name [String] The name of the resource group.
92
- # @param resource_provider_namespace [String] Resource identity.
93
- # @param parent_resource_path [String] Resource identity.
94
- # @param resource_type [String] Resource identity.
95
- # @param resource_name [String] Resource identity.
96
- # @param filter [String] The filter to apply on the operation.
80
+ # @param resource_provider_namespace [String] The namespace of the resource
81
+ # provider.
82
+ # @param parent_resource_path [String] The parent resource identity.
83
+ # @param resource_type [String] The resource type of the resource.
84
+ # @param resource_name [String] The name of the resource to get role
85
+ # assignments for.
86
+ # @param filter [String] The filter to apply on the operation. Use
87
+ # $filter=atScope() to return all role assignments at or above the scope. Use
88
+ # $filter=principalId eq {id} to return all role assignments at, above or below
89
+ # the scope for the specified principal.
97
90
  # @param [Hash{String => String}] A hash of custom headers that will be added
98
91
  # to the HTTP request.
99
92
  #
@@ -156,32 +149,13 @@ module Azure::ARM::Authorization
156
149
  end
157
150
 
158
151
  #
159
- # Gets role assignments of the resource group.
152
+ # Gets role assignments for a resource group.
160
153
  #
161
- # @param resource_group_name [String] Resource group name.
162
- # @param filter [String] The filter to apply on the operation.
163
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
164
- # will be added to the HTTP request.
165
- #
166
- # @return [RoleAssignmentListResult] which provide lazy access to pages of the
167
- # response.
168
- #
169
- def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil)
170
- response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value!
171
- unless response.nil?
172
- page = response.body
173
- page.next_method = Proc.new do |next_page_link|
174
- list_for_resource_group_next_async(next_page_link, custom_headers)
175
- end
176
- page
177
- end
178
- end
179
-
180
- #
181
- # Gets role assignments of the resource group.
182
- #
183
- # @param resource_group_name [String] Resource group name.
184
- # @param filter [String] The filter to apply on the operation.
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param filter [String] The filter to apply on the operation. Use
156
+ # $filter=atScope() to return all role assignments at or above the scope. Use
157
+ # $filter=principalId eq {id} to return all role assignments at, above or below
158
+ # the scope for the specified principal.
185
159
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
186
160
  # will be added to the HTTP request.
187
161
  #
@@ -193,10 +167,13 @@ module Azure::ARM::Authorization
193
167
  end
194
168
 
195
169
  #
196
- # Gets role assignments of the resource group.
170
+ # Gets role assignments for a resource group.
197
171
  #
198
- # @param resource_group_name [String] Resource group name.
199
- # @param filter [String] The filter to apply on the operation.
172
+ # @param resource_group_name [String] The name of the resource group.
173
+ # @param filter [String] The filter to apply on the operation. Use
174
+ # $filter=atScope() to return all role assignments at or above the scope. Use
175
+ # $filter=principalId eq {id} to return all role assignments at, above or below
176
+ # the scope for the specified principal.
200
177
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
201
178
  # will be added to the HTTP request.
202
179
  #
@@ -207,10 +184,13 @@ module Azure::ARM::Authorization
207
184
  end
208
185
 
209
186
  #
210
- # Gets role assignments of the resource group.
187
+ # Gets role assignments for a resource group.
211
188
  #
212
- # @param resource_group_name [String] Resource group name.
213
- # @param filter [String] The filter to apply on the operation.
189
+ # @param resource_group_name [String] The name of the resource group.
190
+ # @param filter [String] The filter to apply on the operation. Use
191
+ # $filter=atScope() to return all role assignments at or above the scope. Use
192
+ # $filter=principalId eq {id} to return all role assignments at, above or below
193
+ # the scope for the specified principal.
214
194
  # @param [Hash{String => String}] A hash of custom headers that will be added
215
195
  # to the HTTP request.
216
196
  #
@@ -268,10 +248,11 @@ module Azure::ARM::Authorization
268
248
  end
269
249
 
270
250
  #
271
- # Delete role assignment.
251
+ # Deletes a role assignment.
272
252
  #
273
- # @param scope [String] Scope.
274
- # @param role_assignment_name [String] Role assignment name.
253
+ # @param scope [String] The scope of the role assignment to delete.
254
+ # @param role_assignment_name [String] The name of the role assignment to
255
+ # delete.
275
256
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
276
257
  # will be added to the HTTP request.
277
258
  #
@@ -283,10 +264,11 @@ module Azure::ARM::Authorization
283
264
  end
284
265
 
285
266
  #
286
- # Delete role assignment.
267
+ # Deletes a role assignment.
287
268
  #
288
- # @param scope [String] Scope.
289
- # @param role_assignment_name [String] Role assignment name.
269
+ # @param scope [String] The scope of the role assignment to delete.
270
+ # @param role_assignment_name [String] The name of the role assignment to
271
+ # delete.
290
272
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
291
273
  # will be added to the HTTP request.
292
274
  #
@@ -297,10 +279,11 @@ module Azure::ARM::Authorization
297
279
  end
298
280
 
299
281
  #
300
- # Delete role assignment.
282
+ # Deletes a role assignment.
301
283
  #
302
- # @param scope [String] Scope.
303
- # @param role_assignment_name [String] Role assignment name.
284
+ # @param scope [String] The scope of the role assignment to delete.
285
+ # @param role_assignment_name [String] The name of the role assignment to
286
+ # delete.
304
287
  # @param [Hash{String => String}] A hash of custom headers that will be added
305
288
  # to the HTTP request.
306
289
  #
@@ -359,11 +342,19 @@ module Azure::ARM::Authorization
359
342
  end
360
343
 
361
344
  #
362
- # Create role assignment.
345
+ # Creates a role assignment.
363
346
  #
364
- # @param scope [String] Scope.
365
- # @param role_assignment_name [String] Role assignment name.
366
- # @param parameters [RoleAssignmentCreateParameters] Role assignment.
347
+ # @param scope [String] The scope of the role assignment to create. The scope
348
+ # can be any REST resource instance. For example, use
349
+ # '/subscriptions/{subscription-id}/' for a subscription,
350
+ # '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a
351
+ # resource group, and
352
+ # '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'
353
+ # for a resource.
354
+ # @param role_assignment_name [String] The name of the role assignment to
355
+ # create. It can be any valid GUID.
356
+ # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
357
+ # assignment.
367
358
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
368
359
  # will be added to the HTTP request.
369
360
  #
@@ -375,11 +366,19 @@ module Azure::ARM::Authorization
375
366
  end
376
367
 
377
368
  #
378
- # Create role assignment.
369
+ # Creates a role assignment.
379
370
  #
380
- # @param scope [String] Scope.
381
- # @param role_assignment_name [String] Role assignment name.
382
- # @param parameters [RoleAssignmentCreateParameters] Role assignment.
371
+ # @param scope [String] The scope of the role assignment to create. The scope
372
+ # can be any REST resource instance. For example, use
373
+ # '/subscriptions/{subscription-id}/' for a subscription,
374
+ # '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a
375
+ # resource group, and
376
+ # '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'
377
+ # for a resource.
378
+ # @param role_assignment_name [String] The name of the role assignment to
379
+ # create. It can be any valid GUID.
380
+ # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
381
+ # assignment.
383
382
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
384
383
  # will be added to the HTTP request.
385
384
  #
@@ -390,11 +389,19 @@ module Azure::ARM::Authorization
390
389
  end
391
390
 
392
391
  #
393
- # Create role assignment.
392
+ # Creates a role assignment.
394
393
  #
395
- # @param scope [String] Scope.
396
- # @param role_assignment_name [String] Role assignment name.
397
- # @param parameters [RoleAssignmentCreateParameters] Role assignment.
394
+ # @param scope [String] The scope of the role assignment to create. The scope
395
+ # can be any REST resource instance. For example, use
396
+ # '/subscriptions/{subscription-id}/' for a subscription,
397
+ # '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a
398
+ # resource group, and
399
+ # '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'
400
+ # for a resource.
401
+ # @param role_assignment_name [String] The name of the role assignment to
402
+ # create. It can be any valid GUID.
403
+ # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
404
+ # assignment.
398
405
  # @param [Hash{String => String}] A hash of custom headers that will be added
399
406
  # to the HTTP request.
400
407
  #
@@ -463,10 +470,10 @@ module Azure::ARM::Authorization
463
470
  end
464
471
 
465
472
  #
466
- # Get single role assignment.
473
+ # Get the specified role assignment.
467
474
  #
468
- # @param scope [String] Scope.
469
- # @param role_assignment_name [String] Role assignment name.
475
+ # @param scope [String] The scope of the role assignment.
476
+ # @param role_assignment_name [String] The name of the role assignment to get.
470
477
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
471
478
  # will be added to the HTTP request.
472
479
  #
@@ -478,10 +485,10 @@ module Azure::ARM::Authorization
478
485
  end
479
486
 
480
487
  #
481
- # Get single role assignment.
488
+ # Get the specified role assignment.
482
489
  #
483
- # @param scope [String] Scope.
484
- # @param role_assignment_name [String] Role assignment name.
490
+ # @param scope [String] The scope of the role assignment.
491
+ # @param role_assignment_name [String] The name of the role assignment to get.
485
492
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
486
493
  # will be added to the HTTP request.
487
494
  #
@@ -492,10 +499,10 @@ module Azure::ARM::Authorization
492
499
  end
493
500
 
494
501
  #
495
- # Get single role assignment.
502
+ # Get the specified role assignment.
496
503
  #
497
- # @param scope [String] Scope.
498
- # @param role_assignment_name [String] Role assignment name.
504
+ # @param scope [String] The scope of the role assignment.
505
+ # @param role_assignment_name [String] The name of the role assignment to get.
499
506
  # @param [Hash{String => String}] A hash of custom headers that will be added
500
507
  # to the HTTP request.
501
508
  #
@@ -554,9 +561,9 @@ module Azure::ARM::Authorization
554
561
  end
555
562
 
556
563
  #
557
- # Delete role assignment.
564
+ # Deletes a role assignment.
558
565
  #
559
- # @param role_assignment_id [String] Role assignment Id
566
+ # @param role_assignment_id [String] The ID of the role assignment to delete.
560
567
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
561
568
  # will be added to the HTTP request.
562
569
  #
@@ -568,9 +575,9 @@ module Azure::ARM::Authorization
568
575
  end
569
576
 
570
577
  #
571
- # Delete role assignment.
578
+ # Deletes a role assignment.
572
579
  #
573
- # @param role_assignment_id [String] Role assignment Id
580
+ # @param role_assignment_id [String] The ID of the role assignment to delete.
574
581
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
575
582
  # will be added to the HTTP request.
576
583
  #
@@ -581,9 +588,9 @@ module Azure::ARM::Authorization
581
588
  end
582
589
 
583
590
  #
584
- # Delete role assignment.
591
+ # Deletes a role assignment.
585
592
  #
586
- # @param role_assignment_id [String] Role assignment Id
593
+ # @param role_assignment_id [String] The ID of the role assignment to delete.
587
594
  # @param [Hash{String => String}] A hash of custom headers that will be added
588
595
  # to the HTTP request.
589
596
  #
@@ -640,10 +647,11 @@ module Azure::ARM::Authorization
640
647
  end
641
648
 
642
649
  #
643
- # Create role assignment by Id.
650
+ # Creates a role assignment by ID.
644
651
  #
645
- # @param role_assignment_id [String] Role assignment Id
646
- # @param parameters [RoleAssignmentCreateParameters] Role assignment.
652
+ # @param role_assignment_id [String] The ID of the role assignment to create.
653
+ # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
654
+ # assignment.
647
655
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
648
656
  # will be added to the HTTP request.
649
657
  #
@@ -655,10 +663,11 @@ module Azure::ARM::Authorization
655
663
  end
656
664
 
657
665
  #
658
- # Create role assignment by Id.
666
+ # Creates a role assignment by ID.
659
667
  #
660
- # @param role_assignment_id [String] Role assignment Id
661
- # @param parameters [RoleAssignmentCreateParameters] Role assignment.
668
+ # @param role_assignment_id [String] The ID of the role assignment to create.
669
+ # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
670
+ # assignment.
662
671
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
663
672
  # will be added to the HTTP request.
664
673
  #
@@ -669,10 +678,11 @@ module Azure::ARM::Authorization
669
678
  end
670
679
 
671
680
  #
672
- # Create role assignment by Id.
681
+ # Creates a role assignment by ID.
673
682
  #
674
- # @param role_assignment_id [String] Role assignment Id
675
- # @param parameters [RoleAssignmentCreateParameters] Role assignment.
683
+ # @param role_assignment_id [String] The ID of the role assignment to create.
684
+ # @param parameters [RoleAssignmentCreateParameters] Parameters for the role
685
+ # assignment.
676
686
  # @param [Hash{String => String}] A hash of custom headers that will be added
677
687
  # to the HTTP request.
678
688
  #
@@ -739,9 +749,9 @@ module Azure::ARM::Authorization
739
749
  end
740
750
 
741
751
  #
742
- # Get single role assignment.
752
+ # Gets a role assignment by ID.
743
753
  #
744
- # @param role_assignment_id [String] Role assignment Id
754
+ # @param role_assignment_id [String] The ID of the role assignment to get.
745
755
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
746
756
  # will be added to the HTTP request.
747
757
  #
@@ -753,9 +763,9 @@ module Azure::ARM::Authorization
753
763
  end
754
764
 
755
765
  #
756
- # Get single role assignment.
766
+ # Gets a role assignment by ID.
757
767
  #
758
- # @param role_assignment_id [String] Role assignment Id
768
+ # @param role_assignment_id [String] The ID of the role assignment to get.
759
769
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
760
770
  # will be added to the HTTP request.
761
771
  #
@@ -766,9 +776,9 @@ module Azure::ARM::Authorization
766
776
  end
767
777
 
768
778
  #
769
- # Get single role assignment.
779
+ # Gets a role assignment by ID.
770
780
  #
771
- # @param role_assignment_id [String] Role assignment Id
781
+ # @param role_assignment_id [String] The ID of the role assignment to get.
772
782
  # @param [Hash{String => String}] A hash of custom headers that will be added
773
783
  # to the HTTP request.
774
784
  #
@@ -825,30 +835,12 @@ module Azure::ARM::Authorization
825
835
  end
826
836
 
827
837
  #
828
- # Gets role assignments of the subscription.
838
+ # Gets all role assignments for the subscription.
829
839
  #
830
- # @param filter [String] The filter to apply on the operation.
831
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
832
- # will be added to the HTTP request.
833
- #
834
- # @return [RoleAssignmentListResult] which provide lazy access to pages of the
835
- # response.
836
- #
837
- def list_as_lazy(filter = nil, custom_headers = nil)
838
- response = list_async(filter, custom_headers).value!
839
- unless response.nil?
840
- page = response.body
841
- page.next_method = Proc.new do |next_page_link|
842
- list_next_async(next_page_link, custom_headers)
843
- end
844
- page
845
- end
846
- end
847
-
848
- #
849
- # Gets role assignments of the subscription.
850
- #
851
- # @param filter [String] The filter to apply on the operation.
840
+ # @param filter [String] The filter to apply on the operation. Use
841
+ # $filter=atScope() to return all role assignments at or above the scope. Use
842
+ # $filter=principalId eq {id} to return all role assignments at, above or below
843
+ # the scope for the specified principal.
852
844
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
853
845
  # will be added to the HTTP request.
854
846
  #
@@ -860,9 +852,12 @@ module Azure::ARM::Authorization
860
852
  end
861
853
 
862
854
  #
863
- # Gets role assignments of the subscription.
855
+ # Gets all role assignments for the subscription.
864
856
  #
865
- # @param filter [String] The filter to apply on the operation.
857
+ # @param filter [String] The filter to apply on the operation. Use
858
+ # $filter=atScope() to return all role assignments at or above the scope. Use
859
+ # $filter=principalId eq {id} to return all role assignments at, above or below
860
+ # the scope for the specified principal.
866
861
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
867
862
  # will be added to the HTTP request.
868
863
  #
@@ -873,9 +868,12 @@ module Azure::ARM::Authorization
873
868
  end
874
869
 
875
870
  #
876
- # Gets role assignments of the subscription.
871
+ # Gets all role assignments for the subscription.
877
872
  #
878
- # @param filter [String] The filter to apply on the operation.
873
+ # @param filter [String] The filter to apply on the operation. Use
874
+ # $filter=atScope() to return all role assignments at or above the scope. Use
875
+ # $filter=principalId eq {id} to return all role assignments at, above or below
876
+ # the scope for the specified principal.
879
877
  # @param [Hash{String => String}] A hash of custom headers that will be added
880
878
  # to the HTTP request.
881
879
  #
@@ -932,32 +930,13 @@ module Azure::ARM::Authorization
932
930
  end
933
931
 
934
932
  #
935
- # Gets role assignments of the scope.
936
- #
937
- # @param scope [String] Scope.
938
- # @param filter [String] The filter to apply on the operation.
939
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
940
- # will be added to the HTTP request.
941
- #
942
- # @return [RoleAssignmentListResult] which provide lazy access to pages of the
943
- # response.
944
- #
945
- def list_for_scope_as_lazy(scope, filter = nil, custom_headers = nil)
946
- response = list_for_scope_async(scope, filter, custom_headers).value!
947
- unless response.nil?
948
- page = response.body
949
- page.next_method = Proc.new do |next_page_link|
950
- list_for_scope_next_async(next_page_link, custom_headers)
951
- end
952
- page
953
- end
954
- end
955
-
956
- #
957
- # Gets role assignments of the scope.
933
+ # Gets role assignments for a scope.
958
934
  #
959
- # @param scope [String] Scope.
960
- # @param filter [String] The filter to apply on the operation.
935
+ # @param scope [String] The scope of the role assignments.
936
+ # @param filter [String] The filter to apply on the operation. Use
937
+ # $filter=atScope() to return all role assignments at or above the scope. Use
938
+ # $filter=principalId eq {id} to return all role assignments at, above or below
939
+ # the scope for the specified principal.
961
940
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
962
941
  # will be added to the HTTP request.
963
942
  #
@@ -969,10 +948,13 @@ module Azure::ARM::Authorization
969
948
  end
970
949
 
971
950
  #
972
- # Gets role assignments of the scope.
951
+ # Gets role assignments for a scope.
973
952
  #
974
- # @param scope [String] Scope.
975
- # @param filter [String] The filter to apply on the operation.
953
+ # @param scope [String] The scope of the role assignments.
954
+ # @param filter [String] The filter to apply on the operation. Use
955
+ # $filter=atScope() to return all role assignments at or above the scope. Use
956
+ # $filter=principalId eq {id} to return all role assignments at, above or below
957
+ # the scope for the specified principal.
976
958
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
977
959
  # will be added to the HTTP request.
978
960
  #
@@ -983,10 +965,13 @@ module Azure::ARM::Authorization
983
965
  end
984
966
 
985
967
  #
986
- # Gets role assignments of the scope.
968
+ # Gets role assignments for a scope.
987
969
  #
988
- # @param scope [String] Scope.
989
- # @param filter [String] The filter to apply on the operation.
970
+ # @param scope [String] The scope of the role assignments.
971
+ # @param filter [String] The filter to apply on the operation. Use
972
+ # $filter=atScope() to return all role assignments at or above the scope. Use
973
+ # $filter=principalId eq {id} to return all role assignments at, above or below
974
+ # the scope for the specified principal.
990
975
  # @param [Hash{String => String}] A hash of custom headers that will be added
991
976
  # to the HTTP request.
992
977
  #
@@ -1043,10 +1028,10 @@ module Azure::ARM::Authorization
1043
1028
  end
1044
1029
 
1045
1030
  #
1046
- # Gets role assignments of the resource.
1031
+ # Gets role assignments for a resource.
1047
1032
  #
1048
- # @param next_page_link [String] The NextLink from the previous successful
1049
- # call to List operation.
1033
+ # @param next_page_link [String] The NextLink from the previous successful call
1034
+ # to List operation.
1050
1035
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1051
1036
  # will be added to the HTTP request.
1052
1037
  #
@@ -1058,10 +1043,10 @@ module Azure::ARM::Authorization
1058
1043
  end
1059
1044
 
1060
1045
  #
1061
- # Gets role assignments of the resource.
1046
+ # Gets role assignments for a resource.
1062
1047
  #
1063
- # @param next_page_link [String] The NextLink from the previous successful
1064
- # call to List operation.
1048
+ # @param next_page_link [String] The NextLink from the previous successful call
1049
+ # to List operation.
1065
1050
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1066
1051
  # will be added to the HTTP request.
1067
1052
  #
@@ -1072,10 +1057,10 @@ module Azure::ARM::Authorization
1072
1057
  end
1073
1058
 
1074
1059
  #
1075
- # Gets role assignments of the resource.
1060
+ # Gets role assignments for a resource.
1076
1061
  #
1077
- # @param next_page_link [String] The NextLink from the previous successful
1078
- # call to List operation.
1062
+ # @param next_page_link [String] The NextLink from the previous successful call
1063
+ # to List operation.
1079
1064
  # @param [Hash{String => String}] A hash of custom headers that will be added
1080
1065
  # to the HTTP request.
1081
1066
  #
@@ -1130,10 +1115,10 @@ module Azure::ARM::Authorization
1130
1115
  end
1131
1116
 
1132
1117
  #
1133
- # Gets role assignments of the resource group.
1118
+ # Gets role assignments for a resource group.
1134
1119
  #
1135
- # @param next_page_link [String] The NextLink from the previous successful
1136
- # call to List operation.
1120
+ # @param next_page_link [String] The NextLink from the previous successful call
1121
+ # to List operation.
1137
1122
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1138
1123
  # will be added to the HTTP request.
1139
1124
  #
@@ -1145,10 +1130,10 @@ module Azure::ARM::Authorization
1145
1130
  end
1146
1131
 
1147
1132
  #
1148
- # Gets role assignments of the resource group.
1133
+ # Gets role assignments for a resource group.
1149
1134
  #
1150
- # @param next_page_link [String] The NextLink from the previous successful
1151
- # call to List operation.
1135
+ # @param next_page_link [String] The NextLink from the previous successful call
1136
+ # to List operation.
1152
1137
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1153
1138
  # will be added to the HTTP request.
1154
1139
  #
@@ -1159,10 +1144,10 @@ module Azure::ARM::Authorization
1159
1144
  end
1160
1145
 
1161
1146
  #
1162
- # Gets role assignments of the resource group.
1147
+ # Gets role assignments for a resource group.
1163
1148
  #
1164
- # @param next_page_link [String] The NextLink from the previous successful
1165
- # call to List operation.
1149
+ # @param next_page_link [String] The NextLink from the previous successful call
1150
+ # to List operation.
1166
1151
  # @param [Hash{String => String}] A hash of custom headers that will be added
1167
1152
  # to the HTTP request.
1168
1153
  #
@@ -1217,10 +1202,10 @@ module Azure::ARM::Authorization
1217
1202
  end
1218
1203
 
1219
1204
  #
1220
- # Gets role assignments of the subscription.
1205
+ # Gets all role assignments for the subscription.
1221
1206
  #
1222
- # @param next_page_link [String] The NextLink from the previous successful
1223
- # call to List operation.
1207
+ # @param next_page_link [String] The NextLink from the previous successful call
1208
+ # to List operation.
1224
1209
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1225
1210
  # will be added to the HTTP request.
1226
1211
  #
@@ -1232,10 +1217,10 @@ module Azure::ARM::Authorization
1232
1217
  end
1233
1218
 
1234
1219
  #
1235
- # Gets role assignments of the subscription.
1220
+ # Gets all role assignments for the subscription.
1236
1221
  #
1237
- # @param next_page_link [String] The NextLink from the previous successful
1238
- # call to List operation.
1222
+ # @param next_page_link [String] The NextLink from the previous successful call
1223
+ # to List operation.
1239
1224
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1240
1225
  # will be added to the HTTP request.
1241
1226
  #
@@ -1246,10 +1231,10 @@ module Azure::ARM::Authorization
1246
1231
  end
1247
1232
 
1248
1233
  #
1249
- # Gets role assignments of the subscription.
1234
+ # Gets all role assignments for the subscription.
1250
1235
  #
1251
- # @param next_page_link [String] The NextLink from the previous successful
1252
- # call to List operation.
1236
+ # @param next_page_link [String] The NextLink from the previous successful call
1237
+ # to List operation.
1253
1238
  # @param [Hash{String => String}] A hash of custom headers that will be added
1254
1239
  # to the HTTP request.
1255
1240
  #
@@ -1304,10 +1289,10 @@ module Azure::ARM::Authorization
1304
1289
  end
1305
1290
 
1306
1291
  #
1307
- # Gets role assignments of the scope.
1292
+ # Gets role assignments for a scope.
1308
1293
  #
1309
- # @param next_page_link [String] The NextLink from the previous successful
1310
- # call to List operation.
1294
+ # @param next_page_link [String] The NextLink from the previous successful call
1295
+ # to List operation.
1311
1296
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1312
1297
  # will be added to the HTTP request.
1313
1298
  #
@@ -1319,10 +1304,10 @@ module Azure::ARM::Authorization
1319
1304
  end
1320
1305
 
1321
1306
  #
1322
- # Gets role assignments of the scope.
1307
+ # Gets role assignments for a scope.
1323
1308
  #
1324
- # @param next_page_link [String] The NextLink from the previous successful
1325
- # call to List operation.
1309
+ # @param next_page_link [String] The NextLink from the previous successful call
1310
+ # to List operation.
1326
1311
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1327
1312
  # will be added to the HTTP request.
1328
1313
  #
@@ -1333,10 +1318,10 @@ module Azure::ARM::Authorization
1333
1318
  end
1334
1319
 
1335
1320
  #
1336
- # Gets role assignments of the scope.
1321
+ # Gets role assignments for a scope.
1337
1322
  #
1338
- # @param next_page_link [String] The NextLink from the previous successful
1339
- # call to List operation.
1323
+ # @param next_page_link [String] The NextLink from the previous successful call
1324
+ # to List operation.
1340
1325
  # @param [Hash{String => String}] A hash of custom headers that will be added
1341
1326
  # to the HTTP request.
1342
1327
  #
@@ -1390,5 +1375,110 @@ module Azure::ARM::Authorization
1390
1375
  promise.execute
1391
1376
  end
1392
1377
 
1378
+ #
1379
+ # Gets role assignments for a resource.
1380
+ #
1381
+ # @param resource_group_name [String] The name of the resource group.
1382
+ # @param resource_provider_namespace [String] The namespace of the resource
1383
+ # provider.
1384
+ # @param parent_resource_path [String] The parent resource identity.
1385
+ # @param resource_type [String] The resource type of the resource.
1386
+ # @param resource_name [String] The name of the resource to get role
1387
+ # assignments for.
1388
+ # @param filter [String] The filter to apply on the operation. Use
1389
+ # $filter=atScope() to return all role assignments at or above the scope. Use
1390
+ # $filter=principalId eq {id} to return all role assignments at, above or below
1391
+ # the scope for the specified principal.
1392
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1393
+ # will be added to the HTTP request.
1394
+ #
1395
+ # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1396
+ # response.
1397
+ #
1398
+ def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
1399
+ response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value!
1400
+ unless response.nil?
1401
+ page = response.body
1402
+ page.next_method = Proc.new do |next_page_link|
1403
+ list_for_resource_next_async(next_page_link, custom_headers)
1404
+ end
1405
+ page
1406
+ end
1407
+ end
1408
+
1409
+ #
1410
+ # Gets role assignments for a resource group.
1411
+ #
1412
+ # @param resource_group_name [String] The name of the resource group.
1413
+ # @param filter [String] The filter to apply on the operation. Use
1414
+ # $filter=atScope() to return all role assignments at or above the scope. Use
1415
+ # $filter=principalId eq {id} to return all role assignments at, above or below
1416
+ # the scope for the specified principal.
1417
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1418
+ # will be added to the HTTP request.
1419
+ #
1420
+ # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1421
+ # response.
1422
+ #
1423
+ def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil)
1424
+ response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value!
1425
+ unless response.nil?
1426
+ page = response.body
1427
+ page.next_method = Proc.new do |next_page_link|
1428
+ list_for_resource_group_next_async(next_page_link, custom_headers)
1429
+ end
1430
+ page
1431
+ end
1432
+ end
1433
+
1434
+ #
1435
+ # Gets all role assignments for the subscription.
1436
+ #
1437
+ # @param filter [String] The filter to apply on the operation. Use
1438
+ # $filter=atScope() to return all role assignments at or above the scope. Use
1439
+ # $filter=principalId eq {id} to return all role assignments at, above or below
1440
+ # the scope for the specified principal.
1441
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1442
+ # will be added to the HTTP request.
1443
+ #
1444
+ # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1445
+ # response.
1446
+ #
1447
+ def list_as_lazy(filter = nil, custom_headers = nil)
1448
+ response = list_async(filter, custom_headers).value!
1449
+ unless response.nil?
1450
+ page = response.body
1451
+ page.next_method = Proc.new do |next_page_link|
1452
+ list_next_async(next_page_link, custom_headers)
1453
+ end
1454
+ page
1455
+ end
1456
+ end
1457
+
1458
+ #
1459
+ # Gets role assignments for a scope.
1460
+ #
1461
+ # @param scope [String] The scope of the role assignments.
1462
+ # @param filter [String] The filter to apply on the operation. Use
1463
+ # $filter=atScope() to return all role assignments at or above the scope. Use
1464
+ # $filter=principalId eq {id} to return all role assignments at, above or below
1465
+ # the scope for the specified principal.
1466
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1467
+ # will be added to the HTTP request.
1468
+ #
1469
+ # @return [RoleAssignmentListResult] which provide lazy access to pages of the
1470
+ # response.
1471
+ #
1472
+ def list_for_scope_as_lazy(scope, filter = nil, custom_headers = nil)
1473
+ response = list_for_scope_async(scope, filter, custom_headers).value!
1474
+ unless response.nil?
1475
+ page = response.body
1476
+ page.next_method = Proc.new do |next_page_link|
1477
+ list_for_scope_next_async(next_page_link, custom_headers)
1478
+ end
1479
+ page
1480
+ end
1481
+ end
1482
+
1393
1483
  end
1394
1484
  end