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.
1171 1172 1173 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1171 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
1169 1170 1171 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1169 def usage_rate_timeline @usage_rate_timeline end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1176 1177 1178 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1176 def update!(**args) @usage_rate_timeline = args[:usage_rate_timeline] if args.key?(:usage_rate_timeline) end |