azure_mgmt_authorization 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/authorization_management_client.rb +3 -3
  3. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/classic_administrators.rb +3 -3
  4. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/classic_administrator.rb +1 -1
  5. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/classic_administrator_list_result.rb +1 -1
  6. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/classic_administrator_properties.rb +1 -1
  7. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/permission.rb +1 -1
  8. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/permission_get_result.rb +1 -1
  9. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/provider_operation.rb +1 -1
  10. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/provider_operations_metadata.rb +1 -1
  11. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +1 -1
  12. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/resource_type.rb +1 -1
  13. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_assignment.rb +1 -1
  14. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +1 -1
  15. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_assignment_filter.rb +1 -1
  16. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_assignment_list_result.rb +1 -1
  17. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_assignment_properties.rb +1 -1
  18. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +1 -1
  19. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_definition.rb +1 -1
  20. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_definition_filter.rb +1 -1
  21. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_definition_list_result.rb +1 -1
  22. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/models/role_definition_properties.rb +1 -1
  23. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/module_definition.rb +3 -2
  24. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/permissions.rb +5 -5
  25. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/provider_operations_metadata_operations.rb +4 -4
  26. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/role_assignments.rb +17 -17
  27. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/role_definitions.rb +8 -8
  28. data/lib/{generated → 2015-07-01/generated}/azure_mgmt_authorization/version.rb +2 -2
  29. data/lib/2015-07-01/generated/azure_mgmt_authorization.rb +51 -0
  30. data/lib/azure_mgmt_authorization.rb +2 -1
  31. data/lib/module_definition.rb +7 -0
  32. data/lib/profiles/common/configurable.rb +73 -0
  33. data/lib/profiles/common/default.rb +68 -0
  34. data/lib/profiles/latest/authorization_latest_profile_client.rb +33 -0
  35. data/lib/profiles/latest/authorization_module_definition.rb +9 -0
  36. data/lib/profiles/latest/modules/authorization_profile_module.rb +126 -0
  37. data/lib/version.rb +7 -0
  38. metadata +37 -30
  39. data/lib/generated/azure_mgmt_authorization.rb +0 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ec5bafa3d192d40eeceaf13a796e311c3639666
4
- data.tar.gz: 73b62b82e88b296321f2aec34220a4bab5fdca30
3
+ metadata.gz: e836786d47fda0fe56af0a29a7c1a29890fc343d
4
+ data.tar.gz: dc3dc4ec3759800a8d2a25c2ee46f6834a7171e2
5
5
  SHA512:
6
- metadata.gz: 2e50ccfe906c4db100cc7595587ec6e0ac2ace51d6c234ee3bfb34527d751ef5298b4a2d99594f0deb60c783e8829b11f413cda658f9696420d282e84305f81b
7
- data.tar.gz: 9a359ee30abee36fcdf1ab0ee33be6c29eea80666cbe8d5befe8ca9ea9d7c26af2385591ee6e92c47962ec30d65a4e425f1ef4f3e32126d786ec9a0fe2be881f
6
+ metadata.gz: 1d891677c2aa1e25a839233b8b6bc90c9f045ce79ed208955f383003a954b87a6d5ccb56237d887b7396064b8c8ed731fa5358b343c9f3550c91d184dae37f97
7
+ data.tar.gz: 4a6ae92319649067c88eba5c8454bab6317953f704d820fa6c79bd77df5e3f5ea393bd46d50f1ae4de047120b3dbf7c8f09c166abc0b35433c912c56cfa043ea
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -137,8 +137,8 @@ module Azure::ARM::Authorization
137
137
  #
138
138
  def add_telemetry
139
139
  sdk_information = 'azure_mgmt_authorization'
140
- if defined? Azure::ARM::Authorization::VERSION
141
- sdk_information = "#{sdk_information}/#{Azure::ARM::Authorization::VERSION}"
140
+ if defined? Azure::Authorization::Mgmt::V2015_07_01::VERSION
141
+ sdk_information = "#{sdk_information}/#{Azure::Authorization::Mgmt::V2015_07_01::VERSION}"
142
142
  end
