azure_mgmt_commerce 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_commerce.rb +5 -5
- data/lib/generated/azure_mgmt_commerce/models/aggregation_granularity.rb +1 -1
- data/lib/generated/azure_mgmt_commerce/models/error_response.rb +1 -1
- data/lib/generated/azure_mgmt_commerce/models/info_field.rb +3 -3
- data/lib/generated/azure_mgmt_commerce/models/meter_info.rb +1 -1
- data/lib/generated/azure_mgmt_commerce/models/monetary_commitment.rb +2 -1
- data/lib/generated/azure_mgmt_commerce/models/monetary_credit.rb +2 -1
- data/lib/generated/azure_mgmt_commerce/models/offer_term_info.rb +1 -1
- data/lib/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb +5 -5
- data/lib/generated/azure_mgmt_commerce/models/recurring_charge.rb +2 -1
- data/lib/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb +3 -3
- data/lib/generated/azure_mgmt_commerce/models/usage_aggregation.rb +3 -3
- data/lib/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_commerce/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_commerce/rate_card.rb +28 -31
- data/lib/generated/azure_mgmt_commerce/usage_aggregates.rb +53 -53
- data/lib/generated/azure_mgmt_commerce/usage_management_client.rb +16 -3
- data/lib/generated/azure_mgmt_commerce/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 248648ed19132bde45d9295c777ad82b3d0a7357
|
|
4
|
+
data.tar.gz: 2ccc0590df23f89a01a433c39b0ec3fe09fa658e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8aa4502c6d4b33d67f2e8d7c15ae725de997d4290800ff5438f3a0309be6c316eea1519a3f0c7cbf452b9b89e02b79e07821b4d3e193baa6409918973060ecf6
|
|
7
|
+
data.tar.gz: 92cdec4822ed8e04f706938386323cd62948b4f361917dab43f17593dece1183ad5f6bb6be00b9bef4a8129ff432dd71f474f7f20b076c0c52514d3af9c4fce7
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -25,13 +25,13 @@ module Azure::ARM::Commerce
|
|
|
25
25
|
autoload :UsageManagementClient, 'generated/azure_mgmt_commerce/usage_management_client.rb'
|
|
26
26
|
|
|
27
27
|
module Models
|
|
28
|
-
autoload :
|
|
28
|
+
autoload :OfferTermInfo, 'generated/azure_mgmt_commerce/models/offer_term_info.rb'
|
|
29
|
+
autoload :MeterInfo, 'generated/azure_mgmt_commerce/models/meter_info.rb'
|
|
29
30
|
autoload :UsageAggregation, 'generated/azure_mgmt_commerce/models/usage_aggregation.rb'
|
|
31
|
+
autoload :InfoField, 'generated/azure_mgmt_commerce/models/info_field.rb'
|
|
30
32
|
autoload :UsageAggregationListResult, 'generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb'
|
|
31
|
-
autoload :RateCardQueryParameters, 'generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb'
|
|
32
33
|
autoload :ResourceRateCardInfo, 'generated/azure_mgmt_commerce/models/resource_rate_card_info.rb'
|
|
33
|
-
autoload :
|
|
34
|
-
autoload :MeterInfo, 'generated/azure_mgmt_commerce/models/meter_info.rb'
|
|
34
|
+
autoload :RateCardQueryParameters, 'generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb'
|
|
35
35
|
autoload :ErrorResponse, 'generated/azure_mgmt_commerce/models/error_response.rb'
|
|
36
36
|
autoload :MonetaryCredit, 'generated/azure_mgmt_commerce/models/monetary_credit.rb'
|
|
37
37
|
autoload :MonetaryCommitment, 'generated/azure_mgmt_commerce/models/monetary_commitment.rb'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -12,8 +12,8 @@ module Azure::ARM::Commerce
|
|
|
12
12
|
|
|
13
13
|
include MsRestAzure
|
|
14
14
|
|
|
15
|
-
# @return [String] Identifies the name of the instance provisioned by
|
|
16
|
-
#
|
|
15
|
+
# @return [String] Identifies the name of the instance provisioned by the
|
|
16
|
+
# user.
|
|
17
17
|
attr_accessor :project
|
|
18
18
|
|
|
19
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ module Azure::ARM::Commerce
|
|
|
7
7
|
module Models
|
|
8
8
|
#
|
|
9
9
|
# Model object.
|
|
10
|
+
#
|
|
10
11
|
#
|
|
11
12
|
class MonetaryCommitment < OfferTermInfo
|
|
12
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ module Azure::ARM::Commerce
|
|
|
7
7
|
module Models
|
|
8
8
|
#
|
|
9
9
|
# Model object.
|
|
10
|
+
#
|
|
10
11
|
#
|
|
11
12
|
class MonetaryCredit < OfferTermInfo
|
|
12
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -15,16 +15,16 @@ module Azure::ARM::Commerce
|
|
|
15
15
|
|
|
16
16
|
# @return [String] The Offer ID parameter consists of the 'MS-AZR-'
|
|
17
17
|
# prefix, plus the Offer ID number (e.g., MS-AZR-0026P). See
|
|
18
|
-
# https://azure.microsoft.com/en-us/support/legal/offer-details/ for
|
|
19
|
-
#
|
|
18
|
+
# https://azure.microsoft.com/en-us/support/legal/offer-details/ for more
|
|
19
|
+
# information on the list of available Offer IDs, country/region
|
|
20
20
|
# availability, and billing currency.
|
|
21
21
|
attr_accessor :offer_durable_id
|
|
22
22
|
|
|
23
23
|
# @return [String] The currency in which the rates need to be provided.
|
|
24
24
|
attr_accessor :currency
|
|
25
25
|
|
|
26
|
-
# @return [String] The culture in which the resource metadata needs to
|
|
27
|
-
#
|
|
26
|
+
# @return [String] The culture in which the resource metadata needs to be
|
|
27
|
+
# localized.
|
|
28
28
|
attr_accessor :locale
|
|
29
29
|
|
|
30
30
|
# @return [String] 2 letter ISO code where the offer was purchased.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@ module Azure::ARM::Commerce
|
|
|
7
7
|
module Models
|
|
8
8
|
#
|
|
9
9
|
# Model object.
|
|
10
|
+
#
|
|
10
11
|
#
|
|
11
12
|
class RecurringCharge < OfferTermInfo
|
|
12
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -19,8 +19,8 @@ module Azure::ARM::Commerce
|
|
|
19
19
|
# localized.
|
|
20
20
|
attr_accessor :locale
|
|
21
21
|
|
|
22
|
-
# @return [Boolean] All rates are pretax, so this will always be
|
|
23
|
-
#
|
|
22
|
+
# @return [Boolean] All rates are pretax, so this will always be returned
|
|
23
|
+
# as 'false'.
|
|
24
24
|
attr_accessor :is_tax_included
|
|
25
25
|
|
|
26
26
|
# @return [String] The region in which the Azure service is available.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -40,8 +40,8 @@ module Azure::ARM::Commerce
|
|
|
40
40
|
# time frame.
|
|
41
41
|
attr_accessor :quantity
|
|
42
42
|
|
|
43
|
-
# @return [String] The unit in which the usage for this resource is
|
|
44
|
-
#
|
|
43
|
+
# @return [String] The unit in which the usage for this resource is being
|
|
44
|
+
# counted, e.g. Hours, GB.
|
|
45
45
|
attr_accessor :unit
|
|
46
46
|
|
|
47
47
|
# @return [String] Friendly name of the resource being consumed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -26,17 +26,16 @@ module Azure::ARM::Commerce
|
|
|
26
26
|
# Enables you to query for the resource/meter metadata and related prices used
|
|
27
27
|
# in a given subscription by Offer ID, Currency, Locale and Region. The
|
|
28
28
|
# metadata associated with the billing meters, including but not limited to
|
|
29
|
-
# service names, types, resources, units of measure, and regions, is subject
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
# identify each billable item. If the billing meter GUID is scheduled to
|
|
33
|
-
#
|
|
34
|
-
# change.
|
|
29
|
+
# service names, types, resources, units of measure, and regions, is subject to
|
|
30
|
+
# change at any time and without notice. If you intend to use this billing data
|
|
31
|
+
# in an automated fashion, please use the billing meter GUID to uniquely
|
|
32
|
+
# identify each billable item. If the billing meter GUID is scheduled to change
|
|
33
|
+
# due to a new billing model, you will be notified in advance of the change.
|
|
35
34
|
#
|
|
36
|
-
# @param filter [String] The filter to apply on the operation. It ONLY
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
35
|
+
# @param filter [String] The filter to apply on the operation. It ONLY supports
|
|
36
|
+
# the 'eq' and 'and' logical operators at this time. All the 4 query parameters
|
|
37
|
+
# 'OfferDurableId', 'Currency', 'Locale', 'Region' are required to be a part
|
|
38
|
+
# of the $filter.
|
|
40
39
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
41
40
|
# will be added to the HTTP request.
|
|
42
41
|
#
|
|
@@ -51,17 +50,16 @@ module Azure::ARM::Commerce
|
|
|
51
50
|
# Enables you to query for the resource/meter metadata and related prices used
|
|
52
51
|
# in a given subscription by Offer ID, Currency, Locale and Region. The
|
|
53
52
|
# metadata associated with the billing meters, including but not limited to
|
|
54
|
-
# service names, types, resources, units of measure, and regions, is subject
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
# identify each billable item. If the billing meter GUID is scheduled to
|
|
58
|
-
#
|
|
59
|
-
# change.
|
|
53
|
+
# service names, types, resources, units of measure, and regions, is subject to
|
|
54
|
+
# change at any time and without notice. If you intend to use this billing data
|
|
55
|
+
# in an automated fashion, please use the billing meter GUID to uniquely
|
|
56
|
+
# identify each billable item. If the billing meter GUID is scheduled to change
|
|
57
|
+
# due to a new billing model, you will be notified in advance of the change.
|
|
60
58
|
#
|
|
61
|
-
# @param filter [String] The filter to apply on the operation. It ONLY
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
59
|
+
# @param filter [String] The filter to apply on the operation. It ONLY supports
|
|
60
|
+
# the 'eq' and 'and' logical operators at this time. All the 4 query parameters
|
|
61
|
+
# 'OfferDurableId', 'Currency', 'Locale', 'Region' are required to be a part
|
|
62
|
+
# of the $filter.
|
|
65
63
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
66
64
|
# will be added to the HTTP request.
|
|
67
65
|
#
|
|
@@ -75,17 +73,16 @@ module Azure::ARM::Commerce
|
|
|
75
73
|
# Enables you to query for the resource/meter metadata and related prices used
|
|
76
74
|
# in a given subscription by Offer ID, Currency, Locale and Region. The
|
|
77
75
|
# metadata associated with the billing meters, including but not limited to
|
|
78
|
-
# service names, types, resources, units of measure, and regions, is subject
|
|
79
|
-
#
|
|
80
|
-
#
|
|
81
|
-
# identify each billable item. If the billing meter GUID is scheduled to
|
|
82
|
-
#
|
|
83
|
-
# change.
|
|
76
|
+
# service names, types, resources, units of measure, and regions, is subject to
|
|
77
|
+
# change at any time and without notice. If you intend to use this billing data
|
|
78
|
+
# in an automated fashion, please use the billing meter GUID to uniquely
|
|
79
|
+
# identify each billable item. If the billing meter GUID is scheduled to change
|
|
80
|
+
# due to a new billing model, you will be notified in advance of the change.
|
|
84
81
|
#
|
|
85
|
-
# @param filter [String] The filter to apply on the operation. It ONLY
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
82
|
+
# @param filter [String] The filter to apply on the operation. It ONLY supports
|
|
83
|
+
# the 'eq' and 'and' logical operators at this time. All the 4 query parameters
|
|
84
|
+
# 'OfferDurableId', 'Currency', 'Locale', 'Region' are required to be a part
|
|
85
|
+
# of the $filter.
|
|
89
86
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
90
87
|
# to the HTTP request.
|
|
91
88
|
#
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -31,42 +31,11 @@ module Azure::ARM::Commerce
|
|
|
31
31
|
# data for.
|
|
32
32
|
# @param show_details [Boolean] When set to true (default), the aggregates are
|
|
33
33
|
# broken down into the instance metadata which is more granular.
|
|
34
|
-
# @param aggregation_granularity [AggregationGranularity] Value is either
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
# @param continuation_token [String] Retrieved from previous calls, this is
|
|
38
|
-
#
|
|
39
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
40
|
-
# will be added to the HTTP request.
|
|
41
|
-
#
|
|
42
|
-
# @return [UsageAggregationListResult] which provide lazy access to pages of
|
|
43
|
-
# the response.
|
|
44
|
-
#
|
|
45
|
-
def list_as_lazy(reportedstart_time, reported_end_time, show_details = nil, aggregation_granularity = nil, continuation_token = nil, custom_headers = nil)
|
|
46
|
-
response = list_async(reportedstart_time, reported_end_time, show_details, aggregation_granularity, continuation_token, custom_headers).value!
|
|
47
|
-
unless response.nil?
|
|
48
|
-
page = response.body
|
|
49
|
-
page.next_method = Proc.new do |next_page_link|
|
|
50
|
-
list_next_async(next_page_link, custom_headers)
|
|
51
|
-
end
|
|
52
|
-
page
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
#
|
|
57
|
-
# Query aggregated Azure subscription consumption data for a date range.
|
|
58
|
-
#
|
|
59
|
-
# @param reportedstart_time [DateTime] The start of the time range to retrieve
|
|
60
|
-
# data for.
|
|
61
|
-
# @param reported_end_time [DateTime] The end of the time range to retrieve
|
|
62
|
-
# data for.
|
|
63
|
-
# @param show_details [Boolean] When set to true (default), the aggregates are
|
|
64
|
-
# broken down into the instance metadata which is more granular.
|
|
65
|
-
# @param aggregation_granularity [AggregationGranularity] Value is either
|
|
66
|
-
# daily (default) or hourly to tell the API how to return the results grouped
|
|
67
|
-
# by day or hour. Possible values include: 'Daily', 'Hourly'
|
|
68
|
-
# @param continuation_token [String] Retrieved from previous calls, this is
|
|
69
|
-
# the bookmark used for progress when the responses are paged.
|
|
34
|
+
# @param aggregation_granularity [AggregationGranularity] Value is either daily
|
|
35
|
+
# (default) or hourly to tell the API how to return the results grouped by day
|
|
36
|
+
# or hour. Possible values include: 'Daily', 'Hourly'
|
|
37
|
+
# @param continuation_token [String] Retrieved from previous calls, this is the
|
|
38
|
+
# bookmark used for progress when the responses are paged.
|
|
70
39
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
71
40
|
# will be added to the HTTP request.
|
|
72
41
|
#
|
|
@@ -86,11 +55,11 @@ module Azure::ARM::Commerce
|
|
|
86
55
|
# data for.
|
|
87
56
|
# @param show_details [Boolean] When set to true (default), the aggregates are
|
|
88
57
|
# broken down into the instance metadata which is more granular.
|
|
89
|
-
# @param aggregation_granularity [AggregationGranularity] Value is either
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
# @param continuation_token [String] Retrieved from previous calls, this is
|
|
93
|
-
#
|
|
58
|
+
# @param aggregation_granularity [AggregationGranularity] Value is either daily
|
|
59
|
+
# (default) or hourly to tell the API how to return the results grouped by day
|
|
60
|
+
# or hour. Possible values include: 'Daily', 'Hourly'
|
|
61
|
+
# @param continuation_token [String] Retrieved from previous calls, this is the
|
|
62
|
+
# bookmark used for progress when the responses are paged.
|
|
94
63
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
95
64
|
# will be added to the HTTP request.
|
|
96
65
|
#
|
|
@@ -109,11 +78,11 @@ module Azure::ARM::Commerce
|
|
|
109
78
|
# data for.
|
|
110
79
|
# @param show_details [Boolean] When set to true (default), the aggregates are
|
|
111
80
|
# broken down into the instance metadata which is more granular.
|
|
112
|
-
# @param aggregation_granularity [AggregationGranularity] Value is either
|
|
113
|
-
#
|
|
114
|
-
#
|
|
115
|
-
# @param continuation_token [String] Retrieved from previous calls, this is
|
|
116
|
-
#
|
|
81
|
+
# @param aggregation_granularity [AggregationGranularity] Value is either daily
|
|
82
|
+
# (default) or hourly to tell the API how to return the results grouped by day
|
|
83
|
+
# or hour. Possible values include: 'Daily', 'Hourly'
|
|
84
|
+
# @param continuation_token [String] Retrieved from previous calls, this is the
|
|
85
|
+
# bookmark used for progress when the responses are paged.
|
|
117
86
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
118
87
|
# to the HTTP request.
|
|
119
88
|
#
|
|
@@ -174,8 +143,8 @@ module Azure::ARM::Commerce
|
|
|
174
143
|
#
|
|
175
144
|
# Query aggregated Azure subscription consumption data for a date range.
|
|
176
145
|
#
|
|
177
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
|
178
|
-
#
|
|
146
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
147
|
+
# to List operation.
|
|
179
148
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
180
149
|
# will be added to the HTTP request.
|
|
181
150
|
#
|
|
@@ -189,8 +158,8 @@ module Azure::ARM::Commerce
|
|
|
189
158
|
#
|
|
190
159
|
# Query aggregated Azure subscription consumption data for a date range.
|
|
191
160
|
#
|
|
192
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
|
193
|
-
#
|
|
161
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
162
|
+
# to List operation.
|
|
194
163
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
195
164
|
# will be added to the HTTP request.
|
|
196
165
|
#
|
|
@@ -203,8 +172,8 @@ module Azure::ARM::Commerce
|
|
|
203
172
|
#
|
|
204
173
|
# Query aggregated Azure subscription consumption data for a date range.
|
|
205
174
|
#
|
|
206
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
|
207
|
-
#
|
|
175
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
176
|
+
# to List operation.
|
|
208
177
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
209
178
|
# to the HTTP request.
|
|
210
179
|
#
|
|
@@ -258,5 +227,36 @@ module Azure::ARM::Commerce
|
|
|
258
227
|
promise.execute
|
|
259
228
|
end
|
|
260
229
|
|
|
230
|
+
#
|
|
231
|
+
# Query aggregated Azure subscription consumption data for a date range.
|
|
232
|
+
#
|
|
233
|
+
# @param reportedstart_time [DateTime] The start of the time range to retrieve
|
|
234
|
+
# data for.
|
|
235
|
+
# @param reported_end_time [DateTime] The end of the time range to retrieve
|
|
236
|
+
# data for.
|
|
237
|
+
# @param show_details [Boolean] When set to true (default), the aggregates are
|
|
238
|
+
# broken down into the instance metadata which is more granular.
|
|
239
|
+
# @param aggregation_granularity [AggregationGranularity] Value is either daily
|
|
240
|
+
# (default) or hourly to tell the API how to return the results grouped by day
|
|
241
|
+
# or hour. Possible values include: 'Daily', 'Hourly'
|
|
242
|
+
# @param continuation_token [String] Retrieved from previous calls, this is the
|
|
243
|
+
# bookmark used for progress when the responses are paged.
|
|
244
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
245
|
+
# will be added to the HTTP request.
|
|
246
|
+
#
|
|
247
|
+
# @return [UsageAggregationListResult] which provide lazy access to pages of
|
|
248
|
+
# the response.
|
|
249
|
+
#
|
|
250
|
+
def list_as_lazy(reportedstart_time, reported_end_time, show_details = nil, aggregation_granularity = nil, continuation_token = nil, custom_headers = nil)
|
|
251
|
+
response = list_async(reportedstart_time, reported_end_time, show_details, aggregation_granularity, continuation_token, custom_headers).value!
|
|
252
|
+
unless response.nil?
|
|
253
|
+
page = response.body
|
|
254
|
+
page.next_method = Proc.new do |next_page_link|
|
|
255
|
+
list_next_async(next_page_link, custom_headers)
|
|
256
|
+
end
|
|
257
|
+
page
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
261
|
end
|
|
262
262
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -17,8 +17,8 @@ module Azure::ARM::Commerce
|
|
|
17
17
|
# @return Credentials needed for the client to connect to Azure.
|
|
18
18
|
attr_reader :credentials
|
|
19
19
|
|
|
20
|
-
# @return [String] It uniquely identifies Microsoft Azure subscription.
|
|
21
|
-
#
|
|
20
|
+
# @return [String] It uniquely identifies Microsoft Azure subscription. The
|
|
21
|
+
# subscription ID forms part of the URI for every service call.
|
|
22
22
|
attr_accessor :subscription_id
|
|
23
23
|
|
|
24
24
|
# @return [String] Client Api Version.
|
|
@@ -61,6 +61,7 @@ module Azure::ARM::Commerce
|
|
|
61
61
|
@accept_language = 'en-US'
|
|
62
62
|
@long_running_operation_retry_timeout = 30
|
|
63
63
|
@generate_client_request_id = true
|
|
64
|
+
add_telemetry
|
|
64
65
|
end
|
|
65
66
|
|
|
66
67
|
#
|
|
@@ -118,5 +119,17 @@ module Azure::ARM::Commerce
|
|
|
118
119
|
super(request_url, method, path, options)
|
|
119
120
|
end
|
|
120
121
|
|
|
122
|
+
|
|
123
|
+
private
|
|
124
|
+
#
|
|
125
|
+
# Adds telemetry information.
|
|
126
|
+
#
|
|
127
|
+
def add_telemetry
|
|
128
|
+
sdk_information = 'azure_mgmt_commerce'
|
|
129
|
+
if defined? Azure::ARM::Commerce::VERSION
|
|
130
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Commerce::VERSION}"
|
|
131
|
+
end
|
|
132
|
+
add_user_agent_information(sdk_information)
|
|
133
|
+
end
|
|
121
134
|
end
|
|
122
135
|
end
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
6
6
|
module Azure::ARM::Commerce
|
|
7
|
-
VERSION = '0.
|
|
7
|
+
VERSION = '0.8.0'
|
|
8
8
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: azure_mgmt_commerce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Microsoft Corporation
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -72,14 +72,14 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.6.
|
|
75
|
+
version: 0.6.2
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 0.6.
|
|
82
|
+
version: 0.6.2
|
|
83
83
|
description: Microsoft Azure Commerce Management Client Library for Ruby
|
|
84
84
|
email: azrubyteam@microsoft.com
|
|
85
85
|
executables: []
|