azure_mgmt_resources_management 0.14.0 → 0.15.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-31-preview/generated/azure_mgmt_resources_management.rb +43 -0
  3. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/management_groups.rb +4 -4
  4. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/management_groups_api.rb +3 -3
  5. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/error_details.rb +1 -1
  6. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/error_response.rb +1 -1
  7. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group.rb +1 -1
  8. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_child_info.rb +1 -1
  9. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_details_properties.rb +1 -1
  10. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_info.rb +1 -1
  11. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_list_result.rb +1 -1
  12. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb +1 -1
  13. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_with_children.rb +1 -1
  14. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb +1 -1
  15. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/operation.rb +1 -1
  16. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/operation_display.rb +1 -1
  17. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/operation_list_result.rb +1 -1
  18. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/models/parent_group_info.rb +1 -1
  19. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/module_definition.rb +3 -2
  20. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/operations.rb +3 -3
  21. data/lib/{generated → 2017-08-31-preview/generated}/azure_mgmt_resources_management/version.rb +2 -2
  22. data/lib/azure_mgmt_resources_management.rb +2 -3
  23. data/lib/module_definition.rb +7 -0
  24. data/lib/profiles/common/configurable.rb +73 -0
  25. data/lib/profiles/common/default.rb +68 -0
  26. data/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb +100 -0
  27. data/lib/profiles/latest/resourcesmanagement_latest_profile_client.rb +33 -0
  28. data/lib/profiles/latest/resourcesmanagement_module_definition.rb +9 -0
  29. data/lib/version.rb +7 -0
  30. metadata +29 -22
  31. data/lib/generated/azure_mgmt_resources_management.rb +0 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 858ed9177a581e85738abc5f38781802e9ebfe54
4
- data.tar.gz: 7383a57cf6689b8fe85f90a81ce8bd7eb91fda34
3
+ metadata.gz: 2cfdc01fc3c9714baa3a6ef6b57b81086d11c014
4
+ data.tar.gz: ceb75abdf3ff46933ec8141f3046e0d746389cb3
5
5
  SHA512:
6
- metadata.gz: 4207fd3e3b4697b56bc3f95c62aacc331199d7ba5f4c45013119e77b16308546e0e41a501df264bdb85573e5311c4136d2b6377c5b21c9d5105e2331ba08fe8e
7
- data.tar.gz: 3a598ea194f04931e022f7c7affb37ade807e8b6bae6bf24f9e89c947367be2f3a8a06f03a7952bb6f0acd6be825e82957ea98d84bd5e3adc7d1db54efed8aa6
6
+ metadata.gz: 1bfabc19012a4284f9915d8da714ef6f7251a102c8b85c31ac8c0e98da263c4a909b0fa763c3c75f002fd943d55c7a04702a74877ed90240412a39478498c449
7
+ data.tar.gz: 320279812f78d59041003dbffc3cf109f86fd33e95e51119371196f1ec016f9687df5af7479ff5f5bd6b9abfdf9ddd59649f3478508ce341c6c85e16380b696f
@@ -0,0 +1,43 @@
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 '2017-08-31-preview/generated/azure_mgmt_resources_management/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
23
+ autoload :ManagementGroups, '2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb'
24
+ autoload :Operations, '2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb'
25
+ autoload :ManagementGroupsAPI, '2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups_api.rb'
26
+
27
+ module Models
28
+ autoload :ParentGroupInfo, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb'
29
+ autoload :ErrorDetails, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_details.rb'
30
+ autoload :ManagementGroupDetailsProperties, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_details_properties.rb'
31
+ autoload :OperationDisplay, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_display.rb'
32
+ autoload :ManagementGroup, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group.rb'
33
+ autoload :OperationListResult, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb'
34
+ autoload :ManagementGroupChildInfo, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb'
35
+ autoload :ManagementGroupListResult, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb'
36
+ autoload :ManagementGroupWithChildren, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_children.rb'
37
+ autoload :Operation, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation.rb'
38
+ autoload :ManagementGroupRecursiveChildInfo, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb'
39
+ autoload :ErrorResponse, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_response.rb'
40
+ autoload :ManagementGroupWithHierarchy, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb'
41
+ autoload :ManagementGroupInfo, '2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb'
42
+ end
43
+ 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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  #
8
8
  # The Azure Management Groups API enables consolidation of multiple