143
143
  add_user_agent_information(sdk_information)
144
144
  end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  #
8
8
  # Role based access control provides you a way to apply granular level policy
9
9
  # administration down to individual resources or resource groups. These
@@ -101,7 +101,7 @@ module Azure::ARM::Authorization
101
101
  if status_code == 200
102
102
  begin
103
103
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
104
- result_mapper = Azure::ARM::Authorization::Models::ClassicAdministratorListResult.mapper()
104
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult.mapper()
105
105
  result.body = @client.deserialize(result_mapper, parsed_response)
106
106
  rescue Exception => e
107
107
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -191,7 +191,7 @@ module Azure::ARM::Authorization
191
191
  if status_code == 200
192
192
  begin
193
193
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
194
- result_mapper = Azure::ARM::Authorization::Models::ClassicAdministratorListResult.mapper()
194
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult.mapper()
195
195
  result.body = @client.deserialize(result_mapper, parsed_response)
196
196
  rescue Exception => e
197
197
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Classic Administrators
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # ClassicAdministrator list result information.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Classic Administrator properties.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role definition permissions.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Permissions information.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Operation
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Provider Operations metadata
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Provider operations metadata list
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Resource Type
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role Assignments
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role assignment create parameters.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role Assignments filter
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role assignment list operation result.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role assignment properties.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role assignment properties with scope.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role definition.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role Definitions filter
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role definition list operation result.
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  module Models
8
8
  #
9
9
  # Role definition properties.
@@ -4,5 +4,6 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::Authorization end
7
+ module Azure::Authorization end
8
+ module Azure::Authorization::Mgmt end
9
+ module Azure::Authorization::Mgmt::V2015_07_01 end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  #
8
8
  # Role based access control provides you a way to apply granular level policy
9
9
  # administration down to individual resources or resource groups. These
@@ -102,7 +102,7 @@ module Azure::ARM::Authorization
102
102
  if status_code == 200
103
103
  begin
104
104
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
- result_mapper = Azure::ARM::Authorization::Models::PermissionGetResult.mapper()
105
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult.mapper()
106
106
  result.body = @client.deserialize(result_mapper, parsed_response)
107
107
  rescue Exception => e
108
108
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -215,7 +215,7 @@ module Azure::ARM::Authorization
215
215
  if status_code == 200
216
216
  begin
217
217
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
218
- result_mapper = Azure::ARM::Authorization::Models::PermissionGetResult.mapper()
218
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult.mapper()
219
219
  result.body = @client.deserialize(result_mapper, parsed_response)
220
220
  rescue Exception => e
221
221
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -302,7 +302,7 @@ module Azure::ARM::Authorization
302
302
  if status_code == 200
303
303
  begin
304
304
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
305
- result_mapper = Azure::ARM::Authorization::Models::PermissionGetResult.mapper()
305
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult.mapper()
306
306
  result.body = @client.deserialize(result_mapper, parsed_response)
307
307
  rescue Exception => e
308
308
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -389,7 +389,7 @@ module Azure::ARM::Authorization
389
389
  if status_code == 200
390
390
  begin
391
391
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
392
- result_mapper = Azure::ARM::Authorization::Models::PermissionGetResult.mapper()
392
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult.mapper()
393
393
  result.body = @client.deserialize(result_mapper, parsed_response)
394
394
  rescue Exception => e
395
395
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  #
8
8
  # Role based access control provides you a way to apply granular level policy
9
9
  # administration down to individual resources or resource groups. These
@@ -107,7 +107,7 @@ module Azure::ARM::Authorization
107
107
  if status_code == 200
108
108
  begin
109
109
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
110
- result_mapper = Azure::ARM::Authorization::Models::ProviderOperationsMetadata.mapper()
110
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata.mapper()
111
111
  result.body = @client.deserialize(result_mapper, parsed_response)
112
112
  rescue Exception => e
113
113
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -194,7 +194,7 @@ module Azure::ARM::Authorization
194
194
  if status_code == 200
