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.



2758
2759
2760
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2758

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



2756
2757
2758
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2756

def usage_rate_timeline
  @usage_rate_timeline
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2763
2764
2765
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2763

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