azure_mgmt_features 0.15.1 → 0.15.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55f6561540ccc9b59739ddac8a22acda065fc888
4
- data.tar.gz: cae5d0bd4f8d5831af5701542e6392de3e1de6a6
3
+ metadata.gz: 9f7fed8bb0fd5dec0f14d9811efff31846a7f061
4
+ data.tar.gz: c9fd4280b643759f7df56e1a21c6dbcdcbba3741
5
5
  SHA512:
6
- metadata.gz: 95af30a137a0b7f9ae693e35c54b291b6824aa3abd09bd2be68d02526b0840eb499dc44635b29670fbde01bec9ab88ef7f85cb4c890c6ee5aa7ac9dc67f0fedd
7
- data.tar.gz: 5c23e0b8a1021f185d229a335cc8c8e7f9db75bad72c102088d1dce859c339803cdda9cff492ecc5f42955dd98ba330d9ae046b7f11048485a68215f4a1adebb
6
+ metadata.gz: fabbfc56ea24e82d02b89b2f2aec5b3cc6a10eb8ab0ed40851352cbef7b27d4528342e792e75f1440e6f1506238f3defd009ab5f7839875d013bba4451bd3df3
7
+ data.tar.gz: 243716c9aea1ee51ed44cda9a979a50c110748ac5ddd9e3b029cf9965623a1f5cf9e618ea41d462f76f1120b644cd58df308889bd29380ffd1c08f57a2e78fc5
@@ -120,9 +120,7 @@ module Azure::Features::Mgmt::V2015_12_01
120
120
  #
121
121
  def add_telemetry
122
122
  sdk_information = 'azure_mgmt_features'
123
- if defined? Azure::Features::Mgmt::V2015_12_01::VERSION
124
- sdk_information = "#{sdk_information}/#{Azure::Features::Mgmt::V2015_12_01::VERSION}"
125
- end
123
+ sdk_information = "#{sdk_information}/0.15.2"
126
124
  add_user_agent_information(sdk_information)
127
125
  end
128
126
  end
@@ -57,6 +57,7 @@ module Azure::Features::Mgmt::V2015_12_01
57
57
  #
58
58
  def self.mapper()
