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.
262 263 264 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 262 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
250 251 252 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 250 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
255 256 257 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 255 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
260 261 262 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 260 def skus @skus end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
267 268 269 270 271 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 267 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 |