Class: Google::Apis::CloudbillingV1beta::UsageRateTimelineEntry
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::UsageRateTimelineEntry
- 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
-
#effective_time ⇒ Google::Apis::CloudbillingV1beta::EstimationTimePoint
Represents a point in time.
-
#usage_rate ⇒ Float
The usage rate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsageRateTimelineEntry
constructor
A new instance of UsageRateTimelineEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UsageRateTimelineEntry
Returns a new instance of UsageRateTimelineEntry.
1248 1249 1250 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effective_time ⇒ Google::Apis::CloudbillingV1beta::EstimationTimePoint
Represents a point in time.
Corresponds to the JSON property effectiveTime
1241 1242 1243 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1241 def effective_time @effective_time end |
#usage_rate ⇒ Float
The usage rate.
Corresponds to the JSON property usageRate
1246 1247 1248 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1246 def usage_rate @usage_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1253 1254 1255 1256 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1253 def update!(**args) @effective_time = args[:effective_time] if args.key?(:effective_time) @usage_rate = args[:usage_rate] if args.key?(:usage_rate) end |