Class: Google::Apis::CloudbillingV1beta::ScenarioConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScenarioConfig

Returns a new instance of ScenarioConfig.



2612
2613
2614
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2612

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#estimate_durationString

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. For durations longer than one month (2,628,000 seconds), the duration is rounded up to the next month, so the estimate shows you the costs for full months. For example, a duration of 3,232,800 seconds (roughly 5 weeks) is rounded up to 2 months. Corresponds to the JSON property estimateDuration

Returns:

  • (String)


2610
2611
2612
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2610

def estimate_duration
  @estimate_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2617
2618
2619
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2617

def update!(**args)
  @estimate_duration = args[:estimate_duration] if args.key?(:estimate_duration)
end