Class: Google::Apis::CloudbillingV1beta::SkuCostEstimate

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

Estimated cost for usage on a SKU.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SkuCostEstimate

Returns a new instance of SkuCostEstimate.



1115
1116
1117
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1115

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

Instance Attribute Details

#cost_estimateGoogle::Apis::CloudbillingV1beta::CostEstimate

An estimated cost. Corresponds to the JSON property costEstimate



1096
1097
1098
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1096

def cost_estimate
  @cost_estimate
end

#skuString

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95- CD31-42FE" More information about the SKU can be found in the skus field of the CostEstimationResult. Corresponds to the JSON property sku

Returns:

  • (String)


1103
1104
1105
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1103

def sku
  @sku
end

#usage_amountFloat

The amount of usage on this SKU. Corresponds to the JSON property usageAmount

Returns:

  • (Float)


1108
1109
1110
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1108

def usage_amount
  @usage_amount
end

#usage_unitString

The unit for the usage on this SKU. Corresponds to the JSON property usageUnit

Returns:

  • (String)


1113
1114
1115
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1113

def usage_unit
  @usage_unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1120
1121
1122
1123
1124
1125
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1120

def update!(**args)
  @cost_estimate = args[:cost_estimate] if args.key?(:cost_estimate)
  @sku = args[:sku] if args.key?(:sku)
  @usage_amount = args[:usage_amount] if args.key?(:usage_amount)
  @usage_unit = args[:usage_unit] if args.key?(:usage_unit)
end