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.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  3. data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  4. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  5. data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +7 -6
  6. data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +28 -12
  7. data/lib/2018-03-31/generated/azure_mgmt_consumption.rb +84 -0
  8. data/lib/2018-03-31/generated/azure_mgmt_consumption/budgets.rb +993 -0
  9. data/lib/2018-03-31/generated/azure_mgmt_consumption/consumption_management_client.rb +289 -0
  10. data/lib/2018-03-31/generated/azure_mgmt_consumption/cost_tags_operations.rb +233 -0
  11. data/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb +120 -0
  12. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces.rb +528 -0
  13. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_billing_account.rb +536 -0
  14. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_department.rb +536 -0
  15. data/lib/2018-03-31/generated/azure_mgmt_consumption/marketplaces_by_enrollment_accounts.rb +536 -0
  16. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  17. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  18. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  19. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  20. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  21. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  22. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  23. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  24. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tag.rb +46 -0
  25. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/cost_tags.rb +90 -0
  26. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  27. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  28. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  29. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  30. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  31. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
  32. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  33. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
  34. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  35. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  36. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  37. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  38. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  39. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +134 -0
  40. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  41. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  42. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
  43. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details.rb +187 -0
  44. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  45. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations.rb +224 -0
  46. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  47. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +205 -0
  48. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +101 -0
  49. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  50. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  51. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  52. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/tags.rb +90 -0
  53. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  54. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_detail.rb +355 -0
  55. data/lib/2018-03-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  56. data/lib/2018-03-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  57. data/lib/2018-03-31/generated/azure_mgmt_consumption/operations.rb +216 -0
  58. data/lib/2018-03-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
  59. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservation_recommendations_operations.rb +226 -0
  60. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
  61. data/lib/2018-03-31/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
  62. data/lib/2018-03-31/generated/azure_mgmt_consumption/tags_operations.rb +113 -0
  63. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details.rb +577 -0
  64. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_billing_account.rb +599 -0
  65. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_department.rb +592 -0
  66. data/lib/2018-03-31/generated/azure_mgmt_consumption/usage_details_by_enrollment_account.rb +599 -0
  67. data/lib/2018-05-31/generated/azure_mgmt_consumption.rb +49 -0
  68. data/lib/2018-05-31/generated/azure_mgmt_consumption/consumption_management_client.rb +144 -0
  69. data/lib/2018-05-31/generated/azure_mgmt_consumption/forecasts.rb +122 -0
  70. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  71. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  72. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  73. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  74. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  75. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  76. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  77. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  78. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
  79. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  80. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  81. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  82. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  83. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  84. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
  85. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  86. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_detail.rb +403 -0
  87. data/lib/2018-05-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  88. data/lib/2018-05-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  89. data/lib/2018-05-31/generated/azure_mgmt_consumption/operations.rb +216 -0
  90. data/lib/2018-05-31/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
  91. data/lib/2018-05-31/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
  92. data/lib/2018-06-30/generated/azure_mgmt_consumption.rb +85 -0
  93. data/lib/2018-06-30/generated/azure_mgmt_consumption/balances.rb +210 -0
  94. data/lib/2018-06-30/generated/azure_mgmt_consumption/budgets.rb +993 -0
  95. data/lib/2018-06-30/generated/azure_mgmt_consumption/consumption_management_client.rb +176 -0
  96. data/lib/2018-06-30/generated/azure_mgmt_consumption/cost_tags.rb +233 -0
  97. data/lib/2018-06-30/generated/azure_mgmt_consumption/forecasts.rb +122 -0
  98. data/lib/2018-06-30/generated/azure_mgmt_consumption/marketplaces.rb +2058 -0
  99. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance.rb +281 -0
  100. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_adjustment_details_item.rb +60 -0
  101. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/balance_properties_new_purchases_details_item.rb +60 -0
  102. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/billing_frequency.rb +17 -0
  103. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/bound.rb +16 -0
  104. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  105. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  106. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  107. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  108. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/charge_type.rb +16 -0
  109. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag.rb +90 -0
  110. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/cost_tag_properties.rb +46 -0
  111. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  112. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  113. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  114. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  115. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/filters.rb +134 -0
  116. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast.rb +163 -0
  117. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecast_properties_confidence_levels_item.rb +72 -0
  118. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/forecasts_list_result.rb +56 -0
  119. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/grain.rb +17 -0
  120. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
  121. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  122. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/meter_details.rb +146 -0
  123. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  124. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  125. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  126. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  127. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  128. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +146 -0
  129. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  130. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  131. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/query_options.rb +45 -0
  132. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_detail.rb +187 -0
  133. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  134. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendation.rb +224 -0
  135. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_recommendations_list_result.rb +101 -0
  136. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +100 -0
  137. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/reservation_summary.rb +205 -0
  138. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  139. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/resource_attributes.rb +59 -0
  140. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tag.rb +46 -0
  141. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/tags_result.rb +90 -0
  142. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  143. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_detail.rb +415 -0
  144. data/lib/2018-06-30/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  145. data/lib/2018-06-30/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  146. data/lib/2018-06-30/generated/azure_mgmt_consumption/operations.rb +216 -0
  147. data/lib/2018-06-30/generated/azure_mgmt_consumption/price_sheet.rb +262 -0
  148. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservation_recommendations.rb +226 -0
  149. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
  150. data/lib/2018-06-30/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
  151. data/lib/2018-06-30/generated/azure_mgmt_consumption/tags.rb +113 -0
  152. data/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb +2289 -0
  153. data/lib/azure_mgmt_consumption.rb +4 -1
  154. data/lib/profiles/latest/modules/consumption_profile_module.rb +160 -78
  155. data/lib/version.rb +1 -1
  156. metadata +150 -4
