Class: Google::Apis::CloudbillingV1beta::CommitmentCostEstimate

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 a commitment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitmentCostEstimate

Returns a new instance of CommitmentCostEstimate.



324
325
326
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 324

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

Instance Attribute Details

#commitment_total_cost_estimateGoogle::Apis::CloudbillingV1beta::CostEstimate

An estimated cost. Corresponds to the JSON property commitmentTotalCostEstimate



312
313
314
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 312

def commitment_total_cost_estimate
  @commitment_total_cost_estimate
end

#nameString

The name of the commitment, as specified in the CostScenario. Corresponds to the JSON property name

Returns:

  • (String)


317
318
319
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 317

def name
  @name
end

#sku_cost_estimatesArray<Google::Apis::CloudbillingV1beta::SkuCostEstimate>

Estimated costs for each SKU in the commitment. Corresponds to the JSON property skuCostEstimates



322
323
324
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 322

def sku_cost_estimates
  @sku_cost_estimates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



329
330
331
332
333
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 329

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