Class: Google::Apis::CloudbillingV1beta::CostEstimationResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::CostEstimationResult
- 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
-
#currency_code ⇒ String
Required.
-
#segment_cost_estimates ⇒ Array<Google::Apis::CloudbillingV1beta::SegmentCostEstimate>
Required.
-
#skus ⇒ Array<Google::Apis::CloudbillingV1beta::Sku>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CostEstimationResult
constructor
A new instance of CostEstimationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
Required. The ISO 4217 currency code for the cost estimate.
Corresponds to the JSON property currencyCode
452 453 454 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 452 def currency_code @currency_code end |
#segment_cost_estimates ⇒ Array<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 |
#skus ⇒ Array<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 |