Class: Google::Apis::CloudbillingV1beta::Price

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

The price of a SKU at a point int time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Price

Returns a new instance of Price.



2505
2506
2507
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2505

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



2493
2494
2495
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2493

def effective_time
  @effective_time
end

#price_typeString

The type of price. Possible values: "RATE" Corresponds to the JSON property priceType

Returns:

  • (String)


2498
2499
2500
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2498

def price_type
  @price_type
end

#rateGoogle::Apis::CloudbillingV1beta::Rate

A SKU price consisting of tiered rates. Corresponds to the JSON property rate



2503
2504
2505
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2503

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2510
2511
2512
2513
2514
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2510

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