Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice

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

Encapsulates the latest price for the given billing account SKU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice

Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice.



802
803
804
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 802

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#currency_codeString

ISO-4217 currency code for the price. Corresponds to the JSON property currencyCode

Returns:

  • (String)


778
779
780
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 778

def currency_code
  @currency_code
end

#nameString

Resource name for the latest billing account price. Corresponds to the JSON property name

Returns:

  • (String)


783
784
785
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 783

def name
  @name
end

#price_reasonGoogle::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaPriceReason

Encapsulates a price reason which contains background information about the origin of the price. Corresponds to the JSON property priceReason



789
790
791
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 789

def price_reason
  @price_reason
end

#rateGoogle::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaRate

Encapsulates a Rate price. Billing account SKUs with Rate price are offered by pricing tiers. The price have 1 or more rate pricing tiers. Corresponds to the JSON property rate



795
796
797
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 795

def rate
  @rate
end

#value_typeString

Type of the price. It can have values: ["unspecified", "rate"]. Corresponds to the JSON property valueType

Returns:

  • (String)


800
801
802
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 800

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



807
808
809
810
811
812
813
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 807

def update!(**args)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @name = args[:name] if args.key?(:name)
  @price_reason = args[:price_reason] if args.key?(:price_reason)
  @rate = args[:rate] if args.key?(:rate)
  @value_type = args[:value_type] if args.key?(:value_type)
end