Class: Google::Apis::CloudbillingV1beta::Sku
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::Sku
- 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
Information about SKUs appearing in the cost estimate.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name for the SKU.
-
#prices ⇒ Array<Google::Apis::CloudbillingV1beta::Price>
A timeline of prices for a SKU in chronological order.
-
#sku ⇒ String
The resource name for the SKU.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Sku
constructor
A new instance of Sku.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Sku
Returns a new instance of Sku.
2681 2682 2683 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2681 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The display name for the SKU. Example: A2 Instance Core running in Americas
Corresponds to the JSON property displayName
2666 2667 2668 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2666 def display_name @display_name end |
#prices ⇒ Array<Google::Apis::CloudbillingV1beta::Price>
A timeline of prices for a SKU in chronological order. Note: The API currently
only supports using a constant price for the entire estimation time frame so
this list will contain a single value.
Corresponds to the JSON property prices
2673 2674 2675 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2673 def prices @prices end |
#sku ⇒ String
The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-
CD31-42FE"
Corresponds to the JSON property sku
2679 2680 2681 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2679 def sku @sku end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2686 2687 2688 2689 2690 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2686 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @prices = args[:prices] if args.key?(:prices) @sku = args[:sku] if args.key?(:sku) end |