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.



2451
2452
2453
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2451

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



2439
2440
2441
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2439

def effective_time
  @effective_time
end

#price_typeString

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

Returns:

  • (String)


2444
2445
2446
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2444

def price_type
  @price_type
end

#rateGoogle::Apis::CloudbillingV1beta::Rate

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



2449
2450
2451
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2449

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2456
2457
2458
2459
2460
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2456

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