Class: Google::Apis::CloudbillingV1beta::SkuCostEstimate

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb

Overview

Estimated cost for usage on a SKU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SkuCostEstimate

Returns a new instance of SkuCostEstimate.



2725
2726
2727
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2725

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cost_estimateGoogle::Apis::CloudbillingV1beta::CostEstimate

An estimated cost. Corresponds to the JSON property costEstimate



2706
2707
2708
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2706

def cost_estimate
  @cost_estimate
end

#skuString

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95- CD31-42FE" More information about the SKU can be found in the skus field of the CostEstimationResult. Corresponds to the JSON property sku

Returns:

  • (String)


2713
2714
2715
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2713

def sku
  @sku
end

#usage_amountFloat

The amount of usage on this SKU. Corresponds to the JSON property usageAmount

Returns:

  • (Float)


2718
2719
2720
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2718

def usage_amount
  @usage_amount
end

#usage_unitString

The unit for the usage on this SKU. Corresponds to the JSON property usageUnit

Returns:

  • (String)


2723
2724
2725
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2723

def usage_unit
  @usage_unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2730
2731
2732
2733
2734
2735
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2730

def update!(**args)
  @cost_estimate = args[:cost_estimate] if args.key?(:cost_estimate)
  @sku = args[:sku] if args.key?(:sku)
  @usage_amount = args[:usage_amount] if args.key?(:usage_amount)
  @usage_unit = args[:usage_unit] if args.key?(:usage_unit)
end