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,5 +1,5 @@
|
|
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
|
|
@@ -12,14 +12,13 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The resource type name.
|
16
16
|
attr_accessor :name
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The resource type display name.
|
19
19
|
attr_accessor :display_name
|
20
20
|
|
21
|
-
# @return [Array<ProviderOperation>]
|
22
|
-
# operations
|
21
|
+
# @return [Array<ProviderOperation>] The resource type operations.
|
23
22
|
attr_accessor :operations
|
24
23
|
|
25
24
|
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -12,17 +12,16 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The role assignment ID.
|
16
16
|
attr_accessor :id
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The role assignment name.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# @return [String]
|
21
|
+
# @return [String] The role assignment type.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
|
-
# @return [RoleAssignmentPropertiesWithScope]
|
25
|
-
# assignment properties.
|
24
|
+
# @return [RoleAssignmentPropertiesWithScope] Role assignment properties.
|
26
25
|
attr_accessor :properties
|
27
26
|
|
28
27
|
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -12,8 +12,7 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [RoleAssignmentProperties]
|
16
|
-
# properties.
|
15
|
+
# @return [RoleAssignmentProperties] Role assignment properties.
|
17
16
|
attr_accessor :properties
|
18
17
|
|
19
18
|
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -15,8 +15,7 @@ module Azure::ARM::Authorization
|
|
15
15
|
# @return [Array<RoleAssignment>] Role assignment list.
|
16
16
|
attr_accessor :value
|
17
17
|
|
18
|
-
# @return [String]
|
19
|
-
# assignment results.
|
18
|
+
# @return [String] The URL to use for getting the next set of results.
|
20
19
|
attr_accessor :next_link
|
21
20
|
|
22
21
|
# return [Proc] with next page method call.
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -12,10 +12,12 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The role definition ID used in the role assignment.
|
16
16
|
attr_accessor :role_definition_id
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The principal ID assigned to the role. This maps to
|
19
|
+
# the ID inside the Active Directory. It can point to a user, service
|
20
|
+
# principal, or security group.
|
19
21
|
attr_accessor :principal_id
|
20
22
|
|
21
23
|
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -12,13 +12,13 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The role assignment scope.
|
16
16
|
attr_accessor :scope
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The role definition ID.
|
19
19
|
attr_accessor :role_definition_id
|
20
20
|
|
21
|
-
# @return [String]
|
21
|
+
# @return [String] The principal ID.
|
22
22
|
attr_accessor :principal_id
|
23
23
|
|
24
24
|
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -12,17 +12,16 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The role definition ID.
|
16
16
|
attr_accessor :id
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The role definition name.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# @return [String]
|
21
|
+
# @return [String] The role definition type.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
|
-
# @return [RoleDefinitionProperties]
|
25
|
-
# properties.
|
24
|
+
# @return [RoleDefinitionProperties] Role definition properties.
|
26
25
|
attr_accessor :properties
|
27
26
|
|
28
27
|
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -15,8 +15,7 @@ module Azure::ARM::Authorization
|
|
15
15
|
# @return [Array<RoleDefinition>] Role definition list.
|
16
16
|
attr_accessor :value
|
17
17
|
|
18
|
-
# @return [String]
|
19
|
-
# definitions results.
|
18
|
+
# @return [String] The URL to use for getting the next set of results.
|
20
19
|
attr_accessor :next_link
|
21
20
|
|
22
21
|
# return [Proc] with next page method call.
|
@@ -1,5 +1,5 @@
|
|
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
|
|
@@ -12,19 +12,19 @@ module Azure::ARM::Authorization
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
15
|
+
# @return [String] The role name.
|
16
16
|
attr_accessor :role_name
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] The role definition description.
|
19
19
|
attr_accessor :description
|
20
20
|
|
21
|
-
# @return [String]
|
21
|
+
# @return [String] The role type.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
|
-
# @return [Array<Permission>]
|
24
|
+
# @return [Array<Permission>] Role definition permissions.
|
25
25
|
attr_accessor :permissions
|
26
26
|
|
27
|
-
# @return [Array<String>]
|
27
|
+
# @return [Array<String>] Role definition assignable scopes.
|
28
28
|
attr_accessor :assignable_scopes
|
29
29
|
|
30
30
|
|
@@ -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 Permissions
|
11
15
|
include Azure::ARM::Authorization::Models
|
@@ -23,32 +27,10 @@ module Azure::ARM::Authorization
|
|
23
27
|
attr_reader :client
|
24
28
|
|
25
29
|
#
|
26
|
-
# Gets a resource group
|
30
|
+
# Gets all permissions the caller has for a resource group.
|
27
31
|
#
|
28
|
-
# @param resource_group_name [String]
|
29
|
-
# permissions for.The name is case insensitive.
|
30
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
-
# will be added to the HTTP request.
|
32
|
-
#
|
33
|
-
# @return [PermissionGetResult] which provide lazy access to pages of the
|
34
|
-
# response.
|
35
|
-
#
|
36
|
-
def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
37
|
-
response = list_for_resource_group_async(resource_group_name, custom_headers).value!
|
38
|
-
unless response.nil?
|
39
|
-
page = response.body
|
40
|
-
page.next_method = Proc.new do |next_page_link|
|
41
|
-
list_for_resource_group_next_async(next_page_link, custom_headers)
|
42
|
-
end
|
43
|
-
page
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# Gets a resource group permissions.
|
49
|
-
#
|
50
|
-
# @param resource_group_name [String] Name of the resource group to get the
|
51
|
-
# permissions for.The name is case insensitive.
|
32
|
+
# @param resource_group_name [String] The name of the resource group to get the
|
33
|
+
# permissions for. The name is case insensitive.
|
52
34
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
35
|
# will be added to the HTTP request.
|
54
36
|
#
|
@@ -60,10 +42,10 @@ module Azure::ARM::Authorization
|
|
60
42
|
end
|
61
43
|
|
62
44
|
#
|
63
|
-
# Gets a resource group
|
45
|
+
# Gets all permissions the caller has for a resource group.
|
64
46
|
#
|
65
|
-
# @param resource_group_name [String]
|
66
|
-
# permissions for.The name is case insensitive.
|
47
|
+
# @param resource_group_name [String] The name of the resource group to get the
|
48
|
+
# permissions for. The name is case insensitive.
|
67
49
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
68
50
|
# will be added to the HTTP request.
|
69
51
|
#
|
@@ -74,10 +56,10 @@ module Azure::ARM::Authorization
|
|
74
56
|
end
|
75
57
|
|
76
58
|
#
|
77
|
-
# Gets a resource group
|
59
|
+
# Gets all permissions the caller has for a resource group.
|
78
60
|
#
|
79
|
-
# @param resource_group_name [String]
|
80
|
-
# permissions for.The name is case insensitive.
|
61
|
+
# @param resource_group_name [String] The name of the resource group to get the
|
62
|
+
# permissions for. The name is case insensitive.
|
81
63
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
82
64
|
# to the HTTP request.
|
83
65
|
#
|
@@ -135,40 +117,16 @@ module Azure::ARM::Authorization
|
|
135
117
|
end
|
136
118
|
|
137
119
|
#
|
138
|
-
# Gets a resource
|
139
|
-
#
|
140
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
141
|
-
# is case insensitive.
|
142
|
-
# @param resource_provider_namespace [String] Resource
|
143
|
-
# @param parent_resource_path [String] Resource
|
144
|
-
# @param resource_type [String] Resource
|
145
|
-
# @param resource_name [String] Resource
|
146
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
147
|
-
# will be added to the HTTP request.
|
148
|
-
#
|
149
|
-
# @return [PermissionGetResult] which provide lazy access to pages of the
|
150
|
-
# response.
|
151
|
-
#
|
152
|
-
def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
|
153
|
-
response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
|
154
|
-
unless response.nil?
|
155
|
-
page = response.body
|
156
|
-
page.next_method = Proc.new do |next_page_link|
|
157
|
-
list_for_resource_next_async(next_page_link, custom_headers)
|
158
|
-
end
|
159
|
-
page
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
#
|
164
|
-
# Gets a resource permissions.
|
120
|
+
# Gets all permissions the caller has for a resource.
|
165
121
|
#
|
166
|
-
# @param resource_group_name [String] The name of the resource group
|
167
|
-
# is case insensitive.
|
168
|
-
# @param resource_provider_namespace [String]
|
169
|
-
#
|
170
|
-
# @param
|
171
|
-
# @param
|
122
|
+
# @param resource_group_name [String] The name of the resource group containing
|
123
|
+
# the resource. The name is case insensitive.
|
124
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
125
|
+
# provider.
|
126
|
+
# @param parent_resource_path [String] The parent resource identity.
|
127
|
+
# @param resource_type [String] The resource type of the resource.
|
128
|
+
# @param resource_name [String] The name of the resource to get the permissions
|
129
|
+
# for.
|
172
130
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
173
131
|
# will be added to the HTTP request.
|
174
132
|
#
|
@@ -180,14 +138,16 @@ module Azure::ARM::Authorization
|
|
180
138
|
end
|
181
139
|
|
182
140
|
#
|
183
|
-
# Gets a resource
|
141
|
+
# Gets all permissions the caller has for a resource.
|
184
142
|
#
|
185
|
-
# @param resource_group_name [String] The name of the resource group
|
186
|
-
# is case insensitive.
|
187
|
-
# @param resource_provider_namespace [String]
|
188
|
-
#
|
189
|
-
# @param
|
190
|
-
# @param
|
143
|
+
# @param resource_group_name [String] The name of the resource group containing
|
144
|
+
# the resource. The name is case insensitive.
|
145
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
146
|
+
# provider.
|
147
|
+
# @param parent_resource_path [String] The parent resource identity.
|
148
|
+
# @param resource_type [String] The resource type of the resource.
|
149
|
+
# @param resource_name [String] The name of the resource to get the permissions
|
150
|
+
# for.
|
191
151
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
192
152
|
# will be added to the HTTP request.
|
193
153
|
#
|
@@ -198,14 +158,16 @@ module Azure::ARM::Authorization
|
|
198
158
|
end
|
199
159
|
|
200
160
|
#
|
201
|
-
# Gets a resource
|
161
|
+
# Gets all permissions the caller has for a resource.
|
202
162
|
#
|
203
|
-
# @param resource_group_name [String] The name of the resource group
|
204
|
-
# is case insensitive.
|
205
|
-
# @param resource_provider_namespace [String]
|
206
|
-
#
|
207
|
-
# @param
|
208
|
-
# @param
|
163
|
+
# @param resource_group_name [String] The name of the resource group containing
|
164
|
+
# the resource. The name is case insensitive.
|
165
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
166
|
+
# provider.
|
167
|
+
# @param parent_resource_path [String] The parent resource identity.
|
168
|
+
# @param resource_type [String] The resource type of the resource.
|
169
|
+
# @param resource_name [String] The name of the resource to get the permissions
|
170
|
+
# for.
|
209
171
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
210
172
|
# to the HTTP request.
|
211
173
|
#
|
@@ -268,10 +230,10 @@ module Azure::ARM::Authorization
|
|
268
230
|
end
|
269
231
|
|
270
232
|
#
|
271
|
-
# Gets a resource group
|
233
|
+
# Gets all permissions the caller has for a resource group.
|
272
234
|
#
|
273
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
274
|
-
#
|
235
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
236
|
+
# to List operation.
|
275
237
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
276
238
|
# will be added to the HTTP request.
|
277
239
|
#
|
@@ -283,10 +245,10 @@ module Azure::ARM::Authorization
|
|
283
245
|
end
|
284
246
|
|
285
247
|
#
|
286
|
-
# Gets a resource group
|
248
|
+
# Gets all permissions the caller has for a resource group.
|
287
249
|
#
|
288
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
289
|
-
#
|
250
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
251
|
+
# to List operation.
|
290
252
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
291
253
|
# will be added to the HTTP request.
|
292
254
|
#
|
@@ -297,10 +259,10 @@ module Azure::ARM::Authorization
|
|
297
259
|
end
|
298
260
|
|
299
261
|
#
|
300
|
-
# Gets a resource group
|
262
|
+
# Gets all permissions the caller has for a resource group.
|
301
263
|
#
|
302
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
303
|
-
#
|
264
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
265
|
+
# to List operation.
|
304
266
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
305
267
|
# to the HTTP request.
|
306
268
|
#
|
@@ -355,10 +317,10 @@ module Azure::ARM::Authorization
|
|
355
317
|
end
|
356
318
|
|
357
319
|
#
|
358
|
-
# Gets a resource
|
320
|
+
# Gets all permissions the caller has for a resource.
|
359
321
|
#
|
360
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
361
|
-
#
|
322
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
323
|
+
# to List operation.
|
362
324
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
363
325
|
# will be added to the HTTP request.
|
364
326
|
#
|
@@ -370,10 +332,10 @@ module Azure::ARM::Authorization
|
|
370
332
|
end
|
371
333
|
|
372
334
|
#
|
373
|
-
# Gets a resource
|
335
|
+
# Gets all permissions the caller has for a resource.
|
374
336
|
#
|
375
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
376
|
-
#
|
337
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
338
|
+
# to List operation.
|
377
339
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
378
340
|
# will be added to the HTTP request.
|
379
341
|
#
|
@@ -384,10 +346,10 @@ module Azure::ARM::Authorization
|
|
384
346
|
end
|
385
347
|
|
386
348
|
#
|
387
|
-
# Gets a resource
|
349
|
+
# Gets all permissions the caller has for a resource.
|
388
350
|
#
|
389
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
390
|
-
#
|
351
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
352
|
+
# to List operation.
|
391
353
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
392
354
|
# to the HTTP request.
|
393
355
|
#
|
@@ -441,5 +403,55 @@ module Azure::ARM::Authorization
|
|
441
403
|
promise.execute
|
442
404
|
end
|
443
405
|
|
406
|
+
#
|
407
|
+
# Gets all permissions the caller has for a resource group.
|
408
|
+
#
|
409
|
+
# @param resource_group_name [String] The name of the resource group to get the
|
410
|
+
# permissions for. The name is case insensitive.
|
411
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
412
|
+
# will be added to the HTTP request.
|
413
|
+
#
|
414
|
+
# @return [PermissionGetResult] which provide lazy access to pages of the
|
415
|
+
# response.
|
416
|
+
#
|
417
|
+
def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
418
|
+
response = list_for_resource_group_async(resource_group_name, custom_headers).value!
|
419
|
+
unless response.nil?
|
420
|
+
page = response.body
|
421
|
+
page.next_method = Proc.new do |next_page_link|
|
422
|
+
list_for_resource_group_next_async(next_page_link, custom_headers)
|
423
|
+
end
|
424
|
+
page
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
#
|
429
|
+
# Gets all permissions the caller has for a resource.
|
430
|
+
#
|
431
|
+
# @param resource_group_name [String] The name of the resource group containing
|
432
|
+
# the resource. The name is case insensitive.
|
433
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
434
|
+
# provider.
|
435
|
+
# @param parent_resource_path [String] The parent resource identity.
|
436
|
+
# @param resource_type [String] The resource type of the resource.
|
437
|
+
# @param resource_name [String] The name of the resource to get the permissions
|
438
|
+
# for.
|
439
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
440
|
+
# will be added to the HTTP request.
|
441
|
+
#
|
442
|
+
# @return [PermissionGetResult] which provide lazy access to pages of the
|
443
|
+
# response.
|
444
|
+
#
|
445
|
+
def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
|
446
|
+
response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
|
447
|
+
unless response.nil?
|
448
|
+
page = response.body
|
449
|
+
page.next_method = Proc.new do |next_page_link|
|
450
|
+
list_for_resource_next_async(next_page_link, custom_headers)
|
451
|
+
end
|
452
|
+
page
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
444
456
|
end
|
445
457
|
end
|