59
59
  {
60
+ client_side_validation: true,
60
61
  required: false,
61
62
  serialized_name: 'FeatureOperationsListResult',
62
63
  type: {
@@ -64,11 +65,13 @@ module Azure::Features::Mgmt::V2015_12_01
64
65
  class_name: 'FeatureOperationsListResult',
65
66
  model_properties: {
66
67
  value: {
68
+ client_side_validation: true,
67
69
  required: false,
68
70
  serialized_name: 'value',
69
71
  type: {
70
72
  name: 'Sequence',
71
73
  element: {
74
+ client_side_validation: true,
72
75
  required: false,
73
76
  serialized_name: 'FeatureResultElementType',
74
77
  type: {
@@ -79,6 +82,7 @@ module Azure::Features::Mgmt::V2015_12_01
79
82
  }
80
83
  },
81
84
  next_link: {
85
+ client_side_validation: true,
82
86
  required: false,
83
87
  serialized_name: 'nextLink',
84
88
  type: {
@@ -23,6 +23,7 @@ module Azure::Features::Mgmt::V2015_12_01
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'FeatureProperties',
28
29
  type: {
@@ -30,6 +31,7 @@ module Azure::Features::Mgmt::V2015_12_01
30
31
  class_name: 'FeatureProperties',
31
32
  model_properties: {
32
33
  state: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'state',
35
37
  type: {
@@ -31,6 +31,7 @@ module Azure::Features::Mgmt::V2015_12_01
31
31
  #
32
32
  def self.mapper()
33
33
  {
34
+ client_side_validation: true,
34
35
  required: false,
35
36
  serialized_name: 'FeatureResult',
36
37
  type: {
@@ -38,6 +39,7 @@ module Azure::Features::Mgmt::V2015_12_01
38
39
  class_name: 'FeatureResult',
39
40
  model_properties: {
40
41
  name: {
42
+ client_side_validation: true,
41
43
  required: false,
42
44
  serialized_name: 'name',
43
45
  type: {
@@ -45,6 +47,7 @@ module Azure::Features::Mgmt::V2015_12_01
45
47
  }
46
48
  },
47
49
  properties: {
50
+ client_side_validation: true,
48
51
  required: false,
49
52
  serialized_name: 'properties',
50
53
  type: {
@@ -53,6 +56,7 @@ module Azure::Features::Mgmt::V2015_12_01
53
56
  }
54
57
  },
55
58
  id: {
59
+ client_side_validation: true,
56
60
  required: false,
57
61
  serialized_name: 'id',
58
62
  type: {
@@ -60,6 +64,7 @@ module Azure::Features::Mgmt::V2015_12_01
60
64
  }
61
65
  },
62
66
  type: {
67
+ client_side_validation: true,
63
68
  required: false,
64
69
  serialized_name: 'type',
65
70
  type: {
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/features_module_definition'
6
6
  require 'profiles/latest/modules/features_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Features::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < FeaturesClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/v2017_03_09/features_module_definition'
6
6
  require 'profiles/v2017_03_09/modules/features_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Features::Profiles::V2017_03_09::Mgmt
11
9
  #
12
10
  # Client class for the V2017_03_09 profile SDK.
13
11
  #
14
12
  class Client < FeaturesClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Features::Mgmt
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.2'
7
7
  end
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.15.1
4
+ version: 0.15.2
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-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.9.0
75
+ version: 0.10.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Resource Provider Feature Management Client Library for
84
84
  Ruby
85
85
  email: azrubyteam@microsoft.com
@@ -95,11 +95,8 @@ files:
95
95
  - lib/2015-12-01/generated/azure_mgmt_features/models/feature_properties.rb
96
96
  - lib/2015-12-01/generated/azure_mgmt_features/models/feature_result.rb
97
97
  - lib/2015-12-01/generated/azure_mgmt_features/module_definition.rb
98
- - lib/2015-12-01/generated/azure_mgmt_features/version.rb
99
98
  - lib/azure_mgmt_features.rb
100
99
  - lib/module_definition.rb
101
- - lib/profiles/common/configurable.rb
102
- - lib/profiles/common/default.rb
103
100
  - lib/profiles/latest/features_latest_profile_client.rb
104
101
  - lib/profiles/latest/features_module_definition.rb
105
102
  - lib/profiles/latest/modules/features_profile_module.rb
@@ -110,7 +107,12 @@ files:
110
107
  homepage: https://aka.ms/azure-sdk-for-ruby
111
108
  licenses:
112
109
  - MIT
113
- metadata: {}
110
+ metadata:
111
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
112
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
113
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
114
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
115
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_features
114
116
  post_install_message:
115
117
  rdoc_options: []
116
118
  require_paths:
@@ -1,8 +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
- module Azure::Features::Mgmt::V2015_12_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
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::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure 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::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
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::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end
@@ -1,57 +0,0 @@
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::Common
6
- module Default
7
- class << self
8
- #
9
- # Default Azure Tenant Id.
10
- # @return [String] Azure Tenant Id.
11
- #
12
- def tenant_id
13
- ENV['AZURE_TENANT_ID']
14
- end
15
-
16
- #
17
- # Default Azure Client Id.
18
- # @return [String] Azure Client Id.
19
- #
20
- def client_id
21
- ENV['AZURE_CLIENT_ID']
22
- end
23
-
24
- #
25
- # Default Azure Client Secret.
26
- # @return [String] Azure Client Secret.
27
- #
28
- def client_secret
29
- ENV['AZURE_CLIENT_SECRET']
30
- end
31
-
32
- #
33
- # Default Azure Subscription Id.
34
- # @return [String] Azure Subscription Id.
35
- #
36
- def subscription_id
37
- ENV['AZURE_SUBSCRIPTION_ID']
38
- end
39
-
40
- #
41
- # Default Azure Active Directory Service Settings.
42
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
43
- #
44
- def active_directory_settings
45
- MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
46
- end
47
-
48
- #
49
- # Configuration options.
50
- # @return [Hash] Configuration options.
51
- #
52
- def options
53
- Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
54
- end
55
- end
56
- end
57
- end