azure_mgmt_advisor 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/advisor_management_client.rb +1 -1
  3. data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/operations.rb +4 -0
  4. data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/recommendations.rb +10 -0
  5. data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/suppressions.rb +8 -0
  6. data/lib/2017-03-31/generated/azure_mgmt_advisor/advisor_management_client.rb +1 -1
  7. data/lib/2017-03-31/generated/azure_mgmt_advisor/operations.rb +4 -0
  8. data/lib/2017-03-31/generated/azure_mgmt_advisor/recommendations.rb +10 -0
  9. data/lib/2017-03-31/generated/azure_mgmt_advisor/suppressions.rb +8 -0
  10. data/lib/2017-04-19/generated/azure_mgmt_advisor/advisor_management_client.rb +1 -1
  11. data/lib/2017-04-19/generated/azure_mgmt_advisor/configurations.rb +10 -0
  12. data/lib/2017-04-19/generated/azure_mgmt_advisor/operations.rb +4 -0
  13. data/lib/2017-04-19/generated/azure_mgmt_advisor/recommendations.rb +10 -0
  14. data/lib/2017-04-19/generated/azure_mgmt_advisor/suppressions.rb +10 -0
  15. data/lib/2020-01-01/generated/azure_mgmt_advisor.rb +56 -0
  16. data/lib/2020-01-01/generated/azure_mgmt_advisor/advisor_management_client.rb +148 -0
  17. data/lib/2020-01-01/generated/azure_mgmt_advisor/configurations.rb +547 -0
  18. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/arm_error_response.rb +48 -0
  19. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/armerror_response_body.rb +59 -0
  20. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/category.rb +19 -0
  21. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/config_data.rb +108 -0
  22. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/configuration_list_result.rb +98 -0
  23. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/cpu_threshold.rb +18 -0
  24. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/digest_config.rb +115 -0
  25. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/digest_config_state.rb +16 -0
  26. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/impact.rb +17 -0
  27. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_entity.rb +140 -0
  28. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_entity_list_result.rb +98 -0
  29. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_supported_value_detail.rb +57 -0
  30. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_display_info.rb +80 -0
  31. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_entity.rb +58 -0
  32. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_entity_list_result.rb +98 -0
  33. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource.rb +80 -0
  34. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_metadata.rb +57 -0
  35. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb +225 -0
  36. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_recommendation_base_list_result.rb +99 -0
  37. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/risk.rb +17 -0
  38. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/scenario.rb +15 -0
  39. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/short_description.rb +59 -0
  40. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/suppression_contract.rb +85 -0
  41. data/lib/2020-01-01/generated/azure_mgmt_advisor/models/suppression_contract_list_result.rb +98 -0
  42. data/lib/2020-01-01/generated/azure_mgmt_advisor/module_definition.rb +9 -0
  43. data/lib/2020-01-01/generated/azure_mgmt_advisor/operations.rb +219 -0
  44. data/lib/2020-01-01/generated/azure_mgmt_advisor/recommendation_metadata.rb +318 -0
  45. data/lib/2020-01-01/generated/azure_mgmt_advisor/recommendations.rb +513 -0
  46. data/lib/2020-01-01/generated/azure_mgmt_advisor/suppressions.rb +563 -0
  47. data/lib/azure_mgmt_advisor.rb +2 -1
  48. data/lib/profiles/latest/modules/advisor_profile_module.rb +80 -46
  49. data/lib/version.rb +1 -1
  50. metadata +37 -5
@@ -3,6 +3,7 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  require '2016-07-12-preview/generated/azure_mgmt_advisor'
6
- require '2017-03-31/generated/azure_mgmt_advisor'
7
6
  require '2017-04-19/generated/azure_mgmt_advisor'
7
+ require '2020-01-01/generated/azure_mgmt_advisor'
8
+ require '2017-03-31/generated/azure_mgmt_advisor'
8
9
  require 'profiles/latest/advisor_latest_profile_client'
@@ -6,35 +6,44 @@ require 'azure_mgmt_advisor'
6
6
 
7
7
  module Azure::Advisor::Profiles::Latest
8
8
  module Mgmt
9
- Configurations = Azure::Advisor::Mgmt::V2017_04_19::Configurations
10
- Recommendations = Azure::Advisor::Mgmt::V2017_04_19::Recommendations
11
- Operations = Azure::Advisor::Mgmt::V2017_04_19::Operations
12
- Suppressions = Azure::Advisor::Mgmt::V2017_04_19::Suppressions
9
+ RecommendationMetadata = Azure::Advisor::Mgmt::V2020_01_01::RecommendationMetadata
10
+ Configurations = Azure::Advisor::Mgmt::V2020_01_01::Configurations
11
+ Recommendations = Azure::Advisor::Mgmt::V2020_01_01::Recommendations
12
+ Operations = Azure::Advisor::Mgmt::V2020_01_01::Operations
13
+ Suppressions = Azure::Advisor::Mgmt::V2020_01_01::Suppressions
13
14
 
