Class: Google::Apis::CloudbillingV1beta::CostEstimationResult

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

The result of a estimating the costs of a CostScenario.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CostEstimationResult

Returns a new instance of CostEstimationResult.



450
451
452
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 450

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

Instance Attribute Details

#currency_codeString

Required. The ISO 4217 currency code for the cost estimate. Corresponds to the JSON property currencyCode

Returns:

  • (String)


438
439
440
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 438

def currency_code
  @currency_code
end

#segment_cost_estimatesArray<Google::Apis::CloudbillingV1beta::SegmentCostEstimate>

Required. Estimated costs for each idealized month of a CostScenario. Corresponds to the JSON property segmentCostEstimates



443
444
445
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 443

def segment_cost_estimates
  @segment_cost_estimates
end

#skusArray<Google::Apis::CloudbillingV1beta::Sku>

Required. Information about SKUs used in the estimate. Corresponds to the JSON property skus



448
449
450
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 448

def skus
  @skus
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
458
459
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 455

def update!(**args)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @segment_cost_estimates = args[:segment_cost_estimates] if args.key?(:segment_cost_estimates)
  @skus = args[:skus] if args.key?(:skus)
end