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.
- checksums.yaml +5 -5
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/advisor_management_client.rb +1 -1
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/operations.rb +4 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/recommendations.rb +10 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/suppressions.rb +8 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/advisor_management_client.rb +1 -1
- data/lib/2017-03-31/generated/azure_mgmt_advisor/operations.rb +4 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/recommendations.rb +10 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/suppressions.rb +8 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/advisor_management_client.rb +1 -1
- data/lib/2017-04-19/generated/azure_mgmt_advisor/configurations.rb +10 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/operations.rb +4 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/recommendations.rb +10 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/suppressions.rb +10 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor.rb +56 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/advisor_management_client.rb +148 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/configurations.rb +547 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/arm_error_response.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/armerror_response_body.rb +59 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/category.rb +19 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/config_data.rb +108 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/configuration_list_result.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/cpu_threshold.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/digest_config.rb +115 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/digest_config_state.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/impact.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_entity.rb +140 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_entity_list_result.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/metadata_supported_value_detail.rb +57 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_display_info.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_entity.rb +58 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/operation_entity_list_result.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_metadata.rb +57 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb +225 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/resource_recommendation_base_list_result.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/risk.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/scenario.rb +15 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/short_description.rb +59 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/suppression_contract.rb +85 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/models/suppression_contract_list_result.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/module_definition.rb +9 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/operations.rb +219 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/recommendation_metadata.rb +318 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/recommendations.rb +513 -0
- data/lib/2020-01-01/generated/azure_mgmt_advisor/suppressions.rb +563 -0
- data/lib/azure_mgmt_advisor.rb +2 -1
- data/lib/profiles/latest/modules/advisor_profile_module.rb +80 -46
- data/lib/version.rb +1 -1
- metadata +37 -5
@@ -0,0 +1,16 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for DigestConfigState
|
10
|
+
#
|
11
|
+
module DigestConfigState
|
12
|
+
Active = "Active"
|
13
|
+
Disabled = "Disabled"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for Impact
|
10
|
+
#
|
11
|
+
module Impact
|
12
|
+
High = "High"
|
13
|
+
Medium = "Medium"
|
14
|
+
Low = "Low"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,140 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The metadata entity contract.
|
10
|
+
#
|
11
|
+
class MetadataEntity
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The resource Id of the metadata entity.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The type of the metadata entity.
|
19
|
+
attr_accessor :type
|
20
|
+
|
21
|
+
# @return [String] The name of the metadata entity.
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
# @return [String] The display name.
|
25
|
+
attr_accessor :display_name
|
26
|
+
|
27
|
+
# @return [Array<String>] The list of keys on which this entity depends
|
28
|
+
# on.
|
29
|
+
attr_accessor :depends_on
|
30
|
+
|
31
|
+
# @return [Array<Scenario>] The list of scenarios applicable to this
|
32
|
+
# metadata entity.
|
33
|
+
attr_accessor :applicable_scenarios
|
34
|
+
|
35
|
+
# @return [Array<MetadataSupportedValueDetail>] The list of supported
|
36
|
+
# values.
|
37
|
+
attr_accessor :supported_values
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
# Mapper for MetadataEntity class as Ruby Hash.
|
42
|
+
# This will be used for serialization/deserialization.
|
43
|
+
#
|
44
|
+
def self.mapper()
|
45
|
+
{
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'MetadataEntity',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'MetadataEntity',
|
52
|
+
model_properties: {
|
53
|
+
id: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'id',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'type',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
name: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'name',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
display_name: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'properties.displayName',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
depends_on: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'properties.dependsOn',
|
89
|
+
type: {
|
90
|
+
name: 'Sequence',
|
91
|
+
element: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'StringElementType',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
applicable_scenarios: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'properties.applicableScenarios',
|
105
|
+
type: {
|
106
|
+
name: 'Sequence',
|
107
|
+
element: {
|
108
|
+
client_side_validation: true,
|
109
|
+
required: false,
|
110
|
+
serialized_name: 'ScenarioElementType',
|
111
|
+
type: {
|
112
|
+
name: 'String'
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
supported_values: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
serialized_name: 'properties.supportedValues',
|
121
|
+
type: {
|
122
|
+
name: 'Sequence',
|
123
|
+
element: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'MetadataSupportedValueDetailElementType',
|
127
|
+
type: {
|
128
|
+
name: 'Composite',
|
129
|
+
class_name: 'MetadataSupportedValueDetail'
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of metadata entities
|
10
|
+
#
|
11
|
+
class MetadataEntityListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<MetadataEntity>] The list of metadata entities.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The link used to get the next page of metadata.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<MetadataEntity>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [MetadataEntityListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for MetadataEntityListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'MetadataEntityListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'MetadataEntityListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'MetadataEntityElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'MetadataEntity'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The metadata supported value detail.
|
10
|
+
#
|
11
|
+
class MetadataSupportedValueDetail
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The id.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The display name.
|
19
|
+
attr_accessor :display_name
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for MetadataSupportedValueDetail class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'MetadataSupportedValueDetail',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'MetadataSupportedValueDetail',
|
34
|
+
model_properties: {
|
35
|
+
id: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'id',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display_name: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'displayName',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The operation supported by Advisor.
|
10
|
+
#
|
11
|
+
class OperationDisplayInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The description of the operation.
|
16
|
+
attr_accessor :description
|
17
|
+
|
18
|
+
# @return [String] The action that users can perform, based on their
|
19
|
+
# permission level.
|
20
|
+
attr_accessor :operation
|
21
|
+
|
22
|
+
# @return [String] Service provider: Microsoft Advisor.
|
23
|
+
attr_accessor :provider
|
24
|
+
|
25
|
+
# @return [String] Resource on which the operation is performed.
|
26
|
+
attr_accessor :resource
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for OperationDisplayInfo class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'OperationDisplayInfo',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'OperationDisplayInfo',
|
41
|
+
model_properties: {
|
42
|
+
description: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'description',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
operation: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'operation',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
provider: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'provider',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
resource: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'resource',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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::Advisor::Mgmt::V2020_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The operation supported by Advisor.
|
10
|
+
#
|
11
|
+
class OperationEntity
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [OperationDisplayInfo] The operation supported by Advisor.
|
19
|
+
attr_accessor :display
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for OperationEntity class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'OperationEntity',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'OperationEntity',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'display',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'OperationDisplayInfo'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|