9
9
  # subscriptions/resources into an organizational hierarchy and centrally
@@ -114,7 +114,7 @@ module Azure::ARM::ResourcesManagement
114
114
  if status_code == 200
115
115
  begin
116
116
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
- result_mapper = Azure::ARM::ResourcesManagement::Models::ManagementGroupListResult.mapper()
117
+ result_mapper = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupListResult.mapper()
118
118
  result.body = @client.deserialize(result_mapper, parsed_response)
119
119
  rescue Exception => e
120
120
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -215,7 +215,7 @@ module Azure::ARM::ResourcesManagement
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::ResourcesManagement::Models::ManagementGroupWithHierarchy.mapper()
218
+ result_mapper = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupWithHierarchy.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)
@@ -305,7 +305,7 @@ module Azure::ARM::ResourcesManagement
305
305
  if status_code == 200
306
306
  begin
307
307
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
308
- result_mapper = Azure::ARM::ResourcesManagement::Models::ManagementGroupListResult.mapper()
308
+ result_mapper = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupListResult.mapper()
309
309
  result.body = @client.deserialize(result_mapper, parsed_response)
310
310
  rescue Exception => e
311
311
  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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
@@ -125,8 +125,8 @@ module Azure::ARM::ResourcesManagement
125
125
  #
126
126
  def add_telemetry
127
127
  sdk_information = 'azure_mgmt_resources_management'
128
- if defined? Azure::ARM::ResourcesManagement::VERSION
129
- sdk_information = "#{sdk_information}/#{Azure::ARM::ResourcesManagement::VERSION}"
128
+ if defined? Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::VERSION
129
+ sdk_information = "#{sdk_information}/#{Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::VERSION}"
130
130
  end
131
131
  add_user_agent_information(sdk_information)
132
132
  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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The details of the error.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The error object.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The management group details.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The unique identifier (ID) of a management group.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The details properties of a management group.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The management group.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The result of listing management groups.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The unique identifier (ID) of a management group.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The management group details.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The management group details.
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # A Management REST API 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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # The object that represents the 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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # Result listing operations. It contains a list of operations and a URL
@@ -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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  module Models
8
8
  #
9
9
  # (Optional) The ID of the parent management group.
@@ -4,5 +4,6 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::ResourcesManagement end
7
+ module Azure::ResourcesManagement end
8
+ module Azure::ResourcesManagement::Mgmt end
9
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview 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::ResourcesManagement
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
7
  #
8
8
  # The Azure Management Groups API enables consolidation of multiple
9
9
  # subscriptions/resources into an organizational hierarchy and centrally
@@ -93,7 +93,7 @@ module Azure::ARM::ResourcesManagement
93
93
  if status_code == 200
94
94
  begin
95
95
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
96
- result_mapper = Azure::ARM::ResourcesManagement::Models::OperationListResult.mapper()
96
+ result_mapper = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::OperationListResult.mapper()
97
97
  result.body = @client.deserialize(result_mapper, parsed_response)
98
98
  rescue Exception => e
99
99
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -180,7 +180,7 @@ module Azure::ARM::ResourcesManagement
180
180
  if status_code == 200
181
181
  begin
182
182
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
183
- result_mapper = Azure::ARM::ResourcesManagement::Models::OperationListResult.mapper()
183
+ result_mapper = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::OperationListResult.mapper()
184
184
  result.body = @client.deserialize(result_mapper, parsed_response)
185
185
  rescue Exception => e
186
186
  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::ResourcesManagement
7
- VERSION = '0.14.0'
6
+ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview
7
+ VERSION = '0.15.0'
8
8
  end
