azure_mgmt_consumption 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +4 -1
  3. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb +15 -13
  4. data/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb +15 -13
  5. data/lib/2017-11-30/generated/azure_mgmt_consumption.rb +12 -5
  6. data/lib/2017-11-30/generated/azure_mgmt_consumption/consumption_management_client.rb +12 -1
  7. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  8. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_details.rb +187 -0
  9. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +56 -0
  10. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_summaries.rb +205 -0
  11. data/lib/2017-11-30/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +57 -0
  12. data/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb +15 -13
  13. data/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_details.rb +129 -0
  14. data/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_summaries.rb +135 -0
  15. data/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb +15 -13
  16. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption.rb +42 -0
  17. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/budgets.rb +384 -0
  18. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb +138 -0
  19. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budget.rb +160 -0
  20. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  21. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/budgets_list_result.rb +57 -0
  22. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  23. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  24. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  25. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb +115 -0
  26. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  27. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  28. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  29. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  30. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  31. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  32. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  33. data/lib/2017-12-30-preview/generated/azure_mgmt_consumption/operations.rb +216 -0
  34. data/lib/2018-01-31/generated/azure_mgmt_consumption.rb +62 -0
  35. data/lib/2018-01-31/generated/azure_mgmt_consumption/budgets.rb +993 -0
  36. data/lib/2018-01-31/generated/azure_mgmt_consumption/consumption_management_client.rb +155 -0
  37. data/lib/2018-01-31/generated/azure_mgmt_consumption/marketplaces.rb +521 -0
  38. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budget.rb +171 -0
  39. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budget_time_period.rb +58 -0
  40. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/budgets_list_result.rb +101 -0
  41. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/category_type.rb +16 -0
  42. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/current_spend.rb +59 -0
  43. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/datagrain.rb +16 -0
  44. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/error_details.rb +59 -0
  45. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/error_response.rb +48 -0
  46. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/filters.rb +106 -0
  47. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/marketplace.rb +375 -0
  48. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/marketplaces_list_result.rb +101 -0
  49. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/meter_details.rb +122 -0
  50. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/notification.rb +139 -0
  51. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation.rb +59 -0
  52. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation_display.rb +72 -0
  53. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operation_list_result.rb +103 -0
  54. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/operator_type.rb +17 -0
  55. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/price_sheet_properties.rb +134 -0
  56. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/price_sheet_result.rb +112 -0
  57. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/proxy_resource.rb +84 -0
  58. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_details.rb +187 -0
  59. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_details_list_result.rb +100 -0
  60. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_summaries.rb +205 -0
  61. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/reservation_summaries_list_result.rb +101 -0
  62. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/resource.rb +91 -0
  63. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/time_grain_type.rb +17 -0
  64. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/usage_detail.rb +355 -0
  65. data/lib/2018-01-31/generated/azure_mgmt_consumption/models/usage_details_list_result.rb +101 -0
  66. data/lib/2018-01-31/generated/azure_mgmt_consumption/module_definition.rb +9 -0
  67. data/lib/2018-01-31/generated/azure_mgmt_consumption/operations.rb +216 -0
  68. data/lib/2018-01-31/generated/azure_mgmt_consumption/price_sheet.rb +246 -0
  69. data/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_details.rb +449 -0
  70. data/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_summaries.rb +465 -0
  71. data/lib/2018-01-31/generated/azure_mgmt_consumption/usage_details.rb +553 -0
  72. data/lib/azure_mgmt_consumption.rb +2 -0
  73. data/lib/profiles/latest/consumption_latest_profile_client.rb +28 -9
  74. data/lib/profiles/latest/consumption_module_definition.rb +0 -1
  75. data/lib/profiles/latest/modules/consumption_profile_module.rb +153 -48
  76. data/lib/version.rb +1 -1
  77. metadata +65 -2
@@ -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_01_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_01_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_01_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_01_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_01_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