14
15
  module Models
15
- ResourceRecommendationBaseListResult = Azure::Advisor::Mgmt::V2017_04_19::Models::ResourceRecommendationBaseListResult
16
- Resource = Azure::Advisor::Mgmt::V2017_04_19::Models::Resource
17
- ConfigData = Azure::Advisor::Mgmt::V2017_04_19::Models::ConfigData
18
- OperationDisplayInfo = Azure::Advisor::Mgmt::V2017_04_19::Models::OperationDisplayInfo
19
- ARMErrorResponseBody = Azure::Advisor::Mgmt::V2017_04_19::Models::ARMErrorResponseBody
20
- OperationEntity = Azure::Advisor::Mgmt::V2017_04_19::Models::OperationEntity
21
- ShortDescription = Azure::Advisor::Mgmt::V2017_04_19::Models::ShortDescription
22
- ConfigurationListResult = Azure::Advisor::Mgmt::V2017_04_19::Models::ConfigurationListResult
23
- OperationEntityListResult = Azure::Advisor::Mgmt::V2017_04_19::Models::OperationEntityListResult
24
- ConfigDataProperties = Azure::Advisor::Mgmt::V2017_04_19::Models::ConfigDataProperties
25
- SuppressionContractListResult = Azure::Advisor::Mgmt::V2017_04_19::Models::SuppressionContractListResult
26
- ResourceRecommendationBase = Azure::Advisor::Mgmt::V2017_04_19::Models::ResourceRecommendationBase
27
- SuppressionContract = Azure::Advisor::Mgmt::V2017_04_19::Models::SuppressionContract
28
- Category = Azure::Advisor::Mgmt::V2017_04_19::Models::Category
29
- Impact = Azure::Advisor::Mgmt::V2017_04_19::Models::Impact
30
- Risk = Azure::Advisor::Mgmt::V2017_04_19::Models::Risk
16
+ ResourceMetadata = Azure::Advisor::Mgmt::V2020_01_01::Models::ResourceMetadata
17
+ MetadataSupportedValueDetail = Azure::Advisor::Mgmt::V2020_01_01::Models::MetadataSupportedValueDetail
18
+ MetadataEntity = Azure::Advisor::Mgmt::V2020_01_01::Models::MetadataEntity
19
+ MetadataEntityListResult = Azure::Advisor::Mgmt::V2020_01_01::Models::MetadataEntityListResult
20
+ SuppressionContractListResult = Azure::Advisor::Mgmt::V2020_01_01::Models::SuppressionContractListResult
21
+ ConfigurationListResult = Azure::Advisor::Mgmt::V2020_01_01::Models::ConfigurationListResult
22
+ ResourceRecommendationBaseListResult = Azure::Advisor::Mgmt::V2020_01_01::Models::ResourceRecommendationBaseListResult
23
+ ArmErrorResponse = Azure::Advisor::Mgmt::V2020_01_01::Models::ArmErrorResponse
24
+ Resource = Azure::Advisor::Mgmt::V2020_01_01::Models::Resource
25
+ DigestConfig = Azure::Advisor::Mgmt::V2020_01_01::Models::DigestConfig
26
+ OperationDisplayInfo = Azure::Advisor::Mgmt::V2020_01_01::Models::OperationDisplayInfo
27
+ ShortDescription = Azure::Advisor::Mgmt::V2020_01_01::Models::ShortDescription
28
+ OperationEntity = Azure::Advisor::Mgmt::V2020_01_01::Models::OperationEntity
29
+ ARMErrorResponseBody = Azure::Advisor::Mgmt::V2020_01_01::Models::ARMErrorResponseBody
30
+ OperationEntityListResult = Azure::Advisor::Mgmt::V2020_01_01::Models::OperationEntityListResult
31
+ ConfigData = Azure::Advisor::Mgmt::V2020_01_01::Models::ConfigData
32
+ ResourceRecommendationBase = Azure::Advisor::Mgmt::V2020_01_01::Models::ResourceRecommendationBase
33
+ SuppressionContract = Azure::Advisor::Mgmt::V2020_01_01::Models::SuppressionContract
34
+ Scenario = Azure::Advisor::Mgmt::V2020_01_01::Models::Scenario
35
+ CpuThreshold = Azure::Advisor::Mgmt::V2020_01_01::Models::CpuThreshold
36
+ Category = Azure::Advisor::Mgmt::V2020_01_01::Models::Category
37
+ DigestConfigState = Azure::Advisor::Mgmt::V2020_01_01::Models::DigestConfigState
38
+ Impact = Azure::Advisor::Mgmt::V2020_01_01::Models::Impact
39
+ Risk = Azure::Advisor::Mgmt::V2020_01_01::Models::Risk
31
40
  end
