Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaPrice

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 SKU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaPrice

Returns a new instance of GoogleCloudBillingPricesV1betaPrice.



1823
1824
1825
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1823

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)


1805
1806
1807
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1805

def currency_code
  @currency_code
end

#nameString

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

Returns:

  • (String)


1810
1811
1812
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1810

def name
  @name
end

#rateGoogle::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRate

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



1816
1817
1818
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1816

def rate
  @rate
end

#value_typeString

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

Returns:

  • (String)


1821
1822
1823
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1821

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1828
1829
1830
1831
1832
1833
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1828

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