azure_mgmt_commerce 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce.rb +17 -17
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/aggregation_granularity.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/error_response.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/info_field.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/meter_info.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/monetary_commitment.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/monetary_credit.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/offer_term_info.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/rate_card_query_parameters.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/recurring_charge.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/resource_rate_card_info.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/usage_aggregation.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/models/usage_aggregation_list_result.rb +1 -1
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/module_definition.rb +3 -2
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/rate_card.rb +2 -2
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/usage_aggregates.rb +3 -3
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/usage_management_client.rb +3 -3
- data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/version.rb +2 -2
- data/lib/azure_mgmt_commerce.rb +2 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/commerce_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/commerce_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/commerce_profile_module.rb +92 -0
- data/lib/version.rb +7 -0
- metadata +27 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e48e015b2fc71c18d0de2a914608d58f5927da00
|
4
|
+
data.tar.gz: 3afcbd72fc48e5a90f1144b8a96e0fa7d98e6fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a99235477610f690743215c8a687ae826def7c0e13acc2cbfc42acc6273f170ec72c52deb7cb1d01786aae4c64f0958f17ecfc81fbd48db2288f2126c6b89a5a
|
7
|
+
data.tar.gz: 22c94b0981d10b812734f5c6f1e94c599a795cb69a07331e91c9186a62c6d260476648df130ded0d840be30b926ddd8cd8c12966a2c1adb8e8a1a10d5014dd5b
|
@@ -16,26 +16,26 @@ require 'faraday'
|
|
16
16
|
require 'faraday-cookie_jar'
|
17
17
|
require 'concurrent'
|
18
18
|
require 'ms_rest'
|
19
|
-
require 'generated/azure_mgmt_commerce/module_definition'
|
19
|
+
require '2015-06-01-preview/generated/azure_mgmt_commerce/module_definition'
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
|
-
module Azure::
|
23
|
-
autoload :UsageAggregates, 'generated/azure_mgmt_commerce/usage_aggregates.rb'
|
24
|
-
autoload :RateCard, 'generated/azure_mgmt_commerce/rate_card.rb'
|
25
|
-
autoload :UsageManagementClient, 'generated/azure_mgmt_commerce/usage_management_client.rb'
|
22
|
+
module Azure::Commerce::Mgmt::V2015_06_01_preview
|
23
|
+
autoload :UsageAggregates, '2015-06-01-preview/generated/azure_mgmt_commerce/usage_aggregates.rb'
|
24
|
+
autoload :RateCard, '2015-06-01-preview/generated/azure_mgmt_commerce/rate_card.rb'
|
25
|
+
autoload :UsageManagementClient, '2015-06-01-preview/generated/azure_mgmt_commerce/usage_management_client.rb'
|
26
26
|
|
27
27
|
module Models
|
28
|
-
autoload :MeterInfo, 'generated/azure_mgmt_commerce/models/meter_info.rb'
|
29
|
-
autoload :ResourceRateCardInfo, 'generated/azure_mgmt_commerce/models/resource_rate_card_info.rb'
|
30
|
-
autoload :UsageAggregation, 'generated/azure_mgmt_commerce/models/usage_aggregation.rb'
|
31
|
-
autoload :InfoField, 'generated/azure_mgmt_commerce/models/info_field.rb'
|
32
|
-
autoload :UsageAggregationListResult, 'generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb'
|
33
|
-
autoload :OfferTermInfo, 'generated/azure_mgmt_commerce/models/offer_term_info.rb'
|
34
|
-
autoload :RateCardQueryParameters, 'generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb'
|
35
|
-
autoload :ErrorResponse, 'generated/azure_mgmt_commerce/models/error_response.rb'
|
36
|
-
autoload :MonetaryCredit, 'generated/azure_mgmt_commerce/models/monetary_credit.rb'
|
37
|
-
autoload :MonetaryCommitment, 'generated/azure_mgmt_commerce/models/monetary_commitment.rb'
|
38
|
-
autoload :RecurringCharge, 'generated/azure_mgmt_commerce/models/recurring_charge.rb'
|
39
|
-
autoload :AggregationGranularity, 'generated/azure_mgmt_commerce/models/aggregation_granularity.rb'
|
28
|
+
autoload :MeterInfo, '2015-06-01-preview/generated/azure_mgmt_commerce/models/meter_info.rb'
|
29
|
+
autoload :ResourceRateCardInfo, '2015-06-01-preview/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb'
|
30
|
+
autoload :UsageAggregation, '2015-06-01-preview/generated/azure_mgmt_commerce/models/usage_aggregation.rb'
|
31
|
+
autoload :InfoField, '2015-06-01-preview/generated/azure_mgmt_commerce/models/info_field.rb'
|
32
|
+
autoload :UsageAggregationListResult, '2015-06-01-preview/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb'
|
33
|
+
autoload :OfferTermInfo, '2015-06-01-preview/generated/azure_mgmt_commerce/models/offer_term_info.rb'
|
34
|
+
autoload :RateCardQueryParameters, '2015-06-01-preview/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb'
|
35
|
+
autoload :ErrorResponse, '2015-06-01-preview/generated/azure_mgmt_commerce/models/error_response.rb'
|
36
|
+
autoload :MonetaryCredit, '2015-06-01-preview/generated/azure_mgmt_commerce/models/monetary_credit.rb'
|
37
|
+
autoload :MonetaryCommitment, '2015-06-01-preview/generated/azure_mgmt_commerce/models/monetary_commitment.rb'
|
38
|
+
autoload :RecurringCharge, '2015-06-01-preview/generated/azure_mgmt_commerce/models/recurring_charge.rb'
|
39
|
+
autoload :AggregationGranularity, '2015-06-01-preview/generated/azure_mgmt_commerce/models/aggregation_granularity.rb'
|
40
40
|
end
|
41
41
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Commerce::Mgmt::V2015_06_01_preview
|
7
7
|
#
|
8
8
|
# RateCard
|
9
9
|
#
|
@@ -125,7 +125,7 @@ module Azure::ARM::Commerce
|
|
125
125
|
if status_code == 200
|
126
126
|
begin
|
127
127
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
128
|
-
result_mapper = Azure::
|
128
|
+
result_mapper = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo.mapper()
|
129
129
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
130
130
|
rescue Exception => e
|
131
131
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Commerce::Mgmt::V2015_06_01_preview
|
7
7
|
#
|
8
8
|
# UsageAggregates
|
9
9
|
#
|
@@ -147,7 +147,7 @@ module Azure::ARM::Commerce
|
|
147
147
|
if status_code == 200
|
148
148
|
begin
|
149
149
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
150
|
-
result_mapper = Azure::
|
150
|
+
result_mapper = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult.mapper()
|
151
151
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
152
152
|
rescue Exception => e
|
153
153
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -234,7 +234,7 @@ module Azure::ARM::Commerce
|
|
234
234
|
if status_code == 200
|
235
235
|
begin
|
236
236
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
237
|
-
result_mapper = Azure::
|
237
|
+
result_mapper = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult.mapper()
|
238
238
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
239
239
|
rescue Exception => e
|
240
240
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
data/lib/{generated → 2015-06-01-preview/generated}/azure_mgmt_commerce/usage_management_client.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Commerce::Mgmt::V2015_06_01_preview
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
@@ -125,8 +125,8 @@ module Azure::ARM::Commerce
|
|
125
125
|
#
|
126
126
|
def add_telemetry
|
127
127
|
sdk_information = 'azure_mgmt_commerce'
|
128
|
-
if defined? Azure::
|
129
|
-
sdk_information = "#{sdk_information}/#{Azure::
|
128
|
+
if defined? Azure::Commerce::Mgmt::V2015_06_01_preview::VERSION
|
129
|
+
sdk_information = "#{sdk_information}/#{Azure::Commerce::Mgmt::V2015_06_01_preview::VERSION}"
|
130
130
|
end
|
131
131
|
add_user_agent_information(sdk_information)
|
132
132
|
end
|
data/lib/azure_mgmt_commerce.rb
CHANGED
@@ -2,4 +2,5 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require 'generated/azure_mgmt_commerce'
|
5
|
+
require '2015-06-01-preview/generated/azure_mgmt_commerce'
|
6
|
+
require 'profiles/latest/commerce_latest_profile_client'
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure::ARM
|
6
|
+
# The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
|
7
|
+
module Configurable
|
8
|
+
# @return [String] Azure tenant id (also known as domain).
|
9
|
+
attr_accessor :tenant_id
|
10
|
+
|
11
|
+
# @return [String] Azure client id.
|
12
|
+
attr_accessor :client_id
|
13
|
+
|
14
|
+
# @return [String] Azure secret key.
|
15
|
+
attr_accessor :client_secret
|
16
|
+
|
17
|
+
# @return [String] Azure subscription id.
|
18
|
+
attr_accessor :subscription_id
|
19
|
+
|
20
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
+
attr_accessor :active_directory_settings
|
22
|
+
|
23
|
+
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
+
attr_accessor :credentials
|
25
|
+
|
26
|
+
class << self
|
27
|
+
#
|
28
|
+
# List of configurable keys for {Azure::ARM::Client}.
|
29
|
+
# @return [Array] of option keys.
|
30
|
+
#
|
31
|
+
def keys
|
32
|
+
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Set configuration options using a block.
|
38
|
+
#
|
39
|
+
def configure
|
40
|
+
yield self
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Resets the configurable options to provided options or defaults.
|
45
|
+
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
+
#
|
47
|
+
def reset!(options = {})
|
48
|
+
Azure::ARM::Configurable.keys.each do |key|
|
49
|
+
default_value = Azure::ARM::Default.options[key]
|
50
|
+
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
+
end
|
52
|
+
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def config
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
#
|
63
|
+
# configures configurable options to default values
|
64
|
+
#
|
65
|
+
def setup_options
|
66
|
+
opts = {}
|
67
|
+
Azure::ARM::Configurable.keys.map do |key|
|
68
|
+
opts[key] = Azure::ARM::Default.options[key]
|
69
|
+
end
|
70
|
+
opts
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure::ARM
|
6
|
+
# Default configuration options for {Azure::ARM.Client}
|
7
|
+
module Default
|
8
|
+
class << self
|
9
|
+
#
|
10
|
+
# Default Azure Tenant Id.
|
11
|
+
# @return [String] Azure Tenant Id.
|
12
|
+
#
|
13
|
+
def tenant_id
|
14
|
+
ENV['AZURE_TENANT_ID']
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# Default Azure Client Id.
|
19
|
+
# @return [String] Azure Client Id.
|
20
|
+
#
|
21
|
+
def client_id
|
22
|
+
ENV['AZURE_CLIENT_ID']
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Default Azure Client Secret.
|
27
|
+
# @return [String] Azure Client Secret.
|
28
|
+
#
|
29
|
+
def client_secret
|
30
|
+
ENV['AZURE_CLIENT_SECRET']
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Default Azure Subscription Id.
|
35
|
+
# @return [String] Azure Subscription Id.
|
36
|
+
#
|
37
|
+
def subscription_id
|
38
|
+
ENV['AZURE_SUBSCRIPTION_ID']
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Default Azure credentials to authorize HTTP requests made by the service client.
|
43
|
+
# @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
|
44
|
+
#
|
45
|
+
def credentials
|
46
|
+
MsRest::TokenCredentials.new(
|
47
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
48
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Default Azure Active Directory Service Settings.
|
53
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
54
|
+
#
|
55
|
+
def active_directory_settings
|
56
|
+
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Configuration options.
|
61
|
+
# @return [Hash] Configuration options.
|
62
|
+
#
|
63
|
+
def options
|
64
|
+
Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'profiles/latest/commerce_module_definition'
|
6
|
+
require 'profiles/latest/modules/commerce_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::Commerce::Profiles::Latest::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the Latest profile SDK.
|
13
|
+
#
|
14
|
+
class Client < CommerceClass
|
15
|
+
include Azure::ARM::Configurable
|
16
|
+
|
17
|
+
|
18
|
+
def initialize(options = {})
|
19
|
+
super(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def credentials
|
23
|
+
if @credentials.nil?
|
24
|
+
self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
|
25
|
+
|
26
|
+
@credentials = MsRest::TokenCredentials.new(
|
27
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
28
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
29
|
+
end
|
30
|
+
@credentials
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::Commerce end
|
7
|
+
module Azure::Commerce::Profiles end
|
8
|
+
module Azure::Commerce::Profiles::Latest end
|
9
|
+
module Azure::Commerce::Profiles::Latest::Mgmt end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_commerce'
|
6
|
+
|
7
|
+
module Azure::Commerce::Profiles::Latest::Mgmt
|
8
|
+
UsageAggregates = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageAggregates
|
9
|
+
RateCard = Azure::Commerce::Mgmt::V2015_06_01_preview::RateCard
|
10
|
+
|
11
|
+
module Models
|
12
|
+
MeterInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo
|
13
|
+
ResourceRateCardInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo
|
14
|
+
UsageAggregation = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation
|
15
|
+
InfoField = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField
|
16
|
+
UsageAggregationListResult = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult
|
17
|
+
OfferTermInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::OfferTermInfo
|
18
|
+
RateCardQueryParameters = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RateCardQueryParameters
|
19
|
+
ErrorResponse = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse
|
20
|
+
MonetaryCredit = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCredit
|
21
|
+
MonetaryCommitment = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCommitment
|
22
|
+
RecurringCharge = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RecurringCharge
|
23
|
+
AggregationGranularity = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity
|
24
|
+
end
|
25
|
+
|
26
|
+
#
|
27
|
+
# Commerce
|
28
|
+
#
|
29
|
+
class CommerceClass
|
30
|
+
attr_reader :usage_aggregates, :rate_card, :configurable, :base_url, :options, :model_classes
|
31
|
+
|
32
|
+
def initialize(options = {})
|
33
|
+
if options.is_a?(Hash) && options.length == 0
|
34
|
+
@options = setup_options
|
35
|
+
else
|
36
|
+
@options = options
|
37
|
+
end
|
38
|
+
|
39
|
+
reset!(options)
|
40
|
+
|
41
|
+
@configurable, @base_url, @options = self, nil, nil
|
42
|
+
|
43
|
+
client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options)
|
44
|
+
if(client_0.respond_to?(:subscription_id))
|
45
|
+
client_0.subscription_id = configurable.subscription_id
|
46
|
+
end
|
47
|
+
@usage_aggregates = client_0.usage_aggregates
|
48
|
+
@rate_card = client_0.rate_card
|
49
|
+
|
50
|
+
@model_classes = ModelClasses.new
|
51
|
+
end
|
52
|
+
|
53
|
+
class ModelClasses
|
54
|
+
def meter_info
|
55
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo
|
56
|
+
end
|
57
|
+
def resource_rate_card_info
|
58
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo
|
59
|
+
end
|
60
|
+
def usage_aggregation
|
61
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation
|
62
|
+
end
|
63
|
+
def info_field
|
64
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField
|
65
|
+
end
|
66
|
+
def usage_aggregation_list_result
|
67
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult
|
68
|
+
end
|
69
|
+
def offer_term_info
|
70
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::OfferTermInfo
|
71
|
+
end
|
72
|
+
def rate_card_query_parameters
|
73
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RateCardQueryParameters
|
74
|
+
end
|
75
|
+
def error_response
|
76
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse
|
77
|
+
end
|
78
|
+
def monetary_credit
|
79
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCredit
|
80
|
+
end
|
81
|
+
def monetary_commitment
|
82
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCommitment
|
83
|
+
end
|
84
|
+
def recurring_charge
|
85
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RecurringCharge
|
86
|
+
end
|
87
|
+
def aggregation_granularity
|
88
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
data/lib/version.rb
ADDED
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.15.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: 2017-10-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,25 +87,32 @@ extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
89
|
- LICENSE.txt
|
90
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce.rb
|
91
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/aggregation_granularity.rb
|
92
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/error_response.rb
|
93
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/info_field.rb
|
94
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/meter_info.rb
|
95
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/monetary_commitment.rb
|
96
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/monetary_credit.rb
|
97
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/offer_term_info.rb
|
98
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb
|
99
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/recurring_charge.rb
|
100
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb
|
101
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/usage_aggregation.rb
|
102
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb
|
103
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/module_definition.rb
|
104
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/rate_card.rb
|
105
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/usage_aggregates.rb
|
106
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/usage_management_client.rb
|
107
|
+
- lib/2015-06-01-preview/generated/azure_mgmt_commerce/version.rb
|
90
108
|
- lib/azure_mgmt_commerce.rb
|
91
|
-
- lib/
|
92
|
-
- lib/
|
93
|
-
- lib/
|
94
|
-
- lib/
|
95
|
-
- lib/
|
96
|
-
- lib/
|
97
|
-
- lib/
|
98
|
-
- lib/generated/azure_mgmt_commerce/models/offer_term_info.rb
|
99
|
-
- lib/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb
|
100
|
-
- lib/generated/azure_mgmt_commerce/models/recurring_charge.rb
|
101
|
-
- lib/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb
|
102
|
-
- lib/generated/azure_mgmt_commerce/models/usage_aggregation.rb
|
103
|
-
- lib/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb
|
104
|
-
- lib/generated/azure_mgmt_commerce/module_definition.rb
|
105
|
-
- lib/generated/azure_mgmt_commerce/rate_card.rb
|
106
|
-
- lib/generated/azure_mgmt_commerce/usage_aggregates.rb
|
107
|
-
- lib/generated/azure_mgmt_commerce/usage_management_client.rb
|
108
|
-
- lib/generated/azure_mgmt_commerce/version.rb
|
109
|
+
- lib/module_definition.rb
|
110
|
+
- lib/profiles/common/configurable.rb
|
111
|
+
- lib/profiles/common/default.rb
|
112
|
+
- lib/profiles/latest/commerce_latest_profile_client.rb
|
113
|
+
- lib/profiles/latest/commerce_module_definition.rb
|
114
|
+
- lib/profiles/latest/modules/commerce_profile_module.rb
|
115
|
+
- lib/version.rb
|
109
116
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
110
117
|
licenses:
|
111
118
|
- MIT
|