azure_mgmt_authorization 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/azure_mgmt_authorization.gemspec +1 -1
- data/lib/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/azure_mgmt_authorization/classic_administrators.rb +71 -11
- data/lib/azure_mgmt_authorization/models/classic_administrator.rb +1 -1
- data/lib/azure_mgmt_authorization/models/classic_administrator_list_result.rb +1 -1
- data/lib/azure_mgmt_authorization/models/classic_administrator_properties.rb +1 -1
- data/lib/azure_mgmt_authorization/models/permission.rb +1 -1
- data/lib/azure_mgmt_authorization/models/permission_get_result.rb +1 -1
- data/lib/azure_mgmt_authorization/models/provider_operation.rb +1 -1
- data/lib/azure_mgmt_authorization/models/provider_operations_metadata.rb +1 -1
- data/lib/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +1 -1
- data/lib/azure_mgmt_authorization/models/resource_type.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_assignment.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_assignment_filter.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_assignment_list_result.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_assignment_properties.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_definition.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_definition_filter.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_definition_list_result.rb +1 -1
- data/lib/azure_mgmt_authorization/models/role_definition_properties.rb +1 -1
- data/lib/azure_mgmt_authorization/module_definition.rb +1 -1
- data/lib/azure_mgmt_authorization/permissions.rb +153 -21
- data/lib/azure_mgmt_authorization/provider_operations_metadata_operations.rb +115 -18
- data/lib/azure_mgmt_authorization/role_assignments.rb +511 -73
- data/lib/azure_mgmt_authorization/role_definitions.rb +222 -32
- data/lib/azure_mgmt_authorization/version.rb +2 -2
- data/lib/azure_mgmt_authorization.rb +1 -1
- metadata +25 -20
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
M2Y5YTkxNGFlZDFhZWZkYWUxZDNlNmZmNzgyNzQ3ZWMwMTFjYTQ2Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzFiNjRiOGFhNWZiOWM3ZGE4YjI0N2I0YmE3NmQyYTk5MjA4MTUxOA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Zjc3MDViZGU4ZDE1ZTk2MjRhNmFkMTk1NDdkZDZjODk4Yjc0Y2Q0OGFmYjc5
|
10
|
+
NDkwMDk1YTZkYTU3NjBlM2ZhMDQyNThmOTgzMGMyY2ZjYjM2YzkyMGRhMWJl
|
11
|
+
Y2ExOTNhOTJmOTM2ZDIxNjk1ZTY4YmM3NTNjODdmNDhmYjZiN2U=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTg1YzhjZjAxMDBjZjkyM2Q4ZmZkMTNhY2Y5NDZhZjE0MzdlMWMyODY1ZTA1
|
14
|
+
ZDI5MTQ1ZDg2ZDIzZDQyYWM4YWNiYmNjYzFkZDc3ODZhYzY5NDdhZGU0ZTIw
|
15
|
+
N2Y2ZDFlNmI0NjExOGJkNWNiMGNkNDJjMWUxNmQ5ZDM5YmQxMjA=
|
@@ -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 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -26,13 +26,39 @@ module Azure::ARM::Authorization
|
|
26
26
|
# Gets a list of classic administrators for the subscription.
|
27
27
|
#
|
28
28
|
# @param api_version [String]
|
29
|
-
# @param [Hash{String => String}]
|
30
|
-
#
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
31
|
#
|
32
|
-
# @return [
|
33
|
-
# response.
|
32
|
+
# @return [ClassicAdministratorListResult] operation results.
|
34
33
|
#
|
35
34
|
def list(api_version, custom_headers = nil)
|
35
|
+
response = list_async(api_version, custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets a list of classic administrators for the subscription.
|
41
|
+
#
|
42
|
+
# @param api_version [String]
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
|
+
# will be added to the HTTP request.
|
45
|
+
#
|
46
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
|
+
#
|
48
|
+
def list_with_http_info(api_version, custom_headers = nil)
|
49
|
+
list_async(api_version, custom_headers).value!
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Gets a list of classic administrators for the subscription.
|
54
|
+
#
|
55
|
+
# @param api_version [String]
|
56
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
57
|
+
# to the HTTP request.
|
58
|
+
#
|
59
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
60
|
+
#
|
61
|
+
def list_async(api_version, custom_headers = nil)
|
36
62
|
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
37
63
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
38
64
|
request_headers = {}
|
@@ -47,7 +73,10 @@ module Azure::ARM::Authorization
|
|
47
73
|
query_params: {'api-version' => api_version},
|
48
74
|
headers: request_headers.merge(custom_headers || {})
|
49
75
|
}
|
50
|
-
|
76
|
+
|
77
|
+
request_url = @base_url || @client.base_url
|
78
|
+
|
79
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
51
80
|
promise = request.run_promise do |req|
|
52
81
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
53
82
|
end
|
@@ -87,13 +116,41 @@ module Azure::ARM::Authorization
|
|
87
116
|
#
|
88
117
|
# @param next_page_link [String] The NextLink from the previous successful
|
89
118
|
# call to List operation.
|
90
|
-
# @param [Hash{String => String}]
|
91
|
-
#
|
119
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
120
|
+
# will be added to the HTTP request.
|
92
121
|
#
|
93
|
-
# @return [
|
94
|
-
# response.
|
122
|
+
# @return [ClassicAdministratorListResult] operation results.
|
95
123
|
#
|
96
124
|
def list_next(next_page_link, custom_headers = nil)
|
125
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
126
|
+
response.body unless response.nil?
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Gets a list of classic administrators for the subscription.
|
131
|
+
#
|
132
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
133
|
+
# call to List operation.
|
134
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
135
|
+
# will be added to the HTTP request.
|
136
|
+
#
|
137
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
138
|
+
#
|
139
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
140
|
+
list_next_async(next_page_link, custom_headers).value!
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# Gets a list of classic administrators for the subscription.
|
145
|
+
#
|
146
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
147
|
+
# call to List operation.
|
148
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
149
|
+
# to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
152
|
+
#
|
153
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
97
154
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
98
155
|
request_headers = {}
|
99
156
|
|
@@ -106,7 +163,10 @@ module Azure::ARM::Authorization
|
|
106
163
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
107
164
|
headers: request_headers.merge(custom_headers || {})
|
108
165
|
}
|
109
|
-
|
166
|
+
|
167
|
+
request_url = @base_url || @client.base_url
|
168
|
+
|
169
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
110
170
|
promise = request.run_promise do |req|
|
111
171
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
112
172
|
end
|
@@ -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 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -27,13 +27,41 @@ module Azure::ARM::Authorization
|
|
27
27
|
#
|
28
28
|
# @param resource_group_name [String] Name of the resource group to get the
|
29
29
|
# permissions for.The name is case insensitive.
|
30
|
-
# @param [Hash{String => String}]
|
31
|
-
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
32
|
#
|
33
|
-
# @return [
|
34
|
-
# response.
|
33
|
+
# @return [PermissionGetResult] operation results.
|
35
34
|
#
|
36
35
|
def list_for_resource_group(resource_group_name, custom_headers = nil)
|
36
|
+
response = list_for_resource_group_async(resource_group_name, custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets a resource group permissions.
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] Name of the resource group to get the
|
44
|
+
# permissions for.The name is case insensitive.
|
45
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
+
# will be added to the HTTP request.
|
47
|
+
#
|
48
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
|
+
#
|
50
|
+
def list_for_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
51
|
+
list_for_resource_group_async(resource_group_name, custom_headers).value!
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Gets a resource group permissions.
|
56
|
+
#
|
57
|
+
# @param resource_group_name [String] Name of the resource group to get the
|
58
|
+
# permissions for.The name is case insensitive.
|
59
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
|
+
# to the HTTP request.
|
61
|
+
#
|
62
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
|
+
#
|
64
|
+
def list_for_resource_group_async(resource_group_name, custom_headers = nil)
|
37
65
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
38
66
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
39
67
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -49,7 +77,10 @@ module Azure::ARM::Authorization
|
|
49
77
|
query_params: {'api-version' => @client.api_version},
|
50
78
|
headers: request_headers.merge(custom_headers || {})
|
51
79
|
}
|
52
|
-
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
53
84
|
promise = request.run_promise do |req|
|
54
85
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
55
86
|
end
|
@@ -93,13 +124,49 @@ module Azure::ARM::Authorization
|
|
93
124
|
# @param parent_resource_path [String] Resource
|
94
125
|
# @param resource_type [String] Resource
|
95
126
|
# @param resource_name [String] Resource
|
96
|
-
# @param [Hash{String => String}]
|
97
|
-
#
|
127
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
|
+
# will be added to the HTTP request.
|
98
129
|
#
|
99
|
-
# @return [
|
100
|
-
# response.
|
130
|
+
# @return [PermissionGetResult] operation results.
|
101
131
|
#
|
102
132
|
def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
|
133
|
+
response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
|
134
|
+
response.body unless response.nil?
|
135
|
+
end
|
136
|
+
|
137
|
+
#
|
138
|
+
# Gets a resource permissions.
|
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 [MsRestAzure::AzureOperationResponse] HTTP response information.
|
150
|
+
#
|
151
|
+
def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
|
152
|
+
list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Gets a resource permissions.
|
157
|
+
#
|
158
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
159
|
+
# is case insensitive.
|
160
|
+
# @param resource_provider_namespace [String] Resource
|
161
|
+
# @param parent_resource_path [String] Resource
|
162
|
+
# @param resource_type [String] Resource
|
163
|
+
# @param resource_name [String] Resource
|
164
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
165
|
+
# to the HTTP request.
|
166
|
+
#
|
167
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
|
+
#
|
169
|
+
def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
|
103
170
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
104
171
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
105
172
|
fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
|
@@ -120,7 +187,10 @@ module Azure::ARM::Authorization
|
|
120
187
|
query_params: {'api-version' => @client.api_version},
|
121
188
|
headers: request_headers.merge(custom_headers || {})
|
122
189
|
}
|
123
|
-
|
190
|
+
|
191
|
+
request_url = @base_url || @client.base_url
|
192
|
+
|
193
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
124
194
|
promise = request.run_promise do |req|
|
125
195
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
126
196
|
end
|
@@ -160,13 +230,41 @@ module Azure::ARM::Authorization
|
|
160
230
|
#
|
161
231
|
# @param next_page_link [String] The NextLink from the previous successful
|
162
232
|
# call to List operation.
|
163
|
-
# @param [Hash{String => String}]
|
164
|
-
#
|
233
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
|
+
# will be added to the HTTP request.
|
165
235
|
#
|
166
|
-
# @return [
|
167
|
-
# response.
|
236
|
+
# @return [PermissionGetResult] operation results.
|
168
237
|
#
|
169
238
|
def list_for_resource_group_next(next_page_link, custom_headers = nil)
|
239
|
+
response = list_for_resource_group_next_async(next_page_link, custom_headers).value!
|
240
|
+
response.body unless response.nil?
|
241
|
+
end
|
242
|
+
|
243
|
+
#
|
244
|
+
# Gets a resource group permissions.
|
245
|
+
#
|
246
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
247
|
+
# call to List operation.
|
248
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
249
|
+
# will be added to the HTTP request.
|
250
|
+
#
|
251
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
252
|
+
#
|
253
|
+
def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
254
|
+
list_for_resource_group_next_async(next_page_link, custom_headers).value!
|
255
|
+
end
|
256
|
+
|
257
|
+
#
|
258
|
+
# Gets a resource group permissions.
|
259
|
+
#
|
260
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
261
|
+
# call to List operation.
|
262
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
263
|
+
# to the HTTP request.
|
264
|
+
#
|
265
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
266
|
+
#
|
267
|
+
def list_for_resource_group_next_async(next_page_link, custom_headers = nil)
|
170
268
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
171
269
|
request_headers = {}
|
172
270
|
|
@@ -179,7 +277,10 @@ module Azure::ARM::Authorization
|
|
179
277
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
180
278
|
headers: request_headers.merge(custom_headers || {})
|
181
279
|
}
|
182
|
-
|
280
|
+
|
281
|
+
request_url = @base_url || @client.base_url
|
282
|
+
|
283
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
183
284
|
promise = request.run_promise do |req|
|
184
285
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
185
286
|
end
|
@@ -219,13 +320,41 @@ module Azure::ARM::Authorization
|
|
219
320
|
#
|
220
321
|
# @param next_page_link [String] The NextLink from the previous successful
|
221
322
|
# call to List operation.
|
222
|
-
# @param [Hash{String => String}]
|
223
|
-
#
|
323
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
324
|
+
# will be added to the HTTP request.
|
224
325
|
#
|
225
|
-
# @return [
|
226
|
-
# response.
|
326
|
+
# @return [PermissionGetResult] operation results.
|
227
327
|
#
|
228
328
|
def list_for_resource_next(next_page_link, custom_headers = nil)
|
329
|
+
response = list_for_resource_next_async(next_page_link, custom_headers).value!
|
330
|
+
response.body unless response.nil?
|
331
|
+
end
|
332
|
+
|
333
|
+
#
|
334
|
+
# Gets a resource permissions.
|
335
|
+
#
|
336
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
337
|
+
# call to List operation.
|
338
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
339
|
+
# will be added to the HTTP request.
|
340
|
+
#
|
341
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
342
|
+
#
|
343
|
+
def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil)
|
344
|
+
list_for_resource_next_async(next_page_link, custom_headers).value!
|
345
|
+
end
|
346
|
+
|
347
|
+
#
|
348
|
+
# Gets a resource permissions.
|
349
|
+
#
|
350
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
351
|
+
# call to List operation.
|
352
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
353
|
+
# to the HTTP request.
|
354
|
+
#
|
355
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
356
|
+
#
|
357
|
+
def list_for_resource_next_async(next_page_link, custom_headers = nil)
|
229
358
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
230
359
|
request_headers = {}
|
231
360
|
|
@@ -238,7 +367,10 @@ module Azure::ARM::Authorization
|
|
238
367
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
239
368
|
headers: request_headers.merge(custom_headers || {})
|
240
369
|
}
|
241
|
-
|
370
|
+
|
371
|
+
request_url = @base_url || @client.base_url
|
372
|
+
|
373
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
242
374
|
promise = request.run_promise do |req|
|
243
375
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
244
376
|
end
|