32
41
 
33
42
  #
34
43
  # AdvisorManagementClass
35
44
  #
36
45
  class AdvisorManagementClass
37
- attr_reader :configurations, :recommendations, :operations, :suppressions, :configurable, :base_url, :options, :model_classes
46
+ attr_reader :recommendation_metadata, :configurations, :recommendations, :operations, :suppressions, :configurable, :base_url, :options, :model_classes
38
47
 
39
48
  def initialize(options = {})
40
49
  if options.is_a?(Hash) && options.length == 0
@@ -49,11 +58,12 @@ module Azure::Advisor::Profiles::Latest
49
58
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
50
59
  @options = options[:options].nil? ? nil:options[:options]
51
60
 
52
- @client_0 = Azure::Advisor::Mgmt::V2017_04_19::AdvisorManagementClient.new(configurable.credentials, base_url, options)
61
+ @client_0 = Azure::Advisor::Mgmt::V2020_01_01::AdvisorManagementClient.new(configurable.credentials, base_url, options)
53
62
  if(@client_0.respond_to?(:subscription_id))
54
63
  @client_0.subscription_id = configurable.subscription_id
55
64
  end
56
65
  add_telemetry(@client_0)
66
+ @recommendation_metadata = @client_0.recommendation_metadata
57
67
  @configurations = @client_0.configurations
58
68
  @recommendations = @client_0.recommendations
59
69
  @operations = @client_0.operations
@@ -78,53 +88,77 @@ module Azure::Advisor::Profiles::Latest
78
88
  end
79
89
 
80
90
  class ModelClasses
91
+ def resource_metadata
92
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ResourceMetadata
93
+ end
94
+ def metadata_supported_value_detail
95
+ Azure::Advisor::Mgmt::V2020_01_01::Models::MetadataSupportedValueDetail
96
+ end
97
+ def metadata_entity
98
+ Azure::Advisor::Mgmt::V2020_01_01::Models::MetadataEntity
99
+ end
100
+ def metadata_entity_list_result
101
+ Azure::Advisor::Mgmt::V2020_01_01::Models::MetadataEntityListResult
102
+ end
103
+ def suppression_contract_list_result
104
+ Azure::Advisor::Mgmt::V2020_01_01::Models::SuppressionContractListResult
105
+ end
106
+ def configuration_list_result
107
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ConfigurationListResult
108
+ end
81
109
  def resource_recommendation_base_list_result
82
- Azure::Advisor::Mgmt::V2017_04_19::Models::ResourceRecommendationBaseListResult
110
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ResourceRecommendationBaseListResult
111
+ end
112
+ def arm_error_response
113
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ArmErrorResponse
83
114
  end
84
115
  def resource
85
- Azure::Advisor::Mgmt::V2017_04_19::Models::Resource
116
+ Azure::Advisor::Mgmt::V2020_01_01::Models::Resource
86
117
  end
87
- def config_data
88
- Azure::Advisor::Mgmt::V2017_04_19::Models::ConfigData
118
+ def digest_config
119
+ Azure::Advisor::Mgmt::V2020_01_01::Models::DigestConfig
89
120
  end
90
121
  def operation_display_info
91
- Azure::Advisor::Mgmt::V2017_04_19::Models::OperationDisplayInfo
122
+ Azure::Advisor::Mgmt::V2020_01_01::Models::OperationDisplayInfo
92
123
  end
93
- def armerror_response_body
94
- Azure::Advisor::Mgmt::V2017_04_19::Models::ARMErrorResponseBody
124
+ def short_description
125
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ShortDescription
95
126
  end
96
127
  def operation_entity
97
- Azure::Advisor::Mgmt::V2017_04_19::Models::OperationEntity
98
- end
99
- def short_description
100
- Azure::Advisor::Mgmt::V2017_04_19::Models::ShortDescription
128
+ Azure::Advisor::Mgmt::V2020_01_01::Models::OperationEntity
101
129
  end
102
- def configuration_list_result
103
- Azure::Advisor::Mgmt::V2017_04_19::Models::ConfigurationListResult
130
+ def armerror_response_body
131
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ARMErrorResponseBody
104
132
  end
105
133
  def operation_entity_list_result
106
- Azure::Advisor::Mgmt::V2017_04_19::Models::OperationEntityListResult
107
- end
108
- def config_data_properties
109
- Azure::Advisor::Mgmt::V2017_04_19::Models::ConfigDataProperties
134
+ Azure::Advisor::Mgmt::V2020_01_01::Models::OperationEntityListResult
110
135
  end