@@ -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
+ # The Resource model definition.
10
+ #
11
+ class ResourceAttributes
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource location
16
+ attr_accessor :location
17
+
18
+ # @return [String] Resource sku
19
+ attr_accessor :sku
20
+
21
+
22
+ #
23
+ # Mapper for ResourceAttributes 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: 'ResourceAttributes',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ResourceAttributes',
34
+ model_properties: {
35
+ location: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'location',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ sku: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'sku',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,46 @@
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 tag resource.
10
+ #
11
+ class Tag
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Tag key.
16
+ attr_accessor :key
17
+
18
+
19
+ #
20
+ # Mapper for Tag class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'Tag',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'Tag',
31
+ model_properties: {
32
+ key: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'key',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,90 @@
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 resource listing all tags.
10
+ #
11
+ class Tags < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Tag>] A list of Tag.
16
+ attr_accessor :tags
17
+
18
+
19
+ #
20
+ # Mapper for Tags class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'Tags',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'Tags',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ type: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ e_tag: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'eTag',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ tags: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'properties.tags',
71
+ type: {
72
+ name: 'Sequence',
73
+ element: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'TagElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'Tag'
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ 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::Consumption::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Defines values for TimeGrainType
10
+ #
11
+ module TimeGrainType
12
+ Monthly = "Monthly"
13
+ Quarterly = "Quarterly"
14
+ Annually = "Annually"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,355 @@
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
+ # An usage detail resource.
10
+ #
11
+ class UsageDetail < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The id of the billing period resource that the usage
16
+ # belongs to.
17
+ attr_accessor :billing_period_id
18
+
19
+ # @return [String] The id of the invoice resource that the usage belongs
20
+ # to.
21
+ attr_accessor :invoice_id
22
+
23
+ # @return [DateTime] The start of the date time range covered by the
24
+ # usage detail.
25
+ attr_accessor :usage_start
26
+
27
+ # @return [DateTime] The end of the date time range covered by the usage
28
+ # detail.
29
+ attr_accessor :usage_end
30
+
31
+ # @return [String] The name of the resource instance that the usage is
32
+ # about.
33
+ attr_accessor :instance_name
34
+
35
+ # @return [String] The uri of the resource instance that the usage is
36
+ # about.
37
+ attr_accessor :instance_id
38
+
39
+ # @return [String] The location of the resource instance that the usage
40
+ # is about.
41
+ attr_accessor :instance_location
42
+
43
+ # @return [String] The ISO currency in which the meter is charged, for
44
+ # example, USD.
45
+ attr_accessor :currency
46
+
47
+ # @return The quantity of usage.
48
+ attr_accessor :usage_quantity
49
+
50
+ # @return The billable usage quantity.
51
+ attr_accessor :billable_quantity
52
+
53
+ # @return The amount of cost before tax.
54
+ attr_accessor :pretax_cost
55
+
56
+ # @return [Boolean] The estimated usage is subject to change.
57
+ attr_accessor :is_estimated
58
+
59
+ # @return The meter id (GUID).
60
+ attr_accessor :meter_id
61
+
62
+ # @return [MeterDetails] The details about the meter. By default this is
63
+ # not populated, unless it's specified in $expand.
64
+ attr_accessor :meter_details
65
+
66
+ # @return Subscription guid.
67
+ attr_accessor :subscription_guid
68
+
69
+ # @return [String] Subscription name.
70
+ attr_accessor :subscription_name
71
+
72
+ # @return [String] Account name.
73
+ attr_accessor :account_name
74
+
75
+ # @return [String] Department name.
76
+ attr_accessor :department_name
77
+
78
+ # @return [String] Product name.
79
+ attr_accessor :product
80
+
81
+ # @return [String] Consumed service name.
82
+ attr_accessor :consumed_service
83
+
84
+ # @return [String] The cost center of this department if it is a
85
+ # department and a costcenter exists
86
+ attr_accessor :cost_center
87
+
88
+ # @return [String] Additional details of this usage item. By default this
89
+ # is not populated, unless it's specified in $expand.
90
+ attr_accessor :additional_properties
91
+
92
+
93
+ #
94
+ # Mapper for UsageDetail class as Ruby Hash.
95
+ # This will be used for serialization/deserialization.
96
+ #
97
+ def self.mapper()
98
+ {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'UsageDetail',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'UsageDetail',
105
+ model_properties: {
106
+ id: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ read_only: true,
110
+ serialized_name: 'id',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ name: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ read_only: true,
119
+ serialized_name: 'name',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ },
124
+ type: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ read_only: true,
128
+ serialized_name: 'type',
129
+ type: {
130
+ name: 'String'
131
+ }
132
+ },
133
+ tags: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ read_only: true,
137
+ serialized_name: 'tags',
138
+ type: {
139
+ name: 'Dictionary',
140
+ value: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ serialized_name: 'StringElementType',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ }
148
+ }
149
+ },
150
+ billing_period_id: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ read_only: true,
154
+ serialized_name: 'properties.billingPeriodId',
155
+ type: {
156
+ name: 'String'
157
+ }
158
+ },
159
+ invoice_id: {
160
+ client_side_validation: true,
161
+ required: false,
162
+ read_only: true,
163
+ serialized_name: 'properties.invoiceId',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ usage_start: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'properties.usageStart',
173
+ type: {
174
+ name: 'DateTime'
175
+ }
176
+ },
177
+ usage_end: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'properties.usageEnd',
182
+ type: {
183
+ name: 'DateTime'
184
+ }
185
+ },
186
+ instance_name: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ read_only: true,
190
+ serialized_name: 'properties.instanceName',
191
+ type: {
192
+ name: 'String'
193
+ }
194
+ },
195
+ instance_id: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ read_only: true,
199
+ serialized_name: 'properties.instanceId',
200
+ type: {
201
+ name: 'String'
202
+ }
203
+ },
204
+ instance_location: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'properties.instanceLocation',
209
+ type: {
210
+ name: 'String'
211
+ }
212
+ },
213
+ currency: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ read_only: true,
217
+ serialized_name: 'properties.currency',
218
+ type: {
219
+ name: 'String'
220
+ }
221
+ },
222
+ usage_quantity: {
223
+ client_side_validation: true,
224
+ required: false,
225
+ read_only: true,
226
+ serialized_name: 'properties.usageQuantity',
227
+ type: {
228
+ name: 'Number'
229
+ }
230
+ },
231
+ billable_quantity: {
232
+ client_side_validation: true,
233
+ required: false,
234
+ read_only: true,
235
+ serialized_name: 'properties.billableQuantity',
236
+ type: {
237
+ name: 'Number'
238
+ }
239
+ },
240
+ pretax_cost: {
241
+ client_side_validation: true,
242
+ required: false,
243
+ read_only: true,
244
+ serialized_name: 'properties.pretaxCost',
245
+ type: {
246
+ name: 'Number'
247
+ }
248
+ },
249
+ is_estimated: {
250
+ client_side_validation: true,
251
+ required: false,
252
+ read_only: true,
253
+ serialized_name: 'properties.isEstimated',
254
+ type: {
255
+ name: 'Boolean'
256
+ }
257
+ },
258
+ meter_id: {
259
+ client_side_validation: true,
260
+ required: false,
261
+ read_only: true,
262
+ serialized_name: 'properties.meterId',
263
+ type: {
264
+ name: 'String'
265
+ }
266
+ },
267
+ meter_details: {
268
+ client_side_validation: true,
269
+ required: false,
270
+ read_only: true,
271
+ serialized_name: 'properties.meterDetails',
272
+ type: {
273
+ name: 'Composite',
274
+ class_name: 'MeterDetails'
275
+ }
276
+ },
277
+ subscription_guid: {
278
+ client_side_validation: true,
279
+ required: false,
280
+ read_only: true,
281
+ serialized_name: 'properties.subscriptionGuid',
282
+ type: {
283
+ name: 'String'
284
+ }
285
+ },
286
+ subscription_name: {
287
+ client_side_validation: true,
288
+ required: false,
289
+ read_only: true,
290
+ serialized_name: 'properties.subscriptionName',
291
+ type: {
292
+ name: 'String'
293
+ }
294
+ },
295
+ account_name: {
296
+ client_side_validation: true,
297
+ required: false,
298
+ read_only: true,
299
+ serialized_name: 'properties.accountName',
300
+ type: {
301
+ name: 'String'
302
+ }
303
+ },
304
+ department_name: {
305
+ client_side_validation: true,
306
+ required: false,
307
+ read_only: true,
308
+ serialized_name: 'properties.departmentName',
309
+ type: {
310
+ name: 'String'
311
+ }
312
+ },
313
+ product: {
314
+ client_side_validation: true,
315
+ required: false,
316
+ read_only: true,
317
+ serialized_name: 'properties.product',
318
+ type: {
319
+ name: 'String'
320
+ }
321
+ },
322
+ consumed_service: {
323
+ client_side_validation: true,
324
+ required: false,
325
+ read_only: true,
326
+ serialized_name: 'properties.consumedService',
327
+ type: {
328
+ name: 'String'
329
+ }
330
+ },
331
+ cost_center: {
332
+ client_side_validation: true,
333
+ required: false,
334
+ read_only: true,
335
+ serialized_name: 'properties.costCenter',
336
+ type: {
337
+ name: 'String'
338
+ }
339
+ },
340
+ additional_properties: {
341
+ client_side_validation: true,
342
+ required: false,
343
+ read_only: true,
344
+ serialized_name: 'properties.additionalProperties',
345
+ type: {
346
+ name: 'String'
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ end
353
+ end
354
+ end
355
+ end