Class: Google::Apis::CloudbillingV1beta::CostScenario
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::CostScenario
- 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
Encapsulates all the information needed to perform a cost estimate. It includes a specification of the Google Cloud usage whose costs are estimated, and configuration options.
Instance Attribute Summary collapse
-
#commitments ⇒ Array<Google::Apis::CloudbillingV1beta::Commitment>
New commitments to estimate the costs for.
-
#scenario_config ⇒ Google::Apis::CloudbillingV1beta::ScenarioConfig
Configuration for a CostScenario.
-
#workloads ⇒ Array<Google::Apis::CloudbillingV1beta::Workload>
The Google Cloud usage whose costs are estimated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CostScenario
constructor
A new instance of CostScenario.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CostScenario
Returns a new instance of CostScenario.
485 486 487 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 485 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitments ⇒ Array<Google::Apis::CloudbillingV1beta::Commitment>
New commitments to estimate the costs for. The cost of the commitments will be
included in the estimate result and discounts the commitment entitles will be
included in the workload cost estimates. A maximum of 100 workloads can be
provided.
Corresponds to the JSON property commitments
472 473 474 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 472 def commitments @commitments end |
#scenario_config ⇒ Google::Apis::CloudbillingV1beta::ScenarioConfig
Configuration for a CostScenario. Specifies how costs are calculated.
Corresponds to the JSON property scenarioConfig
477 478 479 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 477 def scenario_config @scenario_config end |
#workloads ⇒ Array<Google::Apis::CloudbillingV1beta::Workload>
The Google Cloud usage whose costs are estimated. A maximum of 100 workloads
can be provided.
Corresponds to the JSON property workloads
483 484 485 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 483 def workloads @workloads end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
490 491 492 493 494 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 490 def update!(**args) @commitments = args[:commitments] if args.key?(:commitments) @scenario_config = args[:scenario_config] if args.key?(:scenario_config) @workloads = args[:workloads] if args.key?(:workloads) end |