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.



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_estimateGoogle::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

#nameString

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

Returns:

  • (String)


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

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



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