@@ -2,6 +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_resources_management'
6
-
7
-
5
+ require '2017-08-31-preview/generated/azure_mgmt_resources_management'
6
+ require 'profiles/latest/resourcesmanagement_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::ResourcesManagement end
7
+ module Azure::ResourcesManagement::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,100 @@
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_resources_management'
6
+
7
+ module Azure::ResourcesManagement::Profiles::Latest::Mgmt
8
+ ManagementGroups = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroups
9
+ Operations = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Operations
10
+
11
+ module Models
12
+ ParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ParentGroupInfo
13
+ ErrorDetails = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ErrorDetails
14
+ ManagementGroupDetailsProperties = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupDetailsProperties
15
+ OperationDisplay = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::OperationDisplay
16
+ ManagementGroup = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroup
17
+ OperationListResult = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::OperationListResult
18
+ ManagementGroupChildInfo = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupChildInfo
19
+ ManagementGroupListResult = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupListResult
20
+ ManagementGroupWithChildren = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupWithChildren
21
+ Operation = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::Operation
22
+ ManagementGroupRecursiveChildInfo = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupRecursiveChildInfo
23
+ ErrorResponse = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ErrorResponse
24
+ ManagementGroupWithHierarchy = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupWithHierarchy
25
+ ManagementGroupInfo = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupInfo
26
+ end
27
+
28
+ #
29
+ # ResourcesManagement
30
+ #
31
+ class ResourcesManagementClass
32
+ attr_reader :management_groups, :operations, :configurable, :base_url, :options, :model_classes
33
+
34
+ def initialize(options = {})
35
+ if options.is_a?(Hash) && options.length == 0
36
+ @options = setup_options
37
+ else
38
+ @options = options
39
+ end
40
+
41
+ reset!(options)
42
+
43
+ @configurable, @base_url, @options = self, nil, nil
44
+
45
+ client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.new(configurable.credentials, base_url, options)
46
+ if(client_0.respond_to?(:subscription_id))
47
+ client_0.subscription_id = configurable.subscription_id
48
+ end
49
+ @management_groups = client_0.management_groups
50
+ @operations = client_0.operations
51
+
52
+ @model_classes = ModelClasses.new
53
+ end
54
+
55
+ class ModelClasses
56
+ def parent_group_info
57
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ParentGroupInfo
58
+ end
59
+ def error_details
60
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ErrorDetails
61
+ end
62
+ def management_group_details_properties
63
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupDetailsProperties
64
+ end
65
+ def operation_display
66
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::OperationDisplay
67
+ end
68
+ def management_group
69
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroup
70
+ end
71
+ def operation_list_result
72
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::OperationListResult
73
+ end
74
+ def management_group_child_info
75
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupChildInfo
76
+ end
77
+ def management_group_list_result
78
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupListResult
79
+ end
80
+ def management_group_with_children
81
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupWithChildren
82
+ end
83
+ def operation
84
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::Operation
85
+ end
86
+ def management_group_recursive_child_info
87
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupRecursiveChildInfo
88
+ end
89
+ def error_response
90
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ErrorResponse
91
+ end
92
+ def management_group_with_hierarchy
93
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupWithHierarchy
94
+ end
95
+ def management_group_info
96
+ Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ManagementGroupInfo
97
+ end
98
+ end
99
+ end
100
+ 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/resourcesmanagement_module_definition'
6
+ require 'profiles/latest/modules/resourcesmanagement_profile_module'
7
+ require 'profiles/common/configurable'
8
+ require 'profiles/common/default'
9
+
10
+ module Azure::ResourcesManagement::Profiles::Latest::Mgmt
11
+ #
12
+ # Client class for the Latest profile SDK.
13
+ #
14
+ class Client < ResourcesManagementClass
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::ResourcesManagement end
7
+ module Azure::ResourcesManagement::Profiles end
8
+ module Azure::ResourcesManagement::Profiles::Latest end
9
+ module Azure::ResourcesManagement::Profiles::Latest::Mgmt end
@@ -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::ResourcesManagement::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_resources_management
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
@@ -87,27 +87,34 @@ extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
89
  - LICENSE.txt
90
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management.rb
91
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb
92
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups_api.rb
93
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_details.rb
94
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/error_response.rb
95
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group.rb
96
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb
97
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_details_properties.rb
98
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_info.rb
99
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_list_result.rb
100
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb
101
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_children.rb
102
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb
103
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation.rb
104
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_display.rb
105
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/operation_list_result.rb
106
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/models/parent_group_info.rb
107
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/module_definition.rb
108
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb
109
+ - lib/2017-08-31-preview/generated/azure_mgmt_resources_management/version.rb
90
110
  - lib/azure_mgmt_resources_management.rb
