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.



2488
2489
2490
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2488

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



2476
2477
2478
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2476

def effective_time
  @effective_time
end

#price_typeString

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

Returns:

  • (String)


2481
2482
2483
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2481

def price_type
  @price_type
end

#rateGoogle::Apis::CloudbillingV1beta::Rate

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



2486
2487
2488
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2486

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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