195
195
  begin
196
196
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
197
- result_mapper = Azure::ARM::Authorization::Models::ProviderOperationsMetadataListResult.mapper()
197
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult.mapper()
198
198
  result.body = @client.deserialize(result_mapper, parsed_response)
199
199
  rescue Exception => e
200
200
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -281,7 +281,7 @@ module Azure::ARM::Authorization
281
281
  if status_code == 200
282
282
  begin
283
283
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
284
- result_mapper = Azure::ARM::Authorization::Models::ProviderOperationsMetadataListResult.mapper()
284
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult.mapper()
285
285
  result.body = @client.deserialize(result_mapper, parsed_response)
286
286
  rescue Exception => e
287
287
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  #
8
8
  # Role based access control provides you a way to apply granular level policy
9
9
  # administration down to individual resources or resource groups. These
@@ -134,7 +134,7 @@ module Azure::ARM::Authorization
134
134
  if status_code == 200
135
135
  begin
136
136
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
137
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
137
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
138
138
  result.body = @client.deserialize(result_mapper, parsed_response)
139
139
  rescue Exception => e
140
140
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -233,7 +233,7 @@ module Azure::ARM::Authorization
233
233
  if status_code == 200
234
234
  begin
235
235
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
236
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
236
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
237
237
  result.body = @client.deserialize(result_mapper, parsed_response)
238
238
  rescue Exception => e
239
239
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -327,7 +327,7 @@ module Azure::ARM::Authorization
327
327
  if status_code == 200
328
328
  begin
329
329
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
330
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignment.mapper()
330
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment.mapper()
331
331
  result.body = @client.deserialize(result_mapper, parsed_response)
332
332
  rescue Exception => e
333
333
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -422,7 +422,7 @@ module Azure::ARM::Authorization
422
422
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
423
423
 
424
424
  # Serialize Request
425
- request_mapper = Azure::ARM::Authorization::Models::RoleAssignmentCreateParameters.mapper()
425
+ request_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters.mapper()
426
426
  request_content = @client.serialize(request_mapper, parameters)
427
427
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
428
428
 
@@ -455,7 +455,7 @@ module Azure::ARM::Authorization
455
455
  if status_code == 201
456
456
  begin
457
457
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
458
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignment.mapper()
458
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment.mapper()
459
459
  result.body = @client.deserialize(result_mapper, parsed_response)
460
460
  rescue Exception => e
461
461
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -546,7 +546,7 @@ module Azure::ARM::Authorization
546
546
  if status_code == 200
547
547
  begin
548
548
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
549
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignment.mapper()
549
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment.mapper()
550
550
  result.body = @client.deserialize(result_mapper, parsed_response)
551
551
  rescue Exception => e
552
552
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -632,7 +632,7 @@ module Azure::ARM::Authorization
632
632
  if status_code == 200
633
633
  begin
634
634
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
635
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignment.mapper()
635
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment.mapper()
636
636
  result.body = @client.deserialize(result_mapper, parsed_response)
637
637
  rescue Exception => e
638
638
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -702,7 +702,7 @@ module Azure::ARM::Authorization
702
702
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
703
703
 
704
704
  # Serialize Request
705
- request_mapper = Azure::ARM::Authorization::Models::RoleAssignmentCreateParameters.mapper()
705
+ request_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters.mapper()
706
706
  request_content = @client.serialize(request_mapper, parameters)
707
707
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
708
708
 
@@ -734,7 +734,7 @@ module Azure::ARM::Authorization
734
734
  if status_code == 201
735
735
  begin
736
736
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
737
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignment.mapper()
737
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment.mapper()
738
738
  result.body = @client.deserialize(result_mapper, parsed_response)
739
739
  rescue Exception => e
740
740
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -820,7 +820,7 @@ module Azure::ARM::Authorization
820
820
  if status_code == 200
821
821
  begin
822
822
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
823
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignment.mapper()
823
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment.mapper()
824
824
  result.body = @client.deserialize(result_mapper, parsed_response)
825
825
  rescue Exception => e
