azure_mgmt_advisor 0.17.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 +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor.rb +41 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/advisor_management_client.rb +140 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/category.rb +18 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/impact.rb +17 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/operation_display_info.rb +80 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/operation_entity.rb +58 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/operation_entity_list_result.rb +98 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/resource.rb +111 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb +201 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/resource_recommendation_base_list_result.rb +99 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/risk.rb +17 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/short_description.rb +59 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/suppression_contract.rb +109 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/module_definition.rb +9 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/operations.rb +215 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/recommendations.rb +503 -0
- data/lib/2016-07-12-preview/generated/azure_mgmt_advisor/suppressions.rb +437 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor.rb +41 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/advisor_management_client.rb +140 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/category.rb +18 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/impact.rb +17 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/operation_display_info.rb +80 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/operation_entity.rb +58 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/operation_entity_list_result.rb +98 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/resource.rb +80 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb +193 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/resource_recommendation_base_list_result.rb +99 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/risk.rb +17 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/short_description.rb +59 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/models/suppression_contract.rb +85 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/module_definition.rb +9 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/operations.rb +215 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/recommendations.rb +503 -0
- data/lib/2017-03-31/generated/azure_mgmt_advisor/suppressions.rb +437 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor.rb +47 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/advisor_management_client.rb +144 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/configurations.rb +535 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/armerror_response_body.rb +59 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/category.rb +18 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/config_data.rb +80 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/config_data_properties.rb +79 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/configuration_list_result.rb +98 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/impact.rb +17 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/operation_display_info.rb +80 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/operation_entity.rb +58 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/operation_entity_list_result.rb +98 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/resource.rb +80 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb +212 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/resource_recommendation_base_list_result.rb +99 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/risk.rb +17 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/short_description.rb +59 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/suppression_contract.rb +85 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/models/suppression_contract_list_result.rb +98 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/module_definition.rb +9 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/operations.rb +215 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/recommendations.rb +503 -0
- data/lib/2017-04-19/generated/azure_mgmt_advisor/suppressions.rb +553 -0
- data/lib/azure_mgmt_advisor.rb +8 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/advisor_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/advisor_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/advisor_profile_module.rb +131 -0
- data/lib/version.rb +7 -0
- metadata +182 -0
|
@@ -0,0 +1,59 @@
|
|
|
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::V2017_04_19
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# ARM error response body.
|
|
10
|
+
#
|
|
11
|
+
class ARMErrorResponseBody
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Gets or sets the string that describes the error in
|
|
16
|
+
# detail and provides debugging information.
|
|
17
|
+
attr_accessor :message
|
|
18
|
+
|
|
19
|
+
# @return [String] Gets or sets the string that can be used to
|
|
20
|
+
# programmatically identify the error.
|
|
21
|
+
attr_accessor :code
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
# Mapper for ARMErrorResponseBody class as Ruby Hash.
|
|
26
|
+
# This will be used for serialization/deserialization.
|
|
27
|
+
#
|
|
28
|
+
def self.mapper()
|
|
29
|
+
{
|
|
30
|
+
client_side_validation: true,
|
|
31
|
+
required: false,
|
|
32
|
+
serialized_name: 'ARMErrorResponseBody',
|
|
33
|
+
type: {
|
|
34
|
+
name: 'Composite',
|
|
35
|
+
class_name: 'ARMErrorResponseBody',
|
|
36
|
+
model_properties: {
|
|
37
|
+
message: {
|
|
38
|
+
client_side_validation: true,
|
|
39
|
+
required: false,
|
|
40
|
+
serialized_name: 'message',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'String'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
code: {
|
|
46
|
+
client_side_validation: true,
|
|
47
|
+
required: false,
|
|
48
|
+
serialized_name: 'code',
|
|
49
|
+
type: {
|
|
50
|
+
name: 'String'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
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::V2017_04_19
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for Category
|
|
10
|
+
#
|
|
11
|
+
module Category
|
|
12
|
+
HighAvailability = "HighAvailability"
|
|
13
|
+
Security = "Security"
|
|
14
|
+
Performance = "Performance"
|
|
15
|
+
Cost = "Cost"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
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::V2017_04_19
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The Advisor configuration data structure.
|
|
10
|
+
#
|
|
11
|
+
class ConfigData
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] The resource Id of the configuration resource.
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# @return [String] The type of the configuration resource.
|
|
19
|
+
attr_accessor :type
|
|
20
|
+
|
|
21
|
+
# @return [String] The name of the configuration resource.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# @return [ConfigDataProperties] The list of property name/value pairs.
|
|
25
|
+
attr_accessor :properties
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Mapper for ConfigData class as Ruby Hash.
|
|
30
|
+
# This will be used for serialization/deserialization.
|
|
31
|
+
#
|
|
32
|
+
def self.mapper()
|
|
33
|
+
{
|
|
34
|
+
client_side_validation: true,
|
|
35
|
+
required: false,
|
|
36
|
+
serialized_name: 'ConfigData',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'Composite',
|
|
39
|
+
class_name: 'ConfigData',
|
|
40
|
+
model_properties: {
|
|
41
|
+
id: {
|
|
42
|
+
client_side_validation: true,
|
|
43
|
+
required: false,
|
|
44
|
+
serialized_name: 'id',
|
|
45
|
+
type: {
|
|
46
|
+
name: 'String'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
client_side_validation: true,
|
|
51
|
+
required: false,
|
|
52
|
+
serialized_name: 'type',
|
|
53
|
+
type: {
|
|
54
|
+
name: 'String'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
name: {
|
|
58
|
+
client_side_validation: true,
|
|
59
|
+
required: false,
|
|
60
|
+
serialized_name: 'name',
|
|
61
|
+
type: {
|
|
62
|
+
name: 'String'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
properties: {
|
|
66
|
+
client_side_validation: true,
|
|
67
|
+
required: false,
|
|
68
|
+
serialized_name: 'properties',
|
|
69
|
+
type: {
|
|
70
|
+
name: 'Composite',
|
|
71
|
+
class_name: 'ConfigDataProperties'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
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::V2017_04_19
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The list of property name/value pairs.
|
|
10
|
+
#
|
|
11
|
+
class ConfigDataProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return Unmatched properties from the message are deserialized this
|
|
16
|
+
# collection
|
|
17
|
+
attr_accessor :additional_properties
|
|
18
|
+
|
|
19
|
+
# @return [Boolean] Exclude the resource from Advisor evaluations. Valid
|
|
20
|
+
# values: False (default) or True.
|
|
21
|
+
attr_accessor :exclude
|
|
22
|
+
|
|
23
|
+
# @return [String] Minimum percentage threshold for Advisor low CPU
|
|
24
|
+
# utilization evaluation. Valid only for subscriptions. Valid values: 5
|
|
25
|
+
# (default), 10, 15 or 20.
|
|
26
|
+
attr_accessor :low_cpu_threshold
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Mapper for ConfigDataProperties 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: 'ConfigData_properties',
|
|
38
|
+
type: {
|
|
39
|
+
name: 'Composite',
|
|
40
|
+
class_name: 'ConfigDataProperties',
|
|
41
|
+
model_properties: {
|
|
42
|
+
additional_properties: {
|
|
43
|
+
client_side_validation: true,
|
|
44
|
+
required: false,
|
|
45
|
+
type: {
|
|
46
|
+
name: 'Dictionary',
|
|
47
|
+
value: {
|
|
48
|
+
client_side_validation: true,
|
|
49
|
+
required: false,
|
|
50
|
+
serialized_name: 'ObjectElementType',
|
|
51
|
+
type: {
|
|
52
|
+
name: 'Object'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
exclude: {
|
|
58
|
+
client_side_validation: true,
|
|
59
|
+
required: false,
|
|
60
|
+
serialized_name: 'exclude',
|
|
61
|
+
type: {
|
|
62
|
+
name: 'Boolean'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
low_cpu_threshold: {
|
|
66
|
+
client_side_validation: true,
|
|
67
|
+
required: false,
|
|
68
|
+
serialized_name: 'low_cpu_threshold',
|
|
69
|
+
type: {
|
|
70
|
+
name: 'String'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
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::V2017_04_19
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The list of Advisor configurations.
|
|
10
|
+
#
|
|
11
|
+
class ConfigurationListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
include MsRest::JSONable
|
|
16
|
+
# @return [Array<ConfigData>] The list of configurations.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
# @return [String] The link used to get the next page of configurations.
|
|
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<ConfigData>] 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 [ConfigurationListResult] 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 ConfigurationListResult 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: 'ConfigurationListResult',
|
|
63
|
+
type: {
|
|
64
|
+
name: 'Composite',
|
|
65
|
+
class_name: 'ConfigurationListResult',
|
|
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: 'ConfigDataElementType',
|
|
77
|
+
type: {
|
|
78
|
+
name: 'Composite',
|
|
79
|
+
class_name: 'ConfigData'
|
|
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,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::V2017_04_19
|
|
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,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::V2017_04_19
|
|
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::V2017_04_19
|
|
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
|