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.



464
465
466
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 464

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)


452
453
454
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 452

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



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

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



462
463
464
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 462

def skus
  @skus
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
473
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 469

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