Class: Google::Apis::CloudbillingV1beta::CommitmentCostEstimate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::CommitmentCostEstimate
- 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 a commitment.
Instance Attribute Summary collapse
-
#commitment_total_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
-
#name ⇒ String
The name of the commitment, as specified in the
CostScenario
. -
#sku_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::SkuCostEstimate>
Estimated costs for each SKU in the commitment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommitmentCostEstimate
constructor
A new instance of CommitmentCostEstimate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CommitmentCostEstimate
Returns a new instance of CommitmentCostEstimate.
338 339 340 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 338 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment_total_cost_estimate ⇒ Google::Apis::CloudbillingV1beta::CostEstimate
An estimated cost.
Corresponds to the JSON property commitmentTotalCostEstimate
326 327 328 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 326 def commitment_total_cost_estimate @commitment_total_cost_estimate end |
#name ⇒ String
The name of the commitment, as specified in the CostScenario
.
Corresponds to the JSON property name
331 332 333 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 331 def name @name end |
#sku_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::SkuCostEstimate>
Estimated costs for each SKU in the commitment.
Corresponds to the JSON property skuCostEstimates
336 337 338 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 336 def sku_cost_estimates @sku_cost_estimates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
343 344 345 346 347 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 343 def update!(**args) @commitment_total_cost_estimate = args[:commitment_total_cost_estimate] if args.key?(:commitment_total_cost_estimate) @name = args[:name] if args.key?(:name) @sku_cost_estimates = args[:sku_cost_estimates] if args.key?(:sku_cost_estimates) end |