Class: Google::Apis::CloudbillingV1beta::ScenarioConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::ScenarioConfig
- 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
Configuration for a CostScenario. Specifies how costs are calculated.
Instance Attribute Summary collapse
-
#estimate_duration ⇒ String
Time frame for the estimate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScenarioConfig
constructor
A new instance of ScenarioConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScenarioConfig
Returns a new instance of ScenarioConfig.
787 788 789 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 787 def initialize(**args) update!(**args) end |
Instance Attribute Details
#estimate_duration ⇒ String
Time frame for the estimate. Workloads must specify usage for this duration.
Duration must be at least 1 hour (3,600 seconds) and at most 10 years (315,360,
000 seconds). The calculations for years and months are based on a 730-hour (2,
628,000-second) month.
Corresponds to the JSON property estimateDuration
785 786 787 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 785 def estimate_duration @estimate_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
792 793 794 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 792 def update!(**args) @estimate_duration = args[:estimate_duration] if args.key?(:estimate_duration) end |