91
- - lib/generated/azure_mgmt_resources_management.rb
92
- - lib/generated/azure_mgmt_resources_management/management_groups.rb
93
- - lib/generated/azure_mgmt_resources_management/management_groups_api.rb
94
- - lib/generated/azure_mgmt_resources_management/models/error_details.rb
95
- - lib/generated/azure_mgmt_resources_management/models/error_response.rb
96
- - lib/generated/azure_mgmt_resources_management/models/management_group.rb
97
- - lib/generated/azure_mgmt_resources_management/models/management_group_child_info.rb
98
- - lib/generated/azure_mgmt_resources_management/models/management_group_details_properties.rb
99
- - lib/generated/azure_mgmt_resources_management/models/management_group_info.rb
100
- - lib/generated/azure_mgmt_resources_management/models/management_group_list_result.rb
101
- - lib/generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb
102
- - lib/generated/azure_mgmt_resources_management/models/management_group_with_children.rb
103
- - lib/generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb
104
- - lib/generated/azure_mgmt_resources_management/models/operation.rb
105
- - lib/generated/azure_mgmt_resources_management/models/operation_display.rb
106
- - lib/generated/azure_mgmt_resources_management/models/operation_list_result.rb
107
- - lib/generated/azure_mgmt_resources_management/models/parent_group_info.rb
108
- - lib/generated/azure_mgmt_resources_management/module_definition.rb
109
- - lib/generated/azure_mgmt_resources_management/operations.rb
110
- - lib/generated/azure_mgmt_resources_management/version.rb
111
+ - lib/module_definition.rb
112
+ - lib/profiles/common/configurable.rb
113
+ - lib/profiles/common/default.rb
114
+ - lib/profiles/latest/modules/resourcesmanagement_profile_module.rb
115
+ - lib/profiles/latest/resourcesmanagement_latest_profile_client.rb
116
+ - lib/profiles/latest/resourcesmanagement_module_definition.rb
117
+ - lib/version.rb
111
118
  homepage: https://aka.ms/azure-sdk-for-ruby
112
119
  licenses:
113
120
  - MIT
@@ -1,43 +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_resources_management/module_definition'
20
- require 'ms_rest_azure'
21
-
22
- module Azure::ARM::ResourcesManagement
23
- autoload :ManagementGroups, 'generated/azure_mgmt_resources_management/management_groups.rb'
24
- autoload :Operations, 'generated/azure_mgmt_resources_management/operations.rb'
25
- autoload :ManagementGroupsAPI, 'generated/azure_mgmt_resources_management/management_groups_api.rb'
26
-
27
- module Models
28
- autoload :ParentGroupInfo, 'generated/azure_mgmt_resources_management/models/parent_group_info.rb'
29
- autoload :ErrorDetails, 'generated/azure_mgmt_resources_management/models/error_details.rb'
30
- autoload :ManagementGroupDetailsProperties, 'generated/azure_mgmt_resources_management/models/management_group_details_properties.rb'
31
- autoload :OperationDisplay, 'generated/azure_mgmt_resources_management/models/operation_display.rb'
32
- autoload :ManagementGroup, 'generated/azure_mgmt_resources_management/models/management_group.rb'
33
- autoload :OperationListResult, 'generated/azure_mgmt_resources_management/models/operation_list_result.rb'
34
- autoload :ManagementGroupChildInfo, 'generated/azure_mgmt_resources_management/models/management_group_child_info.rb'
35
- autoload :ManagementGroupListResult, 'generated/azure_mgmt_resources_management/models/management_group_list_result.rb'
36
- autoload :ManagementGroupWithChildren, 'generated/azure_mgmt_resources_management/models/management_group_with_children.rb'
37
- autoload :Operation, 'generated/azure_mgmt_resources_management/models/operation.rb'
38
- autoload :ManagementGroupRecursiveChildInfo, 'generated/azure_mgmt_resources_management/models/management_group_recursive_child_info.rb'
39
- autoload :ErrorResponse, 'generated/azure_mgmt_resources_management/models/error_response.rb'
40
- autoload :ManagementGroupWithHierarchy, 'generated/azure_mgmt_resources_management/models/management_group_with_hierarchy.rb'
41
- autoload :ManagementGroupInfo, 'generated/azure_mgmt_resources_management/models/management_group_info.rb'
42
- end
43
- end