azure_mgmt_authorization 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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_authorization.rb +10 -10
- data/lib/generated/azure_mgmt_authorization/authorization_management_client.rb +16 -5
- data/lib/generated/azure_mgmt_authorization/classic_administrators.rb +49 -38
- data/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb +6 -6
- data/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +3 -5
- data/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb +3 -3
- data/lib/generated/azure_mgmt_authorization/models/permission.rb +3 -3
- data/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb +3 -4
- data/lib/generated/azure_mgmt_authorization/models/provider_operation.rb +6 -6
- data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb +7 -7
- data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +3 -5
- data/lib/generated/azure_mgmt_authorization/models/resource_type.rb +4 -5
- data/lib/generated/azure_mgmt_authorization/models/role_assignment.rb +5 -6
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +2 -3
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +1 -1
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +2 -3
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +5 -3
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +4 -4
- data/lib/generated/azure_mgmt_authorization/models/role_definition.rb +5 -6
- data/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb +1 -1
- data/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +2 -3
- data/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb +6 -6
- data/lib/generated/azure_mgmt_authorization/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_authorization/permissions.rb +110 -98
- data/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +58 -54
- data/lib/generated/azure_mgmt_authorization/role_assignments.rb +312 -222
- data/lib/generated/azure_mgmt_authorization/role_definitions.rb +83 -79
- data/lib/generated/azure_mgmt_authorization/version.rb +2 -2
- metadata +4 -4
@@ -1,11 +1,15 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
-
#
|
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 RoleDefinitions
|
11
15
|
include Azure::ARM::Authorization::Models
|
@@ -23,10 +27,10 @@ module Azure::ARM::Authorization
|
|
23
27
|
attr_reader :client
|
24
28
|
|
25
29
|
#
|
26
|
-
# Deletes
|
30
|
+
# Deletes a role definition.
|
27
31
|
#
|
28
|
-
# @param scope [String]
|
29
|
-
# @param role_definition_id [String]
|
32
|
+
# @param scope [String] The scope of the role definition.
|
33
|
+
# @param role_definition_id [String] The ID of the role definition to delete.
|
30
34
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
35
|
# will be added to the HTTP request.
|
32
36
|
#
|
@@ -38,10 +42,10 @@ module Azure::ARM::Authorization
|
|
38
42
|
end
|
39
43
|
|
40
44
|
#
|
41
|
-
# Deletes
|
45
|
+
# Deletes a role definition.
|
42
46
|
#
|
43
|
-
# @param scope [String]
|
44
|
-
# @param role_definition_id [String]
|
47
|
+
# @param scope [String] The scope of the role definition.
|
48
|
+
# @param role_definition_id [String] The ID of the role definition to delete.
|
45
49
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
50
|
# will be added to the HTTP request.
|
47
51
|
#
|
@@ -52,10 +56,10 @@ module Azure::ARM::Authorization
|
|
52
56
|
end
|
53
57
|
|
54
58
|
#
|
55
|
-
# Deletes
|
59
|
+
# Deletes a role definition.
|
56
60
|
#
|
57
|
-
# @param scope [String]
|
58
|
-
# @param role_definition_id [String]
|
61
|
+
# @param scope [String] The scope of the role definition.
|
62
|
+
# @param role_definition_id [String] The ID of the role definition to delete.
|
59
63
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
64
|
# to the HTTP request.
|
61
65
|
#
|
@@ -116,8 +120,8 @@ module Azure::ARM::Authorization
|
|
116
120
|
#
|
117
121
|
# Get role definition by name (GUID).
|
118
122
|
#
|
119
|
-
# @param scope [String]
|
120
|
-
# @param role_definition_id [String]
|
123
|
+
# @param scope [String] The scope of the role definition.
|
124
|
+
# @param role_definition_id [String] The ID of the role definition.
|
121
125
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
122
126
|
# will be added to the HTTP request.
|
123
127
|
#
|
@@ -131,8 +135,8 @@ module Azure::ARM::Authorization
|
|
131
135
|
#
|
132
136
|
# Get role definition by name (GUID).
|
133
137
|
#
|
134
|
-
# @param scope [String]
|
135
|
-
# @param role_definition_id [String]
|
138
|
+
# @param scope [String] The scope of the role definition.
|
139
|
+
# @param role_definition_id [String] The ID of the role definition.
|
136
140
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
141
|
# will be added to the HTTP request.
|
138
142
|
#
|
@@ -145,8 +149,8 @@ module Azure::ARM::Authorization
|
|
145
149
|
#
|
146
150
|
# Get role definition by name (GUID).
|
147
151
|
#
|
148
|
-
# @param scope [String]
|
149
|
-
# @param role_definition_id [String]
|
152
|
+
# @param scope [String] The scope of the role definition.
|
153
|
+
# @param role_definition_id [String] The ID of the role definition.
|
150
154
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
151
155
|
# to the HTTP request.
|
152
156
|
#
|
@@ -207,9 +211,9 @@ module Azure::ARM::Authorization
|
|
207
211
|
#
|
208
212
|
# Creates or updates a role definition.
|
209
213
|
#
|
210
|
-
# @param scope [String]
|
211
|
-
# @param role_definition_id [String]
|
212
|
-
# @param role_definition [RoleDefinition]
|
214
|
+
# @param scope [String] The scope of the role definition.
|
215
|
+
# @param role_definition_id [String] The ID of the role definition.
|
216
|
+
# @param role_definition [RoleDefinition] The values for the role definition.
|
213
217
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
214
218
|
# will be added to the HTTP request.
|
215
219
|
#
|
@@ -223,9 +227,9 @@ module Azure::ARM::Authorization
|
|
223
227
|
#
|
224
228
|
# Creates or updates a role definition.
|
225
229
|
#
|
226
|
-
# @param scope [String]
|
227
|
-
# @param role_definition_id [String]
|
228
|
-
# @param role_definition [RoleDefinition]
|
230
|
+
# @param scope [String] The scope of the role definition.
|
231
|
+
# @param role_definition_id [String] The ID of the role definition.
|
232
|
+
# @param role_definition [RoleDefinition] The values for the role definition.
|
229
233
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
230
234
|
# will be added to the HTTP request.
|
231
235
|
#
|
@@ -238,9 +242,9 @@ module Azure::ARM::Authorization
|
|
238
242
|
#
|
239
243
|
# Creates or updates a role definition.
|
240
244
|
#
|
241
|
-
# @param scope [String]
|
242
|
-
# @param role_definition_id [String]
|
243
|
-
# @param role_definition [RoleDefinition]
|
245
|
+
# @param scope [String] The scope of the role definition.
|
246
|
+
# @param role_definition_id [String] The ID of the role definition.
|
247
|
+
# @param role_definition [RoleDefinition] The values for the role definition.
|
244
248
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
245
249
|
# to the HTTP request.
|
246
250
|
#
|
@@ -309,9 +313,10 @@ module Azure::ARM::Authorization
|
|
309
313
|
end
|
310
314
|
|
311
315
|
#
|
312
|
-
#
|
316
|
+
# Gets a role definition by ID.
|
313
317
|
#
|
314
|
-
# @param role_definition_id [String]
|
318
|
+
# @param role_definition_id [String] The fully qualified role definition ID to
|
319
|
+
# get.
|
315
320
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
316
321
|
# will be added to the HTTP request.
|
317
322
|
#
|
@@ -323,9 +328,10 @@ module Azure::ARM::Authorization
|
|
323
328
|
end
|
324
329
|
|
325
330
|
#
|
326
|
-
#
|
331
|
+
# Gets a role definition by ID.
|
327
332
|
#
|
328
|
-
# @param role_definition_id [String]
|
333
|
+
# @param role_definition_id [String] The fully qualified role definition ID to
|
334
|
+
# get.
|
329
335
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
330
336
|
# will be added to the HTTP request.
|
331
337
|
#
|
@@ -336,9 +342,10 @@ module Azure::ARM::Authorization
|
|
336
342
|
end
|
337
343
|
|
338
344
|
#
|
339
|
-
#
|
345
|
+
# Gets a role definition by ID.
|
340
346
|
#
|
341
|
-
# @param role_definition_id [String]
|
347
|
+
# @param role_definition_id [String] The fully qualified role definition ID to
|
348
|
+
# get.
|
342
349
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
343
350
|
# to the HTTP request.
|
344
351
|
#
|
@@ -395,34 +402,11 @@ module Azure::ARM::Authorization
|
|
395
402
|
end
|
396
403
|
|
397
404
|
#
|
398
|
-
# Get all role definitions that are applicable at scope and above.
|
399
|
-
# atScopeAndBelow filter to search below the given scope as well
|
405
|
+
# Get all role definitions that are applicable at scope and above.
|
400
406
|
#
|
401
|
-
# @param scope [String]
|
402
|
-
# @param filter [String] The filter to apply on the operation.
|
403
|
-
#
|
404
|
-
# will be added to the HTTP request.
|
405
|
-
#
|
406
|
-
# @return [RoleDefinitionListResult] which provide lazy access to pages of the
|
407
|
-
# response.
|
408
|
-
#
|
409
|
-
def list_as_lazy(scope, filter = nil, custom_headers = nil)
|
410
|
-
response = list_async(scope, filter, custom_headers).value!
|
411
|
-
unless response.nil?
|
412
|
-
page = response.body
|
413
|
-
page.next_method = Proc.new do |next_page_link|
|
414
|
-
list_next_async(next_page_link, custom_headers)
|
415
|
-
end
|
416
|
-
page
|
417
|
-
end
|
418
|
-
end
|
419
|
-
|
420
|
-
#
|
421
|
-
# Get all role definitions that are applicable at scope and above. Use
|
422
|
-
# atScopeAndBelow filter to search below the given scope as well
|
423
|
-
#
|
424
|
-
# @param scope [String] Scope
|
425
|
-
# @param filter [String] The filter to apply on the operation.
|
407
|
+
# @param scope [String] The scope of the role definition.
|
408
|
+
# @param filter [String] The filter to apply on the operation. Use
|
409
|
+
# atScopeAndBelow filter to search below the given scope as well.
|
426
410
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
427
411
|
# will be added to the HTTP request.
|
428
412
|
#
|
@@ -434,11 +418,11 @@ module Azure::ARM::Authorization
|
|
434
418
|
end
|
435
419
|
|
436
420
|
#
|
437
|
-
# Get all role definitions that are applicable at scope and above.
|
438
|
-
# atScopeAndBelow filter to search below the given scope as well
|
421
|
+
# Get all role definitions that are applicable at scope and above.
|
439
422
|
#
|
440
|
-
# @param scope [String]
|
441
|
-
# @param filter [String] The filter to apply on the operation.
|
423
|
+
# @param scope [String] The scope of the role definition.
|
424
|
+
# @param filter [String] The filter to apply on the operation. Use
|
425
|
+
# atScopeAndBelow filter to search below the given scope as well.
|
442
426
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
443
427
|
# will be added to the HTTP request.
|
444
428
|
#
|
@@ -449,11 +433,11 @@ module Azure::ARM::Authorization
|
|
449
433
|
end
|
450
434
|
|
451
435
|
#
|
452
|
-
# Get all role definitions that are applicable at scope and above.
|
453
|
-
# atScopeAndBelow filter to search below the given scope as well
|
436
|
+
# Get all role definitions that are applicable at scope and above.
|
454
437
|
#
|
455
|
-
# @param scope [String]
|
456
|
-
# @param filter [String] The filter to apply on the operation.
|
438
|
+
# @param scope [String] The scope of the role definition.
|
439
|
+
# @param filter [String] The filter to apply on the operation. Use
|
440
|
+
# atScopeAndBelow filter to search below the given scope as well.
|
457
441
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
458
442
|
# to the HTTP request.
|
459
443
|
#
|
@@ -510,11 +494,10 @@ module Azure::ARM::Authorization
|
|
510
494
|
end
|
511
495
|
|
512
496
|
#
|
513
|
-
# Get all role definitions that are applicable at scope and above.
|
514
|
-
# atScopeAndBelow filter to search below the given scope as well
|
497
|
+
# Get all role definitions that are applicable at scope and above.
|
515
498
|
#
|
516
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
517
|
-
#
|
499
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
500
|
+
# to List operation.
|
518
501
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
519
502
|
# will be added to the HTTP request.
|
520
503
|
#
|
@@ -526,11 +509,10 @@ module Azure::ARM::Authorization
|
|
526
509
|
end
|
527
510
|
|
528
511
|
#
|
529
|
-
# Get all role definitions that are applicable at scope and above.
|
530
|
-
# atScopeAndBelow filter to search below the given scope as well
|
512
|
+
# Get all role definitions that are applicable at scope and above.
|
531
513
|
#
|
532
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
533
|
-
#
|
514
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
515
|
+
# to List operation.
|
534
516
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
535
517
|
# will be added to the HTTP request.
|
536
518
|
#
|
@@ -541,11 +523,10 @@ module Azure::ARM::Authorization
|
|
541
523
|
end
|
542
524
|
|
543
525
|
#
|
544
|
-
# Get all role definitions that are applicable at scope and above.
|
545
|
-
# atScopeAndBelow filter to search below the given scope as well
|
526
|
+
# Get all role definitions that are applicable at scope and above.
|
546
527
|
#
|
547
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
548
|
-
#
|
528
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
529
|
+
# to List operation.
|
549
530
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
550
531
|
# to the HTTP request.
|
551
532
|
#
|
@@ -599,5 +580,28 @@ module Azure::ARM::Authorization
|
|
599
580
|
promise.execute
|
600
581
|
end
|
601
582
|
|
583
|
+
#
|
584
|
+
# Get all role definitions that are applicable at scope and above.
|
585
|
+
#
|
586
|
+
# @param scope [String] The scope of the role definition.
|
587
|
+
# @param filter [String] The filter to apply on the operation. Use
|
588
|
+
# atScopeAndBelow filter to search below the given scope as well.
|
589
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
590
|
+
# will be added to the HTTP request.
|
591
|
+
#
|
592
|
+
# @return [RoleDefinitionListResult] which provide lazy access to pages of the
|
593
|
+
# response.
|
594
|
+
#
|
595
|
+
def list_as_lazy(scope, filter = nil, custom_headers = nil)
|
596
|
+
response = list_async(scope, filter, custom_headers).value!
|
597
|
+
unless response.nil?
|
598
|
+
page = response.body
|
599
|
+
page.next_method = Proc.new do |next_page_link|
|
600
|
+
list_next_async(next_page_link, custom_headers)
|
601
|
+
end
|
602
|
+
page
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
602
606
|
end
|
603
607
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.8.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_authorization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.6.
|
75
|
+
version: 0.6.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.6.
|
82
|
+
version: 0.6.2
|
83
83
|
description: Microsoft Azure Role Based Authorization Management Client Library for
|
84
84
|
Ruby
|
85
85
|
email: azrubyteam@microsoft.com
|