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,48 @@
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
+ # Error response indicates that the service is not able to process the
10
+ # incoming request. The reason is provided in the error message.
11
+ #
12
+ class ErrorResponse
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ErrorDetails] The details of the error.
17
+ attr_accessor :error
18
+
19
+
20
+ #
21
+ # Mapper for ErrorResponse class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'ErrorResponse',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'ErrorResponse',
32
+ model_properties: {
33
+ error: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'error',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ErrorDetails'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,134 @@
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
+ # May be used to filter budgets by resource group, resource, or meter.
10
+ #
11
+ class Filters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] The list of filters on resource groups, allowed
16
+ # at subscription level only.
17
+ attr_accessor :resource_groups
18
+
19
+ # @return [Array<String>] The list of filters on resources.
20
+ attr_accessor :resources
21
+
22
+ # @return The list of filters on meters (GUID), mandatory for budgets of
23
+ # usage category.
24
+ attr_accessor :meters
25
+
26
+ # @return [Hash{String => Array<String>}] The dictionary of filters on
27
+ # tags.
28
+ attr_accessor :tags
29
+
30
+
31
+ #
32
+ # Mapper for Filters class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'Filters',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Filters',
43
+ model_properties: {
44
+ resource_groups: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'resourceGroups',
48
+ constraints: {
49
+ MaxItems: 10,
50
+ MinItems: 0
51
+ },
52
+ type: {
53
+ name: 'Sequence',
54
+ element: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'StringElementType',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ },
64
+ resources: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'resources',
68
+ constraints: {
69
+ MaxItems: 10,
70
+ MinItems: 0
71
+ },
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'StringElementType',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ meters: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'meters',
88
+ constraints: {
89
+ MaxItems: 10,
90
+ MinItems: 0
91
+ },
92
+ type: {
93
+ name: 'Sequence',
94
+ element: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'UuidElementType',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ },
104
+ tags: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'tags',
108
+ type: {
109
+ name: 'Dictionary',
110
+ value: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'ArrayElementType',
114
+ type: {
115
+ name: 'Sequence',
116
+ element: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'StringElementType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,375 @@
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 marketplace resource.
10
+ #
11
+ class Marketplace < 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 [DateTime] The start of the date time range covered by the
20
+ # usage detail.
21
+ attr_accessor :usage_start
22
+
23
+ # @return [DateTime] The end of the date time range covered by the usage
24
+ # detail.
25
+ attr_accessor :usage_end
26
+
27
+ # @return The marketplace resource rate.
28
+ attr_accessor :resource_rate
29
+
30
+ # @return [String] The type of offer.
31
+ attr_accessor :offer_name
32
+
33
+ # @return [String] The name of resource group.
34
+ attr_accessor :resource_group
35
+
36
+ # @return [String] The order number.
37
+ attr_accessor :order_number
38
+
39
+ # @return [String] The name of the resource instance that the usage is
40
+ # about.
41
+ attr_accessor :instance_name
42
+
43
+ # @return [String] The uri of the resource instance that the usage is
44
+ # about.
45
+ attr_accessor :instance_id
46
+
47
+ # @return [String] The ISO currency in which the meter is charged, for
48
+ # example, USD.
49
+ attr_accessor :currency
50
+
51
+ # @return The quantity of usage.
52
+ attr_accessor :consumed_quantity
53
+
54
+ # @return [String] The unit of measure.
55
+ attr_accessor :unit_of_measure
56
+
57
+ # @return The amount of cost before tax.
58
+ attr_accessor :pretax_cost
59
+
60
+ # @return [Boolean] The estimated usage is subject to change.
61
+ attr_accessor :is_estimated
62
+
63
+ # @return The meter id (GUID).
64
+ attr_accessor :meter_id
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] Consumed service name.
79
+ attr_accessor :consumed_service
80
+
81
+ # @return [String] The cost center of this department if it is a
82
+ # department and a costcenter exists
83
+ attr_accessor :cost_center
84
+
85
+ # @return [String] Additional details of this usage item. By default this
86
+ # is not populated, unless it's specified in $expand.
87
+ attr_accessor :additional_properties
88
+
89
+ # @return [String] The name of publisher.
90
+ attr_accessor :publisher_name
91
+
92
+ # @return [String] The name of plan.
93
+ attr_accessor :plan_name
94
+
95
+
96
+ #
97
+ # Mapper for Marketplace class as Ruby Hash.
98
+ # This will be used for serialization/deserialization.
99
+ #
100
+ def self.mapper()
101
+ {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'Marketplace',
105
+ type: {
106
+ name: 'Composite',
107
+ class_name: 'Marketplace',
108
+ model_properties: {
109
+ id: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'id',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ name: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'name',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ type: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ read_only: true,
131
+ serialized_name: 'type',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ tags: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ read_only: true,
140
+ serialized_name: 'tags',
141
+ type: {
142
+ name: 'Dictionary',
143
+ value: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ serialized_name: 'StringElementType',
147
+ type: {
148
+ name: 'String'
149
+ }
150
+ }
151
+ }
152
+ },
153
+ billing_period_id: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ read_only: true,
157
+ serialized_name: 'properties.billingPeriodId',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ },
162
+ usage_start: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ read_only: true,
166
+ serialized_name: 'properties.usageStart',
167
+ type: {
168
+ name: 'DateTime'
169
+ }
170
+ },
171
+ usage_end: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ read_only: true,
175
+ serialized_name: 'properties.usageEnd',
176
+ type: {
177
+ name: 'DateTime'
178
+ }
179
+ },
180
+ resource_rate: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ read_only: true,
184
+ serialized_name: 'properties.resourceRate',
185
+ type: {
186
+ name: 'Number'
187
+ }
188
+ },
189
+ offer_name: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ read_only: true,
193
+ serialized_name: 'properties.offerName',
194
+ type: {
195
+ name: 'String'
196
+ }
197
+ },
198
+ resource_group: {
199
+ client_side_validation: true,
200
+ required: false,
201
+ read_only: true,
202
+ serialized_name: 'properties.resourceGroup',
203
+ type: {
204
+ name: 'String'
205
+ }
206
+ },
207
+ order_number: {
208
+ client_side_validation: true,
209
+ required: false,
210
+ read_only: true,
211
+ serialized_name: 'properties.orderNumber',
212
+ type: {
213
+ name: 'String'
214
+ }
215
+ },
216
+ instance_name: {
217
+ client_side_validation: true,
218
+ required: false,
219
+ read_only: true,
220
+ serialized_name: 'properties.instanceName',
221
+ type: {
222
+ name: 'String'
223
+ }
224
+ },
225
+ instance_id: {
226
+ client_side_validation: true,
227
+ required: false,
228
+ read_only: true,
229
+ serialized_name: 'properties.instanceId',
230
+ type: {
231
+ name: 'String'
232
+ }
233
+ },
234
+ currency: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ read_only: true,
238
+ serialized_name: 'properties.currency',
239
+ type: {
240
+ name: 'String'
241
+ }
242
+ },
243
+ consumed_quantity: {
244
+ client_side_validation: true,
245
+ required: false,
246
+ read_only: true,
247
+ serialized_name: 'properties.consumedQuantity',
248
+ type: {
249
+ name: 'Number'
250
+ }
251
+ },
252
+ unit_of_measure: {
253
+ client_side_validation: true,
254
+ required: false,
255
+ read_only: true,
256
+ serialized_name: 'properties.unitOfMeasure',
257
+ type: {
258
+ name: 'String'
259
+ }
260
+ },
261
+ pretax_cost: {
262
+ client_side_validation: true,
263
+ required: false,
264
+ read_only: true,
265
+ serialized_name: 'properties.pretaxCost',
266
+ type: {
267
+ name: 'Number'
268
+ }
269
+ },
270
+ is_estimated: {
271
+ client_side_validation: true,
272
+ required: false,
273
+ read_only: true,
274
+ serialized_name: 'properties.isEstimated',
275
+ type: {
276
+ name: 'Boolean'
277
+ }
278
+ },
279
+ meter_id: {
280
+ client_side_validation: true,
281
+ required: false,
282
+ read_only: true,
283
+ serialized_name: 'properties.meterId',
284
+ type: {
285
+ name: 'String'
286
+ }
287
+ },
288
+ subscription_guid: {
289
+ client_side_validation: true,
290
+ required: false,
291
+ read_only: true,
292
+ serialized_name: 'properties.subscriptionGuid',
293
+ type: {
294
+ name: 'String'
295
+ }
296
+ },
297
+ subscription_name: {
298
+ client_side_validation: true,
299
+ required: false,
300
+ read_only: true,
301
+ serialized_name: 'properties.subscriptionName',
302
+ type: {
303
+ name: 'String'
304
+ }
305
+ },
306
+ account_name: {
307
+ client_side_validation: true,
308
+ required: false,
309
+ read_only: true,
310
+ serialized_name: 'properties.accountName',
311
+ type: {
312
+ name: 'String'
313
+ }
314
+ },
315
+ department_name: {
316
+ client_side_validation: true,
317
+ required: false,
318
+ read_only: true,
319
+ serialized_name: 'properties.departmentName',
320
+ type: {
321
+ name: 'String'
322
+ }
323
+ },
324
+ consumed_service: {
325
+ client_side_validation: true,
326
+ required: false,
327
+ read_only: true,
328
+ serialized_name: 'properties.consumedService',
329
+ type: {
330
+ name: 'String'
331
+ }
332
+ },
333
+ cost_center: {
334
+ client_side_validation: true,
335
+ required: false,
336
+ read_only: true,
337
+ serialized_name: 'properties.costCenter',
338
+ type: {
339
+ name: 'String'
340
+ }
341
+ },
342
+ additional_properties: {
343
+ client_side_validation: true,
344
+ required: false,
345
+ read_only: true,
346
+ serialized_name: 'properties.additionalProperties',
347
+ type: {
348
+ name: 'String'
349
+ }
350
+ },
351
+ publisher_name: {
352
+ client_side_validation: true,
353
+ required: false,
354
+ read_only: true,
355
+ serialized_name: 'properties.publisherName',
356
+ type: {
357
+ name: 'String'
358
+ }
359
+ },
360
+ plan_name: {
361
+ client_side_validation: true,
362
+ required: false,
363
+ read_only: true,
364
+ serialized_name: 'properties.planName',
365
+ type: {
366
+ name: 'String'
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ end
373
+ end
374
+ end
375
+ end