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.



683
684
685
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 683

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



671
672
673
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 671

def effective_time
  @effective_time
end

#price_typeString

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

Returns:

  • (String)


676
677
678
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 676

def price_type
  @price_type
end

#rateGoogle::Apis::CloudbillingV1beta::Rate

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



681
682
683
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 681

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



688
689
690
691
692
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 688

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