111
- def suppression_contract_list_result
112
- Azure::Advisor::Mgmt::V2017_04_19::Models::SuppressionContractListResult
136
+ def config_data
137
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ConfigData
113
138
  end
114
139
  def resource_recommendation_base
115
- Azure::Advisor::Mgmt::V2017_04_19::Models::ResourceRecommendationBase
140
+ Azure::Advisor::Mgmt::V2020_01_01::Models::ResourceRecommendationBase
116
141
  end
117
142
  def suppression_contract
118
- Azure::Advisor::Mgmt::V2017_04_19::Models::SuppressionContract
143
+ Azure::Advisor::Mgmt::V2020_01_01::Models::SuppressionContract
144
+ end
145
+ def scenario
146
+ Azure::Advisor::Mgmt::V2020_01_01::Models::Scenario
147
+ end
148
+ def cpu_threshold
149
+ Azure::Advisor::Mgmt::V2020_01_01::Models::CpuThreshold
119
150
  end
120
151
  def category
121
- Azure::Advisor::Mgmt::V2017_04_19::Models::Category
152
+ Azure::Advisor::Mgmt::V2020_01_01::Models::Category
153
+ end
154
+ def digest_config_state
155
+ Azure::Advisor::Mgmt::V2020_01_01::Models::DigestConfigState
122
156
  end
123
157
  def impact
124
- Azure::Advisor::Mgmt::V2017_04_19::Models::Impact
158
+ Azure::Advisor::Mgmt::V2020_01_01::Models::Impact
125
159
  end
126
160
  def risk
127
- Azure::Advisor::Mgmt::V2017_04_19::Models::Risk
161
+ Azure::Advisor::Mgmt::V2020_01_01::Models::Risk
128
162
  end
129
163
  end
130
164
  end
data/lib/version.rb CHANGED
@@ -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::Advisor::Mgmt
6
- VERSION = '0.17.0'
6
+ VERSION = '0.17.1'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_advisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2020-03-20 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.11.0
75
+ version: 0.11.1
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.11.0
82
+ version: 0.11.1
83
83
  description: Microsoft Azure Advisor Services Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -144,6 +144,38 @@ files:
144
144
  - lib/2017-04-19/generated/azure_mgmt_advisor/operations.rb
145
145
  - lib/2017-04-19/generated/azure_mgmt_advisor/recommendations.rb
146
146
  - lib/2017-04-19/generated/azure_mgmt_advisor/suppressions.rb
147
+ - lib/2020-01-01/generated/azure_mgmt_advisor.rb
148
+ - lib/2020-01-01/generated/azure_mgmt_advisor/advisor_management_client.rb
149
+ - lib/2020-01-01/generated/azure_mgmt_advisor/configurations.rb
150
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/arm_error_response.rb
151
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/armerror_response_body.rb
152
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/category.rb
153
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/config_data.rb
154
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/configuration_list_result.rb
155
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/cpu_threshold.rb
156
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/digest_config.rb
157
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/digest_config_state.rb
158
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/impact.rb
159
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_entity.rb
160
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_entity_list_result.rb
161
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_supported_value_detail.rb
162
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_display_info.rb
163
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_entity.rb
164
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_entity_list_result.rb
165
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/resource.rb
166
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_metadata.rb
167
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb
168
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_recommendation_base_list_result.rb
169
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/risk.rb
170
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/scenario.rb
171
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/short_description.rb
172
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/suppression_contract.rb
173
+ - lib/2020-01-01/generated/azure_mgmt_advisor/models/suppression_contract_list_result.rb
174
+ - lib/2020-01-01/generated/azure_mgmt_advisor/module_definition.rb
175
+ - lib/2020-01-01/generated/azure_mgmt_advisor/operations.rb
176
+ - lib/2020-01-01/generated/azure_mgmt_advisor/recommendation_metadata.rb
177
+ - lib/2020-01-01/generated/azure_mgmt_advisor/recommendations.rb
178
+ - lib/2020-01-01/generated/azure_mgmt_advisor/suppressions.rb
147
179
  - lib/azure_mgmt_advisor.rb
148
180
  - lib/module_definition.rb
149
181
  - lib/profiles/latest/advisor_latest_profile_client.rb
@@ -175,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
207
  version: '0'
176
208
  requirements: []
177
209
  rubyforge_project:
178
- rubygems_version: 2.5.1
210
+ rubygems_version: 2.7.8
179
211
  signing_key:
180
212
  specification_version: 4
181
213
  summary: Official Ruby client library to consume Microsoft Azure Advisor services.