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.
1169 1170 1171 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
Corresponds to the JSON property costEstimate
1150 1151 1152 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1150 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
1157 1158 1159 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1157 def sku @sku end |
#usage_amount ⇒ Float
The amount of usage on this SKU.
Corresponds to the JSON property usageAmount
1162 1163 1164 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1162 def usage_amount @usage_amount end |
#usage_unit ⇒ String
The unit for the usage on this SKU.
Corresponds to the JSON property usageUnit
1167 1168 1169 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1167 def usage_unit @usage_unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1174 1175 1176 1177 1178 1179 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1174 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 |