azure_mgmt_authorization 0.2.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 +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_authorization.gemspec +34 -0
- data/lib/azure_mgmt_authorization/authorization_management_client.rb +84 -0
- data/lib/azure_mgmt_authorization/classic_administrators.rb +145 -0
- data/lib/azure_mgmt_authorization/models/classic_administrator.rb +90 -0
- data/lib/azure_mgmt_authorization/models/classic_administrator_list_result.rb +77 -0
- data/lib/azure_mgmt_authorization/models/classic_administrator_properties.rb +65 -0
- data/lib/azure_mgmt_authorization/models/permission.rb +66 -0
- data/lib/azure_mgmt_authorization/models/permission_get_result.rb +76 -0
- data/lib/azure_mgmt_authorization/models/provider_operation.rb +92 -0
- data/lib/azure_mgmt_authorization/models/provider_operations_metadata.rb +142 -0
- data/lib/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +77 -0
- data/lib/azure_mgmt_authorization/models/resource_type.rb +95 -0
- data/lib/azure_mgmt_authorization/models/role_assignment.rb +90 -0
- data/lib/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +63 -0
- data/lib/azure_mgmt_authorization/models/role_assignment_filter.rb +56 -0
- data/lib/azure_mgmt_authorization/models/role_assignment_list_result.rb +86 -0
- data/lib/azure_mgmt_authorization/models/role_assignment_properties.rb +65 -0
- data/lib/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +74 -0
- data/lib/azure_mgmt_authorization/models/role_definition.rb +90 -0
- data/lib/azure_mgmt_authorization/models/role_definition_filter.rb +56 -0
- data/lib/azure_mgmt_authorization/models/role_definition_list_result.rb +76 -0
- data/lib/azure_mgmt_authorization/models/role_definition_properties.rb +113 -0
- data/lib/azure_mgmt_authorization/module_definition.rb +8 -0
- data/lib/azure_mgmt_authorization/permissions.rb +277 -0
- data/lib/azure_mgmt_authorization/provider_operations_metadata_operations.rb +207 -0
- data/lib/azure_mgmt_authorization/role_assignments.rb +907 -0
- data/lib/azure_mgmt_authorization/role_definitions.rb +408 -0
- data/lib/azure_mgmt_authorization/version.rb +8 -0
- data/lib/azure_mgmt_authorization.rb +50 -0
- metadata +147 -0
@@ -0,0 +1,408 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Authorization
|
7
|
+
#
|
8
|
+
# RoleDefinitions
|
9
|
+
#
|
10
|
+
class RoleDefinitions
|
11
|
+
include Azure::ARM::Authorization::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the RoleDefinitions class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return reference to the AuthorizationManagementClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Deletes the role definition.
|
27
|
+
#
|
28
|
+
# @param scope [String] Scope
|
29
|
+
# @param role_definition_id [String] Role definition id.
|
30
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
31
|
+
# applied to HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
34
|
+
# response.
|
35
|
+
#
|
36
|
+
def delete(scope, role_definition_id, custom_headers = nil)
|
37
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
38
|
+
fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
|
39
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
40
|
+
request_headers = {}
|
41
|
+
|
42
|
+
# Set Headers
|
43
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
44
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
45
|
+
path_template = '/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}'
|
46
|
+
options = {
|
47
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
48
|
+
path_params: {'roleDefinitionId' => role_definition_id},
|
49
|
+
skip_encoding_path_params: {'scope' => scope},
|
50
|
+
query_params: {'api-version' => @client.api_version},
|
51
|
+
headers: request_headers.merge(custom_headers || {})
|
52
|
+
}
|
53
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
|
54
|
+
promise = request.run_promise do |req|
|
55
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
56
|
+
end
|
57
|
+
|
58
|
+
promise = promise.then do |http_response|
|
59
|
+
status_code = http_response.status
|
60
|
+
response_content = http_response.body
|
61
|
+
unless status_code == 200
|
62
|
+
error_model = JSON.load(response_content)
|
63
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Create Result
|
67
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
68
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
69
|
+
# Deserialize Response
|
70
|
+
if status_code == 200
|
71
|
+
begin
|
72
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
73
|
+
unless parsed_response.nil?
|
74
|
+
parsed_response = RoleDefinition.deserialize_object(parsed_response)
|
75
|
+
end
|
76
|
+
result.body = parsed_response
|
77
|
+
rescue Exception => e
|
78
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
result
|
83
|
+
end
|
84
|
+
|
85
|
+
promise.execute
|
86
|
+
end
|
87
|
+
|
88
|
+
#
|
89
|
+
# Get role definition by name (GUID).
|
90
|
+
#
|
91
|
+
# @param scope [String] Scope
|
92
|
+
# @param role_definition_id [String] Role definition Id
|
93
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
94
|
+
# applied to HTTP request.
|
95
|
+
#
|
96
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
97
|
+
# response.
|
98
|
+
#
|
99
|
+
def get(scope, role_definition_id, custom_headers = nil)
|
100
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
101
|
+
fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
|
102
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
103
|
+
request_headers = {}
|
104
|
+
|
105
|
+
# Set Headers
|
106
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
107
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
108
|
+
path_template = '/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}'
|
109
|
+
options = {
|
110
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
111
|
+
path_params: {'roleDefinitionId' => role_definition_id},
|
112
|
+
skip_encoding_path_params: {'scope' => scope},
|
113
|
+
query_params: {'api-version' => @client.api_version},
|
114
|
+
headers: request_headers.merge(custom_headers || {})
|
115
|
+
}
|
116
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
117
|
+
promise = request.run_promise do |req|
|
118
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
119
|
+
end
|
120
|
+
|
121
|
+
promise = promise.then do |http_response|
|
122
|
+
status_code = http_response.status
|
123
|
+
response_content = http_response.body
|
124
|
+
unless status_code == 200
|
125
|
+
error_model = JSON.load(response_content)
|
126
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Create Result
|
130
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
131
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
132
|
+
# Deserialize Response
|
133
|
+
if status_code == 200
|
134
|
+
begin
|
135
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
136
|
+
unless parsed_response.nil?
|
137
|
+
parsed_response = RoleDefinition.deserialize_object(parsed_response)
|
138
|
+
end
|
139
|
+
result.body = parsed_response
|
140
|
+
rescue Exception => e
|
141
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
result
|
146
|
+
end
|
147
|
+
|
148
|
+
promise.execute
|
149
|
+
end
|
150
|
+
|
151
|
+
#
|
152
|
+
# Creates or updates a role definition.
|
153
|
+
#
|
154
|
+
# @param scope [String] Scope
|
155
|
+
# @param role_definition_id [String] Role definition id.
|
156
|
+
# @param role_definition [RoleDefinition] Role definition.
|
157
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
158
|
+
# applied to HTTP request.
|
159
|
+
#
|
160
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
161
|
+
# response.
|
162
|
+
#
|
163
|
+
def create_or_update(scope, role_definition_id, role_definition, custom_headers = nil)
|
164
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
165
|
+
fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
|
166
|
+
fail ArgumentError, 'role_definition is nil' if role_definition.nil?
|
167
|
+
role_definition.validate unless role_definition.nil?
|
168
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
169
|
+
request_headers = {}
|
170
|
+
|
171
|
+
# Set Headers
|
172
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
173
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
174
|
+
|
175
|
+
# Serialize Request
|
176
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
177
|
+
unless role_definition.nil?
|
178
|
+
role_definition = RoleDefinition.serialize_object(role_definition)
|
179
|
+
end
|
180
|
+
request_content = JSON.generate(role_definition, quirks_mode: true)
|
181
|
+
path_template = '/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}'
|
182
|
+
options = {
|
183
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
184
|
+
path_params: {'roleDefinitionId' => role_definition_id},
|
185
|
+
skip_encoding_path_params: {'scope' => scope},
|
186
|
+
query_params: {'api-version' => @client.api_version},
|
187
|
+
body: request_content,
|
188
|
+
headers: request_headers.merge(custom_headers || {})
|
189
|
+
}
|
190
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
|
191
|
+
promise = request.run_promise do |req|
|
192
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
193
|
+
end
|
194
|
+
|
195
|
+
promise = promise.then do |http_response|
|
196
|
+
status_code = http_response.status
|
197
|
+
response_content = http_response.body
|
198
|
+
unless status_code == 201
|
199
|
+
error_model = JSON.load(response_content)
|
200
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
201
|
+
end
|
202
|
+
|
203
|
+
# Create Result
|
204
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
205
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
206
|
+
# Deserialize Response
|
207
|
+
if status_code == 201
|
208
|
+
begin
|
209
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
210
|
+
unless parsed_response.nil?
|
211
|
+
parsed_response = RoleDefinition.deserialize_object(parsed_response)
|
212
|
+
end
|
213
|
+
result.body = parsed_response
|
214
|
+
rescue Exception => e
|
215
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
result
|
220
|
+
end
|
221
|
+
|
222
|
+
promise.execute
|
223
|
+
end
|
224
|
+
|
225
|
+
#
|
226
|
+
# Get role definition by name (GUID).
|
227
|
+
#
|
228
|
+
# @param role_definition_id [String] Fully qualified role definition Id
|
229
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
230
|
+
# applied to HTTP request.
|
231
|
+
#
|
232
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
233
|
+
# response.
|
234
|
+
#
|
235
|
+
def get_by_id(role_definition_id, custom_headers = nil)
|
236
|
+
fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
|
237
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
238
|
+
request_headers = {}
|
239
|
+
|
240
|
+
# Set Headers
|
241
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
242
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
243
|
+
path_template = '/{roleDefinitionId}'
|
244
|
+
options = {
|
245
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
246
|
+
skip_encoding_path_params: {'roleDefinitionId' => role_definition_id},
|
247
|
+
query_params: {'api-version' => @client.api_version},
|
248
|
+
headers: request_headers.merge(custom_headers || {})
|
249
|
+
}
|
250
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
251
|
+
promise = request.run_promise do |req|
|
252
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
253
|
+
end
|
254
|
+
|
255
|
+
promise = promise.then do |http_response|
|
256
|
+
status_code = http_response.status
|
257
|
+
response_content = http_response.body
|
258
|
+
unless status_code == 200
|
259
|
+
error_model = JSON.load(response_content)
|
260
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
261
|
+
end
|
262
|
+
|
263
|
+
# Create Result
|
264
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
265
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
266
|
+
# Deserialize Response
|
267
|
+
if status_code == 200
|
268
|
+
begin
|
269
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
270
|
+
unless parsed_response.nil?
|
271
|
+
parsed_response = RoleDefinition.deserialize_object(parsed_response)
|
272
|
+
end
|
273
|
+
result.body = parsed_response
|
274
|
+
rescue Exception => e
|
275
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
result
|
280
|
+
end
|
281
|
+
|
282
|
+
promise.execute
|
283
|
+
end
|
284
|
+
|
285
|
+
#
|
286
|
+
# Get all role definitions that are applicable at scope and above. Use
|
287
|
+
# atScopeAndBelow filter to search below the given scope as well
|
288
|
+
#
|
289
|
+
# @param scope [String] Scope
|
290
|
+
# @param filter [String] The filter to apply on the operation.
|
291
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
292
|
+
# applied to HTTP request.
|
293
|
+
#
|
294
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
295
|
+
# response.
|
296
|
+
#
|
297
|
+
def list(scope, filter = nil, custom_headers = nil)
|
298
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
299
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
300
|
+
request_headers = {}
|
301
|
+
|
302
|
+
# Set Headers
|
303
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
304
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
305
|
+
path_template = '/{scope}/providers/Microsoft.Authorization/roleDefinitions'
|
306
|
+
options = {
|
307
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
308
|
+
skip_encoding_path_params: {'scope' => scope},
|
309
|
+
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
310
|
+
headers: request_headers.merge(custom_headers || {})
|
311
|
+
}
|
312
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
313
|
+
promise = request.run_promise do |req|
|
314
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
315
|
+
end
|
316
|
+
|
317
|
+
promise = promise.then do |http_response|
|
318
|
+
status_code = http_response.status
|
319
|
+
response_content = http_response.body
|
320
|
+
unless status_code == 200
|
321
|
+
error_model = JSON.load(response_content)
|
322
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Create Result
|
326
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
327
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
328
|
+
# Deserialize Response
|
329
|
+
if status_code == 200
|
330
|
+
begin
|
331
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
332
|
+
unless parsed_response.nil?
|
333
|
+
parsed_response = RoleDefinitionListResult.deserialize_object(parsed_response)
|
334
|
+
end
|
335
|
+
result.body = parsed_response
|
336
|
+
rescue Exception => e
|
337
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
result
|
342
|
+
end
|
343
|
+
|
344
|
+
promise.execute
|
345
|
+
end
|
346
|
+
|
347
|
+
#
|
348
|
+
# Get all role definitions that are applicable at scope and above. Use
|
349
|
+
# atScopeAndBelow filter to search below the given scope as well
|
350
|
+
#
|
351
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
352
|
+
# call to List operation.
|
353
|
+
# @param [Hash{String => String}] The hash of custom headers need to be
|
354
|
+
# applied to HTTP request.
|
355
|
+
#
|
356
|
+
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
357
|
+
# response.
|
358
|
+
#
|
359
|
+
def list_next(next_page_link, custom_headers = nil)
|
360
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
361
|
+
request_headers = {}
|
362
|
+
|
363
|
+
# Set Headers
|
364
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
365
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
366
|
+
path_template = '{nextLink}'
|
367
|
+
options = {
|
368
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
369
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
370
|
+
headers: request_headers.merge(custom_headers || {})
|
371
|
+
}
|
372
|
+
request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
|
373
|
+
promise = request.run_promise do |req|
|
374
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
375
|
+
end
|
376
|
+
|
377
|
+
promise = promise.then do |http_response|
|
378
|
+
status_code = http_response.status
|
379
|
+
response_content = http_response.body
|
380
|
+
unless status_code == 200
|
381
|
+
error_model = JSON.load(response_content)
|
382
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
383
|
+
end
|
384
|
+
|
385
|
+
# Create Result
|
386
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
387
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
388
|
+
# Deserialize Response
|
389
|
+
if status_code == 200
|
390
|
+
begin
|
391
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
392
|
+
unless parsed_response.nil?
|
393
|
+
parsed_response = RoleDefinitionListResult.deserialize_object(parsed_response)
|
394
|
+
end
|
395
|
+
result.body = parsed_response
|
396
|
+
rescue Exception => e
|
397
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
result
|
402
|
+
end
|
403
|
+
|
404
|
+
promise.execute
|
405
|
+
end
|
406
|
+
|
407
|
+
end
|
408
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'ms_rest_azure'
|
20
|
+
|
21
|
+
module Azure::ARM::Authorization
|
22
|
+
autoload :ClassicAdministrators, 'azure_mgmt_authorization/classic_administrators.rb'
|
23
|
+
autoload :Permissions, 'azure_mgmt_authorization/permissions.rb'
|
24
|
+
autoload :ProviderOperationsMetadataOperations, 'azure_mgmt_authorization/provider_operations_metadata_operations.rb'
|
25
|
+
autoload :RoleAssignments, 'azure_mgmt_authorization/role_assignments.rb'
|
26
|
+
autoload :RoleDefinitions, 'azure_mgmt_authorization/role_definitions.rb'
|
27
|
+
autoload :AuthorizationManagementClient, 'azure_mgmt_authorization/authorization_management_client.rb'
|
28
|
+
|
29
|
+
module Models
|
30
|
+
autoload :RoleAssignmentFilter, 'azure_mgmt_authorization/models/role_assignment_filter.rb'
|
31
|
+
autoload :RoleDefinitionFilter, 'azure_mgmt_authorization/models/role_definition_filter.rb'
|
32
|
+
autoload :ClassicAdministratorProperties, 'azure_mgmt_authorization/models/classic_administrator_properties.rb'
|
33
|
+
autoload :ClassicAdministrator, 'azure_mgmt_authorization/models/classic_administrator.rb'
|
34
|
+
autoload :ClassicAdministratorListResult, 'azure_mgmt_authorization/models/classic_administrator_list_result.rb'
|
35
|
+
autoload :Permission, 'azure_mgmt_authorization/models/permission.rb'
|
36
|
+
autoload :PermissionGetResult, 'azure_mgmt_authorization/models/permission_get_result.rb'
|
37
|
+
autoload :ProviderOperation, 'azure_mgmt_authorization/models/provider_operation.rb'
|
38
|
+
autoload :ResourceType, 'azure_mgmt_authorization/models/resource_type.rb'
|
39
|
+
autoload :ProviderOperationsMetadata, 'azure_mgmt_authorization/models/provider_operations_metadata.rb'
|
40
|
+
autoload :ProviderOperationsMetadataListResult, 'azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb'
|
41
|
+
autoload :RoleAssignmentPropertiesWithScope, 'azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb'
|
42
|
+
autoload :RoleAssignment, 'azure_mgmt_authorization/models/role_assignment.rb'
|
43
|
+
autoload :RoleAssignmentListResult, 'azure_mgmt_authorization/models/role_assignment_list_result.rb'
|
44
|
+
autoload :RoleAssignmentProperties, 'azure_mgmt_authorization/models/role_assignment_properties.rb'
|
45
|
+
autoload :RoleAssignmentCreateParameters, 'azure_mgmt_authorization/models/role_assignment_create_parameters.rb'
|
46
|
+
autoload :RoleDefinitionProperties, 'azure_mgmt_authorization/models/role_definition_properties.rb'
|
47
|
+
autoload :RoleDefinition, 'azure_mgmt_authorization/models/role_definition.rb'
|
48
|
+
autoload :RoleDefinitionListResult, 'azure_mgmt_authorization/models/role_definition_list_result.rb'
|
49
|
+
end
|
50
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: azure_mgmt_authorization
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Microsoft Corporation
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ms_rest_azure
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.2.0
|
83
|
+
description: Microsoft Azure Role Based Authorization Management Client Library for
|
84
|
+
Ruby
|
85
|
+
email: azrubyteam@microsoft.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".rspec"
|
91
|
+
- LICENSE.txt
|
92
|
+
- Rakefile
|
93
|
+
- azure_mgmt_authorization.gemspec
|
94
|
+
- lib/azure_mgmt_authorization.rb
|
95
|
+
- lib/azure_mgmt_authorization/authorization_management_client.rb
|
96
|
+
- lib/azure_mgmt_authorization/classic_administrators.rb
|
97
|
+
- lib/azure_mgmt_authorization/models/classic_administrator.rb
|
98
|
+
- lib/azure_mgmt_authorization/models/classic_administrator_list_result.rb
|
99
|
+
- lib/azure_mgmt_authorization/models/classic_administrator_properties.rb
|
100
|
+
- lib/azure_mgmt_authorization/models/permission.rb
|
101
|
+
- lib/azure_mgmt_authorization/models/permission_get_result.rb
|
102
|
+
- lib/azure_mgmt_authorization/models/provider_operation.rb
|
103
|
+
- lib/azure_mgmt_authorization/models/provider_operations_metadata.rb
|
104
|
+
- lib/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
|
105
|
+
- lib/azure_mgmt_authorization/models/resource_type.rb
|
106
|
+
- lib/azure_mgmt_authorization/models/role_assignment.rb
|
107
|
+
- lib/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
|
108
|
+
- lib/azure_mgmt_authorization/models/role_assignment_filter.rb
|
109
|
+
- lib/azure_mgmt_authorization/models/role_assignment_list_result.rb
|
110
|
+
- lib/azure_mgmt_authorization/models/role_assignment_properties.rb
|
111
|
+
- lib/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
|
112
|
+
- lib/azure_mgmt_authorization/models/role_definition.rb
|
113
|
+
- lib/azure_mgmt_authorization/models/role_definition_filter.rb
|
114
|
+
- lib/azure_mgmt_authorization/models/role_definition_list_result.rb
|
115
|
+
- lib/azure_mgmt_authorization/models/role_definition_properties.rb
|
116
|
+
- lib/azure_mgmt_authorization/module_definition.rb
|
117
|
+
- lib/azure_mgmt_authorization/permissions.rb
|
118
|
+
- lib/azure_mgmt_authorization/provider_operations_metadata_operations.rb
|
119
|
+
- lib/azure_mgmt_authorization/role_assignments.rb
|
120
|
+
- lib/azure_mgmt_authorization/role_definitions.rb
|
121
|
+
- lib/azure_mgmt_authorization/version.rb
|
122
|
+
homepage: http://github.com/azure/azure-sdk-for-ruby
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata: {}
|
126
|
+
post_install_message:
|
127
|
+
rdoc_options: []
|
128
|
+
require_paths:
|
129
|
+
- lib
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 1.9.3
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
requirements: []
|
141
|
+
rubyforge_project:
|
142
|
+
rubygems_version: 2.4.6
|
143
|
+
signing_key:
|
144
|
+
specification_version: 4
|
145
|
+
summary: Official Ruby client library to consume Microsoft Azure Role Based Authorization
|
146
|
+
Management services.
|
147
|
+
test_files: []
|