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.
501 502 503 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 501 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
488 489 490 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 488 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
493 494 495 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 493 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
499 500 501 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 499 def workloads @workloads end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
506 507 508 509 510 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 506 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 |