826
826
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -915,7 +915,7 @@ module Azure::ARM::Authorization
915
915
  if status_code == 200
916
916
  begin
917
917
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
918
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
918
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
919
919
  result.body = @client.deserialize(result_mapper, parsed_response)
920
920
  rescue Exception => e
921
921
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1013,7 +1013,7 @@ module Azure::ARM::Authorization
1013
1013
  if status_code == 200
1014
1014
  begin
1015
1015
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1016
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
1016
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
1017
1017
  result.body = @client.deserialize(result_mapper, parsed_response)
1018
1018
  rescue Exception => e
1019
1019
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1100,7 +1100,7 @@ module Azure::ARM::Authorization
1100
1100
  if status_code == 200
1101
1101
  begin
1102
1102
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1103
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
1103
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
1104
1104
  result.body = @client.deserialize(result_mapper, parsed_response)
1105
1105
  rescue Exception => e
1106
1106
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1187,7 +1187,7 @@ module Azure::ARM::Authorization
1187
1187
  if status_code == 200
1188
1188
  begin
1189
1189
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1190
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
1190
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
1191
1191
  result.body = @client.deserialize(result_mapper, parsed_response)
1192
1192
  rescue Exception => e
1193
1193
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1274,7 +1274,7 @@ module Azure::ARM::Authorization
1274
1274
  if status_code == 200
1275
1275
  begin
1276
1276
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1277
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
1277
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
1278
1278
  result.body = @client.deserialize(result_mapper, parsed_response)
1279
1279
  rescue Exception => e
1280
1280
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1361,7 +1361,7 @@ module Azure::ARM::Authorization
1361
1361
  if status_code == 200
1362
1362
  begin
1363
1363
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1364
- result_mapper = Azure::ARM::Authorization::Models::RoleAssignmentListResult.mapper()
1364
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult.mapper()
1365
1365
  result.body = @client.deserialize(result_mapper, parsed_response)
1366
1366
  rescue Exception => e
1367
1367
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
7
  #
8
8
  # Role based access control provides you a way to apply granular level policy
9
9
  # administration down to individual resources or resource groups. These
@@ -103,7 +103,7 @@ module Azure::ARM::Authorization
103
103
  if status_code == 200
104
104
  begin
105
105
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
- result_mapper = Azure::ARM::Authorization::Models::RoleDefinition.mapper()
106
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
107
107
  result.body = @client.deserialize(result_mapper, parsed_response)
108
108
  rescue Exception => e
109
109
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -194,7 +194,7 @@ module Azure::ARM::Authorization
194
194
  if status_code == 200
195
195
  begin
196
196
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
197
- result_mapper = Azure::ARM::Authorization::Models::RoleDefinition.mapper()
197
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
198
198
  result.body = @client.deserialize(result_mapper, parsed_response)
199
199
  rescue Exception => e
200
200
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -265,7 +265,7 @@ module Azure::ARM::Authorization
265
265
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
266
266
 
267
267
  # Serialize Request
268
- request_mapper = Azure::ARM::Authorization::Models::RoleDefinition.mapper()
268
+ request_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
269
269
  request_content = @client.serialize(request_mapper, role_definition)
270
270
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
271
271
 
@@ -298,7 +298,7 @@ module Azure::ARM::Authorization
298
298
  if status_code == 201
299
299
  begin
300
300
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
- result_mapper = Azure::ARM::Authorization::Models::RoleDefinition.mapper()
301
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
302
302
  result.body = @client.deserialize(result_mapper, parsed_response)
303
303
  rescue Exception => e
304
304
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -387,7 +387,7 @@ module Azure::ARM::Authorization
387
387
  if status_code == 200
388
388
  begin
389
389
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
390
- result_mapper = Azure::ARM::Authorization::Models::RoleDefinition.mapper()
390
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition.mapper()
391
391
  result.body = @client.deserialize(result_mapper, parsed_response)
392
392
  rescue Exception => e
393
393
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -479,7 +479,7 @@ module Azure::ARM::Authorization
479
479
  if status_code == 200
