Class: Google::Apis::CloudbillingV1beta::Usage

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

An amount of usage over a time frame.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Usage

Returns a new instance of Usage.



2721
2722
2723
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2721

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

Instance Attribute Details

#usage_rate_timelineGoogle::Apis::CloudbillingV1beta::UsageRateTimeline

A timeline of usage rates. Consists of a series of entries, each of which specifies a constant rate of usage during a time interval. Each entry contains an effective time. The usage rate is in effect from that time until the effective time of the subsequent entry, or, for the last entry, for the remaining portion of estimation time frame. Effective times are specified as an offset into the estimation time frame. Usage is considered to be zero until the effective_time of the first entry. All subsequent entries must have an effective time greater than the previous entry and less than the estimate time frame. The effective time on all entries must be an integer number of hours. Corresponds to the JSON property usageRateTimeline



2719
2720
2721
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2719

def usage_rate_timeline
  @usage_rate_timeline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2726
2727
2728
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2726

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