azure_mgmt_features 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.
- checksums.yaml +4 -4
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features.rb +7 -7
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/feature_client.rb +3 -3
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/features.rb +7 -7
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/models/feature_operations_list_result.rb +1 -1
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/models/feature_properties.rb +1 -1
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/models/feature_result.rb +1 -1
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/module_definition.rb +3 -2
- data/lib/{generated → 2015-12-01/generated}/azure_mgmt_features/version.rb +2 -2
- data/lib/azure_mgmt_features.rb +3 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/features_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/features_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/features_profile_module.rb +54 -0
- data/lib/profiles/v2017_03_09/features_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/features_v2017_03_09_profile_client.rb +33 -0
- data/lib/profiles/v2017_03_09/modules/features_profile_module.rb +54 -0
- data/lib/version.rb +7 -0
- metadata +20 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85b7c7f9d09d2d9d90244ba6c179ca2ed326b94e
|
4
|
+
data.tar.gz: 1ce9d4788988e99dee9cf98e4f7b09af138cc991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2fb148dd0605fe6beb2064acbf6224e7552ac740604d527519f715cc7d999c7aa7b7142a0088fdefdc5ee375160df13720dab2d3b3b457b604c062e52cc6ee4
|
7
|
+
data.tar.gz: 3f6d07936060a7677f03525786694ae251042321f7ddbd22da9f71fa4a621d51299399456979e503e7545277491e6127b87258ec4fccbccc92ceafd08ed90b81
|
@@ -16,16 +16,16 @@ require 'faraday'
|
|
16
16
|
require 'faraday-cookie_jar'
|
17
17
|
require 'concurrent'
|
18
18
|
require 'ms_rest'
|
19
|
-
require 'generated/azure_mgmt_features/module_definition'
|
19
|
+
require '2015-12-01/generated/azure_mgmt_features/module_definition'
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
|
-
module Azure::
|
23
|
-
autoload :Features, 'generated/azure_mgmt_features/features.rb'
|
24
|
-
autoload :FeatureClient, 'generated/azure_mgmt_features/feature_client.rb'
|
22
|
+
module Azure::Features::Mgmt::V2015_12_01
|
23
|
+
autoload :Features, '2015-12-01/generated/azure_mgmt_features/features.rb'
|
24
|
+
autoload :FeatureClient, '2015-12-01/generated/azure_mgmt_features/feature_client.rb'
|
25
25
|
|
26
26
|
module Models
|
27
|
-
autoload :FeatureResult, 'generated/azure_mgmt_features/models/feature_result.rb'
|
28
|
-
autoload :FeatureOperationsListResult, 'generated/azure_mgmt_features/models/feature_operations_list_result.rb'
|
29
|
-
autoload :FeatureProperties, 'generated/azure_mgmt_features/models/feature_properties.rb'
|
27
|
+
autoload :FeatureResult, '2015-12-01/generated/azure_mgmt_features/models/feature_result.rb'
|
28
|
+
autoload :FeatureOperationsListResult, '2015-12-01/generated/azure_mgmt_features/models/feature_operations_list_result.rb'
|
29
|
+
autoload :FeatureProperties, '2015-12-01/generated/azure_mgmt_features/models/feature_properties.rb'
|
30
30
|
end
|
31
31
|
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::
|
6
|
+
module Azure::Features::Mgmt::V2015_12_01
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
@@ -120,8 +120,8 @@ module Azure::ARM::Features
|
|
120
120
|
#
|
121
121
|
def add_telemetry
|
122
122
|
sdk_information = 'azure_mgmt_features'
|
123
|
-
if defined? Azure::
|
124
|
-
sdk_information = "#{sdk_information}/#{Azure::
|
123
|
+
if defined? Azure::Features::Mgmt::V2015_12_01::VERSION
|
124
|
+
sdk_information = "#{sdk_information}/#{Azure::Features::Mgmt::V2015_12_01::VERSION}"
|
125
125
|
end
|
126
126
|
add_user_agent_information(sdk_information)
|
127
127
|
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::
|
6
|
+
module Azure::Features::Mgmt::V2015_12_01
|
7
7
|
#
|
8
8
|
# Azure Feature Exposure Control (AFEC) provides a mechanism for the resource
|
9
9
|
# providers to control feature exposure to users. Resource providers
|
@@ -98,7 +98,7 @@ module Azure::ARM::Features
|
|
98
98
|
if status_code == 200
|
99
99
|
begin
|
100
100
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
-
result_mapper = Azure::
|
101
|
+
result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult.mapper()
|
102
102
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
103
103
|
rescue Exception => e
|
104
104
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -191,7 +191,7 @@ module Azure::ARM::Features
|
|
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::
|
194
|
+
result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult.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)
|
@@ -285,7 +285,7 @@ module Azure::ARM::Features
|
|
285
285
|
if status_code == 200
|
286
286
|
begin
|
287
287
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
288
|
-
result_mapper = Azure::
|
288
|
+
result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult.mapper()
|
289
289
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
290
290
|
rescue Exception => e
|
291
291
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -379,7 +379,7 @@ module Azure::ARM::Features
|
|
379
379
|
if status_code == 200
|
380
380
|
begin
|
381
381
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
382
|
-
result_mapper = Azure::
|
382
|
+
result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult.mapper()
|
383
383
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
384
384
|
rescue Exception => e
|
385
385
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -469,7 +469,7 @@ module Azure::ARM::Features
|
|
469
469
|
if status_code == 200
|
470
470
|
begin
|
471
471
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
472
|
-
result_mapper = Azure::
|
472
|
+
result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult.mapper()
|
473
473
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
474
474
|
rescue Exception => e
|
475
475
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -559,7 +559,7 @@ module Azure::ARM::Features
|
|
559
559
|
if status_code == 200
|
560
560
|
begin
|
561
561
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
562
|
-
result_mapper = Azure::
|
562
|
+
result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult.mapper()
|
563
563
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
564
564
|
rescue Exception => e
|
565
565
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
data/lib/azure_mgmt_features.rb
CHANGED
@@ -2,4 +2,6 @@
|
|
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_features'
|
5
|
+
require '2015-12-01/generated/azure_mgmt_features'
|
6
|
+
require 'profiles/latest/features_latest_profile_client'
|
7
|
+
require 'profiles/v2017_03_09/features_v2017_03_09_profile_client'
|
@@ -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/features_module_definition'
|
6
|
+
require 'profiles/latest/modules/features_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::Features::Profiles::Latest::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the Latest profile SDK.
|
13
|
+
#
|
14
|
+
class Client < FeaturesClass
|
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::Features end
|
7
|
+
module Azure::Features::Profiles end
|
8
|
+
module Azure::Features::Profiles::Latest end
|
9
|
+
module Azure::Features::Profiles::Latest::Mgmt end
|
@@ -0,0 +1,54 @@
|
|
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_features'
|
6
|
+
|
7
|
+
module Azure::Features::Profiles::Latest::Mgmt
|
8
|
+
Features = Azure::Features::Mgmt::V2015_12_01::Features
|
9
|
+
|
10
|
+
module Models
|
11
|
+
FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
|
12
|
+
FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
|
13
|
+
FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# Features
|
18
|
+
#
|
19
|
+
class FeaturesClass
|
20
|
+
attr_reader :features, :configurable, :base_url, :options, :model_classes
|
21
|
+
|
22
|
+
def initialize(options = {})
|
23
|
+
if options.is_a?(Hash) && options.length == 0
|
24
|
+
@options = setup_options
|
25
|
+
else
|
26
|
+
@options = options
|
27
|
+
end
|
28
|
+
|
29
|
+
reset!(options)
|
30
|
+
|
31
|
+
@configurable, @base_url, @options = self, nil, nil
|
32
|
+
|
33
|
+
client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
|
34
|
+
if(client_0.respond_to?(:subscription_id))
|
35
|
+
client_0.subscription_id = configurable.subscription_id
|
36
|
+
end
|
37
|
+
@features = client_0.features
|
38
|
+
|
39
|
+
@model_classes = ModelClasses.new
|
40
|
+
end
|
41
|
+
|
42
|
+
class ModelClasses
|
43
|
+
def feature_result
|
44
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
|
45
|
+
end
|
46
|
+
def feature_operations_list_result
|
47
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
|
48
|
+
end
|
49
|
+
def feature_properties
|
50
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
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::Features end
|
7
|
+
module Azure::Features::Profiles end
|
8
|
+
module Azure::Features::Profiles::V2017_03_09 end
|
9
|
+
module Azure::Features::Profiles::V2017_03_09::Mgmt 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/v2017_03_09/features_module_definition'
|
6
|
+
require 'profiles/v2017_03_09/modules/features_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::Features::Profiles::V2017_03_09::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the V2017_03_09 profile SDK.
|
13
|
+
#
|
14
|
+
class Client < FeaturesClass
|
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,54 @@
|
|
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_features'
|
6
|
+
|
7
|
+
module Azure::Features::Profiles::V2017_03_09::Mgmt
|
8
|
+
Features = Azure::Features::Mgmt::V2015_12_01::Features
|
9
|
+
|
10
|
+
module Models
|
11
|
+
FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
|
12
|
+
FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
|
13
|
+
FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
# Features
|
18
|
+
#
|
19
|
+
class FeaturesClass
|
20
|
+
attr_reader :features, :configurable, :base_url, :options, :model_classes
|
21
|
+
|
22
|
+
def initialize(options = {})
|
23
|
+
if options.is_a?(Hash) && options.length == 0
|
24
|
+
@options = setup_options
|
25
|
+
else
|
26
|
+
@options = options
|
27
|
+
end
|
28
|
+
|
29
|
+
reset!(options)
|
30
|
+
|
31
|
+
@configurable, @base_url, @options = self, nil, nil
|
32
|
+
|
33
|
+
client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
|
34
|
+
if(client_0.respond_to?(:subscription_id))
|
35
|
+
client_0.subscription_id = configurable.subscription_id
|
36
|
+
end
|
37
|
+
@features = client_0.features
|
38
|
+
|
39
|
+
@model_classes = ModelClasses.new
|
40
|
+
end
|
41
|
+
|
42
|
+
class ModelClasses
|
43
|
+
def feature_result
|
44
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
|
45
|
+
end
|
46
|
+
def feature_operations_list_result
|
47
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
|
48
|
+
end
|
49
|
+
def feature_properties
|
50
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
data/lib/version.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,15 +88,25 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- LICENSE.txt
|
91
|
+
- lib/2015-12-01/generated/azure_mgmt_features.rb
|
92
|
+
- lib/2015-12-01/generated/azure_mgmt_features/feature_client.rb
|
93
|
+
- lib/2015-12-01/generated/azure_mgmt_features/features.rb
|
94
|
+
- lib/2015-12-01/generated/azure_mgmt_features/models/feature_operations_list_result.rb
|
95
|
+
- lib/2015-12-01/generated/azure_mgmt_features/models/feature_properties.rb
|
96
|
+
- lib/2015-12-01/generated/azure_mgmt_features/models/feature_result.rb
|
97
|
+
- lib/2015-12-01/generated/azure_mgmt_features/module_definition.rb
|
98
|
+
- lib/2015-12-01/generated/azure_mgmt_features/version.rb
|
91
99
|
- lib/azure_mgmt_features.rb
|
92
|
-
- lib/
|
93
|
-
- lib/
|
94
|
-
- lib/
|
95
|
-
- lib/
|
96
|
-
- lib/
|
97
|
-
- lib/
|
98
|
-
- lib/
|
99
|
-
- lib/
|
100
|
+
- lib/module_definition.rb
|
101
|
+
- lib/profiles/common/configurable.rb
|
102
|
+
- lib/profiles/common/default.rb
|
103
|
+
- lib/profiles/latest/features_latest_profile_client.rb
|
104
|
+
- lib/profiles/latest/features_module_definition.rb
|
105
|
+
- lib/profiles/latest/modules/features_profile_module.rb
|
106
|
+
- lib/profiles/v2017_03_09/features_module_definition.rb
|
107
|
+
- lib/profiles/v2017_03_09/features_v2017_03_09_profile_client.rb
|
108
|
+
- lib/profiles/v2017_03_09/modules/features_profile_module.rb
|
109
|
+
- lib/version.rb
|
100
110
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
101
111
|
licenses:
|
102
112
|
- MIT
|