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.
450 451 452 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 450 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
438 439 440 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 438 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
443 444 445 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 443 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
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 |