Class: Google::Apis::CloudbillingV1beta::Sku

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

Information about SKUs appearing in the cost estimate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Sku

Returns a new instance of Sku.



1077
1078
1079
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1077

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

Instance Attribute Details

#display_nameString

The display name for the SKU. Example: A2 Instance Core running in Americas Corresponds to the JSON property displayName

Returns:

  • (String)


1062
1063
1064
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1062

def display_name
  @display_name
end

#pricesArray<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



1069
1070
1071
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1069

def prices
  @prices
end

#skuString

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95- CD31-42FE" Corresponds to the JSON property sku

Returns:

  • (String)


1075
1076
1077
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1075

def sku
  @sku
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1082
1083
1084
1085
1086
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1082

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