Class: Google::Apis::CloudbillingV1beta::UsageRateTimelineEntry

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

A usage rate timeline entry. Each entry specifies a constant usage rate during a time interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsageRateTimelineEntry

Returns a new instance of UsageRateTimelineEntry.



2852
2853
2854
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2852

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

Instance Attribute Details

#effective_timeGoogle::Apis::CloudbillingV1beta::EstimationTimePoint

Represents a point in time. Corresponds to the JSON property effectiveTime



2845
2846
2847
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2845

def effective_time
  @effective_time
end

#usage_rateFloat

The usage rate. Corresponds to the JSON property usageRate

Returns:

  • (Float)


2850
2851
2852
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2850

def usage_rate
  @usage_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2857
2858
2859
2860
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2857

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