azure_mgmt_consumption 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
- data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +28 -12
- data/lib/2018-03-31/generated/azure_mgmt_consumption.rb +84 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/budgets.rb +993 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/consumption_management_client.rb +289 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/cost_tags_operations.rb +233 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb +120 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces.rb +528 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_billing_account.rb +536 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_department.rb +536 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_enrollment_accounts.rb +536 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget.rb +171 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tag.rb +46 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tags.rb +90 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +134 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details.rb +187 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations.rb +224 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +205 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tags.rb +90 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_detail.rb +355 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/operations.rb +216 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservation_recommendations_operations.rb +226 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/tags_operations.rb +113 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details.rb +577 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_billing_account.rb +599 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_department.rb +592 -0
- data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_enrollment_account.rb +599 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption.rb +49 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/consumption_management_client.rb +144 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/forecasts.rb +122 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_detail.rb +403 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/operations.rb +216 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
- data/lib/2018-05-31/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption.rb +85 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/balances.rb +210 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/budgets.rb +993 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/consumption_management_client.rb +176 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/cost_tags.rb +233 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/forecasts.rb +122 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb +2058 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance.rb +281 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/bound.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget.rb +171 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag.rb +90 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag_properties.rb +46 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/filters.rb +134 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/grain.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/notification.rb +139 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource.rb +91 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb +46 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_detail.rb +415 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/module_definition.rb +9 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/operations.rb +216 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservation_recommendations.rb +226 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/tags.rb +113 -0
- data/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
- data/lib/azure_mgmt_consumption.rb +4 -1
- data/lib/profiles/latest/modules/consumption_profile_module.rb +160 -78
- data/lib/version.rb +1 -1
- metadata +150 -4
@@ -0,0 +1,101 @@
|
|
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::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of listing marketplaces. It contains a list of available
|
10
|
+
# marketplaces in reverse chronological order by billing period.
|
11
|
+
#
|
12
|
+
class MarketplacesListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Marketplace>] The list of marketplaces.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] The link (url) to the next page of results.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<Marketplace>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [MarketplacesListResult] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for MarketplacesListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'MarketplacesListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'MarketplacesListResult',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'MarketplaceElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'Marketplace'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,122 @@
|
|
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::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of the meter detail.
|
10
|
+
#
|
11
|
+
class MeterDetails
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the meter, within the given meter category
|
16
|
+
attr_accessor :meter_name
|
17
|
+
|
18
|
+
# @return [String] The category of the meter, for example, 'Cloud
|
19
|
+
# services', 'Networking', etc..
|
20
|
+
attr_accessor :meter_category
|
21
|
+
|
22
|
+
# @return [String] The subcategory of the meter, for example, 'A6 Cloud
|
23
|
+
# services', 'ExpressRoute (IXP)', etc..
|
24
|
+
attr_accessor :meter_sub_category
|
25
|
+
|
26
|
+
# @return [String] The unit in which the meter consumption is charged,
|
27
|
+
# for example, 'Hours', 'GB', etc.
|
28
|
+
attr_accessor :unit
|
29
|
+
|
30
|
+
# @return [String] The location in which the Azure service is available.
|
31
|
+
attr_accessor :meter_location
|
32
|
+
|
33
|
+
# @return The total included quantity associated with the offer.
|
34
|
+
attr_accessor :total_included_quantity
|
35
|
+
|
36
|
+
# @return The pretax listing price.
|
37
|
+
attr_accessor :pretax_standard_rate
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
# Mapper for MeterDetails 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: 'MeterDetails',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'MeterDetails',
|
52
|
+
model_properties: {
|
53
|
+
meter_name: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'meterName',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
meter_category: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'meterCategory',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
meter_sub_category: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'meterSubCategory',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
unit: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
read_only: true,
|
84
|
+
serialized_name: 'unit',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
},
|
89
|
+
meter_location: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: false,
|
92
|
+
read_only: true,
|
93
|
+
serialized_name: 'meterLocation',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
total_included_quantity: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
read_only: true,
|
102
|
+
serialized_name: 'totalIncludedQuantity',
|
103
|
+
type: {
|
104
|
+
name: 'Number'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
pretax_standard_rate: {
|
108
|
+
client_side_validation: true,
|
109
|
+
required: false,
|
110
|
+
read_only: true,
|
111
|
+
serialized_name: 'pretaxStandardRate',
|
112
|
+
type: {
|
113
|
+
name: 'Number'
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
@@ -0,0 +1,139 @@
|
|
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::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The notification associated with a budget.
|
10
|
+
#
|
11
|
+
class Notification
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] The notification is enabled or not.
|
16
|
+
attr_accessor :enabled
|
17
|
+
|
18
|
+
# @return [OperatorType] The comparison operator. Possible values
|
19
|
+
# include: 'EqualTo', 'GreaterThan', 'GreaterThanOrEqualTo'
|
20
|
+
attr_accessor :operator
|
21
|
+
|
22
|
+
# @return Threshold value associated with a notification. Notification is
|
23
|
+
# sent when the cost exceeded the threshold. It is always percent and has
|
24
|
+
# to be between 0 and 1000.
|
25
|
+
attr_accessor :threshold
|
26
|
+
|
27
|
+
# @return [Array<String>] Email addresses to send the budget notification
|
28
|
+
# to when the threshold is exceeded.
|
29
|
+
attr_accessor :contact_emails
|
30
|
+
|
31
|
+
# @return [Array<String>] Contact roles to send the budget notification
|
32
|
+
# to when the threshold is exceeded.
|
33
|
+
attr_accessor :contact_roles
|
34
|
+
|
35
|
+
# @return [Array<String>] Action groups to send the budget notification
|
36
|
+
# to when the threshold is exceeded.
|
37
|
+
attr_accessor :contact_groups
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
# Mapper for Notification 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: 'Notification',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'Notification',
|
52
|
+
model_properties: {
|
53
|
+
enabled: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: true,
|
56
|
+
serialized_name: 'enabled',
|
57
|
+
type: {
|
58
|
+
name: 'Boolean'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
operator: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: true,
|
64
|
+
serialized_name: 'operator',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
threshold: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: true,
|
72
|
+
serialized_name: 'threshold',
|
73
|
+
type: {
|
74
|
+
name: 'Number'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
contact_emails: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: true,
|
80
|
+
serialized_name: 'contactEmails',
|
81
|
+
constraints: {
|
82
|
+
MaxItems: 50,
|
83
|
+
MinItems: 1
|
84
|
+
},
|
85
|
+
type: {
|
86
|
+
name: 'Sequence',
|
87
|
+
element: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'StringElementType',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
contact_roles: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'contactRoles',
|
101
|
+
type: {
|
102
|
+
name: 'Sequence',
|
103
|
+
element: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'StringElementType',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
contact_groups: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'contactGroups',
|
117
|
+
constraints: {
|
118
|
+
MaxItems: 50,
|
119
|
+
MinItems: 0
|
120
|
+
},
|
121
|
+
type: {
|
122
|
+
name: 'Sequence',
|
123
|
+
element: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'StringElementType',
|
127
|
+
type: {
|
128
|
+
name: 'String'
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -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::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A Consumption REST API operation.
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [OperationDisplay] The object that represents the operation.
|
19
|
+
attr_accessor :display
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Operation 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: 'Operation',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Operation',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'name',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
display: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'display',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'OperationDisplay'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,72 @@
|
|
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::Consumption::Mgmt::V2018_03_31
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that represents the operation.
|
10
|
+
#
|
11
|
+
class OperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Service provider: Microsoft.Consumption.
|
16
|
+
attr_accessor :provider
|
17
|
+
|
18
|
+
# @return [String] Resource on which the operation is performed:
|
19
|
+
# UsageDetail, etc.
|
20
|
+
attr_accessor :resource
|
21
|
+
|
22
|
+
# @return [String] Operation type: Read, write, delete, etc.
|
23
|
+
attr_accessor :operation
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for OperationDisplay class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Operation_display',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'OperationDisplay',
|
38
|
+
model_properties: {
|
39
|
+
provider: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'provider',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
resource: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'resource',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
operation: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'operation',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|