azure_mgmt_authorization 0.15.2 → 0.16.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.
@@ -35,8 +35,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
35
35
  #
36
36
  # @return [RoleDefinition] operation results.
37
37
  #
38
- def delete(scope, role_definition_id, custom_headers = nil)
39
- response = delete_async(scope, role_definition_id, custom_headers).value!
38
+ def delete(scope, role_definition_id, custom_headers:nil)
39
+ response = delete_async(scope, role_definition_id, custom_headers:custom_headers).value!
40
40
  response.body unless response.nil?
41
41
  end
42
42
 
@@ -50,8 +50,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def delete_with_http_info(scope, role_definition_id, custom_headers = nil)
54
- delete_async(scope, role_definition_id, custom_headers).value!
53
+ def delete_with_http_info(scope, role_definition_id, custom_headers:nil)
54
+ delete_async(scope, role_definition_id, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -64,13 +64,14 @@ module Azure::Authorization::Mgmt::V2015_07_01
64
64
  #
65
65
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
66
  #
67
- def delete_async(scope, role_definition_id, custom_headers = nil)
67
+ def delete_async(scope, role_definition_id, custom_headers:nil)
68
68
  fail ArgumentError, 'scope is nil' if scope.nil?
69
69
  fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
70
70
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
71
 
72
72
 
73
73
  request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
74
75
 
75
76
  # Set Headers
76
77
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -126,8 +127,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
126
127
  #
127
128
  # @return [RoleDefinition] operation results.
128
129
  #
129
- def get(scope, role_definition_id, custom_headers = nil)
130
- response = get_async(scope, role_definition_id, custom_headers).value!
130
+ def get(scope, role_definition_id, custom_headers:nil)
131
+ response = get_async(scope, role_definition_id, custom_headers:custom_headers).value!
131
132
  response.body unless response.nil?
132
133
  end
133
134
 
@@ -141,8 +142,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
141
142
  #
142
143
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
143
144
  #
144
- def get_with_http_info(scope, role_definition_id, custom_headers = nil)
145
- get_async(scope, role_definition_id, custom_headers).value!
145
+ def get_with_http_info(scope, role_definition_id, custom_headers:nil)
146
+ get_async(scope, role_definition_id, custom_headers:custom_headers).value!
146
147
  end
147
148
 
148
149
  #
@@ -155,13 +156,14 @@ module Azure::Authorization::Mgmt::V2015_07_01
155
156
  #
156
157
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
158
  #
158
- def get_async(scope, role_definition_id, custom_headers = nil)
159
+ def get_async(scope, role_definition_id, custom_headers:nil)
159
160
  fail ArgumentError, 'scope is nil' if scope.nil?
160
161
  fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
161
162
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
162
163
 
163
164
 
164
165
  request_headers = {}
166
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
165
167
 
166
168
  # Set Headers
167
169
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -218,8 +220,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
218
220
  #
219
221
  # @return [RoleDefinition] operation results.
220
222
  #
221
- def create_or_update(scope, role_definition_id, role_definition, custom_headers = nil)
222
- response = create_or_update_async(scope, role_definition_id, role_definition, custom_headers).value!
223
+ def create_or_update(scope, role_definition_id, role_definition, custom_headers:nil)
224
+ response = create_or_update_async(scope, role_definition_id, role_definition, custom_headers:custom_headers).value!
223
225
  response.body unless response.nil?
224
226
  end
225
227
 
@@ -234,8 +236,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
234
236
  #
235
237
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
236
238
  #
237
- def create_or_update_with_http_info(scope, role_definition_id, role_definition, custom_headers = nil)
238
- create_or_update_async(scope, role_definition_id, role_definition, custom_headers).value!
239
+ def create_or_update_with_http_info(scope, role_definition_id, role_definition, custom_headers:nil)
240
+ create_or_update_async(scope, role_definition_id, role_definition, custom_headers:custom_headers).value!
239
241
  end
240
242
 
241
243
  #
@@ -249,7 +251,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
249
251
  #
250
252
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
251
253
  #
252
- def create_or_update_async(scope, role_definition_id, role_definition, custom_headers = nil)
254
+ def create_or_update_async(scope, role_definition_id, role_definition, custom_headers:nil)
253
255
  fail ArgumentError, 'scope is nil' if scope.nil?
254
256
  fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
255
257
  fail ArgumentError, 'role_definition is nil' if role_definition.nil?
@@ -257,13 +259,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
257
259
 
258
260
 
259
261
  request_headers = {}
262
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
263
 
261
264
  # Set Headers
262
265
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
263
266
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
264
267
 
265
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
266
-
267
268
  # Serialize Request
268
269
  request_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
269
270
  request_content = @client.serialize(request_mapper, role_definition)
@@ -312,62 +313,66 @@ module Azure::Authorization::Mgmt::V2015_07_01
312
313
  end
313
314
 
314
315
  #
315
- # Gets a role definition by ID.
316
+ # Get all role definitions that are applicable at scope and above.
316
317
  #
317
- # @param role_definition_id [String] The fully qualified role definition ID to
318
- # get.
318
+ # @param scope [String] The scope of the role definition.
319
+ # @param filter [String] The filter to apply on the operation. Use
320
+ # atScopeAndBelow filter to search below the given scope as well.
319
321
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
320
322
  # will be added to the HTTP request.
321
323
  #
322
- # @return [RoleDefinition] operation results.
324
+ # @return [Array<RoleDefinition>] operation results.
323
325
  #
324
- def get_by_id(role_definition_id, custom_headers = nil)
325
- response = get_by_id_async(role_definition_id, custom_headers).value!
326
- response.body unless response.nil?
326
+ def list(scope, filter:nil, custom_headers:nil)
327
+ first_page = list_as_lazy(scope, filter:filter, custom_headers:custom_headers)
328
+ first_page.get_all_items
327
329
  end
328
330
 
329
331
  #
330
- # Gets a role definition by ID.
332
+ # Get all role definitions that are applicable at scope and above.
331
333
  #
332
- # @param role_definition_id [String] The fully qualified role definition ID to
333
- # get.
334
+ # @param scope [String] The scope of the role definition.
335
+ # @param filter [String] The filter to apply on the operation. Use
336
+ # atScopeAndBelow filter to search below the given scope as well.
334
337
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
335
338
  # will be added to the HTTP request.
336
339
  #
337
340
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
338
341
  #
339
- def get_by_id_with_http_info(role_definition_id, custom_headers = nil)
340
- get_by_id_async(role_definition_id, custom_headers).value!
342
+ def list_with_http_info(scope, filter:nil, custom_headers:nil)
343
+ list_async(scope, filter:filter, custom_headers:custom_headers).value!
341
344
  end
342
345
 
343
346
  #
344
- # Gets a role definition by ID.
347
+ # Get all role definitions that are applicable at scope and above.
345
348
  #
346
- # @param role_definition_id [String] The fully qualified role definition ID to
347
- # get.
349
+ # @param scope [String] The scope of the role definition.
350
+ # @param filter [String] The filter to apply on the operation. Use
351
+ # atScopeAndBelow filter to search below the given scope as well.
348
352
  # @param [Hash{String => String}] A hash of custom headers that will be added
349
353
  # to the HTTP request.
350
354
  #
351
355
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
352
356
  #
353
- def get_by_id_async(role_definition_id, custom_headers = nil)
354
- fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
357
+ def list_async(scope, filter:nil, custom_headers:nil)
358
+ fail ArgumentError, 'scope is nil' if scope.nil?
355
359
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
356
360
 
357
361
 
358
362
  request_headers = {}
363
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
359
364
 
360
365
  # Set Headers
361
366
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
362
367
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
363
- path_template = '{roleDefinitionId}'
368
+ path_template = '{scope}/providers/Microsoft.Authorization/roleDefinitions'
364
369
 
365
370
  request_url = @base_url || @client.base_url
366
371
 
367
372
  options = {
368
373
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
369
- skip_encoding_path_params: {'roleDefinitionId' => role_definition_id},
370
- query_params: {'api-version' => @client.api_version},
374
+ skip_encoding_path_params: {'scope' => scope},
375
+ query_params: {'$filter' => filter,'api-version' => @client.api_version},
371
376
  headers: request_headers.merge(custom_headers || {}),
372
377
  base_url: request_url
373
378
  }
@@ -387,7 +392,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
387
392
  if status_code == 200
388
393
  begin
389
394
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
390
- result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
395
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult.mapper()
391
396
  result.body = @client.deserialize(result_mapper, parsed_response)
392
397
  rescue Exception => e
393
398
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -401,65 +406,75 @@ module Azure::Authorization::Mgmt::V2015_07_01
401
406
  end
402
407
 
403
408
  #
404
- # Get all role definitions that are applicable at scope and above.
409
+ # Gets a role definition by ID.
405
410
  #
406
- # @param scope [String] The scope of the role definition.
407
- # @param filter [String] The filter to apply on the operation. Use
408
- # atScopeAndBelow filter to search below the given scope as well.
411
+ # @param role_definition_id [String] The fully qualified role definition ID.
412
+ # Use the format,
413
+ # /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
414
+ # for subscription level role definitions, or
415
+ # /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for
416
+ # tenant level role definitions.
409
417
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
410
418
  # will be added to the HTTP request.
411
419
  #
412
- # @return [Array<RoleDefinition>] operation results.
420
+ # @return [RoleDefinition] operation results.
413
421
  #
414
- def list(scope, filter = nil, custom_headers = nil)
415
- first_page = list_as_lazy(scope, filter, custom_headers)
416
- first_page.get_all_items
422
+ def get_by_id(role_definition_id, custom_headers:nil)
423
+ response = get_by_id_async(role_definition_id, custom_headers:custom_headers).value!
424
+ response.body unless response.nil?
417
425
  end
418
426
 
419
427
  #
420
- # Get all role definitions that are applicable at scope and above.
428
+ # Gets a role definition by ID.
421
429
  #
422
- # @param scope [String] The scope of the role definition.
423
- # @param filter [String] The filter to apply on the operation. Use
424
- # atScopeAndBelow filter to search below the given scope as well.
430
+ # @param role_definition_id [String] The fully qualified role definition ID.
431
+ # Use the format,
432
+ # /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
433
+ # for subscription level role definitions, or
434
+ # /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for
435
+ # tenant level role definitions.
425
436
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
426
437
  # will be added to the HTTP request.
427
438
  #
428
439
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
429
440
  #
430
- def list_with_http_info(scope, filter = nil, custom_headers = nil)
431
- list_async(scope, filter, custom_headers).value!
441
+ def get_by_id_with_http_info(role_definition_id, custom_headers:nil)
442
+ get_by_id_async(role_definition_id, custom_headers:custom_headers).value!
432
443
  end
433
444
 
434
445
  #
435
- # Get all role definitions that are applicable at scope and above.
446
+ # Gets a role definition by ID.
436
447
  #
437
- # @param scope [String] The scope of the role definition.
438
- # @param filter [String] The filter to apply on the operation. Use
439
- # atScopeAndBelow filter to search below the given scope as well.
448
+ # @param role_definition_id [String] The fully qualified role definition ID.
449
+ # Use the format,
450
+ # /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
451
+ # for subscription level role definitions, or
452
+ # /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for
453
+ # tenant level role definitions.
440
454
  # @param [Hash{String => String}] A hash of custom headers that will be added
441
455
  # to the HTTP request.
442
456
  #
443
457
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
444
458
  #
445
- def list_async(scope, filter = nil, custom_headers = nil)
446
- fail ArgumentError, 'scope is nil' if scope.nil?
459
+ def get_by_id_async(role_definition_id, custom_headers:nil)
460
+ fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil?
447
461
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
448
462
 
449
463
 
450
464
  request_headers = {}
465
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
451
466
 
452
467
  # Set Headers
453
468
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
454
469
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
455
- path_template = '{scope}/providers/Microsoft.Authorization/roleDefinitions'
470
+ path_template = '{roleDefinitionId}'
456
471
 
457
472
  request_url = @base_url || @client.base_url
458
473
 
459
474
  options = {
460
475
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
461
- skip_encoding_path_params: {'scope' => scope},
462
- query_params: {'$filter' => filter,'api-version' => @client.api_version},
476
+ skip_encoding_path_params: {'roleDefinitionId' => role_definition_id},
477
+ query_params: {'api-version' => @client.api_version},
463
478
  headers: request_headers.merge(custom_headers || {}),
464
479
  base_url: request_url
465
480
  }
@@ -479,7 +494,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
479
494
  if status_code == 200
480
495
  begin
481
496
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
482
- result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult.mapper()
497
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
483
498
  result.body = @client.deserialize(result_mapper, parsed_response)
484
499
  rescue Exception => e
485
500
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -502,8 +517,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
502
517
  #
503
518
  # @return [RoleDefinitionListResult] operation results.
504
519
  #
505
- def list_next(next_page_link, custom_headers = nil)
506
- response = list_next_async(next_page_link, custom_headers).value!
520
+ def list_next(next_page_link, custom_headers:nil)
521
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
507
522
  response.body unless response.nil?
508
523
  end
509
524
 
@@ -517,8 +532,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
517
532
  #
518
533
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
519
534
  #
520
- def list_next_with_http_info(next_page_link, custom_headers = nil)
521
- list_next_async(next_page_link, custom_headers).value!
535
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
536
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
522
537
  end
523
538
 
524
539
  #
@@ -531,11 +546,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
531
546
  #
532
547
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
533
548
  #
534
- def list_next_async(next_page_link, custom_headers = nil)
549
+ def list_next_async(next_page_link, custom_headers:nil)
535
550
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
536
551
 
537
552
 
538
553
  request_headers = {}
554
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
539
555
 
540
556
  # Set Headers
541
557
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -591,12 +607,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
591
607
  # @return [RoleDefinitionListResult] which provide lazy access to pages of the
592
608
  # response.
593
609
  #
594
- def list_as_lazy(scope, filter = nil, custom_headers = nil)
595
- response = list_async(scope, filter, custom_headers).value!
610
+ def list_as_lazy(scope, filter:nil, custom_headers:nil)
611
+ response = list_async(scope, filter:filter, custom_headers:custom_headers).value!
596
612
  unless response.nil?
597
613
  page = response.body
598
614
  page.next_method = Proc.new do |next_page_link|
599
- list_next_async(next_page_link, custom_headers)
615
+ list_next_async(next_page_link, custom_headers:custom_headers)
600
616
  end
601
617
  page
602
618
  end
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/authorization_module_definition'
6
6
  require 'profiles/latest/modules/authorization_profile_module'
7
7
 
8
- module Azure::Authorization::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < AuthorizationClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::Authorization::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < AuthorizationManagementClass
14
+ include MsRestAzure::Common::Configurable
14
15
 
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
15
37
 
16
- def initialize(options = {})
17
- super(options)
18
38
  end
19
-
20
39
  end
21
40
  end
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::Authorization end
7
7
  module Azure::Authorization::Profiles end
8
8
  module Azure::Authorization::Profiles::Latest end
9
- module Azure::Authorization::Profiles::Latest::Mgmt end
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'azure_mgmt_authorization'
6
6
 
7
- module Azure::Authorization::Profiles::Latest::Mgmt
7
+ module Azure::Authorization::Profiles::Latest
8
+ module Mgmt
8
9
  ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators
9
10
  Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions
10
11
  ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations
@@ -34,9 +35,9 @@ module Azure::Authorization::Profiles::Latest::Mgmt
34
35
  end
35
36
 
36
37
  #
37
- # Authorization
38
+ # AuthorizationManagementClass
38
39
  #
39
- class AuthorizationClass
40
+ class AuthorizationManagementClass
40
41
  attr_reader :classic_administrators, :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :configurable, :base_url, :options, :model_classes
41
42
 
42
43
  def initialize(options = {})
@@ -48,79 +49,97 @@ module Azure::Authorization::Profiles::Latest::Mgmt
48
49
 
49
50
  reset!(options)
50
51
 
51
- @configurable, @base_url, @options = self, nil, nil
52
+ @configurable = self
53
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
54
+ @options = options[:options].nil? ? nil:options[:options]
52
55
 
53
- client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
54
- if(client_0.respond_to?(:subscription_id))
55
- client_0.subscription_id = configurable.subscription_id
56
- end
57
- @classic_administrators = client_0.classic_administrators
58
- @permissions = client_0.permissions
59
- @provider_operations_metadata_operations = client_0.provider_operations_metadata_operations
60
- @role_assignments = client_0.role_assignments
61
- @role_definitions = client_0.role_definitions
56
+ @client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
57
+ if(@client_0.respond_to?(:subscription_id))
58
+ @client_0.subscription_id = configurable.subscription_id
59
+ end
60
+ add_telemetry(@client_0)
61
+ @classic_administrators = @client_0.classic_administrators
62
+ @permissions = @client_0.permissions
63
+ @provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations
64
+ @role_assignments = @client_0.role_assignments
65
+ @role_definitions = @client_0.role_definitions
62
66
 
63
67
  @model_classes = ModelClasses.new
64
68
  end
65
69
 
66
- class ModelClasses
67
- def provider_operations_metadata
68
- Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
69
- end
70
- def provider_operations_metadata_list_result
71
- Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
72
- end
73
- def role_definition_filter
74
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
75
- end
76
- def role_assignment_properties_with_scope
77
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
78
- end
79
- def classic_administrator
80
- Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
81
- end
82
- def role_assignment
83
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
84
- end
85
- def permission
86
- Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
87
- end
88
- def role_assignment_list_result
89
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
90
- end
91
- def provider_operation
92
- Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
93
- end
94
- def role_assignment_properties
95
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
96
- end
97
- def role_assignment_filter
98
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
99
- end
100
- def role_assignment_create_parameters
101
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
102
- end
103
- def classic_administrator_list_result
104
- Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
105
- end
106
- def role_definition_properties
107
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
108
- end
109
- def resource_type
110
- Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
111
- end
112
- def role_definition
113
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
114
- end
115
- def permission_get_result
116
- Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
117
- end
118
- def role_definition_list_result
119
- Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
120
- end
121
- def classic_administrator_properties
122
- Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
70
+ def add_telemetry(client)
71
+ profile_information = 'Profiles/Latest/Authorization/Mgmt'
72
+ client.add_user_agent_information(profile_information)
73
+ end
74
+
75
+ def method_missing(method, *args)
76
+ if @client_0.respond_to?method
77
+ @client_0.send(method, *args)
78
+ else
79
+ super
123
80
  end
124
81
  end
82
+
83
+ end
84
+
85
+ class ModelClasses
86
+ def provider_operations_metadata
87
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
88
+ end
89
+ def provider_operations_metadata_list_result
90
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
91
+ end
92
+ def role_definition_filter
93
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
94
+ end
95
+ def role_assignment_properties_with_scope
96
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
97
+ end
98
+ def classic_administrator
99
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
100
+ end
101
+ def role_assignment
102
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
103
+ end
104
+ def permission
105
+ Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
106
+ end
107
+ def role_assignment_list_result
108
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
109
+ end
110
+ def provider_operation
111
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
112
+ end
113
+ def role_assignment_properties
114
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
115
+ end
116
+ def role_assignment_filter
117
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
118
+ end
119
+ def role_assignment_create_parameters
120
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
121
+ end
122
+ def classic_administrator_list_result
123
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
124
+ end
125
+ def role_definition_properties
126
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
127
+ end
128
+ def resource_type
129
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
130
+ end
131
+ def role_definition
132
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
133
+ end
134
+ def permission_get_result
135
+ Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
136
+ end
137
+ def role_definition_list_result
138
+ Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
139
+ end
140
+ def classic_administrator_properties
141
+ Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
142
+ end
125
143
  end
144
+ end
126
145
  end