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.
2719 2720 2721 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2719 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
Corresponds to the JSON property costEstimate
2700 2701 2702 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2700 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
2707 2708 2709 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2707 def sku @sku end |
#usage_amount ⇒ Float
The amount of usage on this SKU.
Corresponds to the JSON property usageAmount
2712 2713 2714 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2712 def usage_amount @usage_amount end |
#usage_unit ⇒ String
The unit for the usage on this SKU.
Corresponds to the JSON property usageUnit
2717 2718 2719 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2717 def usage_unit @usage_unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2724 2725 2726 2727 2728 2729 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2724 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 |