Class: Google::Apis::CloudbillingV1beta::SkuCostEstimate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::SkuCostEstimate
- 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
-
#cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
-
#sku ⇒ String
The resource name for the SKU.
-
#usage_amount ⇒ Float
The amount of usage on this SKU.
-
#usage_unit ⇒ String
The unit for the usage on this SKU.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SkuCostEstimate
constructor
A new instance of SkuCostEstimate.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_estimate ⇒ Google::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 |
#sku ⇒ String
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
2713 2714 2715 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2713 def sku @sku end |
#usage_amount ⇒ Float
The amount of usage on this SKU.
Corresponds to the JSON property usageAmount
2718 2719 2720 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2718 def usage_amount @usage_amount end |
#usage_unit ⇒ String
The unit for the usage on this SKU.
Corresponds to the JSON property usageUnit
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 |