Class: Google::Apis::CloudbillingV1beta::Price
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::Price
- 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
The price of a SKU at a point int time.
Instance Attribute Summary collapse
-
#effective_time ⇒ Google::Apis::CloudbillingV1beta::EstimationTimePoint
Represents a point in time.
-
#price_type ⇒ String
The type of price.
-
#rate ⇒ Google::Apis::CloudbillingV1beta::Rate
A SKU price consisting of tiered rates.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Price
constructor
A new instance of Price.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Price
Returns a new instance of Price.
2511 2512 2513 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2511 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
2499 2500 2501 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2499 def effective_time @effective_time end |
#price_type ⇒ String
The type of price. Possible values: "RATE"
Corresponds to the JSON property priceType
2504 2505 2506 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2504 def price_type @price_type end |
#rate ⇒ Google::Apis::CloudbillingV1beta::Rate
A SKU price consisting of tiered rates.
Corresponds to the JSON property rate
2509 2510 2511 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2509 def rate @rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2516 2517 2518 2519 2520 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2516 def update!(**args) @effective_time = args[:effective_time] if args.key?(:effective_time) @price_type = args[:price_type] if args.key?(:price_type) @rate = args[:rate] if args.key?(:rate) end |