Class: Google::Apis::CloudbillingV1beta::Usage
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::Usage
- 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
-
#usage_rate_timeline ⇒ Google::Apis::CloudbillingV1beta::UsageRateTimeline
A timeline of usage rates.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Usage
constructor
A new instance of Usage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Usage
Returns a new instance of Usage.
2775 2776 2777 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2775 def initialize(**args) update!(**args) end |
Instance Attribute Details
#usage_rate_timeline ⇒ Google::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
2773 2774 2775 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2773 def usage_rate_timeline @usage_rate_timeline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2780 2781 2782 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2780 def update!(**args) @usage_rate_timeline = args[:usage_rate_timeline] if args.key?(:usage_rate_timeline) end |