480
480
  begin
481
481
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
482
- result_mapper = Azure::ARM::Authorization::Models::RoleDefinitionListResult.mapper()
482
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult.mapper()
483
483
  result.body = @client.deserialize(result_mapper, parsed_response)
484
484
  rescue Exception => e
485
485
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -566,7 +566,7 @@ module Azure::ARM::Authorization
566
566
  if status_code == 200
567
567
  begin
568
568
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
569
- result_mapper = Azure::ARM::Authorization::Models::RoleDefinitionListResult.mapper()
569
+ result_mapper = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult.mapper()
570
570
  result.body = @client.deserialize(result_mapper, parsed_response)
571
571
  rescue Exception => e
572
572
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::Authorization
7
- VERSION = '0.14.0'
6
+ module Azure::Authorization::Mgmt::V2015_07_01
7
+ VERSION = '0.15.0'
8
8
  end
@@ -0,0 +1,51 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
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 '2015-07-01/generated/azure_mgmt_authorization/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Authorization::Mgmt::V2015_07_01
23
+ autoload :ClassicAdministrators, '2015-07-01/generated/azure_mgmt_authorization/classic_administrators.rb'
24
+ autoload :Permissions, '2015-07-01/generated/azure_mgmt_authorization/permissions.rb'
25
+ autoload :ProviderOperationsMetadataOperations, '2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb'
26
+ autoload :RoleAssignments, '2015-07-01/generated/azure_mgmt_authorization/role_assignments.rb'
27
+ autoload :RoleDefinitions, '2015-07-01/generated/azure_mgmt_authorization/role_definitions.rb'
28
+ autoload :AuthorizationManagementClient, '2015-07-01/generated/azure_mgmt_authorization/authorization_management_client.rb'
29
+
30
+ module Models
31
+ autoload :ProviderOperationsMetadata, '2015-07-01/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb'
32
+ autoload :ProviderOperationsMetadataListResult, '2015-07-01/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb'
33
+ autoload :RoleDefinitionFilter, '2015-07-01/generated/azure_mgmt_authorization/models/role_definition_filter.rb'
34
+ autoload :RoleAssignmentPropertiesWithScope, '2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb'
35
+ autoload :ClassicAdministrator, '2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator.rb'
36
+ autoload :RoleAssignment, '2015-07-01/generated/azure_mgmt_authorization/models/role_assignment.rb'
37
+ autoload :Permission, '2015-07-01/generated/azure_mgmt_authorization/models/permission.rb'
38
+ autoload :RoleAssignmentListResult, '2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb'
39
+ autoload :ProviderOperation, '2015-07-01/generated/azure_mgmt_authorization/models/provider_operation.rb'
40
+ autoload :RoleAssignmentProperties, '2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_properties.rb'
41
+ autoload :RoleAssignmentFilter, '2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_filter.rb'
42
+ autoload :RoleAssignmentCreateParameters, '2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb'
43
+ autoload :ClassicAdministratorListResult, '2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb'
44
+ autoload :RoleDefinitionProperties, '2015-07-01/generated/azure_mgmt_authorization/models/role_definition_properties.rb'
45
+ autoload :ResourceType, '2015-07-01/generated/azure_mgmt_authorization/models/resource_type.rb'
46
+ autoload :RoleDefinition, '2015-07-01/generated/azure_mgmt_authorization/models/role_definition.rb'
47
+ autoload :PermissionGetResult, '2015-07-01/generated/azure_mgmt_authorization/models/permission_get_result.rb'
48
+ autoload :RoleDefinitionListResult, '2015-07-01/generated/azure_mgmt_authorization/models/role_definition_list_result.rb'
49
+ autoload :ClassicAdministratorProperties, '2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb'
50
+ end
51
+ end
@@ -2,4 +2,5 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_authorization'
5
+ require '2015-07-01/generated/azure_mgmt_authorization'
6
+ require 'profiles/latest/authorization_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Authorization end
7
+ module Azure::Authorization::Mgmt end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
7
+ module Configurable
8
+ # @return [String] Azure tenant id (also known as domain).
9
+ attr_accessor :tenant_id
10
+
11
+ # @return [String] Azure client id.
12
+ attr_accessor :client_id
13
+
14
+ # @return [String] Azure secret key.
15
+ attr_accessor :client_secret
16
+
17
+ # @return [String] Azure subscription id.
18
+ attr_accessor :subscription_id
19
+
20
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
+ attr_accessor :active_directory_settings
22
+
23
+ # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
+ attr_accessor :credentials
25
+
26
+ class << self
27
+ #
28
+ # List of configurable keys for {Azure::ARM::Client}.
29
+ # @return [Array] of option keys.
30
+ #
31
+ def keys
32
+ @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
33
+ end
34
+ end
35
+
36
+ #
37
+ # Set configuration options using a block.
38
+ #
39
+ def configure
40
+ yield self
41
+ end
42
+
43
+ #
44
+ # Resets the configurable options to provided options or defaults.
45
+ # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
+ #
47
+ def reset!(options = {})
48
+ Azure::ARM::Configurable.keys.each do |key|
49
+ default_value = Azure::ARM::Default.options[key]
50
+ instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
+ end
52
+
53
+ self
54
+ end
55
+
56
+ def config
57
+ self
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # configures configurable options to default values
64
+ #
65
+ def setup_options
66
+ opts = {}
67
+ Azure::ARM::Configurable.keys.map do |key|
68
+ opts[key] = Azure::ARM::Default.options[key]
69
+ end
70
+ opts
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # Default configuration options for {Azure::ARM.Client}
7
+ module Default
8
+ class << self
9
+ #
10
+ # Default Azure Tenant Id.
11
+ # @return [String] Azure Tenant Id.
12
+ #
13
+ def tenant_id
14
+ ENV['AZURE_TENANT_ID']
15
+ end
16
+
17
+ #
18
+ # Default Azure Client Id.
19
+ # @return [String] Azure Client Id.
20
+ #
21
+ def client_id
22
+ ENV['AZURE_CLIENT_ID']
23
+ end
24
+
25
+ #
26
+ # Default Azure Client Secret.
27
+ # @return [String] Azure Client Secret.
28
+ #
29
+ def client_secret
30
+ ENV['AZURE_CLIENT_SECRET']
31
+ end
32
+
33
+ #
34
+ # Default Azure Subscription Id.
35
+ # @return [String] Azure Subscription Id.
36
+ #
37
+ def subscription_id
38
+ ENV['AZURE_SUBSCRIPTION_ID']
39
+ end
40
+
41
+ #
42
+ # Default Azure credentials to authorize HTTP requests made by the service client.
43
+ # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
44
+ #
45
+ def credentials
46
+ MsRest::TokenCredentials.new(
47
+ MsRestAzure::ApplicationTokenProvider.new(
48
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
49
+ end
50
+
51
+ #
52
+ # Default Azure Active Directory Service Settings.
53
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
54
+ #
55
+ def active_directory_settings
56
+ MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
57
+ end
58
+
59
+ #
60
+ # Configuration options.
61
+ # @return [Hash] Configuration options.
62
+ #
63
+ def options
64
+ Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,33 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/authorization_module_definition'
6
+ require 'profiles/latest/modules/authorization_profile_module'
7
+ require 'profiles/common/configurable'
8
+ require 'profiles/common/default'
9
+
10
+ module Azure::Authorization::Profiles::Latest::Mgmt
11
+ #
12
+ # Client class for the Latest profile SDK.
13
+ #
14
+ class Client < AuthorizationClass
15
+ include Azure::ARM::Configurable
16
+
17
+
18
+ def initialize(options = {})
19
+ super(options)
20
+ end
21
+
22
+ def credentials
23
+ if @credentials.nil?
24
+ self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
25
+
26
+ @credentials = MsRest::TokenCredentials.new(
27
+ MsRestAzure::ApplicationTokenProvider.new(
28
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
29
+ end
30
+ @credentials
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Authorization end
7
+ module Azure::Authorization::Profiles end
8
+ module Azure::Authorization::Profiles::Latest end
9
+ module Azure::Authorization::Profiles::Latest::Mgmt end
@@ -0,0 +1,126 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_authorization'
6
+
7
+ module Azure::Authorization::Profiles::Latest::Mgmt
8
+ ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators
9
+ Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions
10
+ ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations
11
+ RoleAssignments = Azure::Authorization::Mgmt::V2015_07_01::RoleAssignments
12
+ RoleDefinitions = Azure::Authorization::Mgmt::V2015_07_01::RoleDefinitions
13
+
14
+ module Models
15
+ ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
16
+ ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
17
+ RoleDefinitionFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
18
+ RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
19
+ ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
20
+ RoleAssignment = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
21
+ Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
22
+ RoleAssignmentListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
23
+ ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
24
+ RoleAssignmentProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
25
+ RoleAssignmentFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
26
+ RoleAssignmentCreateParameters = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
27
+ ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
28
+ RoleDefinitionProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
29
+ ResourceType = Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
30
+ RoleDefinition = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
31
+ PermissionGetResult = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
32
+ RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
33
+ ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
34
+ end
35
+
36
+ #
37
+ # Authorization
38
+ #
39
+ class AuthorizationClass
40
+ attr_reader :classic_administrators, :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :configurable, :base_url, :options, :model_classes
41
+
42
+ def initialize(options = {})
43
+ if options.is_a?(Hash) && options.length == 0
44
+ @options = setup_options
45
+ else
46
+ @options = options
47
+ end
48
+
49
+ reset!(options)
50
+
51
+ @configurable, @base_url, @options = self, nil, nil
52
+
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
62
+
63
+ @model_classes = ModelClasses.new
64
+ end
65
+
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
123
+ end
124
+ end
125
+ end
126
+ end
data/lib/version.rb ADDED
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::Authorization::Mgmt
6
+ VERSION = '0.15.0'
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,35 +88,42 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - LICENSE.txt
91
+ - lib/2015-07-01/generated/azure_mgmt_authorization.rb
92
+ - lib/2015-07-01/generated/azure_mgmt_authorization/authorization_management_client.rb
93
+ - lib/2015-07-01/generated/azure_mgmt_authorization/classic_administrators.rb
94
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator.rb
95
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
96
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb
97
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/permission.rb
98
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/permission_get_result.rb
99
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/provider_operation.rb
100
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb
101
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
102
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/resource_type.rb
103
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment.rb
104
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
105
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_filter.rb
106
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
107
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_properties.rb
108
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
109
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_definition.rb
110
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_definition_filter.rb
111
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
112
+ - lib/2015-07-01/generated/azure_mgmt_authorization/models/role_definition_properties.rb
113
+ - lib/2015-07-01/generated/azure_mgmt_authorization/module_definition.rb
114
+ - lib/2015-07-01/generated/azure_mgmt_authorization/permissions.rb
115
+ - lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
116
+ - lib/2015-07-01/generated/azure_mgmt_authorization/role_assignments.rb
117
+ - lib/2015-07-01/generated/azure_mgmt_authorization/role_definitions.rb
118
+ - lib/2015-07-01/generated/azure_mgmt_authorization/version.rb
91
119
  - lib/azure_mgmt_authorization.rb
92
- - lib/generated/azure_mgmt_authorization.rb
93
- - lib/generated/azure_mgmt_authorization/authorization_management_client.rb
94
- - lib/generated/azure_mgmt_authorization/classic_administrators.rb
95
- - lib/generated/azure_mgmt_authorization/models/classic_administrator.rb
96
- - lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
97
- - lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb
98
- - lib/generated/azure_mgmt_authorization/models/permission.rb
99
- - lib/generated/azure_mgmt_authorization/models/permission_get_result.rb
100
- - lib/generated/azure_mgmt_authorization/models/provider_operation.rb
101
- - lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb
102
- - lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
103
- - lib/generated/azure_mgmt_authorization/models/resource_type.rb
104
- - lib/generated/azure_mgmt_authorization/models/role_assignment.rb
105
- - lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
106
- - lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb
107
- - lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
108
- - lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb
109
- - lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
110
- - lib/generated/azure_mgmt_authorization/models/role_definition.rb
111
- - lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb
112
- - lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
113
- - lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb
114
- - lib/generated/azure_mgmt_authorization/module_definition.rb
115
- - lib/generated/azure_mgmt_authorization/permissions.rb
116
- - lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
117
- - lib/generated/azure_mgmt_authorization/role_assignments.rb
118
- - lib/generated/azure_mgmt_authorization/role_definitions.rb
119
- - lib/generated/azure_mgmt_authorization/version.rb
120
+ - lib/module_definition.rb
121
+ - lib/profiles/common/configurable.rb
122
+ - lib/profiles/common/default.rb
123
+ - lib/profiles/latest/authorization_latest_profile_client.rb
124
+ - lib/profiles/latest/authorization_module_definition.rb
125
+ - lib/profiles/latest/modules/authorization_profile_module.rb
126
+ - lib/version.rb
120
127
  homepage: https://aka.ms/azure-sdk-for-ruby
121
128
  licenses:
122
129
  - MIT
@@ -1,51 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
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 'generated/azure_mgmt_authorization/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::Authorization
23
- autoload :ClassicAdministrators, 'generated/azure_mgmt_authorization/classic_administrators.rb'
24
- autoload :Permissions, 'generated/azure_mgmt_authorization/permissions.rb'
25
- autoload :ProviderOperationsMetadataOperations, 'generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb'
26
- autoload :RoleAssignments, 'generated/azure_mgmt_authorization/role_assignments.rb'
27
- autoload :RoleDefinitions, 'generated/azure_mgmt_authorization/role_definitions.rb'
28
- autoload :AuthorizationManagementClient, 'generated/azure_mgmt_authorization/authorization_management_client.rb'
29
-
30
- module Models
31
- autoload :ProviderOperationsMetadata, 'generated/azure_mgmt_authorization/models/provider_operations_metadata.rb'
32
- autoload :ProviderOperationsMetadataListResult, 'generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb'
33
- autoload :RoleDefinitionFilter, 'generated/azure_mgmt_authorization/models/role_definition_filter.rb'
34
- autoload :RoleAssignmentPropertiesWithScope, 'generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb'
35
- autoload :ClassicAdministrator, 'generated/azure_mgmt_authorization/models/classic_administrator.rb'
36
- autoload :RoleAssignment, 'generated/azure_mgmt_authorization/models/role_assignment.rb'
37
- autoload :Permission, 'generated/azure_mgmt_authorization/models/permission.rb'
38
- autoload :RoleAssignmentListResult, 'generated/azure_mgmt_authorization/models/role_assignment_list_result.rb'
39
- autoload :ProviderOperation, 'generated/azure_mgmt_authorization/models/provider_operation.rb'
40
- autoload :RoleAssignmentProperties, 'generated/azure_mgmt_authorization/models/role_assignment_properties.rb'
41
- autoload :RoleAssignmentFilter, 'generated/azure_mgmt_authorization/models/role_assignment_filter.rb'
42
- autoload :RoleAssignmentCreateParameters, 'generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb'
43
- autoload :ClassicAdministratorListResult, 'generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb'
44
- autoload :RoleDefinitionProperties, 'generated/azure_mgmt_authorization/models/role_definition_properties.rb'
45
- autoload :ResourceType, 'generated/azure_mgmt_authorization/models/resource_type.rb'
46
- autoload :RoleDefinition, 'generated/azure_mgmt_authorization/models/role_definition.rb'
47
- autoload :PermissionGetResult, 'generated/azure_mgmt_authorization/models/permission_get_result.rb'
48
- autoload :RoleDefinitionListResult, 'generated/azure_mgmt_authorization/models/role_definition_list_result.rb'
49
- autoload :ClassicAdministratorProperties, 'generated/azure_mgmt_authorization/models/classic_administrator_properties.rb'
50
- end
51
- end